blob: 05484cab5d0221e2d75d240fa42ea741d603e224 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy56225732010-09-04 23:44:25 +00003# Generated by GNU Autoconf 2.66 for ImageMagick 6.6.4.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy3ed852e2009-09-05 21:47:34 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristyfd9dcd42010-08-08 18:07:02 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +000011#
cristy8b350f62009-11-15 23:12:43 +000012#
cristy3ed852e2009-09-05 21:47:34 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
cristy8b350f62009-11-15 23:12:43 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
cristy3ed852e2009-09-05 21:47:34 +000034esac
cristy3ed852e2009-09-05 21:47:34 +000035fi
36
37
cristy3ed852e2009-09-05 21:47:34 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000062 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
cristy3ed852e2009-09-05 21:47:34 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000094case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000095 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
cristy3ed852e2009-09-05 21:47:34 +0000103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000114 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000115fi
116
cristy8b350f62009-11-15 23:12:43 +0000117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
cristy8b350f62009-11-15 23:12:43 +0000135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristyfd9dcd42010-08-08 18:07:02 +0000176test \$(( 1 + 1 )) = 2 || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000185 if (eval "$as_required") 2>/dev/null; then :
186 as_have_required=yes
187else
188 as_have_required=no
189fi
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192else
193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194as_found=false
195for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196do
197 IFS=$as_save_IFS
198 test -z "$as_dir" && as_dir=.
199 as_found=:
200 case $as_dir in #(
201 /*)
202 for as_base in sh bash ksh sh5; do
203 # Try only shells that exist, to save several forks.
204 as_shell=$as_dir/$as_base
205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 CONFIG_SHELL=$as_shell as_have_required=yes
208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 break 2
210fi
211fi
212 done;;
213 esac
214 as_found=false
215done
216$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218 CONFIG_SHELL=$SHELL as_have_required=yes
219fi; }
220IFS=$as_save_IFS
221
222
223 if test "x$CONFIG_SHELL" != x; then :
224 # We cannot yet assume a decent shell, so we have to provide a
225 # neutralization value for shells without unset; and this also
226 # works around shells that cannot unset nonexistent variables.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: http://www.imagemagick.org about your system, including
243$0: any error possibly output before this message. Then
244$0: install a modern shell, or manually run the script
245$0: under such a shell if you do have one."
246 fi
247 exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265 { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274 return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282 set +e
283 as_fn_set_status $1
284 exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
316 q
317 }
318 /^X\(\/\/\)$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\).*/{
323 s//\1/
324 q
325 }
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristyfd9dcd42010-08-08 18:07:02 +0000330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
342 {
343 eval $1+=\$2
344 }'
345else
346 as_fn_append ()
347 {
348 eval $1=\$$1\$2
349 }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
359 {
360 as_val=$(( $* ))
361 }'
362else
363 as_fn_arith ()
364 {
365 as_val=`expr "$@" || test $? -eq 1`
366 }
367fi # as_fn_arith
368
369
cristyfd9dcd42010-08-08 18:07:02 +0000370# as_fn_error STATUS ERROR [LINENO LOG_FD]
371# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristyfd9dcd42010-08-08 18:07:02 +0000374# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000375as_fn_error ()
376{
cristyfd9dcd42010-08-08 18:07:02 +0000377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000381 fi
cristyfd9dcd42010-08-08 18:07:02 +0000382 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000383 as_fn_exit $as_status
384} # as_fn_error
385
cristy3ed852e2009-09-05 21:47:34 +0000386if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389else
390 as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395else
396 as_basename=false
397fi
398
cristy8b350f62009-11-15 23:12:43 +0000399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401else
402 as_dirname=false
403fi
cristy3ed852e2009-09-05 21:47:34 +0000404
cristy3ed852e2009-09-05 21:47:34 +0000405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409$as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
412 q
413 }
414 /^X\/\(\/\/\)$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\).*/{
419 s//\1/
420 q
421 }
422 s/.*/./; q'`
423
cristy8b350f62009-11-15 23:12:43 +0000424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000430
431
cristy8b350f62009-11-15 23:12:43 +0000432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
446 N
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
461}
462
cristy3ed852e2009-09-05 21:47:34 +0000463ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000464case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000465-n*)
cristy8b350f62009-11-15 23:12:43 +0000466 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000471 esac;;
472*)
473 ECHO_N='-n';;
474esac
cristy3ed852e2009-09-05 21:47:34 +0000475
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
482fi
483if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
496 fi
497else
498 as_ln_s='cp -p'
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000504 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000505else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
508fi
509
510if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
517 fi
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
cristy8b350f62009-11-15 23:12:43 +0000523 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000524 -*)set "./$1";;
525 esac;
cristy8b350f62009-11-15 23:12:43 +0000526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
529 '
530fi
531as_executable_p=$as_test_x
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
cristy3ed852e2009-09-05 21:47:34 +0000539SHELL=${CONFIG_SHELL-/bin/sh}
540
cristy3ed852e2009-09-05 21:47:34 +0000541lt_ltdl_dir='ltdl'
542
543lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
544
cristyfd9dcd42010-08-08 18:07:02 +0000545
cristycd4c5312009-11-22 01:19:08 +0000546test -n "$DJDIR" || exec 7<&0 </dev/null
547exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000548
549# Name of the host.
cristyfd9dcd42010-08-08 18:07:02 +0000550# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000551# so uname gets run too.
552ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
553
554#
555# Initializations.
556#
557ac_default_prefix=/usr/local
558ac_clean_files=
559ac_config_libobj_dir=.
560LIBOBJS=
561cross_compiling=no
562subdirs=
563MFLAGS=
564MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000565
566# Identity of this package.
567PACKAGE_NAME='ImageMagick'
568PACKAGE_TARNAME='ImageMagick'
cristy56225732010-09-04 23:44:25 +0000569PACKAGE_VERSION='6.6.4'
570PACKAGE_STRING='ImageMagick 6.6.4'
cristy3ed852e2009-09-05 21:47:34 +0000571PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000572PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000573
574ac_unique_file="magick/MagickCore.h"
575ac_config_libobj_dir=ltdl
576# Factoring default headers for most tests.
577ac_includes_default="\
578#include <stdio.h>
579#ifdef HAVE_SYS_TYPES_H
580# include <sys/types.h>
581#endif
582#ifdef HAVE_SYS_STAT_H
583# include <sys/stat.h>
584#endif
585#ifdef STDC_HEADERS
586# include <stdlib.h>
587# include <stddef.h>
588#else
589# ifdef HAVE_STDLIB_H
590# include <stdlib.h>
591# endif
592#endif
593#ifdef HAVE_STRING_H
594# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595# include <memory.h>
596# endif
597# include <string.h>
598#endif
599#ifdef HAVE_STRINGS_H
600# include <strings.h>
601#endif
602#ifdef HAVE_INTTYPES_H
603# include <inttypes.h>
604#endif
605#ifdef HAVE_STDINT_H
606# include <stdint.h>
607#endif
608#ifdef HAVE_UNISTD_H
609# include <unistd.h>
610#endif"
611
cristycd4c5312009-11-22 01:19:08 +0000612ac_header_list=
cristy3ed852e2009-09-05 21:47:34 +0000613ac_subst_vars='ltdl_LTLIBOBJS
614ltdl_LIBOBJS
615am__EXEEXT_FALSE
616am__EXEEXT_TRUE
617LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000618MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000619MAGICK_LIBS
620MAGICK_LDFLAGS
621MAGICK_PCFLAGS
622MAGICK_CPPFLAGS
623MAGICK_CXXFLAGS
624MAGICK_CFLAGS
625MAGICK_DEP_LIBS
626MAGICK_LTDLDEPS
627MAGICK_LIBLTDL
628OSX_GCOV_LDFLAG
629DELEGATES
630MAGICKCORE_PATH
631PERL_SUPPORTS_DESTDIR
632WITH_PERL_DYNAMIC_FALSE
633WITH_PERL_DYNAMIC_TRUE
634WITH_PERL_STATIC_FALSE
635WITH_PERL_STATIC_TRUE
636WITH_PERL_FALSE
637WITH_PERL_TRUE
cristy964cb7f2010-04-25 23:18:00 +0000638PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000639GSVersion
640GSPSDevice
641GSPDFDevice
642GSMonoDevice
643GSEPSDevice
644GSColorDevice
645GSCMYKDevice
646GSAlphaDevice
647XPSVersion
648XPSCMYKDevice
649XPSColorDevice
650XPSMonoDevice
651PCLVersion
652PCLCMYKDevice
653PCLColorDevice
654PCLMonoDevice
655ZIP_DELEGATE_FALSE
656ZIP_DELEGATE_TRUE
657ZIP
658P7ZIP_DELEGATE_FALSE
659P7ZIP_DELEGATE_TRUE
660P7ZIP
661RPM_DELEGATE_FALSE
662RPM_DELEGATE_TRUE
663RPM
664PERL
665TAR
666ShowImageDelegate
667type_include_files
668ghostscript_font_dir
669windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000670dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000671PrintDelegate
672ZipDelegate
673XPSDelegate
674WWWDecodeDelegate
675WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000676UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000677TXTDelegate
678SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000679RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000680RMDelegate
681RLEEncodeDelegate
682PSDelegate
683POVDelegate
684PGPDecodeDelegate
685PCLDelegate
686MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000687MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000688MPEGEncodeDelegate
689MPEGDecodeDelegate
690MANDelegate
691LaunchDelegate
692LZWEncodeDelegate
693LZWDecodeDelegate
694LPRDelegate
695LPDelegate
696ILBMEncodeDelegate
697ILBMDecodeDelegate
698HTMLDecodeDelegate
699HPGLDecodeDelegate
700HDRDecodeDelegate
701GnuplotDecodeDelegate
702MogrifyDelegate
703DisplayDelegate
704ConvertDelegate
705FIGDecodeDelegate
706EditorDelegate
707EchoDelegate
708DVIDecodeDelegate
709GVCDecodeDelegate
710DNGDecodeDelegate
711CatDelegate
712CGMDecodeDelegate
713BrowseDelegate
714BZIPDelegate
715BlenderDecodeDelegate
716AVIDecodeDelegate
717AutotraceDecodeDelegate
718SHARE_CONFIGURE_PATH
719SHARE_PATH
720DOCUMENTATION_PATH
721FILTER_PATH
722CODER_PATH
723CONFIGURE_PATH
724LIBRARY_PATH
725EXECUTABLE_PATH
726PERLMAINCC
727XML_LIBS
728XML_DELEGATE_FALSE
729XML_DELEGATE_TRUE
730xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000731WMF_LIBS
732WMF_DELEGATE_FALSE
733WMF_DELEGATE_TRUE
734TIFF_LIBS
735TIFF_DELEGATE_FALSE
736TIFF_DELEGATE_TRUE
737CAIRO_DELEGATE_FALSE
738CAIRO_DELEGATE_TRUE
739RSVG_DELEGATE_FALSE
740RSVG_DELEGATE_TRUE
741CAIRO_SVG_LIBS
742CAIRO_SVG_CFLAGS
743RSVG_LIBS
744RSVG_CFLAGS
745PNG_LIBS
746PNG_DELEGATE_FALSE
747PNG_DELEGATE_TRUE
748OPENEXR_DELEGATE_FALSE
749OPENEXR_DELEGATE_TRUE
750OPENEXR_LIBS
751OPENEXR_CFLAGS
752LQR_DELEGATE_FALSE
753LQR_DELEGATE_TRUE
754LQR_LIBS
755LQR_CFLAGS
756LCMS_LIBS
757LCMS_DELEGATE_FALSE
758LCMS_DELEGATE_TRUE
759JP2_LIBS
760JP2_DELEGATE_FALSE
761JP2_DELEGATE_TRUE
762JPEG_LIBS
763JPEG_DELEGATE_FALSE
764JPEG_DELEGATE_TRUE
765JBIG_LIBS
766JBIG_DELEGATE_FALSE
767JBIG_DELEGATE_TRUE
768GVC_DELEGATE_FALSE
769GVC_DELEGATE_TRUE
770GVC_LIBS
771GVC_CFLAGS
772GS_LIBS
773GS_DELEGATE_FALSE
774GS_DELEGATE_TRUE
775FREETYPE_LIBS
776FREETYPE_DELEGATE_FALSE
777FREETYPE_DELEGATE_TRUE
778freetype_config
779FONTCONFIG_DELEGATE_FALSE
780FONTCONFIG_DELEGATE_TRUE
781FONTCONFIG_LIBS
782FONTCONFIG_CFLAGS
783FPX_LIBS
784FPX_DELEGATE_FALSE
785FPX_DELEGATE_TRUE
786FFTW_LIBS
787FFTW_DELEGATE_FALSE
788FFTW_DELEGATE_TRUE
789DJVU_LIBS
790DJVU_DELEGATE_FALSE
791DJVU_DELEGATE_TRUE
792DPS_LIBS
793DPS_DELEGATE_FALSE
794DPS_DELEGATE_TRUE
795AUTOTRACE_DELEGATE_FALSE
796AUTOTRACE_DELEGATE_TRUE
797AUTOTRACE_LIBS
798AUTOTRACE_CFLAGS
799LIB_DL
800ZLIB_LIBS
801ZLIB_DELEGATE_FALSE
802ZLIB_DELEGATE_TRUE
803XEXT_LIBS
804X11_LIBS
805X11_DELEGATE_FALSE
806X11_DELEGATE_TRUE
807X_EXTRA_LIBS
808X_LIBS
809X_PRE_LIBS
810X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000811XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000812BZLIB_LIBS
813BZLIB_DELEGATE_FALSE
814BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000815CCMALLOCDelegate
816UMEM_LIBS
817HasUMEM_FALSE
818HasUMEM_TRUE
819THREAD_LIBS
820GOMP_LIBS
821WITH_MAGICK_PLUS_PLUS_FALSE
822WITH_MAGICK_PLUS_PLUS_TRUE
823OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000824MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000825POW_LIB
826LIBOBJS
827UINTPTR_T
828UINTMAX_T
829UINT64_T
830INT64_T
831UINT32_T
832INT32_T
833UINT16_T
834INT16_T
835UINT8_T
836INT8_T
837LIBRARY_EXTRA_CPPFLAGS
838MODULE_EXTRA_CPPFLAGS
839LIBSTDCLDFLAGS
840PERL_MAKE_OPTIONS
841QUANTUM_DEPTH
842MAINT
843MAINTAINER_MODE_FALSE
844MAINTAINER_MODE_TRUE
845MAGICK_HDRI
846DLLDFLAGS
847WITH_LTDL_FALSE
848WITH_LTDL_TRUE
849WITH_MODULES_FALSE
850WITH_MODULES_TRUE
cristyfa112112010-01-04 17:48:07 +0000851WITH_SHARED_LIBS_FALSE
852WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000853LTDLOPEN
854LT_CONFIG_H
855CONVENIENCE_LTDL_FALSE
856CONVENIENCE_LTDL_TRUE
857INSTALL_LTDL_FALSE
858INSTALL_LTDL_TRUE
859ARGZ_H
860sys_symbol_underscore
861LIBADD_DL
862LT_DLPREOPEN
863LIBADD_DLD_LINK
864LIBADD_SHL_LOAD
865LIBADD_DLOPEN
866LT_DLLOADERS
867INCLTDL
868LTDLINCL
869LTDLDEPS
870LIBLTDL
871LIBTOOL_DEPS
872CXXCPP
873OTOOL64
874OTOOL
875LIPO
876NMEDIT
877DSYMUTIL
cristy4dc44432009-12-30 23:30:06 +0000878RANLIB
cristy3ed852e2009-09-05 21:47:34 +0000879AR
880NM
881ac_ct_DUMPBIN
882DUMPBIN
883LIBTOOL
884OBJDUMP
885DLLTOOL
886AS
887LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +0000888CL_LIBS
889CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000890OPENMP_CFLAGS
891PTHREAD_CFLAGS
892PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000893PTHREAD_CC
cristy964cb7f2010-04-25 23:18:00 +0000894ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000895WinPathScript
896USING_CL_FALSE
897USING_CL_TRUE
898CYGWIN_BUILD_FALSE
899CYGWIN_BUILD_TRUE
900WIN32_NATIVE_BUILD_FALSE
901WIN32_NATIVE_BUILD_TRUE
902WINGDI32_DELEGATE_FALSE
903WINGDI32_DELEGATE_TRUE
904GDI32_LIBS
905PKG_CONFIG
906LN_S
cristy3ed852e2009-09-05 21:47:34 +0000907LD
908FGREP
cristy3ed852e2009-09-05 21:47:34 +0000909SED
cristy95646052009-11-28 23:05:30 +0000910am__fastdepCXX_FALSE
911am__fastdepCXX_TRUE
912CXXDEPMODE
913ac_ct_CXX
914CXXFLAGS
915CXX
cristya0b81c32010-01-22 02:54:33 +0000916EGREP
917GREP
918CPP
cristy3ed852e2009-09-05 21:47:34 +0000919am__fastdepCC_FALSE
920am__fastdepCC_TRUE
921CCDEPMODE
922AMDEPBACKSLASH
923AMDEP_FALSE
924AMDEP_TRUE
925am__quote
926am__include
927DEPDIR
928OBJEXT
929EXEEXT
930ac_ct_CC
931CPPFLAGS
932LDFLAGS
933CFLAGS
934CC
935DIRSEP
936MAGICK_FILTER_MODULE_PATH
937MAGICK_CONFIGURE_BUILD_PATH
938MAGICK_CONFIGURE_SRC_PATH
939MAGICK_CODER_MODULE_PATH
940MAN_DIR
941INFO_DIR
942PERSISTINCLUDE_DIR
943INCLUDE_DIR
944LIB_DIR
945LOCALSTATE_DIR
946SHAREDSTATE_DIR
947SYSCONF_DIR
948DATA_DIR
949LIBEXEC_DIR
950SBIN_DIR
951BIN_DIR
952EXEC_PREFIX_DIR
953PREFIX_DIR
954CONFIG_STATUS_DEPENDENCIES
955MAGICK_LIB_VERSION_NUMBER
956MAGICK_LIB_VERSION_TEXT
957MAGICK_LIB_VERSION
958AM_BACKSLASH
959AM_DEFAULT_VERBOSITY
960am__untar
961am__tar
962AMTAR
963am__leading_dot
964SET_MAKE
965AWK
966mkdir_p
967MKDIR_P
968INSTALL_STRIP_PROGRAM
969STRIP
970install_sh
971MAKEINFO
972AUTOHEADER
973AUTOMAKE
974AUTOCONF
975ACLOCAL
976VERSION
977PACKAGE
978CYGPATH_W
979am__isrc
980INSTALL_DATA
981INSTALL_SCRIPT
982INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +0000983PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +0000984PACKAGE_RELEASE_DATE
985PACKAGE_LIB_VERSION_NUMBER
986PACKAGE_LIB_VERSION
987PACKAGE_CHANGE_DATE
988PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +0000989MAGICK_LIBRARY_VERSION_INFO
990MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +0000991MAGICK_LIBRARY_AGE
992MAGICK_LIBRARY_REVISION
993MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +0000994MAGICK_TARGET_OS
995MAGICK_TARGET_VENDOR
996MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +0000997target_os
998target_vendor
999target_cpu
1000target
1001host_os
1002host_vendor
1003host_cpu
1004host
1005build_os
1006build_vendor
1007build_cpu
1008build
1009CONFIGURE_ARGS
1010DISTCHECK_CONFIG_FLAGS
1011target_alias
1012host_alias
1013build_alias
1014LIBS
1015ECHO_T
1016ECHO_N
1017ECHO_C
1018DEFS
1019mandir
1020localedir
1021libdir
1022psdir
1023pdfdir
1024dvidir
1025htmldir
1026infodir
1027docdir
1028oldincludedir
1029includedir
1030localstatedir
1031sharedstatedir
1032sysconfdir
1033datadir
1034datarootdir
1035libexecdir
1036sbindir
1037bindir
1038program_transform_name
1039prefix
1040exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001041PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001042PACKAGE_BUGREPORT
1043PACKAGE_STRING
1044PACKAGE_VERSION
1045PACKAGE_TARNAME
1046PACKAGE_NAME
1047PATH_SEPARATOR
1048SHELL'
1049ac_subst_files=''
1050ac_user_opts='
1051enable_option_checking
1052enable_silent_rules
1053enable_dependency_tracking
1054with_gnu_ld
cristy3ed852e2009-09-05 21:47:34 +00001055with_dmalloc
1056enable_bounds_checking
1057enable_osx_universal_binary
1058with_threads
1059enable_openmp
cristy43596fe2010-01-21 16:46:08 +00001060enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001061enable_largefile
1062enable_shared
1063enable_static
1064with_pic
1065enable_fast_install
1066enable_libtool_lock
1067with_included_ltdl
1068with_ltdl_include
1069with_ltdl_lib
1070enable_ltdl_install
1071with_modules
1072enable_delegate_build
1073enable_deprecated
1074enable_installed
1075enable_cipher
1076enable_embeddable
1077enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001078enable_assert
1079enable_maintainer_mode
1080enable_ccmalloc
1081enable_efence
1082enable_prof
1083enable_gprof
1084enable_gcov
1085with_method_prefix
1086with_quantum_depth
1087with_cache
1088with_frozenpaths
1089with_magick_plus_plus
1090with_perl
1091with_perl_options
1092with_umem
1093with_libstdc
1094with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001095with_x
cristy3ed852e2009-09-05 21:47:34 +00001096with_zlib
1097with_autotrace
1098with_dps
1099with_djvu
cristy430a7312010-01-21 20:44:04 +00001100with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001101with_fftw
1102with_fpx
1103with_fontconfig
1104with_freetype
1105with_gslib
1106with_fontpath
1107with_gs_font_dir
1108with_gvc
1109with_jbig
1110with_jpeg
1111with_jp2
1112with_lcms
cristy71203402010-06-18 13:12:03 +00001113with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001114with_lqr
1115with_openexr
1116with_png
1117with_rsvg
1118with_tiff
1119with_windows_font_dir
1120with_wmf
1121with_xml
1122'
1123 ac_precious_vars='build_alias
1124host_alias
1125target_alias
1126CC
1127CFLAGS
1128LDFLAGS
1129LIBS
1130CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001131CPP
cristy3ed852e2009-09-05 21:47:34 +00001132CXX
1133CXXFLAGS
1134CCC
1135PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001136CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001137XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001138AUTOTRACE_CFLAGS
1139AUTOTRACE_LIBS
1140FONTCONFIG_CFLAGS
1141FONTCONFIG_LIBS
1142GVC_CFLAGS
1143GVC_LIBS
1144LQR_CFLAGS
1145LQR_LIBS
1146OPENEXR_CFLAGS
1147OPENEXR_LIBS
1148RSVG_CFLAGS
1149RSVG_LIBS
1150CAIRO_SVG_CFLAGS
1151CAIRO_SVG_LIBS'
1152
1153
1154# Initialize some variables set by options.
1155ac_init_help=
1156ac_init_version=false
1157ac_unrecognized_opts=
1158ac_unrecognized_sep=
1159# The variables have the same names as the options, with
1160# dashes changed to underlines.
1161cache_file=/dev/null
1162exec_prefix=NONE
1163no_create=
1164no_recursion=
1165prefix=NONE
1166program_prefix=NONE
1167program_suffix=NONE
1168program_transform_name=s,x,x,
1169silent=
1170site=
1171srcdir=
1172verbose=
1173x_includes=NONE
1174x_libraries=NONE
1175
1176# Installation directory options.
1177# These are left unexpanded so users can "make install exec_prefix=/foo"
1178# and all the variables that are supposed to be based on exec_prefix
1179# by default will actually change.
1180# Use braces instead of parens because sh, perl, etc. also accept them.
1181# (The list follows the same order as the GNU Coding Standards.)
1182bindir='${exec_prefix}/bin'
1183sbindir='${exec_prefix}/sbin'
1184libexecdir='${exec_prefix}/libexec'
1185datarootdir='${prefix}/share'
1186datadir='${datarootdir}'
1187sysconfdir='${prefix}/etc'
1188sharedstatedir='${prefix}/com'
1189localstatedir='${prefix}/var'
1190includedir='${prefix}/include'
1191oldincludedir='/usr/include'
1192docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1193infodir='${datarootdir}/info'
1194htmldir='${docdir}'
1195dvidir='${docdir}'
1196pdfdir='${docdir}'
1197psdir='${docdir}'
1198libdir='${exec_prefix}/lib'
1199localedir='${datarootdir}/locale'
1200mandir='${datarootdir}/man'
1201
1202ac_prev=
1203ac_dashdash=
1204for ac_option
1205do
1206 # If the previous option needs an argument, assign it.
1207 if test -n "$ac_prev"; then
1208 eval $ac_prev=\$ac_option
1209 ac_prev=
1210 continue
1211 fi
1212
1213 case $ac_option in
1214 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1215 *) ac_optarg=yes ;;
1216 esac
1217
1218 # Accept the important Cygnus configure options, so we can diagnose typos.
1219
1220 case $ac_dashdash$ac_option in
1221 --)
1222 ac_dashdash=yes ;;
1223
1224 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1225 ac_prev=bindir ;;
1226 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1227 bindir=$ac_optarg ;;
1228
1229 -build | --build | --buil | --bui | --bu)
1230 ac_prev=build_alias ;;
1231 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1232 build_alias=$ac_optarg ;;
1233
1234 -cache-file | --cache-file | --cache-fil | --cache-fi \
1235 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1236 ac_prev=cache_file ;;
1237 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1238 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1239 cache_file=$ac_optarg ;;
1240
1241 --config-cache | -C)
1242 cache_file=config.cache ;;
1243
1244 -datadir | --datadir | --datadi | --datad)
1245 ac_prev=datadir ;;
1246 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1247 datadir=$ac_optarg ;;
1248
1249 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1250 | --dataroo | --dataro | --datar)
1251 ac_prev=datarootdir ;;
1252 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1253 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1254 datarootdir=$ac_optarg ;;
1255
1256 -disable-* | --disable-*)
1257 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyfd9dcd42010-08-08 18:07:02 +00001260 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001261 ac_useropt_orig=$ac_useropt
1262 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263 case $ac_user_opts in
1264 *"
1265"enable_$ac_useropt"
1266"*) ;;
1267 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1268 ac_unrecognized_sep=', ';;
1269 esac
1270 eval enable_$ac_useropt=no ;;
1271
1272 -docdir | --docdir | --docdi | --doc | --do)
1273 ac_prev=docdir ;;
1274 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1275 docdir=$ac_optarg ;;
1276
1277 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1278 ac_prev=dvidir ;;
1279 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1280 dvidir=$ac_optarg ;;
1281
1282 -enable-* | --enable-*)
1283 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyfd9dcd42010-08-08 18:07:02 +00001286 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1290 *"
1291"enable_$ac_useropt"
1292"*) ;;
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1295 esac
1296 eval enable_$ac_useropt=\$ac_optarg ;;
1297
1298 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1299 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1300 | --exec | --exe | --ex)
1301 ac_prev=exec_prefix ;;
1302 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1303 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1304 | --exec=* | --exe=* | --ex=*)
1305 exec_prefix=$ac_optarg ;;
1306
1307 -gas | --gas | --ga | --g)
1308 # Obsolete; use --with-gas.
1309 with_gas=yes ;;
1310
1311 -help | --help | --hel | --he | -h)
1312 ac_init_help=long ;;
1313 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1314 ac_init_help=recursive ;;
1315 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1316 ac_init_help=short ;;
1317
1318 -host | --host | --hos | --ho)
1319 ac_prev=host_alias ;;
1320 -host=* | --host=* | --hos=* | --ho=*)
1321 host_alias=$ac_optarg ;;
1322
1323 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1324 ac_prev=htmldir ;;
1325 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1326 | --ht=*)
1327 htmldir=$ac_optarg ;;
1328
1329 -includedir | --includedir | --includedi | --included | --include \
1330 | --includ | --inclu | --incl | --inc)
1331 ac_prev=includedir ;;
1332 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1333 | --includ=* | --inclu=* | --incl=* | --inc=*)
1334 includedir=$ac_optarg ;;
1335
1336 -infodir | --infodir | --infodi | --infod | --info | --inf)
1337 ac_prev=infodir ;;
1338 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1339 infodir=$ac_optarg ;;
1340
1341 -libdir | --libdir | --libdi | --libd)
1342 ac_prev=libdir ;;
1343 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1344 libdir=$ac_optarg ;;
1345
1346 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1347 | --libexe | --libex | --libe)
1348 ac_prev=libexecdir ;;
1349 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1350 | --libexe=* | --libex=* | --libe=*)
1351 libexecdir=$ac_optarg ;;
1352
1353 -localedir | --localedir | --localedi | --localed | --locale)
1354 ac_prev=localedir ;;
1355 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1356 localedir=$ac_optarg ;;
1357
1358 -localstatedir | --localstatedir | --localstatedi | --localstated \
1359 | --localstate | --localstat | --localsta | --localst | --locals)
1360 ac_prev=localstatedir ;;
1361 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1362 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1363 localstatedir=$ac_optarg ;;
1364
1365 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1366 ac_prev=mandir ;;
1367 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1368 mandir=$ac_optarg ;;
1369
1370 -nfp | --nfp | --nf)
1371 # Obsolete; use --without-fp.
1372 with_fp=no ;;
1373
1374 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1375 | --no-cr | --no-c | -n)
1376 no_create=yes ;;
1377
1378 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1379 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1380 no_recursion=yes ;;
1381
1382 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1383 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1384 | --oldin | --oldi | --old | --ol | --o)
1385 ac_prev=oldincludedir ;;
1386 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1387 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1388 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1389 oldincludedir=$ac_optarg ;;
1390
1391 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1392 ac_prev=prefix ;;
1393 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1394 prefix=$ac_optarg ;;
1395
1396 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1397 | --program-pre | --program-pr | --program-p)
1398 ac_prev=program_prefix ;;
1399 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1400 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1401 program_prefix=$ac_optarg ;;
1402
1403 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1404 | --program-suf | --program-su | --program-s)
1405 ac_prev=program_suffix ;;
1406 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1407 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1408 program_suffix=$ac_optarg ;;
1409
1410 -program-transform-name | --program-transform-name \
1411 | --program-transform-nam | --program-transform-na \
1412 | --program-transform-n | --program-transform- \
1413 | --program-transform | --program-transfor \
1414 | --program-transfo | --program-transf \
1415 | --program-trans | --program-tran \
1416 | --progr-tra | --program-tr | --program-t)
1417 ac_prev=program_transform_name ;;
1418 -program-transform-name=* | --program-transform-name=* \
1419 | --program-transform-nam=* | --program-transform-na=* \
1420 | --program-transform-n=* | --program-transform-=* \
1421 | --program-transform=* | --program-transfor=* \
1422 | --program-transfo=* | --program-transf=* \
1423 | --program-trans=* | --program-tran=* \
1424 | --progr-tra=* | --program-tr=* | --program-t=*)
1425 program_transform_name=$ac_optarg ;;
1426
1427 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1428 ac_prev=pdfdir ;;
1429 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1430 pdfdir=$ac_optarg ;;
1431
1432 -psdir | --psdir | --psdi | --psd | --ps)
1433 ac_prev=psdir ;;
1434 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1435 psdir=$ac_optarg ;;
1436
1437 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1438 | -silent | --silent | --silen | --sile | --sil)
1439 silent=yes ;;
1440
1441 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1442 ac_prev=sbindir ;;
1443 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1444 | --sbi=* | --sb=*)
1445 sbindir=$ac_optarg ;;
1446
1447 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1448 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1449 | --sharedst | --shareds | --shared | --share | --shar \
1450 | --sha | --sh)
1451 ac_prev=sharedstatedir ;;
1452 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1453 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1454 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1455 | --sha=* | --sh=*)
1456 sharedstatedir=$ac_optarg ;;
1457
1458 -site | --site | --sit)
1459 ac_prev=site ;;
1460 -site=* | --site=* | --sit=*)
1461 site=$ac_optarg ;;
1462
1463 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1464 ac_prev=srcdir ;;
1465 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1466 srcdir=$ac_optarg ;;
1467
1468 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1469 | --syscon | --sysco | --sysc | --sys | --sy)
1470 ac_prev=sysconfdir ;;
1471 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1472 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1473 sysconfdir=$ac_optarg ;;
1474
1475 -target | --target | --targe | --targ | --tar | --ta | --t)
1476 ac_prev=target_alias ;;
1477 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1478 target_alias=$ac_optarg ;;
1479
1480 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1481 verbose=yes ;;
1482
1483 -version | --version | --versio | --versi | --vers | -V)
1484 ac_init_version=: ;;
1485
1486 -with-* | --with-*)
1487 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1488 # Reject names that are not valid shell variable names.
1489 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyfd9dcd42010-08-08 18:07:02 +00001490 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001491 ac_useropt_orig=$ac_useropt
1492 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1493 case $ac_user_opts in
1494 *"
1495"with_$ac_useropt"
1496"*) ;;
1497 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1498 ac_unrecognized_sep=', ';;
1499 esac
1500 eval with_$ac_useropt=\$ac_optarg ;;
1501
1502 -without-* | --without-*)
1503 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1504 # Reject names that are not valid shell variable names.
1505 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristyfd9dcd42010-08-08 18:07:02 +00001506 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001507 ac_useropt_orig=$ac_useropt
1508 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1509 case $ac_user_opts in
1510 *"
1511"with_$ac_useropt"
1512"*) ;;
1513 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1514 ac_unrecognized_sep=', ';;
1515 esac
1516 eval with_$ac_useropt=no ;;
1517
1518 --x)
1519 # Obsolete; use --with-x.
1520 with_x=yes ;;
1521
1522 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1523 | --x-incl | --x-inc | --x-in | --x-i)
1524 ac_prev=x_includes ;;
1525 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1526 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1527 x_includes=$ac_optarg ;;
1528
1529 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1530 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1531 ac_prev=x_libraries ;;
1532 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1533 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1534 x_libraries=$ac_optarg ;;
1535
cristyfd9dcd42010-08-08 18:07:02 +00001536 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1537Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001538 ;;
1539
1540 *=*)
1541 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1542 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001543 case $ac_envvar in #(
1544 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristyfd9dcd42010-08-08 18:07:02 +00001545 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001546 esac
cristy3ed852e2009-09-05 21:47:34 +00001547 eval $ac_envvar=\$ac_optarg
1548 export $ac_envvar ;;
1549
1550 *)
1551 # FIXME: should be removed in autoconf 3.0.
1552 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1553 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1554 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1555 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1556 ;;
1557
1558 esac
1559done
1560
1561if test -n "$ac_prev"; then
1562 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristyfd9dcd42010-08-08 18:07:02 +00001563 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001564fi
1565
1566if test -n "$ac_unrecognized_opts"; then
1567 case $enable_option_checking in
1568 no) ;;
cristyfd9dcd42010-08-08 18:07:02 +00001569 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001570 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1571 esac
1572fi
1573
1574# Check all directory arguments for consistency.
1575for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1576 datadir sysconfdir sharedstatedir localstatedir includedir \
1577 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1578 libdir localedir mandir
1579do
1580 eval ac_val=\$$ac_var
1581 # Remove trailing slashes.
1582 case $ac_val in
1583 */ )
1584 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1585 eval $ac_var=\$ac_val;;
1586 esac
1587 # Be sure to have absolute directory names.
1588 case $ac_val in
1589 [\\/$]* | ?:[\\/]* ) continue;;
1590 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1591 esac
cristyfd9dcd42010-08-08 18:07:02 +00001592 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001593done
1594
1595# There might be people who depend on the old broken behavior: `$host'
1596# used to hold the argument of --host etc.
1597# FIXME: To remove some day.
1598build=$build_alias
1599host=$host_alias
1600target=$target_alias
1601
1602# FIXME: To remove some day.
1603if test "x$host_alias" != x; then
1604 if test "x$build_alias" = x; then
1605 cross_compiling=maybe
cristyfd9dcd42010-08-08 18:07:02 +00001606 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1607 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001608 elif test "x$build_alias" != "x$host_alias"; then
1609 cross_compiling=yes
1610 fi
1611fi
1612
1613ac_tool_prefix=
1614test -n "$host_alias" && ac_tool_prefix=$host_alias-
1615
1616test "$silent" = yes && exec 6>/dev/null
1617
1618
1619ac_pwd=`pwd` && test -n "$ac_pwd" &&
1620ac_ls_di=`ls -di .` &&
1621ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristyfd9dcd42010-08-08 18:07:02 +00001622 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001623test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristyfd9dcd42010-08-08 18:07:02 +00001624 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001625
1626
1627# Find the source files, if location was not specified.
1628if test -z "$srcdir"; then
1629 ac_srcdir_defaulted=yes
1630 # Try the directory containing this script, then the parent directory.
1631 ac_confdir=`$as_dirname -- "$as_myself" ||
1632$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1633 X"$as_myself" : 'X\(//\)[^/]' \| \
1634 X"$as_myself" : 'X\(//\)$' \| \
1635 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1636$as_echo X"$as_myself" |
1637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1638 s//\1/
1639 q
1640 }
1641 /^X\(\/\/\)[^/].*/{
1642 s//\1/
1643 q
1644 }
1645 /^X\(\/\/\)$/{
1646 s//\1/
1647 q
1648 }
1649 /^X\(\/\).*/{
1650 s//\1/
1651 q
1652 }
1653 s/.*/./; q'`
1654 srcdir=$ac_confdir
1655 if test ! -r "$srcdir/$ac_unique_file"; then
1656 srcdir=..
1657 fi
1658else
1659 ac_srcdir_defaulted=no
1660fi
1661if test ! -r "$srcdir/$ac_unique_file"; then
1662 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristyfd9dcd42010-08-08 18:07:02 +00001663 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001664fi
1665ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1666ac_abs_confdir=`(
cristyfd9dcd42010-08-08 18:07:02 +00001667 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001668 pwd)`
1669# When building in place, set srcdir=.
1670if test "$ac_abs_confdir" = "$ac_pwd"; then
1671 srcdir=.
1672fi
1673# Remove unnecessary trailing slashes from srcdir.
1674# Double slashes in file names in object file debugging info
1675# mess up M-x gdb in Emacs.
1676case $srcdir in
1677*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1678esac
1679for ac_var in $ac_precious_vars; do
1680 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1681 eval ac_env_${ac_var}_value=\$${ac_var}
1682 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1683 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1684done
1685
1686#
1687# Report the --help message.
1688#
1689if test "$ac_init_help" = "long"; then
1690 # Omit some internal or obsolete options to make the list less imposing.
1691 # This message is too long to be a string in the A/UX 3.1 sh.
1692 cat <<_ACEOF
cristy56225732010-09-04 23:44:25 +00001693\`configure' configures ImageMagick 6.6.4 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001694
1695Usage: $0 [OPTION]... [VAR=VALUE]...
1696
1697To assign environment variables (e.g., CC, CFLAGS...), specify them as
1698VAR=VALUE. See below for descriptions of some of the useful variables.
1699
1700Defaults for the options are specified in brackets.
1701
1702Configuration:
1703 -h, --help display this help and exit
1704 --help=short display options specific to this package
1705 --help=recursive display the short help of all the included packages
1706 -V, --version display version information and exit
cristyfd9dcd42010-08-08 18:07:02 +00001707 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001708 --cache-file=FILE cache test results in FILE [disabled]
1709 -C, --config-cache alias for \`--cache-file=config.cache'
1710 -n, --no-create do not create output files
1711 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1712
1713Installation directories:
1714 --prefix=PREFIX install architecture-independent files in PREFIX
1715 [$ac_default_prefix]
1716 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1717 [PREFIX]
1718
1719By default, \`make install' will install all the files in
1720\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1721an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1722for instance \`--prefix=\$HOME'.
1723
1724For better control, use the options below.
1725
1726Fine tuning of the installation directories:
1727 --bindir=DIR user executables [EPREFIX/bin]
1728 --sbindir=DIR system admin executables [EPREFIX/sbin]
1729 --libexecdir=DIR program executables [EPREFIX/libexec]
1730 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1731 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1732 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1733 --libdir=DIR object code libraries [EPREFIX/lib]
1734 --includedir=DIR C header files [PREFIX/include]
1735 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1736 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1737 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1738 --infodir=DIR info documentation [DATAROOTDIR/info]
1739 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1740 --mandir=DIR man documentation [DATAROOTDIR/man]
1741 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1742 --htmldir=DIR html documentation [DOCDIR]
1743 --dvidir=DIR dvi documentation [DOCDIR]
1744 --pdfdir=DIR pdf documentation [DOCDIR]
1745 --psdir=DIR ps documentation [DOCDIR]
1746_ACEOF
1747
1748 cat <<\_ACEOF
1749
1750Program names:
1751 --program-prefix=PREFIX prepend PREFIX to installed program names
1752 --program-suffix=SUFFIX append SUFFIX to installed program names
1753 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1754
1755X features:
1756 --x-includes=DIR X include files are in DIR
1757 --x-libraries=DIR X library files are in DIR
1758
1759System types:
1760 --build=BUILD configure for building on BUILD [guessed]
1761 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1762 --target=TARGET configure for building compilers for TARGET [HOST]
1763_ACEOF
1764fi
1765
1766if test -n "$ac_init_help"; then
1767 case $ac_init_help in
cristy56225732010-09-04 23:44:25 +00001768 short | recursive ) echo "Configuration of ImageMagick 6.6.4:";;
cristy3ed852e2009-09-05 21:47:34 +00001769 esac
1770 cat <<\_ACEOF
1771
1772Optional Features:
1773 --disable-option-checking ignore unrecognized --enable/--with options
1774 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1775 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1776 --enable-silent-rules less verbose build output (undo: `make V=1')
1777 --disable-silent-rules verbose build output (undo: `make V=0')
1778 --disable-dependency-tracking speeds up one-time build
1779 --enable-dependency-tracking do not reject slow dependency extractors
1780 --bounds-checking enable run-time bounds-checking
1781 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001782 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001783 --disable-openmp do not use OpenMP
cristy43596fe2010-01-21 16:46:08 +00001784 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001785 --disable-largefile omit support for large files
1786 --enable-shared[=PKGS] build shared libraries [default=yes]
1787 --enable-static[=PKGS] build static libraries [default=yes]
1788 --enable-fast-install[=PKGS]
1789 optimize for fast installation [default=yes]
1790 --disable-libtool-lock avoid locking (might break parallel builds)
1791 --enable-ltdl-install install libltdl
1792 --enable-delegate-build look for delegate libraries in build directory
1793 --disable-deprecated exclude deprecated methods in MagickCore and
1794 MagickWand API's
1795 --disable-installed Formally install ImageMagick under PREFIX
1796 --disable-cipher disable enciphering and deciphering image pixels
1797 --enable-embeddable enable self-contained, embeddable,
1798 zero-configuration ImageMagick
1799 --enable-hdri accurately represent the wide range of intensity
1800 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001801 --disable-assert disable assert() statements in build
1802 --enable-maintainer-mode enable make rules and dependencies not useful
1803 (and sometimes confusing) to the casual installer
1804 --enable-ccmalloc enable 'ccmalloc' memory debug support
1805 --enable-efence enable 'efence' memory debug support
1806 --enable-prof enable 'prof' profiling support
1807 --enable-gprof enable 'gprof' profiling support
1808 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001809 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001810
1811Optional Packages:
1812 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1813 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1814 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy3ed852e2009-09-05 21:47:34 +00001815 --with-dmalloc use dmalloc, as in
1816 http://www.dmalloc.com/dmalloc.tar.gz
1817 --without-threads disable threads support
1818 --with-pic try to use only PIC/non-PIC objects [default=use
1819 both]
1820 --with-included-ltdl use the GNU ltdl sources included here
1821 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1822 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1823 --with-modules enable building dynamically loadable modules
1824 --with-method-prefix=PREFIX
1825 prefix MagickCore API methods
1826 --with-quantum-depth=DEPTH
1827 number of bits in a pixel quantum (default 16)
1828 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1829 memory)
1830 --with-frozenpaths freeze delegate paths
1831 --without-magick-plus-plus
1832 disable build/install of Magick++
1833 --with-perl enable build/install of PerlMagick
1834 --with-perl-options=OPTIONS
1835 options to pass on command-line when generating
1836 PerlMagick's build file
1837 --with-umem enable umem memory allocation library support
1838 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1839 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001840 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001841 --without-zlib disable ZLIB support
1842 --with-autotrace enable autotrace support
1843 --without-dps disable Display Postscript support
1844 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001845 --with-dejavu-font-dir=DIR
1846 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001847 --without-fftw disable FFTW support
1848 --without-fpx disable FlashPIX support
1849 --without-fontconfig disable fontconfig support
1850 --without-freetype disable Freetype support
1851 --without-gslib enable Ghostscript library support
1852 --with-fontpath=DIR prepend to default font search path
1853 --with-gs-font-dir=DIR Ghostscript font directory
1854 --without-gvc disable GVC support
1855 --without-jbig disable JBIG support
1856 --without-jpeg disable JPEG support
1857 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001858 --without-lcms disable lcms (v1.1X) support
1859 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001860 --without-lqr disable Liquid Rescale support
cristy3ed852e2009-09-05 21:47:34 +00001861 --without-openexr disable OpenEXR support
1862 --without-png disable PNG support
1863 --without-rsvg disable RSVG support
1864 --without-tiff disable TIFF support
1865 --with-windows-font-dir=DIR
1866 directory containing MS-Windows fonts
1867 --without-wmf disable WMF support
1868 --without-xml disable XML support
1869
1870Some influential environment variables:
1871 CC C compiler command
1872 CFLAGS C compiler flags
1873 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1874 nonstandard directory <lib dir>
1875 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001876 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001877 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001878 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001879 CXX C++ compiler command
1880 CXXFLAGS C++ compiler flags
1881 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00001882 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00001883 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00001884 AUTOTRACE_CFLAGS
1885 C compiler flags for AUTOTRACE, overriding pkg-config
1886 AUTOTRACE_LIBS
1887 linker flags for AUTOTRACE, overriding pkg-config
1888 FONTCONFIG_CFLAGS
1889 C compiler flags for FONTCONFIG, overriding pkg-config
1890 FONTCONFIG_LIBS
1891 linker flags for FONTCONFIG, overriding pkg-config
1892 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1893 GVC_LIBS linker flags for GVC, overriding pkg-config
1894 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1895 LQR_LIBS linker flags for LQR, overriding pkg-config
1896 OPENEXR_CFLAGS
1897 C compiler flags for OPENEXR, overriding pkg-config
1898 OPENEXR_LIBS
1899 linker flags for OPENEXR, overriding pkg-config
1900 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1901 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1902 CAIRO_SVG_CFLAGS
1903 C compiler flags for CAIRO_SVG, overriding pkg-config
1904 CAIRO_SVG_LIBS
1905 linker flags for CAIRO_SVG, overriding pkg-config
1906
1907Use these variables to override the choices made by `configure' or to help
1908it to find libraries and programs with nonstandard names/locations.
1909
1910Report bugs to <http://www.imagemagick.org>.
1911_ACEOF
1912ac_status=$?
1913fi
1914
1915if test "$ac_init_help" = "recursive"; then
1916 # If there are subdirs, report their specific --help.
1917 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1918 test -d "$ac_dir" ||
1919 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1920 continue
1921 ac_builddir=.
1922
1923case "$ac_dir" in
1924.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1925*)
1926 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1927 # A ".." for each directory in $ac_dir_suffix.
1928 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1929 case $ac_top_builddir_sub in
1930 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1931 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1932 esac ;;
1933esac
1934ac_abs_top_builddir=$ac_pwd
1935ac_abs_builddir=$ac_pwd$ac_dir_suffix
1936# for backward compatibility:
1937ac_top_builddir=$ac_top_build_prefix
1938
1939case $srcdir in
1940 .) # We are building in place.
1941 ac_srcdir=.
1942 ac_top_srcdir=$ac_top_builddir_sub
1943 ac_abs_top_srcdir=$ac_pwd ;;
1944 [\\/]* | ?:[\\/]* ) # Absolute name.
1945 ac_srcdir=$srcdir$ac_dir_suffix;
1946 ac_top_srcdir=$srcdir
1947 ac_abs_top_srcdir=$srcdir ;;
1948 *) # Relative name.
1949 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1950 ac_top_srcdir=$ac_top_build_prefix$srcdir
1951 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1952esac
1953ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1954
1955 cd "$ac_dir" || { ac_status=$?; continue; }
1956 # Check for guested configure.
1957 if test -f "$ac_srcdir/configure.gnu"; then
1958 echo &&
1959 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1960 elif test -f "$ac_srcdir/configure"; then
1961 echo &&
1962 $SHELL "$ac_srcdir/configure" --help=recursive
1963 else
1964 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1965 fi || ac_status=$?
1966 cd "$ac_pwd" || { ac_status=$?; break; }
1967 done
1968fi
1969
1970test -n "$ac_init_help" && exit $ac_status
1971if $ac_init_version; then
1972 cat <<\_ACEOF
cristy56225732010-09-04 23:44:25 +00001973ImageMagick configure 6.6.4
cristyfd9dcd42010-08-08 18:07:02 +00001974generated by GNU Autoconf 2.66
cristy3ed852e2009-09-05 21:47:34 +00001975
cristyfd9dcd42010-08-08 18:07:02 +00001976Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00001977This configure script is free software; the Free Software Foundation
1978gives unlimited permission to copy, distribute and modify it.
1979_ACEOF
1980 exit
1981fi
cristy8b350f62009-11-15 23:12:43 +00001982
1983## ------------------------ ##
1984## Autoconf initialization. ##
1985## ------------------------ ##
1986
1987# ac_fn_c_try_compile LINENO
1988# --------------------------
1989# Try to compile conftest.$ac_ext, and return whether this succeeded.
1990ac_fn_c_try_compile ()
1991{
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 rm -f conftest.$ac_objext
1994 if { { ac_try="$ac_compile"
1995case "(($ac_try" in
1996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997 *) ac_try_echo=$ac_try;;
1998esac
1999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000$as_echo "$ac_try_echo"; } >&5
2001 (eval "$ac_compile") 2>conftest.err
2002 ac_status=$?
2003 if test -s conftest.err; then
2004 grep -v '^ *+' conftest.err >conftest.er1
2005 cat conftest.er1 >&5
2006 mv -f conftest.er1 conftest.err
2007 fi
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; } && {
2010 test -z "$ac_c_werror_flag" ||
2011 test ! -s conftest.err
2012 } && test -s conftest.$ac_objext; then :
2013 ac_retval=0
2014else
2015 $as_echo "$as_me: failed program was:" >&5
2016sed 's/^/| /' conftest.$ac_ext >&5
2017
2018 ac_retval=1
2019fi
2020 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002021 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002022
2023} # ac_fn_c_try_compile
2024
cristy95646052009-11-28 23:05:30 +00002025# ac_fn_c_try_cpp LINENO
2026# ----------------------
2027# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2028ac_fn_c_try_cpp ()
2029{
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 if { { ac_try="$ac_cpp conftest.$ac_ext"
2032case "(($ac_try" in
2033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2034 *) ac_try_echo=$ac_try;;
2035esac
2036eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2037$as_echo "$ac_try_echo"; } >&5
2038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2039 ac_status=$?
2040 if test -s conftest.err; then
2041 grep -v '^ *+' conftest.err >conftest.er1
2042 cat conftest.er1 >&5
2043 mv -f conftest.er1 conftest.err
2044 fi
2045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2046 test $ac_status = 0; } >/dev/null && {
2047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2048 test ! -s conftest.err
2049 }; then :
2050 ac_retval=0
2051else
2052 $as_echo "$as_me: failed program was:" >&5
2053sed 's/^/| /' conftest.$ac_ext >&5
2054
2055 ac_retval=1
2056fi
2057 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2058 as_fn_set_status $ac_retval
2059
2060} # ac_fn_c_try_cpp
2061
cristy8b350f62009-11-15 23:12:43 +00002062# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2063# -------------------------------------------------------
2064# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2065# the include files in INCLUDES and setting the cache variable VAR
2066# accordingly.
2067ac_fn_c_check_header_mongrel ()
2068{
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyfd9dcd42010-08-08 18:07:02 +00002070 if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072$as_echo_n "checking for $2... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002073if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002074 $as_echo_n "(cached) " >&6
2075fi
2076eval ac_res=\$$3
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078$as_echo "$ac_res" >&6; }
2079else
2080 # Is the header compilable?
2081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2082$as_echo_n "checking $2 usability... " >&6; }
2083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084/* end confdefs.h. */
2085$4
2086#include <$2>
2087_ACEOF
2088if ac_fn_c_try_compile "$LINENO"; then :
2089 ac_header_compiler=yes
2090else
2091 ac_header_compiler=no
2092fi
2093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2095$as_echo "$ac_header_compiler" >&6; }
2096
2097# Is the header present?
2098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2099$as_echo_n "checking $2 presence... " >&6; }
2100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101/* end confdefs.h. */
2102#include <$2>
2103_ACEOF
2104if ac_fn_c_try_cpp "$LINENO"; then :
2105 ac_header_preproc=yes
2106else
2107 ac_header_preproc=no
2108fi
2109rm -f conftest.err conftest.$ac_ext
2110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2111$as_echo "$ac_header_preproc" >&6; }
2112
2113# So? What about this header?
2114case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2115 yes:no: )
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2117$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2119$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2120 ;;
2121 no:yes:* )
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2123$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2125$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2127$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2129$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2131$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00002132( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002133## Report this to http://www.imagemagick.org ##
cristyfd9dcd42010-08-08 18:07:02 +00002134## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002135 ) | sed "s/^/$as_me: WARNING: /" >&2
2136 ;;
2137esac
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139$as_echo_n "checking for $2... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002140if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002141 $as_echo_n "(cached) " >&6
2142else
2143 eval "$3=\$ac_header_compiler"
2144fi
2145eval ac_res=\$$3
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147$as_echo "$ac_res" >&6; }
2148fi
2149 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2150
2151} # ac_fn_c_check_header_mongrel
2152
2153# ac_fn_c_try_run LINENO
2154# ----------------------
2155# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2156# that executables *can* be run.
2157ac_fn_c_try_run ()
2158{
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160 if { { ac_try="$ac_link"
2161case "(($ac_try" in
2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163 *) ac_try_echo=$ac_try;;
2164esac
2165eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2166$as_echo "$ac_try_echo"; } >&5
2167 (eval "$ac_link") 2>&5
2168 ac_status=$?
2169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2171 { { case "(($ac_try" in
2172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2173 *) ac_try_echo=$ac_try;;
2174esac
2175eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2176$as_echo "$ac_try_echo"; } >&5
2177 (eval "$ac_try") 2>&5
2178 ac_status=$?
2179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2180 test $ac_status = 0; }; }; then :
2181 ac_retval=0
2182else
2183 $as_echo "$as_me: program exited with status $ac_status" >&5
2184 $as_echo "$as_me: failed program was:" >&5
2185sed 's/^/| /' conftest.$ac_ext >&5
2186
2187 ac_retval=$ac_status
2188fi
2189 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2190 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002191 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002192
2193} # ac_fn_c_try_run
2194
2195# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2196# -------------------------------------------------------
2197# Tests whether HEADER exists and can be compiled using the include files in
2198# INCLUDES, setting the cache variable VAR accordingly.
2199ac_fn_c_check_header_compile ()
2200{
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2203$as_echo_n "checking for $2... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002204if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002205 $as_echo_n "(cached) " >&6
2206else
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208/* end confdefs.h. */
2209$4
2210#include <$2>
2211_ACEOF
2212if ac_fn_c_try_compile "$LINENO"; then :
2213 eval "$3=yes"
2214else
2215 eval "$3=no"
2216fi
2217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218fi
2219eval ac_res=\$$3
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221$as_echo "$ac_res" >&6; }
2222 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2223
2224} # ac_fn_c_check_header_compile
2225
cristya0b81c32010-01-22 02:54:33 +00002226# ac_fn_cxx_try_compile LINENO
2227# ----------------------------
2228# Try to compile conftest.$ac_ext, and return whether this succeeded.
2229ac_fn_cxx_try_compile ()
2230{
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 rm -f conftest.$ac_objext
2233 if { { ac_try="$ac_compile"
2234case "(($ac_try" in
2235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2236 *) ac_try_echo=$ac_try;;
2237esac
2238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2239$as_echo "$ac_try_echo"; } >&5
2240 (eval "$ac_compile") 2>conftest.err
2241 ac_status=$?
2242 if test -s conftest.err; then
2243 grep -v '^ *+' conftest.err >conftest.er1
2244 cat conftest.er1 >&5
2245 mv -f conftest.er1 conftest.err
2246 fi
2247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2248 test $ac_status = 0; } && {
2249 test -z "$ac_cxx_werror_flag" ||
2250 test ! -s conftest.err
2251 } && test -s conftest.$ac_objext; then :
2252 ac_retval=0
2253else
2254 $as_echo "$as_me: failed program was:" >&5
2255sed 's/^/| /' conftest.$ac_ext >&5
2256
2257 ac_retval=1
2258fi
2259 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2260 as_fn_set_status $ac_retval
2261
2262} # ac_fn_cxx_try_compile
2263
cristy8b350f62009-11-15 23:12:43 +00002264# ac_fn_c_try_link LINENO
2265# -----------------------
2266# Try to link conftest.$ac_ext, and return whether this succeeded.
2267ac_fn_c_try_link ()
2268{
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 rm -f conftest.$ac_objext conftest$ac_exeext
2271 if { { ac_try="$ac_link"
2272case "(($ac_try" in
2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274 *) ac_try_echo=$ac_try;;
2275esac
2276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2277$as_echo "$ac_try_echo"; } >&5
2278 (eval "$ac_link") 2>conftest.err
2279 ac_status=$?
2280 if test -s conftest.err; then
2281 grep -v '^ *+' conftest.err >conftest.er1
2282 cat conftest.er1 >&5
2283 mv -f conftest.er1 conftest.err
2284 fi
2285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2286 test $ac_status = 0; } && {
2287 test -z "$ac_c_werror_flag" ||
2288 test ! -s conftest.err
2289 } && test -s conftest$ac_exeext && {
2290 test "$cross_compiling" = yes ||
2291 $as_test_x conftest$ac_exeext
2292 }; then :
2293 ac_retval=0
2294else
2295 $as_echo "$as_me: failed program was:" >&5
2296sed 's/^/| /' conftest.$ac_ext >&5
2297
2298 ac_retval=1
2299fi
2300 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2301 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2302 # interfere with the next link command; also delete a directory that is
2303 # left behind by Apple's compiler. We do this before executing the actions.
2304 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2305 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002306 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002307
2308} # ac_fn_c_try_link
2309
2310# ac_fn_c_check_func LINENO FUNC VAR
2311# ----------------------------------
2312# Tests whether FUNC exists, setting the cache variable VAR accordingly
2313ac_fn_c_check_func ()
2314{
2315 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2317$as_echo_n "checking for $2... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002318if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002319 $as_echo_n "(cached) " >&6
2320else
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322/* end confdefs.h. */
2323/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2325#define $2 innocuous_$2
2326
2327/* System header to define __stub macros and hopefully few prototypes,
2328 which can conflict with char $2 (); below.
2329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2330 <limits.h> exists even on freestanding compilers. */
2331
2332#ifdef __STDC__
2333# include <limits.h>
2334#else
2335# include <assert.h>
2336#endif
2337
2338#undef $2
2339
2340/* Override any GCC internal prototype to avoid an error.
2341 Use char because int might match the return type of a GCC
2342 builtin and then its argument prototype would still apply. */
2343#ifdef __cplusplus
2344extern "C"
2345#endif
2346char $2 ();
2347/* The GNU C library defines this for functions which it implements
2348 to always fail with ENOSYS. Some functions are actually named
2349 something starting with __ and the normal name is an alias. */
2350#if defined __stub_$2 || defined __stub___$2
2351choke me
2352#endif
2353
2354int
2355main ()
2356{
2357return $2 ();
2358 ;
2359 return 0;
2360}
2361_ACEOF
2362if ac_fn_c_try_link "$LINENO"; then :
2363 eval "$3=yes"
2364else
2365 eval "$3=no"
2366fi
2367rm -f core conftest.err conftest.$ac_objext \
2368 conftest$ac_exeext conftest.$ac_ext
2369fi
2370eval ac_res=\$$3
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2372$as_echo "$ac_res" >&6; }
2373 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2374
2375} # ac_fn_c_check_func
2376
2377# ac_fn_cxx_try_cpp LINENO
2378# ------------------------
2379# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2380ac_fn_cxx_try_cpp ()
2381{
2382 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2383 if { { ac_try="$ac_cpp conftest.$ac_ext"
2384case "(($ac_try" in
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2387esac
2388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2389$as_echo "$ac_try_echo"; } >&5
2390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2391 ac_status=$?
2392 if test -s conftest.err; then
2393 grep -v '^ *+' conftest.err >conftest.er1
2394 cat conftest.er1 >&5
2395 mv -f conftest.er1 conftest.err
2396 fi
2397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2398 test $ac_status = 0; } >/dev/null && {
2399 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2400 test ! -s conftest.err
2401 }; then :
2402 ac_retval=0
2403else
2404 $as_echo "$as_me: failed program was:" >&5
2405sed 's/^/| /' conftest.$ac_ext >&5
2406
2407 ac_retval=1
2408fi
2409 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002410 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002411
2412} # ac_fn_cxx_try_cpp
2413
2414# ac_fn_cxx_try_link LINENO
2415# -------------------------
2416# Try to link conftest.$ac_ext, and return whether this succeeded.
2417ac_fn_cxx_try_link ()
2418{
2419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420 rm -f conftest.$ac_objext conftest$ac_exeext
2421 if { { ac_try="$ac_link"
2422case "(($ac_try" in
2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424 *) ac_try_echo=$ac_try;;
2425esac
2426eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2427$as_echo "$ac_try_echo"; } >&5
2428 (eval "$ac_link") 2>conftest.err
2429 ac_status=$?
2430 if test -s conftest.err; then
2431 grep -v '^ *+' conftest.err >conftest.er1
2432 cat conftest.er1 >&5
2433 mv -f conftest.er1 conftest.err
2434 fi
2435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2436 test $ac_status = 0; } && {
2437 test -z "$ac_cxx_werror_flag" ||
2438 test ! -s conftest.err
2439 } && test -s conftest$ac_exeext && {
2440 test "$cross_compiling" = yes ||
2441 $as_test_x conftest$ac_exeext
2442 }; then :
2443 ac_retval=0
2444else
2445 $as_echo "$as_me: failed program was:" >&5
2446sed 's/^/| /' conftest.$ac_ext >&5
2447
2448 ac_retval=1
2449fi
2450 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2451 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2452 # interfere with the next link command; also delete a directory that is
2453 # left behind by Apple's compiler. We do this before executing the actions.
2454 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2455 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002456 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002457
2458} # ac_fn_cxx_try_link
2459
cristyfd9dcd42010-08-08 18:07:02 +00002460# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2461# ---------------------------------------------
2462# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2463# accordingly.
cristy8b350f62009-11-15 23:12:43 +00002464ac_fn_c_check_decl ()
2465{
2466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyfd9dcd42010-08-08 18:07:02 +00002467 as_decl_name=`echo $2|sed 's/ *(.*//'`
2468 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2470$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2471if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002472 $as_echo_n "(cached) " >&6
2473else
2474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475/* end confdefs.h. */
2476$4
2477int
2478main ()
2479{
cristyfd9dcd42010-08-08 18:07:02 +00002480#ifndef $as_decl_name
2481#ifdef __cplusplus
2482 (void) $as_decl_use;
2483#else
2484 (void) $as_decl_name;
2485#endif
cristy8b350f62009-11-15 23:12:43 +00002486#endif
2487
2488 ;
2489 return 0;
2490}
2491_ACEOF
2492if ac_fn_c_try_compile "$LINENO"; then :
2493 eval "$3=yes"
2494else
2495 eval "$3=no"
2496fi
2497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2498fi
2499eval ac_res=\$$3
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2501$as_echo "$ac_res" >&6; }
2502 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2503
2504} # ac_fn_c_check_decl
2505
2506# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2507# -------------------------------------------
2508# Tests whether TYPE exists after having included INCLUDES, setting cache
2509# variable VAR accordingly.
2510ac_fn_c_check_type ()
2511{
2512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2514$as_echo_n "checking for $2... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002515if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002516 $as_echo_n "(cached) " >&6
2517else
2518 eval "$3=no"
2519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520/* end confdefs.h. */
2521$4
2522int
2523main ()
2524{
2525if (sizeof ($2))
2526 return 0;
2527 ;
2528 return 0;
2529}
2530_ACEOF
2531if ac_fn_c_try_compile "$LINENO"; then :
2532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2533/* end confdefs.h. */
2534$4
2535int
2536main ()
2537{
2538if (sizeof (($2)))
2539 return 0;
2540 ;
2541 return 0;
2542}
2543_ACEOF
2544if ac_fn_c_try_compile "$LINENO"; then :
2545
2546else
2547 eval "$3=yes"
2548fi
2549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2550fi
2551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2552fi
2553eval ac_res=\$$3
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2555$as_echo "$ac_res" >&6; }
2556 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2557
2558} # ac_fn_c_check_type
2559
cristy92703d82010-04-26 00:18:18 +00002560# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2561# ----------------------------------------------------
2562# Tries to find if the field MEMBER exists in type AGGR, after including
2563# INCLUDES, setting cache variable VAR accordingly.
2564ac_fn_c_check_member ()
2565{
2566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2568$as_echo_n "checking for $2.$3... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002569if eval "test \"\${$4+set}\"" = set; then :
cristy92703d82010-04-26 00:18:18 +00002570 $as_echo_n "(cached) " >&6
2571else
2572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573/* end confdefs.h. */
2574$5
2575int
2576main ()
2577{
2578static $2 ac_aggr;
2579if (ac_aggr.$3)
2580return 0;
2581 ;
2582 return 0;
2583}
2584_ACEOF
2585if ac_fn_c_try_compile "$LINENO"; then :
2586 eval "$4=yes"
2587else
2588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589/* end confdefs.h. */
2590$5
2591int
2592main ()
2593{
2594static $2 ac_aggr;
2595if (sizeof ac_aggr.$3)
2596return 0;
2597 ;
2598 return 0;
2599}
2600_ACEOF
2601if ac_fn_c_try_compile "$LINENO"; then :
2602 eval "$4=yes"
2603else
2604 eval "$4=no"
2605fi
2606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607fi
2608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609fi
2610eval ac_res=\$$4
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2612$as_echo "$ac_res" >&6; }
2613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2614
2615} # ac_fn_c_check_member
2616
cristy8b350f62009-11-15 23:12:43 +00002617# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2618# --------------------------------------------
2619# Tries to find the compile-time value of EXPR in a program that includes
2620# INCLUDES, setting VAR accordingly. Returns whether the value could be
2621# computed
2622ac_fn_c_compute_int ()
2623{
2624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2625 if test "$cross_compiling" = yes; then
2626 # Depending upon the size, compute the lo and hi bounds.
2627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2628/* end confdefs.h. */
2629$4
2630int
2631main ()
2632{
2633static int test_array [1 - 2 * !(($2) >= 0)];
2634test_array [0] = 0
2635
2636 ;
2637 return 0;
2638}
2639_ACEOF
2640if ac_fn_c_try_compile "$LINENO"; then :
2641 ac_lo=0 ac_mid=0
2642 while :; do
2643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2644/* end confdefs.h. */
2645$4
2646int
2647main ()
2648{
2649static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2650test_array [0] = 0
2651
2652 ;
2653 return 0;
2654}
2655_ACEOF
2656if ac_fn_c_try_compile "$LINENO"; then :
2657 ac_hi=$ac_mid; break
2658else
2659 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2660 if test $ac_lo -le $ac_mid; then
2661 ac_lo= ac_hi=
2662 break
2663 fi
2664 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2665fi
2666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2667 done
2668else
2669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2670/* end confdefs.h. */
2671$4
2672int
2673main ()
2674{
2675static int test_array [1 - 2 * !(($2) < 0)];
2676test_array [0] = 0
2677
2678 ;
2679 return 0;
2680}
2681_ACEOF
2682if ac_fn_c_try_compile "$LINENO"; then :
2683 ac_hi=-1 ac_mid=-1
2684 while :; do
2685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2686/* end confdefs.h. */
2687$4
2688int
2689main ()
2690{
2691static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2692test_array [0] = 0
2693
2694 ;
2695 return 0;
2696}
2697_ACEOF
2698if ac_fn_c_try_compile "$LINENO"; then :
2699 ac_lo=$ac_mid; break
2700else
2701 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2702 if test $ac_mid -le $ac_hi; then
2703 ac_lo= ac_hi=
2704 break
2705 fi
2706 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2707fi
2708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2709 done
2710else
2711 ac_lo= ac_hi=
2712fi
2713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2714fi
2715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2716# Binary search between lo and hi bounds.
2717while test "x$ac_lo" != "x$ac_hi"; do
2718 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720/* end confdefs.h. */
2721$4
2722int
2723main ()
2724{
2725static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2726test_array [0] = 0
2727
2728 ;
2729 return 0;
2730}
2731_ACEOF
2732if ac_fn_c_try_compile "$LINENO"; then :
2733 ac_hi=$ac_mid
2734else
2735 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2736fi
2737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738done
2739case $ac_lo in #((
2740?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2741'') ac_retval=1 ;;
2742esac
2743 else
2744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745/* end confdefs.h. */
2746$4
2747static long int longval () { return $2; }
2748static unsigned long int ulongval () { return $2; }
2749#include <stdio.h>
2750#include <stdlib.h>
2751int
2752main ()
2753{
2754
2755 FILE *f = fopen ("conftest.val", "w");
2756 if (! f)
2757 return 1;
2758 if (($2) < 0)
2759 {
2760 long int i = longval ();
2761 if (i != ($2))
2762 return 1;
2763 fprintf (f, "%ld", i);
2764 }
2765 else
2766 {
2767 unsigned long int i = ulongval ();
2768 if (i != ($2))
2769 return 1;
2770 fprintf (f, "%lu", i);
2771 }
2772 /* Do not output a trailing newline, as this causes \r\n confusion
2773 on some platforms. */
2774 return ferror (f) || fclose (f) != 0;
2775
2776 ;
2777 return 0;
2778}
2779_ACEOF
2780if ac_fn_c_try_run "$LINENO"; then :
2781 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2782else
2783 ac_retval=1
2784fi
2785rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2786 conftest.$ac_objext conftest.beam conftest.$ac_ext
2787rm -f conftest.val
2788
2789 fi
2790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002791 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002792
2793} # ac_fn_c_compute_int
2794
2795# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2796# ---------------------------------------------------------
2797# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2798# the include files in INCLUDES and setting the cache variable VAR
2799# accordingly.
2800ac_fn_cxx_check_header_mongrel ()
2801{
2802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyfd9dcd42010-08-08 18:07:02 +00002803 if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2805$as_echo_n "checking for $2... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002806if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002807 $as_echo_n "(cached) " >&6
2808fi
2809eval ac_res=\$$3
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2811$as_echo "$ac_res" >&6; }
2812else
2813 # Is the header compilable?
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2815$as_echo_n "checking $2 usability... " >&6; }
2816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817/* end confdefs.h. */
2818$4
2819#include <$2>
2820_ACEOF
2821if ac_fn_cxx_try_compile "$LINENO"; then :
2822 ac_header_compiler=yes
2823else
2824 ac_header_compiler=no
2825fi
2826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2828$as_echo "$ac_header_compiler" >&6; }
2829
2830# Is the header present?
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2832$as_echo_n "checking $2 presence... " >&6; }
2833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2834/* end confdefs.h. */
2835#include <$2>
2836_ACEOF
2837if ac_fn_cxx_try_cpp "$LINENO"; then :
2838 ac_header_preproc=yes
2839else
2840 ac_header_preproc=no
2841fi
2842rm -f conftest.err conftest.$ac_ext
2843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2844$as_echo "$ac_header_preproc" >&6; }
2845
2846# So? What about this header?
2847case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2848 yes:no: )
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2850$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2852$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2853 ;;
2854 no:yes:* )
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2856$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2858$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2860$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2862$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2864$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00002865( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002866## Report this to http://www.imagemagick.org ##
cristyfd9dcd42010-08-08 18:07:02 +00002867## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002868 ) | sed "s/^/$as_me: WARNING: /" >&2
2869 ;;
2870esac
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2872$as_echo_n "checking for $2... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +00002873if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002874 $as_echo_n "(cached) " >&6
2875else
2876 eval "$3=\$ac_header_compiler"
2877fi
2878eval ac_res=\$$3
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2880$as_echo "$ac_res" >&6; }
2881fi
2882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2883
2884} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002885cat >config.log <<_ACEOF
2886This file contains any messages produced by compilers while
2887running configure, to aid debugging if configure makes a mistake.
2888
cristy56225732010-09-04 23:44:25 +00002889It was created by ImageMagick $as_me 6.6.4, which was
cristyfd9dcd42010-08-08 18:07:02 +00002890generated by GNU Autoconf 2.66. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002891
2892 $ $0 $@
2893
2894_ACEOF
2895exec 5>>config.log
2896{
2897cat <<_ASUNAME
2898## --------- ##
2899## Platform. ##
2900## --------- ##
2901
2902hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2903uname -m = `(uname -m) 2>/dev/null || echo unknown`
2904uname -r = `(uname -r) 2>/dev/null || echo unknown`
2905uname -s = `(uname -s) 2>/dev/null || echo unknown`
2906uname -v = `(uname -v) 2>/dev/null || echo unknown`
2907
2908/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2909/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2910
2911/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2912/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2913/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2914/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2915/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2916/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2917/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2918
2919_ASUNAME
2920
2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922for as_dir in $PATH
2923do
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002926 $as_echo "PATH: $as_dir"
2927 done
cristy3ed852e2009-09-05 21:47:34 +00002928IFS=$as_save_IFS
2929
2930} >&5
2931
2932cat >&5 <<_ACEOF
2933
2934
2935## ----------- ##
2936## Core tests. ##
2937## ----------- ##
2938
2939_ACEOF
2940
2941
2942# Keep a trace of the command line.
2943# Strip out --no-create and --no-recursion so they do not pile up.
2944# Strip out --silent because we don't want to record it for future runs.
2945# Also quote any args containing shell meta-characters.
2946# Make two passes to allow for proper duplicate-argument suppression.
2947ac_configure_args=
2948ac_configure_args0=
2949ac_configure_args1=
2950ac_must_keep_next=false
2951for ac_pass in 1 2
2952do
2953 for ac_arg
2954 do
2955 case $ac_arg in
2956 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2957 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2958 | -silent | --silent | --silen | --sile | --sil)
2959 continue ;;
2960 *\'*)
2961 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2962 esac
2963 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00002964 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00002965 2)
cristy8b350f62009-11-15 23:12:43 +00002966 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002967 if test $ac_must_keep_next = true; then
2968 ac_must_keep_next=false # Got value, back to normal.
2969 else
2970 case $ac_arg in
2971 *=* | --config-cache | -C | -disable-* | --disable-* \
2972 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2973 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2974 | -with-* | --with-* | -without-* | --without-* | --x)
2975 case "$ac_configure_args0 " in
2976 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2977 esac
2978 ;;
2979 -* ) ac_must_keep_next=true ;;
2980 esac
2981 fi
cristy8b350f62009-11-15 23:12:43 +00002982 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002983 ;;
2984 esac
2985 done
2986done
cristy8b350f62009-11-15 23:12:43 +00002987{ ac_configure_args0=; unset ac_configure_args0;}
2988{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00002989
2990# When interrupted or exit'd, cleanup temporary files, and complete
2991# config.log. We remove comments because anyway the quotes in there
2992# would cause problems or look ugly.
2993# WARNING: Use '\'' to represent an apostrophe within the trap.
2994# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2995trap 'exit_status=$?
2996 # Save into config.log some information that might help in debugging.
2997 {
2998 echo
2999
cristyfd9dcd42010-08-08 18:07:02 +00003000 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003001## Cache variables. ##
cristyfd9dcd42010-08-08 18:07:02 +00003002## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003003 echo
3004 # The following way of writing the cache mishandles newlines in values,
3005(
3006 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3007 eval ac_val=\$$ac_var
3008 case $ac_val in #(
3009 *${as_nl}*)
3010 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003011 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003012$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3013 esac
3014 case $ac_var in #(
3015 _ | IFS | as_nl) ;; #(
3016 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003017 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003018 esac ;;
3019 esac
3020 done
3021 (set) 2>&1 |
3022 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3023 *${as_nl}ac_space=\ *)
3024 sed -n \
3025 "s/'\''/'\''\\\\'\'''\''/g;
3026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3027 ;; #(
3028 *)
3029 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3030 ;;
3031 esac |
3032 sort
3033)
3034 echo
3035
cristyfd9dcd42010-08-08 18:07:02 +00003036 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003037## Output variables. ##
cristyfd9dcd42010-08-08 18:07:02 +00003038## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003039 echo
3040 for ac_var in $ac_subst_vars
3041 do
3042 eval ac_val=\$$ac_var
3043 case $ac_val in
3044 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3045 esac
3046 $as_echo "$ac_var='\''$ac_val'\''"
3047 done | sort
3048 echo
3049
3050 if test -n "$ac_subst_files"; then
cristyfd9dcd42010-08-08 18:07:02 +00003051 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003052## File substitutions. ##
cristyfd9dcd42010-08-08 18:07:02 +00003053## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003054 echo
3055 for ac_var in $ac_subst_files
3056 do
3057 eval ac_val=\$$ac_var
3058 case $ac_val in
3059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3060 esac
3061 $as_echo "$ac_var='\''$ac_val'\''"
3062 done | sort
3063 echo
3064 fi
3065
3066 if test -s confdefs.h; then
cristyfd9dcd42010-08-08 18:07:02 +00003067 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003068## confdefs.h. ##
cristyfd9dcd42010-08-08 18:07:02 +00003069## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003070 echo
3071 cat confdefs.h
3072 echo
3073 fi
3074 test "$ac_signal" != 0 &&
3075 $as_echo "$as_me: caught signal $ac_signal"
3076 $as_echo "$as_me: exit $exit_status"
3077 } >&5
3078 rm -f core *.core core.conftest.* &&
3079 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3080 exit $exit_status
3081' 0
3082for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003083 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003084done
3085ac_signal=0
3086
3087# confdefs.h avoids OS command line length limits that DEFS can exceed.
3088rm -f -r conftest* confdefs.h
3089
cristy8b350f62009-11-15 23:12:43 +00003090$as_echo "/* confdefs.h */" > confdefs.h
3091
cristy3ed852e2009-09-05 21:47:34 +00003092# Predefined preprocessor variables.
3093
3094cat >>confdefs.h <<_ACEOF
3095#define PACKAGE_NAME "$PACKAGE_NAME"
3096_ACEOF
3097
cristy3ed852e2009-09-05 21:47:34 +00003098cat >>confdefs.h <<_ACEOF
3099#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3100_ACEOF
3101
cristy3ed852e2009-09-05 21:47:34 +00003102cat >>confdefs.h <<_ACEOF
3103#define PACKAGE_VERSION "$PACKAGE_VERSION"
3104_ACEOF
3105
cristy3ed852e2009-09-05 21:47:34 +00003106cat >>confdefs.h <<_ACEOF
3107#define PACKAGE_STRING "$PACKAGE_STRING"
3108_ACEOF
3109
cristy3ed852e2009-09-05 21:47:34 +00003110cat >>confdefs.h <<_ACEOF
3111#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3112_ACEOF
3113
cristy8b350f62009-11-15 23:12:43 +00003114cat >>confdefs.h <<_ACEOF
3115#define PACKAGE_URL "$PACKAGE_URL"
3116_ACEOF
3117
cristy3ed852e2009-09-05 21:47:34 +00003118
3119# Let the site file select an alternate cache file if it wants to.
3120# Prefer an explicitly selected file to automatically selected ones.
3121ac_site_file1=NONE
3122ac_site_file2=NONE
3123if test -n "$CONFIG_SITE"; then
cristyfd9dcd42010-08-08 18:07:02 +00003124 # We do not want a PATH search for config.site.
3125 case $CONFIG_SITE in #((
3126 -*) ac_site_file1=./$CONFIG_SITE;;
3127 */*) ac_site_file1=$CONFIG_SITE;;
3128 *) ac_site_file1=./$CONFIG_SITE;;
3129 esac
cristy3ed852e2009-09-05 21:47:34 +00003130elif test "x$prefix" != xNONE; then
3131 ac_site_file1=$prefix/share/config.site
3132 ac_site_file2=$prefix/etc/config.site
3133else
3134 ac_site_file1=$ac_default_prefix/share/config.site
3135 ac_site_file2=$ac_default_prefix/etc/config.site
3136fi
3137for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3138do
3139 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003140 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003141 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003142$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3143 sed 's/^/| /' "$ac_site_file" >&5
cristyfd9dcd42010-08-08 18:07:02 +00003144 . "$ac_site_file" \
3145 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3147as_fn_error $? "failed to load site script $ac_site_file
3148See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003149 fi
3150done
3151
3152if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003153 # Some versions of bash will fail to source /dev/null (special files
3154 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3155 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003156 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003157$as_echo "$as_me: loading cache $cache_file" >&6;}
3158 case $cache_file in
3159 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3160 *) . "./$cache_file";;
3161 esac
3162 fi
3163else
cristy8b350f62009-11-15 23:12:43 +00003164 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003165$as_echo "$as_me: creating cache $cache_file" >&6;}
3166 >$cache_file
3167fi
3168
cristycd4c5312009-11-22 01:19:08 +00003169as_fn_append ac_header_list " stdlib.h"
3170as_fn_append ac_header_list " unistd.h"
3171as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003172# Check that the precious variables saved in the cache have kept the same
3173# value.
3174ac_cache_corrupted=false
3175for ac_var in $ac_precious_vars; do
3176 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3177 eval ac_new_set=\$ac_env_${ac_var}_set
3178 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3179 eval ac_new_val=\$ac_env_${ac_var}_value
3180 case $ac_old_set,$ac_new_set in
3181 set,)
cristy8b350f62009-11-15 23:12:43 +00003182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003183$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3184 ac_cache_corrupted=: ;;
3185 ,set)
cristy8b350f62009-11-15 23:12:43 +00003186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003187$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3188 ac_cache_corrupted=: ;;
3189 ,);;
3190 *)
3191 if test "x$ac_old_val" != "x$ac_new_val"; then
3192 # differences in whitespace do not lead to failure.
3193 ac_old_val_w=`echo x $ac_old_val`
3194 ac_new_val_w=`echo x $ac_new_val`
3195 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003197$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3198 ac_cache_corrupted=:
3199 else
cristy8b350f62009-11-15 23:12:43 +00003200 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003201$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3202 eval $ac_var=\$ac_old_val
3203 fi
cristy8b350f62009-11-15 23:12:43 +00003204 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003205$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003206 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003207$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3208 fi;;
3209 esac
3210 # Pass precious variables to config.status.
3211 if test "$ac_new_set" = set; then
3212 case $ac_new_val in
3213 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3214 *) ac_arg=$ac_var=$ac_new_val ;;
3215 esac
3216 case " $ac_configure_args " in
3217 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003218 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003219 esac
3220 fi
3221done
3222if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003224$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003226$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00003227 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003228fi
cristy8b350f62009-11-15 23:12:43 +00003229## -------------------- ##
3230## Main body of script. ##
3231## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003232
3233ac_ext=c
3234ac_cpp='$CPP $CPPFLAGS'
3235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238
3239
3240
3241ac_aux_dir=
3242for ac_dir in config "$srcdir"/config; do
cristyfd9dcd42010-08-08 18:07:02 +00003243 if test -f "$ac_dir/install-sh"; then
3244 ac_aux_dir=$ac_dir
3245 ac_install_sh="$ac_aux_dir/install-sh -c"
3246 break
3247 elif test -f "$ac_dir/install.sh"; then
3248 ac_aux_dir=$ac_dir
3249 ac_install_sh="$ac_aux_dir/install.sh -c"
3250 break
3251 elif test -f "$ac_dir/shtool"; then
3252 ac_aux_dir=$ac_dir
3253 ac_install_sh="$ac_aux_dir/shtool install -c"
3254 break
3255 fi
cristy3ed852e2009-09-05 21:47:34 +00003256done
3257if test -z "$ac_aux_dir"; then
cristyfd9dcd42010-08-08 18:07:02 +00003258 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003259fi
3260
3261# These three variables are undocumented and unsupported,
3262# and are intended to be withdrawn in a future Autoconf release.
3263# They can cause serious problems if a builder's source tree is in a directory
3264# whose full name contains unusual characters.
3265ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3266ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3267ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3268
3269
3270
3271
3272ac_config_headers="$ac_config_headers config/config.h"
3273
3274ac_config_commands="$ac_config_commands magick/magick-config.h"
3275
cristy430a7312010-01-21 20:44:04 +00003276ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003277
3278
3279#
3280# Save initial user-tunable values
3281#
3282USER_LIBS=$LIBS
3283for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3284 eval isset=\${$var+set}
3285 if test "$isset" = 'set'; then
3286 eval val=$`echo $var`
3287 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3288 fi
3289done
3290
3291
3292CONFIGURE_ARGS="$0 ${ac_configure_args}"
3293
3294
3295# Source file containing package/library versioning information.
3296. ${srcdir}/version.sh
3297
cristy15a88782010-01-31 23:24:49 +00003298echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003299# Make sure we can run config.sub.
3300$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristyfd9dcd42010-08-08 18:07:02 +00003301 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003302
cristy8b350f62009-11-15 23:12:43 +00003303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003304$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003305if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003306 $as_echo_n "(cached) " >&6
3307else
3308 ac_build_alias=$build_alias
3309test "x$ac_build_alias" = x &&
3310 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3311test "x$ac_build_alias" = x &&
cristyfd9dcd42010-08-08 18:07:02 +00003312 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003313ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristyfd9dcd42010-08-08 18:07:02 +00003314 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003315
3316fi
cristy8b350f62009-11-15 23:12:43 +00003317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003318$as_echo "$ac_cv_build" >&6; }
3319case $ac_cv_build in
3320*-*-*) ;;
cristyfd9dcd42010-08-08 18:07:02 +00003321*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003322esac
3323build=$ac_cv_build
3324ac_save_IFS=$IFS; IFS='-'
3325set x $ac_cv_build
3326shift
3327build_cpu=$1
3328build_vendor=$2
3329shift; shift
3330# Remember, the first character of IFS is used to create $*,
3331# except with old shells:
3332build_os=$*
3333IFS=$ac_save_IFS
3334case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3335
3336
cristy8b350f62009-11-15 23:12:43 +00003337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003338$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003339if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003340 $as_echo_n "(cached) " >&6
3341else
3342 if test "x$host_alias" = x; then
3343 ac_cv_host=$ac_cv_build
3344else
3345 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristyfd9dcd42010-08-08 18:07:02 +00003346 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003347fi
3348
3349fi
cristy8b350f62009-11-15 23:12:43 +00003350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003351$as_echo "$ac_cv_host" >&6; }
3352case $ac_cv_host in
3353*-*-*) ;;
cristyfd9dcd42010-08-08 18:07:02 +00003354*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003355esac
3356host=$ac_cv_host
3357ac_save_IFS=$IFS; IFS='-'
3358set x $ac_cv_host
3359shift
3360host_cpu=$1
3361host_vendor=$2
3362shift; shift
3363# Remember, the first character of IFS is used to create $*,
3364# except with old shells:
3365host_os=$*
3366IFS=$ac_save_IFS
3367case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3368
3369
cristy8b350f62009-11-15 23:12:43 +00003370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003371$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003372if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003373 $as_echo_n "(cached) " >&6
3374else
3375 if test "x$target_alias" = x; then
3376 ac_cv_target=$ac_cv_host
3377else
3378 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristyfd9dcd42010-08-08 18:07:02 +00003379 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003380fi
3381
3382fi
cristy8b350f62009-11-15 23:12:43 +00003383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003384$as_echo "$ac_cv_target" >&6; }
3385case $ac_cv_target in
3386*-*-*) ;;
cristyfd9dcd42010-08-08 18:07:02 +00003387*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003388esac
3389target=$ac_cv_target
3390ac_save_IFS=$IFS; IFS='-'
3391set x $ac_cv_target
3392shift
3393target_cpu=$1
3394target_vendor=$2
3395shift; shift
3396# Remember, the first character of IFS is used to create $*,
3397# except with old shells:
3398target_os=$*
3399IFS=$ac_save_IFS
3400case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3401
3402
3403# The aliases save the names the user supplied, while $host etc.
3404# will get canonicalized.
3405test -n "$target_alias" &&
3406 test "$program_prefix$program_suffix$program_transform_name" = \
3407 NONENONEs,x,x, &&
3408 program_prefix=${target_alias}-
3409
cristy837d6dc2010-02-27 01:16:57 +00003410
3411
3412
3413
cristy3225a072010-04-17 01:47:28 +00003414MAGICK_TARGET_CPU=$target_cpu
3415
3416
3417MAGICK_TARGET_VENDOR=$target_vendor
3418
3419
3420MAGICK_TARGET_OS=$target_os
3421
3422
cristy3ed852e2009-09-05 21:47:34 +00003423# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003424MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3425
3426MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3427
cristy3ed852e2009-09-05 21:47:34 +00003428
3429
3430# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003432$as_echo_n "checking whether build environment is sane... " >&6; }
3433# Just in case
3434sleep 1
3435echo timestamp > conftest.file
3436# Reject unsafe characters in $srcdir or the absolute working directory
3437# name. Accept space and tab only in the latter.
3438am_lf='
3439'
3440case `pwd` in
3441 *[\\\"\#\$\&\'\`$am_lf]*)
cristyfd9dcd42010-08-08 18:07:02 +00003442 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003443esac
3444case $srcdir in
3445 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyfd9dcd42010-08-08 18:07:02 +00003446 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003447esac
3448
3449# Do `set' in a subshell so we don't clobber the current shell's
3450# arguments. Must try -L first in case configure is actually a
3451# symlink; some systems play weird games with the mod time of symlinks
3452# (eg FreeBSD returns the mod time of the symlink's containing
3453# directory).
3454if (
3455 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3456 if test "$*" = "X"; then
3457 # -L didn't work.
3458 set X `ls -t "$srcdir/configure" conftest.file`
3459 fi
3460 rm -f conftest.file
3461 if test "$*" != "X $srcdir/configure conftest.file" \
3462 && test "$*" != "X conftest.file $srcdir/configure"; then
3463
3464 # If neither matched, then we have a broken ls. This can happen
3465 # if, for instance, CONFIG_SHELL is bash and it inherits a
3466 # broken ls alias from the environment. This has actually
3467 # happened. Such a system could not be considered "sane".
cristyfd9dcd42010-08-08 18:07:02 +00003468 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy8b350f62009-11-15 23:12:43 +00003469alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003470 fi
3471
3472 test "$2" = conftest.file
3473 )
3474then
3475 # Ok.
3476 :
3477else
cristyfd9dcd42010-08-08 18:07:02 +00003478 as_fn_error $? "newly created file is older than distributed files!
cristy8b350f62009-11-15 23:12:43 +00003479Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003480fi
cristy8b350f62009-11-15 23:12:43 +00003481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003482$as_echo "yes" >&6; }
3483
3484am__api_version='1.11'
3485
3486# Find a good install program. We prefer a C program (faster),
3487# so one script is as good as another. But avoid the broken or
3488# incompatible versions:
3489# SysV /etc/install, /usr/sbin/install
3490# SunOS /usr/etc/install
3491# IRIX /sbin/install
3492# AIX /bin/install
3493# AmigaOS /C/install, which installs bootblocks on floppy discs
3494# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3495# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3496# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3497# OS/2's system install, which has a completely different semantic
3498# ./install, which can be erroneously created by make from ./install.sh.
3499# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003501$as_echo_n "checking for a BSD-compatible install... " >&6; }
3502if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003503if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003504 $as_echo_n "(cached) " >&6
3505else
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507for as_dir in $PATH
3508do
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003511 # Account for people who put trailing slashes in PATH elements.
3512case $as_dir/ in #((
3513 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003514 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003515 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003516 /usr/ucb/* ) ;;
3517 *)
3518 # OSF1 and SCO ODT 3.0 have their own names for install.
3519 # Don't use installbsd from OSF since it installs stuff as root
3520 # by default.
3521 for ac_prog in ginstall scoinst install; do
3522 for ac_exec_ext in '' $ac_executable_extensions; do
3523 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3524 if test $ac_prog = install &&
3525 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3526 # AIX install. It has an incompatible calling convention.
3527 :
3528 elif test $ac_prog = install &&
3529 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3530 # program-specific install script used by HP pwplus--don't use.
3531 :
3532 else
3533 rm -rf conftest.one conftest.two conftest.dir
3534 echo one > conftest.one
3535 echo two > conftest.two
3536 mkdir conftest.dir
3537 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3538 test -s conftest.one && test -s conftest.two &&
3539 test -s conftest.dir/conftest.one &&
3540 test -s conftest.dir/conftest.two
3541 then
3542 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3543 break 3
3544 fi
3545 fi
3546 fi
3547 done
3548 done
3549 ;;
3550esac
3551
cristy8b350f62009-11-15 23:12:43 +00003552 done
cristy3ed852e2009-09-05 21:47:34 +00003553IFS=$as_save_IFS
3554
3555rm -rf conftest.one conftest.two conftest.dir
3556
3557fi
3558 if test "${ac_cv_path_install+set}" = set; then
3559 INSTALL=$ac_cv_path_install
3560 else
3561 # As a last resort, use the slow shell script. Don't cache a
3562 # value for INSTALL within a source directory, because that will
3563 # break other packages using the cache if that directory is
3564 # removed, or if the value is a relative name.
3565 INSTALL=$ac_install_sh
3566 fi
3567fi
cristy8b350f62009-11-15 23:12:43 +00003568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003569$as_echo "$INSTALL" >&6; }
3570
3571# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3572# It thinks the first close brace ends the variable substitution.
3573test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3574
3575test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3576
3577test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3578
3579test "$program_prefix" != NONE &&
3580 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3581# Use a double $ so make ignores it.
3582test "$program_suffix" != NONE &&
3583 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3584# Double any \ or $.
3585# By default was `s,x,x', remove it if useless.
3586ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3587program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3588
3589# expand $ac_aux_dir to an absolute path
3590am_aux_dir=`cd $ac_aux_dir && pwd`
3591
3592if test x"${MISSING+set}" != xset; then
3593 case $am_aux_dir in
3594 *\ * | *\ *)
3595 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3596 *)
3597 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3598 esac
3599fi
3600# Use eval to expand $SHELL
3601if eval "$MISSING --run true"; then
3602 am_missing_run="$MISSING --run "
3603else
3604 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003606$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3607fi
3608
3609if test x"${install_sh}" != xset; then
3610 case $am_aux_dir in
3611 *\ * | *\ *)
3612 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3613 *)
3614 install_sh="\${SHELL} $am_aux_dir/install-sh"
3615 esac
3616fi
3617
3618# Installed binaries are usually stripped using `strip' when the user
3619# run `make install-strip'. However `strip' might not be the right
3620# tool to use in cross-compilation environments, therefore Automake
3621# will honor the `STRIP' environment variable to overrule this program.
3622if test "$cross_compiling" != no; then
3623 if test -n "$ac_tool_prefix"; then
3624 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3625set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003627$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003628if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003629 $as_echo_n "(cached) " >&6
3630else
3631 if test -n "$STRIP"; then
3632 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3633else
3634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635for as_dir in $PATH
3636do
3637 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003639 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3641 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003643 break 2
3644 fi
3645done
cristy8b350f62009-11-15 23:12:43 +00003646 done
cristy3ed852e2009-09-05 21:47:34 +00003647IFS=$as_save_IFS
3648
3649fi
3650fi
3651STRIP=$ac_cv_prog_STRIP
3652if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003654$as_echo "$STRIP" >&6; }
3655else
cristy8b350f62009-11-15 23:12:43 +00003656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003657$as_echo "no" >&6; }
3658fi
3659
3660
3661fi
3662if test -z "$ac_cv_prog_STRIP"; then
3663 ac_ct_STRIP=$STRIP
3664 # Extract the first word of "strip", so it can be a program name with args.
3665set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003667$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003668if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003669 $as_echo_n "(cached) " >&6
3670else
3671 if test -n "$ac_ct_STRIP"; then
3672 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3673else
3674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675for as_dir in $PATH
3676do
3677 IFS=$as_save_IFS
3678 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003679 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003683 break 2
3684 fi
3685done
cristy8b350f62009-11-15 23:12:43 +00003686 done
cristy3ed852e2009-09-05 21:47:34 +00003687IFS=$as_save_IFS
3688
3689fi
3690fi
3691ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3692if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003694$as_echo "$ac_ct_STRIP" >&6; }
3695else
cristy8b350f62009-11-15 23:12:43 +00003696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003697$as_echo "no" >&6; }
3698fi
3699
3700 if test "x$ac_ct_STRIP" = x; then
3701 STRIP=":"
3702 else
3703 case $cross_compiling:$ac_tool_warned in
3704yes:)
cristy8b350f62009-11-15 23:12:43 +00003705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3707ac_tool_warned=yes ;;
3708esac
3709 STRIP=$ac_ct_STRIP
3710 fi
3711else
3712 STRIP="$ac_cv_prog_STRIP"
3713fi
3714
3715fi
3716INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3717
cristy8b350f62009-11-15 23:12:43 +00003718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003719$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3720if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003721 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003722 $as_echo_n "(cached) " >&6
3723else
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3726do
3727 IFS=$as_save_IFS
3728 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003729 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3732 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3733 'mkdir (GNU coreutils) '* | \
3734 'mkdir (coreutils) '* | \
3735 'mkdir (fileutils) '4.1*)
3736 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3737 break 3;;
3738 esac
3739 done
3740 done
cristy8b350f62009-11-15 23:12:43 +00003741 done
cristy3ed852e2009-09-05 21:47:34 +00003742IFS=$as_save_IFS
3743
3744fi
3745
cristycd4c5312009-11-22 01:19:08 +00003746 test -d ./--version && rmdir ./--version
cristy3ed852e2009-09-05 21:47:34 +00003747 if test "${ac_cv_path_mkdir+set}" = set; then
3748 MKDIR_P="$ac_cv_path_mkdir -p"
3749 else
3750 # As a last resort, use the slow shell script. Don't cache a
3751 # value for MKDIR_P within a source directory, because that will
3752 # break other packages using the cache if that directory is
3753 # removed, or if the value is a relative name.
cristy3ed852e2009-09-05 21:47:34 +00003754 MKDIR_P="$ac_install_sh -d"
3755 fi
3756fi
cristy8b350f62009-11-15 23:12:43 +00003757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003758$as_echo "$MKDIR_P" >&6; }
3759
3760mkdir_p="$MKDIR_P"
3761case $mkdir_p in
3762 [\\/$]* | ?:[\\/]*) ;;
3763 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3764esac
3765
3766for ac_prog in gawk mawk nawk awk
3767do
3768 # Extract the first word of "$ac_prog", so it can be a program name with args.
3769set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003771$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003772if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003773 $as_echo_n "(cached) " >&6
3774else
3775 if test -n "$AWK"; then
3776 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3777else
3778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779for as_dir in $PATH
3780do
3781 IFS=$as_save_IFS
3782 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003783 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3785 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003787 break 2
3788 fi
3789done
cristy8b350f62009-11-15 23:12:43 +00003790 done
cristy3ed852e2009-09-05 21:47:34 +00003791IFS=$as_save_IFS
3792
3793fi
3794fi
3795AWK=$ac_cv_prog_AWK
3796if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003798$as_echo "$AWK" >&6; }
3799else
cristy8b350f62009-11-15 23:12:43 +00003800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003801$as_echo "no" >&6; }
3802fi
3803
3804
3805 test -n "$AWK" && break
3806done
3807
cristy8b350f62009-11-15 23:12:43 +00003808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003809$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3810set x ${MAKE-make}
3811ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyfd9dcd42010-08-08 18:07:02 +00003812if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003813 $as_echo_n "(cached) " >&6
3814else
3815 cat >conftest.make <<\_ACEOF
3816SHELL = /bin/sh
3817all:
3818 @echo '@@@%%%=$(MAKE)=@@@%%%'
3819_ACEOF
cristyfd9dcd42010-08-08 18:07:02 +00003820# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy3ed852e2009-09-05 21:47:34 +00003821case `${MAKE-make} -f conftest.make 2>/dev/null` in
3822 *@@@%%%=?*=@@@%%%*)
3823 eval ac_cv_prog_make_${ac_make}_set=yes;;
3824 *)
3825 eval ac_cv_prog_make_${ac_make}_set=no;;
3826esac
3827rm -f conftest.make
3828fi
3829if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003831$as_echo "yes" >&6; }
3832 SET_MAKE=
3833else
cristy8b350f62009-11-15 23:12:43 +00003834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003835$as_echo "no" >&6; }
3836 SET_MAKE="MAKE=${MAKE-make}"
3837fi
3838
3839rm -rf .tst 2>/dev/null
3840mkdir .tst 2>/dev/null
3841if test -d .tst; then
3842 am__leading_dot=.
3843else
3844 am__leading_dot=_
3845fi
3846rmdir .tst 2>/dev/null
3847
3848if test "`cd $srcdir && pwd`" != "`pwd`"; then
3849 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3850 # is not polluted with repeated "-I."
3851 am__isrc=' -I$(srcdir)'
3852 # test to see if srcdir already configured
3853 if test -f $srcdir/config.status; then
cristyfd9dcd42010-08-08 18:07:02 +00003854 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003855 fi
3856fi
3857
3858# test whether we have cygpath
3859if test -z "$CYGPATH_W"; then
3860 if (cygpath --version) >/dev/null 2>/dev/null; then
3861 CYGPATH_W='cygpath -w'
3862 else
3863 CYGPATH_W=echo
3864 fi
3865fi
3866
3867
3868# Define the identity of the package.
3869 PACKAGE=$PACKAGE_NAME
cristy15a88782010-01-31 23:24:49 +00003870 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003871
3872
3873# Some tools Automake needs.
3874
3875ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3876
3877
3878AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3879
3880
3881AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3882
3883
3884AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3885
3886
3887MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3888
3889# We need awk for the "check" target. The system "awk" is bad on
3890# some platforms.
3891# Always define AMTAR for backward compatibility.
3892
3893AMTAR=${AMTAR-"${am_missing_run}tar"}
3894
3895am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3896
3897
3898
3899
3900
3901
3902# Enable support for silent build rules
3903# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00003904if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003905 enableval=$enable_silent_rules;
3906fi
3907
3908case $enable_silent_rules in
3909yes) AM_DEFAULT_VERBOSITY=0;;
3910no) AM_DEFAULT_VERBOSITY=1;;
3911*) AM_DEFAULT_VERBOSITY=0;;
3912esac
3913AM_BACKSLASH='\'
3914
3915
3916MAGICK_LIB_VERSION="0x"
3917if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3918 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3919fi
3920MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3921if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3922 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3923fi
3924MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3925if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3926 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3927fi
3928MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3929
3930
3931# Definition used to define MagickLibVersionText in version.h
3932MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3933
3934
3935# Definition used to define MagickLibVersionNumber in version.h
3936MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3937
3938
3939# Regenerate config.status if ChangeLog or version.sh is updated.
3940CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3941
3942
3943PERLMAINCC=$CC
3944
3945MAGICK_CFLAGS=''
3946MAGICK_CPPFLAGS=$CPPFLAGS_USER
3947MAGICK_PCFLAGS=$CPPFLAGS_USER
3948MAGICK_LDFLAGS=''
3949MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00003950MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00003951
3952#
3953# Evaluate shell variable equivalents to Makefile directory variables
3954#
3955if test "x$prefix" = xNONE; then
3956 prefix=$ac_default_prefix
3957fi
3958# Let make expand exec_prefix.
3959if test "x$exec_prefix" = xNONE; then
3960 exec_prefix='${prefix}'
3961fi
3962
3963#
3964eval "eval PREFIX_DIR=${prefix}"
3965
3966eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3967
3968eval "eval BIN_DIR=$bindir"
3969
3970eval "eval SBIN_DIR=$sbindir"
3971
3972eval "eval LIBEXEC_DIR=$libexecdir"
3973
3974eval "eval DATA_DIR=$datadir"
3975
3976eval "eval SYSCONF_DIR=$sysconfdir"
3977
3978eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3979
3980eval "eval LOCALSTATE_DIR=$localstatedir"
3981
3982eval "eval LIB_DIR=$libdir"
3983
3984eval "eval INCLUDE_DIR=$includedir"
3985
3986eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
3987
3988eval "eval INFO_DIR=$infodir"
3989
3990eval "eval MAN_DIR=$mandir"
3991
3992
3993# Get full paths to source and build directories
3994srcdirfull="`cd $srcdir && pwd`"
3995builddir="`pwd`"
3996
3997#
3998# Compute variables useful for running uninstalled software.
3999#
4000MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4001MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4002MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4003MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4004DIRSEP=':'
4005case "${build_os}" in
4006 mingw* )
4007 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4008 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4009 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4010 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4011 DIRSEP=';'
4012 ;;
4013esac
4014case "${host_os}" in
4015 mingw* )
4016 DIRSEP=';'
4017 ;;
4018esac
4019
4020
4021
4022
4023
4024
cristya0b81c32010-01-22 02:54:33 +00004025
4026#
4027# Enable OS features.
4028#
4029DEPDIR="${am__leading_dot}deps"
4030
4031ac_config_commands="$ac_config_commands depfiles"
4032
4033
4034am_make=${MAKE-make}
4035cat > confinc << 'END'
4036am__doit:
4037 @echo this is the am__doit target
4038.PHONY: am__doit
4039END
4040# If we don't find an include directive, just comment out the code.
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4042$as_echo_n "checking for style of include used by $am_make... " >&6; }
4043am__include="#"
4044am__quote=
4045_am_result=none
4046# First try GNU make style include.
4047echo "include confinc" > confmf
4048# Ignore all kinds of additional output from `make'.
4049case `$am_make -s -f confmf 2> /dev/null` in #(
4050*the\ am__doit\ target*)
4051 am__include=include
4052 am__quote=
4053 _am_result=GNU
4054 ;;
4055esac
4056# Now try BSD make style include.
4057if test "$am__include" = "#"; then
4058 echo '.include "confinc"' > confmf
4059 case `$am_make -s -f confmf 2> /dev/null` in #(
4060 *the\ am__doit\ target*)
4061 am__include=.include
4062 am__quote="\""
4063 _am_result=BSD
4064 ;;
4065 esac
4066fi
4067
4068
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4070$as_echo "$_am_result" >&6; }
4071rm -f confinc confmf
4072
4073# Check whether --enable-dependency-tracking was given.
4074if test "${enable_dependency_tracking+set}" = set; then :
4075 enableval=$enable_dependency_tracking;
4076fi
4077
4078if test "x$enable_dependency_tracking" != xno; then
4079 am_depcomp="$ac_aux_dir/depcomp"
4080 AMDEPBACKSLASH='\'
4081fi
4082 if test "x$enable_dependency_tracking" != xno; then
4083 AMDEP_TRUE=
4084 AMDEP_FALSE='#'
4085else
4086 AMDEP_TRUE='#'
4087 AMDEP_FALSE=
4088fi
4089
4090
cristy3ed852e2009-09-05 21:47:34 +00004091ac_ext=c
4092ac_cpp='$CPP $CPPFLAGS'
4093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4095ac_compiler_gnu=$ac_cv_c_compiler_gnu
4096if test -n "$ac_tool_prefix"; then
4097 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4098set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004100$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004101if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004102 $as_echo_n "(cached) " >&6
4103else
4104 if test -n "$CC"; then
4105 ac_cv_prog_CC="$CC" # Let the user override the test.
4106else
4107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108for as_dir in $PATH
4109do
4110 IFS=$as_save_IFS
4111 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004112 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4114 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004116 break 2
4117 fi
4118done
cristy8b350f62009-11-15 23:12:43 +00004119 done
cristy3ed852e2009-09-05 21:47:34 +00004120IFS=$as_save_IFS
4121
4122fi
4123fi
4124CC=$ac_cv_prog_CC
4125if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004127$as_echo "$CC" >&6; }
4128else
cristy8b350f62009-11-15 23:12:43 +00004129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004130$as_echo "no" >&6; }
4131fi
4132
4133
4134fi
4135if test -z "$ac_cv_prog_CC"; then
4136 ac_ct_CC=$CC
4137 # Extract the first word of "gcc", so it can be a program name with args.
4138set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004140$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004141if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004142 $as_echo_n "(cached) " >&6
4143else
4144 if test -n "$ac_ct_CC"; then
4145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4146else
4147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148for as_dir in $PATH
4149do
4150 IFS=$as_save_IFS
4151 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004152 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4154 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004156 break 2
4157 fi
4158done
cristy8b350f62009-11-15 23:12:43 +00004159 done
cristy3ed852e2009-09-05 21:47:34 +00004160IFS=$as_save_IFS
4161
4162fi
4163fi
4164ac_ct_CC=$ac_cv_prog_ac_ct_CC
4165if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004167$as_echo "$ac_ct_CC" >&6; }
4168else
cristy8b350f62009-11-15 23:12:43 +00004169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004170$as_echo "no" >&6; }
4171fi
4172
4173 if test "x$ac_ct_CC" = x; then
4174 CC=""
4175 else
4176 case $cross_compiling:$ac_tool_warned in
4177yes:)
cristy8b350f62009-11-15 23:12:43 +00004178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4180ac_tool_warned=yes ;;
4181esac
4182 CC=$ac_ct_CC
4183 fi
4184else
4185 CC="$ac_cv_prog_CC"
4186fi
4187
4188if test -z "$CC"; then
4189 if test -n "$ac_tool_prefix"; then
4190 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4191set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004193$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004194if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004195 $as_echo_n "(cached) " >&6
4196else
4197 if test -n "$CC"; then
4198 ac_cv_prog_CC="$CC" # Let the user override the test.
4199else
4200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201for as_dir in $PATH
4202do
4203 IFS=$as_save_IFS
4204 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004205 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4207 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004209 break 2
4210 fi
4211done
cristy8b350f62009-11-15 23:12:43 +00004212 done
cristy3ed852e2009-09-05 21:47:34 +00004213IFS=$as_save_IFS
4214
4215fi
4216fi
4217CC=$ac_cv_prog_CC
4218if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004220$as_echo "$CC" >&6; }
4221else
cristy8b350f62009-11-15 23:12:43 +00004222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004223$as_echo "no" >&6; }
4224fi
4225
4226
4227 fi
4228fi
4229if test -z "$CC"; then
4230 # Extract the first word of "cc", so it can be a program name with args.
4231set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004233$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004234if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004235 $as_echo_n "(cached) " >&6
4236else
4237 if test -n "$CC"; then
4238 ac_cv_prog_CC="$CC" # Let the user override the test.
4239else
4240 ac_prog_rejected=no
4241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242for as_dir in $PATH
4243do
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004246 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4248 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4249 ac_prog_rejected=yes
4250 continue
4251 fi
4252 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004254 break 2
4255 fi
4256done
cristy8b350f62009-11-15 23:12:43 +00004257 done
cristy3ed852e2009-09-05 21:47:34 +00004258IFS=$as_save_IFS
4259
4260if test $ac_prog_rejected = yes; then
4261 # We found a bogon in the path, so make sure we never use it.
4262 set dummy $ac_cv_prog_CC
4263 shift
4264 if test $# != 0; then
4265 # We chose a different compiler from the bogus one.
4266 # However, it has the same basename, so the bogon will be chosen
4267 # first if we set CC to just the basename; use the full file name.
4268 shift
4269 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4270 fi
4271fi
4272fi
4273fi
4274CC=$ac_cv_prog_CC
4275if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004277$as_echo "$CC" >&6; }
4278else
cristy8b350f62009-11-15 23:12:43 +00004279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004280$as_echo "no" >&6; }
4281fi
4282
4283
4284fi
4285if test -z "$CC"; then
4286 if test -n "$ac_tool_prefix"; then
4287 for ac_prog in cl.exe
4288 do
4289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4290set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004292$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004293if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004294 $as_echo_n "(cached) " >&6
4295else
4296 if test -n "$CC"; then
4297 ac_cv_prog_CC="$CC" # Let the user override the test.
4298else
4299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300for as_dir in $PATH
4301do
4302 IFS=$as_save_IFS
4303 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004304 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4306 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004308 break 2
4309 fi
4310done
cristy8b350f62009-11-15 23:12:43 +00004311 done
cristy3ed852e2009-09-05 21:47:34 +00004312IFS=$as_save_IFS
4313
4314fi
4315fi
4316CC=$ac_cv_prog_CC
4317if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004319$as_echo "$CC" >&6; }
4320else
cristy8b350f62009-11-15 23:12:43 +00004321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004322$as_echo "no" >&6; }
4323fi
4324
4325
4326 test -n "$CC" && break
4327 done
4328fi
4329if test -z "$CC"; then
4330 ac_ct_CC=$CC
4331 for ac_prog in cl.exe
4332do
4333 # Extract the first word of "$ac_prog", so it can be a program name with args.
4334set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004336$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004337if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004338 $as_echo_n "(cached) " >&6
4339else
4340 if test -n "$ac_ct_CC"; then
4341 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4342else
4343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344for as_dir in $PATH
4345do
4346 IFS=$as_save_IFS
4347 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004348 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4350 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004352 break 2
4353 fi
4354done
cristy8b350f62009-11-15 23:12:43 +00004355 done
cristy3ed852e2009-09-05 21:47:34 +00004356IFS=$as_save_IFS
4357
4358fi
4359fi
4360ac_ct_CC=$ac_cv_prog_ac_ct_CC
4361if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004363$as_echo "$ac_ct_CC" >&6; }
4364else
cristy8b350f62009-11-15 23:12:43 +00004365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004366$as_echo "no" >&6; }
4367fi
4368
4369
4370 test -n "$ac_ct_CC" && break
4371done
4372
4373 if test "x$ac_ct_CC" = x; then
4374 CC=""
4375 else
4376 case $cross_compiling:$ac_tool_warned in
4377yes:)
cristy8b350f62009-11-15 23:12:43 +00004378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4380ac_tool_warned=yes ;;
4381esac
4382 CC=$ac_ct_CC
4383 fi
4384fi
4385
4386fi
4387
4388
cristy8b350f62009-11-15 23:12:43 +00004389test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00004391as_fn_error $? "no acceptable C compiler found in \$PATH
4392See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004393
4394# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004395$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004396set X $ac_compile
4397ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004398for ac_option in --version -v -V -qversion; do
4399 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004400case "(($ac_try" in
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4403esac
cristy8b350f62009-11-15 23:12:43 +00004404eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4405$as_echo "$ac_try_echo"; } >&5
4406 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004407 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004408 if test -s conftest.err; then
4409 sed '10a\
4410... rest of stderr output deleted ...
4411 10q' conftest.err >conftest.er1
4412 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004413 fi
cristycd4c5312009-11-22 01:19:08 +00004414 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4416 test $ac_status = 0; }
4417done
cristy3ed852e2009-09-05 21:47:34 +00004418
cristy8b350f62009-11-15 23:12:43 +00004419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004420/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004421
cristy3ed852e2009-09-05 21:47:34 +00004422int
4423main ()
4424{
4425
4426 ;
4427 return 0;
4428}
4429_ACEOF
4430ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004431ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004432# Try to create an executable without -o first, disregard a.out.
4433# It will help us diagnose broken compilers, and finding out an intuition
4434# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4436$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004437ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4438
4439# The possible output files:
4440ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4441
4442ac_rmfiles=
4443for ac_file in $ac_files
4444do
4445 case $ac_file in
4446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4447 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4448 esac
4449done
4450rm -f $ac_rmfiles
4451
cristy8b350f62009-11-15 23:12:43 +00004452if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004453case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456esac
cristy8b350f62009-11-15 23:12:43 +00004457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4458$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004459 (eval "$ac_link_default") 2>&5
4460 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4462 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004463 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4464# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4465# in a Makefile. We should not override ac_cv_exeext if it was cached,
4466# so that the user can short-circuit this test for compilers unknown to
4467# Autoconf.
4468for ac_file in $ac_files ''
4469do
4470 test -f "$ac_file" || continue
4471 case $ac_file in
4472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4473 ;;
4474 [ab].out )
4475 # We found the default executable, but exeext='' is most
4476 # certainly right.
4477 break;;
4478 *.* )
cristy8b350f62009-11-15 23:12:43 +00004479 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004480 then :; else
4481 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4482 fi
4483 # We set ac_cv_exeext here because the later test for it is not
4484 # safe: cross compilers may not add the suffix if given an `-o'
4485 # argument, so we may need to know it at that point already.
4486 # Even if this section looks crufty: it has the advantage of
4487 # actually working.
4488 break;;
4489 * )
4490 break;;
4491 esac
4492done
4493test "$ac_cv_exeext" = no && ac_cv_exeext=
4494
4495else
4496 ac_file=''
4497fi
cristy8b350f62009-11-15 23:12:43 +00004498if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500$as_echo "no" >&6; }
4501$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004502sed 's/^/| /' conftest.$ac_ext >&5
4503
cristy8b350f62009-11-15 23:12:43 +00004504{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00004506as_fn_error 77 "C compiler cannot create executables
4507See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004508else
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4510$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004511fi
cristycd4c5312009-11-22 01:19:08 +00004512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4513$as_echo_n "checking for C compiler default output file name... " >&6; }
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4515$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004516ac_exeext=$ac_cv_exeext
4517
cristycd4c5312009-11-22 01:19:08 +00004518rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004519ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004521$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004522if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004523case "(($ac_try" in
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4526esac
cristy8b350f62009-11-15 23:12:43 +00004527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4528$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004529 (eval "$ac_link") 2>&5
4530 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4532 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004533 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4534# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4535# work properly (i.e., refer to `conftest.exe'), while it won't with
4536# `rm'.
4537for ac_file in conftest.exe conftest conftest.*; do
4538 test -f "$ac_file" || continue
4539 case $ac_file in
4540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4541 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4542 break;;
4543 * ) break;;
4544 esac
4545done
4546else
cristy8b350f62009-11-15 23:12:43 +00004547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00004549as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4550See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004551fi
cristycd4c5312009-11-22 01:19:08 +00004552rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004554$as_echo "$ac_cv_exeext" >&6; }
4555
4556rm -f conftest.$ac_ext
4557EXEEXT=$ac_cv_exeext
4558ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560/* end confdefs.h. */
4561#include <stdio.h>
4562int
4563main ()
4564{
4565FILE *f = fopen ("conftest.out", "w");
4566 return ferror (f) || fclose (f) != 0;
4567
4568 ;
4569 return 0;
4570}
4571_ACEOF
4572ac_clean_files="$ac_clean_files conftest.out"
4573# Check that the compiler produces executables we can run. If not, either
4574# the compiler is broken, or we cross compile.
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4576$as_echo_n "checking whether we are cross compiling... " >&6; }
4577if test "$cross_compiling" != yes; then
4578 { { ac_try="$ac_link"
4579case "(($ac_try" in
4580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4582esac
4583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4584$as_echo "$ac_try_echo"; } >&5
4585 (eval "$ac_link") 2>&5
4586 ac_status=$?
4587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4588 test $ac_status = 0; }
4589 if { ac_try='./conftest$ac_cv_exeext'
4590 { { case "(($ac_try" in
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4593esac
4594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4595$as_echo "$ac_try_echo"; } >&5
4596 (eval "$ac_try") 2>&5
4597 ac_status=$?
4598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4599 test $ac_status = 0; }; }; then
4600 cross_compiling=no
4601 else
4602 if test "$cross_compiling" = maybe; then
4603 cross_compiling=yes
4604 else
4605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4606$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00004607as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004608If you meant to cross compile, use \`--host'.
cristyfd9dcd42010-08-08 18:07:02 +00004609See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004610 fi
4611 fi
4612fi
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4614$as_echo "$cross_compiling" >&6; }
4615
4616rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4617ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004619$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004620if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004621 $as_echo_n "(cached) " >&6
4622else
cristy8b350f62009-11-15 23:12:43 +00004623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004624/* end confdefs.h. */
4625
4626int
4627main ()
4628{
4629
4630 ;
4631 return 0;
4632}
4633_ACEOF
4634rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004635if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004636case "(($ac_try" in
4637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638 *) ac_try_echo=$ac_try;;
4639esac
cristy8b350f62009-11-15 23:12:43 +00004640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4641$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004642 (eval "$ac_compile") 2>&5
4643 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4645 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004646 for ac_file in conftest.o conftest.obj conftest.*; do
4647 test -f "$ac_file" || continue;
4648 case $ac_file in
4649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4650 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4651 break;;
4652 esac
4653done
4654else
4655 $as_echo "$as_me: failed program was:" >&5
4656sed 's/^/| /' conftest.$ac_ext >&5
4657
cristy8b350f62009-11-15 23:12:43 +00004658{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004659$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00004660as_fn_error $? "cannot compute suffix of object files: cannot compile
4661See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004662fi
cristy3ed852e2009-09-05 21:47:34 +00004663rm -f conftest.$ac_cv_objext conftest.$ac_ext
4664fi
cristy8b350f62009-11-15 23:12:43 +00004665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004666$as_echo "$ac_cv_objext" >&6; }
4667OBJEXT=$ac_cv_objext
4668ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004670$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004671if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004672 $as_echo_n "(cached) " >&6
4673else
cristy8b350f62009-11-15 23:12:43 +00004674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004675/* end confdefs.h. */
4676
4677int
4678main ()
4679{
4680#ifndef __GNUC__
4681 choke me
4682#endif
4683
4684 ;
4685 return 0;
4686}
4687_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004688if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004689 ac_compiler_gnu=yes
4690else
cristy8b350f62009-11-15 23:12:43 +00004691 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004692fi
cristy3ed852e2009-09-05 21:47:34 +00004693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694ac_cv_c_compiler_gnu=$ac_compiler_gnu
4695
4696fi
cristy8b350f62009-11-15 23:12:43 +00004697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004698$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4699if test $ac_compiler_gnu = yes; then
4700 GCC=yes
4701else
4702 GCC=
4703fi
4704ac_test_CFLAGS=${CFLAGS+set}
4705ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004707$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004708if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004709 $as_echo_n "(cached) " >&6
4710else
4711 ac_save_c_werror_flag=$ac_c_werror_flag
4712 ac_c_werror_flag=yes
4713 ac_cv_prog_cc_g=no
4714 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004716/* end confdefs.h. */
4717
4718int
4719main ()
4720{
4721
4722 ;
4723 return 0;
4724}
4725_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004726if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004727 ac_cv_prog_cc_g=yes
4728else
cristy8b350f62009-11-15 23:12:43 +00004729 CFLAGS=""
4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004731/* end confdefs.h. */
4732
4733int
4734main ()
4735{
4736
4737 ;
4738 return 0;
4739}
4740_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004741if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004742
cristy8b350f62009-11-15 23:12:43 +00004743else
4744 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004745 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004747/* end confdefs.h. */
4748
4749int
4750main ()
4751{
4752
4753 ;
4754 return 0;
4755}
4756_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004757if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004758 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004759fi
cristy3ed852e2009-09-05 21:47:34 +00004760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761fi
cristy3ed852e2009-09-05 21:47:34 +00004762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763fi
cristy3ed852e2009-09-05 21:47:34 +00004764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765 ac_c_werror_flag=$ac_save_c_werror_flag
4766fi
cristy8b350f62009-11-15 23:12:43 +00004767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004768$as_echo "$ac_cv_prog_cc_g" >&6; }
4769if test "$ac_test_CFLAGS" = set; then
4770 CFLAGS=$ac_save_CFLAGS
4771elif test $ac_cv_prog_cc_g = yes; then
4772 if test "$GCC" = yes; then
4773 CFLAGS="-g -O2"
4774 else
4775 CFLAGS="-g"
4776 fi
4777else
4778 if test "$GCC" = yes; then
4779 CFLAGS="-O2"
4780 else
4781 CFLAGS=
4782 fi
4783fi
cristy8b350f62009-11-15 23:12:43 +00004784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004785$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004786if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004787 $as_echo_n "(cached) " >&6
4788else
4789 ac_cv_prog_cc_c89=no
4790ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004792/* end confdefs.h. */
4793#include <stdarg.h>
4794#include <stdio.h>
4795#include <sys/types.h>
4796#include <sys/stat.h>
4797/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4798struct buf { int x; };
4799FILE * (*rcsopen) (struct buf *, struct stat *, int);
4800static char *e (p, i)
4801 char **p;
4802 int i;
4803{
4804 return p[i];
4805}
4806static char *f (char * (*g) (char **, int), char **p, ...)
4807{
4808 char *s;
4809 va_list v;
4810 va_start (v,p);
4811 s = g (p, va_arg (v,int));
4812 va_end (v);
4813 return s;
4814}
4815
4816/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4817 function prototypes and stuff, but not '\xHH' hex character constants.
4818 These don't provoke an error unfortunately, instead are silently treated
4819 as 'x'. The following induces an error, until -std is added to get
4820 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4821 array size at least. It's necessary to write '\x00'==0 to get something
4822 that's true only with -std. */
4823int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4824
4825/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4826 inside strings and character constants. */
4827#define FOO(x) 'x'
4828int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4829
4830int test (int i, double x);
4831struct s1 {int (*f) (int a);};
4832struct s2 {int (*f) (double a);};
4833int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4834int argc;
4835char **argv;
4836int
4837main ()
4838{
4839return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4840 ;
4841 return 0;
4842}
4843_ACEOF
4844for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4845 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4846do
4847 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004848 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004849 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004850fi
cristy3ed852e2009-09-05 21:47:34 +00004851rm -f core conftest.err conftest.$ac_objext
4852 test "x$ac_cv_prog_cc_c89" != "xno" && break
4853done
4854rm -f conftest.$ac_ext
4855CC=$ac_save_CC
4856
4857fi
4858# AC_CACHE_VAL
4859case "x$ac_cv_prog_cc_c89" in
4860 x)
cristy8b350f62009-11-15 23:12:43 +00004861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004862$as_echo "none needed" >&6; } ;;
4863 xno)
cristy8b350f62009-11-15 23:12:43 +00004864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004865$as_echo "unsupported" >&6; } ;;
4866 *)
4867 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004869$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4870esac
cristy8b350f62009-11-15 23:12:43 +00004871if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004872
cristy8b350f62009-11-15 23:12:43 +00004873fi
cristy3ed852e2009-09-05 21:47:34 +00004874
4875ac_ext=c
4876ac_cpp='$CPP $CPPFLAGS'
4877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4879ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00004880
cristya0b81c32010-01-22 02:54:33 +00004881depcc="$CC" am_compiler_list=
cristy3ed852e2009-09-05 21:47:34 +00004882
cristya0b81c32010-01-22 02:54:33 +00004883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4884$as_echo_n "checking dependency style of $depcc... " >&6; }
4885if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4886 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00004887else
cristya0b81c32010-01-22 02:54:33 +00004888 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4889 # We make a subdir and do the tests there. Otherwise we can end up
4890 # making bogus files that we don't know about and never remove. For
4891 # instance it was reported that on HP-UX the gcc test will end up
4892 # making a dummy file named `D' -- because `-MD' means `put the output
4893 # in D'.
4894 mkdir conftest.dir
4895 # Copy depcomp to subdir because otherwise we won't find it if we're
4896 # using a relative directory.
4897 cp "$am_depcomp" conftest.dir
4898 cd conftest.dir
4899 # We will build objects and dependencies in a subdirectory because
4900 # it helps to detect inapplicable dependency modes. For instance
4901 # both Tru64's cc and ICC support -MD to output dependencies as a
4902 # side effect of compilation, but ICC will put the dependencies in
4903 # the current directory while Tru64 will put them in the object
4904 # directory.
4905 mkdir sub
4906
4907 am_cv_CC_dependencies_compiler_type=none
4908 if test "$am_compiler_list" = ""; then
4909 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4910 fi
4911 am__universal=false
4912 case " $depcc " in #(
4913 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4914 esac
4915
4916 for depmode in $am_compiler_list; do
4917 # Setup a source with many dependencies, because some compilers
4918 # like to wrap large dependency lists on column 80 (with \), and
4919 # we should not choose a depcomp mode which is confused by this.
4920 #
4921 # We need to recreate these files for each test, as the compiler may
4922 # overwrite some of them when testing with obscure command lines.
4923 # This happens at least with the AIX C compiler.
4924 : > sub/conftest.c
4925 for i in 1 2 3 4 5 6; do
4926 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4927 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4928 # Solaris 8's {/usr,}/bin/sh.
4929 touch sub/conftst$i.h
4930 done
4931 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4932
4933 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4934 # mode. It turns out that the SunPro C++ compiler does not properly
4935 # handle `-M -o', and we need to detect this. Also, some Intel
4936 # versions had trouble with output in subdirs
4937 am__obj=sub/conftest.${OBJEXT-o}
4938 am__minus_obj="-o $am__obj"
4939 case $depmode in
4940 gcc)
4941 # This depmode causes a compiler race in universal mode.
4942 test "$am__universal" = false || continue
4943 ;;
4944 nosideeffect)
4945 # after this tag, mechanisms are not by side-effect, so they'll
4946 # only be used when explicitly requested
4947 if test "x$enable_dependency_tracking" = xyes; then
4948 continue
4949 else
4950 break
4951 fi
4952 ;;
4953 msvisualcpp | msvcmsys)
4954 # This compiler won't grok `-c -o', but also, the minuso test has
4955 # not run yet. These depmodes are late enough in the game, and
4956 # so weak that their functioning should not be impacted.
4957 am__obj=conftest.${OBJEXT-o}
4958 am__minus_obj=
4959 ;;
4960 none) break ;;
4961 esac
4962 if depmode=$depmode \
4963 source=sub/conftest.c object=$am__obj \
4964 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4965 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4966 >/dev/null 2>conftest.err &&
4967 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4968 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4969 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4970 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4971 # icc doesn't choke on unknown options, it will just issue warnings
4972 # or remarks (even with -Werror). So we grep stderr for any message
4973 # that says an option was ignored or not supported.
4974 # When given -MP, icc 7.0 and 7.1 complain thusly:
4975 # icc: Command line warning: ignoring option '-M'; no argument required
4976 # The diagnosis changed in icc 8.0:
4977 # icc: Command line remark: option '-MP' not supported
4978 if (grep 'ignoring option' conftest.err ||
4979 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4980 am_cv_CC_dependencies_compiler_type=$depmode
4981 break
4982 fi
4983 fi
4984 done
4985
4986 cd ..
4987 rm -rf conftest.dir
4988else
4989 am_cv_CC_dependencies_compiler_type=none
4990fi
4991
4992fi
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4994$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4995CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4996
4997 if
4998 test "x$enable_dependency_tracking" != xno \
4999 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5000 am__fastdepCC_TRUE=
5001 am__fastdepCC_FALSE='#'
5002else
5003 am__fastdepCC_TRUE='#'
5004 am__fastdepCC_FALSE=
cristy3ed852e2009-09-05 21:47:34 +00005005fi
5006
5007
5008
cristya0b81c32010-01-22 02:54:33 +00005009ac_ext=c
5010ac_cpp='$CPP $CPPFLAGS'
5011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5013ac_compiler_gnu=$ac_cv_c_compiler_gnu
5014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5015$as_echo_n "checking how to run the C preprocessor... " >&6; }
5016# On Suns, sometimes $CPP names a directory.
5017if test -n "$CPP" && test -d "$CPP"; then
5018 CPP=
5019fi
5020if test -z "$CPP"; then
5021 if test "${ac_cv_prog_CPP+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
5023else
5024 # Double quotes because CPP needs to be expanded
5025 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5026 do
5027 ac_preproc_ok=false
5028for ac_c_preproc_warn_flag in '' yes
5029do
5030 # Use a header file that comes with gcc, so configuring glibc
5031 # with a fresh cross-compiler works.
5032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5033 # <limits.h> exists even on freestanding compilers.
5034 # On the NeXT, cc -E runs the code through the compiler's parser,
5035 # not just through cpp. "Syntax error" is here to catch this case.
5036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037/* end confdefs.h. */
5038#ifdef __STDC__
5039# include <limits.h>
5040#else
5041# include <assert.h>
5042#endif
5043 Syntax error
5044_ACEOF
5045if ac_fn_c_try_cpp "$LINENO"; then :
5046
5047else
5048 # Broken: fails on valid input.
5049continue
5050fi
5051rm -f conftest.err conftest.$ac_ext
5052
5053 # OK, works on sane cases. Now check whether nonexistent headers
5054 # can be detected and how.
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056/* end confdefs.h. */
5057#include <ac_nonexistent.h>
5058_ACEOF
5059if ac_fn_c_try_cpp "$LINENO"; then :
5060 # Broken: success on invalid input.
5061continue
5062else
5063 # Passes both tests.
5064ac_preproc_ok=:
5065break
5066fi
5067rm -f conftest.err conftest.$ac_ext
5068
5069done
5070# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5071rm -f conftest.err conftest.$ac_ext
5072if $ac_preproc_ok; then :
5073 break
5074fi
5075
5076 done
5077 ac_cv_prog_CPP=$CPP
5078
5079fi
5080 CPP=$ac_cv_prog_CPP
5081else
5082 ac_cv_prog_CPP=$CPP
5083fi
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5085$as_echo "$CPP" >&6; }
5086ac_preproc_ok=false
5087for ac_c_preproc_warn_flag in '' yes
5088do
5089 # Use a header file that comes with gcc, so configuring glibc
5090 # with a fresh cross-compiler works.
5091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5092 # <limits.h> exists even on freestanding compilers.
5093 # On the NeXT, cc -E runs the code through the compiler's parser,
5094 # not just through cpp. "Syntax error" is here to catch this case.
5095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096/* end confdefs.h. */
5097#ifdef __STDC__
5098# include <limits.h>
5099#else
5100# include <assert.h>
5101#endif
5102 Syntax error
5103_ACEOF
5104if ac_fn_c_try_cpp "$LINENO"; then :
5105
5106else
5107 # Broken: fails on valid input.
5108continue
5109fi
5110rm -f conftest.err conftest.$ac_ext
5111
5112 # OK, works on sane cases. Now check whether nonexistent headers
5113 # can be detected and how.
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115/* end confdefs.h. */
5116#include <ac_nonexistent.h>
5117_ACEOF
5118if ac_fn_c_try_cpp "$LINENO"; then :
5119 # Broken: success on invalid input.
5120continue
5121else
5122 # Passes both tests.
5123ac_preproc_ok=:
5124break
5125fi
5126rm -f conftest.err conftest.$ac_ext
5127
5128done
5129# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5130rm -f conftest.err conftest.$ac_ext
5131if $ac_preproc_ok; then :
5132
5133else
5134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00005136as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5137See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005138fi
5139
5140ac_ext=c
5141ac_cpp='$CPP $CPPFLAGS'
5142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5144ac_compiler_gnu=$ac_cv_c_compiler_gnu
5145
5146
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5148$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5149if test "${ac_cv_path_GREP+set}" = set; then :
5150 $as_echo_n "(cached) " >&6
5151else
5152 if test -z "$GREP"; then
5153 ac_path_GREP_found=false
5154 # Loop through the user's path and test for each of PROGNAME-LIST
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5157do
5158 IFS=$as_save_IFS
5159 test -z "$as_dir" && as_dir=.
5160 for ac_prog in grep ggrep; do
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5163 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5164# Check for GNU ac_path_GREP and select it if it is found.
5165 # Check for GNU $ac_path_GREP
5166case `"$ac_path_GREP" --version 2>&1` in
5167*GNU*)
5168 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5169*)
5170 ac_count=0
5171 $as_echo_n 0123456789 >"conftest.in"
5172 while :
5173 do
5174 cat "conftest.in" "conftest.in" >"conftest.tmp"
5175 mv "conftest.tmp" "conftest.in"
5176 cp "conftest.in" "conftest.nl"
5177 $as_echo 'GREP' >> "conftest.nl"
5178 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5179 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5180 as_fn_arith $ac_count + 1 && ac_count=$as_val
5181 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5182 # Best one so far, save it but keep looking for a better one
5183 ac_cv_path_GREP="$ac_path_GREP"
5184 ac_path_GREP_max=$ac_count
5185 fi
5186 # 10*(2^10) chars as input seems more than enough
5187 test $ac_count -gt 10 && break
5188 done
5189 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5190esac
5191
5192 $ac_path_GREP_found && break 3
5193 done
5194 done
5195 done
5196IFS=$as_save_IFS
5197 if test -z "$ac_cv_path_GREP"; then
cristyfd9dcd42010-08-08 18:07:02 +00005198 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005199 fi
5200else
5201 ac_cv_path_GREP=$GREP
5202fi
5203
5204fi
5205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5206$as_echo "$ac_cv_path_GREP" >&6; }
5207 GREP="$ac_cv_path_GREP"
5208
5209
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5211$as_echo_n "checking for egrep... " >&6; }
5212if test "${ac_cv_path_EGREP+set}" = set; then :
5213 $as_echo_n "(cached) " >&6
5214else
5215 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5216 then ac_cv_path_EGREP="$GREP -E"
5217 else
5218 if test -z "$EGREP"; then
5219 ac_path_EGREP_found=false
5220 # Loop through the user's path and test for each of PROGNAME-LIST
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5223do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_prog in egrep; do
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5229 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5230# Check for GNU ac_path_EGREP and select it if it is found.
5231 # Check for GNU $ac_path_EGREP
5232case `"$ac_path_EGREP" --version 2>&1` in
5233*GNU*)
5234 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5235*)
5236 ac_count=0
5237 $as_echo_n 0123456789 >"conftest.in"
5238 while :
5239 do
5240 cat "conftest.in" "conftest.in" >"conftest.tmp"
5241 mv "conftest.tmp" "conftest.in"
5242 cp "conftest.in" "conftest.nl"
5243 $as_echo 'EGREP' >> "conftest.nl"
5244 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5246 as_fn_arith $ac_count + 1 && ac_count=$as_val
5247 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5248 # Best one so far, save it but keep looking for a better one
5249 ac_cv_path_EGREP="$ac_path_EGREP"
5250 ac_path_EGREP_max=$ac_count
5251 fi
5252 # 10*(2^10) chars as input seems more than enough
5253 test $ac_count -gt 10 && break
5254 done
5255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5256esac
5257
5258 $ac_path_EGREP_found && break 3
5259 done
5260 done
5261 done
5262IFS=$as_save_IFS
5263 if test -z "$ac_cv_path_EGREP"; then
cristyfd9dcd42010-08-08 18:07:02 +00005264 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005265 fi
5266else
5267 ac_cv_path_EGREP=$EGREP
5268fi
5269
5270 fi
5271fi
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5273$as_echo "$ac_cv_path_EGREP" >&6; }
5274 EGREP="$ac_cv_path_EGREP"
5275
5276
5277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5278$as_echo_n "checking for ANSI C header files... " >&6; }
5279if test "${ac_cv_header_stdc+set}" = set; then :
5280 $as_echo_n "(cached) " >&6
5281else
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283/* end confdefs.h. */
5284#include <stdlib.h>
5285#include <stdarg.h>
5286#include <string.h>
5287#include <float.h>
5288
5289int
5290main ()
5291{
5292
5293 ;
5294 return 0;
5295}
5296_ACEOF
5297if ac_fn_c_try_compile "$LINENO"; then :
5298 ac_cv_header_stdc=yes
5299else
5300 ac_cv_header_stdc=no
5301fi
5302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303
5304if test $ac_cv_header_stdc = yes; then
5305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307/* end confdefs.h. */
5308#include <string.h>
5309
5310_ACEOF
5311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5312 $EGREP "memchr" >/dev/null 2>&1; then :
5313
5314else
5315 ac_cv_header_stdc=no
5316fi
5317rm -f conftest*
5318
5319fi
5320
5321if test $ac_cv_header_stdc = yes; then
5322 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324/* end confdefs.h. */
5325#include <stdlib.h>
5326
5327_ACEOF
5328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5329 $EGREP "free" >/dev/null 2>&1; then :
5330
5331else
5332 ac_cv_header_stdc=no
5333fi
5334rm -f conftest*
5335
5336fi
5337
5338if test $ac_cv_header_stdc = yes; then
5339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5340 if test "$cross_compiling" = yes; then :
5341 :
5342else
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344/* end confdefs.h. */
5345#include <ctype.h>
5346#include <stdlib.h>
5347#if ((' ' & 0x0FF) == 0x020)
5348# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5349# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5350#else
5351# define ISLOWER(c) \
5352 (('a' <= (c) && (c) <= 'i') \
5353 || ('j' <= (c) && (c) <= 'r') \
5354 || ('s' <= (c) && (c) <= 'z'))
5355# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5356#endif
5357
5358#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5359int
5360main ()
5361{
5362 int i;
5363 for (i = 0; i < 256; i++)
5364 if (XOR (islower (i), ISLOWER (i))
5365 || toupper (i) != TOUPPER (i))
5366 return 2;
5367 return 0;
5368}
5369_ACEOF
5370if ac_fn_c_try_run "$LINENO"; then :
5371
5372else
5373 ac_cv_header_stdc=no
5374fi
5375rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5376 conftest.$ac_objext conftest.beam conftest.$ac_ext
5377fi
5378
5379fi
5380fi
5381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5382$as_echo "$ac_cv_header_stdc" >&6; }
5383if test $ac_cv_header_stdc = yes; then
5384
5385$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5386
5387fi
5388
5389# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5390for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5391 inttypes.h stdint.h unistd.h
5392do :
5393 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5394ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5395"
cristyfd9dcd42010-08-08 18:07:02 +00005396if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005397 cat >>confdefs.h <<_ACEOF
5398#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5399_ACEOF
5400
5401fi
5402
5403done
5404
5405
5406
5407 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5408if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5409 MINIX=yes
5410else
5411 MINIX=
5412fi
5413
5414
5415 if test "$MINIX" = yes; then
5416
5417$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5418
5419
5420$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5421
5422
5423$as_echo "#define _MINIX 1" >>confdefs.h
5424
5425 fi
5426
5427
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5429$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5430if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5431 $as_echo_n "(cached) " >&6
5432else
5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434/* end confdefs.h. */
5435
5436# define __EXTENSIONS__ 1
5437 $ac_includes_default
5438int
5439main ()
5440{
5441
5442 ;
5443 return 0;
5444}
5445_ACEOF
5446if ac_fn_c_try_compile "$LINENO"; then :
5447 ac_cv_safe_to_define___extensions__=yes
5448else
5449 ac_cv_safe_to_define___extensions__=no
5450fi
5451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452fi
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5454$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5455 test $ac_cv_safe_to_define___extensions__ = yes &&
5456 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5457
5458 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5459
5460 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5461
5462 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5463
5464 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5465
5466
5467
5468# Check for programs
5469ac_ext=c
5470ac_cpp='$CPP $CPPFLAGS'
5471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5473ac_compiler_gnu=$ac_cv_c_compiler_gnu
5474if test -n "$ac_tool_prefix"; then
5475 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5476set dummy ${ac_tool_prefix}gcc; ac_word=$2
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478$as_echo_n "checking for $ac_word... " >&6; }
5479if test "${ac_cv_prog_CC+set}" = set; then :
5480 $as_echo_n "(cached) " >&6
5481else
5482 if test -n "$CC"; then
5483 ac_cv_prog_CC="$CC" # Let the user override the test.
5484else
5485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486for as_dir in $PATH
5487do
5488 IFS=$as_save_IFS
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 break 2
5495 fi
5496done
5497 done
5498IFS=$as_save_IFS
5499
5500fi
5501fi
5502CC=$ac_cv_prog_CC
5503if test -n "$CC"; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5505$as_echo "$CC" >&6; }
5506else
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508$as_echo "no" >&6; }
5509fi
5510
5511
5512fi
5513if test -z "$ac_cv_prog_CC"; then
5514 ac_ct_CC=$CC
5515 # Extract the first word of "gcc", so it can be a program name with args.
5516set dummy gcc; ac_word=$2
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518$as_echo_n "checking for $ac_word... " >&6; }
5519if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5520 $as_echo_n "(cached) " >&6
5521else
5522 if test -n "$ac_ct_CC"; then
5523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5524else
5525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526for as_dir in $PATH
5527do
5528 IFS=$as_save_IFS
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5532 ac_cv_prog_ac_ct_CC="gcc"
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 break 2
5535 fi
5536done
5537 done
5538IFS=$as_save_IFS
5539
5540fi
5541fi
5542ac_ct_CC=$ac_cv_prog_ac_ct_CC
5543if test -n "$ac_ct_CC"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5545$as_echo "$ac_ct_CC" >&6; }
5546else
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548$as_echo "no" >&6; }
5549fi
5550
5551 if test "x$ac_ct_CC" = x; then
5552 CC=""
5553 else
5554 case $cross_compiling:$ac_tool_warned in
5555yes:)
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5558ac_tool_warned=yes ;;
5559esac
5560 CC=$ac_ct_CC
5561 fi
5562else
5563 CC="$ac_cv_prog_CC"
5564fi
5565
5566if test -z "$CC"; then
5567 if test -n "$ac_tool_prefix"; then
5568 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5569set dummy ${ac_tool_prefix}cc; ac_word=$2
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571$as_echo_n "checking for $ac_word... " >&6; }
5572if test "${ac_cv_prog_CC+set}" = set; then :
5573 $as_echo_n "(cached) " >&6
5574else
5575 if test -n "$CC"; then
5576 ac_cv_prog_CC="$CC" # Let the user override the test.
5577else
5578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579for as_dir in $PATH
5580do
5581 IFS=$as_save_IFS
5582 test -z "$as_dir" && as_dir=.
5583 for ac_exec_ext in '' $ac_executable_extensions; do
5584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5585 ac_cv_prog_CC="${ac_tool_prefix}cc"
5586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5587 break 2
5588 fi
5589done
5590 done
5591IFS=$as_save_IFS
5592
5593fi
5594fi
5595CC=$ac_cv_prog_CC
5596if test -n "$CC"; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5598$as_echo "$CC" >&6; }
5599else
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601$as_echo "no" >&6; }
5602fi
5603
5604
5605 fi
5606fi
5607if test -z "$CC"; then
5608 # Extract the first word of "cc", so it can be a program name with args.
5609set dummy cc; ac_word=$2
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611$as_echo_n "checking for $ac_word... " >&6; }
5612if test "${ac_cv_prog_CC+set}" = set; then :
5613 $as_echo_n "(cached) " >&6
5614else
5615 if test -n "$CC"; then
5616 ac_cv_prog_CC="$CC" # Let the user override the test.
5617else
5618 ac_prog_rejected=no
5619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620for as_dir in $PATH
5621do
5622 IFS=$as_save_IFS
5623 test -z "$as_dir" && as_dir=.
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5626 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5627 ac_prog_rejected=yes
5628 continue
5629 fi
5630 ac_cv_prog_CC="cc"
5631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 break 2
5633 fi
5634done
5635 done
5636IFS=$as_save_IFS
5637
5638if test $ac_prog_rejected = yes; then
5639 # We found a bogon in the path, so make sure we never use it.
5640 set dummy $ac_cv_prog_CC
5641 shift
5642 if test $# != 0; then
5643 # We chose a different compiler from the bogus one.
5644 # However, it has the same basename, so the bogon will be chosen
5645 # first if we set CC to just the basename; use the full file name.
5646 shift
5647 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5648 fi
5649fi
5650fi
5651fi
5652CC=$ac_cv_prog_CC
5653if test -n "$CC"; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5655$as_echo "$CC" >&6; }
5656else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658$as_echo "no" >&6; }
5659fi
5660
5661
5662fi
5663if test -z "$CC"; then
5664 if test -n "$ac_tool_prefix"; then
5665 for ac_prog in cl.exe
5666 do
5667 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5668set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670$as_echo_n "checking for $ac_word... " >&6; }
5671if test "${ac_cv_prog_CC+set}" = set; then :
5672 $as_echo_n "(cached) " >&6
5673else
5674 if test -n "$CC"; then
5675 ac_cv_prog_CC="$CC" # Let the user override the test.
5676else
5677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678for as_dir in $PATH
5679do
5680 IFS=$as_save_IFS
5681 test -z "$as_dir" && as_dir=.
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5684 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5686 break 2
5687 fi
5688done
5689 done
5690IFS=$as_save_IFS
5691
5692fi
5693fi
5694CC=$ac_cv_prog_CC
5695if test -n "$CC"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5697$as_echo "$CC" >&6; }
5698else
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700$as_echo "no" >&6; }
5701fi
5702
5703
5704 test -n "$CC" && break
5705 done
5706fi
5707if test -z "$CC"; then
5708 ac_ct_CC=$CC
5709 for ac_prog in cl.exe
5710do
5711 # Extract the first word of "$ac_prog", so it can be a program name with args.
5712set dummy $ac_prog; ac_word=$2
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714$as_echo_n "checking for $ac_word... " >&6; }
5715if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5716 $as_echo_n "(cached) " >&6
5717else
5718 if test -n "$ac_ct_CC"; then
5719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5720else
5721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722for as_dir in $PATH
5723do
5724 IFS=$as_save_IFS
5725 test -z "$as_dir" && as_dir=.
5726 for ac_exec_ext in '' $ac_executable_extensions; do
5727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5728 ac_cv_prog_ac_ct_CC="$ac_prog"
5729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5730 break 2
5731 fi
5732done
5733 done
5734IFS=$as_save_IFS
5735
5736fi
5737fi
5738ac_ct_CC=$ac_cv_prog_ac_ct_CC
5739if test -n "$ac_ct_CC"; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5741$as_echo "$ac_ct_CC" >&6; }
5742else
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744$as_echo "no" >&6; }
5745fi
5746
5747
5748 test -n "$ac_ct_CC" && break
5749done
5750
5751 if test "x$ac_ct_CC" = x; then
5752 CC=""
5753 else
5754 case $cross_compiling:$ac_tool_warned in
5755yes:)
5756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5758ac_tool_warned=yes ;;
5759esac
5760 CC=$ac_ct_CC
5761 fi
5762fi
5763
5764fi
5765
5766
5767test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00005769as_fn_error $? "no acceptable C compiler found in \$PATH
5770See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005771
5772# Provide some information about the compiler.
5773$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5774set X $ac_compile
5775ac_compiler=$2
5776for ac_option in --version -v -V -qversion; do
5777 { { ac_try="$ac_compiler $ac_option >&5"
5778case "(($ac_try" in
5779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780 *) ac_try_echo=$ac_try;;
5781esac
5782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5783$as_echo "$ac_try_echo"; } >&5
5784 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5785 ac_status=$?
5786 if test -s conftest.err; then
5787 sed '10a\
5788... rest of stderr output deleted ...
5789 10q' conftest.err >conftest.er1
5790 cat conftest.er1 >&5
5791 fi
5792 rm -f conftest.er1 conftest.err
5793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5794 test $ac_status = 0; }
5795done
5796
5797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5798$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5799if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5800 $as_echo_n "(cached) " >&6
5801else
5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803/* end confdefs.h. */
5804
5805int
5806main ()
5807{
5808#ifndef __GNUC__
5809 choke me
5810#endif
5811
5812 ;
5813 return 0;
5814}
5815_ACEOF
5816if ac_fn_c_try_compile "$LINENO"; then :
5817 ac_compiler_gnu=yes
5818else
5819 ac_compiler_gnu=no
5820fi
5821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5822ac_cv_c_compiler_gnu=$ac_compiler_gnu
5823
5824fi
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5826$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5827if test $ac_compiler_gnu = yes; then
5828 GCC=yes
5829else
5830 GCC=
5831fi
5832ac_test_CFLAGS=${CFLAGS+set}
5833ac_save_CFLAGS=$CFLAGS
5834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5835$as_echo_n "checking whether $CC accepts -g... " >&6; }
5836if test "${ac_cv_prog_cc_g+set}" = set; then :
5837 $as_echo_n "(cached) " >&6
5838else
5839 ac_save_c_werror_flag=$ac_c_werror_flag
5840 ac_c_werror_flag=yes
5841 ac_cv_prog_cc_g=no
5842 CFLAGS="-g"
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844/* end confdefs.h. */
5845
5846int
5847main ()
5848{
5849
5850 ;
5851 return 0;
5852}
5853_ACEOF
5854if ac_fn_c_try_compile "$LINENO"; then :
5855 ac_cv_prog_cc_g=yes
5856else
5857 CFLAGS=""
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859/* end confdefs.h. */
5860
5861int
5862main ()
5863{
5864
5865 ;
5866 return 0;
5867}
5868_ACEOF
5869if ac_fn_c_try_compile "$LINENO"; then :
5870
5871else
5872 ac_c_werror_flag=$ac_save_c_werror_flag
5873 CFLAGS="-g"
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875/* end confdefs.h. */
5876
5877int
5878main ()
5879{
5880
5881 ;
5882 return 0;
5883}
5884_ACEOF
5885if ac_fn_c_try_compile "$LINENO"; then :
5886 ac_cv_prog_cc_g=yes
5887fi
5888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889fi
5890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891fi
5892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5893 ac_c_werror_flag=$ac_save_c_werror_flag
5894fi
5895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5896$as_echo "$ac_cv_prog_cc_g" >&6; }
5897if test "$ac_test_CFLAGS" = set; then
5898 CFLAGS=$ac_save_CFLAGS
5899elif test $ac_cv_prog_cc_g = yes; then
5900 if test "$GCC" = yes; then
5901 CFLAGS="-g -O2"
5902 else
5903 CFLAGS="-g"
5904 fi
5905else
5906 if test "$GCC" = yes; then
5907 CFLAGS="-O2"
5908 else
5909 CFLAGS=
5910 fi
5911fi
5912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5913$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5914if test "${ac_cv_prog_cc_c89+set}" = set; then :
5915 $as_echo_n "(cached) " >&6
5916else
5917 ac_cv_prog_cc_c89=no
5918ac_save_CC=$CC
5919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920/* end confdefs.h. */
5921#include <stdarg.h>
5922#include <stdio.h>
5923#include <sys/types.h>
5924#include <sys/stat.h>
5925/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5926struct buf { int x; };
5927FILE * (*rcsopen) (struct buf *, struct stat *, int);
5928static char *e (p, i)
5929 char **p;
5930 int i;
5931{
5932 return p[i];
5933}
5934static char *f (char * (*g) (char **, int), char **p, ...)
5935{
5936 char *s;
5937 va_list v;
5938 va_start (v,p);
5939 s = g (p, va_arg (v,int));
5940 va_end (v);
5941 return s;
5942}
5943
5944/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5945 function prototypes and stuff, but not '\xHH' hex character constants.
5946 These don't provoke an error unfortunately, instead are silently treated
5947 as 'x'. The following induces an error, until -std is added to get
5948 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5949 array size at least. It's necessary to write '\x00'==0 to get something
5950 that's true only with -std. */
5951int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5952
5953/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5954 inside strings and character constants. */
5955#define FOO(x) 'x'
5956int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5957
5958int test (int i, double x);
5959struct s1 {int (*f) (int a);};
5960struct s2 {int (*f) (double a);};
5961int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5962int argc;
5963char **argv;
5964int
5965main ()
5966{
5967return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5968 ;
5969 return 0;
5970}
5971_ACEOF
5972for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5973 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5974do
5975 CC="$ac_save_CC $ac_arg"
5976 if ac_fn_c_try_compile "$LINENO"; then :
5977 ac_cv_prog_cc_c89=$ac_arg
5978fi
5979rm -f core conftest.err conftest.$ac_objext
5980 test "x$ac_cv_prog_cc_c89" != "xno" && break
5981done
5982rm -f conftest.$ac_ext
5983CC=$ac_save_CC
5984
5985fi
5986# AC_CACHE_VAL
5987case "x$ac_cv_prog_cc_c89" in
5988 x)
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5990$as_echo "none needed" >&6; } ;;
5991 xno)
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5993$as_echo "unsupported" >&6; } ;;
5994 *)
5995 CC="$CC $ac_cv_prog_cc_c89"
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5997$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5998esac
5999if test "x$ac_cv_prog_cc_c89" != xno; then :
6000
6001fi
6002
6003ac_ext=c
6004ac_cpp='$CPP $CPPFLAGS'
6005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6007ac_compiler_gnu=$ac_cv_c_compiler_gnu
6008
cristy3ed852e2009-09-05 21:47:34 +00006009depcc="$CC" am_compiler_list=
6010
cristy8b350f62009-11-15 23:12:43 +00006011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006012$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006013if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006014 $as_echo_n "(cached) " >&6
6015else
6016 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6017 # We make a subdir and do the tests there. Otherwise we can end up
6018 # making bogus files that we don't know about and never remove. For
6019 # instance it was reported that on HP-UX the gcc test will end up
6020 # making a dummy file named `D' -- because `-MD' means `put the output
6021 # in D'.
6022 mkdir conftest.dir
6023 # Copy depcomp to subdir because otherwise we won't find it if we're
6024 # using a relative directory.
6025 cp "$am_depcomp" conftest.dir
6026 cd conftest.dir
6027 # We will build objects and dependencies in a subdirectory because
6028 # it helps to detect inapplicable dependency modes. For instance
6029 # both Tru64's cc and ICC support -MD to output dependencies as a
6030 # side effect of compilation, but ICC will put the dependencies in
6031 # the current directory while Tru64 will put them in the object
6032 # directory.
6033 mkdir sub
6034
6035 am_cv_CC_dependencies_compiler_type=none
6036 if test "$am_compiler_list" = ""; then
6037 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6038 fi
6039 am__universal=false
6040 case " $depcc " in #(
6041 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6042 esac
6043
6044 for depmode in $am_compiler_list; do
6045 # Setup a source with many dependencies, because some compilers
6046 # like to wrap large dependency lists on column 80 (with \), and
6047 # we should not choose a depcomp mode which is confused by this.
6048 #
6049 # We need to recreate these files for each test, as the compiler may
6050 # overwrite some of them when testing with obscure command lines.
6051 # This happens at least with the AIX C compiler.
6052 : > sub/conftest.c
6053 for i in 1 2 3 4 5 6; do
6054 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6055 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6056 # Solaris 8's {/usr,}/bin/sh.
6057 touch sub/conftst$i.h
6058 done
6059 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6060
6061 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6062 # mode. It turns out that the SunPro C++ compiler does not properly
6063 # handle `-M -o', and we need to detect this. Also, some Intel
6064 # versions had trouble with output in subdirs
6065 am__obj=sub/conftest.${OBJEXT-o}
6066 am__minus_obj="-o $am__obj"
6067 case $depmode in
6068 gcc)
6069 # This depmode causes a compiler race in universal mode.
6070 test "$am__universal" = false || continue
6071 ;;
6072 nosideeffect)
6073 # after this tag, mechanisms are not by side-effect, so they'll
6074 # only be used when explicitly requested
6075 if test "x$enable_dependency_tracking" = xyes; then
6076 continue
6077 else
6078 break
6079 fi
6080 ;;
6081 msvisualcpp | msvcmsys)
6082 # This compiler won't grok `-c -o', but also, the minuso test has
6083 # not run yet. These depmodes are late enough in the game, and
6084 # so weak that their functioning should not be impacted.
6085 am__obj=conftest.${OBJEXT-o}
6086 am__minus_obj=
6087 ;;
6088 none) break ;;
6089 esac
6090 if depmode=$depmode \
6091 source=sub/conftest.c object=$am__obj \
6092 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6093 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6094 >/dev/null 2>conftest.err &&
6095 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6096 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6097 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6098 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6099 # icc doesn't choke on unknown options, it will just issue warnings
6100 # or remarks (even with -Werror). So we grep stderr for any message
6101 # that says an option was ignored or not supported.
6102 # When given -MP, icc 7.0 and 7.1 complain thusly:
6103 # icc: Command line warning: ignoring option '-M'; no argument required
6104 # The diagnosis changed in icc 8.0:
6105 # icc: Command line remark: option '-MP' not supported
6106 if (grep 'ignoring option' conftest.err ||
6107 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6108 am_cv_CC_dependencies_compiler_type=$depmode
6109 break
6110 fi
6111 fi
6112 done
6113
6114 cd ..
6115 rm -rf conftest.dir
6116else
6117 am_cv_CC_dependencies_compiler_type=none
6118fi
6119
6120fi
cristy8b350f62009-11-15 23:12:43 +00006121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00006122$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6123CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6124
6125 if
6126 test "x$enable_dependency_tracking" != xno \
6127 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6128 am__fastdepCC_TRUE=
6129 am__fastdepCC_FALSE='#'
6130else
6131 am__fastdepCC_TRUE='#'
6132 am__fastdepCC_FALSE=
6133fi
6134
6135
cristy95646052009-11-28 23:05:30 +00006136ac_ext=cpp
6137ac_cpp='$CXXCPP $CPPFLAGS'
6138ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6139ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6141if test -z "$CXX"; then
6142 if test -n "$CCC"; then
6143 CXX=$CCC
6144 else
6145 if test -n "$ac_tool_prefix"; then
6146 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6147 do
6148 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6149set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151$as_echo_n "checking for $ac_word... " >&6; }
6152if test "${ac_cv_prog_CXX+set}" = set; then :
6153 $as_echo_n "(cached) " >&6
6154else
6155 if test -n "$CXX"; then
6156 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6157else
6158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159for as_dir in $PATH
6160do
6161 IFS=$as_save_IFS
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6165 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6167 break 2
6168 fi
6169done
6170 done
6171IFS=$as_save_IFS
6172
6173fi
6174fi
6175CXX=$ac_cv_prog_CXX
6176if test -n "$CXX"; then
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6178$as_echo "$CXX" >&6; }
6179else
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181$as_echo "no" >&6; }
6182fi
6183
6184
6185 test -n "$CXX" && break
6186 done
6187fi
6188if test -z "$CXX"; then
6189 ac_ct_CXX=$CXX
6190 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6191do
6192 # Extract the first word of "$ac_prog", so it can be a program name with args.
6193set dummy $ac_prog; ac_word=$2
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6195$as_echo_n "checking for $ac_word... " >&6; }
6196if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6197 $as_echo_n "(cached) " >&6
6198else
6199 if test -n "$ac_ct_CXX"; then
6200 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6201else
6202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203for as_dir in $PATH
6204do
6205 IFS=$as_save_IFS
6206 test -z "$as_dir" && as_dir=.
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6209 ac_cv_prog_ac_ct_CXX="$ac_prog"
6210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6211 break 2
6212 fi
6213done
6214 done
6215IFS=$as_save_IFS
6216
6217fi
6218fi
6219ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6220if test -n "$ac_ct_CXX"; then
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6222$as_echo "$ac_ct_CXX" >&6; }
6223else
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6225$as_echo "no" >&6; }
6226fi
6227
6228
6229 test -n "$ac_ct_CXX" && break
6230done
6231
6232 if test "x$ac_ct_CXX" = x; then
6233 CXX="g++"
6234 else
6235 case $cross_compiling:$ac_tool_warned in
6236yes:)
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6239ac_tool_warned=yes ;;
6240esac
6241 CXX=$ac_ct_CXX
6242 fi
6243fi
6244
6245 fi
6246fi
6247# Provide some information about the compiler.
6248$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6249set X $ac_compile
6250ac_compiler=$2
6251for ac_option in --version -v -V -qversion; do
6252 { { ac_try="$ac_compiler $ac_option >&5"
6253case "(($ac_try" in
6254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6255 *) ac_try_echo=$ac_try;;
6256esac
6257eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6258$as_echo "$ac_try_echo"; } >&5
6259 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6260 ac_status=$?
6261 if test -s conftest.err; then
6262 sed '10a\
6263... rest of stderr output deleted ...
6264 10q' conftest.err >conftest.er1
6265 cat conftest.er1 >&5
6266 fi
6267 rm -f conftest.er1 conftest.err
6268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6269 test $ac_status = 0; }
6270done
6271
6272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6273$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6274if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6275 $as_echo_n "(cached) " >&6
6276else
6277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278/* end confdefs.h. */
6279
6280int
6281main ()
6282{
6283#ifndef __GNUC__
6284 choke me
6285#endif
6286
6287 ;
6288 return 0;
6289}
6290_ACEOF
6291if ac_fn_cxx_try_compile "$LINENO"; then :
6292 ac_compiler_gnu=yes
6293else
6294 ac_compiler_gnu=no
6295fi
6296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6297ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6298
6299fi
6300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6301$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6302if test $ac_compiler_gnu = yes; then
6303 GXX=yes
6304else
6305 GXX=
6306fi
6307ac_test_CXXFLAGS=${CXXFLAGS+set}
6308ac_save_CXXFLAGS=$CXXFLAGS
6309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6310$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6311if test "${ac_cv_prog_cxx_g+set}" = set; then :
6312 $as_echo_n "(cached) " >&6
6313else
6314 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6315 ac_cxx_werror_flag=yes
6316 ac_cv_prog_cxx_g=no
6317 CXXFLAGS="-g"
6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319/* end confdefs.h. */
6320
6321int
6322main ()
6323{
6324
6325 ;
6326 return 0;
6327}
6328_ACEOF
6329if ac_fn_cxx_try_compile "$LINENO"; then :
6330 ac_cv_prog_cxx_g=yes
6331else
6332 CXXFLAGS=""
6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334/* end confdefs.h. */
6335
6336int
6337main ()
6338{
6339
6340 ;
6341 return 0;
6342}
6343_ACEOF
6344if ac_fn_cxx_try_compile "$LINENO"; then :
6345
6346else
6347 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6348 CXXFLAGS="-g"
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350/* end confdefs.h. */
6351
6352int
6353main ()
6354{
6355
6356 ;
6357 return 0;
6358}
6359_ACEOF
6360if ac_fn_cxx_try_compile "$LINENO"; then :
6361 ac_cv_prog_cxx_g=yes
6362fi
6363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364fi
6365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366fi
6367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6369fi
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6371$as_echo "$ac_cv_prog_cxx_g" >&6; }
6372if test "$ac_test_CXXFLAGS" = set; then
6373 CXXFLAGS=$ac_save_CXXFLAGS
6374elif test $ac_cv_prog_cxx_g = yes; then
6375 if test "$GXX" = yes; then
6376 CXXFLAGS="-g -O2"
6377 else
6378 CXXFLAGS="-g"
6379 fi
6380else
6381 if test "$GXX" = yes; then
6382 CXXFLAGS="-O2"
6383 else
6384 CXXFLAGS=
6385 fi
6386fi
6387ac_ext=c
6388ac_cpp='$CPP $CPPFLAGS'
6389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6391ac_compiler_gnu=$ac_cv_c_compiler_gnu
6392
6393depcc="$CXX" am_compiler_list=
6394
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6396$as_echo_n "checking dependency style of $depcc... " >&6; }
6397if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6398 $as_echo_n "(cached) " >&6
6399else
6400 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6401 # We make a subdir and do the tests there. Otherwise we can end up
6402 # making bogus files that we don't know about and never remove. For
6403 # instance it was reported that on HP-UX the gcc test will end up
6404 # making a dummy file named `D' -- because `-MD' means `put the output
6405 # in D'.
6406 mkdir conftest.dir
6407 # Copy depcomp to subdir because otherwise we won't find it if we're
6408 # using a relative directory.
6409 cp "$am_depcomp" conftest.dir
6410 cd conftest.dir
6411 # We will build objects and dependencies in a subdirectory because
6412 # it helps to detect inapplicable dependency modes. For instance
6413 # both Tru64's cc and ICC support -MD to output dependencies as a
6414 # side effect of compilation, but ICC will put the dependencies in
6415 # the current directory while Tru64 will put them in the object
6416 # directory.
6417 mkdir sub
6418
6419 am_cv_CXX_dependencies_compiler_type=none
6420 if test "$am_compiler_list" = ""; then
6421 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6422 fi
6423 am__universal=false
6424 case " $depcc " in #(
6425 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6426 esac
6427
6428 for depmode in $am_compiler_list; do
6429 # Setup a source with many dependencies, because some compilers
6430 # like to wrap large dependency lists on column 80 (with \), and
6431 # we should not choose a depcomp mode which is confused by this.
6432 #
6433 # We need to recreate these files for each test, as the compiler may
6434 # overwrite some of them when testing with obscure command lines.
6435 # This happens at least with the AIX C compiler.
6436 : > sub/conftest.c
6437 for i in 1 2 3 4 5 6; do
6438 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6439 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6440 # Solaris 8's {/usr,}/bin/sh.
6441 touch sub/conftst$i.h
6442 done
6443 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6444
6445 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6446 # mode. It turns out that the SunPro C++ compiler does not properly
6447 # handle `-M -o', and we need to detect this. Also, some Intel
6448 # versions had trouble with output in subdirs
6449 am__obj=sub/conftest.${OBJEXT-o}
6450 am__minus_obj="-o $am__obj"
6451 case $depmode in
6452 gcc)
6453 # This depmode causes a compiler race in universal mode.
6454 test "$am__universal" = false || continue
6455 ;;
6456 nosideeffect)
6457 # after this tag, mechanisms are not by side-effect, so they'll
6458 # only be used when explicitly requested
6459 if test "x$enable_dependency_tracking" = xyes; then
6460 continue
6461 else
6462 break
6463 fi
6464 ;;
6465 msvisualcpp | msvcmsys)
6466 # This compiler won't grok `-c -o', but also, the minuso test has
6467 # not run yet. These depmodes are late enough in the game, and
6468 # so weak that their functioning should not be impacted.
6469 am__obj=conftest.${OBJEXT-o}
6470 am__minus_obj=
6471 ;;
6472 none) break ;;
6473 esac
6474 if depmode=$depmode \
6475 source=sub/conftest.c object=$am__obj \
6476 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6477 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6478 >/dev/null 2>conftest.err &&
6479 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6480 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6481 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6482 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6483 # icc doesn't choke on unknown options, it will just issue warnings
6484 # or remarks (even with -Werror). So we grep stderr for any message
6485 # that says an option was ignored or not supported.
6486 # When given -MP, icc 7.0 and 7.1 complain thusly:
6487 # icc: Command line warning: ignoring option '-M'; no argument required
6488 # The diagnosis changed in icc 8.0:
6489 # icc: Command line remark: option '-MP' not supported
6490 if (grep 'ignoring option' conftest.err ||
6491 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6492 am_cv_CXX_dependencies_compiler_type=$depmode
6493 break
6494 fi
6495 fi
6496 done
6497
6498 cd ..
6499 rm -rf conftest.dir
6500else
6501 am_cv_CXX_dependencies_compiler_type=none
6502fi
6503
6504fi
6505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6506$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6507CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6508
6509 if
6510 test "x$enable_dependency_tracking" != xno \
6511 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6512 am__fastdepCXX_TRUE=
6513 am__fastdepCXX_FALSE='#'
6514else
6515 am__fastdepCXX_TRUE='#'
6516 am__fastdepCXX_FALSE=
6517fi
6518
6519
cristy8b350f62009-11-15 23:12:43 +00006520 case $ac_cv_prog_cc_stdc in #(
6521 no) :
6522 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6523 *) :
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006525$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006526if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006527 $as_echo_n "(cached) " >&6
6528else
6529 ac_cv_prog_cc_c99=no
6530ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006532/* end confdefs.h. */
6533#include <stdarg.h>
6534#include <stdbool.h>
6535#include <stdlib.h>
6536#include <wchar.h>
6537#include <stdio.h>
6538
6539// Check varargs macros. These examples are taken from C99 6.10.3.5.
6540#define debug(...) fprintf (stderr, __VA_ARGS__)
6541#define showlist(...) puts (#__VA_ARGS__)
6542#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6543static void
6544test_varargs_macros (void)
6545{
6546 int x = 1234;
6547 int y = 5678;
6548 debug ("Flag");
6549 debug ("X = %d\n", x);
6550 showlist (The first, second, and third items.);
6551 report (x>y, "x is %d but y is %d", x, y);
6552}
6553
6554// Check long long types.
6555#define BIG64 18446744073709551615ull
6556#define BIG32 4294967295ul
6557#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6558#if !BIG_OK
6559 your preprocessor is broken;
6560#endif
6561#if BIG_OK
6562#else
6563 your preprocessor is broken;
6564#endif
6565static long long int bignum = -9223372036854775807LL;
6566static unsigned long long int ubignum = BIG64;
6567
6568struct incomplete_array
6569{
6570 int datasize;
6571 double data[];
6572};
6573
6574struct named_init {
6575 int number;
6576 const wchar_t *name;
6577 double average;
6578};
6579
6580typedef const char *ccp;
6581
6582static inline int
6583test_restrict (ccp restrict text)
6584{
6585 // See if C++-style comments work.
6586 // Iterate through items via the restricted pointer.
6587 // Also check for declarations in for loops.
6588 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6589 continue;
6590 return 0;
6591}
6592
6593// Check varargs and va_copy.
6594static void
6595test_varargs (const char *format, ...)
6596{
6597 va_list args;
6598 va_start (args, format);
6599 va_list args_copy;
6600 va_copy (args_copy, args);
6601
6602 const char *str;
6603 int number;
6604 float fnumber;
6605
6606 while (*format)
6607 {
6608 switch (*format++)
6609 {
6610 case 's': // string
6611 str = va_arg (args_copy, const char *);
6612 break;
6613 case 'd': // int
6614 number = va_arg (args_copy, int);
6615 break;
6616 case 'f': // float
6617 fnumber = va_arg (args_copy, double);
6618 break;
6619 default:
6620 break;
6621 }
6622 }
6623 va_end (args_copy);
6624 va_end (args);
6625}
6626
6627int
6628main ()
6629{
6630
6631 // Check bool.
6632 _Bool success = false;
6633
6634 // Check restrict.
6635 if (test_restrict ("String literal") == 0)
6636 success = true;
6637 char *restrict newvar = "Another string";
6638
6639 // Check varargs.
6640 test_varargs ("s, d' f .", "string", 65, 34.234);
6641 test_varargs_macros ();
6642
6643 // Check flexible array members.
6644 struct incomplete_array *ia =
6645 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6646 ia->datasize = 10;
6647 for (int i = 0; i < ia->datasize; ++i)
6648 ia->data[i] = i * 1.234;
6649
6650 // Check named initializers.
6651 struct named_init ni = {
6652 .number = 34,
6653 .name = L"Test wide string",
6654 .average = 543.34343,
6655 };
6656
6657 ni.number = 58;
6658
6659 int dynamic_array[ni.number];
6660 dynamic_array[ni.number - 1] = 543;
6661
6662 // work around unused variable warnings
6663 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6664 || dynamic_array[ni.number - 1] != 543);
6665
6666 ;
6667 return 0;
6668}
6669_ACEOF
6670for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6671do
6672 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006673 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006674 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006675fi
cristy3ed852e2009-09-05 21:47:34 +00006676rm -f core conftest.err conftest.$ac_objext
6677 test "x$ac_cv_prog_cc_c99" != "xno" && break
6678done
6679rm -f conftest.$ac_ext
6680CC=$ac_save_CC
6681
6682fi
6683# AC_CACHE_VAL
6684case "x$ac_cv_prog_cc_c99" in
6685 x)
cristy8b350f62009-11-15 23:12:43 +00006686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006687$as_echo "none needed" >&6; } ;;
6688 xno)
cristy8b350f62009-11-15 23:12:43 +00006689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006690$as_echo "unsupported" >&6; } ;;
6691 *)
6692 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006694$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6695esac
cristy8b350f62009-11-15 23:12:43 +00006696if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006697 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6698else
cristy8b350f62009-11-15 23:12:43 +00006699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006700$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006701if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006702 $as_echo_n "(cached) " >&6
6703else
6704 ac_cv_prog_cc_c89=no
6705ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006707/* end confdefs.h. */
6708#include <stdarg.h>
6709#include <stdio.h>
6710#include <sys/types.h>
6711#include <sys/stat.h>
6712/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6713struct buf { int x; };
6714FILE * (*rcsopen) (struct buf *, struct stat *, int);
6715static char *e (p, i)
6716 char **p;
6717 int i;
6718{
6719 return p[i];
6720}
6721static char *f (char * (*g) (char **, int), char **p, ...)
6722{
6723 char *s;
6724 va_list v;
6725 va_start (v,p);
6726 s = g (p, va_arg (v,int));
6727 va_end (v);
6728 return s;
6729}
6730
6731/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6732 function prototypes and stuff, but not '\xHH' hex character constants.
6733 These don't provoke an error unfortunately, instead are silently treated
6734 as 'x'. The following induces an error, until -std is added to get
6735 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6736 array size at least. It's necessary to write '\x00'==0 to get something
6737 that's true only with -std. */
6738int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6739
6740/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6741 inside strings and character constants. */
6742#define FOO(x) 'x'
6743int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6744
6745int test (int i, double x);
6746struct s1 {int (*f) (int a);};
6747struct s2 {int (*f) (double a);};
6748int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6749int argc;
6750char **argv;
6751int
6752main ()
6753{
6754return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6755 ;
6756 return 0;
6757}
6758_ACEOF
6759for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6760 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6761do
6762 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006763 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006764 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006765fi
cristy3ed852e2009-09-05 21:47:34 +00006766rm -f core conftest.err conftest.$ac_objext
6767 test "x$ac_cv_prog_cc_c89" != "xno" && break
6768done
6769rm -f conftest.$ac_ext
6770CC=$ac_save_CC
6771
6772fi
6773# AC_CACHE_VAL
6774case "x$ac_cv_prog_cc_c89" in
6775 x)
cristy8b350f62009-11-15 23:12:43 +00006776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006777$as_echo "none needed" >&6; } ;;
6778 xno)
cristy8b350f62009-11-15 23:12:43 +00006779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006780$as_echo "unsupported" >&6; } ;;
6781 *)
6782 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006784$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6785esac
cristy8b350f62009-11-15 23:12:43 +00006786if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006787 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6788else
6789 ac_cv_prog_cc_stdc=no
6790fi
6791
cristy3ed852e2009-09-05 21:47:34 +00006792fi
cristy3ed852e2009-09-05 21:47:34 +00006793 ;;
6794esac
cristy8b350f62009-11-15 23:12:43 +00006795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006796$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006797 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006798 $as_echo_n "(cached) " >&6
6799fi
6800
cristy8b350f62009-11-15 23:12:43 +00006801 case $ac_cv_prog_cc_stdc in #(
6802 no) :
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6804$as_echo "unsupported" >&6; } ;; #(
6805 '') :
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6807$as_echo "none needed" >&6; } ;; #(
6808 *) :
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006810$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6811esac
6812
cristy3ed852e2009-09-05 21:47:34 +00006813ac_ext=c
6814ac_cpp='$CPP $CPPFLAGS'
6815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6817ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006819$as_echo_n "checking how to run the C preprocessor... " >&6; }
6820# On Suns, sometimes $CPP names a directory.
6821if test -n "$CPP" && test -d "$CPP"; then
6822 CPP=
6823fi
6824if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00006825 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006826 $as_echo_n "(cached) " >&6
6827else
6828 # Double quotes because CPP needs to be expanded
6829 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6830 do
6831 ac_preproc_ok=false
6832for ac_c_preproc_warn_flag in '' yes
6833do
6834 # Use a header file that comes with gcc, so configuring glibc
6835 # with a fresh cross-compiler works.
6836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6837 # <limits.h> exists even on freestanding compilers.
6838 # On the NeXT, cc -E runs the code through the compiler's parser,
6839 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006841/* end confdefs.h. */
6842#ifdef __STDC__
6843# include <limits.h>
6844#else
6845# include <assert.h>
6846#endif
6847 Syntax error
6848_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006849if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006850
cristy8b350f62009-11-15 23:12:43 +00006851else
cristy3ed852e2009-09-05 21:47:34 +00006852 # Broken: fails on valid input.
6853continue
6854fi
cristy3ed852e2009-09-05 21:47:34 +00006855rm -f conftest.err conftest.$ac_ext
6856
6857 # OK, works on sane cases. Now check whether nonexistent headers
6858 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006860/* end confdefs.h. */
6861#include <ac_nonexistent.h>
6862_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006863if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006864 # Broken: success on invalid input.
6865continue
6866else
cristy3ed852e2009-09-05 21:47:34 +00006867 # Passes both tests.
6868ac_preproc_ok=:
6869break
6870fi
cristy3ed852e2009-09-05 21:47:34 +00006871rm -f conftest.err conftest.$ac_ext
6872
6873done
6874# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6875rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006876if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00006877 break
6878fi
6879
6880 done
6881 ac_cv_prog_CPP=$CPP
6882
6883fi
6884 CPP=$ac_cv_prog_CPP
6885else
6886 ac_cv_prog_CPP=$CPP
6887fi
cristy8b350f62009-11-15 23:12:43 +00006888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006889$as_echo "$CPP" >&6; }
6890ac_preproc_ok=false
6891for ac_c_preproc_warn_flag in '' yes
6892do
6893 # Use a header file that comes with gcc, so configuring glibc
6894 # with a fresh cross-compiler works.
6895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6896 # <limits.h> exists even on freestanding compilers.
6897 # On the NeXT, cc -E runs the code through the compiler's parser,
6898 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006900/* end confdefs.h. */
6901#ifdef __STDC__
6902# include <limits.h>
6903#else
6904# include <assert.h>
6905#endif
6906 Syntax error
6907_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006908if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006909
cristy8b350f62009-11-15 23:12:43 +00006910else
cristy3ed852e2009-09-05 21:47:34 +00006911 # Broken: fails on valid input.
6912continue
6913fi
cristy3ed852e2009-09-05 21:47:34 +00006914rm -f conftest.err conftest.$ac_ext
6915
6916 # OK, works on sane cases. Now check whether nonexistent headers
6917 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006919/* end confdefs.h. */
6920#include <ac_nonexistent.h>
6921_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006922if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006923 # Broken: success on invalid input.
6924continue
6925else
cristy3ed852e2009-09-05 21:47:34 +00006926 # Passes both tests.
6927ac_preproc_ok=:
6928break
6929fi
cristy3ed852e2009-09-05 21:47:34 +00006930rm -f conftest.err conftest.$ac_ext
6931
6932done
6933# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6934rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006935if $ac_preproc_ok; then :
6936
cristy3ed852e2009-09-05 21:47:34 +00006937else
cristy8b350f62009-11-15 23:12:43 +00006938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00006939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00006940as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6941See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00006942fi
6943
6944ac_ext=c
6945ac_cpp='$CPP $CPPFLAGS'
6946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6948ac_compiler_gnu=$ac_cv_c_compiler_gnu
6949
cristy8b350f62009-11-15 23:12:43 +00006950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00006951$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006952if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006953 $as_echo_n "(cached) " >&6
6954else
6955 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6956 for ac_i in 1 2 3 4 5 6 7; do
6957 ac_script="$ac_script$as_nl$ac_script"
6958 done
6959 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00006960 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00006961 if test -z "$SED"; then
6962 ac_path_SED_found=false
6963 # Loop through the user's path and test for each of PROGNAME-LIST
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965for as_dir in $PATH
6966do
6967 IFS=$as_save_IFS
6968 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006969 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00006970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6972 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6973# Check for GNU ac_path_SED and select it if it is found.
6974 # Check for GNU $ac_path_SED
6975case `"$ac_path_SED" --version 2>&1` in
6976*GNU*)
6977 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6978*)
6979 ac_count=0
6980 $as_echo_n 0123456789 >"conftest.in"
6981 while :
6982 do
6983 cat "conftest.in" "conftest.in" >"conftest.tmp"
6984 mv "conftest.tmp" "conftest.in"
6985 cp "conftest.in" "conftest.nl"
6986 $as_echo '' >> "conftest.nl"
6987 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6988 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00006989 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00006990 if test $ac_count -gt ${ac_path_SED_max-0}; then
6991 # Best one so far, save it but keep looking for a better one
6992 ac_cv_path_SED="$ac_path_SED"
6993 ac_path_SED_max=$ac_count
6994 fi
6995 # 10*(2^10) chars as input seems more than enough
6996 test $ac_count -gt 10 && break
6997 done
6998 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6999esac
7000
7001 $ac_path_SED_found && break 3
7002 done
7003 done
cristy8b350f62009-11-15 23:12:43 +00007004 done
cristy3ed852e2009-09-05 21:47:34 +00007005IFS=$as_save_IFS
7006 if test -z "$ac_cv_path_SED"; then
cristyfd9dcd42010-08-08 18:07:02 +00007007 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007008 fi
7009else
7010 ac_cv_path_SED=$SED
7011fi
7012
7013fi
cristy8b350f62009-11-15 23:12:43 +00007014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00007015$as_echo "$ac_cv_path_SED" >&6; }
7016 SED="$ac_cv_path_SED"
7017 rm -f conftest.sed
7018
7019test -z "$SED" && SED=sed
7020Xsed="$SED -e 1s/^X//"
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
cristy8b350f62009-11-15 23:12:43 +00007032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00007033$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007034if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007035 $as_echo_n "(cached) " >&6
7036else
7037 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7038 then ac_cv_path_FGREP="$GREP -F"
7039 else
7040 if test -z "$FGREP"; then
7041 ac_path_FGREP_found=false
7042 # Loop through the user's path and test for each of PROGNAME-LIST
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7045do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007048 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00007049 for ac_exec_ext in '' $ac_executable_extensions; do
7050 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7051 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7052# Check for GNU ac_path_FGREP and select it if it is found.
7053 # Check for GNU $ac_path_FGREP
7054case `"$ac_path_FGREP" --version 2>&1` in
7055*GNU*)
7056 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7057*)
7058 ac_count=0
7059 $as_echo_n 0123456789 >"conftest.in"
7060 while :
7061 do
7062 cat "conftest.in" "conftest.in" >"conftest.tmp"
7063 mv "conftest.tmp" "conftest.in"
7064 cp "conftest.in" "conftest.nl"
7065 $as_echo 'FGREP' >> "conftest.nl"
7066 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7067 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007068 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007069 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7070 # Best one so far, save it but keep looking for a better one
7071 ac_cv_path_FGREP="$ac_path_FGREP"
7072 ac_path_FGREP_max=$ac_count
7073 fi
7074 # 10*(2^10) chars as input seems more than enough
7075 test $ac_count -gt 10 && break
7076 done
7077 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7078esac
7079
7080 $ac_path_FGREP_found && break 3
7081 done
7082 done
cristy8b350f62009-11-15 23:12:43 +00007083 done
cristy3ed852e2009-09-05 21:47:34 +00007084IFS=$as_save_IFS
7085 if test -z "$ac_cv_path_FGREP"; then
cristyfd9dcd42010-08-08 18:07:02 +00007086 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007087 fi
7088else
7089 ac_cv_path_FGREP=$FGREP
7090fi
7091
7092 fi
7093fi
cristy8b350f62009-11-15 23:12:43 +00007094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007095$as_echo "$ac_cv_path_FGREP" >&6; }
7096 FGREP="$ac_cv_path_FGREP"
7097
7098
7099test -z "$GREP" && GREP=grep
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
cristyfd9dcd42010-08-08 18:07:02 +00007117ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7118ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7119ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7120
7121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7122$as_echo_n "checking how to print strings... " >&6; }
7123# Test print first, because it will be a builtin if present.
7124if test "X`print -r -- -n 2>/dev/null`" = X-n && \
7125 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7126 ECHO='print -r --'
7127elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7128 ECHO='printf %s\n'
7129else
7130 # Use this function as a fallback that always works.
7131 func_fallback_echo ()
7132 {
7133 eval 'cat <<_LTECHO_EOF
7134$1
7135_LTECHO_EOF'
7136 }
7137 ECHO='func_fallback_echo'
7138fi
7139
7140# func_echo_all arg...
7141# Invoke $ECHO with all args, space-separated.
7142func_echo_all ()
7143{
7144 $ECHO ""
7145}
7146
7147case "$ECHO" in
7148 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7149$as_echo "printf" >&6; } ;;
7150 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7151$as_echo "print -r" >&6; } ;;
7152 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7153$as_echo "cat" >&6; } ;;
7154esac
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
cristy3ed852e2009-09-05 21:47:34 +00007169
7170
7171# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00007172if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007173 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7174else
7175 with_gnu_ld=no
7176fi
7177
7178ac_prog=ld
7179if test "$GCC" = yes; then
7180 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00007181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007182$as_echo_n "checking for ld used by $CC... " >&6; }
7183 case $host in
7184 *-*-mingw*)
7185 # gcc leaves a trailing carriage return which upsets mingw
7186 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7187 *)
7188 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7189 esac
7190 case $ac_prog in
7191 # Accept absolute paths.
7192 [\\/]* | ?:[\\/]*)
7193 re_direlt='/[^/][^/]*/\.\./'
7194 # Canonicalize the pathname of ld
7195 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7196 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7197 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7198 done
7199 test -z "$LD" && LD="$ac_prog"
7200 ;;
7201 "")
7202 # If it fails, then pretend we aren't using GCC.
7203 ac_prog=ld
7204 ;;
7205 *)
7206 # If it is relative, then search for the first ld in PATH.
7207 with_gnu_ld=unknown
7208 ;;
7209 esac
7210elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007212$as_echo_n "checking for GNU ld... " >&6; }
7213else
cristy8b350f62009-11-15 23:12:43 +00007214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007215$as_echo_n "checking for non-GNU ld... " >&6; }
7216fi
cristy8b350f62009-11-15 23:12:43 +00007217if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007218 $as_echo_n "(cached) " >&6
7219else
7220 if test -z "$LD"; then
7221 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7222 for ac_dir in $PATH; do
7223 IFS="$lt_save_ifs"
7224 test -z "$ac_dir" && ac_dir=.
7225 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7226 lt_cv_path_LD="$ac_dir/$ac_prog"
7227 # Check to see if the program is GNU ld. I'd rather use --version,
7228 # but apparently some variants of GNU ld only accept -v.
7229 # Break only if it was the GNU/non-GNU ld that we prefer.
7230 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7231 *GNU* | *'with BFD'*)
7232 test "$with_gnu_ld" != no && break
7233 ;;
7234 *)
7235 test "$with_gnu_ld" != yes && break
7236 ;;
7237 esac
7238 fi
7239 done
7240 IFS="$lt_save_ifs"
7241else
7242 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7243fi
7244fi
7245
7246LD="$lt_cv_path_LD"
7247if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00007248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00007249$as_echo "$LD" >&6; }
7250else
cristy8b350f62009-11-15 23:12:43 +00007251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007252$as_echo "no" >&6; }
7253fi
cristyfd9dcd42010-08-08 18:07:02 +00007254test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy8b350f62009-11-15 23:12:43 +00007255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007256$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007257if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007258 $as_echo_n "(cached) " >&6
7259else
7260 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7261case `$LD -v 2>&1 </dev/null` in
7262*GNU* | *'with BFD'*)
7263 lt_cv_prog_gnu_ld=yes
7264 ;;
7265*)
7266 lt_cv_prog_gnu_ld=no
7267 ;;
7268esac
7269fi
cristy8b350f62009-11-15 23:12:43 +00007270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007271$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7272with_gnu_ld=$lt_cv_prog_gnu_ld
7273
7274
7275
7276
7277
7278
7279
7280
7281
cristy3ed852e2009-09-05 21:47:34 +00007282
cristy837d6dc2010-02-27 01:16:57 +00007283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7284$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7285if test "${ac_cv_prog_cc_c99+set}" = set; then :
7286 $as_echo_n "(cached) " >&6
7287else
7288 ac_cv_prog_cc_c99=no
7289ac_save_CC=$CC
7290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291/* end confdefs.h. */
7292#include <stdarg.h>
7293#include <stdbool.h>
7294#include <stdlib.h>
7295#include <wchar.h>
7296#include <stdio.h>
7297
7298// Check varargs macros. These examples are taken from C99 6.10.3.5.
7299#define debug(...) fprintf (stderr, __VA_ARGS__)
7300#define showlist(...) puts (#__VA_ARGS__)
7301#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7302static void
7303test_varargs_macros (void)
7304{
7305 int x = 1234;
7306 int y = 5678;
7307 debug ("Flag");
7308 debug ("X = %d\n", x);
7309 showlist (The first, second, and third items.);
7310 report (x>y, "x is %d but y is %d", x, y);
7311}
7312
7313// Check long long types.
7314#define BIG64 18446744073709551615ull
7315#define BIG32 4294967295ul
7316#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7317#if !BIG_OK
7318 your preprocessor is broken;
7319#endif
7320#if BIG_OK
7321#else
7322 your preprocessor is broken;
7323#endif
7324static long long int bignum = -9223372036854775807LL;
7325static unsigned long long int ubignum = BIG64;
7326
7327struct incomplete_array
7328{
7329 int datasize;
7330 double data[];
7331};
7332
7333struct named_init {
7334 int number;
7335 const wchar_t *name;
7336 double average;
7337};
7338
7339typedef const char *ccp;
7340
7341static inline int
7342test_restrict (ccp restrict text)
7343{
7344 // See if C++-style comments work.
7345 // Iterate through items via the restricted pointer.
7346 // Also check for declarations in for loops.
7347 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7348 continue;
7349 return 0;
7350}
7351
7352// Check varargs and va_copy.
7353static void
7354test_varargs (const char *format, ...)
7355{
7356 va_list args;
7357 va_start (args, format);
7358 va_list args_copy;
7359 va_copy (args_copy, args);
7360
7361 const char *str;
7362 int number;
7363 float fnumber;
7364
7365 while (*format)
7366 {
7367 switch (*format++)
7368 {
7369 case 's': // string
7370 str = va_arg (args_copy, const char *);
7371 break;
7372 case 'd': // int
7373 number = va_arg (args_copy, int);
7374 break;
7375 case 'f': // float
7376 fnumber = va_arg (args_copy, double);
7377 break;
7378 default:
7379 break;
7380 }
7381 }
7382 va_end (args_copy);
7383 va_end (args);
7384}
7385
7386int
7387main ()
7388{
7389
7390 // Check bool.
7391 _Bool success = false;
7392
7393 // Check restrict.
7394 if (test_restrict ("String literal") == 0)
7395 success = true;
7396 char *restrict newvar = "Another string";
7397
7398 // Check varargs.
7399 test_varargs ("s, d' f .", "string", 65, 34.234);
7400 test_varargs_macros ();
7401
7402 // Check flexible array members.
7403 struct incomplete_array *ia =
7404 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7405 ia->datasize = 10;
7406 for (int i = 0; i < ia->datasize; ++i)
7407 ia->data[i] = i * 1.234;
7408
7409 // Check named initializers.
7410 struct named_init ni = {
7411 .number = 34,
7412 .name = L"Test wide string",
7413 .average = 543.34343,
7414 };
7415
7416 ni.number = 58;
7417
7418 int dynamic_array[ni.number];
7419 dynamic_array[ni.number - 1] = 543;
7420
7421 // work around unused variable warnings
7422 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7423 || dynamic_array[ni.number - 1] != 543);
7424
7425 ;
7426 return 0;
7427}
7428_ACEOF
7429for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7430do
7431 CC="$ac_save_CC $ac_arg"
7432 if ac_fn_c_try_compile "$LINENO"; then :
7433 ac_cv_prog_cc_c99=$ac_arg
7434fi
7435rm -f core conftest.err conftest.$ac_objext
7436 test "x$ac_cv_prog_cc_c99" != "xno" && break
7437done
7438rm -f conftest.$ac_ext
7439CC=$ac_save_CC
7440
7441fi
7442# AC_CACHE_VAL
7443case "x$ac_cv_prog_cc_c99" in
7444 x)
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7446$as_echo "none needed" >&6; } ;;
7447 xno)
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7449$as_echo "unsupported" >&6; } ;;
7450 *)
7451 CC="$CC $ac_cv_prog_cc_c99"
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7453$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7454esac
7455if test "x$ac_cv_prog_cc_c99" != xno; then :
7456
7457fi
7458
7459
cristy3ed852e2009-09-05 21:47:34 +00007460if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00007461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007462$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7463else
cristy8b350f62009-11-15 23:12:43 +00007464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007465$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7466fi
7467set dummy $CC; ac_cc=`$as_echo "$2" |
7468 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyfd9dcd42010-08-08 18:07:02 +00007469if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007470 $as_echo_n "(cached) " >&6
7471else
cristy8b350f62009-11-15 23:12:43 +00007472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007473/* end confdefs.h. */
7474
7475int
7476main ()
7477{
7478
7479 ;
7480 return 0;
7481}
7482_ACEOF
7483# Make sure it works both with $CC and with simple cc.
7484# We do the test twice because some compilers refuse to overwrite an
7485# existing .o file with -o, though they will create one.
7486ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7487rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007488if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7490 *) ac_try_echo=$ac_try;;
7491esac
cristy8b350f62009-11-15 23:12:43 +00007492eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7493$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007494 (eval "$ac_try") 2>&5
7495 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7497 test $ac_status = 0; } &&
7498 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7500 *) ac_try_echo=$ac_try;;
7501esac
cristy8b350f62009-11-15 23:12:43 +00007502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7503$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007504 (eval "$ac_try") 2>&5
7505 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7507 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007508then
7509 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7510 if test "x$CC" != xcc; then
7511 # Test first that cc exists at all.
7512 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00007513 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7515 *) ac_try_echo=$ac_try;;
7516esac
cristy8b350f62009-11-15 23:12:43 +00007517eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7518$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007519 (eval "$ac_try") 2>&5
7520 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7522 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00007523 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7524 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007525 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7527 *) ac_try_echo=$ac_try;;
7528esac
cristy8b350f62009-11-15 23:12:43 +00007529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7530$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007531 (eval "$ac_try") 2>&5
7532 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7534 test $ac_status = 0; } &&
7535 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7538esac
cristy8b350f62009-11-15 23:12:43 +00007539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7540$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007541 (eval "$ac_try") 2>&5
7542 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7544 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007545 then
7546 # cc works too.
7547 :
7548 else
7549 # cc exists but doesn't like -o.
7550 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7551 fi
7552 fi
7553 fi
7554else
7555 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7556fi
7557rm -f core conftest*
7558
7559fi
7560if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00007561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007562$as_echo "yes" >&6; }
7563else
cristy8b350f62009-11-15 23:12:43 +00007564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007565$as_echo "no" >&6; }
7566
cristy8b350f62009-11-15 23:12:43 +00007567$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007568
7569fi
7570
7571# FIXME: we rely on the cache variable name because
7572# there is no other way.
7573set dummy $CC
7574am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7575eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7576if test "$am_t" != yes; then
7577 # Losing compiler, so override with the script.
7578 # FIXME: It is wrong to rewrite CC.
7579 # But if we don't then we get into trouble of one sort or another.
7580 # A longer-term fix would be to have automake use am__CC in this case,
7581 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7582 CC="$am_aux_dir/compile $CC"
7583fi
7584
7585
cristy92703d82010-04-26 00:18:18 +00007586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7587$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7588if test "${ac_cv_cflags_warn_all+set}" = set; then :
7589 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00007590else
cristy92703d82010-04-26 00:18:18 +00007591 ac_cv_cflags_warn_all="no, unknown"
7592
7593 ac_ext=c
7594ac_cpp='$CPP $CPPFLAGS'
7595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7597ac_compiler_gnu=$ac_cv_c_compiler_gnu
7598
7599 ac_save_CFLAGS="$CFLAGS"
7600for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
7601do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603/* end confdefs.h. */
7604
7605int
7606main ()
7607{
7608return 0;
7609 ;
7610 return 0;
7611}
7612_ACEOF
7613if ac_fn_c_try_compile "$LINENO"; then :
7614 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
cristy3ed852e2009-09-05 21:47:34 +00007615fi
cristy92703d82010-04-26 00:18:18 +00007616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617done
7618 CFLAGS="$ac_save_CFLAGS"
7619 ac_ext=c
7620ac_cpp='$CPP $CPPFLAGS'
7621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7623ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00007624
7625
cristy92703d82010-04-26 00:18:18 +00007626fi
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7628$as_echo "$ac_cv_cflags_warn_all" >&6; }
7629case ".$ac_cv_cflags_warn_all" in
7630 .ok|.ok,*) ;;
7631 .|.no|.no,*)
7632 ;;
7633 *)
7634 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7635 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7636 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7637 ac_status=$?
7638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7639 test $ac_status = 0; }
7640 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7641 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7642 ac_status=$?
7643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7644 test $ac_status = 0; }
7645 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7646 fi
7647 ;;
7648esac
cristy3ed852e2009-09-05 21:47:34 +00007649
cristya0b81c32010-01-22 02:54:33 +00007650
7651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7652$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7653set x ${MAKE-make}
7654ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyfd9dcd42010-08-08 18:07:02 +00007655if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
cristya0b81c32010-01-22 02:54:33 +00007656 $as_echo_n "(cached) " >&6
7657else
7658 cat >conftest.make <<\_ACEOF
7659SHELL = /bin/sh
7660all:
7661 @echo '@@@%%%=$(MAKE)=@@@%%%'
7662_ACEOF
cristyfd9dcd42010-08-08 18:07:02 +00007663# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007664case `${MAKE-make} -f conftest.make 2>/dev/null` in
7665 *@@@%%%=?*=@@@%%%*)
7666 eval ac_cv_prog_make_${ac_make}_set=yes;;
7667 *)
7668 eval ac_cv_prog_make_${ac_make}_set=no;;
7669esac
7670rm -f conftest.make
7671fi
7672if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7674$as_echo "yes" >&6; }
7675 SET_MAKE=
7676else
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678$as_echo "no" >&6; }
7679 SET_MAKE="MAKE=${MAKE-make}"
7680fi
7681
cristy8b350f62009-11-15 23:12:43 +00007682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007683$as_echo_n "checking whether ln -s works... " >&6; }
7684LN_S=$as_ln_s
7685if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007687$as_echo "yes" >&6; }
7688else
cristy8b350f62009-11-15 23:12:43 +00007689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007690$as_echo "no, using $LN_S" >&6; }
7691fi
7692
cristy8b350f62009-11-15 23:12:43 +00007693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00007694$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7695
7696# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00007697if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007698 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007700$as_echo "yes" >&6; }
7701
cristy8b350f62009-11-15 23:12:43 +00007702$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007703
7704 LIBS="$LIBS -ldmalloc"
7705 LDFLAGS="$LDFLAGS -g"
7706else
cristy8b350f62009-11-15 23:12:43 +00007707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007708$as_echo "no" >&6; }
7709fi
7710else
cristy8b350f62009-11-15 23:12:43 +00007711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007712$as_echo "no" >&6; }
7713fi
7714
7715
7716
cristy0d3a6382010-04-26 00:45:55 +00007717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7718$as_echo_n "checking for __attribute__... " >&6; }
7719if test "${ax_cv___attribute__+set}" = set; then :
7720 $as_echo_n "(cached) " >&6
7721else
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723/* end confdefs.h. */
7724#include <stdlib.h>
7725 static void foo(void) __attribute__ ((unused));
7726 static void
7727 foo(void) {
7728 exit(1);
7729 }
7730
7731int
7732main ()
7733{
7734
7735 ;
7736 return 0;
7737}
7738_ACEOF
7739if ac_fn_c_try_compile "$LINENO"; then :
7740 ax_cv___attribute__=yes
7741else
7742 ax_cv___attribute__=no
7743
7744fi
7745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7746
7747fi
7748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7749$as_echo "$ax_cv___attribute__" >&6; }
7750 if test "$ax_cv___attribute__" = "yes"; then
7751
7752$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7753
7754 fi
7755
7756
cristy3ed852e2009-09-05 21:47:34 +00007757
7758if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7759 if test -n "$ac_tool_prefix"; then
7760 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7761set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007763$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007764if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007765 $as_echo_n "(cached) " >&6
7766else
7767 case $PKG_CONFIG in
7768 [\\/]* | ?:[\\/]*)
7769 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7770 ;;
7771 *)
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773for as_dir in $PATH
7774do
7775 IFS=$as_save_IFS
7776 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007777 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7779 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007781 break 2
7782 fi
7783done
cristy8b350f62009-11-15 23:12:43 +00007784 done
cristy3ed852e2009-09-05 21:47:34 +00007785IFS=$as_save_IFS
7786
7787 ;;
7788esac
7789fi
7790PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7791if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007793$as_echo "$PKG_CONFIG" >&6; }
7794else
cristy8b350f62009-11-15 23:12:43 +00007795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007796$as_echo "no" >&6; }
7797fi
7798
7799
7800fi
7801if test -z "$ac_cv_path_PKG_CONFIG"; then
7802 ac_pt_PKG_CONFIG=$PKG_CONFIG
7803 # Extract the first word of "pkg-config", so it can be a program name with args.
7804set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007806$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007807if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007808 $as_echo_n "(cached) " >&6
7809else
7810 case $ac_pt_PKG_CONFIG in
7811 [\\/]* | ?:[\\/]*)
7812 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7813 ;;
7814 *)
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816for as_dir in $PATH
7817do
7818 IFS=$as_save_IFS
7819 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007820 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7822 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007824 break 2
7825 fi
7826done
cristy8b350f62009-11-15 23:12:43 +00007827 done
cristy3ed852e2009-09-05 21:47:34 +00007828IFS=$as_save_IFS
7829
7830 ;;
7831esac
7832fi
7833ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7834if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007836$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7837else
cristy8b350f62009-11-15 23:12:43 +00007838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007839$as_echo "no" >&6; }
7840fi
7841
7842 if test "x$ac_pt_PKG_CONFIG" = x; then
7843 PKG_CONFIG=""
7844 else
7845 case $cross_compiling:$ac_tool_warned in
7846yes:)
cristy8b350f62009-11-15 23:12:43 +00007847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00007848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7849ac_tool_warned=yes ;;
7850esac
7851 PKG_CONFIG=$ac_pt_PKG_CONFIG
7852 fi
7853else
7854 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7855fi
7856
7857fi
7858if test -n "$PKG_CONFIG"; then
7859 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00007860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00007861$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7862 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00007863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007864$as_echo "yes" >&6; }
7865 else
cristy8b350f62009-11-15 23:12:43 +00007866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007867$as_echo "no" >&6; }
7868 PKG_CONFIG=""
7869 fi
7870
7871fi
7872
7873#
cristy3ed852e2009-09-05 21:47:34 +00007874# Enable run-time checking.
7875#
7876# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007877if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007878 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7879else
7880 enable_bounds_checking='no'
7881fi
7882
7883
7884if test "$enable_bounds_checking" = yes; then
7885
cristy8b350f62009-11-15 23:12:43 +00007886$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007887
7888fi
7889
7890#
7891# Tests for Windows
7892#
7893
7894
cristy0d3a6382010-04-26 00:45:55 +00007895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7896$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7897if test "${ax_cv_c_compiler_ms+set}" = set; then :
7898 $as_echo_n "(cached) " >&6
7899else
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901/* end confdefs.h. */
7902
7903int
7904main ()
7905{
7906#ifndef _MSC_VER
7907 choke me
7908#endif
7909
7910 ;
7911 return 0;
7912}
7913_ACEOF
7914if ac_fn_c_try_compile "$LINENO"; then :
7915 ax_compiler_ms=yes
7916else
7917 ax_compiler_ms=no
7918fi
7919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7920ax_cv_c_compiler_ms=$ax_compiler_ms
7921
7922fi
7923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7924$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00007925
7926GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00007927native_win32_build='no'
7928cygwin_build='no'
7929case "${host_os}" in
7930 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00007931 cygwin_build='yes'
7932 GDI32_LIBS='-lgdi32'
7933 ;;
7934 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00007935 native_win32_build='yes'
7936 GDI32_LIBS='-lgdi32'
7937 ;;
7938esac
7939if test "${GDI32_LIBS}x" != 'x'; then
7940
cristy8b350f62009-11-15 23:12:43 +00007941$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007942
7943fi
7944
7945 if test "${GDI32_LIBS}x" != 'x' ; then
7946 WINGDI32_DELEGATE_TRUE=
7947 WINGDI32_DELEGATE_FALSE='#'
7948else
7949 WINGDI32_DELEGATE_TRUE='#'
7950 WINGDI32_DELEGATE_FALSE=
7951fi
7952
7953 if test "${native_win32_build}" = 'yes' ; then
7954 WIN32_NATIVE_BUILD_TRUE=
7955 WIN32_NATIVE_BUILD_FALSE='#'
7956else
7957 WIN32_NATIVE_BUILD_TRUE='#'
7958 WIN32_NATIVE_BUILD_FALSE=
7959fi
7960
7961 if test "${cygwin_build}" = 'yes' ; then
7962 CYGWIN_BUILD_TRUE=
7963 CYGWIN_BUILD_FALSE='#'
7964else
7965 CYGWIN_BUILD_TRUE='#'
7966 CYGWIN_BUILD_FALSE=
7967fi
7968
7969 if test "x${CC}" = 'xcl.exe' ; then
7970 USING_CL_TRUE=
7971 USING_CL_FALSE='#'
7972else
7973 USING_CL_TRUE='#'
7974 USING_CL_FALSE=
7975fi
7976
7977
7978WinPathScript="${srcdirfull}/winpath.sh"
7979
7980
7981#
7982# Compiler flags tweaks
7983#
7984if test "${GCC}" != "yes"; then
7985 case "${host}" in
7986 *-*-hpux* )
7987 # aCC: HP ANSI C++ B3910B A.03.34
7988 CFLAGS="${CFLAGS} -Wp,-H30000"
7989 if test -n "${CXXFLAGS}"; then
7990 CXXFLAGS='-AA'
7991 else
7992 CXXFLAGS="${CXXFLAGS} -AA"
7993 fi
7994 ;;
7995 *-dec-osf5.* )
7996 # Compaq alphaev68-dec-osf5.1 compiler
7997 if test -n "${CXXFLAGS}"; then
7998 CXXFLAGS='-std strict_ansi -noimplicit_include'
7999 else
8000 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8001 fi
8002 esac
8003fi
8004
8005# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008007$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008008if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008009 $as_echo_n "(cached) " >&6
8010else
8011
8012im_cv_ld_lazyload='none'
8013case "${host}" in
8014 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8015 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8016 im_cv_ld_lazyload='-Wl,-zlazyload'
8017 fi
8018 ;;
8019esac
8020
8021fi
cristy8b350f62009-11-15 23:12:43 +00008022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008023$as_echo "$im_cv_ld_lazyload" >&6; }
8024if test "${im_cv_ld_lazyload}" != 'none' ; then
8025 if test -z "${LDFLAGS}" ; then
8026 LDFLAGS="${im_cv_ld_lazyload}"
8027 else
8028 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8029 fi
8030fi
8031
8032case "$host" in
8033*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008034 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008035if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008036 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8037else
8038 build_osxuniversal=no
8039fi
8040
8041
8042 if test "${build_osxuniversal}" != no ; then
8043 if test "$enable_dependency_tracking" != no ; then
cristyfd9dcd42010-08-08 18:07:02 +00008044 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008045Please re-run configure with these options:
8046 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008047 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008048 fi
8049 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8050 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8051 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8052 fi
8053 ;;
8054esac
8055
8056# Enable support for threads
8057
8058# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008059if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008060 withval=$with_threads; with_threads=$withval
8061else
8062 with_threads='yes'
8063fi
8064
8065
8066have_threads=no
8067if test "$with_threads" != 'no'; then
8068
8069
8070
8071ac_ext=c
8072ac_cpp='$CPP $CPPFLAGS'
8073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8075ac_compiler_gnu=$ac_cv_c_compiler_gnu
8076
cristy964cb7f2010-04-25 23:18:00 +00008077ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008078
8079# We used to check for pthread.h first, but this fails if pthread.h
8080# requires special compiler flags (e.g. on True64 or Sequent).
8081# It gets checked for in the link test anyway.
8082
8083# First of all, check if the user has set any of the PTHREAD_LIBS,
8084# etcetera environment variables, and if threads linking works using
8085# them:
8086if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8087 save_CFLAGS="$CFLAGS"
8088 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8089 save_LIBS="$LIBS"
8090 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00008091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
cristy3ed852e2009-09-05 21:47:34 +00008092$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008094/* end confdefs.h. */
8095
8096/* Override any GCC internal prototype to avoid an error.
8097 Use char because int might match the return type of a GCC
8098 builtin and then its argument prototype would still apply. */
8099#ifdef __cplusplus
8100extern "C"
8101#endif
8102char pthread_join ();
8103int
8104main ()
8105{
8106return pthread_join ();
8107 ;
8108 return 0;
8109}
8110_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008111if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008112 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008113fi
cristy8b350f62009-11-15 23:12:43 +00008114rm -f core conftest.err conftest.$ac_objext \
8115 conftest$ac_exeext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +00008116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8117$as_echo "$ax_pthread_ok" >&6; }
8118 if test x"$ax_pthread_ok" = xno; then
cristy3ed852e2009-09-05 21:47:34 +00008119 PTHREAD_LIBS=""
8120 PTHREAD_CFLAGS=""
8121 fi
8122 LIBS="$save_LIBS"
8123 CFLAGS="$save_CFLAGS"
8124fi
8125
8126# We must check for the threads library under a number of different
8127# names; the ordering is very important because some systems
8128# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8129# libraries is broken (non-POSIX).
8130
8131# Create a list of thread flags to try. Items starting with a "-" are
8132# C compiler flags, and other items are library names, except for "none"
8133# which indicates that we try without any flags at all, and "pthread-config"
8134# which is a program returning the flags for the Pth emulation library.
8135
cristy964cb7f2010-04-25 23:18:00 +00008136ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy3ed852e2009-09-05 21:47:34 +00008137
8138# The ordering *is* (sometimes) important. Some notes on the
8139# individual items follow:
8140
8141# pthreads: AIX (must check this before -lpthread)
8142# none: in case threads are in libc; should be tried before -Kthread and
8143# other compiler flags to prevent continual compiler warnings
8144# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8145# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8146# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8147# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8148# -pthreads: Solaris/gcc
8149# -mthreads: Mingw32/gcc, Lynx/gcc
8150# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8151# doesn't hurt to check since this sometimes defines pthreads too;
8152# also defines -D_REENTRANT)
8153# ... -mt is also the pthreads flag for HP/aCC
8154# pthread: Linux, etcetera
8155# --thread-safe: KAI C++
8156# pthread-config: use pthread-config program (for GNU Pth library)
8157
8158case "${host_cpu}-${host_os}" in
8159 *solaris*)
8160
8161 # On Solaris (at least, for some versions), libc contains stubbed
8162 # (non-functional) versions of the pthreads routines, so link-based
8163 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8164 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8165 # a function called by this macro, so we could check for that, but
8166 # who knows whether they'll stub that too in a future libc.) So,
8167 # we'll just look for -pthreads and -lpthread first:
8168
cristy964cb7f2010-04-25 23:18:00 +00008169 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
cristy3ed852e2009-09-05 21:47:34 +00008170 ;;
cristy964cb7f2010-04-25 23:18:00 +00008171
8172 *-darwin*)
8173 acx_pthread_flags="-pthread $acx_pthread_flags"
8174 ;;
cristy3ed852e2009-09-05 21:47:34 +00008175esac
8176
cristy964cb7f2010-04-25 23:18:00 +00008177if test x"$ax_pthread_ok" = xno; then
8178for flag in $ax_pthread_flags; do
cristy3ed852e2009-09-05 21:47:34 +00008179
8180 case $flag in
8181 none)
cristy8b350f62009-11-15 23:12:43 +00008182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00008183$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8184 ;;
8185
8186 -*)
cristy8b350f62009-11-15 23:12:43 +00008187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008188$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8189 PTHREAD_CFLAGS="$flag"
8190 ;;
8191
8192 pthread-config)
8193 # Extract the first word of "pthread-config", so it can be a program name with args.
8194set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008196$as_echo_n "checking for $ac_word... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +00008197if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008198 $as_echo_n "(cached) " >&6
8199else
cristy964cb7f2010-04-25 23:18:00 +00008200 if test -n "$ax_pthread_config"; then
8201 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
cristy3ed852e2009-09-05 21:47:34 +00008202else
8203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204for as_dir in $PATH
8205do
8206 IFS=$as_save_IFS
8207 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008208 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy964cb7f2010-04-25 23:18:00 +00008210 ac_cv_prog_ax_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00008211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008212 break 2
8213 fi
8214done
cristy8b350f62009-11-15 23:12:43 +00008215 done
cristy3ed852e2009-09-05 21:47:34 +00008216IFS=$as_save_IFS
8217
cristy964cb7f2010-04-25 23:18:00 +00008218 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
cristy3ed852e2009-09-05 21:47:34 +00008219fi
8220fi
cristy964cb7f2010-04-25 23:18:00 +00008221ax_pthread_config=$ac_cv_prog_ax_pthread_config
8222if test -n "$ax_pthread_config"; then
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8224$as_echo "$ax_pthread_config" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008225else
cristy8b350f62009-11-15 23:12:43 +00008226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008227$as_echo "no" >&6; }
8228fi
8229
8230
cristy964cb7f2010-04-25 23:18:00 +00008231 if test x"$ax_pthread_config" = xno; then continue; fi
cristy3ed852e2009-09-05 21:47:34 +00008232 PTHREAD_CFLAGS="`pthread-config --cflags`"
8233 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8234 ;;
8235
8236 *)
cristy8b350f62009-11-15 23:12:43 +00008237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008238$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8239 PTHREAD_LIBS="-l$flag"
8240 ;;
8241 esac
8242
8243 save_LIBS="$LIBS"
8244 save_CFLAGS="$CFLAGS"
8245 LIBS="$PTHREAD_LIBS $LIBS"
8246 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8247
8248 # Check for various functions. We must include pthread.h,
8249 # since some functions may be macros. (On the Sequent, we
8250 # need a special flag -Kthread to make this header compile.)
8251 # We check for pthread_join because it is in -lpthread on IRIX
8252 # while pthread_create is in libc. We check for pthread_attr_init
8253 # due to DEC craziness with -lpthreads. We check for
8254 # pthread_cleanup_push because it is one of the few pthread
8255 # functions on Solaris that doesn't have a non-functional libc stub.
8256 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00008257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008258/* end confdefs.h. */
8259#include <pthread.h>
cristy964cb7f2010-04-25 23:18:00 +00008260 static void routine(void* a) {a=0;}
8261 static void* start_routine(void* a) {return a;}
cristy3ed852e2009-09-05 21:47:34 +00008262int
8263main ()
8264{
cristy964cb7f2010-04-25 23:18:00 +00008265pthread_t th; pthread_attr_t attr;
8266 pthread_join(th, 0);
8267 pthread_attr_init(&attr);
8268 pthread_cleanup_push(routine, 0);
8269 pthread_create(&th,0,start_routine,0);
8270 pthread_cleanup_pop(0);
cristy3ed852e2009-09-05 21:47:34 +00008271 ;
8272 return 0;
8273}
8274_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008275if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008276 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008277fi
cristy8b350f62009-11-15 23:12:43 +00008278rm -f core conftest.err conftest.$ac_objext \
8279 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008280
8281 LIBS="$save_LIBS"
8282 CFLAGS="$save_CFLAGS"
8283
cristy964cb7f2010-04-25 23:18:00 +00008284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8285$as_echo "$ax_pthread_ok" >&6; }
8286 if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008287 break;
8288 fi
8289
8290 PTHREAD_LIBS=""
8291 PTHREAD_CFLAGS=""
8292done
8293fi
8294
8295# Various other checks:
cristy964cb7f2010-04-25 23:18:00 +00008296if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008297 save_LIBS="$LIBS"
8298 LIBS="$PTHREAD_LIBS $LIBS"
8299 save_CFLAGS="$CFLAGS"
8300 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8301
8302 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00008303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00008304$as_echo_n "checking for joinable pthread attribute... " >&6; }
8305 attr_name=unknown
8306 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00008307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008308/* end confdefs.h. */
8309#include <pthread.h>
8310int
8311main ()
8312{
8313int attr=$attr; return attr;
8314 ;
8315 return 0;
8316}
8317_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008318if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008319 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00008320fi
cristy8b350f62009-11-15 23:12:43 +00008321rm -f core conftest.err conftest.$ac_objext \
8322 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008323 done
cristy8b350f62009-11-15 23:12:43 +00008324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00008325$as_echo "$attr_name" >&6; }
8326 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8327
8328cat >>confdefs.h <<_ACEOF
8329#define PTHREAD_CREATE_JOINABLE $attr_name
8330_ACEOF
8331
8332 fi
8333
cristy8b350f62009-11-15 23:12:43 +00008334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00008335$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8336 flag=no
8337 case "${host_cpu}-${host_os}" in
8338 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8339 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8340 esac
cristy8b350f62009-11-15 23:12:43 +00008341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00008342$as_echo "${flag}" >&6; }
8343 if test "x$flag" != xno; then
8344 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8345 fi
8346
8347 LIBS="$save_LIBS"
8348 CFLAGS="$save_CFLAGS"
8349
8350 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00008351 if test x"$GCC" != xyes; then
8352 for ac_prog in xlc_r cc_r
8353do
8354 # Extract the first word of "$ac_prog", so it can be a program name with args.
8355set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008357$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008358if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008359 $as_echo_n "(cached) " >&6
8360else
8361 if test -n "$PTHREAD_CC"; then
8362 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8363else
8364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365for as_dir in $PATH
8366do
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008369 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy736173a2009-09-20 21:18:22 +00008371 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008373 break 2
8374 fi
8375done
cristy8b350f62009-11-15 23:12:43 +00008376 done
cristy3ed852e2009-09-05 21:47:34 +00008377IFS=$as_save_IFS
8378
cristy3ed852e2009-09-05 21:47:34 +00008379fi
8380fi
8381PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8382if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008384$as_echo "$PTHREAD_CC" >&6; }
8385else
cristy8b350f62009-11-15 23:12:43 +00008386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008387$as_echo "no" >&6; }
8388fi
8389
cristy736173a2009-09-20 21:18:22 +00008390
8391 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00008392done
cristy736173a2009-09-20 21:18:22 +00008393test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00008394
cristy736173a2009-09-20 21:18:22 +00008395 else
8396 PTHREAD_CC=$CC
8397 fi
cristy3ed852e2009-09-05 21:47:34 +00008398else
cristy736173a2009-09-20 21:18:22 +00008399 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00008400fi
8401
cristy3ed852e2009-09-05 21:47:34 +00008402
8403
8404
8405
8406# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
cristy964cb7f2010-04-25 23:18:00 +00008407if test x"$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008408
cristy8b350f62009-11-15 23:12:43 +00008409$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008410
8411 :
8412else
cristy964cb7f2010-04-25 23:18:00 +00008413 ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008414
8415fi
8416ac_ext=c
8417ac_cpp='$CPP $CPPFLAGS'
8418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8420ac_compiler_gnu=$ac_cv_c_compiler_gnu
8421
8422
cristy964cb7f2010-04-25 23:18:00 +00008423 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008424 have_threads=yes
8425 DEF_THREAD="$PTHREAD_CFLAGS"
8426 CFLAGS="$CFLAGS $DEF_THREAD"
8427 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8428 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
cristy3ed852e2009-09-05 21:47:34 +00008430$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8431 CC="$PTHREAD_CC"
8432 fi
8433 fi
8434fi
8435
8436# Enable support for OpenMP
8437if test "$have_threads" != 'yes'; then
8438 ac_cv_prog_c_openmp=unsupported
8439fi
8440
8441 OPENMP_CFLAGS=
8442 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008443if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008444 enableval=$enable_openmp;
8445fi
8446
8447 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008449$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008450if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008451 $as_echo_n "(cached) " >&6
8452else
cristy8b350f62009-11-15 23:12:43 +00008453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008455
8456#ifndef _OPENMP
8457 choke me
8458#endif
8459#include <omp.h>
8460int main () { return omp_get_num_threads (); }
8461
8462_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008463if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008464 ac_cv_prog_c_openmp='none needed'
8465else
cristy8b350f62009-11-15 23:12:43 +00008466 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008467 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8468 ac_save_CFLAGS=$CFLAGS
8469 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008472
8473#ifndef _OPENMP
8474 choke me
8475#endif
8476#include <omp.h>
8477int main () { return omp_get_num_threads (); }
8478
8479_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008480if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008481 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008482fi
cristy8b350f62009-11-15 23:12:43 +00008483rm -f core conftest.err conftest.$ac_objext \
8484 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008485 CFLAGS=$ac_save_CFLAGS
8486 if test "$ac_cv_prog_c_openmp" != unsupported; then
8487 break
8488 fi
8489 done
8490fi
cristy8b350f62009-11-15 23:12:43 +00008491rm -f core conftest.err conftest.$ac_objext \
8492 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008493fi
cristy8b350f62009-11-15 23:12:43 +00008494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008495$as_echo "$ac_cv_prog_c_openmp" >&6; }
8496 case $ac_cv_prog_c_openmp in #(
8497 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008498 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008499 *)
cristy8b350f62009-11-15 23:12:43 +00008500 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008501 esac
8502 fi
8503
8504
8505CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8506MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8507
cristyfd9dcd42010-08-08 18:07:02 +00008508case $ac_cv_prog_c_openmp in #(
8509 "none needed" | unsupported)
8510 ;; #(
8511 *)
8512 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8513esac
cristy3ed852e2009-09-05 21:47:34 +00008514
cristy736173a2009-09-20 21:18:22 +00008515# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00008516
cristy964cb7f2010-04-25 23:18:00 +00008517
8518
8519ac_ext=c
8520ac_cpp='$CPP $CPPFLAGS'
8521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8523ac_compiler_gnu=$ac_cv_c_compiler_gnu
8524
8525ax_pthread_ok=no
8526
8527# We used to check for pthread.h first, but this fails if pthread.h
8528# requires special compiler flags (e.g. on True64 or Sequent).
8529# It gets checked for in the link test anyway.
8530
8531# First of all, check if the user has set any of the PTHREAD_LIBS,
8532# etcetera environment variables, and if threads linking works using
8533# them:
8534if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8535 save_CFLAGS="$CFLAGS"
8536 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8537 save_LIBS="$LIBS"
8538 LIBS="$PTHREAD_LIBS $LIBS"
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8540$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542/* end confdefs.h. */
8543
8544/* Override any GCC internal prototype to avoid an error.
8545 Use char because int might match the return type of a GCC
8546 builtin and then its argument prototype would still apply. */
8547#ifdef __cplusplus
8548extern "C"
8549#endif
8550char pthread_join ();
8551int
8552main ()
8553{
8554return pthread_join ();
8555 ;
8556 return 0;
8557}
8558_ACEOF
8559if ac_fn_c_try_link "$LINENO"; then :
8560 ax_pthread_ok=yes
8561fi
8562rm -f core conftest.err conftest.$ac_objext \
8563 conftest$ac_exeext conftest.$ac_ext
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8565$as_echo "$ax_pthread_ok" >&6; }
8566 if test x"$ax_pthread_ok" = xno; then
8567 PTHREAD_LIBS=""
8568 PTHREAD_CFLAGS=""
8569 fi
8570 LIBS="$save_LIBS"
8571 CFLAGS="$save_CFLAGS"
8572fi
8573
8574# We must check for the threads library under a number of different
8575# names; the ordering is very important because some systems
8576# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8577# libraries is broken (non-POSIX).
8578
8579# Create a list of thread flags to try. Items starting with a "-" are
8580# C compiler flags, and other items are library names, except for "none"
8581# which indicates that we try without any flags at all, and "pthread-config"
8582# which is a program returning the flags for the Pth emulation library.
8583
8584ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8585
8586# The ordering *is* (sometimes) important. Some notes on the
8587# individual items follow:
8588
8589# pthreads: AIX (must check this before -lpthread)
8590# none: in case threads are in libc; should be tried before -Kthread and
8591# other compiler flags to prevent continual compiler warnings
8592# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8593# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8594# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8595# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8596# -pthreads: Solaris/gcc
8597# -mthreads: Mingw32/gcc, Lynx/gcc
8598# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8599# doesn't hurt to check since this sometimes defines pthreads too;
8600# also defines -D_REENTRANT)
8601# ... -mt is also the pthreads flag for HP/aCC
8602# pthread: Linux, etcetera
8603# --thread-safe: KAI C++
8604# pthread-config: use pthread-config program (for GNU Pth library)
8605
8606case "${host_cpu}-${host_os}" in
8607 *solaris*)
8608
8609 # On Solaris (at least, for some versions), libc contains stubbed
8610 # (non-functional) versions of the pthreads routines, so link-based
8611 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8612 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8613 # a function called by this macro, so we could check for that, but
8614 # who knows whether they'll stub that too in a future libc.) So,
8615 # we'll just look for -pthreads and -lpthread first:
8616
8617 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8618 ;;
8619
8620 *-darwin*)
8621 acx_pthread_flags="-pthread $acx_pthread_flags"
8622 ;;
8623esac
8624
8625if test x"$ax_pthread_ok" = xno; then
8626for flag in $ax_pthread_flags; do
8627
8628 case $flag in
8629 none)
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8631$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8632 ;;
8633
8634 -*)
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8636$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8637 PTHREAD_CFLAGS="$flag"
8638 ;;
8639
8640 pthread-config)
8641 # Extract the first word of "pthread-config", so it can be a program name with args.
8642set dummy pthread-config; ac_word=$2
8643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8644$as_echo_n "checking for $ac_word... " >&6; }
8645if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8646 $as_echo_n "(cached) " >&6
8647else
8648 if test -n "$ax_pthread_config"; then
8649 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8650else
8651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8652for as_dir in $PATH
8653do
8654 IFS=$as_save_IFS
8655 test -z "$as_dir" && as_dir=.
8656 for ac_exec_ext in '' $ac_executable_extensions; do
8657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8658 ac_cv_prog_ax_pthread_config="yes"
8659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8660 break 2
8661 fi
8662done
8663 done
8664IFS=$as_save_IFS
8665
8666 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8667fi
8668fi
8669ax_pthread_config=$ac_cv_prog_ax_pthread_config
8670if test -n "$ax_pthread_config"; then
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8672$as_echo "$ax_pthread_config" >&6; }
8673else
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8675$as_echo "no" >&6; }
8676fi
8677
8678
8679 if test x"$ax_pthread_config" = xno; then continue; fi
8680 PTHREAD_CFLAGS="`pthread-config --cflags`"
8681 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8682 ;;
8683
8684 *)
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8686$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8687 PTHREAD_LIBS="-l$flag"
8688 ;;
8689 esac
8690
8691 save_LIBS="$LIBS"
8692 save_CFLAGS="$CFLAGS"
8693 LIBS="$PTHREAD_LIBS $LIBS"
8694 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8695
8696 # Check for various functions. We must include pthread.h,
8697 # since some functions may be macros. (On the Sequent, we
8698 # need a special flag -Kthread to make this header compile.)
8699 # We check for pthread_join because it is in -lpthread on IRIX
8700 # while pthread_create is in libc. We check for pthread_attr_init
8701 # due to DEC craziness with -lpthreads. We check for
8702 # pthread_cleanup_push because it is one of the few pthread
8703 # functions on Solaris that doesn't have a non-functional libc stub.
8704 # We try pthread_create on general principles.
8705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8706/* end confdefs.h. */
8707#include <pthread.h>
8708 static void routine(void* a) {a=0;}
8709 static void* start_routine(void* a) {return a;}
8710int
8711main ()
8712{
8713pthread_t th; pthread_attr_t attr;
8714 pthread_join(th, 0);
8715 pthread_attr_init(&attr);
8716 pthread_cleanup_push(routine, 0);
8717 pthread_create(&th,0,start_routine,0);
8718 pthread_cleanup_pop(0);
8719 ;
8720 return 0;
8721}
8722_ACEOF
8723if ac_fn_c_try_link "$LINENO"; then :
8724 ax_pthread_ok=yes
8725fi
8726rm -f core conftest.err conftest.$ac_objext \
8727 conftest$ac_exeext conftest.$ac_ext
8728
8729 LIBS="$save_LIBS"
8730 CFLAGS="$save_CFLAGS"
8731
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8733$as_echo "$ax_pthread_ok" >&6; }
8734 if test "x$ax_pthread_ok" = xyes; then
8735 break;
8736 fi
8737
8738 PTHREAD_LIBS=""
8739 PTHREAD_CFLAGS=""
8740done
8741fi
8742
8743# Various other checks:
8744if test "x$ax_pthread_ok" = xyes; then
8745 save_LIBS="$LIBS"
8746 LIBS="$PTHREAD_LIBS $LIBS"
8747 save_CFLAGS="$CFLAGS"
8748 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8749
8750 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8752$as_echo_n "checking for joinable pthread attribute... " >&6; }
8753 attr_name=unknown
8754 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8756/* end confdefs.h. */
8757#include <pthread.h>
8758int
8759main ()
8760{
8761int attr=$attr; return attr;
8762 ;
8763 return 0;
8764}
8765_ACEOF
8766if ac_fn_c_try_link "$LINENO"; then :
8767 attr_name=$attr; break
8768fi
8769rm -f core conftest.err conftest.$ac_objext \
8770 conftest$ac_exeext conftest.$ac_ext
8771 done
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8773$as_echo "$attr_name" >&6; }
8774 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8775
8776cat >>confdefs.h <<_ACEOF
8777#define PTHREAD_CREATE_JOINABLE $attr_name
8778_ACEOF
8779
8780 fi
8781
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8783$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8784 flag=no
8785 case "${host_cpu}-${host_os}" in
8786 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8787 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8788 esac
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8790$as_echo "${flag}" >&6; }
8791 if test "x$flag" != xno; then
8792 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8793 fi
8794
8795 LIBS="$save_LIBS"
8796 CFLAGS="$save_CFLAGS"
8797
8798 # More AIX lossage: must compile with xlc_r or cc_r
8799 if test x"$GCC" != xyes; then
8800 for ac_prog in xlc_r cc_r
8801do
8802 # Extract the first word of "$ac_prog", so it can be a program name with args.
8803set dummy $ac_prog; ac_word=$2
8804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8805$as_echo_n "checking for $ac_word... " >&6; }
8806if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8807 $as_echo_n "(cached) " >&6
8808else
8809 if test -n "$PTHREAD_CC"; then
8810 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8811else
8812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8813for as_dir in $PATH
8814do
8815 IFS=$as_save_IFS
8816 test -z "$as_dir" && as_dir=.
8817 for ac_exec_ext in '' $ac_executable_extensions; do
8818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8819 ac_cv_prog_PTHREAD_CC="$ac_prog"
8820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8821 break 2
8822 fi
8823done
8824 done
8825IFS=$as_save_IFS
8826
8827fi
8828fi
8829PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8830if test -n "$PTHREAD_CC"; then
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8832$as_echo "$PTHREAD_CC" >&6; }
8833else
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835$as_echo "no" >&6; }
8836fi
8837
8838
8839 test -n "$PTHREAD_CC" && break
8840done
8841test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8842
8843 else
8844 PTHREAD_CC=$CC
8845 fi
8846else
8847 PTHREAD_CC="$CC"
8848fi
8849
8850
8851
8852
8853
8854# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8855if test x"$ax_pthread_ok" = xyes; then
8856
8857$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8858
8859 :
8860else
8861 ax_pthread_ok=no
8862
8863fi
8864ac_ext=c
8865ac_cpp='$CPP $CPPFLAGS'
8866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8868ac_compiler_gnu=$ac_cv_c_compiler_gnu
8869
8870
8871
cristy43596fe2010-01-21 16:46:08 +00008872# Check whether --enable-opencl was given.
8873if test "${enable_opencl+set}" = set; then :
8874 enableval=$enable_opencl; disable_opencl=$enableval
8875else
8876 disable_opencl='yes'
8877fi
8878
8879
8880if test "$disable_opencl" = 'yes'; then
8881 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008882ac_cpp='$CPP $CPPFLAGS'
8883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8885ac_compiler_gnu=$ac_cv_c_compiler_gnu
8886
cristy43596fe2010-01-21 16:46:08 +00008887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00008888$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008889if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008890 $as_echo_n "(cached) " >&6
8891else
cristy8b350f62009-11-15 23:12:43 +00008892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008893/* end confdefs.h. */
8894
8895int
8896main ()
8897{
8898#ifndef _MSC_VER
8899 choke me
8900#endif
8901
8902 ;
8903 return 0;
8904}
8905_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008906if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008907 ax_compiler_ms=yes
8908else
cristy8b350f62009-11-15 23:12:43 +00008909 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00008910fi
cristy736173a2009-09-20 21:18:22 +00008911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8912ax_cv_c_compiler_ms=$ax_compiler_ms
8913
8914fi
cristy8b350f62009-11-15 23:12:43 +00008915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00008916$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy43596fe2010-01-21 16:46:08 +00008917 if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008918 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8919fi
8920
cristy43596fe2010-01-21 16:46:08 +00008921 ax_save_CPPFLAGS=$CPPFLAGS
8922 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8923 for ac_header in CL/cl.h OpenCL/cl.h
cristy8b350f62009-11-15 23:12:43 +00008924do :
8925 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8926ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyfd9dcd42010-08-08 18:07:02 +00008927if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy736173a2009-09-20 21:18:22 +00008928 cat >>confdefs.h <<_ACEOF
8929#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8930_ACEOF
8931
8932fi
8933
8934done
8935
cristy43596fe2010-01-21 16:46:08 +00008936 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00008937
cristy43596fe2010-01-21 16:46:08 +00008938 for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00008939do :
8940 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8941if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00008942 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008943#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00008944_ACEOF
8945
8946fi
8947
8948done
8949
8950
8951
8952
cristy43596fe2010-01-21 16:46:08 +00008953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00008954$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008955if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008956 $as_echo_n "(cached) " >&6
8957else
8958 ax_cv_check_cl_libcl=no
cristy43596fe2010-01-21 16:46:08 +00008959 case $host_cpu in
8960 x86_64) ax_check_cl_libdir=lib64 ;;
8961 *) ax_check_cl_libdir=lib ;;
8962 esac
8963 ax_save_CPPFLAGS=$CPPFLAGS
8964 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8965 ax_save_LIBS=$LIBS
8966 LIBS=""
8967 ax_check_libs="-lOpenCL -lCL -lclparser"
8968 for ax_lib in $ax_check_libs; do
8969 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00008970 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8971else
8972 ax_try_lib=$ax_lib
8973fi
cristy43596fe2010-01-21 16:46:08 +00008974 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008976/* end confdefs.h. */
8977
cristy43596fe2010-01-21 16:46:08 +00008978 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8979 # include <windows.h>
8980 # endif
8981 # ifdef HAVE_CL_CL_H
8982 # include <CL/cl.h>
8983 # elif defined(HAVE_OPENCL_CL_H)
8984 # include <OpenCL/cl.h>
8985 # else
8986 # error no CL.h
8987 # endif
cristy736173a2009-09-20 21:18:22 +00008988int
8989main ()
8990{
cristyc7083c12009-10-14 03:16:55 +00008991clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008992 ;
8993 return 0;
8994}
8995_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008996if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008997 ax_cv_check_cl_libcl=$ax_try_lib; break
8998else
cristy8b350f62009-11-15 23:12:43 +00008999 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 +00009000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009001/* end confdefs.h. */
9002
cristy43596fe2010-01-21 16:46:08 +00009003 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9004 # include <windows.h>
9005 # endif
9006 # ifdef HAVE_CL_CL_H
9007 # include <CL/cl.h>
9008 # elif defined(HAVE_OPENCL_CL_H)
9009 # include <OpenCL/cl.h>
9010 # else
9011 # error no CL.h
9012 # endif
cristy736173a2009-09-20 21:18:22 +00009013int
9014main ()
9015{
cristyc7083c12009-10-14 03:16:55 +00009016clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009017 ;
9018 return 0;
9019}
9020_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009021if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009022 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9023else
cristy4dc44432009-12-30 23:30:06 +00009024 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 +00009025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009026/* end confdefs.h. */
9027
cristy43596fe2010-01-21 16:46:08 +00009028 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9029 # include <windows.h>
9030 # endif
9031 # ifdef HAVE_CL_CL_H
9032 # include <CL/cl.h>
9033 # elif defined(HAVE_OPENCL_CL_H)
9034 # include <OpenCL/cl.h>
9035 # else
9036 # error no CL.h
9037 # endif
cristy736173a2009-09-20 21:18:22 +00009038int
9039main ()
9040{
cristyc7083c12009-10-14 03:16:55 +00009041clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009042 ;
9043 return 0;
9044}
9045_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009046if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009047 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00009048fi
cristy8b350f62009-11-15 23:12:43 +00009049rm -f core conftest.err conftest.$ac_objext \
9050 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009051fi
cristy8b350f62009-11-15 23:12:43 +00009052rm -f core conftest.err conftest.$ac_objext \
9053 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009054fi
cristy8b350f62009-11-15 23:12:43 +00009055rm -f core conftest.err conftest.$ac_objext \
9056 conftest$ac_exeext conftest.$ac_ext
cristy43596fe2010-01-21 16:46:08 +00009057 done
cristy736173a2009-09-20 21:18:22 +00009058
cristy43596fe2010-01-21 16:46:08 +00009059 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00009060 LIBS='-framework OpenCL'
cristy43596fe2010-01-21 16:46:08 +00009061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009062/* end confdefs.h. */
9063
cristy43596fe2010-01-21 16:46:08 +00009064 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9065 # include <windows.h>
9066 # endif
9067 # ifdef HAVE_CL_CL_H
9068 # include <CL/cl.h>
9069 # elif defined(HAVE_OPENCL_CL_H)
9070 # include <OpenCL/cl.h>
9071 # else
9072 # error no CL.h
9073 # endif
cristy736173a2009-09-20 21:18:22 +00009074int
9075main ()
9076{
cristyc7083c12009-10-14 03:16:55 +00009077clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009078 ;
9079 return 0;
9080}
9081_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009082if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009083 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00009084fi
cristy8b350f62009-11-15 23:12:43 +00009085rm -f core conftest.err conftest.$ac_objext \
9086 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009087fi
9088
cristy43596fe2010-01-21 16:46:08 +00009089 LIBS=$ax_save_LIBS
9090 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00009091fi
cristy8b350f62009-11-15 23:12:43 +00009092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00009093$as_echo "$ax_cv_check_cl_libcl" >&6; }
9094
cristy43596fe2010-01-21 16:46:08 +00009095 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00009096 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9097else
cristy99cc3002010-01-21 14:50:11 +00009098 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9099$as_echo "#define _OPENCL 1" >>confdefs.h
9100
cristy736173a2009-09-20 21:18:22 +00009101fi
cristy43596fe2010-01-21 16:46:08 +00009102 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00009103ac_cpp='$CPP $CPPFLAGS'
9104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9106ac_compiler_gnu=$ac_cv_c_compiler_gnu
9107
cristy43596fe2010-01-21 16:46:08 +00009108fi
cristy736173a2009-09-20 21:18:22 +00009109
9110
9111
9112
cristyc7083c12009-10-14 03:16:55 +00009113CFLAGS="$CL_CFLAGS $CFLAGS"
9114LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009115
cristyfd9dcd42010-08-08 18:07:02 +00009116if test "_OPENCL" = '1'; then
9117 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9118fi
cristy2e8b51d2009-10-17 18:26:15 +00009119
cristy3ed852e2009-09-05 21:47:34 +00009120########
9121#
9122# Check for large file support
9123#
9124########
9125# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009126if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009127 enableval=$enable_largefile;
9128fi
9129
9130if test "$enable_largefile" != no; then
9131
cristy8b350f62009-11-15 23:12:43 +00009132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009133$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009134if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009135 $as_echo_n "(cached) " >&6
9136else
9137 ac_cv_sys_largefile_CC=no
9138 if test "$GCC" != yes; then
9139 ac_save_CC=$CC
9140 while :; do
9141 # IRIX 6.2 and later do not support large files by default,
9142 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009144/* end confdefs.h. */
9145#include <sys/types.h>
9146 /* Check that off_t can represent 2**63 - 1 correctly.
9147 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9148 since some C++ compilers masquerading as C compilers
9149 incorrectly reject 9223372036854775807. */
9150#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9151 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9152 && LARGE_OFF_T % 2147483647 == 1)
9153 ? 1 : -1];
9154int
9155main ()
9156{
9157
9158 ;
9159 return 0;
9160}
9161_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009162 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009163 break
cristy3ed852e2009-09-05 21:47:34 +00009164fi
cristy3ed852e2009-09-05 21:47:34 +00009165rm -f core conftest.err conftest.$ac_objext
9166 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009167 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009168 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009169fi
cristy3ed852e2009-09-05 21:47:34 +00009170rm -f core conftest.err conftest.$ac_objext
9171 break
9172 done
9173 CC=$ac_save_CC
9174 rm -f conftest.$ac_ext
9175 fi
9176fi
cristy8b350f62009-11-15 23:12:43 +00009177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009178$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9179 if test "$ac_cv_sys_largefile_CC" != no; then
9180 CC=$CC$ac_cv_sys_largefile_CC
9181 fi
9182
cristy8b350f62009-11-15 23:12:43 +00009183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009184$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009185if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009186 $as_echo_n "(cached) " >&6
9187else
9188 while :; do
cristy8b350f62009-11-15 23:12:43 +00009189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009190/* end confdefs.h. */
9191#include <sys/types.h>
9192 /* Check that off_t can represent 2**63 - 1 correctly.
9193 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9194 since some C++ compilers masquerading as C compilers
9195 incorrectly reject 9223372036854775807. */
9196#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9197 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9198 && LARGE_OFF_T % 2147483647 == 1)
9199 ? 1 : -1];
9200int
9201main ()
9202{
9203
9204 ;
9205 return 0;
9206}
9207_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009208if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009209 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009210fi
cristy3ed852e2009-09-05 21:47:34 +00009211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009213/* end confdefs.h. */
9214#define _FILE_OFFSET_BITS 64
9215#include <sys/types.h>
9216 /* Check that off_t can represent 2**63 - 1 correctly.
9217 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9218 since some C++ compilers masquerading as C compilers
9219 incorrectly reject 9223372036854775807. */
9220#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9221 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9222 && LARGE_OFF_T % 2147483647 == 1)
9223 ? 1 : -1];
9224int
9225main ()
9226{
9227
9228 ;
9229 return 0;
9230}
9231_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009232if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009233 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009234fi
cristy3ed852e2009-09-05 21:47:34 +00009235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9236 ac_cv_sys_file_offset_bits=unknown
9237 break
9238done
9239fi
cristy8b350f62009-11-15 23:12:43 +00009240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009241$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9242case $ac_cv_sys_file_offset_bits in #(
9243 no | unknown) ;;
9244 *)
9245cat >>confdefs.h <<_ACEOF
9246#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9247_ACEOF
9248;;
9249esac
9250rm -rf conftest*
9251 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009253$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009254if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009255 $as_echo_n "(cached) " >&6
9256else
9257 while :; do
cristy8b350f62009-11-15 23:12:43 +00009258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009259/* end confdefs.h. */
9260#include <sys/types.h>
9261 /* Check that off_t can represent 2**63 - 1 correctly.
9262 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9263 since some C++ compilers masquerading as C compilers
9264 incorrectly reject 9223372036854775807. */
9265#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9266 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9267 && LARGE_OFF_T % 2147483647 == 1)
9268 ? 1 : -1];
9269int
9270main ()
9271{
9272
9273 ;
9274 return 0;
9275}
9276_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009277if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009278 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009279fi
cristy3ed852e2009-09-05 21:47:34 +00009280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009282/* end confdefs.h. */
9283#define _LARGE_FILES 1
9284#include <sys/types.h>
9285 /* Check that off_t can represent 2**63 - 1 correctly.
9286 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9287 since some C++ compilers masquerading as C compilers
9288 incorrectly reject 9223372036854775807. */
9289#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9290 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9291 && LARGE_OFF_T % 2147483647 == 1)
9292 ? 1 : -1];
9293int
9294main ()
9295{
9296
9297 ;
9298 return 0;
9299}
9300_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009301if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009302 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009303fi
cristy3ed852e2009-09-05 21:47:34 +00009304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9305 ac_cv_sys_large_files=unknown
9306 break
9307done
9308fi
cristy8b350f62009-11-15 23:12:43 +00009309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009310$as_echo "$ac_cv_sys_large_files" >&6; }
9311case $ac_cv_sys_large_files in #(
9312 no | unknown) ;;
9313 *)
9314cat >>confdefs.h <<_ACEOF
9315#define _LARGE_FILES $ac_cv_sys_large_files
9316_ACEOF
9317;;
9318esac
9319rm -rf conftest*
9320 fi
9321fi
9322
cristy8b350f62009-11-15 23:12:43 +00009323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009324$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009325if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009326 $as_echo_n "(cached) " >&6
9327else
9328 while :; do
cristy8b350f62009-11-15 23:12:43 +00009329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009330/* end confdefs.h. */
9331#include <sys/types.h> /* for off_t */
9332 #include <stdio.h>
9333int
9334main ()
9335{
9336int (*fp) (FILE *, off_t, int) = fseeko;
9337 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9338 ;
9339 return 0;
9340}
9341_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009342if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009343 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009344fi
cristy8b350f62009-11-15 23:12:43 +00009345rm -f core conftest.err conftest.$ac_objext \
9346 conftest$ac_exeext conftest.$ac_ext
9347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009348/* end confdefs.h. */
9349#define _LARGEFILE_SOURCE 1
9350#include <sys/types.h> /* for off_t */
9351 #include <stdio.h>
9352int
9353main ()
9354{
9355int (*fp) (FILE *, off_t, int) = fseeko;
9356 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9357 ;
9358 return 0;
9359}
9360_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009361if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009362 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009363fi
cristy8b350f62009-11-15 23:12:43 +00009364rm -f core conftest.err conftest.$ac_objext \
9365 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009366 ac_cv_sys_largefile_source=unknown
9367 break
9368done
9369fi
cristy8b350f62009-11-15 23:12:43 +00009370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009371$as_echo "$ac_cv_sys_largefile_source" >&6; }
9372case $ac_cv_sys_largefile_source in #(
9373 no | unknown) ;;
9374 *)
9375cat >>confdefs.h <<_ACEOF
9376#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9377_ACEOF
9378;;
9379esac
9380rm -rf conftest*
9381
9382# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9383# in glibc 2.1.3, but that breaks too many other things.
9384# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9385if test $ac_cv_sys_largefile_source != unknown; then
9386
cristy8b350f62009-11-15 23:12:43 +00009387$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009388
9389fi
9390
9391LFS_CPPFLAGS=''
9392if test "$enable_largefile" != no; then
9393 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9394 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9395 else
cristy8b350f62009-11-15 23:12:43 +00009396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009397$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009398 if test "$cross_compiling" = yes; then :
9399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +00009401as_fn_error $? "cannot run test program while cross compiling
9402See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009403else
cristy8b350f62009-11-15 23:12:43 +00009404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009406#include <unistd.h>
9407 main () {
9408 exit(!(sizeof(off_t) == 8));
9409 }
9410_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009411if ac_fn_c_try_run "$LINENO"; then :
9412 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009413
cristy8b350f62009-11-15 23:12:43 +00009414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009415$as_echo "yes" >&6; }
9416else
cristy8b350f62009-11-15 23:12:43 +00009417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009418$as_echo "no" >&6; }
9419fi
cristy8b350f62009-11-15 23:12:43 +00009420rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9421 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009422fi
9423
cristy3ed852e2009-09-05 21:47:34 +00009424 fi
9425 if test "$ac_cv_sys_large_files" != 'no'; then
9426 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9427 fi
9428 if test "$ac_cv_sys_largefile_source" != 'no'; then
9429 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9430 fi
9431fi
9432
9433
9434#
9435# Configure libtool & libltdl
9436#
9437# Configure libtool
9438enable_dlopen=yes
9439
9440
9441
9442case `pwd` in
9443 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00009444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00009445$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9446esac
9447
9448
9449
cristyfd9dcd42010-08-08 18:07:02 +00009450macro_version='2.2.10'
9451macro_revision='1.3175'
cristy3ed852e2009-09-05 21:47:34 +00009452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465ltmain="$ac_aux_dir/ltmain.sh"
9466
cristyfd9dcd42010-08-08 18:07:02 +00009467# Backslashify metacharacters that are still active within
9468# double-quoted strings.
9469sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9470
9471# Same as above, but do not quote variable references.
9472double_quote_subst='s/\(["`\\]\)/\\\1/g'
9473
9474# Sed substitution to delay expansion of an escaped shell variable in a
9475# double_quote_subst'ed string.
9476delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9477
9478# Sed substitution to delay expansion of an escaped single quote.
9479delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9480
9481# Sed substitution to avoid accidental globbing in evaled expressions
9482no_glob_subst='s/\*/\\\*/g'
9483
cristy8b350f62009-11-15 23:12:43 +00009484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00009485$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009486if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009487 $as_echo_n "(cached) " >&6
9488else
9489 if test -n "$NM"; then
9490 # Let the user override the test.
9491 lt_cv_path_NM="$NM"
9492else
9493 lt_nm_to_check="${ac_tool_prefix}nm"
9494 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9495 lt_nm_to_check="$lt_nm_to_check nm"
9496 fi
9497 for lt_tmp_nm in $lt_nm_to_check; do
9498 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9499 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9500 IFS="$lt_save_ifs"
9501 test -z "$ac_dir" && ac_dir=.
9502 tmp_nm="$ac_dir/$lt_tmp_nm"
9503 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9504 # Check to see if the nm accepts a BSD-compat flag.
9505 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9506 # nm: unknown option "B" ignored
9507 # Tru64's nm complains that /dev/null is an invalid object file
9508 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9509 */dev/null* | *'Invalid file or object type'*)
9510 lt_cv_path_NM="$tmp_nm -B"
9511 break
9512 ;;
9513 *)
9514 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9515 */dev/null*)
9516 lt_cv_path_NM="$tmp_nm -p"
9517 break
9518 ;;
9519 *)
9520 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9521 continue # so that we can try to find one that supports BSD flags
9522 ;;
9523 esac
9524 ;;
9525 esac
9526 fi
9527 done
9528 IFS="$lt_save_ifs"
9529 done
9530 : ${lt_cv_path_NM=no}
9531fi
9532fi
cristy8b350f62009-11-15 23:12:43 +00009533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00009534$as_echo "$lt_cv_path_NM" >&6; }
9535if test "$lt_cv_path_NM" != "no"; then
9536 NM="$lt_cv_path_NM"
9537else
9538 # Didn't find any BSD compatible name lister, look for dumpbin.
cristyfd9dcd42010-08-08 18:07:02 +00009539 if test -n "$DUMPBIN"; then :
9540 # Let the user override the test.
9541 else
9542 if test -n "$ac_tool_prefix"; then
9543 for ac_prog in dumpbin "link -dump"
cristy3ed852e2009-09-05 21:47:34 +00009544 do
9545 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9546set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009548$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009549if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009550 $as_echo_n "(cached) " >&6
9551else
9552 if test -n "$DUMPBIN"; then
9553 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9554else
9555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9556for as_dir in $PATH
9557do
9558 IFS=$as_save_IFS
9559 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009560 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9562 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009564 break 2
9565 fi
9566done
cristy8b350f62009-11-15 23:12:43 +00009567 done
cristy3ed852e2009-09-05 21:47:34 +00009568IFS=$as_save_IFS
9569
9570fi
9571fi
9572DUMPBIN=$ac_cv_prog_DUMPBIN
9573if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009575$as_echo "$DUMPBIN" >&6; }
9576else
cristy8b350f62009-11-15 23:12:43 +00009577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009578$as_echo "no" >&6; }
9579fi
9580
9581
9582 test -n "$DUMPBIN" && break
9583 done
9584fi
9585if test -z "$DUMPBIN"; then
9586 ac_ct_DUMPBIN=$DUMPBIN
cristyfd9dcd42010-08-08 18:07:02 +00009587 for ac_prog in dumpbin "link -dump"
cristy3ed852e2009-09-05 21:47:34 +00009588do
9589 # Extract the first word of "$ac_prog", so it can be a program name with args.
9590set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009592$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009593if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009594 $as_echo_n "(cached) " >&6
9595else
9596 if test -n "$ac_ct_DUMPBIN"; then
9597 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9598else
9599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9600for as_dir in $PATH
9601do
9602 IFS=$as_save_IFS
9603 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009604 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9606 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009608 break 2
9609 fi
9610done
cristy8b350f62009-11-15 23:12:43 +00009611 done
cristy3ed852e2009-09-05 21:47:34 +00009612IFS=$as_save_IFS
9613
9614fi
9615fi
9616ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9617if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009619$as_echo "$ac_ct_DUMPBIN" >&6; }
9620else
cristy8b350f62009-11-15 23:12:43 +00009621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009622$as_echo "no" >&6; }
9623fi
9624
9625
9626 test -n "$ac_ct_DUMPBIN" && break
9627done
9628
9629 if test "x$ac_ct_DUMPBIN" = x; then
9630 DUMPBIN=":"
9631 else
9632 case $cross_compiling:$ac_tool_warned in
9633yes:)
cristy8b350f62009-11-15 23:12:43 +00009634{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009635$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9636ac_tool_warned=yes ;;
9637esac
9638 DUMPBIN=$ac_ct_DUMPBIN
9639 fi
9640fi
9641
cristyfd9dcd42010-08-08 18:07:02 +00009642 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9643 *COFF*)
9644 DUMPBIN="$DUMPBIN -symbols"
9645 ;;
9646 *)
9647 DUMPBIN=:
9648 ;;
9649 esac
9650 fi
cristy3ed852e2009-09-05 21:47:34 +00009651
9652 if test "$DUMPBIN" != ":"; then
9653 NM="$DUMPBIN"
9654 fi
9655fi
9656test -z "$NM" && NM=nm
9657
9658
9659
9660
9661
9662
cristy8b350f62009-11-15 23:12:43 +00009663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009664$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009665if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009666 $as_echo_n "(cached) " >&6
9667else
9668 lt_cv_nm_interface="BSD nm"
9669 echo "int some_variable = 0;" > conftest.$ac_ext
cristyfd9dcd42010-08-08 18:07:02 +00009670 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009671 (eval "$ac_compile" 2>conftest.err)
9672 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +00009673 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009674 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9675 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +00009676 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009677 cat conftest.out >&5
9678 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9679 lt_cv_nm_interface="MS dumpbin"
9680 fi
9681 rm -f conftest*
9682fi
cristy8b350f62009-11-15 23:12:43 +00009683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009684$as_echo "$lt_cv_nm_interface" >&6; }
9685
9686# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00009687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00009688$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009689if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009690 $as_echo_n "(cached) " >&6
9691else
9692 i=0
9693 teststring="ABCD"
9694
9695 case $build_os in
9696 msdosdjgpp*)
9697 # On DJGPP, this test can blow up pretty badly due to problems in libc
9698 # (any single argument exceeding 2000 bytes causes a buffer overrun
9699 # during glob expansion). Even if it were fixed, the result of this
9700 # check would be larger than it should be.
9701 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9702 ;;
9703
9704 gnu*)
9705 # Under GNU Hurd, this test is not required because there is
9706 # no limit to the length of command line arguments.
9707 # Libtool will interpret -1 as no limit whatsoever
9708 lt_cv_sys_max_cmd_len=-1;
9709 ;;
9710
9711 cygwin* | mingw* | cegcc*)
9712 # On Win9x/ME, this test blows up -- it succeeds, but takes
9713 # about 5 minutes as the teststring grows exponentially.
9714 # Worse, since 9x/ME are not pre-emptively multitasking,
9715 # you end up with a "frozen" computer, even though with patience
9716 # the test eventually succeeds (with a max line length of 256k).
9717 # Instead, let's just punt: use the minimum linelength reported by
9718 # all of the supported platforms: 8192 (on NT/2K/XP).
9719 lt_cv_sys_max_cmd_len=8192;
9720 ;;
9721
cristyfd9dcd42010-08-08 18:07:02 +00009722 mint*)
9723 # On MiNT this can take a long time and run out of memory.
9724 lt_cv_sys_max_cmd_len=8192;
9725 ;;
9726
cristy3ed852e2009-09-05 21:47:34 +00009727 amigaos*)
9728 # On AmigaOS with pdksh, this test takes hours, literally.
9729 # So we just punt and use a minimum line length of 8192.
9730 lt_cv_sys_max_cmd_len=8192;
9731 ;;
9732
9733 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9734 # This has been around since 386BSD, at least. Likely further.
9735 if test -x /sbin/sysctl; then
9736 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9737 elif test -x /usr/sbin/sysctl; then
9738 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9739 else
9740 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9741 fi
9742 # And add a safety zone
9743 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9744 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9745 ;;
9746
9747 interix*)
9748 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9749 lt_cv_sys_max_cmd_len=196608
9750 ;;
9751
9752 osf*)
9753 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9754 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9755 # nice to cause kernel panics so lets avoid the loop below.
9756 # First set a reasonable default.
9757 lt_cv_sys_max_cmd_len=16384
9758 #
9759 if test -x /sbin/sysconfig; then
9760 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9761 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9762 esac
9763 fi
9764 ;;
9765 sco3.2v5*)
9766 lt_cv_sys_max_cmd_len=102400
9767 ;;
9768 sysv5* | sco5v6* | sysv4.2uw2*)
9769 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9770 if test -n "$kargmax"; then
9771 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9772 else
9773 lt_cv_sys_max_cmd_len=32768
9774 fi
9775 ;;
9776 *)
9777 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9778 if test -n "$lt_cv_sys_max_cmd_len"; then
9779 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9780 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9781 else
9782 # Make teststring a little bigger before we do anything with it.
9783 # a 1K string should be a reasonable start.
9784 for i in 1 2 3 4 5 6 7 8 ; do
9785 teststring=$teststring$teststring
9786 done
9787 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9788 # If test is not a shell built-in, we'll probably end up computing a
9789 # maximum length that is only half of the actual maximum length, but
9790 # we can't tell.
cristyfd9dcd42010-08-08 18:07:02 +00009791 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9792 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00009793 test $i != 17 # 1/2 MB should be enough
9794 do
9795 i=`expr $i + 1`
9796 teststring=$teststring$teststring
9797 done
9798 # Only check the string length outside the loop.
9799 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9800 teststring=
9801 # Add a significant safety factor because C++ compilers can tack on
9802 # massive amounts of additional arguments before passing them to the
9803 # linker. It appears as though 1/2 is a usable value.
9804 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9805 fi
9806 ;;
9807 esac
9808
9809fi
9810
9811if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00009812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00009813$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9814else
cristy8b350f62009-11-15 23:12:43 +00009815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00009816$as_echo "none" >&6; }
9817fi
9818max_cmd_len=$lt_cv_sys_max_cmd_len
9819
9820
9821
9822
9823
9824
9825: ${CP="cp -f"}
9826: ${MV="mv -f"}
9827: ${RM="rm -f"}
9828
cristy8b350f62009-11-15 23:12:43 +00009829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00009830$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9831# Try some XSI features
9832xsi_shell=no
9833( _lt_dummy="a/b/c"
9834 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9835 = c,a/b,, \
9836 && eval 'test $(( 1 + 1 )) -eq 2 \
9837 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9838 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00009839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00009840$as_echo "$xsi_shell" >&6; }
9841
9842
cristy8b350f62009-11-15 23:12:43 +00009843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00009844$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9845lt_shell_append=no
9846( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9847 >/dev/null 2>&1 \
9848 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00009849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00009850$as_echo "$lt_shell_append" >&6; }
9851
9852
9853if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9854 lt_unset=unset
9855else
9856 lt_unset=false
9857fi
9858
9859
9860
9861
9862
9863# test EBCDIC or ASCII
9864case `echo X|tr X '\101'` in
9865 A) # ASCII based system
9866 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9867 lt_SP2NL='tr \040 \012'
9868 lt_NL2SP='tr \015\012 \040\040'
9869 ;;
9870 *) # EBCDIC based system
9871 lt_SP2NL='tr \100 \n'
9872 lt_NL2SP='tr \r\n \100\100'
9873 ;;
9874esac
9875
9876
9877
9878
9879
9880
9881
9882
9883
cristy8b350f62009-11-15 23:12:43 +00009884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009885$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009886if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009887 $as_echo_n "(cached) " >&6
9888else
9889 lt_cv_ld_reload_flag='-r'
9890fi
cristy8b350f62009-11-15 23:12:43 +00009891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00009892$as_echo "$lt_cv_ld_reload_flag" >&6; }
9893reload_flag=$lt_cv_ld_reload_flag
9894case $reload_flag in
9895"" | " "*) ;;
9896*) reload_flag=" $reload_flag" ;;
9897esac
9898reload_cmds='$LD$reload_flag -o $output$reload_objs'
9899case $host_os in
9900 darwin*)
9901 if test "$GCC" = yes; then
9902 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9903 else
9904 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9905 fi
9906 ;;
9907esac
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917if test -n "$ac_tool_prefix"; then
9918 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9919set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009921$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009922if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009923 $as_echo_n "(cached) " >&6
9924else
9925 if test -n "$OBJDUMP"; then
9926 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9927else
9928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9929for as_dir in $PATH
9930do
9931 IFS=$as_save_IFS
9932 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009933 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9935 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00009936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009937 break 2
9938 fi
9939done
cristy8b350f62009-11-15 23:12:43 +00009940 done
cristy3ed852e2009-09-05 21:47:34 +00009941IFS=$as_save_IFS
9942
9943fi
9944fi
9945OBJDUMP=$ac_cv_prog_OBJDUMP
9946if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009948$as_echo "$OBJDUMP" >&6; }
9949else
cristy8b350f62009-11-15 23:12:43 +00009950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009951$as_echo "no" >&6; }
9952fi
9953
9954
9955fi
9956if test -z "$ac_cv_prog_OBJDUMP"; then
9957 ac_ct_OBJDUMP=$OBJDUMP
9958 # Extract the first word of "objdump", so it can be a program name with args.
9959set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009961$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009962if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009963 $as_echo_n "(cached) " >&6
9964else
9965 if test -n "$ac_ct_OBJDUMP"; then
9966 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9967else
9968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9969for as_dir in $PATH
9970do
9971 IFS=$as_save_IFS
9972 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009973 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9975 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +00009976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009977 break 2
9978 fi
9979done
cristy8b350f62009-11-15 23:12:43 +00009980 done
cristy3ed852e2009-09-05 21:47:34 +00009981IFS=$as_save_IFS
9982
9983fi
9984fi
9985ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9986if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009988$as_echo "$ac_ct_OBJDUMP" >&6; }
9989else
cristy8b350f62009-11-15 23:12:43 +00009990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009991$as_echo "no" >&6; }
9992fi
9993
9994 if test "x$ac_ct_OBJDUMP" = x; then
9995 OBJDUMP="false"
9996 else
9997 case $cross_compiling:$ac_tool_warned in
9998yes:)
cristy8b350f62009-11-15 23:12:43 +00009999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10001ac_tool_warned=yes ;;
10002esac
10003 OBJDUMP=$ac_ct_OBJDUMP
10004 fi
10005else
10006 OBJDUMP="$ac_cv_prog_OBJDUMP"
10007fi
10008
10009test -z "$OBJDUMP" && OBJDUMP=objdump
10010
10011
10012
10013
10014
10015
cristy8b350f62009-11-15 23:12:43 +000010016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000010017$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010018if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010019 $as_echo_n "(cached) " >&6
10020else
10021 lt_cv_file_magic_cmd='$MAGIC_CMD'
10022lt_cv_file_magic_test_file=
10023lt_cv_deplibs_check_method='unknown'
10024# Need to set the preceding variable on all platforms that support
10025# interlibrary dependencies.
10026# 'none' -- dependencies not supported.
10027# `unknown' -- same as none, but documents that we really don't know.
10028# 'pass_all' -- all dependencies passed with no checks.
10029# 'test_compile' -- check by making test program.
10030# 'file_magic [[regex]]' -- check by looking for files in library path
10031# which responds to the $file_magic_cmd with a given extended regex.
10032# If you have `file' or equivalent on your system and you're not sure
10033# whether `pass_all' will *always* work, you probably want this one.
10034
10035case $host_os in
10036aix[4-9]*)
10037 lt_cv_deplibs_check_method=pass_all
10038 ;;
10039
10040beos*)
10041 lt_cv_deplibs_check_method=pass_all
10042 ;;
10043
10044bsdi[45]*)
10045 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10046 lt_cv_file_magic_cmd='/usr/bin/file -L'
10047 lt_cv_file_magic_test_file=/shlib/libc.so
10048 ;;
10049
10050cygwin*)
10051 # func_win32_libid is a shell function defined in ltmain.sh
10052 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10053 lt_cv_file_magic_cmd='func_win32_libid'
10054 ;;
10055
10056mingw* | pw32*)
10057 # Base MSYS/MinGW do not provide the 'file' command needed by
10058 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10059 # unless we find 'file', for example because we are cross-compiling.
cristyfd9dcd42010-08-08 18:07:02 +000010060 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10061 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +000010062 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10063 lt_cv_file_magic_cmd='func_win32_libid'
10064 else
cristyfd9dcd42010-08-08 18:07:02 +000010065 # Keep this pattern in sync with the one in func_win32_libid.
10066 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 +000010067 lt_cv_file_magic_cmd='$OBJDUMP -f'
10068 fi
10069 ;;
10070
cristyfd9dcd42010-08-08 18:07:02 +000010071cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000010072 # use the weaker test based on 'objdump'. See mingw*.
10073 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10074 lt_cv_file_magic_cmd='$OBJDUMP -f'
10075 ;;
10076
10077darwin* | rhapsody*)
10078 lt_cv_deplibs_check_method=pass_all
10079 ;;
10080
10081freebsd* | dragonfly*)
10082 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10083 case $host_cpu in
10084 i*86 )
10085 # Not sure whether the presence of OpenBSD here was a mistake.
10086 # Let's accept both of them until this is cleared up.
10087 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10088 lt_cv_file_magic_cmd=/usr/bin/file
10089 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10090 ;;
10091 esac
10092 else
10093 lt_cv_deplibs_check_method=pass_all
10094 fi
10095 ;;
10096
10097gnu*)
10098 lt_cv_deplibs_check_method=pass_all
10099 ;;
10100
cristyfd9dcd42010-08-08 18:07:02 +000010101haiku*)
10102 lt_cv_deplibs_check_method=pass_all
10103 ;;
10104
cristy3ed852e2009-09-05 21:47:34 +000010105hpux10.20* | hpux11*)
10106 lt_cv_file_magic_cmd=/usr/bin/file
10107 case $host_cpu in
10108 ia64*)
10109 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10110 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10111 ;;
10112 hppa*64*)
cristyfd9dcd42010-08-08 18:07:02 +000010113 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 +000010114 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10115 ;;
10116 *)
cristyfd9dcd42010-08-08 18:07:02 +000010117 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 +000010118 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10119 ;;
10120 esac
10121 ;;
10122
10123interix[3-9]*)
10124 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10126 ;;
10127
10128irix5* | irix6* | nonstopux*)
10129 case $LD in
10130 *-32|*"-32 ") libmagic=32-bit;;
10131 *-n32|*"-n32 ") libmagic=N32;;
10132 *-64|*"-64 ") libmagic=64-bit;;
10133 *) libmagic=never-match;;
10134 esac
10135 lt_cv_deplibs_check_method=pass_all
10136 ;;
10137
10138# This must be Linux ELF.
cristyfd9dcd42010-08-08 18:07:02 +000010139linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000010140 lt_cv_deplibs_check_method=pass_all
10141 ;;
10142
10143netbsd*)
10144 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10145 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10146 else
10147 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10148 fi
10149 ;;
10150
10151newos6*)
10152 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10153 lt_cv_file_magic_cmd=/usr/bin/file
10154 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10155 ;;
10156
10157*nto* | *qnx*)
10158 lt_cv_deplibs_check_method=pass_all
10159 ;;
10160
10161openbsd*)
10162 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10163 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10164 else
10165 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10166 fi
10167 ;;
10168
10169osf3* | osf4* | osf5*)
10170 lt_cv_deplibs_check_method=pass_all
10171 ;;
10172
10173rdos*)
10174 lt_cv_deplibs_check_method=pass_all
10175 ;;
10176
10177solaris*)
10178 lt_cv_deplibs_check_method=pass_all
10179 ;;
10180
10181sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10182 lt_cv_deplibs_check_method=pass_all
10183 ;;
10184
10185sysv4 | sysv4.3*)
10186 case $host_vendor in
10187 motorola)
10188 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]'
10189 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10190 ;;
10191 ncr)
10192 lt_cv_deplibs_check_method=pass_all
10193 ;;
10194 sequent)
10195 lt_cv_file_magic_cmd='/bin/file'
10196 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10197 ;;
10198 sni)
10199 lt_cv_file_magic_cmd='/bin/file'
10200 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10201 lt_cv_file_magic_test_file=/lib/libc.so
10202 ;;
10203 siemens)
10204 lt_cv_deplibs_check_method=pass_all
10205 ;;
10206 pc)
10207 lt_cv_deplibs_check_method=pass_all
10208 ;;
10209 esac
10210 ;;
10211
10212tpf*)
10213 lt_cv_deplibs_check_method=pass_all
10214 ;;
10215esac
10216
10217fi
cristy8b350f62009-11-15 23:12:43 +000010218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +000010219$as_echo "$lt_cv_deplibs_check_method" >&6; }
10220file_magic_cmd=$lt_cv_file_magic_cmd
10221deplibs_check_method=$lt_cv_deplibs_check_method
10222test -z "$deplibs_check_method" && deplibs_check_method=unknown
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235if test -n "$ac_tool_prefix"; then
10236 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10237set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010239$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010240if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010241 $as_echo_n "(cached) " >&6
10242else
10243 if test -n "$AR"; then
10244 ac_cv_prog_AR="$AR" # Let the user override the test.
10245else
10246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10247for as_dir in $PATH
10248do
10249 IFS=$as_save_IFS
10250 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010251 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10253 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +000010254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010255 break 2
10256 fi
10257done
cristy8b350f62009-11-15 23:12:43 +000010258 done
cristy3ed852e2009-09-05 21:47:34 +000010259IFS=$as_save_IFS
10260
10261fi
10262fi
10263AR=$ac_cv_prog_AR
10264if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +000010265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010266$as_echo "$AR" >&6; }
10267else
cristy8b350f62009-11-15 23:12:43 +000010268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010269$as_echo "no" >&6; }
10270fi
10271
10272
10273fi
10274if test -z "$ac_cv_prog_AR"; then
10275 ac_ct_AR=$AR
10276 # Extract the first word of "ar", so it can be a program name with args.
10277set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010279$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010280if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010281 $as_echo_n "(cached) " >&6
10282else
10283 if test -n "$ac_ct_AR"; then
10284 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10285else
10286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10287for as_dir in $PATH
10288do
10289 IFS=$as_save_IFS
10290 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010291 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10293 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +000010294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010295 break 2
10296 fi
10297done
cristy8b350f62009-11-15 23:12:43 +000010298 done
cristy3ed852e2009-09-05 21:47:34 +000010299IFS=$as_save_IFS
10300
10301fi
10302fi
10303ac_ct_AR=$ac_cv_prog_ac_ct_AR
10304if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +000010305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010306$as_echo "$ac_ct_AR" >&6; }
10307else
cristy8b350f62009-11-15 23:12:43 +000010308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010309$as_echo "no" >&6; }
10310fi
10311
10312 if test "x$ac_ct_AR" = x; then
10313 AR="false"
10314 else
10315 case $cross_compiling:$ac_tool_warned in
10316yes:)
cristy8b350f62009-11-15 23:12:43 +000010317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10319ac_tool_warned=yes ;;
10320esac
10321 AR=$ac_ct_AR
10322 fi
10323else
10324 AR="$ac_cv_prog_AR"
10325fi
10326
10327test -z "$AR" && AR=ar
10328test -z "$AR_FLAGS" && AR_FLAGS=cru
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340if test -n "$ac_tool_prefix"; then
10341 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10342set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010344$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010345if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010346 $as_echo_n "(cached) " >&6
10347else
10348 if test -n "$STRIP"; then
10349 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10350else
10351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10352for as_dir in $PATH
10353do
10354 IFS=$as_save_IFS
10355 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010356 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10358 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +000010359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010360 break 2
10361 fi
10362done
cristy8b350f62009-11-15 23:12:43 +000010363 done
cristy3ed852e2009-09-05 21:47:34 +000010364IFS=$as_save_IFS
10365
10366fi
10367fi
10368STRIP=$ac_cv_prog_STRIP
10369if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010371$as_echo "$STRIP" >&6; }
10372else
cristy8b350f62009-11-15 23:12:43 +000010373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010374$as_echo "no" >&6; }
10375fi
10376
10377
10378fi
10379if test -z "$ac_cv_prog_STRIP"; then
10380 ac_ct_STRIP=$STRIP
10381 # Extract the first word of "strip", so it can be a program name with args.
10382set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010384$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010385if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010386 $as_echo_n "(cached) " >&6
10387else
10388 if test -n "$ac_ct_STRIP"; then
10389 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10390else
10391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10392for as_dir in $PATH
10393do
10394 IFS=$as_save_IFS
10395 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010396 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10398 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +000010399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010400 break 2
10401 fi
10402done
cristy8b350f62009-11-15 23:12:43 +000010403 done
cristy3ed852e2009-09-05 21:47:34 +000010404IFS=$as_save_IFS
10405
10406fi
10407fi
10408ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10409if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010411$as_echo "$ac_ct_STRIP" >&6; }
10412else
cristy8b350f62009-11-15 23:12:43 +000010413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010414$as_echo "no" >&6; }
10415fi
10416
10417 if test "x$ac_ct_STRIP" = x; then
10418 STRIP=":"
10419 else
10420 case $cross_compiling:$ac_tool_warned in
10421yes:)
cristy8b350f62009-11-15 23:12:43 +000010422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10424ac_tool_warned=yes ;;
10425esac
10426 STRIP=$ac_ct_STRIP
10427 fi
10428else
10429 STRIP="$ac_cv_prog_STRIP"
10430fi
10431
10432test -z "$STRIP" && STRIP=:
10433
10434
10435
10436
10437
10438
10439if test -n "$ac_tool_prefix"; then
10440 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10441set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010443$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010444if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010445 $as_echo_n "(cached) " >&6
10446else
10447 if test -n "$RANLIB"; then
10448 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10449else
10450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10451for as_dir in $PATH
10452do
10453 IFS=$as_save_IFS
10454 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010455 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10457 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +000010458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010459 break 2
10460 fi
10461done
cristy8b350f62009-11-15 23:12:43 +000010462 done
cristy3ed852e2009-09-05 21:47:34 +000010463IFS=$as_save_IFS
10464
10465fi
10466fi
10467RANLIB=$ac_cv_prog_RANLIB
10468if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010470$as_echo "$RANLIB" >&6; }
10471else
cristy8b350f62009-11-15 23:12:43 +000010472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010473$as_echo "no" >&6; }
10474fi
10475
10476
10477fi
10478if test -z "$ac_cv_prog_RANLIB"; then
10479 ac_ct_RANLIB=$RANLIB
10480 # Extract the first word of "ranlib", so it can be a program name with args.
10481set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010483$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010484if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010485 $as_echo_n "(cached) " >&6
10486else
10487 if test -n "$ac_ct_RANLIB"; then
10488 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10489else
10490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10491for as_dir in $PATH
10492do
10493 IFS=$as_save_IFS
10494 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010495 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10497 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +000010498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010499 break 2
10500 fi
10501done
cristy8b350f62009-11-15 23:12:43 +000010502 done
cristy3ed852e2009-09-05 21:47:34 +000010503IFS=$as_save_IFS
10504
10505fi
10506fi
10507ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10508if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010510$as_echo "$ac_ct_RANLIB" >&6; }
10511else
cristy8b350f62009-11-15 23:12:43 +000010512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010513$as_echo "no" >&6; }
10514fi
10515
10516 if test "x$ac_ct_RANLIB" = x; then
10517 RANLIB=":"
10518 else
10519 case $cross_compiling:$ac_tool_warned in
10520yes:)
cristy8b350f62009-11-15 23:12:43 +000010521{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10523ac_tool_warned=yes ;;
10524esac
10525 RANLIB=$ac_ct_RANLIB
10526 fi
10527else
10528 RANLIB="$ac_cv_prog_RANLIB"
10529fi
10530
10531test -z "$RANLIB" && RANLIB=:
10532
10533
10534
10535
10536
10537
10538# Determine commands to create old-style static archives.
10539old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10540old_postinstall_cmds='chmod 644 $oldlib'
10541old_postuninstall_cmds=
10542
10543if test -n "$RANLIB"; then
10544 case $host_os in
10545 openbsd*)
10546 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10547 ;;
10548 *)
10549 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10550 ;;
10551 esac
10552 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10553fi
10554
cristyfd9dcd42010-08-08 18:07:02 +000010555case $host_os in
10556 darwin*)
10557 lock_old_archive_extraction=yes ;;
10558 *)
10559 lock_old_archive_extraction=no ;;
10560esac
10561
10562
10563
10564
10565
10566
cristy3ed852e2009-09-05 21:47:34 +000010567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600# If no C compiler was specified, use CC.
10601LTCC=${LTCC-"$CC"}
10602
10603# If no C compiler flags were specified, use CFLAGS.
10604LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10605
10606# Allow CC to be a program name with arguments.
10607compiler=$CC
10608
10609
10610# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +000010611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +000010612$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010613if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010614 $as_echo_n "(cached) " >&6
10615else
10616
10617# These are sane defaults that work on at least a few old systems.
10618# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10619
10620# Character class describing NM global symbol codes.
10621symcode='[BCDEGRST]'
10622
10623# Regexp to match symbols that can be accessed directly from C.
10624sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10625
10626# Define system-specific variables.
10627case $host_os in
10628aix*)
10629 symcode='[BCDT]'
10630 ;;
10631cygwin* | mingw* | pw32* | cegcc*)
10632 symcode='[ABCDGISTW]'
10633 ;;
10634hpux*)
10635 if test "$host_cpu" = ia64; then
10636 symcode='[ABCDEGRST]'
10637 fi
10638 ;;
10639irix* | nonstopux*)
10640 symcode='[BCDEGRST]'
10641 ;;
10642osf*)
10643 symcode='[BCDEGQRST]'
10644 ;;
10645solaris*)
10646 symcode='[BDRT]'
10647 ;;
10648sco3.2v5*)
10649 symcode='[DT]'
10650 ;;
10651sysv4.2uw2*)
10652 symcode='[DT]'
10653 ;;
10654sysv5* | sco5v6* | unixware* | OpenUNIX*)
10655 symcode='[ABDT]'
10656 ;;
10657sysv4)
10658 symcode='[DFNSTU]'
10659 ;;
10660esac
10661
10662# If we're using GNU nm, then use its standard symbol codes.
10663case `$NM -V 2>&1` in
10664*GNU* | *'with BFD'*)
10665 symcode='[ABCDGIRSTW]' ;;
10666esac
10667
10668# Transform an extracted symbol line into a proper C declaration.
10669# Some systems (esp. on ia64) link data and code symbols differently,
10670# so use this general approach.
10671lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10672
10673# Transform an extracted symbol line into symbol name and symbol address
10674lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10675lt_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'"
10676
10677# Handle CRLF in mingw tool chain
10678opt_cr=
10679case $build_os in
10680mingw*)
10681 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10682 ;;
10683esac
10684
10685# Try without a prefix underscore, then with it.
10686for ac_symprfx in "" "_"; do
10687
10688 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10689 symxfrm="\\1 $ac_symprfx\\2 \\2"
10690
10691 # Write the raw and C identifiers.
10692 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10693 # Fake it for dumpbin and say T for any non-static function
10694 # and D for any global variable.
10695 # Also find C++ and __fastcall symbols from MSVC++,
10696 # which start with @ or ?.
10697 lt_cv_sys_global_symbol_pipe="$AWK '"\
10698" {last_section=section; section=\$ 3};"\
10699" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10700" \$ 0!~/External *\|/{next};"\
10701" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10702" {if(hide[section]) next};"\
10703" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10704" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10705" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10706" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10707" ' prfx=^$ac_symprfx"
10708 else
10709 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10710 fi
10711
10712 # Check to see that the pipe works correctly.
10713 pipe_works=no
10714
10715 rm -f conftest*
10716 cat > conftest.$ac_ext <<_LT_EOF
10717#ifdef __cplusplus
10718extern "C" {
10719#endif
10720char nm_test_var;
10721void nm_test_func(void);
10722void nm_test_func(void){}
10723#ifdef __cplusplus
10724}
10725#endif
10726int main(){nm_test_var='a';nm_test_func();return(0);}
10727_LT_EOF
10728
cristy8b350f62009-11-15 23:12:43 +000010729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010730 (eval $ac_compile) 2>&5
10731 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10733 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010734 # Now try to grab the symbols.
10735 nlist=conftest.nm
cristyfd9dcd42010-08-08 18:07:02 +000010736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10737 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +000010738 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10740 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000010741 # Try sorting and uniquifying the output.
10742 if sort "$nlist" | uniq > "$nlist"T; then
10743 mv -f "$nlist"T "$nlist"
10744 else
10745 rm -f "$nlist"T
10746 fi
10747
10748 # Make sure that we snagged all the symbols we need.
10749 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10750 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10751 cat <<_LT_EOF > conftest.$ac_ext
10752#ifdef __cplusplus
10753extern "C" {
10754#endif
10755
10756_LT_EOF
10757 # Now generate the symbol file.
10758 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10759
10760 cat <<_LT_EOF >> conftest.$ac_ext
10761
10762/* The mapping between symbol names and symbols. */
10763const struct {
10764 const char *name;
10765 void *address;
10766}
10767lt__PROGRAM__LTX_preloaded_symbols[] =
10768{
10769 { "@PROGRAM@", (void *) 0 },
10770_LT_EOF
10771 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10772 cat <<\_LT_EOF >> conftest.$ac_ext
10773 {0, (void *) 0}
10774};
10775
10776/* This works around a problem in FreeBSD linker */
10777#ifdef FREEBSD_WORKAROUND
10778static const void *lt_preloaded_setup() {
10779 return lt__PROGRAM__LTX_preloaded_symbols;
10780}
10781#endif
10782
10783#ifdef __cplusplus
10784}
10785#endif
10786_LT_EOF
10787 # Now try linking the two files.
10788 mv conftest.$ac_objext conftstm.$ac_objext
10789 lt_save_LIBS="$LIBS"
10790 lt_save_CFLAGS="$CFLAGS"
10791 LIBS="conftstm.$ac_objext"
10792 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +000010793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010794 (eval $ac_link) 2>&5
10795 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10797 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +000010798 pipe_works=yes
10799 fi
10800 LIBS="$lt_save_LIBS"
10801 CFLAGS="$lt_save_CFLAGS"
10802 else
10803 echo "cannot find nm_test_func in $nlist" >&5
10804 fi
10805 else
10806 echo "cannot find nm_test_var in $nlist" >&5
10807 fi
10808 else
10809 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10810 fi
10811 else
10812 echo "$progname: failed program was:" >&5
10813 cat conftest.$ac_ext >&5
10814 fi
10815 rm -rf conftest* conftst*
10816
10817 # Do not use the global_symbol_pipe unless it works.
10818 if test "$pipe_works" = yes; then
10819 break
10820 else
10821 lt_cv_sys_global_symbol_pipe=
10822 fi
10823done
10824
10825fi
10826
10827if test -z "$lt_cv_sys_global_symbol_pipe"; then
10828 lt_cv_sys_global_symbol_to_cdecl=
10829fi
10830if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +000010831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +000010832$as_echo "failed" >&6; }
10833else
cristy8b350f62009-11-15 23:12:43 +000010834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000010835$as_echo "ok" >&6; }
10836fi
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +000010860if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010861 enableval=$enable_libtool_lock;
10862fi
10863
10864test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10865
10866# Some flags need to be propagated to the compiler or linker for good
10867# libtool support.
10868case $host in
10869ia64-*-hpux*)
10870 # Find out which ABI we are using.
10871 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010873 (eval $ac_compile) 2>&5
10874 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10876 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010877 case `/usr/bin/file conftest.$ac_objext` in
10878 *ELF-32*)
10879 HPUX_IA64_MODE="32"
10880 ;;
10881 *ELF-64*)
10882 HPUX_IA64_MODE="64"
10883 ;;
10884 esac
10885 fi
10886 rm -rf conftest*
10887 ;;
10888*-*-irix6*)
10889 # Find out which ABI we are using.
cristyfd9dcd42010-08-08 18:07:02 +000010890 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010892 (eval $ac_compile) 2>&5
10893 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10895 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010896 if test "$lt_cv_prog_gnu_ld" = yes; then
10897 case `/usr/bin/file conftest.$ac_objext` in
10898 *32-bit*)
10899 LD="${LD-ld} -melf32bsmip"
10900 ;;
10901 *N32*)
10902 LD="${LD-ld} -melf32bmipn32"
10903 ;;
10904 *64-bit*)
10905 LD="${LD-ld} -melf64bmip"
10906 ;;
10907 esac
10908 else
10909 case `/usr/bin/file conftest.$ac_objext` in
10910 *32-bit*)
10911 LD="${LD-ld} -32"
10912 ;;
10913 *N32*)
10914 LD="${LD-ld} -n32"
10915 ;;
10916 *64-bit*)
10917 LD="${LD-ld} -64"
10918 ;;
10919 esac
10920 fi
10921 fi
10922 rm -rf conftest*
10923 ;;
10924
10925x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10926s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10927 # Find out which ABI we are using.
10928 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010930 (eval $ac_compile) 2>&5
10931 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10933 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010934 case `/usr/bin/file conftest.o` in
10935 *32-bit*)
10936 case $host in
10937 x86_64-*kfreebsd*-gnu)
10938 LD="${LD-ld} -m elf_i386_fbsd"
10939 ;;
10940 x86_64-*linux*)
10941 LD="${LD-ld} -m elf_i386"
10942 ;;
10943 ppc64-*linux*|powerpc64-*linux*)
10944 LD="${LD-ld} -m elf32ppclinux"
10945 ;;
10946 s390x-*linux*)
10947 LD="${LD-ld} -m elf_s390"
10948 ;;
10949 sparc64-*linux*)
10950 LD="${LD-ld} -m elf32_sparc"
10951 ;;
10952 esac
10953 ;;
10954 *64-bit*)
10955 case $host in
10956 x86_64-*kfreebsd*-gnu)
10957 LD="${LD-ld} -m elf_x86_64_fbsd"
10958 ;;
10959 x86_64-*linux*)
10960 LD="${LD-ld} -m elf_x86_64"
10961 ;;
10962 ppc*-*linux*|powerpc*-*linux*)
10963 LD="${LD-ld} -m elf64ppc"
10964 ;;
10965 s390*-*linux*|s390*-*tpf*)
10966 LD="${LD-ld} -m elf64_s390"
10967 ;;
10968 sparc*-*linux*)
10969 LD="${LD-ld} -m elf64_sparc"
10970 ;;
10971 esac
10972 ;;
10973 esac
10974 fi
10975 rm -rf conftest*
10976 ;;
10977
10978*-*-sco3.2v5*)
10979 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10980 SAVE_CFLAGS="$CFLAGS"
10981 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +000010982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000010983$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010984if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010985 $as_echo_n "(cached) " >&6
10986else
10987 ac_ext=c
10988ac_cpp='$CPP $CPPFLAGS'
10989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10991ac_compiler_gnu=$ac_cv_c_compiler_gnu
10992
cristy8b350f62009-11-15 23:12:43 +000010993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010994/* end confdefs.h. */
10995
10996int
10997main ()
10998{
10999
11000 ;
11001 return 0;
11002}
11003_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011004if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011005 lt_cv_cc_needs_belf=yes
11006else
cristy8b350f62009-11-15 23:12:43 +000011007 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +000011008fi
cristy8b350f62009-11-15 23:12:43 +000011009rm -f core conftest.err conftest.$ac_objext \
11010 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011011 ac_ext=c
11012ac_cpp='$CPP $CPPFLAGS'
11013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11015ac_compiler_gnu=$ac_cv_c_compiler_gnu
11016
11017fi
cristy8b350f62009-11-15 23:12:43 +000011018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000011019$as_echo "$lt_cv_cc_needs_belf" >&6; }
11020 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11021 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11022 CFLAGS="$SAVE_CFLAGS"
11023 fi
11024 ;;
11025sparc*-*solaris*)
11026 # Find out which ABI we are using.
11027 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000011029 (eval $ac_compile) 2>&5
11030 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000011031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11032 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000011033 case `/usr/bin/file conftest.o` in
11034 *64-bit*)
11035 case $lt_cv_prog_gnu_ld in
11036 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11037 *)
11038 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11039 LD="${LD-ld} -64"
11040 fi
11041 ;;
11042 esac
11043 ;;
11044 esac
11045 fi
11046 rm -rf conftest*
11047 ;;
11048esac
11049
11050need_locks="$enable_libtool_lock"
11051
11052
11053 case $host_os in
11054 rhapsody* | darwin*)
11055 if test -n "$ac_tool_prefix"; then
11056 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11057set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011059$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011060if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011061 $as_echo_n "(cached) " >&6
11062else
11063 if test -n "$DSYMUTIL"; then
11064 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11065else
11066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11067for as_dir in $PATH
11068do
11069 IFS=$as_save_IFS
11070 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011071 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11073 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011075 break 2
11076 fi
11077done
cristy8b350f62009-11-15 23:12:43 +000011078 done
cristy3ed852e2009-09-05 21:47:34 +000011079IFS=$as_save_IFS
11080
11081fi
11082fi
11083DSYMUTIL=$ac_cv_prog_DSYMUTIL
11084if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011086$as_echo "$DSYMUTIL" >&6; }
11087else
cristy8b350f62009-11-15 23:12:43 +000011088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011089$as_echo "no" >&6; }
11090fi
11091
11092
11093fi
11094if test -z "$ac_cv_prog_DSYMUTIL"; then
11095 ac_ct_DSYMUTIL=$DSYMUTIL
11096 # Extract the first word of "dsymutil", so it can be a program name with args.
11097set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011099$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011100if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011101 $as_echo_n "(cached) " >&6
11102else
11103 if test -n "$ac_ct_DSYMUTIL"; then
11104 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11105else
11106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11107for as_dir in $PATH
11108do
11109 IFS=$as_save_IFS
11110 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011111 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11113 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011115 break 2
11116 fi
11117done
cristy8b350f62009-11-15 23:12:43 +000011118 done
cristy3ed852e2009-09-05 21:47:34 +000011119IFS=$as_save_IFS
11120
11121fi
11122fi
11123ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11124if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011126$as_echo "$ac_ct_DSYMUTIL" >&6; }
11127else
cristy8b350f62009-11-15 23:12:43 +000011128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011129$as_echo "no" >&6; }
11130fi
11131
11132 if test "x$ac_ct_DSYMUTIL" = x; then
11133 DSYMUTIL=":"
11134 else
11135 case $cross_compiling:$ac_tool_warned in
11136yes:)
cristy8b350f62009-11-15 23:12:43 +000011137{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011138$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11139ac_tool_warned=yes ;;
11140esac
11141 DSYMUTIL=$ac_ct_DSYMUTIL
11142 fi
11143else
11144 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11145fi
11146
11147 if test -n "$ac_tool_prefix"; then
11148 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11149set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011151$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011152if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011153 $as_echo_n "(cached) " >&6
11154else
11155 if test -n "$NMEDIT"; then
11156 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11157else
11158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11159for as_dir in $PATH
11160do
11161 IFS=$as_save_IFS
11162 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011163 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11165 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +000011166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011167 break 2
11168 fi
11169done
cristy8b350f62009-11-15 23:12:43 +000011170 done
cristy3ed852e2009-09-05 21:47:34 +000011171IFS=$as_save_IFS
11172
11173fi
11174fi
11175NMEDIT=$ac_cv_prog_NMEDIT
11176if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011178$as_echo "$NMEDIT" >&6; }
11179else
cristy8b350f62009-11-15 23:12:43 +000011180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011181$as_echo "no" >&6; }
11182fi
11183
11184
11185fi
11186if test -z "$ac_cv_prog_NMEDIT"; then
11187 ac_ct_NMEDIT=$NMEDIT
11188 # Extract the first word of "nmedit", so it can be a program name with args.
11189set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011191$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011192if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011193 $as_echo_n "(cached) " >&6
11194else
11195 if test -n "$ac_ct_NMEDIT"; then
11196 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11197else
11198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11199for as_dir in $PATH
11200do
11201 IFS=$as_save_IFS
11202 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011203 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11205 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +000011206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011207 break 2
11208 fi
11209done
cristy8b350f62009-11-15 23:12:43 +000011210 done
cristy3ed852e2009-09-05 21:47:34 +000011211IFS=$as_save_IFS
11212
11213fi
11214fi
11215ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11216if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011218$as_echo "$ac_ct_NMEDIT" >&6; }
11219else
cristy8b350f62009-11-15 23:12:43 +000011220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011221$as_echo "no" >&6; }
11222fi
11223
11224 if test "x$ac_ct_NMEDIT" = x; then
11225 NMEDIT=":"
11226 else
11227 case $cross_compiling:$ac_tool_warned in
11228yes:)
cristy8b350f62009-11-15 23:12:43 +000011229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11231ac_tool_warned=yes ;;
11232esac
11233 NMEDIT=$ac_ct_NMEDIT
11234 fi
11235else
11236 NMEDIT="$ac_cv_prog_NMEDIT"
11237fi
11238
11239 if test -n "$ac_tool_prefix"; then
11240 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11241set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011243$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011244if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011245 $as_echo_n "(cached) " >&6
11246else
11247 if test -n "$LIPO"; then
11248 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11249else
11250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11251for as_dir in $PATH
11252do
11253 IFS=$as_save_IFS
11254 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011255 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11257 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +000011258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011259 break 2
11260 fi
11261done
cristy8b350f62009-11-15 23:12:43 +000011262 done
cristy3ed852e2009-09-05 21:47:34 +000011263IFS=$as_save_IFS
11264
11265fi
11266fi
11267LIPO=$ac_cv_prog_LIPO
11268if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011270$as_echo "$LIPO" >&6; }
11271else
cristy8b350f62009-11-15 23:12:43 +000011272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011273$as_echo "no" >&6; }
11274fi
11275
11276
11277fi
11278if test -z "$ac_cv_prog_LIPO"; then
11279 ac_ct_LIPO=$LIPO
11280 # Extract the first word of "lipo", so it can be a program name with args.
11281set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011283$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011284if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011285 $as_echo_n "(cached) " >&6
11286else
11287 if test -n "$ac_ct_LIPO"; then
11288 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11289else
11290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11291for as_dir in $PATH
11292do
11293 IFS=$as_save_IFS
11294 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011295 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11297 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +000011298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011299 break 2
11300 fi
11301done
cristy8b350f62009-11-15 23:12:43 +000011302 done
cristy3ed852e2009-09-05 21:47:34 +000011303IFS=$as_save_IFS
11304
11305fi
11306fi
11307ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11308if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011310$as_echo "$ac_ct_LIPO" >&6; }
11311else
cristy8b350f62009-11-15 23:12:43 +000011312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011313$as_echo "no" >&6; }
11314fi
11315
11316 if test "x$ac_ct_LIPO" = x; then
11317 LIPO=":"
11318 else
11319 case $cross_compiling:$ac_tool_warned in
11320yes:)
cristy8b350f62009-11-15 23:12:43 +000011321{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11323ac_tool_warned=yes ;;
11324esac
11325 LIPO=$ac_ct_LIPO
11326 fi
11327else
11328 LIPO="$ac_cv_prog_LIPO"
11329fi
11330
11331 if test -n "$ac_tool_prefix"; then
11332 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11333set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011335$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011336if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011337 $as_echo_n "(cached) " >&6
11338else
11339 if test -n "$OTOOL"; then
11340 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11341else
11342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11343for as_dir in $PATH
11344do
11345 IFS=$as_save_IFS
11346 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011347 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11349 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +000011350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011351 break 2
11352 fi
11353done
cristy8b350f62009-11-15 23:12:43 +000011354 done
cristy3ed852e2009-09-05 21:47:34 +000011355IFS=$as_save_IFS
11356
11357fi
11358fi
11359OTOOL=$ac_cv_prog_OTOOL
11360if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011362$as_echo "$OTOOL" >&6; }
11363else
cristy8b350f62009-11-15 23:12:43 +000011364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011365$as_echo "no" >&6; }
11366fi
11367
11368
11369fi
11370if test -z "$ac_cv_prog_OTOOL"; then
11371 ac_ct_OTOOL=$OTOOL
11372 # Extract the first word of "otool", so it can be a program name with args.
11373set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011375$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011376if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011377 $as_echo_n "(cached) " >&6
11378else
11379 if test -n "$ac_ct_OTOOL"; then
11380 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11381else
11382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11383for as_dir in $PATH
11384do
11385 IFS=$as_save_IFS
11386 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011387 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11389 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +000011390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011391 break 2
11392 fi
11393done
cristy8b350f62009-11-15 23:12:43 +000011394 done
cristy3ed852e2009-09-05 21:47:34 +000011395IFS=$as_save_IFS
11396
11397fi
11398fi
11399ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11400if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011402$as_echo "$ac_ct_OTOOL" >&6; }
11403else
cristy8b350f62009-11-15 23:12:43 +000011404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011405$as_echo "no" >&6; }
11406fi
11407
11408 if test "x$ac_ct_OTOOL" = x; then
11409 OTOOL=":"
11410 else
11411 case $cross_compiling:$ac_tool_warned in
11412yes:)
cristy8b350f62009-11-15 23:12:43 +000011413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11415ac_tool_warned=yes ;;
11416esac
11417 OTOOL=$ac_ct_OTOOL
11418 fi
11419else
11420 OTOOL="$ac_cv_prog_OTOOL"
11421fi
11422
11423 if test -n "$ac_tool_prefix"; then
11424 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11425set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011427$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011428if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011429 $as_echo_n "(cached) " >&6
11430else
11431 if test -n "$OTOOL64"; then
11432 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11433else
11434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11435for as_dir in $PATH
11436do
11437 IFS=$as_save_IFS
11438 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011439 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11441 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +000011442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011443 break 2
11444 fi
11445done
cristy8b350f62009-11-15 23:12:43 +000011446 done
cristy3ed852e2009-09-05 21:47:34 +000011447IFS=$as_save_IFS
11448
11449fi
11450fi
11451OTOOL64=$ac_cv_prog_OTOOL64
11452if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011454$as_echo "$OTOOL64" >&6; }
11455else
cristy8b350f62009-11-15 23:12:43 +000011456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011457$as_echo "no" >&6; }
11458fi
11459
11460
11461fi
11462if test -z "$ac_cv_prog_OTOOL64"; then
11463 ac_ct_OTOOL64=$OTOOL64
11464 # Extract the first word of "otool64", so it can be a program name with args.
11465set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011467$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011468if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011469 $as_echo_n "(cached) " >&6
11470else
11471 if test -n "$ac_ct_OTOOL64"; then
11472 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11473else
11474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11475for as_dir in $PATH
11476do
11477 IFS=$as_save_IFS
11478 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011479 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11481 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000011482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011483 break 2
11484 fi
11485done
cristy8b350f62009-11-15 23:12:43 +000011486 done
cristy3ed852e2009-09-05 21:47:34 +000011487IFS=$as_save_IFS
11488
11489fi
11490fi
11491ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11492if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011494$as_echo "$ac_ct_OTOOL64" >&6; }
11495else
cristy8b350f62009-11-15 23:12:43 +000011496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011497$as_echo "no" >&6; }
11498fi
11499
11500 if test "x$ac_ct_OTOOL64" = x; then
11501 OTOOL64=":"
11502 else
11503 case $cross_compiling:$ac_tool_warned in
11504yes:)
cristy8b350f62009-11-15 23:12:43 +000011505{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11507ac_tool_warned=yes ;;
11508esac
11509 OTOOL64=$ac_ct_OTOOL64
11510 fi
11511else
11512 OTOOL64="$ac_cv_prog_OTOOL64"
11513fi
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
cristy8b350f62009-11-15 23:12:43 +000011541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011542$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011543if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011544 $as_echo_n "(cached) " >&6
11545else
11546 lt_cv_apple_cc_single_mod=no
11547 if test -z "${LT_MULTI_MODULE}"; then
11548 # By default we will add the -single_module flag. You can override
11549 # by either setting the environment variable LT_MULTI_MODULE
11550 # non-empty at configure time, or by adding -multi_module to the
11551 # link flags.
11552 rm -rf libconftest.dylib*
11553 echo "int foo(void){return 1;}" > conftest.c
11554 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11555-dynamiclib -Wl,-single_module conftest.c" >&5
11556 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11557 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11558 _lt_result=$?
11559 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11560 lt_cv_apple_cc_single_mod=yes
11561 else
11562 cat conftest.err >&5
11563 fi
11564 rm -rf libconftest.dylib*
11565 rm -f conftest.*
11566 fi
11567fi
cristy8b350f62009-11-15 23:12:43 +000011568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000011569$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011571$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011572if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011573 $as_echo_n "(cached) " >&6
11574else
11575 lt_cv_ld_exported_symbols_list=no
11576 save_LDFLAGS=$LDFLAGS
11577 echo "_main" > conftest.sym
11578 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000011579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011580/* end confdefs.h. */
11581
11582int
11583main ()
11584{
11585
11586 ;
11587 return 0;
11588}
11589_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011590if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011591 lt_cv_ld_exported_symbols_list=yes
11592else
cristy8b350f62009-11-15 23:12:43 +000011593 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000011594fi
cristy8b350f62009-11-15 23:12:43 +000011595rm -f core conftest.err conftest.$ac_objext \
11596 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011597 LDFLAGS="$save_LDFLAGS"
11598
11599fi
cristy8b350f62009-11-15 23:12:43 +000011600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000011601$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000011602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11603$as_echo_n "checking for -force_load linker flag... " >&6; }
11604if test "${lt_cv_ld_force_load+set}" = set; then :
11605 $as_echo_n "(cached) " >&6
11606else
11607 lt_cv_ld_force_load=no
11608 cat > conftest.c << _LT_EOF
11609int forced_loaded() { return 2;}
11610_LT_EOF
11611 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11612 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11613 echo "$AR cru libconftest.a conftest.o" >&5
11614 $AR cru libconftest.a conftest.o 2>&5
11615 echo "$RANLIB libconftest.a" >&5
11616 $RANLIB libconftest.a 2>&5
11617 cat > conftest.c << _LT_EOF
11618int main() { return 0;}
11619_LT_EOF
11620 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11621 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11622 _lt_result=$?
11623 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11624 lt_cv_ld_force_load=yes
11625 else
11626 cat conftest.err >&5
11627 fi
11628 rm -f conftest.err libconftest.a conftest conftest.c
11629 rm -rf conftest.dSYM
11630
11631fi
11632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11633$as_echo "$lt_cv_ld_force_load" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011634 case $host_os in
11635 rhapsody* | darwin1.[012])
11636 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11637 darwin1.*)
11638 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11639 darwin*) # darwin 5.x on
11640 # if running on 10.5 or later, the deployment target defaults
11641 # to the OS version, if on x86, and 10.4, the deployment
11642 # target defaults to 10.4. Don't you love it?
11643 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11644 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11645 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11646 10.[012]*)
11647 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11648 10.*)
11649 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11650 esac
11651 ;;
11652 esac
11653 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11654 _lt_dar_single_mod='$single_module'
11655 fi
11656 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11657 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11658 else
11659 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11660 fi
cristyfd9dcd42010-08-08 18:07:02 +000011661 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy3ed852e2009-09-05 21:47:34 +000011662 _lt_dsymutil='~$DSYMUTIL $lib || :'
11663 else
11664 _lt_dsymutil=
11665 fi
11666 ;;
11667 esac
11668
cristy3ed852e2009-09-05 21:47:34 +000011669for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000011670do :
11671 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11672"
11673if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011674 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011675#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000011676_ACEOF
11677
11678fi
11679
11680done
11681
11682
11683
cristy3ed852e2009-09-05 21:47:34 +000011684
11685
11686
11687# Set options
11688enable_win32_dll=yes
11689
11690case $host in
cristyfd9dcd42010-08-08 18:07:02 +000011691*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000011692 if test -n "$ac_tool_prefix"; then
11693 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11694set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011696$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011697if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011698 $as_echo_n "(cached) " >&6
11699else
11700 if test -n "$AS"; then
11701 ac_cv_prog_AS="$AS" # Let the user override the test.
11702else
11703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11704for as_dir in $PATH
11705do
11706 IFS=$as_save_IFS
11707 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011708 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11710 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000011711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011712 break 2
11713 fi
11714done
cristy8b350f62009-11-15 23:12:43 +000011715 done
cristy3ed852e2009-09-05 21:47:34 +000011716IFS=$as_save_IFS
11717
11718fi
11719fi
11720AS=$ac_cv_prog_AS
11721if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000011722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011723$as_echo "$AS" >&6; }
11724else
cristy8b350f62009-11-15 23:12:43 +000011725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011726$as_echo "no" >&6; }
11727fi
11728
11729
11730fi
11731if test -z "$ac_cv_prog_AS"; then
11732 ac_ct_AS=$AS
11733 # Extract the first word of "as", so it can be a program name with args.
11734set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011736$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011737if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011738 $as_echo_n "(cached) " >&6
11739else
11740 if test -n "$ac_ct_AS"; then
11741 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11742else
11743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11744for as_dir in $PATH
11745do
11746 IFS=$as_save_IFS
11747 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011748 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11750 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000011751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011752 break 2
11753 fi
11754done
cristy8b350f62009-11-15 23:12:43 +000011755 done
cristy3ed852e2009-09-05 21:47:34 +000011756IFS=$as_save_IFS
11757
11758fi
11759fi
11760ac_ct_AS=$ac_cv_prog_ac_ct_AS
11761if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000011762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011763$as_echo "$ac_ct_AS" >&6; }
11764else
cristy8b350f62009-11-15 23:12:43 +000011765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011766$as_echo "no" >&6; }
11767fi
11768
11769 if test "x$ac_ct_AS" = x; then
11770 AS="false"
11771 else
11772 case $cross_compiling:$ac_tool_warned in
11773yes:)
cristy8b350f62009-11-15 23:12:43 +000011774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11776ac_tool_warned=yes ;;
11777esac
11778 AS=$ac_ct_AS
11779 fi
11780else
11781 AS="$ac_cv_prog_AS"
11782fi
11783
11784 if test -n "$ac_tool_prefix"; then
11785 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11786set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011788$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011789if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011790 $as_echo_n "(cached) " >&6
11791else
11792 if test -n "$DLLTOOL"; then
11793 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11794else
11795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11796for as_dir in $PATH
11797do
11798 IFS=$as_save_IFS
11799 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011800 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11802 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000011803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011804 break 2
11805 fi
11806done
cristy8b350f62009-11-15 23:12:43 +000011807 done
cristy3ed852e2009-09-05 21:47:34 +000011808IFS=$as_save_IFS
11809
11810fi
11811fi
11812DLLTOOL=$ac_cv_prog_DLLTOOL
11813if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011815$as_echo "$DLLTOOL" >&6; }
11816else
cristy8b350f62009-11-15 23:12:43 +000011817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011818$as_echo "no" >&6; }
11819fi
11820
11821
11822fi
11823if test -z "$ac_cv_prog_DLLTOOL"; then
11824 ac_ct_DLLTOOL=$DLLTOOL
11825 # Extract the first word of "dlltool", so it can be a program name with args.
11826set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011828$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011829if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011830 $as_echo_n "(cached) " >&6
11831else
11832 if test -n "$ac_ct_DLLTOOL"; then
11833 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11834else
11835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11836for as_dir in $PATH
11837do
11838 IFS=$as_save_IFS
11839 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011840 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11842 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000011843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011844 break 2
11845 fi
11846done
cristy8b350f62009-11-15 23:12:43 +000011847 done
cristy3ed852e2009-09-05 21:47:34 +000011848IFS=$as_save_IFS
11849
11850fi
11851fi
11852ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11853if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011855$as_echo "$ac_ct_DLLTOOL" >&6; }
11856else
cristy8b350f62009-11-15 23:12:43 +000011857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011858$as_echo "no" >&6; }
11859fi
11860
11861 if test "x$ac_ct_DLLTOOL" = x; then
11862 DLLTOOL="false"
11863 else
11864 case $cross_compiling:$ac_tool_warned in
11865yes:)
cristy8b350f62009-11-15 23:12:43 +000011866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11868ac_tool_warned=yes ;;
11869esac
11870 DLLTOOL=$ac_ct_DLLTOOL
11871 fi
11872else
11873 DLLTOOL="$ac_cv_prog_DLLTOOL"
11874fi
11875
11876 if test -n "$ac_tool_prefix"; then
11877 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11878set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011880$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011881if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011882 $as_echo_n "(cached) " >&6
11883else
11884 if test -n "$OBJDUMP"; then
11885 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11886else
11887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11888for as_dir in $PATH
11889do
11890 IFS=$as_save_IFS
11891 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011892 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11894 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000011895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011896 break 2
11897 fi
11898done
cristy8b350f62009-11-15 23:12:43 +000011899 done
cristy3ed852e2009-09-05 21:47:34 +000011900IFS=$as_save_IFS
11901
11902fi
11903fi
11904OBJDUMP=$ac_cv_prog_OBJDUMP
11905if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011907$as_echo "$OBJDUMP" >&6; }
11908else
cristy8b350f62009-11-15 23:12:43 +000011909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011910$as_echo "no" >&6; }
11911fi
11912
11913
11914fi
11915if test -z "$ac_cv_prog_OBJDUMP"; then
11916 ac_ct_OBJDUMP=$OBJDUMP
11917 # Extract the first word of "objdump", so it can be a program name with args.
11918set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011920$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011921if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011922 $as_echo_n "(cached) " >&6
11923else
11924 if test -n "$ac_ct_OBJDUMP"; then
11925 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11926else
11927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11928for as_dir in $PATH
11929do
11930 IFS=$as_save_IFS
11931 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011932 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11934 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000011935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011936 break 2
11937 fi
11938done
cristy8b350f62009-11-15 23:12:43 +000011939 done
cristy3ed852e2009-09-05 21:47:34 +000011940IFS=$as_save_IFS
11941
11942fi
11943fi
11944ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11945if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011947$as_echo "$ac_ct_OBJDUMP" >&6; }
11948else
cristy8b350f62009-11-15 23:12:43 +000011949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011950$as_echo "no" >&6; }
11951fi
11952
11953 if test "x$ac_ct_OBJDUMP" = x; then
11954 OBJDUMP="false"
11955 else
11956 case $cross_compiling:$ac_tool_warned in
11957yes:)
cristy8b350f62009-11-15 23:12:43 +000011958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11960ac_tool_warned=yes ;;
11961esac
11962 OBJDUMP=$ac_ct_OBJDUMP
11963 fi
11964else
11965 OBJDUMP="$ac_cv_prog_OBJDUMP"
11966fi
11967
11968 ;;
11969esac
11970
11971test -z "$AS" && AS=as
11972
11973
11974
11975
11976
11977test -z "$DLLTOOL" && DLLTOOL=dlltool
11978
11979
11980
11981
11982
11983test -z "$OBJDUMP" && OBJDUMP=objdump
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000011994if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011995 enableval=$enable_shared; p=${PACKAGE-default}
11996 case $enableval in
11997 yes) enable_shared=yes ;;
11998 no) enable_shared=no ;;
11999 *)
12000 enable_shared=no
12001 # Look at the argument we got. We use all the common list separators.
12002 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12003 for pkg in $enableval; do
12004 IFS="$lt_save_ifs"
12005 if test "X$pkg" = "X$p"; then
12006 enable_shared=yes
12007 fi
12008 done
12009 IFS="$lt_save_ifs"
12010 ;;
12011 esac
12012else
12013 enable_shared=yes
12014fi
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000012025if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012026 enableval=$enable_static; p=${PACKAGE-default}
12027 case $enableval in
12028 yes) enable_static=yes ;;
12029 no) enable_static=no ;;
12030 *)
12031 enable_static=no
12032 # Look at the argument we got. We use all the common list separators.
12033 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12034 for pkg in $enableval; do
12035 IFS="$lt_save_ifs"
12036 if test "X$pkg" = "X$p"; then
12037 enable_static=yes
12038 fi
12039 done
12040 IFS="$lt_save_ifs"
12041 ;;
12042 esac
12043else
12044 enable_static=yes
12045fi
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000012057if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012058 withval=$with_pic; pic_mode="$withval"
12059else
12060 pic_mode=default
12061fi
12062
12063
12064test -z "$pic_mode" && pic_mode=default
12065
12066
12067
12068
12069
12070
12071
12072 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000012073if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012074 enableval=$enable_fast_install; p=${PACKAGE-default}
12075 case $enableval in
12076 yes) enable_fast_install=yes ;;
12077 no) enable_fast_install=no ;;
12078 *)
12079 enable_fast_install=no
12080 # Look at the argument we got. We use all the common list separators.
12081 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12082 for pkg in $enableval; do
12083 IFS="$lt_save_ifs"
12084 if test "X$pkg" = "X$p"; then
12085 enable_fast_install=yes
12086 fi
12087 done
12088 IFS="$lt_save_ifs"
12089 ;;
12090 esac
12091else
12092 enable_fast_install=yes
12093fi
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105# This can be used to rebuild libtool when needed
12106LIBTOOL_DEPS="$ltmain"
12107
12108# Always use our own libtool.
12109LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
cristyfd9dcd42010-08-08 18:07:02 +000012135
cristy3ed852e2009-09-05 21:47:34 +000012136test -z "$LN_S" && LN_S="ln -s"
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151if test -n "${ZSH_VERSION+set}" ; then
12152 setopt NO_GLOB_SUBST
12153fi
12154
cristy8b350f62009-11-15 23:12:43 +000012155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012156$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012157if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012158 $as_echo_n "(cached) " >&6
12159else
12160 rm -f .libs 2>/dev/null
12161mkdir .libs 2>/dev/null
12162if test -d .libs; then
12163 lt_cv_objdir=.libs
12164else
12165 # MS-DOS does not allow filenames that begin with a dot.
12166 lt_cv_objdir=_libs
12167fi
12168rmdir .libs 2>/dev/null
12169fi
cristy8b350f62009-11-15 23:12:43 +000012170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012171$as_echo "$lt_cv_objdir" >&6; }
12172objdir=$lt_cv_objdir
12173
12174
12175
12176
12177
12178cat >>confdefs.h <<_ACEOF
12179#define LT_OBJDIR "$lt_cv_objdir/"
12180_ACEOF
12181
12182
12183
12184
cristy3ed852e2009-09-05 21:47:34 +000012185case $host_os in
12186aix3*)
12187 # AIX sometimes has problems with the GCC collect2 program. For some
12188 # reason, if we set the COLLECT_NAMES environment variable, the problems
12189 # vanish in a puff of smoke.
12190 if test "X${COLLECT_NAMES+set}" != Xset; then
12191 COLLECT_NAMES=
12192 export COLLECT_NAMES
12193 fi
12194 ;;
12195esac
12196
cristy3ed852e2009-09-05 21:47:34 +000012197# Global variables:
12198ofile=libtool
12199can_build_shared=yes
12200
12201# All known linkers require a `.a' archive for static linking (except MSVC,
12202# which needs '.lib').
12203libext=a
12204
12205with_gnu_ld="$lt_cv_prog_gnu_ld"
12206
12207old_CC="$CC"
12208old_CFLAGS="$CFLAGS"
12209
12210# Set sane defaults for various variables
12211test -z "$CC" && CC=cc
12212test -z "$LTCC" && LTCC=$CC
12213test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12214test -z "$LD" && LD=ld
12215test -z "$ac_objext" && ac_objext=o
12216
12217for cc_temp in $compiler""; do
12218 case $cc_temp in
12219 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12220 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12221 \-*) ;;
12222 *) break;;
12223 esac
12224done
cristyfd9dcd42010-08-08 18:07:02 +000012225cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000012226
12227
12228# Only perform the check for file, if the check method requires it
12229test -z "$MAGIC_CMD" && MAGIC_CMD=file
12230case $deplibs_check_method in
12231file_magic*)
12232 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000012233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012234$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012235if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012236 $as_echo_n "(cached) " >&6
12237else
12238 case $MAGIC_CMD in
12239[\\/*] | ?:[\\/]*)
12240 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12241 ;;
12242*)
12243 lt_save_MAGIC_CMD="$MAGIC_CMD"
12244 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12245 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12246 for ac_dir in $ac_dummy; do
12247 IFS="$lt_save_ifs"
12248 test -z "$ac_dir" && ac_dir=.
12249 if test -f $ac_dir/${ac_tool_prefix}file; then
12250 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12251 if test -n "$file_magic_test_file"; then
12252 case $deplibs_check_method in
12253 "file_magic "*)
12254 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12255 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12256 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12257 $EGREP "$file_magic_regex" > /dev/null; then
12258 :
12259 else
12260 cat <<_LT_EOF 1>&2
12261
12262*** Warning: the command libtool uses to detect shared libraries,
12263*** $file_magic_cmd, produces output that libtool cannot recognize.
12264*** The result is that libtool may fail to recognize shared libraries
12265*** as such. This will affect the creation of libtool libraries that
12266*** depend on shared libraries, but programs linked with such libtool
12267*** libraries will work regardless of this problem. Nevertheless, you
12268*** may want to report the problem to your system manager and/or to
12269*** bug-libtool@gnu.org
12270
12271_LT_EOF
12272 fi ;;
12273 esac
12274 fi
12275 break
12276 fi
12277 done
12278 IFS="$lt_save_ifs"
12279 MAGIC_CMD="$lt_save_MAGIC_CMD"
12280 ;;
12281esac
12282fi
12283
12284MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12285if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012287$as_echo "$MAGIC_CMD" >&6; }
12288else
cristy8b350f62009-11-15 23:12:43 +000012289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012290$as_echo "no" >&6; }
12291fi
12292
12293
12294
12295
12296
12297if test -z "$lt_cv_path_MAGIC_CMD"; then
12298 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000012299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012300$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012301if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012302 $as_echo_n "(cached) " >&6
12303else
12304 case $MAGIC_CMD in
12305[\\/*] | ?:[\\/]*)
12306 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12307 ;;
12308*)
12309 lt_save_MAGIC_CMD="$MAGIC_CMD"
12310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12311 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12312 for ac_dir in $ac_dummy; do
12313 IFS="$lt_save_ifs"
12314 test -z "$ac_dir" && ac_dir=.
12315 if test -f $ac_dir/file; then
12316 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12317 if test -n "$file_magic_test_file"; then
12318 case $deplibs_check_method in
12319 "file_magic "*)
12320 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12321 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12322 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12323 $EGREP "$file_magic_regex" > /dev/null; then
12324 :
12325 else
12326 cat <<_LT_EOF 1>&2
12327
12328*** Warning: the command libtool uses to detect shared libraries,
12329*** $file_magic_cmd, produces output that libtool cannot recognize.
12330*** The result is that libtool may fail to recognize shared libraries
12331*** as such. This will affect the creation of libtool libraries that
12332*** depend on shared libraries, but programs linked with such libtool
12333*** libraries will work regardless of this problem. Nevertheless, you
12334*** may want to report the problem to your system manager and/or to
12335*** bug-libtool@gnu.org
12336
12337_LT_EOF
12338 fi ;;
12339 esac
12340 fi
12341 break
12342 fi
12343 done
12344 IFS="$lt_save_ifs"
12345 MAGIC_CMD="$lt_save_MAGIC_CMD"
12346 ;;
12347esac
12348fi
12349
12350MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12351if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012353$as_echo "$MAGIC_CMD" >&6; }
12354else
cristy8b350f62009-11-15 23:12:43 +000012355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012356$as_echo "no" >&6; }
12357fi
12358
12359
12360 else
12361 MAGIC_CMD=:
12362 fi
12363fi
12364
12365 fi
12366 ;;
12367esac
12368
12369# Use C for the default configuration in the libtool script
12370
12371lt_save_CC="$CC"
12372ac_ext=c
12373ac_cpp='$CPP $CPPFLAGS'
12374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12376ac_compiler_gnu=$ac_cv_c_compiler_gnu
12377
12378
12379# Source file extension for C test sources.
12380ac_ext=c
12381
12382# Object file extension for compiled C test sources.
12383objext=o
12384objext=$objext
12385
12386# Code to be used in simple compile tests
12387lt_simple_compile_test_code="int some_variable = 0;"
12388
12389# Code to be used in simple link tests
12390lt_simple_link_test_code='int main(){return(0);}'
12391
12392
12393
12394
12395
12396
12397
12398# If no C compiler was specified, use CC.
12399LTCC=${LTCC-"$CC"}
12400
12401# If no C compiler flags were specified, use CFLAGS.
12402LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12403
12404# Allow CC to be a program name with arguments.
12405compiler=$CC
12406
12407# Save the default compiler, since it gets overwritten when the other
12408# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12409compiler_DEFAULT=$CC
12410
12411# save warnings/boilerplate of simple test code
12412ac_outfile=conftest.$ac_objext
12413echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12414eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12415_lt_compiler_boilerplate=`cat conftest.err`
12416$RM conftest*
12417
12418ac_outfile=conftest.$ac_objext
12419echo "$lt_simple_link_test_code" >conftest.$ac_ext
12420eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12421_lt_linker_boilerplate=`cat conftest.err`
12422$RM -r conftest*
12423
12424
12425## CAVEAT EMPTOR:
12426## There is no encapsulation within the following macros, do not change
12427## the running order or otherwise move them around unless you know exactly
12428## what you are doing...
12429if test -n "$compiler"; then
12430
12431lt_prog_compiler_no_builtin_flag=
12432
12433if test "$GCC" = yes; then
cristyfd9dcd42010-08-08 18:07:02 +000012434 case $cc_basename in
12435 nvcc*)
12436 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12437 *)
12438 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12439 esac
cristy3ed852e2009-09-05 21:47:34 +000012440
cristy8b350f62009-11-15 23:12:43 +000012441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012442$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012443if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012444 $as_echo_n "(cached) " >&6
12445else
12446 lt_cv_prog_compiler_rtti_exceptions=no
12447 ac_outfile=conftest.$ac_objext
12448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12449 lt_compiler_flag="-fno-rtti -fno-exceptions"
12450 # Insert the option either (1) after the last *FLAGS variable, or
12451 # (2) before a word containing "conftest.", or (3) at the end.
12452 # Note that $ac_compile itself does not contain backslashes and begins
12453 # with a dollar sign (not a hyphen), so the echo should work correctly.
12454 # The option is referenced via a variable to avoid confusing sed.
12455 lt_compile=`echo "$ac_compile" | $SED \
12456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12458 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000012459 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012460 (eval "$lt_compile" 2>conftest.err)
12461 ac_status=$?
12462 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000012463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012464 if (exit $ac_status) && test -s "$ac_outfile"; then
12465 # The compiler can only warn and ignore the option if not recognized
12466 # So say no if there are warnings other than the usual output.
cristyfd9dcd42010-08-08 18:07:02 +000012467 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12469 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12470 lt_cv_prog_compiler_rtti_exceptions=yes
12471 fi
12472 fi
12473 $RM conftest*
12474
12475fi
cristy8b350f62009-11-15 23:12:43 +000012476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012477$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12478
12479if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12480 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12481else
12482 :
12483fi
12484
12485fi
12486
12487
12488
12489
12490
12491
12492 lt_prog_compiler_wl=
12493lt_prog_compiler_pic=
12494lt_prog_compiler_static=
12495
cristy8b350f62009-11-15 23:12:43 +000012496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000012497$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12498
12499 if test "$GCC" = yes; then
12500 lt_prog_compiler_wl='-Wl,'
12501 lt_prog_compiler_static='-static'
12502
12503 case $host_os in
12504 aix*)
12505 # All AIX code is PIC.
12506 if test "$host_cpu" = ia64; then
12507 # AIX 5 now supports IA64 processor
12508 lt_prog_compiler_static='-Bstatic'
12509 fi
12510 ;;
12511
12512 amigaos*)
12513 case $host_cpu in
12514 powerpc)
12515 # see comment about AmigaOS4 .so support
12516 lt_prog_compiler_pic='-fPIC'
12517 ;;
12518 m68k)
12519 # FIXME: we need at least 68020 code to build shared libraries, but
12520 # adding the `-m68020' flag to GCC prevents building anything better,
12521 # like `-m68040'.
12522 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12523 ;;
12524 esac
12525 ;;
12526
12527 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12528 # PIC is the default for these OSes.
12529 ;;
12530
12531 mingw* | cygwin* | pw32* | os2* | cegcc*)
12532 # This hack is so that the source file can tell whether it is being
12533 # built for inclusion in a dll (and should export symbols for example).
12534 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12535 # (--disable-auto-import) libraries
12536 lt_prog_compiler_pic='-DDLL_EXPORT'
12537 ;;
12538
12539 darwin* | rhapsody*)
12540 # PIC is the default on this platform
12541 # Common symbols not allowed in MH_DYLIB files
12542 lt_prog_compiler_pic='-fno-common'
12543 ;;
12544
cristyfd9dcd42010-08-08 18:07:02 +000012545 haiku*)
12546 # PIC is the default for Haiku.
12547 # The "-static" flag exists, but is broken.
12548 lt_prog_compiler_static=
12549 ;;
12550
cristy3ed852e2009-09-05 21:47:34 +000012551 hpux*)
12552 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12553 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12554 # sets the default TLS model and affects inlining.
12555 case $host_cpu in
12556 hppa*64*)
12557 # +Z the default
12558 ;;
12559 *)
12560 lt_prog_compiler_pic='-fPIC'
12561 ;;
12562 esac
12563 ;;
12564
12565 interix[3-9]*)
12566 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12567 # Instead, we relocate shared libraries at runtime.
12568 ;;
12569
12570 msdosdjgpp*)
12571 # Just because we use GCC doesn't mean we suddenly get shared libraries
12572 # on systems that don't support them.
12573 lt_prog_compiler_can_build_shared=no
12574 enable_shared=no
12575 ;;
12576
12577 *nto* | *qnx*)
12578 # QNX uses GNU C++, but need to define -shared option too, otherwise
12579 # it will coredump.
12580 lt_prog_compiler_pic='-fPIC -shared'
12581 ;;
12582
12583 sysv4*MP*)
12584 if test -d /usr/nec; then
12585 lt_prog_compiler_pic=-Kconform_pic
12586 fi
12587 ;;
12588
12589 *)
12590 lt_prog_compiler_pic='-fPIC'
12591 ;;
12592 esac
cristyfd9dcd42010-08-08 18:07:02 +000012593
12594 case $cc_basename in
12595 nvcc*) # Cuda Compiler Driver 2.2
12596 lt_prog_compiler_wl='-Xlinker '
12597 lt_prog_compiler_pic='-Xcompiler -fPIC'
12598 ;;
12599 esac
cristy3ed852e2009-09-05 21:47:34 +000012600 else
12601 # PORTME Check for flag to pass linker flags through the system compiler.
12602 case $host_os in
12603 aix*)
12604 lt_prog_compiler_wl='-Wl,'
12605 if test "$host_cpu" = ia64; then
12606 # AIX 5 now supports IA64 processor
12607 lt_prog_compiler_static='-Bstatic'
12608 else
12609 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12610 fi
12611 ;;
12612
12613 mingw* | cygwin* | pw32* | os2* | cegcc*)
12614 # This hack is so that the source file can tell whether it is being
12615 # built for inclusion in a dll (and should export symbols for example).
12616 lt_prog_compiler_pic='-DDLL_EXPORT'
12617 ;;
12618
12619 hpux9* | hpux10* | hpux11*)
12620 lt_prog_compiler_wl='-Wl,'
12621 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12622 # not for PA HP-UX.
12623 case $host_cpu in
12624 hppa*64*|ia64*)
12625 # +Z the default
12626 ;;
12627 *)
12628 lt_prog_compiler_pic='+Z'
12629 ;;
12630 esac
12631 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12632 lt_prog_compiler_static='${wl}-a ${wl}archive'
12633 ;;
12634
12635 irix5* | irix6* | nonstopux*)
12636 lt_prog_compiler_wl='-Wl,'
12637 # PIC (with -KPIC) is the default.
12638 lt_prog_compiler_static='-non_shared'
12639 ;;
12640
cristyfd9dcd42010-08-08 18:07:02 +000012641 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000012642 case $cc_basename in
12643 # old Intel for x86_64 which still supported -KPIC.
12644 ecc*)
12645 lt_prog_compiler_wl='-Wl,'
12646 lt_prog_compiler_pic='-KPIC'
12647 lt_prog_compiler_static='-static'
12648 ;;
12649 # icc used to be incompatible with GCC.
12650 # ICC 10 doesn't accept -KPIC any more.
12651 icc* | ifort*)
12652 lt_prog_compiler_wl='-Wl,'
12653 lt_prog_compiler_pic='-fPIC'
12654 lt_prog_compiler_static='-static'
12655 ;;
12656 # Lahey Fortran 8.1.
12657 lf95*)
12658 lt_prog_compiler_wl='-Wl,'
12659 lt_prog_compiler_pic='--shared'
12660 lt_prog_compiler_static='--static'
12661 ;;
cristyfd9dcd42010-08-08 18:07:02 +000012662 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy3ed852e2009-09-05 21:47:34 +000012663 # Portland Group compilers (*not* the Pentium gcc compiler,
12664 # which looks to be a dead project)
12665 lt_prog_compiler_wl='-Wl,'
12666 lt_prog_compiler_pic='-fpic'
12667 lt_prog_compiler_static='-Bstatic'
12668 ;;
12669 ccc*)
12670 lt_prog_compiler_wl='-Wl,'
12671 # All Alpha code is PIC.
12672 lt_prog_compiler_static='-non_shared'
12673 ;;
cristyfd9dcd42010-08-08 18:07:02 +000012674 xl* | bgxl* | bgf* | mpixl*)
12675 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy3ed852e2009-09-05 21:47:34 +000012676 lt_prog_compiler_wl='-Wl,'
12677 lt_prog_compiler_pic='-qpic'
12678 lt_prog_compiler_static='-qstaticlink'
12679 ;;
12680 *)
12681 case `$CC -V 2>&1 | sed 5q` in
cristyfd9dcd42010-08-08 18:07:02 +000012682 *Sun\ F* | *Sun*Fortran*)
12683 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12684 lt_prog_compiler_pic='-KPIC'
12685 lt_prog_compiler_static='-Bstatic'
12686 lt_prog_compiler_wl=''
12687 ;;
cristy3ed852e2009-09-05 21:47:34 +000012688 *Sun\ C*)
12689 # Sun C 5.9
12690 lt_prog_compiler_pic='-KPIC'
12691 lt_prog_compiler_static='-Bstatic'
12692 lt_prog_compiler_wl='-Wl,'
12693 ;;
cristy3ed852e2009-09-05 21:47:34 +000012694 esac
12695 ;;
12696 esac
12697 ;;
12698
12699 newsos6)
12700 lt_prog_compiler_pic='-KPIC'
12701 lt_prog_compiler_static='-Bstatic'
12702 ;;
12703
12704 *nto* | *qnx*)
12705 # QNX uses GNU C++, but need to define -shared option too, otherwise
12706 # it will coredump.
12707 lt_prog_compiler_pic='-fPIC -shared'
12708 ;;
12709
12710 osf3* | osf4* | osf5*)
12711 lt_prog_compiler_wl='-Wl,'
12712 # All OSF/1 code is PIC.
12713 lt_prog_compiler_static='-non_shared'
12714 ;;
12715
12716 rdos*)
12717 lt_prog_compiler_static='-non_shared'
12718 ;;
12719
12720 solaris*)
12721 lt_prog_compiler_pic='-KPIC'
12722 lt_prog_compiler_static='-Bstatic'
12723 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000012724 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy3ed852e2009-09-05 21:47:34 +000012725 lt_prog_compiler_wl='-Qoption ld ';;
12726 *)
12727 lt_prog_compiler_wl='-Wl,';;
12728 esac
12729 ;;
12730
12731 sunos4*)
12732 lt_prog_compiler_wl='-Qoption ld '
12733 lt_prog_compiler_pic='-PIC'
12734 lt_prog_compiler_static='-Bstatic'
12735 ;;
12736
12737 sysv4 | sysv4.2uw2* | sysv4.3*)
12738 lt_prog_compiler_wl='-Wl,'
12739 lt_prog_compiler_pic='-KPIC'
12740 lt_prog_compiler_static='-Bstatic'
12741 ;;
12742
12743 sysv4*MP*)
12744 if test -d /usr/nec ;then
12745 lt_prog_compiler_pic='-Kconform_pic'
12746 lt_prog_compiler_static='-Bstatic'
12747 fi
12748 ;;
12749
12750 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12751 lt_prog_compiler_wl='-Wl,'
12752 lt_prog_compiler_pic='-KPIC'
12753 lt_prog_compiler_static='-Bstatic'
12754 ;;
12755
12756 unicos*)
12757 lt_prog_compiler_wl='-Wl,'
12758 lt_prog_compiler_can_build_shared=no
12759 ;;
12760
12761 uts4*)
12762 lt_prog_compiler_pic='-pic'
12763 lt_prog_compiler_static='-Bstatic'
12764 ;;
12765
12766 *)
12767 lt_prog_compiler_can_build_shared=no
12768 ;;
12769 esac
12770 fi
12771
12772case $host_os in
12773 # For platforms which do not support PIC, -DPIC is meaningless:
12774 *djgpp*)
12775 lt_prog_compiler_pic=
12776 ;;
12777 *)
12778 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12779 ;;
12780esac
cristy8b350f62009-11-15 23:12:43 +000012781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000012782$as_echo "$lt_prog_compiler_pic" >&6; }
12783
12784
12785
12786
12787
12788
12789#
12790# Check to make sure the PIC flag actually works.
12791#
12792if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000012793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012794$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012795if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012796 $as_echo_n "(cached) " >&6
12797else
12798 lt_cv_prog_compiler_pic_works=no
12799 ac_outfile=conftest.$ac_objext
12800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12801 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12802 # Insert the option either (1) after the last *FLAGS variable, or
12803 # (2) before a word containing "conftest.", or (3) at the end.
12804 # Note that $ac_compile itself does not contain backslashes and begins
12805 # with a dollar sign (not a hyphen), so the echo should work correctly.
12806 # The option is referenced via a variable to avoid confusing sed.
12807 lt_compile=`echo "$ac_compile" | $SED \
12808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12810 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000012811 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012812 (eval "$lt_compile" 2>conftest.err)
12813 ac_status=$?
12814 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000012815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012816 if (exit $ac_status) && test -s "$ac_outfile"; then
12817 # The compiler can only warn and ignore the option if not recognized
12818 # So say no if there are warnings other than the usual output.
cristyfd9dcd42010-08-08 18:07:02 +000012819 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012820 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12821 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12822 lt_cv_prog_compiler_pic_works=yes
12823 fi
12824 fi
12825 $RM conftest*
12826
12827fi
cristy8b350f62009-11-15 23:12:43 +000012828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012829$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12830
12831if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12832 case $lt_prog_compiler_pic in
12833 "" | " "*) ;;
12834 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12835 esac
12836else
12837 lt_prog_compiler_pic=
12838 lt_prog_compiler_can_build_shared=no
12839fi
12840
12841fi
12842
12843
12844
12845
12846
12847
12848#
12849# Check to make sure the static flag actually works.
12850#
12851wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000012852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012853$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012854if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012855 $as_echo_n "(cached) " >&6
12856else
12857 lt_cv_prog_compiler_static_works=no
12858 save_LDFLAGS="$LDFLAGS"
12859 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12860 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12861 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12862 # The linker can only warn and ignore the option if not recognized
12863 # So say no if there are warnings
12864 if test -s conftest.err; then
12865 # Append any errors to the config.log.
12866 cat conftest.err 1>&5
cristyfd9dcd42010-08-08 18:07:02 +000012867 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12869 if diff conftest.exp conftest.er2 >/dev/null; then
12870 lt_cv_prog_compiler_static_works=yes
12871 fi
12872 else
12873 lt_cv_prog_compiler_static_works=yes
12874 fi
12875 fi
12876 $RM -r conftest*
12877 LDFLAGS="$save_LDFLAGS"
12878
12879fi
cristy8b350f62009-11-15 23:12:43 +000012880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012881$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12882
12883if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12884 :
12885else
12886 lt_prog_compiler_static=
12887fi
12888
12889
12890
12891
12892
12893
12894
cristy8b350f62009-11-15 23:12:43 +000012895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012896$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012897if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012898 $as_echo_n "(cached) " >&6
12899else
12900 lt_cv_prog_compiler_c_o=no
12901 $RM -r conftest 2>/dev/null
12902 mkdir conftest
12903 cd conftest
12904 mkdir out
12905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12906
12907 lt_compiler_flag="-o out/conftest2.$ac_objext"
12908 # Insert the option either (1) after the last *FLAGS variable, or
12909 # (2) before a word containing "conftest.", or (3) at the end.
12910 # Note that $ac_compile itself does not contain backslashes and begins
12911 # with a dollar sign (not a hyphen), so the echo should work correctly.
12912 lt_compile=`echo "$ac_compile" | $SED \
12913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12915 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000012916 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012917 (eval "$lt_compile" 2>out/conftest.err)
12918 ac_status=$?
12919 cat out/conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000012920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012921 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12922 then
12923 # The compiler can only warn and ignore the option if not recognized
12924 # So say no if there are warnings
cristyfd9dcd42010-08-08 18:07:02 +000012925 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012926 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12927 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12928 lt_cv_prog_compiler_c_o=yes
12929 fi
12930 fi
12931 chmod u+w . 2>&5
12932 $RM conftest*
12933 # SGI C++ compiler will create directory out/ii_files/ for
12934 # template instantiation
12935 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12936 $RM out/* && rmdir out
12937 cd ..
12938 $RM -r conftest
12939 $RM conftest*
12940
12941fi
cristy8b350f62009-11-15 23:12:43 +000012942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012943$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12944
12945
12946
12947
12948
12949
cristy8b350f62009-11-15 23:12:43 +000012950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012951$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012952if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012953 $as_echo_n "(cached) " >&6
12954else
12955 lt_cv_prog_compiler_c_o=no
12956 $RM -r conftest 2>/dev/null
12957 mkdir conftest
12958 cd conftest
12959 mkdir out
12960 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12961
12962 lt_compiler_flag="-o out/conftest2.$ac_objext"
12963 # Insert the option either (1) after the last *FLAGS variable, or
12964 # (2) before a word containing "conftest.", or (3) at the end.
12965 # Note that $ac_compile itself does not contain backslashes and begins
12966 # with a dollar sign (not a hyphen), so the echo should work correctly.
12967 lt_compile=`echo "$ac_compile" | $SED \
12968 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12969 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12970 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000012971 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012972 (eval "$lt_compile" 2>out/conftest.err)
12973 ac_status=$?
12974 cat out/conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000012975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012976 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12977 then
12978 # The compiler can only warn and ignore the option if not recognized
12979 # So say no if there are warnings
cristyfd9dcd42010-08-08 18:07:02 +000012980 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012981 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12982 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12983 lt_cv_prog_compiler_c_o=yes
12984 fi
12985 fi
12986 chmod u+w . 2>&5
12987 $RM conftest*
12988 # SGI C++ compiler will create directory out/ii_files/ for
12989 # template instantiation
12990 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12991 $RM out/* && rmdir out
12992 cd ..
12993 $RM -r conftest
12994 $RM conftest*
12995
12996fi
cristy8b350f62009-11-15 23:12:43 +000012997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012998$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12999
13000
13001
13002
13003hard_links="nottested"
13004if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13005 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000013006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013007$as_echo_n "checking if we can lock with hard links... " >&6; }
13008 hard_links=yes
13009 $RM conftest*
13010 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13011 touch conftest.a
13012 ln conftest.a conftest.b 2>&5 || hard_links=no
13013 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000013014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013015$as_echo "$hard_links" >&6; }
13016 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000013017 { $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 +000013018$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13019 need_locks=warn
13020 fi
13021else
13022 need_locks=no
13023fi
13024
13025
13026
13027
13028
13029
cristy8b350f62009-11-15 23:12:43 +000013030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000013031$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13032
13033 runpath_var=
13034 allow_undefined_flag=
13035 always_export_symbols=no
13036 archive_cmds=
13037 archive_expsym_cmds=
13038 compiler_needs_object=no
13039 enable_shared_with_static_runtimes=no
13040 export_dynamic_flag_spec=
13041 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13042 hardcode_automatic=no
13043 hardcode_direct=no
13044 hardcode_direct_absolute=no
13045 hardcode_libdir_flag_spec=
13046 hardcode_libdir_flag_spec_ld=
13047 hardcode_libdir_separator=
13048 hardcode_minus_L=no
13049 hardcode_shlibpath_var=unsupported
13050 inherit_rpath=no
13051 link_all_deplibs=unknown
13052 module_cmds=
13053 module_expsym_cmds=
13054 old_archive_from_new_cmds=
13055 old_archive_from_expsyms_cmds=
13056 thread_safe_flag_spec=
13057 whole_archive_flag_spec=
13058 # include_expsyms should be a list of space-separated symbols to be *always*
13059 # included in the symbol list
13060 include_expsyms=
13061 # exclude_expsyms can be an extended regexp of symbols to exclude
13062 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13063 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13064 # as well as any symbol that contains `d'.
13065 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13066 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13067 # platforms (ab)use it in PIC code, but their linkers get confused if
13068 # the symbol is explicitly referenced. Since portable code cannot
13069 # rely on this symbol name, it's probably fine to never include it in
13070 # preloaded symbol tables.
13071 # Exclude shared library initialization/finalization symbols.
13072 extract_expsyms_cmds=
13073
13074 case $host_os in
13075 cygwin* | mingw* | pw32* | cegcc*)
13076 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13077 # When not using gcc, we currently assume that we are using
13078 # Microsoft Visual C++.
13079 if test "$GCC" != yes; then
13080 with_gnu_ld=no
13081 fi
13082 ;;
13083 interix*)
13084 # we just hope/assume this is gcc and not c89 (= MSVC++)
13085 with_gnu_ld=yes
13086 ;;
13087 openbsd*)
13088 with_gnu_ld=no
13089 ;;
13090 esac
13091
13092 ld_shlibs=yes
cristyfd9dcd42010-08-08 18:07:02 +000013093
13094 # On some targets, GNU ld is compatible enough with the native linker
13095 # that we're better off using the native interface for both.
13096 lt_use_gnu_ld_interface=no
cristy3ed852e2009-09-05 21:47:34 +000013097 if test "$with_gnu_ld" = yes; then
cristyfd9dcd42010-08-08 18:07:02 +000013098 case $host_os in
13099 aix*)
13100 # The AIX port of GNU ld has always aspired to compatibility
13101 # with the native linker. However, as the warning in the GNU ld
13102 # block says, versions before 2.19.5* couldn't really create working
13103 # shared libraries, regardless of the interface used.
13104 case `$LD -v 2>&1` in
13105 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13106 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13107 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13108 *)
13109 lt_use_gnu_ld_interface=yes
13110 ;;
13111 esac
13112 ;;
13113 *)
13114 lt_use_gnu_ld_interface=yes
13115 ;;
13116 esac
13117 fi
13118
13119 if test "$lt_use_gnu_ld_interface" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000013120 # If archive_cmds runs LD, not CC, wlarc should be empty
13121 wlarc='${wl}'
13122
13123 # Set some defaults for GNU ld with shared library support. These
13124 # are reset later if shared libraries are not supported. Putting them
13125 # here allows them to be overridden if necessary.
13126 runpath_var=LD_RUN_PATH
13127 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13128 export_dynamic_flag_spec='${wl}--export-dynamic'
13129 # ancient GNU ld didn't support --whole-archive et. al.
13130 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13131 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13132 else
13133 whole_archive_flag_spec=
13134 fi
13135 supports_anon_versioning=no
13136 case `$LD -v 2>&1` in
cristyfd9dcd42010-08-08 18:07:02 +000013137 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy3ed852e2009-09-05 21:47:34 +000013138 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13139 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13140 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13141 *\ 2.11.*) ;; # other 2.11 versions
13142 *) supports_anon_versioning=yes ;;
13143 esac
13144
13145 # See if GNU ld supports shared libraries.
13146 case $host_os in
13147 aix[3-9]*)
13148 # On AIX/PPC, the GNU linker is very broken
13149 if test "$host_cpu" != ia64; then
13150 ld_shlibs=no
13151 cat <<_LT_EOF 1>&2
13152
cristyfd9dcd42010-08-08 18:07:02 +000013153*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy3ed852e2009-09-05 21:47:34 +000013154*** to be unable to reliably create shared libraries on AIX.
13155*** Therefore, libtool is disabling shared libraries support. If you
cristyfd9dcd42010-08-08 18:07:02 +000013156*** really care for shared libraries, you may want to install binutils
13157*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13158*** You will then need to restart the configuration process.
cristy3ed852e2009-09-05 21:47:34 +000013159
13160_LT_EOF
13161 fi
13162 ;;
13163
13164 amigaos*)
13165 case $host_cpu in
13166 powerpc)
13167 # see comment about AmigaOS4 .so support
13168 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13169 archive_expsym_cmds=''
13170 ;;
13171 m68k)
13172 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)'
13173 hardcode_libdir_flag_spec='-L$libdir'
13174 hardcode_minus_L=yes
13175 ;;
13176 esac
13177 ;;
13178
13179 beos*)
13180 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13181 allow_undefined_flag=unsupported
13182 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13183 # support --undefined. This deserves some investigation. FIXME
13184 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13185 else
13186 ld_shlibs=no
13187 fi
13188 ;;
13189
13190 cygwin* | mingw* | pw32* | cegcc*)
13191 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13192 # as there is no search path for DLLs.
13193 hardcode_libdir_flag_spec='-L$libdir'
cristyfd9dcd42010-08-08 18:07:02 +000013194 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy3ed852e2009-09-05 21:47:34 +000013195 allow_undefined_flag=unsupported
13196 always_export_symbols=no
13197 enable_shared_with_static_runtimes=yes
13198 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13199
13200 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13201 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13202 # If the export-symbols file already is a .def file (1st line
13203 # is EXPORTS), use it as is; otherwise, prepend...
13204 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13205 cp $export_symbols $output_objdir/$soname.def;
13206 else
13207 echo EXPORTS > $output_objdir/$soname.def;
13208 cat $export_symbols >> $output_objdir/$soname.def;
13209 fi~
13210 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13211 else
13212 ld_shlibs=no
13213 fi
13214 ;;
13215
cristyfd9dcd42010-08-08 18:07:02 +000013216 haiku*)
13217 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13218 link_all_deplibs=yes
13219 ;;
13220
cristy3ed852e2009-09-05 21:47:34 +000013221 interix[3-9]*)
13222 hardcode_direct=no
13223 hardcode_shlibpath_var=no
13224 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13225 export_dynamic_flag_spec='${wl}-E'
13226 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13227 # Instead, shared libraries are loaded at an image base (0x10000000 by
13228 # default) and relocated if they conflict, which is a slow very memory
13229 # consuming and fragmenting process. To avoid this, we pick a random,
13230 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13231 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13232 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13233 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'
13234 ;;
13235
cristyfd9dcd42010-08-08 18:07:02 +000013236 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013237 tmp_diet=no
13238 if test "$host_os" = linux-dietlibc; then
13239 case $cc_basename in
13240 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13241 esac
13242 fi
13243 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13244 && test "$tmp_diet" = no
13245 then
13246 tmp_addflag=
13247 tmp_sharedflag='-shared'
13248 case $cc_basename,$host_cpu in
13249 pgcc*) # Portland Group C compiler
cristyfd9dcd42010-08-08 18:07:02 +000013250 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 +000013251 tmp_addflag=' $pic_flag'
13252 ;;
cristyfd9dcd42010-08-08 18:07:02 +000013253 pgf77* | pgf90* | pgf95* | pgfortran*)
13254 # Portland Group f77 and f90 compilers
13255 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 +000013256 tmp_addflag=' $pic_flag -Mnomain' ;;
13257 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13258 tmp_addflag=' -i_dynamic' ;;
13259 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13260 tmp_addflag=' -i_dynamic -nofor_main' ;;
13261 ifc* | ifort*) # Intel Fortran compiler
13262 tmp_addflag=' -nofor_main' ;;
13263 lf95*) # Lahey Fortran 8.1
13264 whole_archive_flag_spec=
13265 tmp_sharedflag='--shared' ;;
cristyfd9dcd42010-08-08 18:07:02 +000013266 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000013267 tmp_sharedflag='-qmkshrobj'
13268 tmp_addflag= ;;
cristyfd9dcd42010-08-08 18:07:02 +000013269 nvcc*) # Cuda Compiler Driver 2.2
13270 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'
13271 compiler_needs_object=yes
13272 ;;
cristy3ed852e2009-09-05 21:47:34 +000013273 esac
13274 case `$CC -V 2>&1 | sed 5q` in
13275 *Sun\ C*) # Sun C 5.9
cristyfd9dcd42010-08-08 18:07:02 +000013276 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 +000013277 compiler_needs_object=yes
13278 tmp_sharedflag='-G' ;;
13279 *Sun\ F*) # Sun Fortran 8.3
13280 tmp_sharedflag='-G' ;;
13281 esac
13282 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13283
13284 if test "x$supports_anon_versioning" = xyes; then
13285 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13286 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13287 echo "local: *; };" >> $output_objdir/$libname.ver~
13288 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13289 fi
13290
13291 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000013292 xlf* | bgf* | bgxlf* | mpixlf*)
cristy3ed852e2009-09-05 21:47:34 +000013293 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13294 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13295 hardcode_libdir_flag_spec=
13296 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristyfd9dcd42010-08-08 18:07:02 +000013297 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013298 if test "x$supports_anon_versioning" = xyes; then
13299 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13300 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13301 echo "local: *; };" >> $output_objdir/$libname.ver~
cristyfd9dcd42010-08-08 18:07:02 +000013302 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013303 fi
13304 ;;
13305 esac
13306 else
13307 ld_shlibs=no
13308 fi
13309 ;;
13310
13311 netbsd*)
13312 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13313 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13314 wlarc=
13315 else
13316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13317 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13318 fi
13319 ;;
13320
13321 solaris*)
13322 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13323 ld_shlibs=no
13324 cat <<_LT_EOF 1>&2
13325
13326*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13327*** create shared libraries on Solaris systems. Therefore, libtool
13328*** is disabling shared libraries support. We urge you to upgrade GNU
13329*** binutils to release 2.9.1 or newer. Another option is to modify
13330*** your PATH or compiler configuration so that the native linker is
13331*** used, and then restart.
13332
13333_LT_EOF
13334 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13336 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13337 else
13338 ld_shlibs=no
13339 fi
13340 ;;
13341
13342 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13343 case `$LD -v 2>&1` in
13344 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13345 ld_shlibs=no
13346 cat <<_LT_EOF 1>&2
13347
13348*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13349*** reliably create shared libraries on SCO systems. Therefore, libtool
13350*** is disabling shared libraries support. We urge you to upgrade GNU
13351*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13352*** your PATH or compiler configuration so that the native linker is
13353*** used, and then restart.
13354
13355_LT_EOF
13356 ;;
13357 *)
13358 # For security reasons, it is highly recommended that you always
13359 # use absolute paths for naming shared libraries, and exclude the
13360 # DT_RUNPATH tag from executables and libraries. But doing so
13361 # requires that you compile everything twice, which is a pain.
13362 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13363 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13365 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13366 else
13367 ld_shlibs=no
13368 fi
13369 ;;
13370 esac
13371 ;;
13372
13373 sunos4*)
13374 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13375 wlarc=
13376 hardcode_direct=yes
13377 hardcode_shlibpath_var=no
13378 ;;
13379
13380 *)
13381 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13383 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13384 else
13385 ld_shlibs=no
13386 fi
13387 ;;
13388 esac
13389
13390 if test "$ld_shlibs" = no; then
13391 runpath_var=
13392 hardcode_libdir_flag_spec=
13393 export_dynamic_flag_spec=
13394 whole_archive_flag_spec=
13395 fi
13396 else
13397 # PORTME fill in a description of your system's linker (not GNU ld)
13398 case $host_os in
13399 aix3*)
13400 allow_undefined_flag=unsupported
13401 always_export_symbols=yes
13402 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'
13403 # Note: this linker hardcodes the directories in LIBPATH if there
13404 # are no directories specified by -L.
13405 hardcode_minus_L=yes
13406 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13407 # Neither direct hardcoding nor static linking is supported with a
13408 # broken collect2.
13409 hardcode_direct=unsupported
13410 fi
13411 ;;
13412
13413 aix[4-9]*)
13414 if test "$host_cpu" = ia64; then
13415 # On IA64, the linker does run time linking by default, so we don't
13416 # have to do anything special.
13417 aix_use_runtimelinking=no
13418 exp_sym_flag='-Bexport'
13419 no_entry_flag=""
13420 else
13421 # If we're using GNU nm, then we don't want the "-C" option.
13422 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristyfd9dcd42010-08-08 18:07:02 +000013423 # Also, AIX nm treats weak defined symbols like other global
13424 # defined symbols, whereas GNU nm marks them as "W".
cristy3ed852e2009-09-05 21:47:34 +000013425 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristyfd9dcd42010-08-08 18:07:02 +000013426 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 +000013427 else
13428 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'
13429 fi
13430 aix_use_runtimelinking=no
13431
13432 # Test if we are trying to use run time linking or normal
13433 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13434 # need to do runtime linking.
13435 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13436 for ld_flag in $LDFLAGS; do
13437 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13438 aix_use_runtimelinking=yes
13439 break
13440 fi
13441 done
13442 ;;
13443 esac
13444
13445 exp_sym_flag='-bexport'
13446 no_entry_flag='-bnoentry'
13447 fi
13448
13449 # When large executables or shared objects are built, AIX ld can
13450 # have problems creating the table of contents. If linking a library
13451 # or program results in "error TOC overflow" add -mminimal-toc to
13452 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13453 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13454
13455 archive_cmds=''
13456 hardcode_direct=yes
13457 hardcode_direct_absolute=yes
13458 hardcode_libdir_separator=':'
13459 link_all_deplibs=yes
13460 file_list_spec='${wl}-f,'
13461
13462 if test "$GCC" = yes; then
13463 case $host_os in aix4.[012]|aix4.[012].*)
13464 # We only want to do this on AIX 4.2 and lower, the check
13465 # below for broken collect2 doesn't work under 4.3+
13466 collect2name=`${CC} -print-prog-name=collect2`
13467 if test -f "$collect2name" &&
13468 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13469 then
13470 # We have reworked collect2
13471 :
13472 else
13473 # We have old collect2
13474 hardcode_direct=unsupported
13475 # It fails to find uninstalled libraries when the uninstalled
13476 # path is not listed in the libpath. Setting hardcode_minus_L
13477 # to unsupported forces relinking
13478 hardcode_minus_L=yes
13479 hardcode_libdir_flag_spec='-L$libdir'
13480 hardcode_libdir_separator=
13481 fi
13482 ;;
13483 esac
13484 shared_flag='-shared'
13485 if test "$aix_use_runtimelinking" = yes; then
13486 shared_flag="$shared_flag "'${wl}-G'
13487 fi
13488 else
13489 # not using gcc
13490 if test "$host_cpu" = ia64; then
13491 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13492 # chokes on -Wl,-G. The following line is correct:
13493 shared_flag='-G'
13494 else
13495 if test "$aix_use_runtimelinking" = yes; then
13496 shared_flag='${wl}-G'
13497 else
13498 shared_flag='${wl}-bM:SRE'
13499 fi
13500 fi
13501 fi
13502
13503 export_dynamic_flag_spec='${wl}-bexpall'
13504 # It seems that -bexpall does not export symbols beginning with
13505 # underscore (_), so it is better to generate a list of symbols to export.
13506 always_export_symbols=yes
13507 if test "$aix_use_runtimelinking" = yes; then
13508 # Warning - without using the other runtime loading flags (-brtl),
13509 # -berok will link without error, but may produce a broken library.
13510 allow_undefined_flag='-berok'
13511 # Determine the default libpath from the value encoded in an
13512 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013514/* end confdefs.h. */
13515
13516int
13517main ()
13518{
13519
13520 ;
13521 return 0;
13522}
13523_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013524if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013525
13526lt_aix_libpath_sed='
13527 /Import File Strings/,/^$/ {
13528 /^0/ {
13529 s/^0 *\(.*\)$/\1/
13530 p
13531 }
13532 }'
13533aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13534# Check for a 64-bit object if we didn't find anything.
13535if test -z "$aix_libpath"; then
13536 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13537fi
cristy3ed852e2009-09-05 21:47:34 +000013538fi
cristy8b350f62009-11-15 23:12:43 +000013539rm -f core conftest.err conftest.$ac_objext \
13540 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013541if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13542
13543 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristyfd9dcd42010-08-08 18:07:02 +000013544 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 +000013545 else
13546 if test "$host_cpu" = ia64; then
13547 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13548 allow_undefined_flag="-z nodefs"
13549 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"
13550 else
13551 # Determine the default libpath from the value encoded in an
13552 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013554/* end confdefs.h. */
13555
13556int
13557main ()
13558{
13559
13560 ;
13561 return 0;
13562}
13563_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013564if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013565
13566lt_aix_libpath_sed='
13567 /Import File Strings/,/^$/ {
13568 /^0/ {
13569 s/^0 *\(.*\)$/\1/
13570 p
13571 }
13572 }'
13573aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13574# Check for a 64-bit object if we didn't find anything.
13575if test -z "$aix_libpath"; then
13576 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13577fi
cristy3ed852e2009-09-05 21:47:34 +000013578fi
cristy8b350f62009-11-15 23:12:43 +000013579rm -f core conftest.err conftest.$ac_objext \
13580 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013581if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13582
13583 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13584 # Warning - without using the other run time loading flags,
13585 # -berok will link without error, but may produce a broken library.
13586 no_undefined_flag=' ${wl}-bernotok'
13587 allow_undefined_flag=' ${wl}-berok'
cristyfd9dcd42010-08-08 18:07:02 +000013588 if test "$with_gnu_ld" = yes; then
13589 # We only use this code for GNU lds that support --whole-archive.
13590 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13591 else
13592 # Exported symbols can be pulled into shared objects from archives
13593 whole_archive_flag_spec='$convenience'
13594 fi
cristy3ed852e2009-09-05 21:47:34 +000013595 archive_cmds_need_lc=yes
13596 # This is similar to how AIX traditionally builds its shared libraries.
13597 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'
13598 fi
13599 fi
13600 ;;
13601
13602 amigaos*)
13603 case $host_cpu in
13604 powerpc)
13605 # see comment about AmigaOS4 .so support
13606 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13607 archive_expsym_cmds=''
13608 ;;
13609 m68k)
13610 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)'
13611 hardcode_libdir_flag_spec='-L$libdir'
13612 hardcode_minus_L=yes
13613 ;;
13614 esac
13615 ;;
13616
13617 bsdi[45]*)
13618 export_dynamic_flag_spec=-rdynamic
13619 ;;
13620
13621 cygwin* | mingw* | pw32* | cegcc*)
13622 # When not using gcc, we currently assume that we are using
13623 # Microsoft Visual C++.
13624 # hardcode_libdir_flag_spec is actually meaningless, as there is
13625 # no search path for DLLs.
13626 hardcode_libdir_flag_spec=' '
13627 allow_undefined_flag=unsupported
13628 # Tell ltmain to make .lib files, not .a files.
13629 libext=lib
13630 # Tell ltmain to make .dll files, not .so files.
13631 shrext_cmds=".dll"
13632 # FIXME: Setting linknames here is a bad hack.
cristyfd9dcd42010-08-08 18:07:02 +000013633 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000013634 # The linker will automatically build a .lib file if we build a DLL.
13635 old_archive_from_new_cmds='true'
13636 # FIXME: Should let the user specify the lib program.
13637 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13638 fix_srcfile_path='`cygpath -w "$srcfile"`'
13639 enable_shared_with_static_runtimes=yes
13640 ;;
13641
13642 darwin* | rhapsody*)
13643
13644
13645 archive_cmds_need_lc=no
13646 hardcode_direct=no
13647 hardcode_automatic=yes
13648 hardcode_shlibpath_var=unsupported
cristyfd9dcd42010-08-08 18:07:02 +000013649 if test "$lt_cv_ld_force_load" = "yes"; then
13650 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\"`'
13651 else
13652 whole_archive_flag_spec=''
13653 fi
cristy3ed852e2009-09-05 21:47:34 +000013654 link_all_deplibs=yes
13655 allow_undefined_flag="$_lt_dar_allow_undefined"
13656 case $cc_basename in
13657 ifort*) _lt_dar_can_shared=yes ;;
13658 *) _lt_dar_can_shared=$GCC ;;
13659 esac
13660 if test "$_lt_dar_can_shared" = "yes"; then
cristyfd9dcd42010-08-08 18:07:02 +000013661 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000013662 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13663 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13664 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}"
13665 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}"
13666
13667 else
13668 ld_shlibs=no
13669 fi
13670
13671 ;;
13672
13673 dgux*)
13674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13675 hardcode_libdir_flag_spec='-L$libdir'
13676 hardcode_shlibpath_var=no
13677 ;;
13678
13679 freebsd1*)
13680 ld_shlibs=no
13681 ;;
13682
13683 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13684 # support. Future versions do this automatically, but an explicit c++rt0.o
13685 # does not break anything, and helps significantly (at the cost of a little
13686 # extra space).
13687 freebsd2.2*)
13688 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13689 hardcode_libdir_flag_spec='-R$libdir'
13690 hardcode_direct=yes
13691 hardcode_shlibpath_var=no
13692 ;;
13693
13694 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13695 freebsd2*)
13696 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13697 hardcode_direct=yes
13698 hardcode_minus_L=yes
13699 hardcode_shlibpath_var=no
13700 ;;
13701
13702 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13703 freebsd* | dragonfly*)
13704 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13705 hardcode_libdir_flag_spec='-R$libdir'
13706 hardcode_direct=yes
13707 hardcode_shlibpath_var=no
13708 ;;
13709
13710 hpux9*)
13711 if test "$GCC" = yes; then
13712 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'
13713 else
13714 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'
13715 fi
13716 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13717 hardcode_libdir_separator=:
13718 hardcode_direct=yes
13719
13720 # hardcode_minus_L: Not really in the search PATH,
13721 # but as the default location of the library.
13722 hardcode_minus_L=yes
13723 export_dynamic_flag_spec='${wl}-E'
13724 ;;
13725
13726 hpux10*)
cristyfd9dcd42010-08-08 18:07:02 +000013727 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013728 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13729 else
13730 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13731 fi
13732 if test "$with_gnu_ld" = no; then
13733 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13734 hardcode_libdir_flag_spec_ld='+b $libdir'
13735 hardcode_libdir_separator=:
13736 hardcode_direct=yes
13737 hardcode_direct_absolute=yes
13738 export_dynamic_flag_spec='${wl}-E'
13739 # hardcode_minus_L: Not really in the search PATH,
13740 # but as the default location of the library.
13741 hardcode_minus_L=yes
13742 fi
13743 ;;
13744
13745 hpux11*)
cristyfd9dcd42010-08-08 18:07:02 +000013746 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013747 case $host_cpu in
13748 hppa*64*)
13749 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13750 ;;
13751 ia64*)
13752 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13753 ;;
13754 *)
13755 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13756 ;;
13757 esac
13758 else
13759 case $host_cpu in
13760 hppa*64*)
13761 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13762 ;;
13763 ia64*)
13764 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13765 ;;
13766 *)
cristyfd9dcd42010-08-08 18:07:02 +000013767
13768 # Older versions of the 11.00 compiler do not understand -b yet
13769 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13771$as_echo_n "checking if $CC understands -b... " >&6; }
13772if test "${lt_cv_prog_compiler__b+set}" = set; then :
13773 $as_echo_n "(cached) " >&6
13774else
13775 lt_cv_prog_compiler__b=no
13776 save_LDFLAGS="$LDFLAGS"
13777 LDFLAGS="$LDFLAGS -b"
13778 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13779 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13780 # The linker can only warn and ignore the option if not recognized
13781 # So say no if there are warnings
13782 if test -s conftest.err; then
13783 # Append any errors to the config.log.
13784 cat conftest.err 1>&5
13785 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13786 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13787 if diff conftest.exp conftest.er2 >/dev/null; then
13788 lt_cv_prog_compiler__b=yes
13789 fi
13790 else
13791 lt_cv_prog_compiler__b=yes
13792 fi
13793 fi
13794 $RM -r conftest*
13795 LDFLAGS="$save_LDFLAGS"
13796
13797fi
13798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13799$as_echo "$lt_cv_prog_compiler__b" >&6; }
13800
13801if test x"$lt_cv_prog_compiler__b" = xyes; then
13802 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13803else
13804 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13805fi
13806
cristy3ed852e2009-09-05 21:47:34 +000013807 ;;
13808 esac
13809 fi
13810 if test "$with_gnu_ld" = no; then
13811 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13812 hardcode_libdir_separator=:
13813
13814 case $host_cpu in
13815 hppa*64*|ia64*)
13816 hardcode_direct=no
13817 hardcode_shlibpath_var=no
13818 ;;
13819 *)
13820 hardcode_direct=yes
13821 hardcode_direct_absolute=yes
13822 export_dynamic_flag_spec='${wl}-E'
13823
13824 # hardcode_minus_L: Not really in the search PATH,
13825 # but as the default location of the library.
13826 hardcode_minus_L=yes
13827 ;;
13828 esac
13829 fi
13830 ;;
13831
13832 irix5* | irix6* | nonstopux*)
13833 if test "$GCC" = yes; then
cristyfd9dcd42010-08-08 18:07:02 +000013834 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 +000013835 # Try to use the -exported_symbol ld option, if it does not
13836 # work, assume that -exports_file does not work either and
13837 # implicitly export all symbols.
13838 save_LDFLAGS="$LDFLAGS"
13839 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000013840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13841/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000013842int foo(void) {}
13843_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013844if ac_fn_c_try_link "$LINENO"; then :
cristyfd9dcd42010-08-08 18:07:02 +000013845 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 +000013846
cristy3ed852e2009-09-05 21:47:34 +000013847fi
cristy8b350f62009-11-15 23:12:43 +000013848rm -f core conftest.err conftest.$ac_objext \
13849 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013850 LDFLAGS="$save_LDFLAGS"
13851 else
cristyfd9dcd42010-08-08 18:07:02 +000013852 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'
13853 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 +000013854 fi
13855 archive_cmds_need_lc='no'
13856 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13857 hardcode_libdir_separator=:
13858 inherit_rpath=yes
13859 link_all_deplibs=yes
13860 ;;
13861
13862 netbsd*)
13863 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13864 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13865 else
13866 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13867 fi
13868 hardcode_libdir_flag_spec='-R$libdir'
13869 hardcode_direct=yes
13870 hardcode_shlibpath_var=no
13871 ;;
13872
13873 newsos6)
13874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13875 hardcode_direct=yes
13876 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13877 hardcode_libdir_separator=:
13878 hardcode_shlibpath_var=no
13879 ;;
13880
13881 *nto* | *qnx*)
13882 ;;
13883
13884 openbsd*)
13885 if test -f /usr/libexec/ld.so; then
13886 hardcode_direct=yes
13887 hardcode_shlibpath_var=no
13888 hardcode_direct_absolute=yes
13889 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13890 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13891 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13892 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13893 export_dynamic_flag_spec='${wl}-E'
13894 else
13895 case $host_os in
13896 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13897 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13898 hardcode_libdir_flag_spec='-R$libdir'
13899 ;;
13900 *)
13901 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13902 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13903 ;;
13904 esac
13905 fi
13906 else
13907 ld_shlibs=no
13908 fi
13909 ;;
13910
13911 os2*)
13912 hardcode_libdir_flag_spec='-L$libdir'
13913 hardcode_minus_L=yes
13914 allow_undefined_flag=unsupported
cristyfd9dcd42010-08-08 18:07:02 +000013915 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 +000013916 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13917 ;;
13918
13919 osf3*)
13920 if test "$GCC" = yes; then
13921 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyfd9dcd42010-08-08 18:07:02 +000013922 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 +000013923 else
13924 allow_undefined_flag=' -expect_unresolved \*'
cristyfd9dcd42010-08-08 18:07:02 +000013925 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 +000013926 fi
13927 archive_cmds_need_lc='no'
13928 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13929 hardcode_libdir_separator=:
13930 ;;
13931
13932 osf4* | osf5*) # as osf3* with the addition of -msym flag
13933 if test "$GCC" = yes; then
13934 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyfd9dcd42010-08-08 18:07:02 +000013935 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 +000013936 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13937 else
13938 allow_undefined_flag=' -expect_unresolved \*'
cristyfd9dcd42010-08-08 18:07:02 +000013939 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 +000013940 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 +000013941 $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 +000013942
13943 # Both c and cxx compiler support -rpath directly
13944 hardcode_libdir_flag_spec='-rpath $libdir'
13945 fi
13946 archive_cmds_need_lc='no'
13947 hardcode_libdir_separator=:
13948 ;;
13949
13950 solaris*)
13951 no_undefined_flag=' -z defs'
13952 if test "$GCC" = yes; then
13953 wlarc='${wl}'
13954 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13955 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13956 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13957 else
13958 case `$CC -V 2>&1` in
13959 *"Compilers 5.0"*)
13960 wlarc=''
13961 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13962 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13963 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13964 ;;
13965 *)
13966 wlarc='${wl}'
13967 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13968 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13969 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13970 ;;
13971 esac
13972 fi
13973 hardcode_libdir_flag_spec='-R$libdir'
13974 hardcode_shlibpath_var=no
13975 case $host_os in
13976 solaris2.[0-5] | solaris2.[0-5].*) ;;
13977 *)
13978 # The compiler driver will combine and reorder linker options,
13979 # but understands `-z linker_flag'. GCC discards it without `$wl',
13980 # but is careful enough not to reorder.
13981 # Supported since Solaris 2.6 (maybe 2.5.1?)
13982 if test "$GCC" = yes; then
13983 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13984 else
13985 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13986 fi
13987 ;;
13988 esac
13989 link_all_deplibs=yes
13990 ;;
13991
13992 sunos4*)
13993 if test "x$host_vendor" = xsequent; then
13994 # Use $CC to link under sequent, because it throws in some extra .o
13995 # files that make .init and .fini sections work.
13996 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13997 else
13998 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13999 fi
14000 hardcode_libdir_flag_spec='-L$libdir'
14001 hardcode_direct=yes
14002 hardcode_minus_L=yes
14003 hardcode_shlibpath_var=no
14004 ;;
14005
14006 sysv4)
14007 case $host_vendor in
14008 sni)
14009 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14010 hardcode_direct=yes # is this really true???
14011 ;;
14012 siemens)
14013 ## LD is ld it makes a PLAMLIB
14014 ## CC just makes a GrossModule.
14015 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14016 reload_cmds='$CC -r -o $output$reload_objs'
14017 hardcode_direct=no
14018 ;;
14019 motorola)
14020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14021 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14022 ;;
14023 esac
14024 runpath_var='LD_RUN_PATH'
14025 hardcode_shlibpath_var=no
14026 ;;
14027
14028 sysv4.3*)
14029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14030 hardcode_shlibpath_var=no
14031 export_dynamic_flag_spec='-Bexport'
14032 ;;
14033
14034 sysv4*MP*)
14035 if test -d /usr/nec; then
14036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14037 hardcode_shlibpath_var=no
14038 runpath_var=LD_RUN_PATH
14039 hardcode_runpath_var=yes
14040 ld_shlibs=yes
14041 fi
14042 ;;
14043
14044 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14045 no_undefined_flag='${wl}-z,text'
14046 archive_cmds_need_lc=no
14047 hardcode_shlibpath_var=no
14048 runpath_var='LD_RUN_PATH'
14049
14050 if test "$GCC" = yes; then
14051 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14052 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14053 else
14054 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14055 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14056 fi
14057 ;;
14058
14059 sysv5* | sco3.2v5* | sco5v6*)
14060 # Note: We can NOT use -z defs as we might desire, because we do not
14061 # link with -lc, and that would cause any symbols used from libc to
14062 # always be unresolved, which means just about no library would
14063 # ever link correctly. If we're not using GNU ld we use -z text
14064 # though, which does catch some bad symbols but isn't as heavy-handed
14065 # as -z defs.
14066 no_undefined_flag='${wl}-z,text'
14067 allow_undefined_flag='${wl}-z,nodefs'
14068 archive_cmds_need_lc=no
14069 hardcode_shlibpath_var=no
14070 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14071 hardcode_libdir_separator=':'
14072 link_all_deplibs=yes
14073 export_dynamic_flag_spec='${wl}-Bexport'
14074 runpath_var='LD_RUN_PATH'
14075
14076 if test "$GCC" = yes; then
14077 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14078 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14079 else
14080 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14081 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14082 fi
14083 ;;
14084
14085 uts4*)
14086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14087 hardcode_libdir_flag_spec='-L$libdir'
14088 hardcode_shlibpath_var=no
14089 ;;
14090
14091 *)
14092 ld_shlibs=no
14093 ;;
14094 esac
14095
14096 if test x$host_vendor = xsni; then
14097 case $host in
14098 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14099 export_dynamic_flag_spec='${wl}-Blargedynsym'
14100 ;;
14101 esac
14102 fi
14103 fi
14104
cristy8b350f62009-11-15 23:12:43 +000014105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014106$as_echo "$ld_shlibs" >&6; }
14107test "$ld_shlibs" = no && can_build_shared=no
14108
14109with_gnu_ld=$with_gnu_ld
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125#
14126# Do we need to explicitly link libc?
14127#
14128case "x$archive_cmds_need_lc" in
14129x|xyes)
14130 # Assume -lc should be added
14131 archive_cmds_need_lc=yes
14132
14133 if test "$enable_shared" = yes && test "$GCC" = yes; then
14134 case $archive_cmds in
14135 *'~'*)
14136 # FIXME: we may have to deal with multi-command sequences.
14137 ;;
14138 '$CC '*)
14139 # Test whether the compiler implicitly links with -lc since on some
14140 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14141 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000014142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000014143$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000014144if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
14145 $as_echo_n "(cached) " >&6
14146else
14147 $RM conftest*
14148 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014149
cristyfd9dcd42010-08-08 18:07:02 +000014150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014151 (eval $ac_compile) 2>&5
14152 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14154 test $ac_status = 0; } 2>conftest.err; then
cristyfd9dcd42010-08-08 18:07:02 +000014155 soname=conftest
14156 lib=conftest
14157 libobjs=conftest.$ac_objext
14158 deplibs=
14159 wl=$lt_prog_compiler_wl
14160 pic_flag=$lt_prog_compiler_pic
14161 compiler_flags=-v
14162 linker_flags=-v
14163 verstring=
14164 output_objdir=.
14165 libname=conftest
14166 lt_save_allow_undefined_flag=$allow_undefined_flag
14167 allow_undefined_flag=
14168 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 +000014169 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14170 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14172 test $ac_status = 0; }
cristyfd9dcd42010-08-08 18:07:02 +000014173 then
14174 lt_cv_archive_cmds_need_lc=no
14175 else
14176 lt_cv_archive_cmds_need_lc=yes
14177 fi
14178 allow_undefined_flag=$lt_save_allow_undefined_flag
14179 else
14180 cat conftest.err 1>&5
14181 fi
14182 $RM conftest*
14183
14184fi
14185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14186$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14187 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy3ed852e2009-09-05 21:47:34 +000014188 ;;
14189 esac
14190 fi
14191 ;;
14192esac
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
cristy8b350f62009-11-15 23:12:43 +000014350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000014351$as_echo_n "checking dynamic linker characteristics... " >&6; }
14352
14353if test "$GCC" = yes; then
14354 case $host_os in
14355 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14356 *) lt_awk_arg="/^libraries:/" ;;
14357 esac
cristyfd9dcd42010-08-08 18:07:02 +000014358 case $host_os in
14359 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14360 *) lt_sed_strip_eq="s,=/,/,g" ;;
14361 esac
14362 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14363 case $lt_search_path_spec in
14364 *\;*)
cristy3ed852e2009-09-05 21:47:34 +000014365 # if the path contains ";" then we assume it to be the separator
14366 # otherwise default to the standard path separator (i.e. ":") - it is
14367 # assumed that no part of a normal pathname contains ";" but that should
14368 # okay in the real world where ";" in dirpaths is itself problematic.
cristyfd9dcd42010-08-08 18:07:02 +000014369 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14370 ;;
14371 *)
14372 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14373 ;;
14374 esac
cristy3ed852e2009-09-05 21:47:34 +000014375 # Ok, now we have the path, separated by spaces, we can step through it
14376 # and add multilib dir if necessary.
14377 lt_tmp_lt_search_path_spec=
14378 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14379 for lt_sys_path in $lt_search_path_spec; do
14380 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14381 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14382 else
14383 test -d "$lt_sys_path" && \
14384 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14385 fi
14386 done
cristyfd9dcd42010-08-08 18:07:02 +000014387 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy3ed852e2009-09-05 21:47:34 +000014388BEGIN {RS=" "; FS="/|\n";} {
14389 lt_foo="";
14390 lt_count=0;
14391 for (lt_i = NF; lt_i > 0; lt_i--) {
14392 if ($lt_i != "" && $lt_i != ".") {
14393 if ($lt_i == "..") {
14394 lt_count++;
14395 } else {
14396 if (lt_count == 0) {
14397 lt_foo="/" $lt_i lt_foo;
14398 } else {
14399 lt_count--;
14400 }
14401 }
14402 }
14403 }
14404 if (lt_foo != "") { lt_freq[lt_foo]++; }
14405 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14406}'`
cristyfd9dcd42010-08-08 18:07:02 +000014407 # AWK program above erroneously prepends '/' to C:/dos/paths
14408 # for these hosts.
14409 case $host_os in
14410 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14411 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14412 esac
14413 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy3ed852e2009-09-05 21:47:34 +000014414else
14415 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14416fi
14417library_names_spec=
14418libname_spec='lib$name'
14419soname_spec=
14420shrext_cmds=".so"
14421postinstall_cmds=
14422postuninstall_cmds=
14423finish_cmds=
14424finish_eval=
14425shlibpath_var=
14426shlibpath_overrides_runpath=unknown
14427version_type=none
14428dynamic_linker="$host_os ld.so"
14429sys_lib_dlsearch_path_spec="/lib /usr/lib"
14430need_lib_prefix=unknown
14431hardcode_into_libs=no
14432
14433# when you set need_version to no, make sure it does not cause -set_version
14434# flags to be left without arguments
14435need_version=unknown
14436
14437case $host_os in
14438aix3*)
14439 version_type=linux
14440 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14441 shlibpath_var=LIBPATH
14442
14443 # AIX 3 has no versioning support, so we append a major version to the name.
14444 soname_spec='${libname}${release}${shared_ext}$major'
14445 ;;
14446
14447aix[4-9]*)
14448 version_type=linux
14449 need_lib_prefix=no
14450 need_version=no
14451 hardcode_into_libs=yes
14452 if test "$host_cpu" = ia64; then
14453 # AIX 5 supports IA64
14454 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14455 shlibpath_var=LD_LIBRARY_PATH
14456 else
14457 # With GCC up to 2.95.x, collect2 would create an import file
14458 # for dependence libraries. The import file would start with
14459 # the line `#! .'. This would cause the generated library to
14460 # depend on `.', always an invalid library. This was fixed in
14461 # development snapshots of GCC prior to 3.0.
14462 case $host_os in
14463 aix4 | aix4.[01] | aix4.[01].*)
14464 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14465 echo ' yes '
14466 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14467 :
14468 else
14469 can_build_shared=no
14470 fi
14471 ;;
14472 esac
14473 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14474 # soname into executable. Probably we can add versioning support to
14475 # collect2, so additional links can be useful in future.
14476 if test "$aix_use_runtimelinking" = yes; then
14477 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14478 # instead of lib<name>.a to let people know that these are not
14479 # typical AIX shared libraries.
14480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14481 else
14482 # We preserve .a as extension for shared libraries through AIX4.2
14483 # and later when we are not doing run time linking.
14484 library_names_spec='${libname}${release}.a $libname.a'
14485 soname_spec='${libname}${release}${shared_ext}$major'
14486 fi
14487 shlibpath_var=LIBPATH
14488 fi
14489 ;;
14490
14491amigaos*)
14492 case $host_cpu in
14493 powerpc)
14494 # Since July 2007 AmigaOS4 officially supports .so libraries.
14495 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14497 ;;
14498 m68k)
14499 library_names_spec='$libname.ixlibrary $libname.a'
14500 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristyfd9dcd42010-08-08 18:07:02 +000014501 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 +000014502 ;;
14503 esac
14504 ;;
14505
14506beos*)
14507 library_names_spec='${libname}${shared_ext}'
14508 dynamic_linker="$host_os ld.so"
14509 shlibpath_var=LIBRARY_PATH
14510 ;;
14511
14512bsdi[45]*)
14513 version_type=linux
14514 need_version=no
14515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14516 soname_spec='${libname}${release}${shared_ext}$major'
14517 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14518 shlibpath_var=LD_LIBRARY_PATH
14519 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14520 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14521 # the default ld.so.conf also contains /usr/contrib/lib and
14522 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14523 # libtool to hard-code these into programs
14524 ;;
14525
14526cygwin* | mingw* | pw32* | cegcc*)
14527 version_type=windows
14528 shrext_cmds=".dll"
14529 need_version=no
14530 need_lib_prefix=no
14531
14532 case $GCC,$host_os in
14533 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14534 library_names_spec='$libname.dll.a'
14535 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14536 postinstall_cmds='base_file=`basename \${file}`~
14537 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14538 dldir=$destdir/`dirname \$dlpath`~
14539 test -d \$dldir || mkdir -p \$dldir~
14540 $install_prog $dir/$dlname \$dldir/$dlname~
14541 chmod a+x \$dldir/$dlname~
14542 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14543 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14544 fi'
14545 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14546 dlpath=$dir/\$dldll~
14547 $RM \$dlpath'
14548 shlibpath_overrides_runpath=yes
14549
14550 case $host_os in
14551 cygwin*)
14552 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14553 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristyfd9dcd42010-08-08 18:07:02 +000014554
14555 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy3ed852e2009-09-05 21:47:34 +000014556 ;;
14557 mingw* | cegcc*)
14558 # MinGW DLLs use traditional 'lib' prefix
14559 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy3ed852e2009-09-05 21:47:34 +000014560 ;;
14561 pw32*)
14562 # pw32 DLLs use 'pw' prefix rather than 'lib'
14563 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14564 ;;
14565 esac
14566 ;;
14567
14568 *)
14569 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14570 ;;
14571 esac
14572 dynamic_linker='Win32 ld.exe'
14573 # FIXME: first we should search . and the directory the executable is in
14574 shlibpath_var=PATH
14575 ;;
14576
14577darwin* | rhapsody*)
14578 dynamic_linker="$host_os dyld"
14579 version_type=darwin
14580 need_lib_prefix=no
14581 need_version=no
14582 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14583 soname_spec='${libname}${release}${major}$shared_ext'
14584 shlibpath_overrides_runpath=yes
14585 shlibpath_var=DYLD_LIBRARY_PATH
14586 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14587
14588 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14589 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14590 ;;
14591
14592dgux*)
14593 version_type=linux
14594 need_lib_prefix=no
14595 need_version=no
14596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14597 soname_spec='${libname}${release}${shared_ext}$major'
14598 shlibpath_var=LD_LIBRARY_PATH
14599 ;;
14600
14601freebsd1*)
14602 dynamic_linker=no
14603 ;;
14604
14605freebsd* | dragonfly*)
14606 # DragonFly does not have aout. When/if they implement a new
14607 # versioning mechanism, adjust this.
14608 if test -x /usr/bin/objformat; then
14609 objformat=`/usr/bin/objformat`
14610 else
14611 case $host_os in
14612 freebsd[123]*) objformat=aout ;;
14613 *) objformat=elf ;;
14614 esac
14615 fi
14616 version_type=freebsd-$objformat
14617 case $version_type in
14618 freebsd-elf*)
14619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14620 need_version=no
14621 need_lib_prefix=no
14622 ;;
14623 freebsd-*)
14624 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14625 need_version=yes
14626 ;;
14627 esac
14628 shlibpath_var=LD_LIBRARY_PATH
14629 case $host_os in
14630 freebsd2*)
14631 shlibpath_overrides_runpath=yes
14632 ;;
14633 freebsd3.[01]* | freebsdelf3.[01]*)
14634 shlibpath_overrides_runpath=yes
14635 hardcode_into_libs=yes
14636 ;;
14637 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14638 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14639 shlibpath_overrides_runpath=no
14640 hardcode_into_libs=yes
14641 ;;
14642 *) # from 4.6 on, and DragonFly
14643 shlibpath_overrides_runpath=yes
14644 hardcode_into_libs=yes
14645 ;;
14646 esac
14647 ;;
14648
14649gnu*)
14650 version_type=linux
14651 need_lib_prefix=no
14652 need_version=no
14653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14654 soname_spec='${libname}${release}${shared_ext}$major'
14655 shlibpath_var=LD_LIBRARY_PATH
14656 hardcode_into_libs=yes
14657 ;;
14658
cristyfd9dcd42010-08-08 18:07:02 +000014659haiku*)
14660 version_type=linux
14661 need_lib_prefix=no
14662 need_version=no
14663 dynamic_linker="$host_os runtime_loader"
14664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14665 soname_spec='${libname}${release}${shared_ext}$major'
14666 shlibpath_var=LIBRARY_PATH
14667 shlibpath_overrides_runpath=yes
14668 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14669 hardcode_into_libs=yes
14670 ;;
14671
cristy3ed852e2009-09-05 21:47:34 +000014672hpux9* | hpux10* | hpux11*)
14673 # Give a soname corresponding to the major version so that dld.sl refuses to
14674 # link against other versions.
14675 version_type=sunos
14676 need_lib_prefix=no
14677 need_version=no
14678 case $host_cpu in
14679 ia64*)
14680 shrext_cmds='.so'
14681 hardcode_into_libs=yes
14682 dynamic_linker="$host_os dld.so"
14683 shlibpath_var=LD_LIBRARY_PATH
14684 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14686 soname_spec='${libname}${release}${shared_ext}$major'
14687 if test "X$HPUX_IA64_MODE" = X32; then
14688 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14689 else
14690 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14691 fi
14692 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14693 ;;
14694 hppa*64*)
14695 shrext_cmds='.sl'
14696 hardcode_into_libs=yes
14697 dynamic_linker="$host_os dld.sl"
14698 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14699 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14701 soname_spec='${libname}${release}${shared_ext}$major'
14702 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14703 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14704 ;;
14705 *)
14706 shrext_cmds='.sl'
14707 dynamic_linker="$host_os dld.sl"
14708 shlibpath_var=SHLIB_PATH
14709 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14711 soname_spec='${libname}${release}${shared_ext}$major'
14712 ;;
14713 esac
cristyfd9dcd42010-08-08 18:07:02 +000014714 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy3ed852e2009-09-05 21:47:34 +000014715 postinstall_cmds='chmod 555 $lib'
cristyfd9dcd42010-08-08 18:07:02 +000014716 # or fails outright, so override atomically:
14717 install_override_mode=555
cristy3ed852e2009-09-05 21:47:34 +000014718 ;;
14719
14720interix[3-9]*)
14721 version_type=linux
14722 need_lib_prefix=no
14723 need_version=no
14724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14725 soname_spec='${libname}${release}${shared_ext}$major'
14726 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14727 shlibpath_var=LD_LIBRARY_PATH
14728 shlibpath_overrides_runpath=no
14729 hardcode_into_libs=yes
14730 ;;
14731
14732irix5* | irix6* | nonstopux*)
14733 case $host_os in
14734 nonstopux*) version_type=nonstopux ;;
14735 *)
14736 if test "$lt_cv_prog_gnu_ld" = yes; then
14737 version_type=linux
14738 else
14739 version_type=irix
14740 fi ;;
14741 esac
14742 need_lib_prefix=no
14743 need_version=no
14744 soname_spec='${libname}${release}${shared_ext}$major'
14745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14746 case $host_os in
14747 irix5* | nonstopux*)
14748 libsuff= shlibsuff=
14749 ;;
14750 *)
14751 case $LD in # libtool.m4 will add one of these switches to LD
14752 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14753 libsuff= shlibsuff= libmagic=32-bit;;
14754 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14755 libsuff=32 shlibsuff=N32 libmagic=N32;;
14756 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14757 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14758 *) libsuff= shlibsuff= libmagic=never-match;;
14759 esac
14760 ;;
14761 esac
14762 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14763 shlibpath_overrides_runpath=no
14764 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14765 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14766 hardcode_into_libs=yes
14767 ;;
14768
14769# No shared lib support for Linux oldld, aout, or coff.
14770linux*oldld* | linux*aout* | linux*coff*)
14771 dynamic_linker=no
14772 ;;
14773
14774# This must be Linux ELF.
cristyfd9dcd42010-08-08 18:07:02 +000014775linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000014776 version_type=linux
14777 need_lib_prefix=no
14778 need_version=no
14779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14780 soname_spec='${libname}${release}${shared_ext}$major'
14781 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14782 shlibpath_var=LD_LIBRARY_PATH
14783 shlibpath_overrides_runpath=no
cristyfd9dcd42010-08-08 18:07:02 +000014784
cristy3ed852e2009-09-05 21:47:34 +000014785 # Some binutils ld are patched to set DT_RUNPATH
cristyfd9dcd42010-08-08 18:07:02 +000014786 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14787 $as_echo_n "(cached) " >&6
14788else
14789 lt_cv_shlibpath_overrides_runpath=no
14790 save_LDFLAGS=$LDFLAGS
14791 save_libdir=$libdir
14792 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14793 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014795/* end confdefs.h. */
14796
14797int
14798main ()
14799{
14800
14801 ;
14802 return 0;
14803}
14804_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014805if ac_fn_c_try_link "$LINENO"; then :
14806 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristyfd9dcd42010-08-08 18:07:02 +000014807 lt_cv_shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000014808fi
cristy3ed852e2009-09-05 21:47:34 +000014809fi
cristy8b350f62009-11-15 23:12:43 +000014810rm -f core conftest.err conftest.$ac_objext \
14811 conftest$ac_exeext conftest.$ac_ext
cristyfd9dcd42010-08-08 18:07:02 +000014812 LDFLAGS=$save_LDFLAGS
14813 libdir=$save_libdir
14814
14815fi
14816
14817 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy3ed852e2009-09-05 21:47:34 +000014818
14819 # This implies no fast_install, which is unacceptable.
14820 # Some rework will be needed to allow for fast_install
14821 # before this can be enabled.
14822 hardcode_into_libs=yes
14823
cristy679ed8e2009-12-05 02:37:41 +000014824 # Add ABI-specific directories to the system library path.
14825 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14826
cristy3ed852e2009-09-05 21:47:34 +000014827 # Append ld.so.conf contents to the search path
14828 if test -f /etc/ld.so.conf; then
cristyfd9dcd42010-08-08 18:07:02 +000014829 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 +000014830 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristyfd9dcd42010-08-08 18:07:02 +000014831
cristy3ed852e2009-09-05 21:47:34 +000014832 fi
14833
14834 # We used to test for /lib/ld.so.1 and disable shared libraries on
14835 # powerpc, because MkLinux only supported shared libraries with the
14836 # GNU dynamic linker. Since this was broken with cross compilers,
14837 # most powerpc-linux boxes support dynamic linking these days and
14838 # people can always --disable-shared, the test was removed, and we
14839 # assume the GNU/Linux dynamic linker is in use.
14840 dynamic_linker='GNU/Linux ld.so'
14841 ;;
14842
14843netbsd*)
14844 version_type=sunos
14845 need_lib_prefix=no
14846 need_version=no
14847 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14849 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14850 dynamic_linker='NetBSD (a.out) ld.so'
14851 else
14852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14853 soname_spec='${libname}${release}${shared_ext}$major'
14854 dynamic_linker='NetBSD ld.elf_so'
14855 fi
14856 shlibpath_var=LD_LIBRARY_PATH
14857 shlibpath_overrides_runpath=yes
14858 hardcode_into_libs=yes
14859 ;;
14860
14861newsos6)
14862 version_type=linux
14863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14864 shlibpath_var=LD_LIBRARY_PATH
14865 shlibpath_overrides_runpath=yes
14866 ;;
14867
14868*nto* | *qnx*)
14869 version_type=qnx
14870 need_lib_prefix=no
14871 need_version=no
14872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14873 soname_spec='${libname}${release}${shared_ext}$major'
14874 shlibpath_var=LD_LIBRARY_PATH
14875 shlibpath_overrides_runpath=no
14876 hardcode_into_libs=yes
14877 dynamic_linker='ldqnx.so'
14878 ;;
14879
14880openbsd*)
14881 version_type=sunos
14882 sys_lib_dlsearch_path_spec="/usr/lib"
14883 need_lib_prefix=no
14884 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14885 case $host_os in
14886 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14887 *) need_version=no ;;
14888 esac
14889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14890 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14891 shlibpath_var=LD_LIBRARY_PATH
14892 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14893 case $host_os in
14894 openbsd2.[89] | openbsd2.[89].*)
14895 shlibpath_overrides_runpath=no
14896 ;;
14897 *)
14898 shlibpath_overrides_runpath=yes
14899 ;;
14900 esac
14901 else
14902 shlibpath_overrides_runpath=yes
14903 fi
14904 ;;
14905
14906os2*)
14907 libname_spec='$name'
14908 shrext_cmds=".dll"
14909 need_lib_prefix=no
14910 library_names_spec='$libname${shared_ext} $libname.a'
14911 dynamic_linker='OS/2 ld.exe'
14912 shlibpath_var=LIBPATH
14913 ;;
14914
14915osf3* | osf4* | osf5*)
14916 version_type=osf
14917 need_lib_prefix=no
14918 need_version=no
14919 soname_spec='${libname}${release}${shared_ext}$major'
14920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14921 shlibpath_var=LD_LIBRARY_PATH
14922 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14923 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14924 ;;
14925
14926rdos*)
14927 dynamic_linker=no
14928 ;;
14929
14930solaris*)
14931 version_type=linux
14932 need_lib_prefix=no
14933 need_version=no
14934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14935 soname_spec='${libname}${release}${shared_ext}$major'
14936 shlibpath_var=LD_LIBRARY_PATH
14937 shlibpath_overrides_runpath=yes
14938 hardcode_into_libs=yes
14939 # ldd complains unless libraries are executable
14940 postinstall_cmds='chmod +x $lib'
14941 ;;
14942
14943sunos4*)
14944 version_type=sunos
14945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14946 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14947 shlibpath_var=LD_LIBRARY_PATH
14948 shlibpath_overrides_runpath=yes
14949 if test "$with_gnu_ld" = yes; then
14950 need_lib_prefix=no
14951 fi
14952 need_version=yes
14953 ;;
14954
14955sysv4 | sysv4.3*)
14956 version_type=linux
14957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14958 soname_spec='${libname}${release}${shared_ext}$major'
14959 shlibpath_var=LD_LIBRARY_PATH
14960 case $host_vendor in
14961 sni)
14962 shlibpath_overrides_runpath=no
14963 need_lib_prefix=no
14964 runpath_var=LD_RUN_PATH
14965 ;;
14966 siemens)
14967 need_lib_prefix=no
14968 ;;
14969 motorola)
14970 need_lib_prefix=no
14971 need_version=no
14972 shlibpath_overrides_runpath=no
14973 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14974 ;;
14975 esac
14976 ;;
14977
14978sysv4*MP*)
14979 if test -d /usr/nec ;then
14980 version_type=linux
14981 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14982 soname_spec='$libname${shared_ext}.$major'
14983 shlibpath_var=LD_LIBRARY_PATH
14984 fi
14985 ;;
14986
14987sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14988 version_type=freebsd-elf
14989 need_lib_prefix=no
14990 need_version=no
14991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14992 soname_spec='${libname}${release}${shared_ext}$major'
14993 shlibpath_var=LD_LIBRARY_PATH
14994 shlibpath_overrides_runpath=yes
14995 hardcode_into_libs=yes
14996 if test "$with_gnu_ld" = yes; then
14997 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14998 else
14999 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15000 case $host_os in
15001 sco3.2v5*)
15002 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15003 ;;
15004 esac
15005 fi
15006 sys_lib_dlsearch_path_spec='/usr/lib'
15007 ;;
15008
15009tpf*)
15010 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15011 version_type=linux
15012 need_lib_prefix=no
15013 need_version=no
15014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15015 shlibpath_var=LD_LIBRARY_PATH
15016 shlibpath_overrides_runpath=no
15017 hardcode_into_libs=yes
15018 ;;
15019
15020uts4*)
15021 version_type=linux
15022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15023 soname_spec='${libname}${release}${shared_ext}$major'
15024 shlibpath_var=LD_LIBRARY_PATH
15025 ;;
15026
15027*)
15028 dynamic_linker=no
15029 ;;
15030esac
cristy8b350f62009-11-15 23:12:43 +000015031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000015032$as_echo "$dynamic_linker" >&6; }
15033test "$dynamic_linker" = no && can_build_shared=no
15034
15035variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15036if test "$GCC" = yes; then
15037 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15038fi
15039
15040if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15041 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15042fi
15043if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15044 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15045fi
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
cristyfd9dcd42010-08-08 18:07:02 +000015133
15134
15135
15136
15137
cristy8b350f62009-11-15 23:12:43 +000015138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000015139$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15140hardcode_action=
15141if test -n "$hardcode_libdir_flag_spec" ||
15142 test -n "$runpath_var" ||
15143 test "X$hardcode_automatic" = "Xyes" ; then
15144
15145 # We can hardcode non-existent directories.
15146 if test "$hardcode_direct" != no &&
15147 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15148 # have to relink, otherwise we might link with an installed library
15149 # when we should be linking with a yet-to-be-installed one
15150 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15151 test "$hardcode_minus_L" != no; then
15152 # Linking always hardcodes the temporary library directory.
15153 hardcode_action=relink
15154 else
15155 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15156 hardcode_action=immediate
15157 fi
15158else
15159 # We cannot hardcode anything, or else we can only hardcode existing
15160 # directories.
15161 hardcode_action=unsupported
15162fi
cristy8b350f62009-11-15 23:12:43 +000015163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000015164$as_echo "$hardcode_action" >&6; }
15165
15166if test "$hardcode_action" = relink ||
15167 test "$inherit_rpath" = yes; then
15168 # Fast installation is not supported
15169 enable_fast_install=no
15170elif test "$shlibpath_overrides_runpath" = yes ||
15171 test "$enable_shared" = no; then
15172 # Fast installation is not necessary
15173 enable_fast_install=needless
15174fi
15175
15176
15177
15178
15179
15180
15181 if test "x$enable_dlopen" != xyes; then
15182 enable_dlopen=unknown
15183 enable_dlopen_self=unknown
15184 enable_dlopen_self_static=unknown
15185else
15186 lt_cv_dlopen=no
15187 lt_cv_dlopen_libs=
15188
15189 case $host_os in
15190 beos*)
15191 lt_cv_dlopen="load_add_on"
15192 lt_cv_dlopen_libs=
15193 lt_cv_dlopen_self=yes
15194 ;;
15195
15196 mingw* | pw32* | cegcc*)
15197 lt_cv_dlopen="LoadLibrary"
15198 lt_cv_dlopen_libs=
15199 ;;
15200
15201 cygwin*)
15202 lt_cv_dlopen="dlopen"
15203 lt_cv_dlopen_libs=
15204 ;;
15205
15206 darwin*)
15207 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000015208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015209$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015210if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015211 $as_echo_n "(cached) " >&6
15212else
15213 ac_check_lib_save_LIBS=$LIBS
15214LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015216/* end confdefs.h. */
15217
15218/* Override any GCC internal prototype to avoid an error.
15219 Use char because int might match the return type of a GCC
15220 builtin and then its argument prototype would still apply. */
15221#ifdef __cplusplus
15222extern "C"
15223#endif
15224char dlopen ();
15225int
15226main ()
15227{
15228return dlopen ();
15229 ;
15230 return 0;
15231}
15232_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015233if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015234 ac_cv_lib_dl_dlopen=yes
15235else
cristy8b350f62009-11-15 23:12:43 +000015236 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015237fi
cristy8b350f62009-11-15 23:12:43 +000015238rm -f core conftest.err conftest.$ac_objext \
15239 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015240LIBS=$ac_check_lib_save_LIBS
15241fi
cristy8b350f62009-11-15 23:12:43 +000015242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015243$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015244if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015245 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15246else
15247
15248 lt_cv_dlopen="dyld"
15249 lt_cv_dlopen_libs=
15250 lt_cv_dlopen_self=yes
15251
15252fi
15253
15254 ;;
15255
15256 *)
cristy8b350f62009-11-15 23:12:43 +000015257 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15258if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015259 lt_cv_dlopen="shl_load"
15260else
cristy8b350f62009-11-15 23:12:43 +000015261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015262$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015263if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015264 $as_echo_n "(cached) " >&6
15265else
15266 ac_check_lib_save_LIBS=$LIBS
15267LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015269/* end confdefs.h. */
15270
15271/* Override any GCC internal prototype to avoid an error.
15272 Use char because int might match the return type of a GCC
15273 builtin and then its argument prototype would still apply. */
15274#ifdef __cplusplus
15275extern "C"
15276#endif
15277char shl_load ();
15278int
15279main ()
15280{
15281return shl_load ();
15282 ;
15283 return 0;
15284}
15285_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015286if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015287 ac_cv_lib_dld_shl_load=yes
15288else
cristy8b350f62009-11-15 23:12:43 +000015289 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000015290fi
cristy8b350f62009-11-15 23:12:43 +000015291rm -f core conftest.err conftest.$ac_objext \
15292 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015293LIBS=$ac_check_lib_save_LIBS
15294fi
cristy8b350f62009-11-15 23:12:43 +000015295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000015296$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015297if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015298 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15299else
cristy8b350f62009-11-15 23:12:43 +000015300 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15301if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015302 lt_cv_dlopen="dlopen"
15303else
cristy8b350f62009-11-15 23:12:43 +000015304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015305$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015306if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015307 $as_echo_n "(cached) " >&6
15308else
15309 ac_check_lib_save_LIBS=$LIBS
15310LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015312/* end confdefs.h. */
15313
15314/* Override any GCC internal prototype to avoid an error.
15315 Use char because int might match the return type of a GCC
15316 builtin and then its argument prototype would still apply. */
15317#ifdef __cplusplus
15318extern "C"
15319#endif
15320char dlopen ();
15321int
15322main ()
15323{
15324return dlopen ();
15325 ;
15326 return 0;
15327}
15328_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015329if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015330 ac_cv_lib_dl_dlopen=yes
15331else
cristy8b350f62009-11-15 23:12:43 +000015332 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015333fi
cristy8b350f62009-11-15 23:12:43 +000015334rm -f core conftest.err conftest.$ac_objext \
15335 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015336LIBS=$ac_check_lib_save_LIBS
15337fi
cristy8b350f62009-11-15 23:12:43 +000015338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015339$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015340if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015341 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15342else
cristy8b350f62009-11-15 23:12:43 +000015343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015344$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015345if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015346 $as_echo_n "(cached) " >&6
15347else
15348 ac_check_lib_save_LIBS=$LIBS
15349LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015351/* end confdefs.h. */
15352
15353/* Override any GCC internal prototype to avoid an error.
15354 Use char because int might match the return type of a GCC
15355 builtin and then its argument prototype would still apply. */
15356#ifdef __cplusplus
15357extern "C"
15358#endif
15359char dlopen ();
15360int
15361main ()
15362{
15363return dlopen ();
15364 ;
15365 return 0;
15366}
15367_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015368if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015369 ac_cv_lib_svld_dlopen=yes
15370else
cristy8b350f62009-11-15 23:12:43 +000015371 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015372fi
cristy8b350f62009-11-15 23:12:43 +000015373rm -f core conftest.err conftest.$ac_objext \
15374 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015375LIBS=$ac_check_lib_save_LIBS
15376fi
cristy8b350f62009-11-15 23:12:43 +000015377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015378$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015379if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015380 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15381else
cristy8b350f62009-11-15 23:12:43 +000015382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015383$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015384if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015385 $as_echo_n "(cached) " >&6
15386else
15387 ac_check_lib_save_LIBS=$LIBS
15388LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015390/* end confdefs.h. */
15391
15392/* Override any GCC internal prototype to avoid an error.
15393 Use char because int might match the return type of a GCC
15394 builtin and then its argument prototype would still apply. */
15395#ifdef __cplusplus
15396extern "C"
15397#endif
15398char dld_link ();
15399int
15400main ()
15401{
15402return dld_link ();
15403 ;
15404 return 0;
15405}
15406_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015407if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015408 ac_cv_lib_dld_dld_link=yes
15409else
cristy8b350f62009-11-15 23:12:43 +000015410 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000015411fi
cristy8b350f62009-11-15 23:12:43 +000015412rm -f core conftest.err conftest.$ac_objext \
15413 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015414LIBS=$ac_check_lib_save_LIBS
15415fi
cristy8b350f62009-11-15 23:12:43 +000015416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000015417$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015418if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015419 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15420fi
15421
15422
15423fi
15424
15425
15426fi
15427
15428
15429fi
15430
15431
15432fi
15433
15434
15435fi
15436
15437 ;;
15438 esac
15439
15440 if test "x$lt_cv_dlopen" != xno; then
15441 enable_dlopen=yes
15442 else
15443 enable_dlopen=no
15444 fi
15445
15446 case $lt_cv_dlopen in
15447 dlopen)
15448 save_CPPFLAGS="$CPPFLAGS"
15449 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15450
15451 save_LDFLAGS="$LDFLAGS"
15452 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15453
15454 save_LIBS="$LIBS"
15455 LIBS="$lt_cv_dlopen_libs $LIBS"
15456
cristy8b350f62009-11-15 23:12:43 +000015457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015458$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015459if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015460 $as_echo_n "(cached) " >&6
15461else
15462 if test "$cross_compiling" = yes; then :
15463 lt_cv_dlopen_self=cross
15464else
15465 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15466 lt_status=$lt_dlunknown
15467 cat > conftest.$ac_ext <<_LT_EOF
cristyfd9dcd42010-08-08 18:07:02 +000015468#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000015469#include "confdefs.h"
15470
15471#if HAVE_DLFCN_H
15472#include <dlfcn.h>
15473#endif
15474
15475#include <stdio.h>
15476
15477#ifdef RTLD_GLOBAL
15478# define LT_DLGLOBAL RTLD_GLOBAL
15479#else
15480# ifdef DL_GLOBAL
15481# define LT_DLGLOBAL DL_GLOBAL
15482# else
15483# define LT_DLGLOBAL 0
15484# endif
15485#endif
15486
15487/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15488 find out it does not work in some platform. */
15489#ifndef LT_DLLAZY_OR_NOW
15490# ifdef RTLD_LAZY
15491# define LT_DLLAZY_OR_NOW RTLD_LAZY
15492# else
15493# ifdef DL_LAZY
15494# define LT_DLLAZY_OR_NOW DL_LAZY
15495# else
15496# ifdef RTLD_NOW
15497# define LT_DLLAZY_OR_NOW RTLD_NOW
15498# else
15499# ifdef DL_NOW
15500# define LT_DLLAZY_OR_NOW DL_NOW
15501# else
15502# define LT_DLLAZY_OR_NOW 0
15503# endif
15504# endif
15505# endif
15506# endif
15507#endif
15508
cristyfd9dcd42010-08-08 18:07:02 +000015509/* When -fvisbility=hidden is used, assume the code has been annotated
15510 correspondingly for the symbols needed. */
15511#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15512void fnord () __attribute__((visibility("default")));
15513#endif
15514
15515void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000015516int main ()
15517{
15518 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15519 int status = $lt_dlunknown;
15520
15521 if (self)
15522 {
15523 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristyfd9dcd42010-08-08 18:07:02 +000015524 else
15525 {
15526 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15527 else puts (dlerror ());
15528 }
cristy3ed852e2009-09-05 21:47:34 +000015529 /* dlclose (self); */
15530 }
15531 else
15532 puts (dlerror ());
15533
15534 return status;
15535}
15536_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015538 (eval $ac_link) 2>&5
15539 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15541 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015542 (./conftest; exit; ) >&5 2>/dev/null
15543 lt_status=$?
15544 case x$lt_status in
15545 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15546 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15547 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15548 esac
15549 else :
15550 # compilation failed
15551 lt_cv_dlopen_self=no
15552 fi
15553fi
15554rm -fr conftest*
15555
15556
15557fi
cristy8b350f62009-11-15 23:12:43 +000015558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000015559$as_echo "$lt_cv_dlopen_self" >&6; }
15560
15561 if test "x$lt_cv_dlopen_self" = xyes; then
15562 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000015563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015564$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015565if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015566 $as_echo_n "(cached) " >&6
15567else
15568 if test "$cross_compiling" = yes; then :
15569 lt_cv_dlopen_self_static=cross
15570else
15571 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15572 lt_status=$lt_dlunknown
15573 cat > conftest.$ac_ext <<_LT_EOF
cristyfd9dcd42010-08-08 18:07:02 +000015574#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000015575#include "confdefs.h"
15576
15577#if HAVE_DLFCN_H
15578#include <dlfcn.h>
15579#endif
15580
15581#include <stdio.h>
15582
15583#ifdef RTLD_GLOBAL
15584# define LT_DLGLOBAL RTLD_GLOBAL
15585#else
15586# ifdef DL_GLOBAL
15587# define LT_DLGLOBAL DL_GLOBAL
15588# else
15589# define LT_DLGLOBAL 0
15590# endif
15591#endif
15592
15593/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15594 find out it does not work in some platform. */
15595#ifndef LT_DLLAZY_OR_NOW
15596# ifdef RTLD_LAZY
15597# define LT_DLLAZY_OR_NOW RTLD_LAZY
15598# else
15599# ifdef DL_LAZY
15600# define LT_DLLAZY_OR_NOW DL_LAZY
15601# else
15602# ifdef RTLD_NOW
15603# define LT_DLLAZY_OR_NOW RTLD_NOW
15604# else
15605# ifdef DL_NOW
15606# define LT_DLLAZY_OR_NOW DL_NOW
15607# else
15608# define LT_DLLAZY_OR_NOW 0
15609# endif
15610# endif
15611# endif
15612# endif
15613#endif
15614
cristyfd9dcd42010-08-08 18:07:02 +000015615/* When -fvisbility=hidden is used, assume the code has been annotated
15616 correspondingly for the symbols needed. */
15617#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15618void fnord () __attribute__((visibility("default")));
15619#endif
15620
15621void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000015622int main ()
15623{
15624 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15625 int status = $lt_dlunknown;
15626
15627 if (self)
15628 {
15629 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristyfd9dcd42010-08-08 18:07:02 +000015630 else
15631 {
15632 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15633 else puts (dlerror ());
15634 }
cristy3ed852e2009-09-05 21:47:34 +000015635 /* dlclose (self); */
15636 }
15637 else
15638 puts (dlerror ());
15639
15640 return status;
15641}
15642_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015644 (eval $ac_link) 2>&5
15645 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15647 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015648 (./conftest; exit; ) >&5 2>/dev/null
15649 lt_status=$?
15650 case x$lt_status in
15651 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15652 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15653 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15654 esac
15655 else :
15656 # compilation failed
15657 lt_cv_dlopen_self_static=no
15658 fi
15659fi
15660rm -fr conftest*
15661
15662
15663fi
cristy8b350f62009-11-15 23:12:43 +000015664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015665$as_echo "$lt_cv_dlopen_self_static" >&6; }
15666 fi
15667
15668 CPPFLAGS="$save_CPPFLAGS"
15669 LDFLAGS="$save_LDFLAGS"
15670 LIBS="$save_LIBS"
15671 ;;
15672 esac
15673
15674 case $lt_cv_dlopen_self in
15675 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15676 *) enable_dlopen_self=unknown ;;
15677 esac
15678
15679 case $lt_cv_dlopen_self_static in
15680 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15681 *) enable_dlopen_self_static=unknown ;;
15682 esac
15683fi
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701striplib=
15702old_striplib=
cristy8b350f62009-11-15 23:12:43 +000015703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000015704$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15705if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15706 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15707 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000015708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015709$as_echo "yes" >&6; }
15710else
15711# FIXME - insert some real tests, host_os isn't really good enough
15712 case $host_os in
15713 darwin*)
15714 if test -n "$STRIP" ; then
15715 striplib="$STRIP -x"
15716 old_striplib="$STRIP -S"
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; }
15719 else
cristy8b350f62009-11-15 23:12:43 +000015720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015721$as_echo "no" >&6; }
15722 fi
15723 ;;
15724 *)
cristy8b350f62009-11-15 23:12:43 +000015725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015726$as_echo "no" >&6; }
15727 ;;
15728 esac
15729fi
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000015743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015744$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015746$as_echo "$can_build_shared" >&6; }
15747
cristy8b350f62009-11-15 23:12:43 +000015748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015749$as_echo_n "checking whether to build shared libraries... " >&6; }
15750 test "$can_build_shared" = "no" && enable_shared=no
15751
15752 # On AIX, shared libraries and static libraries use the same namespace, and
15753 # are all built from PIC.
15754 case $host_os in
15755 aix3*)
15756 test "$enable_shared" = yes && enable_static=no
15757 if test -n "$RANLIB"; then
15758 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15759 postinstall_cmds='$RANLIB $lib'
15760 fi
15761 ;;
15762
15763 aix[4-9]*)
15764 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15765 test "$enable_shared" = yes && enable_static=no
15766 fi
15767 ;;
15768 esac
cristy8b350f62009-11-15 23:12:43 +000015769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015770$as_echo "$enable_shared" >&6; }
15771
cristy8b350f62009-11-15 23:12:43 +000015772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015773$as_echo_n "checking whether to build static libraries... " >&6; }
15774 # Make sure either enable_shared or enable_static is yes.
15775 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000015776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015777$as_echo "$enable_static" >&6; }
15778
15779
15780
15781
15782fi
15783ac_ext=c
15784ac_cpp='$CPP $CPPFLAGS'
15785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15787ac_compiler_gnu=$ac_cv_c_compiler_gnu
15788
15789CC="$lt_save_CC"
15790
cristyfd9dcd42010-08-08 18:07:02 +000015791 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15792 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15793 (test "X$CXX" != "Xg++"))) ; then
15794 ac_ext=cpp
15795ac_cpp='$CXXCPP $CPPFLAGS'
15796ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15797ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15798ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15800$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15801if test -z "$CXXCPP"; then
15802 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
15803 $as_echo_n "(cached) " >&6
15804else
15805 # Double quotes because CXXCPP needs to be expanded
15806 for CXXCPP in "$CXX -E" "/lib/cpp"
15807 do
15808 ac_preproc_ok=false
15809for ac_cxx_preproc_warn_flag in '' yes
15810do
15811 # Use a header file that comes with gcc, so configuring glibc
15812 # with a fresh cross-compiler works.
15813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15814 # <limits.h> exists even on freestanding compilers.
15815 # On the NeXT, cc -E runs the code through the compiler's parser,
15816 # not just through cpp. "Syntax error" is here to catch this case.
15817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15818/* end confdefs.h. */
15819#ifdef __STDC__
15820# include <limits.h>
15821#else
15822# include <assert.h>
15823#endif
15824 Syntax error
15825_ACEOF
15826if ac_fn_cxx_try_cpp "$LINENO"; then :
15827
15828else
15829 # Broken: fails on valid input.
15830continue
15831fi
15832rm -f conftest.err conftest.$ac_ext
15833
15834 # OK, works on sane cases. Now check whether nonexistent headers
15835 # can be detected and how.
15836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15837/* end confdefs.h. */
15838#include <ac_nonexistent.h>
15839_ACEOF
15840if ac_fn_cxx_try_cpp "$LINENO"; then :
15841 # Broken: success on invalid input.
15842continue
15843else
15844 # Passes both tests.
15845ac_preproc_ok=:
15846break
15847fi
15848rm -f conftest.err conftest.$ac_ext
15849
15850done
15851# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15852rm -f conftest.err conftest.$ac_ext
15853if $ac_preproc_ok; then :
15854 break
15855fi
15856
15857 done
15858 ac_cv_prog_CXXCPP=$CXXCPP
15859
15860fi
15861 CXXCPP=$ac_cv_prog_CXXCPP
15862else
15863 ac_cv_prog_CXXCPP=$CXXCPP
15864fi
15865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15866$as_echo "$CXXCPP" >&6; }
15867ac_preproc_ok=false
15868for ac_cxx_preproc_warn_flag in '' yes
15869do
15870 # Use a header file that comes with gcc, so configuring glibc
15871 # with a fresh cross-compiler works.
15872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15873 # <limits.h> exists even on freestanding compilers.
15874 # On the NeXT, cc -E runs the code through the compiler's parser,
15875 # not just through cpp. "Syntax error" is here to catch this case.
15876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15877/* end confdefs.h. */
15878#ifdef __STDC__
15879# include <limits.h>
15880#else
15881# include <assert.h>
15882#endif
15883 Syntax error
15884_ACEOF
15885if ac_fn_cxx_try_cpp "$LINENO"; then :
15886
15887else
15888 # Broken: fails on valid input.
15889continue
15890fi
15891rm -f conftest.err conftest.$ac_ext
15892
15893 # OK, works on sane cases. Now check whether nonexistent headers
15894 # can be detected and how.
15895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15896/* end confdefs.h. */
15897#include <ac_nonexistent.h>
15898_ACEOF
15899if ac_fn_cxx_try_cpp "$LINENO"; then :
15900 # Broken: success on invalid input.
15901continue
15902else
15903 # Passes both tests.
15904ac_preproc_ok=:
15905break
15906fi
15907rm -f conftest.err conftest.$ac_ext
15908
15909done
15910# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15911rm -f conftest.err conftest.$ac_ext
15912if $ac_preproc_ok; then :
15913
15914else
15915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15916$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15917as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15918See \`config.log' for more details" "$LINENO" 5; }
15919fi
15920
15921ac_ext=c
15922ac_cpp='$CPP $CPPFLAGS'
15923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15925ac_compiler_gnu=$ac_cv_c_compiler_gnu
15926
15927else
15928 _lt_caught_CXX_error=yes
15929fi
cristy3ed852e2009-09-05 21:47:34 +000015930
15931ac_ext=cpp
15932ac_cpp='$CXXCPP $CPPFLAGS'
15933ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15934ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15935ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15936
15937archive_cmds_need_lc_CXX=no
15938allow_undefined_flag_CXX=
15939always_export_symbols_CXX=no
15940archive_expsym_cmds_CXX=
15941compiler_needs_object_CXX=no
15942export_dynamic_flag_spec_CXX=
15943hardcode_direct_CXX=no
15944hardcode_direct_absolute_CXX=no
15945hardcode_libdir_flag_spec_CXX=
15946hardcode_libdir_flag_spec_ld_CXX=
15947hardcode_libdir_separator_CXX=
15948hardcode_minus_L_CXX=no
15949hardcode_shlibpath_var_CXX=unsupported
15950hardcode_automatic_CXX=no
15951inherit_rpath_CXX=no
15952module_cmds_CXX=
15953module_expsym_cmds_CXX=
15954link_all_deplibs_CXX=unknown
15955old_archive_cmds_CXX=$old_archive_cmds
cristyfd9dcd42010-08-08 18:07:02 +000015956reload_flag_CXX=$reload_flag
15957reload_cmds_CXX=$reload_cmds
cristy3ed852e2009-09-05 21:47:34 +000015958no_undefined_flag_CXX=
15959whole_archive_flag_spec_CXX=
15960enable_shared_with_static_runtimes_CXX=no
15961
15962# Source file extension for C++ test sources.
15963ac_ext=cpp
15964
15965# Object file extension for compiled C++ test sources.
15966objext=o
15967objext_CXX=$objext
15968
15969# No sense in running all these tests if we already determined that
15970# the CXX compiler isn't working. Some variables (like enable_shared)
15971# are currently assumed to apply to all compilers on this platform,
15972# and will be corrupted by setting them based on a non-working compiler.
15973if test "$_lt_caught_CXX_error" != yes; then
15974 # Code to be used in simple compile tests
15975 lt_simple_compile_test_code="int some_variable = 0;"
15976
15977 # Code to be used in simple link tests
15978 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15979
15980 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15981
15982
15983
15984
15985
15986
15987# If no C compiler was specified, use CC.
15988LTCC=${LTCC-"$CC"}
15989
15990# If no C compiler flags were specified, use CFLAGS.
15991LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15992
15993# Allow CC to be a program name with arguments.
15994compiler=$CC
15995
15996
15997 # save warnings/boilerplate of simple test code
15998 ac_outfile=conftest.$ac_objext
15999echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16000eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16001_lt_compiler_boilerplate=`cat conftest.err`
16002$RM conftest*
16003
16004 ac_outfile=conftest.$ac_objext
16005echo "$lt_simple_link_test_code" >conftest.$ac_ext
16006eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16007_lt_linker_boilerplate=`cat conftest.err`
16008$RM -r conftest*
16009
16010
16011 # Allow CC to be a program name with arguments.
16012 lt_save_CC=$CC
16013 lt_save_LD=$LD
16014 lt_save_GCC=$GCC
16015 GCC=$GXX
16016 lt_save_with_gnu_ld=$with_gnu_ld
16017 lt_save_path_LD=$lt_cv_path_LD
16018 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16019 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16020 else
16021 $as_unset lt_cv_prog_gnu_ld
16022 fi
16023 if test -n "${lt_cv_path_LDCXX+set}"; then
16024 lt_cv_path_LD=$lt_cv_path_LDCXX
16025 else
16026 $as_unset lt_cv_path_LD
16027 fi
16028 test -z "${LDCXX+set}" || LD=$LDCXX
16029 CC=${CXX-"c++"}
16030 compiler=$CC
16031 compiler_CXX=$CC
16032 for cc_temp in $compiler""; do
16033 case $cc_temp in
16034 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16035 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16036 \-*) ;;
16037 *) break;;
16038 esac
16039done
cristyfd9dcd42010-08-08 18:07:02 +000016040cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000016041
16042
16043 if test -n "$compiler"; then
16044 # We don't want -fno-exception when compiling C++ code, so set the
16045 # no_builtin_flag separately
16046 if test "$GXX" = yes; then
16047 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16048 else
16049 lt_prog_compiler_no_builtin_flag_CXX=
16050 fi
16051
16052 if test "$GXX" = yes; then
16053 # Set up default GNU C++ configuration
16054
16055
16056
16057# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000016058if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016059 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16060else
16061 with_gnu_ld=no
16062fi
16063
16064ac_prog=ld
16065if test "$GCC" = yes; then
16066 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000016067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000016068$as_echo_n "checking for ld used by $CC... " >&6; }
16069 case $host in
16070 *-*-mingw*)
16071 # gcc leaves a trailing carriage return which upsets mingw
16072 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16073 *)
16074 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16075 esac
16076 case $ac_prog in
16077 # Accept absolute paths.
16078 [\\/]* | ?:[\\/]*)
16079 re_direlt='/[^/][^/]*/\.\./'
16080 # Canonicalize the pathname of ld
16081 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16082 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16083 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16084 done
16085 test -z "$LD" && LD="$ac_prog"
16086 ;;
16087 "")
16088 # If it fails, then pretend we aren't using GCC.
16089 ac_prog=ld
16090 ;;
16091 *)
16092 # If it is relative, then search for the first ld in PATH.
16093 with_gnu_ld=unknown
16094 ;;
16095 esac
16096elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000016097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016098$as_echo_n "checking for GNU ld... " >&6; }
16099else
cristy8b350f62009-11-15 23:12:43 +000016100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016101$as_echo_n "checking for non-GNU ld... " >&6; }
16102fi
cristy8b350f62009-11-15 23:12:43 +000016103if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016104 $as_echo_n "(cached) " >&6
16105else
16106 if test -z "$LD"; then
16107 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16108 for ac_dir in $PATH; do
16109 IFS="$lt_save_ifs"
16110 test -z "$ac_dir" && ac_dir=.
16111 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16112 lt_cv_path_LD="$ac_dir/$ac_prog"
16113 # Check to see if the program is GNU ld. I'd rather use --version,
16114 # but apparently some variants of GNU ld only accept -v.
16115 # Break only if it was the GNU/non-GNU ld that we prefer.
16116 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16117 *GNU* | *'with BFD'*)
16118 test "$with_gnu_ld" != no && break
16119 ;;
16120 *)
16121 test "$with_gnu_ld" != yes && break
16122 ;;
16123 esac
16124 fi
16125 done
16126 IFS="$lt_save_ifs"
16127else
16128 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16129fi
16130fi
16131
16132LD="$lt_cv_path_LD"
16133if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000016134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000016135$as_echo "$LD" >&6; }
16136else
cristy8b350f62009-11-15 23:12:43 +000016137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016138$as_echo "no" >&6; }
16139fi
cristyfd9dcd42010-08-08 18:07:02 +000016140test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy8b350f62009-11-15 23:12:43 +000016141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016142$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016143if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016144 $as_echo_n "(cached) " >&6
16145else
16146 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16147case `$LD -v 2>&1 </dev/null` in
16148*GNU* | *'with BFD'*)
16149 lt_cv_prog_gnu_ld=yes
16150 ;;
16151*)
16152 lt_cv_prog_gnu_ld=no
16153 ;;
16154esac
16155fi
cristy8b350f62009-11-15 23:12:43 +000016156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016157$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16158with_gnu_ld=$lt_cv_prog_gnu_ld
16159
16160
16161
16162
16163
16164
16165
16166 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16167 # archiving commands below assume that GNU ld is being used.
16168 if test "$with_gnu_ld" = yes; then
16169 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16170 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'
16171
16172 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16173 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16174
16175 # If archive_cmds runs LD, not CC, wlarc should be empty
16176 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16177 # investigate it a little bit more. (MM)
16178 wlarc='${wl}'
16179
16180 # ancient GNU ld didn't support --whole-archive et. al.
16181 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16182 $GREP 'no-whole-archive' > /dev/null; then
16183 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16184 else
16185 whole_archive_flag_spec_CXX=
16186 fi
16187 else
16188 with_gnu_ld=no
16189 wlarc=
16190
16191 # A generic and very simple default shared library creation
16192 # command for GNU C++ for the case where it uses the native
16193 # linker, instead of GNU ld. If possible, this setting should
16194 # overridden to take advantage of the native linker features on
16195 # the platform it is being used on.
16196 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16197 fi
16198
16199 # Commands to make compiler produce verbose output that lists
16200 # what "hidden" libraries, object files and flags are used when
16201 # linking a shared library.
cristyfd9dcd42010-08-08 18:07:02 +000016202 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016203
16204 else
16205 GXX=no
16206 with_gnu_ld=no
16207 wlarc=
16208 fi
16209
16210 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000016211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016212$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16213 ld_shlibs_CXX=yes
16214 case $host_os in
16215 aix3*)
16216 # FIXME: insert proper C++ library support
16217 ld_shlibs_CXX=no
16218 ;;
16219 aix[4-9]*)
16220 if test "$host_cpu" = ia64; then
16221 # On IA64, the linker does run time linking by default, so we don't
16222 # have to do anything special.
16223 aix_use_runtimelinking=no
16224 exp_sym_flag='-Bexport'
16225 no_entry_flag=""
16226 else
16227 aix_use_runtimelinking=no
16228
16229 # Test if we are trying to use run time linking or normal
16230 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16231 # need to do runtime linking.
16232 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16233 for ld_flag in $LDFLAGS; do
16234 case $ld_flag in
16235 *-brtl*)
16236 aix_use_runtimelinking=yes
16237 break
16238 ;;
16239 esac
16240 done
16241 ;;
16242 esac
16243
16244 exp_sym_flag='-bexport'
16245 no_entry_flag='-bnoentry'
16246 fi
16247
16248 # When large executables or shared objects are built, AIX ld can
16249 # have problems creating the table of contents. If linking a library
16250 # or program results in "error TOC overflow" add -mminimal-toc to
16251 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16252 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16253
16254 archive_cmds_CXX=''
16255 hardcode_direct_CXX=yes
16256 hardcode_direct_absolute_CXX=yes
16257 hardcode_libdir_separator_CXX=':'
16258 link_all_deplibs_CXX=yes
16259 file_list_spec_CXX='${wl}-f,'
16260
16261 if test "$GXX" = yes; then
16262 case $host_os in aix4.[012]|aix4.[012].*)
16263 # We only want to do this on AIX 4.2 and lower, the check
16264 # below for broken collect2 doesn't work under 4.3+
16265 collect2name=`${CC} -print-prog-name=collect2`
16266 if test -f "$collect2name" &&
16267 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16268 then
16269 # We have reworked collect2
16270 :
16271 else
16272 # We have old collect2
16273 hardcode_direct_CXX=unsupported
16274 # It fails to find uninstalled libraries when the uninstalled
16275 # path is not listed in the libpath. Setting hardcode_minus_L
16276 # to unsupported forces relinking
16277 hardcode_minus_L_CXX=yes
16278 hardcode_libdir_flag_spec_CXX='-L$libdir'
16279 hardcode_libdir_separator_CXX=
16280 fi
16281 esac
16282 shared_flag='-shared'
16283 if test "$aix_use_runtimelinking" = yes; then
16284 shared_flag="$shared_flag "'${wl}-G'
16285 fi
16286 else
16287 # not using gcc
16288 if test "$host_cpu" = ia64; then
16289 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16290 # chokes on -Wl,-G. The following line is correct:
16291 shared_flag='-G'
16292 else
16293 if test "$aix_use_runtimelinking" = yes; then
16294 shared_flag='${wl}-G'
16295 else
16296 shared_flag='${wl}-bM:SRE'
16297 fi
16298 fi
16299 fi
16300
16301 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16302 # It seems that -bexpall does not export symbols beginning with
16303 # underscore (_), so it is better to generate a list of symbols to
16304 # export.
16305 always_export_symbols_CXX=yes
16306 if test "$aix_use_runtimelinking" = yes; then
16307 # Warning - without using the other runtime loading flags (-brtl),
16308 # -berok will link without error, but may produce a broken library.
16309 allow_undefined_flag_CXX='-berok'
16310 # Determine the default libpath from the value encoded in an empty
16311 # executable.
cristy8b350f62009-11-15 23:12:43 +000016312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016313/* end confdefs.h. */
16314
16315int
16316main ()
16317{
16318
16319 ;
16320 return 0;
16321}
16322_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016323if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016324
16325lt_aix_libpath_sed='
16326 /Import File Strings/,/^$/ {
16327 /^0/ {
16328 s/^0 *\(.*\)$/\1/
16329 p
16330 }
16331 }'
16332aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16333# Check for a 64-bit object if we didn't find anything.
16334if test -z "$aix_libpath"; then
16335 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16336fi
cristy3ed852e2009-09-05 21:47:34 +000016337fi
cristy8b350f62009-11-15 23:12:43 +000016338rm -f core conftest.err conftest.$ac_objext \
16339 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016340if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16341
16342 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16343
cristyfd9dcd42010-08-08 18:07:02 +000016344 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 +000016345 else
16346 if test "$host_cpu" = ia64; then
16347 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16348 allow_undefined_flag_CXX="-z nodefs"
16349 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"
16350 else
16351 # Determine the default libpath from the value encoded in an
16352 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000016353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016354/* end confdefs.h. */
16355
16356int
16357main ()
16358{
16359
16360 ;
16361 return 0;
16362}
16363_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016364if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016365
16366lt_aix_libpath_sed='
16367 /Import File Strings/,/^$/ {
16368 /^0/ {
16369 s/^0 *\(.*\)$/\1/
16370 p
16371 }
16372 }'
16373aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16374# Check for a 64-bit object if we didn't find anything.
16375if test -z "$aix_libpath"; then
16376 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16377fi
cristy3ed852e2009-09-05 21:47:34 +000016378fi
cristy8b350f62009-11-15 23:12:43 +000016379rm -f core conftest.err conftest.$ac_objext \
16380 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016381if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16382
16383 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16384 # Warning - without using the other run time loading flags,
16385 # -berok will link without error, but may produce a broken library.
16386 no_undefined_flag_CXX=' ${wl}-bernotok'
16387 allow_undefined_flag_CXX=' ${wl}-berok'
cristyfd9dcd42010-08-08 18:07:02 +000016388 if test "$with_gnu_ld" = yes; then
16389 # We only use this code for GNU lds that support --whole-archive.
16390 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16391 else
16392 # Exported symbols can be pulled into shared objects from archives
16393 whole_archive_flag_spec_CXX='$convenience'
16394 fi
cristy3ed852e2009-09-05 21:47:34 +000016395 archive_cmds_need_lc_CXX=yes
16396 # This is similar to how AIX traditionally builds its shared
16397 # libraries.
16398 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'
16399 fi
16400 fi
16401 ;;
16402
16403 beos*)
16404 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16405 allow_undefined_flag_CXX=unsupported
16406 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16407 # support --undefined. This deserves some investigation. FIXME
16408 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16409 else
16410 ld_shlibs_CXX=no
16411 fi
16412 ;;
16413
16414 chorus*)
16415 case $cc_basename in
16416 *)
16417 # FIXME: insert proper C++ library support
16418 ld_shlibs_CXX=no
16419 ;;
16420 esac
16421 ;;
16422
16423 cygwin* | mingw* | pw32* | cegcc*)
16424 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16425 # as there is no search path for DLLs.
16426 hardcode_libdir_flag_spec_CXX='-L$libdir'
cristyfd9dcd42010-08-08 18:07:02 +000016427 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
cristy3ed852e2009-09-05 21:47:34 +000016428 allow_undefined_flag_CXX=unsupported
16429 always_export_symbols_CXX=no
16430 enable_shared_with_static_runtimes_CXX=yes
16431
16432 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16433 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'
16434 # If the export-symbols file already is a .def file (1st line
16435 # is EXPORTS), use it as is; otherwise, prepend...
16436 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16437 cp $export_symbols $output_objdir/$soname.def;
16438 else
16439 echo EXPORTS > $output_objdir/$soname.def;
16440 cat $export_symbols >> $output_objdir/$soname.def;
16441 fi~
16442 $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'
16443 else
16444 ld_shlibs_CXX=no
16445 fi
16446 ;;
16447 darwin* | rhapsody*)
16448
16449
16450 archive_cmds_need_lc_CXX=no
16451 hardcode_direct_CXX=no
16452 hardcode_automatic_CXX=yes
16453 hardcode_shlibpath_var_CXX=unsupported
cristyfd9dcd42010-08-08 18:07:02 +000016454 if test "$lt_cv_ld_force_load" = "yes"; then
16455 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\"`'
16456 else
16457 whole_archive_flag_spec_CXX=''
16458 fi
cristy3ed852e2009-09-05 21:47:34 +000016459 link_all_deplibs_CXX=yes
16460 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16461 case $cc_basename in
16462 ifort*) _lt_dar_can_shared=yes ;;
16463 *) _lt_dar_can_shared=$GCC ;;
16464 esac
16465 if test "$_lt_dar_can_shared" = "yes"; then
cristyfd9dcd42010-08-08 18:07:02 +000016466 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000016467 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}"
16468 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16469 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}"
16470 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}"
16471 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16472 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}"
16473 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}"
16474 fi
16475
16476 else
16477 ld_shlibs_CXX=no
16478 fi
16479
16480 ;;
16481
16482 dgux*)
16483 case $cc_basename in
16484 ec++*)
16485 # FIXME: insert proper C++ library support
16486 ld_shlibs_CXX=no
16487 ;;
16488 ghcx*)
16489 # Green Hills C++ Compiler
16490 # FIXME: insert proper C++ library support
16491 ld_shlibs_CXX=no
16492 ;;
16493 *)
16494 # FIXME: insert proper C++ library support
16495 ld_shlibs_CXX=no
16496 ;;
16497 esac
16498 ;;
16499
16500 freebsd[12]*)
16501 # C++ shared libraries reported to be fairly broken before
16502 # switch to ELF
16503 ld_shlibs_CXX=no
16504 ;;
16505
16506 freebsd-elf*)
16507 archive_cmds_need_lc_CXX=no
16508 ;;
16509
16510 freebsd* | dragonfly*)
16511 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16512 # conventions
16513 ld_shlibs_CXX=yes
16514 ;;
16515
16516 gnu*)
16517 ;;
16518
cristyfd9dcd42010-08-08 18:07:02 +000016519 haiku*)
16520 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16521 link_all_deplibs_CXX=yes
16522 ;;
16523
cristy3ed852e2009-09-05 21:47:34 +000016524 hpux9*)
16525 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16526 hardcode_libdir_separator_CXX=:
16527 export_dynamic_flag_spec_CXX='${wl}-E'
16528 hardcode_direct_CXX=yes
16529 hardcode_minus_L_CXX=yes # Not in the search PATH,
16530 # but as the default
16531 # location of the library.
16532
16533 case $cc_basename in
16534 CC*)
16535 # FIXME: insert proper C++ library support
16536 ld_shlibs_CXX=no
16537 ;;
16538 aCC*)
16539 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'
16540 # Commands to make compiler produce verbose output that lists
16541 # what "hidden" libraries, object files and flags are used when
16542 # linking a shared library.
16543 #
16544 # There doesn't appear to be a way to prevent this compiler from
16545 # explicitly linking system object files so we need to strip them
16546 # from the output so that they don't get included in the library
16547 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016548 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 +000016549 ;;
16550 *)
16551 if test "$GXX" = yes; then
16552 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'
16553 else
16554 # FIXME: insert proper C++ library support
16555 ld_shlibs_CXX=no
16556 fi
16557 ;;
16558 esac
16559 ;;
16560
16561 hpux10*|hpux11*)
16562 if test $with_gnu_ld = no; then
16563 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16564 hardcode_libdir_separator_CXX=:
16565
16566 case $host_cpu in
16567 hppa*64*|ia64*)
16568 ;;
16569 *)
16570 export_dynamic_flag_spec_CXX='${wl}-E'
16571 ;;
16572 esac
16573 fi
16574 case $host_cpu in
16575 hppa*64*|ia64*)
16576 hardcode_direct_CXX=no
16577 hardcode_shlibpath_var_CXX=no
16578 ;;
16579 *)
16580 hardcode_direct_CXX=yes
16581 hardcode_direct_absolute_CXX=yes
16582 hardcode_minus_L_CXX=yes # Not in the search PATH,
16583 # but as the default
16584 # location of the library.
16585 ;;
16586 esac
16587
16588 case $cc_basename in
16589 CC*)
16590 # FIXME: insert proper C++ library support
16591 ld_shlibs_CXX=no
16592 ;;
16593 aCC*)
16594 case $host_cpu in
16595 hppa*64*)
16596 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16597 ;;
16598 ia64*)
16599 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16600 ;;
16601 *)
16602 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16603 ;;
16604 esac
16605 # Commands to make compiler produce verbose output that lists
16606 # what "hidden" libraries, object files and flags are used when
16607 # linking a shared library.
16608 #
16609 # There doesn't appear to be a way to prevent this compiler from
16610 # explicitly linking system object files so we need to strip them
16611 # from the output so that they don't get included in the library
16612 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016613 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 +000016614 ;;
16615 *)
16616 if test "$GXX" = yes; then
16617 if test $with_gnu_ld = no; then
16618 case $host_cpu in
16619 hppa*64*)
16620 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16621 ;;
16622 ia64*)
16623 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16624 ;;
16625 *)
16626 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'
16627 ;;
16628 esac
16629 fi
16630 else
16631 # FIXME: insert proper C++ library support
16632 ld_shlibs_CXX=no
16633 fi
16634 ;;
16635 esac
16636 ;;
16637
16638 interix[3-9]*)
16639 hardcode_direct_CXX=no
16640 hardcode_shlibpath_var_CXX=no
16641 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16642 export_dynamic_flag_spec_CXX='${wl}-E'
16643 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16644 # Instead, shared libraries are loaded at an image base (0x10000000 by
16645 # default) and relocated if they conflict, which is a slow very memory
16646 # consuming and fragmenting process. To avoid this, we pick a random,
16647 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16648 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16649 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'
16650 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'
16651 ;;
16652 irix5* | irix6*)
16653 case $cc_basename in
16654 CC*)
16655 # SGI C++
cristyfd9dcd42010-08-08 18:07:02 +000016656 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 +000016657
16658 # Archives containing C++ object files must be created using
16659 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16660 # necessary to make sure instantiated templates are included
16661 # in the archive.
16662 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16663 ;;
16664 *)
16665 if test "$GXX" = yes; then
16666 if test "$with_gnu_ld" = no; then
cristyfd9dcd42010-08-08 18:07:02 +000016667 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 +000016668 else
cristyfd9dcd42010-08-08 18:07:02 +000016669 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 +000016670 fi
16671 fi
16672 link_all_deplibs_CXX=yes
16673 ;;
16674 esac
16675 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16676 hardcode_libdir_separator_CXX=:
16677 inherit_rpath_CXX=yes
16678 ;;
16679
cristyfd9dcd42010-08-08 18:07:02 +000016680 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016681 case $cc_basename in
16682 KCC*)
16683 # Kuck and Associates, Inc. (KAI) C++ Compiler
16684
16685 # KCC will only create a shared library if the output file
16686 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16687 # to its proper name (with version) after linking.
16688 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'
16689 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'
16690 # Commands to make compiler produce verbose output that lists
16691 # what "hidden" libraries, object files and flags are used when
16692 # linking a shared library.
16693 #
16694 # There doesn't appear to be a way to prevent this compiler from
16695 # explicitly linking system object files so we need to strip them
16696 # from the output so that they don't get included in the library
16697 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016698 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 +000016699
16700 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16701 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16702
16703 # Archives containing C++ object files must be created using
16704 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16705 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16706 ;;
16707 icpc* | ecpc* )
16708 # Intel C++
16709 with_gnu_ld=yes
16710 # version 8.0 and above of icpc choke on multiply defined symbols
16711 # if we add $predep_objects and $postdep_objects, however 7.1 and
16712 # earlier do not add the objects themselves.
16713 case `$CC -V 2>&1` in
16714 *"Version 7."*)
16715 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16716 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'
16717 ;;
16718 *) # Version 8.0 or newer
16719 tmp_idyn=
16720 case $host_cpu in
16721 ia64*) tmp_idyn=' -i_dynamic';;
16722 esac
16723 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16724 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'
16725 ;;
16726 esac
16727 archive_cmds_need_lc_CXX=no
16728 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16729 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16730 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16731 ;;
16732 pgCC* | pgcpp*)
16733 # Portland Group C++ compiler
16734 case `$CC -V` in
cristyfd9dcd42010-08-08 18:07:02 +000016735 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy3ed852e2009-09-05 21:47:34 +000016736 prelink_cmds_CXX='tpldir=Template.dir~
16737 rm -rf $tpldir~
16738 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristyfd9dcd42010-08-08 18:07:02 +000016739 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy3ed852e2009-09-05 21:47:34 +000016740 old_archive_cmds_CXX='tpldir=Template.dir~
16741 rm -rf $tpldir~
16742 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristyfd9dcd42010-08-08 18:07:02 +000016743 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy3ed852e2009-09-05 21:47:34 +000016744 $RANLIB $oldlib'
16745 archive_cmds_CXX='tpldir=Template.dir~
16746 rm -rf $tpldir~
16747 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristyfd9dcd42010-08-08 18:07:02 +000016748 $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 +000016749 archive_expsym_cmds_CXX='tpldir=Template.dir~
16750 rm -rf $tpldir~
16751 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristyfd9dcd42010-08-08 18:07:02 +000016752 $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 +000016753 ;;
cristyfd9dcd42010-08-08 18:07:02 +000016754 *) # Version 6 and above use weak symbols
cristy3ed852e2009-09-05 21:47:34 +000016755 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16756 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'
16757 ;;
16758 esac
16759
16760 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16761 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristyfd9dcd42010-08-08 18:07:02 +000016762 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 +000016763 ;;
16764 cxx*)
16765 # Compaq C++
16766 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16767 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'
16768
16769 runpath_var=LD_RUN_PATH
16770 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16771 hardcode_libdir_separator_CXX=:
16772
16773 # Commands to make compiler produce verbose output that lists
16774 # what "hidden" libraries, object files and flags are used when
16775 # linking a shared library.
16776 #
16777 # There doesn't appear to be a way to prevent this compiler from
16778 # explicitly linking system object files so we need to strip them
16779 # from the output so that they don't get included in the library
16780 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016781 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 +000016782 ;;
cristyfd9dcd42010-08-08 18:07:02 +000016783 xl* | mpixl* | bgxl*)
cristy3ed852e2009-09-05 21:47:34 +000016784 # IBM XL 8.0 on PPC, with GNU ld
16785 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16786 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16787 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16788 if test "x$supports_anon_versioning" = xyes; then
16789 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16790 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16791 echo "local: *; };" >> $output_objdir/$libname.ver~
16792 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16793 fi
16794 ;;
16795 *)
16796 case `$CC -V 2>&1 | sed 5q` in
16797 *Sun\ C*)
16798 # Sun C++ 5.9
16799 no_undefined_flag_CXX=' -zdefs'
16800 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16801 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'
16802 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristyfd9dcd42010-08-08 18:07:02 +000016803 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 +000016804 compiler_needs_object_CXX=yes
16805
16806 # Not sure whether something based on
16807 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16808 # would be better.
cristyfd9dcd42010-08-08 18:07:02 +000016809 output_verbose_link_cmd='func_echo_all'
cristy3ed852e2009-09-05 21:47:34 +000016810
16811 # Archives containing C++ object files must be created using
16812 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16813 # necessary to make sure instantiated templates are included
16814 # in the archive.
16815 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16816 ;;
16817 esac
16818 ;;
16819 esac
16820 ;;
16821
16822 lynxos*)
16823 # FIXME: insert proper C++ library support
16824 ld_shlibs_CXX=no
16825 ;;
16826
16827 m88k*)
16828 # FIXME: insert proper C++ library support
16829 ld_shlibs_CXX=no
16830 ;;
16831
16832 mvs*)
16833 case $cc_basename in
16834 cxx*)
16835 # FIXME: insert proper C++ library support
16836 ld_shlibs_CXX=no
16837 ;;
16838 *)
16839 # FIXME: insert proper C++ library support
16840 ld_shlibs_CXX=no
16841 ;;
16842 esac
16843 ;;
16844
16845 netbsd*)
16846 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16847 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16848 wlarc=
16849 hardcode_libdir_flag_spec_CXX='-R$libdir'
16850 hardcode_direct_CXX=yes
16851 hardcode_shlibpath_var_CXX=no
16852 fi
16853 # Workaround some broken pre-1.5 toolchains
16854 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16855 ;;
16856
16857 *nto* | *qnx*)
16858 ld_shlibs_CXX=yes
16859 ;;
16860
16861 openbsd2*)
16862 # C++ shared libraries are fairly broken
16863 ld_shlibs_CXX=no
16864 ;;
16865
16866 openbsd*)
16867 if test -f /usr/libexec/ld.so; then
16868 hardcode_direct_CXX=yes
16869 hardcode_shlibpath_var_CXX=no
16870 hardcode_direct_absolute_CXX=yes
16871 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16872 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16873 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16874 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16875 export_dynamic_flag_spec_CXX='${wl}-E'
16876 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16877 fi
cristyfd9dcd42010-08-08 18:07:02 +000016878 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000016879 else
16880 ld_shlibs_CXX=no
16881 fi
16882 ;;
16883
16884 osf3* | osf4* | osf5*)
16885 case $cc_basename in
16886 KCC*)
16887 # Kuck and Associates, Inc. (KAI) C++ Compiler
16888
16889 # KCC will only create a shared library if the output file
16890 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16891 # to its proper name (with version) after linking.
16892 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'
16893
16894 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16895 hardcode_libdir_separator_CXX=:
16896
16897 # Archives containing C++ object files must be created using
16898 # the KAI C++ compiler.
16899 case $host in
16900 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16901 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16902 esac
16903 ;;
16904 RCC*)
16905 # Rational C++ 2.4.1
16906 # FIXME: insert proper C++ library support
16907 ld_shlibs_CXX=no
16908 ;;
16909 cxx*)
16910 case $host in
16911 osf3*)
16912 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristyfd9dcd42010-08-08 18:07:02 +000016913 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 +000016914 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16915 ;;
16916 *)
16917 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristyfd9dcd42010-08-08 18:07:02 +000016918 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 +000016919 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16920 echo "-hidden">> $lib.exp~
cristyfd9dcd42010-08-08 18:07:02 +000016921 $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 +000016922 $RM $lib.exp'
16923 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16924 ;;
16925 esac
16926
16927 hardcode_libdir_separator_CXX=:
16928
16929 # Commands to make compiler produce verbose output that lists
16930 # what "hidden" libraries, object files and flags are used when
16931 # linking a shared library.
16932 #
16933 # There doesn't appear to be a way to prevent this compiler from
16934 # explicitly linking system object files so we need to strip them
16935 # from the output so that they don't get included in the library
16936 # dependencies.
cristyfd9dcd42010-08-08 18:07:02 +000016937 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 +000016938 ;;
16939 *)
16940 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16941 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16942 case $host in
16943 osf3*)
cristyfd9dcd42010-08-08 18:07:02 +000016944 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 +000016945 ;;
16946 *)
cristyfd9dcd42010-08-08 18:07:02 +000016947 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 +000016948 ;;
16949 esac
16950
16951 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16952 hardcode_libdir_separator_CXX=:
16953
16954 # Commands to make compiler produce verbose output that lists
16955 # what "hidden" libraries, object files and flags are used when
16956 # linking a shared library.
cristyfd9dcd42010-08-08 18:07:02 +000016957 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016958
16959 else
16960 # FIXME: insert proper C++ library support
16961 ld_shlibs_CXX=no
16962 fi
16963 ;;
16964 esac
16965 ;;
16966
16967 psos*)
16968 # FIXME: insert proper C++ library support
16969 ld_shlibs_CXX=no
16970 ;;
16971
16972 sunos4*)
16973 case $cc_basename in
16974 CC*)
16975 # Sun C++ 4.x
16976 # FIXME: insert proper C++ library support
16977 ld_shlibs_CXX=no
16978 ;;
16979 lcc*)
16980 # Lucid
16981 # FIXME: insert proper C++ library support
16982 ld_shlibs_CXX=no
16983 ;;
16984 *)
16985 # FIXME: insert proper C++ library support
16986 ld_shlibs_CXX=no
16987 ;;
16988 esac
16989 ;;
16990
16991 solaris*)
16992 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000016993 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000016994 # Sun C++ 4.2, 5.x and Centerline C++
16995 archive_cmds_need_lc_CXX=yes
16996 no_undefined_flag_CXX=' -zdefs'
16997 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16998 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16999 $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'
17000
17001 hardcode_libdir_flag_spec_CXX='-R$libdir'
17002 hardcode_shlibpath_var_CXX=no
17003 case $host_os in
17004 solaris2.[0-5] | solaris2.[0-5].*) ;;
17005 *)
17006 # The compiler driver will combine and reorder linker options,
17007 # but understands `-z linker_flag'.
17008 # Supported since Solaris 2.6 (maybe 2.5.1?)
17009 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17010 ;;
17011 esac
17012 link_all_deplibs_CXX=yes
17013
cristyfd9dcd42010-08-08 18:07:02 +000017014 output_verbose_link_cmd='func_echo_all'
cristy3ed852e2009-09-05 21:47:34 +000017015
17016 # Archives containing C++ object files must be created using
17017 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17018 # necessary to make sure instantiated templates are included
17019 # in the archive.
17020 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17021 ;;
17022 gcx*)
17023 # Green Hills C++ Compiler
17024 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17025
17026 # The C++ compiler must be used to create the archive.
17027 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17028 ;;
17029 *)
17030 # GNU C++ compiler with Solaris linker
17031 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17032 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17033 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17034 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17035 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17036 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17037
17038 # Commands to make compiler produce verbose output that lists
17039 # what "hidden" libraries, object files and flags are used when
17040 # linking a shared library.
cristyfd9dcd42010-08-08 18:07:02 +000017041 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017042 else
17043 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17044 # platform.
17045 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17046 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17047 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17048
17049 # Commands to make compiler produce verbose output that lists
17050 # what "hidden" libraries, object files and flags are used when
17051 # linking a shared library.
cristyfd9dcd42010-08-08 18:07:02 +000017052 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017053 fi
17054
17055 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17056 case $host_os in
17057 solaris2.[0-5] | solaris2.[0-5].*) ;;
17058 *)
17059 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17060 ;;
17061 esac
17062 fi
17063 ;;
17064 esac
17065 ;;
17066
17067 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17068 no_undefined_flag_CXX='${wl}-z,text'
17069 archive_cmds_need_lc_CXX=no
17070 hardcode_shlibpath_var_CXX=no
17071 runpath_var='LD_RUN_PATH'
17072
17073 case $cc_basename in
17074 CC*)
17075 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17076 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17077 ;;
17078 *)
17079 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17080 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17081 ;;
17082 esac
17083 ;;
17084
17085 sysv5* | sco3.2v5* | sco5v6*)
17086 # Note: We can NOT use -z defs as we might desire, because we do not
17087 # link with -lc, and that would cause any symbols used from libc to
17088 # always be unresolved, which means just about no library would
17089 # ever link correctly. If we're not using GNU ld we use -z text
17090 # though, which does catch some bad symbols but isn't as heavy-handed
17091 # as -z defs.
17092 no_undefined_flag_CXX='${wl}-z,text'
17093 allow_undefined_flag_CXX='${wl}-z,nodefs'
17094 archive_cmds_need_lc_CXX=no
17095 hardcode_shlibpath_var_CXX=no
17096 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17097 hardcode_libdir_separator_CXX=':'
17098 link_all_deplibs_CXX=yes
17099 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17100 runpath_var='LD_RUN_PATH'
17101
17102 case $cc_basename in
17103 CC*)
17104 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17105 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 +000017106 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17107 '"$old_archive_cmds_CXX"
17108 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17109 '"$reload_cmds_CXX"
cristy3ed852e2009-09-05 21:47:34 +000017110 ;;
17111 *)
17112 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17113 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17114 ;;
17115 esac
17116 ;;
17117
17118 tandem*)
17119 case $cc_basename in
17120 NCC*)
17121 # NonStop-UX NCC 3.20
17122 # FIXME: insert proper C++ library support
17123 ld_shlibs_CXX=no
17124 ;;
17125 *)
17126 # FIXME: insert proper C++ library support
17127 ld_shlibs_CXX=no
17128 ;;
17129 esac
17130 ;;
17131
17132 vxworks*)
17133 # FIXME: insert proper C++ library support
17134 ld_shlibs_CXX=no
17135 ;;
17136
17137 *)
17138 # FIXME: insert proper C++ library support
17139 ld_shlibs_CXX=no
17140 ;;
17141 esac
17142
cristy8b350f62009-11-15 23:12:43 +000017143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017144$as_echo "$ld_shlibs_CXX" >&6; }
17145 test "$ld_shlibs_CXX" = no && can_build_shared=no
17146
17147 GCC_CXX="$GXX"
17148 LD_CXX="$LD"
17149
17150 ## CAVEAT EMPTOR:
17151 ## There is no encapsulation within the following macros, do not change
17152 ## the running order or otherwise move them around unless you know exactly
17153 ## what you are doing...
17154 # Dependencies to place before and after the object being linked:
17155predep_objects_CXX=
17156postdep_objects_CXX=
17157predeps_CXX=
17158postdeps_CXX=
17159compiler_lib_search_path_CXX=
17160
17161cat > conftest.$ac_ext <<_LT_EOF
17162class Foo
17163{
17164public:
17165 Foo (void) { a = 0; }
17166private:
17167 int a;
17168};
17169_LT_EOF
17170
cristy8b350f62009-11-15 23:12:43 +000017171if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017172 (eval $ac_compile) 2>&5
17173 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17175 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000017176 # Parse the compiler output and extract the necessary
17177 # objects, libraries and library flags.
17178
17179 # Sentinel used to keep track of whether or not we are before
17180 # the conftest object file.
17181 pre_test_object_deps_done=no
17182
17183 for p in `eval "$output_verbose_link_cmd"`; do
17184 case $p in
17185
17186 -L* | -R* | -l*)
17187 # Some compilers place space between "-{L,R}" and the path.
17188 # Remove the space.
17189 if test $p = "-L" ||
17190 test $p = "-R"; then
17191 prev=$p
17192 continue
17193 else
17194 prev=
17195 fi
17196
17197 if test "$pre_test_object_deps_done" = no; then
17198 case $p in
17199 -L* | -R*)
17200 # Internal compiler library paths should come after those
17201 # provided the user. The postdeps already come after the
17202 # user supplied libs so there is no need to process them.
17203 if test -z "$compiler_lib_search_path_CXX"; then
17204 compiler_lib_search_path_CXX="${prev}${p}"
17205 else
17206 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17207 fi
17208 ;;
17209 # The "-l" case would never come before the object being
17210 # linked, so don't bother handling this case.
17211 esac
17212 else
17213 if test -z "$postdeps_CXX"; then
17214 postdeps_CXX="${prev}${p}"
17215 else
17216 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17217 fi
17218 fi
17219 ;;
17220
17221 *.$objext)
17222 # This assumes that the test object file only shows up
17223 # once in the compiler output.
17224 if test "$p" = "conftest.$objext"; then
17225 pre_test_object_deps_done=yes
17226 continue
17227 fi
17228
17229 if test "$pre_test_object_deps_done" = no; then
17230 if test -z "$predep_objects_CXX"; then
17231 predep_objects_CXX="$p"
17232 else
17233 predep_objects_CXX="$predep_objects_CXX $p"
17234 fi
17235 else
17236 if test -z "$postdep_objects_CXX"; then
17237 postdep_objects_CXX="$p"
17238 else
17239 postdep_objects_CXX="$postdep_objects_CXX $p"
17240 fi
17241 fi
17242 ;;
17243
17244 *) ;; # Ignore the rest.
17245
17246 esac
17247 done
17248
17249 # Clean up.
17250 rm -f a.out a.exe
17251else
17252 echo "libtool.m4: error: problem compiling CXX test program"
17253fi
17254
17255$RM -f confest.$objext
17256
17257# PORTME: override above test on systems where it is broken
17258case $host_os in
17259interix[3-9]*)
17260 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17261 # hack all around it, let's just trust "g++" to DTRT.
17262 predep_objects_CXX=
17263 postdep_objects_CXX=
17264 postdeps_CXX=
17265 ;;
17266
17267linux*)
17268 case `$CC -V 2>&1 | sed 5q` in
17269 *Sun\ C*)
17270 # Sun C++ 5.9
17271
17272 # The more standards-conforming stlport4 library is
17273 # incompatible with the Cstd library. Avoid specifying
17274 # it if it's in CXXFLAGS. Ignore libCrun as
17275 # -library=stlport4 depends on it.
17276 case " $CXX $CXXFLAGS " in
17277 *" -library=stlport4 "*)
17278 solaris_use_stlport4=yes
17279 ;;
17280 esac
17281
17282 if test "$solaris_use_stlport4" != yes; then
17283 postdeps_CXX='-library=Cstd -library=Crun'
17284 fi
17285 ;;
17286 esac
17287 ;;
17288
17289solaris*)
17290 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000017291 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000017292 # The more standards-conforming stlport4 library is
17293 # incompatible with the Cstd library. Avoid specifying
17294 # it if it's in CXXFLAGS. Ignore libCrun as
17295 # -library=stlport4 depends on it.
17296 case " $CXX $CXXFLAGS " in
17297 *" -library=stlport4 "*)
17298 solaris_use_stlport4=yes
17299 ;;
17300 esac
17301
17302 # Adding this requires a known-good setup of shared libraries for
17303 # Sun compiler versions before 5.6, else PIC objects from an old
17304 # archive will be linked into the output, leading to subtle bugs.
17305 if test "$solaris_use_stlport4" != yes; then
17306 postdeps_CXX='-library=Cstd -library=Crun'
17307 fi
17308 ;;
17309 esac
17310 ;;
17311esac
17312
17313
17314case " $postdeps_CXX " in
17315*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17316esac
17317 compiler_lib_search_dirs_CXX=
17318if test -n "${compiler_lib_search_path_CXX}"; then
17319 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17320fi
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352 lt_prog_compiler_wl_CXX=
17353lt_prog_compiler_pic_CXX=
17354lt_prog_compiler_static_CXX=
17355
cristy8b350f62009-11-15 23:12:43 +000017356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000017357$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17358
17359 # C++ specific cases for pic, static, wl, etc.
17360 if test "$GXX" = yes; then
17361 lt_prog_compiler_wl_CXX='-Wl,'
17362 lt_prog_compiler_static_CXX='-static'
17363
17364 case $host_os in
17365 aix*)
17366 # All AIX code is PIC.
17367 if test "$host_cpu" = ia64; then
17368 # AIX 5 now supports IA64 processor
17369 lt_prog_compiler_static_CXX='-Bstatic'
17370 fi
17371 ;;
17372
17373 amigaos*)
17374 case $host_cpu in
17375 powerpc)
17376 # see comment about AmigaOS4 .so support
17377 lt_prog_compiler_pic_CXX='-fPIC'
17378 ;;
17379 m68k)
17380 # FIXME: we need at least 68020 code to build shared libraries, but
17381 # adding the `-m68020' flag to GCC prevents building anything better,
17382 # like `-m68040'.
17383 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17384 ;;
17385 esac
17386 ;;
17387
17388 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17389 # PIC is the default for these OSes.
17390 ;;
17391 mingw* | cygwin* | os2* | pw32* | cegcc*)
17392 # This hack is so that the source file can tell whether it is being
17393 # built for inclusion in a dll (and should export symbols for example).
17394 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17395 # (--disable-auto-import) libraries
17396 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17397 ;;
17398 darwin* | rhapsody*)
17399 # PIC is the default on this platform
17400 # Common symbols not allowed in MH_DYLIB files
17401 lt_prog_compiler_pic_CXX='-fno-common'
17402 ;;
17403 *djgpp*)
17404 # DJGPP does not support shared libraries at all
17405 lt_prog_compiler_pic_CXX=
17406 ;;
cristyfd9dcd42010-08-08 18:07:02 +000017407 haiku*)
17408 # PIC is the default for Haiku.
17409 # The "-static" flag exists, but is broken.
17410 lt_prog_compiler_static_CXX=
17411 ;;
cristy3ed852e2009-09-05 21:47:34 +000017412 interix[3-9]*)
17413 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17414 # Instead, we relocate shared libraries at runtime.
17415 ;;
17416 sysv4*MP*)
17417 if test -d /usr/nec; then
17418 lt_prog_compiler_pic_CXX=-Kconform_pic
17419 fi
17420 ;;
17421 hpux*)
17422 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17423 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17424 # sets the default TLS model and affects inlining.
17425 case $host_cpu in
17426 hppa*64*)
17427 ;;
17428 *)
17429 lt_prog_compiler_pic_CXX='-fPIC'
17430 ;;
17431 esac
17432 ;;
17433 *qnx* | *nto*)
17434 # QNX uses GNU C++, but need to define -shared option too, otherwise
17435 # it will coredump.
17436 lt_prog_compiler_pic_CXX='-fPIC -shared'
17437 ;;
17438 *)
17439 lt_prog_compiler_pic_CXX='-fPIC'
17440 ;;
17441 esac
17442 else
17443 case $host_os in
17444 aix[4-9]*)
17445 # All AIX code is PIC.
17446 if test "$host_cpu" = ia64; then
17447 # AIX 5 now supports IA64 processor
17448 lt_prog_compiler_static_CXX='-Bstatic'
17449 else
17450 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17451 fi
17452 ;;
17453 chorus*)
17454 case $cc_basename in
17455 cxch68*)
17456 # Green Hills C++ Compiler
17457 # _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"
17458 ;;
17459 esac
17460 ;;
17461 dgux*)
17462 case $cc_basename in
17463 ec++*)
17464 lt_prog_compiler_pic_CXX='-KPIC'
17465 ;;
17466 ghcx*)
17467 # Green Hills C++ Compiler
17468 lt_prog_compiler_pic_CXX='-pic'
17469 ;;
17470 *)
17471 ;;
17472 esac
17473 ;;
17474 freebsd* | dragonfly*)
17475 # FreeBSD uses GNU C++
17476 ;;
17477 hpux9* | hpux10* | hpux11*)
17478 case $cc_basename in
17479 CC*)
17480 lt_prog_compiler_wl_CXX='-Wl,'
17481 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17482 if test "$host_cpu" != ia64; then
17483 lt_prog_compiler_pic_CXX='+Z'
17484 fi
17485 ;;
17486 aCC*)
17487 lt_prog_compiler_wl_CXX='-Wl,'
17488 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17489 case $host_cpu in
17490 hppa*64*|ia64*)
17491 # +Z the default
17492 ;;
17493 *)
17494 lt_prog_compiler_pic_CXX='+Z'
17495 ;;
17496 esac
17497 ;;
17498 *)
17499 ;;
17500 esac
17501 ;;
17502 interix*)
17503 # This is c89, which is MS Visual C++ (no shared libs)
17504 # Anyone wants to do a port?
17505 ;;
17506 irix5* | irix6* | nonstopux*)
17507 case $cc_basename in
17508 CC*)
17509 lt_prog_compiler_wl_CXX='-Wl,'
17510 lt_prog_compiler_static_CXX='-non_shared'
17511 # CC pic flag -KPIC is the default.
17512 ;;
17513 *)
17514 ;;
17515 esac
17516 ;;
cristyfd9dcd42010-08-08 18:07:02 +000017517 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017518 case $cc_basename in
17519 KCC*)
17520 # KAI C++ Compiler
17521 lt_prog_compiler_wl_CXX='--backend -Wl,'
17522 lt_prog_compiler_pic_CXX='-fPIC'
17523 ;;
17524 ecpc* )
17525 # old Intel C++ for x86_64 which still supported -KPIC.
17526 lt_prog_compiler_wl_CXX='-Wl,'
17527 lt_prog_compiler_pic_CXX='-KPIC'
17528 lt_prog_compiler_static_CXX='-static'
17529 ;;
17530 icpc* )
17531 # Intel C++, used to be incompatible with GCC.
17532 # ICC 10 doesn't accept -KPIC any more.
17533 lt_prog_compiler_wl_CXX='-Wl,'
17534 lt_prog_compiler_pic_CXX='-fPIC'
17535 lt_prog_compiler_static_CXX='-static'
17536 ;;
17537 pgCC* | pgcpp*)
17538 # Portland Group C++ compiler
17539 lt_prog_compiler_wl_CXX='-Wl,'
17540 lt_prog_compiler_pic_CXX='-fpic'
17541 lt_prog_compiler_static_CXX='-Bstatic'
17542 ;;
17543 cxx*)
17544 # Compaq C++
17545 # Make sure the PIC flag is empty. It appears that all Alpha
17546 # Linux and Compaq Tru64 Unix objects are PIC.
17547 lt_prog_compiler_pic_CXX=
17548 lt_prog_compiler_static_CXX='-non_shared'
17549 ;;
cristyfd9dcd42010-08-08 18:07:02 +000017550 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17551 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy3ed852e2009-09-05 21:47:34 +000017552 lt_prog_compiler_wl_CXX='-Wl,'
17553 lt_prog_compiler_pic_CXX='-qpic'
17554 lt_prog_compiler_static_CXX='-qstaticlink'
17555 ;;
17556 *)
17557 case `$CC -V 2>&1 | sed 5q` in
17558 *Sun\ C*)
17559 # Sun C++ 5.9
17560 lt_prog_compiler_pic_CXX='-KPIC'
17561 lt_prog_compiler_static_CXX='-Bstatic'
17562 lt_prog_compiler_wl_CXX='-Qoption ld '
17563 ;;
17564 esac
17565 ;;
17566 esac
17567 ;;
17568 lynxos*)
17569 ;;
17570 m88k*)
17571 ;;
17572 mvs*)
17573 case $cc_basename in
17574 cxx*)
17575 lt_prog_compiler_pic_CXX='-W c,exportall'
17576 ;;
17577 *)
17578 ;;
17579 esac
17580 ;;
17581 netbsd*)
17582 ;;
17583 *qnx* | *nto*)
17584 # QNX uses GNU C++, but need to define -shared option too, otherwise
17585 # it will coredump.
17586 lt_prog_compiler_pic_CXX='-fPIC -shared'
17587 ;;
17588 osf3* | osf4* | osf5*)
17589 case $cc_basename in
17590 KCC*)
17591 lt_prog_compiler_wl_CXX='--backend -Wl,'
17592 ;;
17593 RCC*)
17594 # Rational C++ 2.4.1
17595 lt_prog_compiler_pic_CXX='-pic'
17596 ;;
17597 cxx*)
17598 # Digital/Compaq C++
17599 lt_prog_compiler_wl_CXX='-Wl,'
17600 # Make sure the PIC flag is empty. It appears that all Alpha
17601 # Linux and Compaq Tru64 Unix objects are PIC.
17602 lt_prog_compiler_pic_CXX=
17603 lt_prog_compiler_static_CXX='-non_shared'
17604 ;;
17605 *)
17606 ;;
17607 esac
17608 ;;
17609 psos*)
17610 ;;
17611 solaris*)
17612 case $cc_basename in
cristyfd9dcd42010-08-08 18:07:02 +000017613 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000017614 # Sun C++ 4.2, 5.x and Centerline C++
17615 lt_prog_compiler_pic_CXX='-KPIC'
17616 lt_prog_compiler_static_CXX='-Bstatic'
17617 lt_prog_compiler_wl_CXX='-Qoption ld '
17618 ;;
17619 gcx*)
17620 # Green Hills C++ Compiler
17621 lt_prog_compiler_pic_CXX='-PIC'
17622 ;;
17623 *)
17624 ;;
17625 esac
17626 ;;
17627 sunos4*)
17628 case $cc_basename in
17629 CC*)
17630 # Sun C++ 4.x
17631 lt_prog_compiler_pic_CXX='-pic'
17632 lt_prog_compiler_static_CXX='-Bstatic'
17633 ;;
17634 lcc*)
17635 # Lucid
17636 lt_prog_compiler_pic_CXX='-pic'
17637 ;;
17638 *)
17639 ;;
17640 esac
17641 ;;
17642 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17643 case $cc_basename in
17644 CC*)
17645 lt_prog_compiler_wl_CXX='-Wl,'
17646 lt_prog_compiler_pic_CXX='-KPIC'
17647 lt_prog_compiler_static_CXX='-Bstatic'
17648 ;;
17649 esac
17650 ;;
17651 tandem*)
17652 case $cc_basename in
17653 NCC*)
17654 # NonStop-UX NCC 3.20
17655 lt_prog_compiler_pic_CXX='-KPIC'
17656 ;;
17657 *)
17658 ;;
17659 esac
17660 ;;
17661 vxworks*)
17662 ;;
17663 *)
17664 lt_prog_compiler_can_build_shared_CXX=no
17665 ;;
17666 esac
17667 fi
17668
17669case $host_os in
17670 # For platforms which do not support PIC, -DPIC is meaningless:
17671 *djgpp*)
17672 lt_prog_compiler_pic_CXX=
17673 ;;
17674 *)
17675 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17676 ;;
17677esac
cristy8b350f62009-11-15 23:12:43 +000017678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017679$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17680
17681
17682
17683#
17684# Check to make sure the PIC flag actually works.
17685#
17686if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000017687 { $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 +000017688$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017689if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017690 $as_echo_n "(cached) " >&6
17691else
17692 lt_cv_prog_compiler_pic_works_CXX=no
17693 ac_outfile=conftest.$ac_objext
17694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17695 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17696 # Insert the option either (1) after the last *FLAGS variable, or
17697 # (2) before a word containing "conftest.", or (3) at the end.
17698 # Note that $ac_compile itself does not contain backslashes and begins
17699 # with a dollar sign (not a hyphen), so the echo should work correctly.
17700 # The option is referenced via a variable to avoid confusing sed.
17701 lt_compile=`echo "$ac_compile" | $SED \
17702 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17704 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000017705 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017706 (eval "$lt_compile" 2>conftest.err)
17707 ac_status=$?
17708 cat conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000017709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017710 if (exit $ac_status) && test -s "$ac_outfile"; then
17711 # The compiler can only warn and ignore the option if not recognized
17712 # So say no if there are warnings other than the usual output.
cristyfd9dcd42010-08-08 18:07:02 +000017713 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17715 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17716 lt_cv_prog_compiler_pic_works_CXX=yes
17717 fi
17718 fi
17719 $RM conftest*
17720
17721fi
cristy8b350f62009-11-15 23:12:43 +000017722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017723$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17724
17725if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17726 case $lt_prog_compiler_pic_CXX in
17727 "" | " "*) ;;
17728 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17729 esac
17730else
17731 lt_prog_compiler_pic_CXX=
17732 lt_prog_compiler_can_build_shared_CXX=no
17733fi
17734
17735fi
17736
17737
17738
17739#
17740# Check to make sure the static flag actually works.
17741#
17742wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000017743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000017744$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017745if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017746 $as_echo_n "(cached) " >&6
17747else
17748 lt_cv_prog_compiler_static_works_CXX=no
17749 save_LDFLAGS="$LDFLAGS"
17750 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17751 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17752 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17753 # The linker can only warn and ignore the option if not recognized
17754 # So say no if there are warnings
17755 if test -s conftest.err; then
17756 # Append any errors to the config.log.
17757 cat conftest.err 1>&5
cristyfd9dcd42010-08-08 18:07:02 +000017758 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17760 if diff conftest.exp conftest.er2 >/dev/null; then
17761 lt_cv_prog_compiler_static_works_CXX=yes
17762 fi
17763 else
17764 lt_cv_prog_compiler_static_works_CXX=yes
17765 fi
17766 fi
17767 $RM -r conftest*
17768 LDFLAGS="$save_LDFLAGS"
17769
17770fi
cristy8b350f62009-11-15 23:12:43 +000017771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017772$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17773
17774if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17775 :
17776else
17777 lt_prog_compiler_static_CXX=
17778fi
17779
17780
17781
17782
cristy8b350f62009-11-15 23:12:43 +000017783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017784$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017785if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017786 $as_echo_n "(cached) " >&6
17787else
17788 lt_cv_prog_compiler_c_o_CXX=no
17789 $RM -r conftest 2>/dev/null
17790 mkdir conftest
17791 cd conftest
17792 mkdir out
17793 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17794
17795 lt_compiler_flag="-o out/conftest2.$ac_objext"
17796 # Insert the option either (1) after the last *FLAGS variable, or
17797 # (2) before a word containing "conftest.", or (3) at the end.
17798 # Note that $ac_compile itself does not contain backslashes and begins
17799 # with a dollar sign (not a hyphen), so the echo should work correctly.
17800 lt_compile=`echo "$ac_compile" | $SED \
17801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17803 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000017804 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017805 (eval "$lt_compile" 2>out/conftest.err)
17806 ac_status=$?
17807 cat out/conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000017808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017809 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17810 then
17811 # The compiler can only warn and ignore the option if not recognized
17812 # So say no if there are warnings
cristyfd9dcd42010-08-08 18:07:02 +000017813 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017814 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17815 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17816 lt_cv_prog_compiler_c_o_CXX=yes
17817 fi
17818 fi
17819 chmod u+w . 2>&5
17820 $RM conftest*
17821 # SGI C++ compiler will create directory out/ii_files/ for
17822 # template instantiation
17823 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17824 $RM out/* && rmdir out
17825 cd ..
17826 $RM -r conftest
17827 $RM conftest*
17828
17829fi
cristy8b350f62009-11-15 23:12:43 +000017830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017831$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17832
17833
17834
cristy8b350f62009-11-15 23:12:43 +000017835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017836$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017837if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017838 $as_echo_n "(cached) " >&6
17839else
17840 lt_cv_prog_compiler_c_o_CXX=no
17841 $RM -r conftest 2>/dev/null
17842 mkdir conftest
17843 cd conftest
17844 mkdir out
17845 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17846
17847 lt_compiler_flag="-o out/conftest2.$ac_objext"
17848 # Insert the option either (1) after the last *FLAGS variable, or
17849 # (2) before a word containing "conftest.", or (3) at the end.
17850 # Note that $ac_compile itself does not contain backslashes and begins
17851 # with a dollar sign (not a hyphen), so the echo should work correctly.
17852 lt_compile=`echo "$ac_compile" | $SED \
17853 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17855 -e 's:$: $lt_compiler_flag:'`
cristyfd9dcd42010-08-08 18:07:02 +000017856 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017857 (eval "$lt_compile" 2>out/conftest.err)
17858 ac_status=$?
17859 cat out/conftest.err >&5
cristyfd9dcd42010-08-08 18:07:02 +000017860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017861 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17862 then
17863 # The compiler can only warn and ignore the option if not recognized
17864 # So say no if there are warnings
cristyfd9dcd42010-08-08 18:07:02 +000017865 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017866 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17867 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17868 lt_cv_prog_compiler_c_o_CXX=yes
17869 fi
17870 fi
17871 chmod u+w . 2>&5
17872 $RM conftest*
17873 # SGI C++ compiler will create directory out/ii_files/ for
17874 # template instantiation
17875 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17876 $RM out/* && rmdir out
17877 cd ..
17878 $RM -r conftest
17879 $RM conftest*
17880
17881fi
cristy8b350f62009-11-15 23:12:43 +000017882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017883$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17884
17885
17886
17887
17888hard_links="nottested"
17889if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17890 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000017891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017892$as_echo_n "checking if we can lock with hard links... " >&6; }
17893 hard_links=yes
17894 $RM conftest*
17895 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17896 touch conftest.a
17897 ln conftest.a conftest.b 2>&5 || hard_links=no
17898 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000017899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017900$as_echo "$hard_links" >&6; }
17901 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000017902 { $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 +000017903$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17904 need_locks=warn
17905 fi
17906else
17907 need_locks=no
17908fi
17909
17910
17911
cristy8b350f62009-11-15 23:12:43 +000017912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000017913$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17914
17915 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17916 case $host_os in
17917 aix[4-9]*)
17918 # If we're using GNU nm, then we don't want the "-C" option.
17919 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristyfd9dcd42010-08-08 18:07:02 +000017920 # Also, AIX nm treats weak defined symbols like other global defined
17921 # symbols, whereas GNU nm marks them as "W".
cristy3ed852e2009-09-05 21:47:34 +000017922 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristyfd9dcd42010-08-08 18:07:02 +000017923 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 +000017924 else
17925 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'
17926 fi
17927 ;;
17928 pw32*)
17929 export_symbols_cmds_CXX="$ltdll_cmds"
17930 ;;
17931 cygwin* | mingw* | cegcc*)
17932 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'
17933 ;;
17934 *)
17935 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17936 ;;
17937 esac
17938 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17939
cristy8b350f62009-11-15 23:12:43 +000017940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017941$as_echo "$ld_shlibs_CXX" >&6; }
17942test "$ld_shlibs_CXX" = no && can_build_shared=no
17943
17944with_gnu_ld_CXX=$with_gnu_ld
17945
17946
17947
17948
17949
17950
17951#
17952# Do we need to explicitly link libc?
17953#
17954case "x$archive_cmds_need_lc_CXX" in
17955x|xyes)
17956 # Assume -lc should be added
17957 archive_cmds_need_lc_CXX=yes
17958
17959 if test "$enable_shared" = yes && test "$GCC" = yes; then
17960 case $archive_cmds_CXX in
17961 *'~'*)
17962 # FIXME: we may have to deal with multi-command sequences.
17963 ;;
17964 '$CC '*)
17965 # Test whether the compiler implicitly links with -lc since on some
17966 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17967 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000017968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000017969$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000017970if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
17971 $as_echo_n "(cached) " >&6
17972else
17973 $RM conftest*
17974 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017975
cristyfd9dcd42010-08-08 18:07:02 +000017976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017977 (eval $ac_compile) 2>&5
17978 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17980 test $ac_status = 0; } 2>conftest.err; then
cristyfd9dcd42010-08-08 18:07:02 +000017981 soname=conftest
17982 lib=conftest
17983 libobjs=conftest.$ac_objext
17984 deplibs=
17985 wl=$lt_prog_compiler_wl_CXX
17986 pic_flag=$lt_prog_compiler_pic_CXX
17987 compiler_flags=-v
17988 linker_flags=-v
17989 verstring=
17990 output_objdir=.
17991 libname=conftest
17992 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17993 allow_undefined_flag_CXX=
17994 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 +000017995 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17996 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17998 test $ac_status = 0; }
cristyfd9dcd42010-08-08 18:07:02 +000017999 then
18000 lt_cv_archive_cmds_need_lc_CXX=no
18001 else
18002 lt_cv_archive_cmds_need_lc_CXX=yes
18003 fi
18004 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18005 else
18006 cat conftest.err 1>&5
18007 fi
18008 $RM conftest*
18009
18010fi
18011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18012$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18013 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy3ed852e2009-09-05 21:47:34 +000018014 ;;
18015 esac
18016 fi
18017 ;;
18018esac
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
cristy8b350f62009-11-15 23:12:43 +000018083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000018084$as_echo_n "checking dynamic linker characteristics... " >&6; }
18085
18086library_names_spec=
18087libname_spec='lib$name'
18088soname_spec=
18089shrext_cmds=".so"
18090postinstall_cmds=
18091postuninstall_cmds=
18092finish_cmds=
18093finish_eval=
18094shlibpath_var=
18095shlibpath_overrides_runpath=unknown
18096version_type=none
18097dynamic_linker="$host_os ld.so"
18098sys_lib_dlsearch_path_spec="/lib /usr/lib"
18099need_lib_prefix=unknown
18100hardcode_into_libs=no
18101
18102# when you set need_version to no, make sure it does not cause -set_version
18103# flags to be left without arguments
18104need_version=unknown
18105
18106case $host_os in
18107aix3*)
18108 version_type=linux
18109 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18110 shlibpath_var=LIBPATH
18111
18112 # AIX 3 has no versioning support, so we append a major version to the name.
18113 soname_spec='${libname}${release}${shared_ext}$major'
18114 ;;
18115
18116aix[4-9]*)
18117 version_type=linux
18118 need_lib_prefix=no
18119 need_version=no
18120 hardcode_into_libs=yes
18121 if test "$host_cpu" = ia64; then
18122 # AIX 5 supports IA64
18123 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18124 shlibpath_var=LD_LIBRARY_PATH
18125 else
18126 # With GCC up to 2.95.x, collect2 would create an import file
18127 # for dependence libraries. The import file would start with
18128 # the line `#! .'. This would cause the generated library to
18129 # depend on `.', always an invalid library. This was fixed in
18130 # development snapshots of GCC prior to 3.0.
18131 case $host_os in
18132 aix4 | aix4.[01] | aix4.[01].*)
18133 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18134 echo ' yes '
18135 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18136 :
18137 else
18138 can_build_shared=no
18139 fi
18140 ;;
18141 esac
18142 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18143 # soname into executable. Probably we can add versioning support to
18144 # collect2, so additional links can be useful in future.
18145 if test "$aix_use_runtimelinking" = yes; then
18146 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18147 # instead of lib<name>.a to let people know that these are not
18148 # typical AIX shared libraries.
18149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18150 else
18151 # We preserve .a as extension for shared libraries through AIX4.2
18152 # and later when we are not doing run time linking.
18153 library_names_spec='${libname}${release}.a $libname.a'
18154 soname_spec='${libname}${release}${shared_ext}$major'
18155 fi
18156 shlibpath_var=LIBPATH
18157 fi
18158 ;;
18159
18160amigaos*)
18161 case $host_cpu in
18162 powerpc)
18163 # Since July 2007 AmigaOS4 officially supports .so libraries.
18164 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18166 ;;
18167 m68k)
18168 library_names_spec='$libname.ixlibrary $libname.a'
18169 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristyfd9dcd42010-08-08 18:07:02 +000018170 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 +000018171 ;;
18172 esac
18173 ;;
18174
18175beos*)
18176 library_names_spec='${libname}${shared_ext}'
18177 dynamic_linker="$host_os ld.so"
18178 shlibpath_var=LIBRARY_PATH
18179 ;;
18180
18181bsdi[45]*)
18182 version_type=linux
18183 need_version=no
18184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18185 soname_spec='${libname}${release}${shared_ext}$major'
18186 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18187 shlibpath_var=LD_LIBRARY_PATH
18188 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18189 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18190 # the default ld.so.conf also contains /usr/contrib/lib and
18191 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18192 # libtool to hard-code these into programs
18193 ;;
18194
18195cygwin* | mingw* | pw32* | cegcc*)
18196 version_type=windows
18197 shrext_cmds=".dll"
18198 need_version=no
18199 need_lib_prefix=no
18200
18201 case $GCC,$host_os in
18202 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18203 library_names_spec='$libname.dll.a'
18204 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18205 postinstall_cmds='base_file=`basename \${file}`~
18206 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18207 dldir=$destdir/`dirname \$dlpath`~
18208 test -d \$dldir || mkdir -p \$dldir~
18209 $install_prog $dir/$dlname \$dldir/$dlname~
18210 chmod a+x \$dldir/$dlname~
18211 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18212 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18213 fi'
18214 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18215 dlpath=$dir/\$dldll~
18216 $RM \$dlpath'
18217 shlibpath_overrides_runpath=yes
18218
18219 case $host_os in
18220 cygwin*)
18221 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18222 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristyfd9dcd42010-08-08 18:07:02 +000018223
cristy3ed852e2009-09-05 21:47:34 +000018224 ;;
18225 mingw* | cegcc*)
18226 # MinGW DLLs use traditional 'lib' prefix
18227 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy3ed852e2009-09-05 21:47:34 +000018228 ;;
18229 pw32*)
18230 # pw32 DLLs use 'pw' prefix rather than 'lib'
18231 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18232 ;;
18233 esac
18234 ;;
18235
18236 *)
18237 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18238 ;;
18239 esac
18240 dynamic_linker='Win32 ld.exe'
18241 # FIXME: first we should search . and the directory the executable is in
18242 shlibpath_var=PATH
18243 ;;
18244
18245darwin* | rhapsody*)
18246 dynamic_linker="$host_os dyld"
18247 version_type=darwin
18248 need_lib_prefix=no
18249 need_version=no
18250 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18251 soname_spec='${libname}${release}${major}$shared_ext'
18252 shlibpath_overrides_runpath=yes
18253 shlibpath_var=DYLD_LIBRARY_PATH
18254 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18255
18256 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18257 ;;
18258
18259dgux*)
18260 version_type=linux
18261 need_lib_prefix=no
18262 need_version=no
18263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18264 soname_spec='${libname}${release}${shared_ext}$major'
18265 shlibpath_var=LD_LIBRARY_PATH
18266 ;;
18267
18268freebsd1*)
18269 dynamic_linker=no
18270 ;;
18271
18272freebsd* | dragonfly*)
18273 # DragonFly does not have aout. When/if they implement a new
18274 # versioning mechanism, adjust this.
18275 if test -x /usr/bin/objformat; then
18276 objformat=`/usr/bin/objformat`
18277 else
18278 case $host_os in
18279 freebsd[123]*) objformat=aout ;;
18280 *) objformat=elf ;;
18281 esac
18282 fi
18283 version_type=freebsd-$objformat
18284 case $version_type in
18285 freebsd-elf*)
18286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18287 need_version=no
18288 need_lib_prefix=no
18289 ;;
18290 freebsd-*)
18291 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18292 need_version=yes
18293 ;;
18294 esac
18295 shlibpath_var=LD_LIBRARY_PATH
18296 case $host_os in
18297 freebsd2*)
18298 shlibpath_overrides_runpath=yes
18299 ;;
18300 freebsd3.[01]* | freebsdelf3.[01]*)
18301 shlibpath_overrides_runpath=yes
18302 hardcode_into_libs=yes
18303 ;;
18304 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18305 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18306 shlibpath_overrides_runpath=no
18307 hardcode_into_libs=yes
18308 ;;
18309 *) # from 4.6 on, and DragonFly
18310 shlibpath_overrides_runpath=yes
18311 hardcode_into_libs=yes
18312 ;;
18313 esac
18314 ;;
18315
18316gnu*)
18317 version_type=linux
18318 need_lib_prefix=no
18319 need_version=no
18320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18321 soname_spec='${libname}${release}${shared_ext}$major'
18322 shlibpath_var=LD_LIBRARY_PATH
18323 hardcode_into_libs=yes
18324 ;;
18325
cristyfd9dcd42010-08-08 18:07:02 +000018326haiku*)
18327 version_type=linux
18328 need_lib_prefix=no
18329 need_version=no
18330 dynamic_linker="$host_os runtime_loader"
18331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18332 soname_spec='${libname}${release}${shared_ext}$major'
18333 shlibpath_var=LIBRARY_PATH
18334 shlibpath_overrides_runpath=yes
18335 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18336 hardcode_into_libs=yes
18337 ;;
18338
cristy3ed852e2009-09-05 21:47:34 +000018339hpux9* | hpux10* | hpux11*)
18340 # Give a soname corresponding to the major version so that dld.sl refuses to
18341 # link against other versions.
18342 version_type=sunos
18343 need_lib_prefix=no
18344 need_version=no
18345 case $host_cpu in
18346 ia64*)
18347 shrext_cmds='.so'
18348 hardcode_into_libs=yes
18349 dynamic_linker="$host_os dld.so"
18350 shlibpath_var=LD_LIBRARY_PATH
18351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18353 soname_spec='${libname}${release}${shared_ext}$major'
18354 if test "X$HPUX_IA64_MODE" = X32; then
18355 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18356 else
18357 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18358 fi
18359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18360 ;;
18361 hppa*64*)
18362 shrext_cmds='.sl'
18363 hardcode_into_libs=yes
18364 dynamic_linker="$host_os dld.sl"
18365 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18366 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18368 soname_spec='${libname}${release}${shared_ext}$major'
18369 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18371 ;;
18372 *)
18373 shrext_cmds='.sl'
18374 dynamic_linker="$host_os dld.sl"
18375 shlibpath_var=SHLIB_PATH
18376 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18378 soname_spec='${libname}${release}${shared_ext}$major'
18379 ;;
18380 esac
cristyfd9dcd42010-08-08 18:07:02 +000018381 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy3ed852e2009-09-05 21:47:34 +000018382 postinstall_cmds='chmod 555 $lib'
cristyfd9dcd42010-08-08 18:07:02 +000018383 # or fails outright, so override atomically:
18384 install_override_mode=555
cristy3ed852e2009-09-05 21:47:34 +000018385 ;;
18386
18387interix[3-9]*)
18388 version_type=linux
18389 need_lib_prefix=no
18390 need_version=no
18391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18392 soname_spec='${libname}${release}${shared_ext}$major'
18393 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18394 shlibpath_var=LD_LIBRARY_PATH
18395 shlibpath_overrides_runpath=no
18396 hardcode_into_libs=yes
18397 ;;
18398
18399irix5* | irix6* | nonstopux*)
18400 case $host_os in
18401 nonstopux*) version_type=nonstopux ;;
18402 *)
18403 if test "$lt_cv_prog_gnu_ld" = yes; then
18404 version_type=linux
18405 else
18406 version_type=irix
18407 fi ;;
18408 esac
18409 need_lib_prefix=no
18410 need_version=no
18411 soname_spec='${libname}${release}${shared_ext}$major'
18412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18413 case $host_os in
18414 irix5* | nonstopux*)
18415 libsuff= shlibsuff=
18416 ;;
18417 *)
18418 case $LD in # libtool.m4 will add one of these switches to LD
18419 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18420 libsuff= shlibsuff= libmagic=32-bit;;
18421 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18422 libsuff=32 shlibsuff=N32 libmagic=N32;;
18423 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18424 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18425 *) libsuff= shlibsuff= libmagic=never-match;;
18426 esac
18427 ;;
18428 esac
18429 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18430 shlibpath_overrides_runpath=no
18431 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18432 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18433 hardcode_into_libs=yes
18434 ;;
18435
18436# No shared lib support for Linux oldld, aout, or coff.
18437linux*oldld* | linux*aout* | linux*coff*)
18438 dynamic_linker=no
18439 ;;
18440
18441# This must be Linux ELF.
cristyfd9dcd42010-08-08 18:07:02 +000018442linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018443 version_type=linux
18444 need_lib_prefix=no
18445 need_version=no
18446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18447 soname_spec='${libname}${release}${shared_ext}$major'
18448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18449 shlibpath_var=LD_LIBRARY_PATH
18450 shlibpath_overrides_runpath=no
cristyfd9dcd42010-08-08 18:07:02 +000018451
cristy3ed852e2009-09-05 21:47:34 +000018452 # Some binutils ld are patched to set DT_RUNPATH
cristyfd9dcd42010-08-08 18:07:02 +000018453 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
18454 $as_echo_n "(cached) " >&6
18455else
18456 lt_cv_shlibpath_overrides_runpath=no
18457 save_LDFLAGS=$LDFLAGS
18458 save_libdir=$libdir
18459 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18460 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018462/* end confdefs.h. */
18463
18464int
18465main ()
18466{
18467
18468 ;
18469 return 0;
18470}
18471_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018472if ac_fn_cxx_try_link "$LINENO"; then :
18473 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristyfd9dcd42010-08-08 18:07:02 +000018474 lt_cv_shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000018475fi
cristy3ed852e2009-09-05 21:47:34 +000018476fi
cristy8b350f62009-11-15 23:12:43 +000018477rm -f core conftest.err conftest.$ac_objext \
18478 conftest$ac_exeext conftest.$ac_ext
cristyfd9dcd42010-08-08 18:07:02 +000018479 LDFLAGS=$save_LDFLAGS
18480 libdir=$save_libdir
18481
18482fi
18483
18484 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy3ed852e2009-09-05 21:47:34 +000018485
18486 # This implies no fast_install, which is unacceptable.
18487 # Some rework will be needed to allow for fast_install
18488 # before this can be enabled.
18489 hardcode_into_libs=yes
18490
cristy679ed8e2009-12-05 02:37:41 +000018491 # Add ABI-specific directories to the system library path.
18492 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18493
cristy3ed852e2009-09-05 21:47:34 +000018494 # Append ld.so.conf contents to the search path
18495 if test -f /etc/ld.so.conf; then
cristyfd9dcd42010-08-08 18:07:02 +000018496 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 +000018497 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristyfd9dcd42010-08-08 18:07:02 +000018498
cristy3ed852e2009-09-05 21:47:34 +000018499 fi
18500
18501 # We used to test for /lib/ld.so.1 and disable shared libraries on
18502 # powerpc, because MkLinux only supported shared libraries with the
18503 # GNU dynamic linker. Since this was broken with cross compilers,
18504 # most powerpc-linux boxes support dynamic linking these days and
18505 # people can always --disable-shared, the test was removed, and we
18506 # assume the GNU/Linux dynamic linker is in use.
18507 dynamic_linker='GNU/Linux ld.so'
18508 ;;
18509
18510netbsd*)
18511 version_type=sunos
18512 need_lib_prefix=no
18513 need_version=no
18514 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18516 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18517 dynamic_linker='NetBSD (a.out) ld.so'
18518 else
18519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18520 soname_spec='${libname}${release}${shared_ext}$major'
18521 dynamic_linker='NetBSD ld.elf_so'
18522 fi
18523 shlibpath_var=LD_LIBRARY_PATH
18524 shlibpath_overrides_runpath=yes
18525 hardcode_into_libs=yes
18526 ;;
18527
18528newsos6)
18529 version_type=linux
18530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18531 shlibpath_var=LD_LIBRARY_PATH
18532 shlibpath_overrides_runpath=yes
18533 ;;
18534
18535*nto* | *qnx*)
18536 version_type=qnx
18537 need_lib_prefix=no
18538 need_version=no
18539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18540 soname_spec='${libname}${release}${shared_ext}$major'
18541 shlibpath_var=LD_LIBRARY_PATH
18542 shlibpath_overrides_runpath=no
18543 hardcode_into_libs=yes
18544 dynamic_linker='ldqnx.so'
18545 ;;
18546
18547openbsd*)
18548 version_type=sunos
18549 sys_lib_dlsearch_path_spec="/usr/lib"
18550 need_lib_prefix=no
18551 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18552 case $host_os in
18553 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18554 *) need_version=no ;;
18555 esac
18556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18557 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18558 shlibpath_var=LD_LIBRARY_PATH
18559 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18560 case $host_os in
18561 openbsd2.[89] | openbsd2.[89].*)
18562 shlibpath_overrides_runpath=no
18563 ;;
18564 *)
18565 shlibpath_overrides_runpath=yes
18566 ;;
18567 esac
18568 else
18569 shlibpath_overrides_runpath=yes
18570 fi
18571 ;;
18572
18573os2*)
18574 libname_spec='$name'
18575 shrext_cmds=".dll"
18576 need_lib_prefix=no
18577 library_names_spec='$libname${shared_ext} $libname.a'
18578 dynamic_linker='OS/2 ld.exe'
18579 shlibpath_var=LIBPATH
18580 ;;
18581
18582osf3* | osf4* | osf5*)
18583 version_type=osf
18584 need_lib_prefix=no
18585 need_version=no
18586 soname_spec='${libname}${release}${shared_ext}$major'
18587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18588 shlibpath_var=LD_LIBRARY_PATH
18589 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18590 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18591 ;;
18592
18593rdos*)
18594 dynamic_linker=no
18595 ;;
18596
18597solaris*)
18598 version_type=linux
18599 need_lib_prefix=no
18600 need_version=no
18601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18602 soname_spec='${libname}${release}${shared_ext}$major'
18603 shlibpath_var=LD_LIBRARY_PATH
18604 shlibpath_overrides_runpath=yes
18605 hardcode_into_libs=yes
18606 # ldd complains unless libraries are executable
18607 postinstall_cmds='chmod +x $lib'
18608 ;;
18609
18610sunos4*)
18611 version_type=sunos
18612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18613 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18614 shlibpath_var=LD_LIBRARY_PATH
18615 shlibpath_overrides_runpath=yes
18616 if test "$with_gnu_ld" = yes; then
18617 need_lib_prefix=no
18618 fi
18619 need_version=yes
18620 ;;
18621
18622sysv4 | sysv4.3*)
18623 version_type=linux
18624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18625 soname_spec='${libname}${release}${shared_ext}$major'
18626 shlibpath_var=LD_LIBRARY_PATH
18627 case $host_vendor in
18628 sni)
18629 shlibpath_overrides_runpath=no
18630 need_lib_prefix=no
18631 runpath_var=LD_RUN_PATH
18632 ;;
18633 siemens)
18634 need_lib_prefix=no
18635 ;;
18636 motorola)
18637 need_lib_prefix=no
18638 need_version=no
18639 shlibpath_overrides_runpath=no
18640 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18641 ;;
18642 esac
18643 ;;
18644
18645sysv4*MP*)
18646 if test -d /usr/nec ;then
18647 version_type=linux
18648 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18649 soname_spec='$libname${shared_ext}.$major'
18650 shlibpath_var=LD_LIBRARY_PATH
18651 fi
18652 ;;
18653
18654sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18655 version_type=freebsd-elf
18656 need_lib_prefix=no
18657 need_version=no
18658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18659 soname_spec='${libname}${release}${shared_ext}$major'
18660 shlibpath_var=LD_LIBRARY_PATH
18661 shlibpath_overrides_runpath=yes
18662 hardcode_into_libs=yes
18663 if test "$with_gnu_ld" = yes; then
18664 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18665 else
18666 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18667 case $host_os in
18668 sco3.2v5*)
18669 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18670 ;;
18671 esac
18672 fi
18673 sys_lib_dlsearch_path_spec='/usr/lib'
18674 ;;
18675
18676tpf*)
18677 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18678 version_type=linux
18679 need_lib_prefix=no
18680 need_version=no
18681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18682 shlibpath_var=LD_LIBRARY_PATH
18683 shlibpath_overrides_runpath=no
18684 hardcode_into_libs=yes
18685 ;;
18686
18687uts4*)
18688 version_type=linux
18689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18690 soname_spec='${libname}${release}${shared_ext}$major'
18691 shlibpath_var=LD_LIBRARY_PATH
18692 ;;
18693
18694*)
18695 dynamic_linker=no
18696 ;;
18697esac
cristy8b350f62009-11-15 23:12:43 +000018698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000018699$as_echo "$dynamic_linker" >&6; }
18700test "$dynamic_linker" = no && can_build_shared=no
18701
18702variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18703if test "$GCC" = yes; then
18704 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18705fi
18706
18707if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18708 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18709fi
18710if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18711 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18712fi
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
cristyfd9dcd42010-08-08 18:07:02 +000018749
18750
cristy8b350f62009-11-15 23:12:43 +000018751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018752$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18753hardcode_action_CXX=
18754if test -n "$hardcode_libdir_flag_spec_CXX" ||
18755 test -n "$runpath_var_CXX" ||
18756 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18757
18758 # We can hardcode non-existent directories.
18759 if test "$hardcode_direct_CXX" != no &&
18760 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18761 # have to relink, otherwise we might link with an installed library
18762 # when we should be linking with a yet-to-be-installed one
18763 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18764 test "$hardcode_minus_L_CXX" != no; then
18765 # Linking always hardcodes the temporary library directory.
18766 hardcode_action_CXX=relink
18767 else
18768 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18769 hardcode_action_CXX=immediate
18770 fi
18771else
18772 # We cannot hardcode anything, or else we can only hardcode existing
18773 # directories.
18774 hardcode_action_CXX=unsupported
18775fi
cristy8b350f62009-11-15 23:12:43 +000018776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018777$as_echo "$hardcode_action_CXX" >&6; }
18778
18779if test "$hardcode_action_CXX" = relink ||
18780 test "$inherit_rpath_CXX" = yes; then
18781 # Fast installation is not supported
18782 enable_fast_install=no
18783elif test "$shlibpath_overrides_runpath" = yes ||
18784 test "$enable_shared" = no; then
18785 # Fast installation is not necessary
18786 enable_fast_install=needless
18787fi
18788
18789
18790
18791
18792
18793
18794
18795 fi # test -n "$compiler"
18796
18797 CC=$lt_save_CC
18798 LDCXX=$LD
18799 LD=$lt_save_LD
18800 GCC=$lt_save_GCC
18801 with_gnu_ld=$lt_save_with_gnu_ld
18802 lt_cv_path_LDCXX=$lt_cv_path_LD
18803 lt_cv_path_LD=$lt_save_path_LD
18804 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18805 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18806fi # test "$_lt_caught_CXX_error" != yes
18807
18808ac_ext=c
18809ac_cpp='$CPP $CPPFLAGS'
18810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18812ac_compiler_gnu=$ac_cv_c_compiler_gnu
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826 ac_config_commands="$ac_config_commands libtool"
18827
18828
18829
18830
18831# Only expand once:
18832
18833
18834
18835
18836
18837# Configure libltdl
18838
18839
18840
18841
18842
18843
18844
cristy8b350f62009-11-15 23:12:43 +000018845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000018846$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018847if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018848 $as_echo_n "(cached) " >&6
18849else
18850
18851module=yes
18852eval libltdl_cv_shlibext=$shrext_cmds
18853
18854fi
cristy8b350f62009-11-15 23:12:43 +000018855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000018856$as_echo "$libltdl_cv_shlibext" >&6; }
18857if test -n "$libltdl_cv_shlibext"; then
18858
18859cat >>confdefs.h <<_ACEOF
18860#define LT_MODULE_EXT "$libltdl_cv_shlibext"
18861_ACEOF
18862
18863fi
18864
cristy8b350f62009-11-15 23:12:43 +000018865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018866$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018867if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018868 $as_echo_n "(cached) " >&6
18869else
18870 lt_cv_module_path_var="$shlibpath_var"
18871fi
cristy8b350f62009-11-15 23:12:43 +000018872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000018873$as_echo "$lt_cv_module_path_var" >&6; }
18874if test -n "$lt_cv_module_path_var"; then
18875
18876cat >>confdefs.h <<_ACEOF
18877#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18878_ACEOF
18879
18880fi
18881
cristy8b350f62009-11-15 23:12:43 +000018882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018883$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018884if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018885 $as_echo_n "(cached) " >&6
18886else
18887 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18888fi
cristy8b350f62009-11-15 23:12:43 +000018889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018890$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18891if test -n "$lt_cv_sys_dlsearch_path"; then
18892 sys_dlsearch_path=
18893 for dir in $lt_cv_sys_dlsearch_path; do
18894 if test -z "$sys_dlsearch_path"; then
18895 sys_dlsearch_path="$dir"
18896 else
18897 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18898 fi
18899 done
18900
18901cat >>confdefs.h <<_ACEOF
18902#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18903_ACEOF
18904
18905fi
18906
18907
18908LT_DLLOADERS=
18909
18910
18911ac_ext=c
18912ac_cpp='$CPP $CPPFLAGS'
18913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18915ac_compiler_gnu=$ac_cv_c_compiler_gnu
18916
18917
18918LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000018919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018920$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018921if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018922 $as_echo_n "(cached) " >&6
18923else
18924 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000018925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018926/* end confdefs.h. */
18927
18928/* Override any GCC internal prototype to avoid an error.
18929 Use char because int might match the return type of a GCC
18930 builtin and then its argument prototype would still apply. */
18931#ifdef __cplusplus
18932extern "C"
18933#endif
18934char dlopen ();
18935int
18936main ()
18937{
18938return dlopen ();
18939 ;
18940 return 0;
18941}
18942_ACEOF
18943for ac_lib in '' dl; do
18944 if test -z "$ac_lib"; then
18945 ac_res="none required"
18946 else
18947 ac_res=-l$ac_lib
18948 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18949 fi
cristy8b350f62009-11-15 23:12:43 +000018950 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018951 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000018952fi
cristy8b350f62009-11-15 23:12:43 +000018953rm -f core conftest.err conftest.$ac_objext \
18954 conftest$ac_exeext
18955 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018956 break
18957fi
18958done
cristy8b350f62009-11-15 23:12:43 +000018959if test "${ac_cv_search_dlopen+set}" = set; then :
18960
cristy3ed852e2009-09-05 21:47:34 +000018961else
18962 ac_cv_search_dlopen=no
18963fi
18964rm conftest.$ac_ext
18965LIBS=$ac_func_search_save_LIBS
18966fi
cristy8b350f62009-11-15 23:12:43 +000018967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018968$as_echo "$ac_cv_search_dlopen" >&6; }
18969ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000018970if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000018971 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18972
cristy8b350f62009-11-15 23:12:43 +000018973$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018974
18975 if test "$ac_cv_search_dlopen" != "none required" ; then
18976 LIBADD_DLOPEN="-ldl"
18977 fi
18978 libltdl_cv_lib_dl_dlopen="yes"
18979 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18980else
cristy8b350f62009-11-15 23:12:43 +000018981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018982/* end confdefs.h. */
18983#if HAVE_DLFCN_H
18984# include <dlfcn.h>
18985#endif
18986
18987int
18988main ()
18989{
18990dlopen(0, 0);
18991 ;
18992 return 0;
18993}
18994_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018995if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018996
cristy8b350f62009-11-15 23:12:43 +000018997$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018998
18999 libltdl_cv_func_dlopen="yes"
19000 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19001else
cristy8b350f62009-11-15 23:12:43 +000019002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019003$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019004if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019005 $as_echo_n "(cached) " >&6
19006else
19007 ac_check_lib_save_LIBS=$LIBS
19008LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019010/* end confdefs.h. */
19011
19012/* Override any GCC internal prototype to avoid an error.
19013 Use char because int might match the return type of a GCC
19014 builtin and then its argument prototype would still apply. */
19015#ifdef __cplusplus
19016extern "C"
19017#endif
19018char dlopen ();
19019int
19020main ()
19021{
19022return dlopen ();
19023 ;
19024 return 0;
19025}
19026_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019027if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019028 ac_cv_lib_svld_dlopen=yes
19029else
cristy8b350f62009-11-15 23:12:43 +000019030 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000019031fi
cristy8b350f62009-11-15 23:12:43 +000019032rm -f core conftest.err conftest.$ac_objext \
19033 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019034LIBS=$ac_check_lib_save_LIBS
19035fi
cristy8b350f62009-11-15 23:12:43 +000019036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019037$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019038if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019039
cristy8b350f62009-11-15 23:12:43 +000019040$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019041
19042 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19043 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19044fi
19045
19046fi
cristy8b350f62009-11-15 23:12:43 +000019047rm -f core conftest.err conftest.$ac_objext \
19048 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019049fi
19050
19051if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19052then
19053 lt_save_LIBS="$LIBS"
19054 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000019055 for ac_func in dlerror
19056do :
19057 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19058if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019059 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019060#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000019061_ACEOF
19062
19063fi
19064done
19065
19066 LIBS="$lt_save_LIBS"
19067fi
19068
19069
19070LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000019071ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19072if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019073
cristy8b350f62009-11-15 23:12:43 +000019074$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019075
19076 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19077else
cristy8b350f62009-11-15 23:12:43 +000019078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019079$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019080if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019081 $as_echo_n "(cached) " >&6
19082else
19083 ac_check_lib_save_LIBS=$LIBS
19084LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019086/* end confdefs.h. */
19087
19088/* Override any GCC internal prototype to avoid an error.
19089 Use char because int might match the return type of a GCC
19090 builtin and then its argument prototype would still apply. */
19091#ifdef __cplusplus
19092extern "C"
19093#endif
19094char shl_load ();
19095int
19096main ()
19097{
19098return shl_load ();
19099 ;
19100 return 0;
19101}
19102_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019103if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019104 ac_cv_lib_dld_shl_load=yes
19105else
cristy8b350f62009-11-15 23:12:43 +000019106 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000019107fi
cristy8b350f62009-11-15 23:12:43 +000019108rm -f core conftest.err conftest.$ac_objext \
19109 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019110LIBS=$ac_check_lib_save_LIBS
19111fi
cristy8b350f62009-11-15 23:12:43 +000019112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000019113$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019114if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019115
cristy8b350f62009-11-15 23:12:43 +000019116$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019117
19118 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19119 LIBADD_SHL_LOAD="-ldld"
19120fi
19121
19122fi
19123
19124
19125
19126case $host_os in
19127darwin[1567].*)
19128# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000019129 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19130if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019131
cristy8b350f62009-11-15 23:12:43 +000019132$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019133
19134 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19135fi
19136
19137 ;;
19138beos*)
19139 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19140 ;;
19141cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000019142 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19143"
19144if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19145 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000019146else
cristy8b350f62009-11-15 23:12:43 +000019147 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000019148fi
19149
cristy3ed852e2009-09-05 21:47:34 +000019150cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019151#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000019152_ACEOF
19153
cristy3ed852e2009-09-05 21:47:34 +000019154 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19155 ;;
19156esac
19157
cristy8b350f62009-11-15 23:12:43 +000019158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019159$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019160if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019161 $as_echo_n "(cached) " >&6
19162else
19163 ac_check_lib_save_LIBS=$LIBS
19164LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019166/* end confdefs.h. */
19167
19168/* Override any GCC internal prototype to avoid an error.
19169 Use char because int might match the return type of a GCC
19170 builtin and then its argument prototype would still apply. */
19171#ifdef __cplusplus
19172extern "C"
19173#endif
19174char dld_link ();
19175int
19176main ()
19177{
19178return dld_link ();
19179 ;
19180 return 0;
19181}
19182_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019183if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019184 ac_cv_lib_dld_dld_link=yes
19185else
cristy8b350f62009-11-15 23:12:43 +000019186 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000019187fi
cristy8b350f62009-11-15 23:12:43 +000019188rm -f core conftest.err conftest.$ac_objext \
19189 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019190LIBS=$ac_check_lib_save_LIBS
19191fi
cristy8b350f62009-11-15 23:12:43 +000019192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000019193$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019194if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019195
cristy8b350f62009-11-15 23:12:43 +000019196$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019197
19198 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19199fi
19200
19201
19202
19203
19204LT_DLPREOPEN=
19205if test -n "$LT_DLLOADERS"
19206then
19207 for lt_loader in $LT_DLLOADERS; do
19208 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19209 done
19210
cristy8b350f62009-11-15 23:12:43 +000019211$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019212
19213fi
19214
19215
19216LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19217
19218
19219ac_ext=c
19220ac_cpp='$CPP $CPPFLAGS'
19221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19223ac_compiler_gnu=$ac_cv_c_compiler_gnu
19224
19225
cristy8b350f62009-11-15 23:12:43 +000019226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019227$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019228if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019229 $as_echo_n "(cached) " >&6
19230else
19231 lt_cv_sys_symbol_underscore=no
19232 cat > conftest.$ac_ext <<_LT_EOF
19233void nm_test_func(){}
19234int main(){nm_test_func;return 0;}
19235_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019237 (eval $ac_compile) 2>&5
19238 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19240 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000019241 # Now try to grab the symbols.
19242 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000019243 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 +000019244 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19245 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19247 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000019248 # See whether the symbols have a leading underscore.
19249 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19250 lt_cv_sys_symbol_underscore=yes
19251 else
19252 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19253 :
19254 else
19255 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19256 fi
19257 fi
19258 else
19259 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19260 fi
19261 else
19262 echo "configure: failed program was:" >&5
19263 cat conftest.c >&5
19264 fi
19265 rm -rf conftest*
19266
19267fi
cristy8b350f62009-11-15 23:12:43 +000019268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019269$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19270 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19271
19272
19273if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19274 if test x"$libltdl_cv_func_dlopen" = xyes ||
19275 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000019276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000019277$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019278if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019279 $as_echo_n "(cached) " >&6
19280else
19281 libltdl_cv_need_uscore=unknown
19282 save_LIBS="$LIBS"
19283 LIBS="$LIBS $LIBADD_DLOPEN"
19284 if test "$cross_compiling" = yes; then :
19285 libltdl_cv_need_uscore=cross
19286else
19287 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19288 lt_status=$lt_dlunknown
19289 cat > conftest.$ac_ext <<_LT_EOF
cristyfd9dcd42010-08-08 18:07:02 +000019290#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000019291#include "confdefs.h"
19292
19293#if HAVE_DLFCN_H
19294#include <dlfcn.h>
19295#endif
19296
19297#include <stdio.h>
19298
19299#ifdef RTLD_GLOBAL
19300# define LT_DLGLOBAL RTLD_GLOBAL
19301#else
19302# ifdef DL_GLOBAL
19303# define LT_DLGLOBAL DL_GLOBAL
19304# else
19305# define LT_DLGLOBAL 0
19306# endif
19307#endif
19308
19309/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19310 find out it does not work in some platform. */
19311#ifndef LT_DLLAZY_OR_NOW
19312# ifdef RTLD_LAZY
19313# define LT_DLLAZY_OR_NOW RTLD_LAZY
19314# else
19315# ifdef DL_LAZY
19316# define LT_DLLAZY_OR_NOW DL_LAZY
19317# else
19318# ifdef RTLD_NOW
19319# define LT_DLLAZY_OR_NOW RTLD_NOW
19320# else
19321# ifdef DL_NOW
19322# define LT_DLLAZY_OR_NOW DL_NOW
19323# else
19324# define LT_DLLAZY_OR_NOW 0
19325# endif
19326# endif
19327# endif
19328# endif
19329#endif
19330
cristyfd9dcd42010-08-08 18:07:02 +000019331/* When -fvisbility=hidden is used, assume the code has been annotated
19332 correspondingly for the symbols needed. */
19333#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19334void fnord () __attribute__((visibility("default")));
19335#endif
19336
19337void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000019338int main ()
19339{
19340 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19341 int status = $lt_dlunknown;
19342
19343 if (self)
19344 {
19345 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristyfd9dcd42010-08-08 18:07:02 +000019346 else
19347 {
19348 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19349 else puts (dlerror ());
19350 }
cristy3ed852e2009-09-05 21:47:34 +000019351 /* dlclose (self); */
19352 }
19353 else
19354 puts (dlerror ());
19355
19356 return status;
19357}
19358_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019360 (eval $ac_link) 2>&5
19361 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19363 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000019364 (./conftest; exit; ) >&5 2>/dev/null
19365 lt_status=$?
19366 case x$lt_status in
19367 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19368 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19369 x$lt_dlunknown|x*) ;;
19370 esac
19371 else :
19372 # compilation failed
19373
19374 fi
19375fi
19376rm -fr conftest*
19377
19378 LIBS="$save_LIBS"
19379
19380fi
cristy8b350f62009-11-15 23:12:43 +000019381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019382$as_echo "$libltdl_cv_need_uscore" >&6; }
19383 fi
19384fi
19385
19386if test x"$libltdl_cv_need_uscore" = xyes; then
19387
cristy8b350f62009-11-15 23:12:43 +000019388$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019389
19390fi
19391
cristy8b350f62009-11-15 23:12:43 +000019392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019393$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019394if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019395 $as_echo_n "(cached) " >&6
19396else
19397 # PORTME does your system automatically load deplibs for dlopen?
19398 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19399 # For now, we just catch OSes we know something about -- in the
19400 # future, we'll try test this programmatically.
19401 lt_cv_sys_dlopen_deplibs=unknown
19402 case $host_os in
19403 aix3*|aix4.1.*|aix4.2.*)
19404 # Unknown whether this is true for these versions of AIX, but
19405 # we want this `case' here to explicitly catch those versions.
19406 lt_cv_sys_dlopen_deplibs=unknown
19407 ;;
19408 aix[4-9]*)
19409 lt_cv_sys_dlopen_deplibs=yes
19410 ;;
19411 amigaos*)
19412 case $host_cpu in
19413 powerpc)
19414 lt_cv_sys_dlopen_deplibs=no
19415 ;;
19416 esac
19417 ;;
19418 darwin*)
19419 # Assuming the user has installed a libdl from somewhere, this is true
19420 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19421 lt_cv_sys_dlopen_deplibs=yes
19422 ;;
19423 freebsd* | dragonfly*)
19424 lt_cv_sys_dlopen_deplibs=yes
19425 ;;
cristyfd9dcd42010-08-08 18:07:02 +000019426 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000019427 # GNU and its variants, using gnu ld.so (Glibc)
19428 lt_cv_sys_dlopen_deplibs=yes
19429 ;;
19430 hpux10*|hpux11*)
19431 lt_cv_sys_dlopen_deplibs=yes
19432 ;;
19433 interix*)
19434 lt_cv_sys_dlopen_deplibs=yes
19435 ;;
19436 irix[12345]*|irix6.[01]*)
19437 # Catch all versions of IRIX before 6.2, and indicate that we don't
19438 # know how it worked for any of those versions.
19439 lt_cv_sys_dlopen_deplibs=unknown
19440 ;;
19441 irix*)
19442 # The case above catches anything before 6.2, and it's known that
19443 # at 6.2 and later dlopen does load deplibs.
19444 lt_cv_sys_dlopen_deplibs=yes
19445 ;;
19446 netbsd*)
19447 lt_cv_sys_dlopen_deplibs=yes
19448 ;;
19449 openbsd*)
19450 lt_cv_sys_dlopen_deplibs=yes
19451 ;;
19452 osf[1234]*)
19453 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19454 # it did *not* use an RPATH in a shared library to find objects the
19455 # library depends on, so we explicitly say `no'.
19456 lt_cv_sys_dlopen_deplibs=no
19457 ;;
19458 osf5.0|osf5.0a|osf5.1)
19459 # dlopen *does* load deplibs and with the right loader patch applied
19460 # it even uses RPATH in a shared library to search for shared objects
19461 # that the library depends on, but there's no easy way to know if that
19462 # patch is installed. Since this is the case, all we can really
19463 # say is unknown -- it depends on the patch being installed. If
19464 # it is, this changes to `yes'. Without it, it would be `no'.
19465 lt_cv_sys_dlopen_deplibs=unknown
19466 ;;
19467 osf*)
19468 # the two cases above should catch all versions of osf <= 5.1. Read
19469 # the comments above for what we know about them.
19470 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19471 # is used to find them so we can finally say `yes'.
19472 lt_cv_sys_dlopen_deplibs=yes
19473 ;;
19474 qnx*)
19475 lt_cv_sys_dlopen_deplibs=yes
19476 ;;
19477 solaris*)
19478 lt_cv_sys_dlopen_deplibs=yes
19479 ;;
19480 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19481 libltdl_cv_sys_dlopen_deplibs=yes
19482 ;;
19483 esac
19484
19485fi
cristy8b350f62009-11-15 23:12:43 +000019486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000019487$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19488if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19489
cristy8b350f62009-11-15 23:12:43 +000019490$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019491
19492fi
19493
19494:
19495
cristy3ed852e2009-09-05 21:47:34 +000019496for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000019497do :
19498 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19499"
19500if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019501 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019502#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000019503_ACEOF
19504
19505fi
19506
19507done
19508
19509
cristy8b350f62009-11-15 23:12:43 +000019510ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000019511# include <argz.h>
19512#endif
cristy8b350f62009-11-15 23:12:43 +000019513"
19514if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019515
19516cat >>confdefs.h <<_ACEOF
19517#define HAVE_ERROR_T 1
19518_ACEOF
19519
19520
19521else
19522
cristy8b350f62009-11-15 23:12:43 +000019523$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019524
19525
cristy8b350f62009-11-15 23:12:43 +000019526$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019527
19528fi
19529
19530
19531ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000019532for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19533 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000019534do :
19535 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19536ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000019537if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019538 cat >>confdefs.h <<_ACEOF
19539#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19540_ACEOF
19541
19542else
19543 ARGZ_H=argz.h;
19544
19545 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19546
19547fi
19548done
19549
19550
cristy8b350f62009-11-15 23:12:43 +000019551if test -z "$ARGZ_H"; then :
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019553$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019554if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019555 $as_echo_n "(cached) " >&6
19556else
19557 case $host_os in #(
19558 *cygwin*)
19559 lt_cv_sys_argz_works=no
19560 if test "$cross_compiling" != no; then
19561 lt_cv_sys_argz_works="guessing no"
19562 else
19563 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19564 save_IFS=$IFS
19565 IFS=-.
19566 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19567 IFS=$save_IFS
19568 lt_os_major=${2-0}
19569 lt_os_minor=${3-0}
19570 lt_os_micro=${4-0}
19571 if test "$lt_os_major" -gt 1 \
19572 || { test "$lt_os_major" -eq 1 \
19573 && { test "$lt_os_minor" -gt 5 \
19574 || { test "$lt_os_minor" -eq 5 \
19575 && test "$lt_os_micro" -gt 24; }; }; }; then
19576 lt_cv_sys_argz_works=yes
19577 fi
19578 fi
19579 ;; #(
19580 *) lt_cv_sys_argz_works=yes ;;
19581 esac
19582fi
cristy8b350f62009-11-15 23:12:43 +000019583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019584$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019585 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019586
cristy8b350f62009-11-15 23:12:43 +000019587$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019588
19589else
19590 ARGZ_H=argz.h
19591
19592
19593 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19594
19595fi
cristy3ed852e2009-09-05 21:47:34 +000019596fi
19597
19598
19599
cristy8b350f62009-11-15 23:12:43 +000019600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019601$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019602if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019603 $as_echo_n "(cached) " >&6
19604else
19605 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19606 libltdl_cv_preloaded_symbols=yes
19607 else
19608 libltdl_cv_preloaded_symbols=no
19609 fi
19610
19611fi
cristy8b350f62009-11-15 23:12:43 +000019612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019613$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19614if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19615
cristy8b350f62009-11-15 23:12:43 +000019616$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019617
19618fi
19619
19620# Set options
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000019633if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019634 withval=$with_included_ltdl;
19635fi
19636
19637
19638if test "x$with_included_ltdl" != xyes; then
19639 # We are not being forced to use the included libltdl sources, so
19640 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000019641 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000019642
cristy8b350f62009-11-15 23:12:43 +000019643"
19644if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19645 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 +000019646 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000019647"
19648if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000019650$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019651if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019652 $as_echo_n "(cached) " >&6
19653else
19654 ac_check_lib_save_LIBS=$LIBS
19655LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019657/* end confdefs.h. */
19658
19659/* Override any GCC internal prototype to avoid an error.
19660 Use char because int might match the return type of a GCC
19661 builtin and then its argument prototype would still apply. */
19662#ifdef __cplusplus
19663extern "C"
19664#endif
19665char lt_dladvise_preload ();
19666int
19667main ()
19668{
19669return lt_dladvise_preload ();
19670 ;
19671 return 0;
19672}
19673_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019674if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019675 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19676else
cristy8b350f62009-11-15 23:12:43 +000019677 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000019678fi
cristy8b350f62009-11-15 23:12:43 +000019679rm -f core conftest.err conftest.$ac_objext \
19680 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019681LIBS=$ac_check_lib_save_LIBS
19682fi
cristy8b350f62009-11-15 23:12:43 +000019683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000019684$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019685if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019686 with_included_ltdl=no
19687else
19688 with_included_ltdl=yes
19689fi
19690
19691else
19692 with_included_ltdl=yes
19693fi
19694
19695else
19696 with_included_ltdl=yes
19697fi
19698
19699
19700fi
19701
19702
19703
19704
19705# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000019706if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019707 withval=$with_ltdl_include;
19708fi
19709
19710
19711if test -n "$with_ltdl_include"; then
19712 if test -f "$with_ltdl_include/ltdl.h"; then :
19713 else
cristyfd9dcd42010-08-08 18:07:02 +000019714 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019715 fi
19716else
19717 with_ltdl_include=no
19718fi
19719
19720
19721# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000019722if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019723 withval=$with_ltdl_lib;
19724fi
19725
19726
19727if test -n "$with_ltdl_lib"; then
19728 if test -f "$with_ltdl_lib/libltdl.la"; then :
19729 else
cristyfd9dcd42010-08-08 18:07:02 +000019730 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019731 fi
19732else
19733 with_ltdl_lib=no
19734fi
19735
19736case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19737 ,yes,no,no,)
19738 case $enable_ltdl_convenience in
cristyfd9dcd42010-08-08 18:07:02 +000019739 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000019740 "") enable_ltdl_convenience=yes
19741 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19742esac
19743LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19744LTDLDEPS=$LIBLTDL
19745LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19746
19747
19748
19749
19750
19751# For backwards non-gettext consistent compatibility...
19752INCLTDL="$LTDLINCL"
19753
19754
19755 ;;
19756 ,no,no,no,)
19757 # If the included ltdl is not to be used, then use the
19758 # preinstalled libltdl we found.
19759
cristy8b350f62009-11-15 23:12:43 +000019760$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019761
19762 LIBLTDL=-lltdl
19763 LTDLDEPS=
19764 LTDLINCL=
19765 ;;
19766 ,no*,no,*)
cristyfd9dcd42010-08-08 18:07:02 +000019767 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019768 ;;
19769 *) with_included_ltdl=no
19770 LIBLTDL="-L$with_ltdl_lib -lltdl"
19771 LTDLDEPS=
19772 LTDLINCL="-I$with_ltdl_include"
19773 ;;
19774esac
19775INCLTDL="$LTDLINCL"
19776
19777# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000019778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000019779$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019781$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000019783$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019785$as_echo "$LIBLTDL" >&6; }
19786
19787
19788
19789# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000019790if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019791 enableval=$enable_ltdl_install;
19792fi
19793
19794
19795case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19796 *yes*) ;;
19797 *) enable_ltdl_convenience=yes ;;
19798esac
19799
19800 if test x"${enable_ltdl_install-no}" != xno; then
19801 INSTALL_LTDL_TRUE=
19802 INSTALL_LTDL_FALSE='#'
19803else
19804 INSTALL_LTDL_TRUE='#'
19805 INSTALL_LTDL_FALSE=
19806fi
19807
19808 if test x"${enable_ltdl_convenience-no}" != xno; then
19809 CONVENIENCE_LTDL_TRUE=
19810 CONVENIENCE_LTDL_FALSE='#'
19811else
19812 CONVENIENCE_LTDL_TRUE='#'
19813 CONVENIENCE_LTDL_FALSE=
19814fi
19815
19816
19817
19818
19819
19820
cristy3ed852e2009-09-05 21:47:34 +000019821# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19822# the user used. This is so that ltdl.h can pick up the parent projects
19823# config.h file, The first file in AC_CONFIG_HEADERS must contain the
19824# definitions required by ltdl.c.
19825# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
19826
19827
19828
cristy3ed852e2009-09-05 21:47:34 +000019829for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000019830do :
19831 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19832ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19833"
cristyfd9dcd42010-08-08 18:07:02 +000019834if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019835 cat >>confdefs.h <<_ACEOF
19836#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19837_ACEOF
19838
19839fi
19840
19841done
19842
19843
cristy3ed852e2009-09-05 21:47:34 +000019844for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000019845do :
19846 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19847ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000019848if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019849 cat >>confdefs.h <<_ACEOF
19850#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19851_ACEOF
19852
19853else
19854
19855
19856 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
19857
19858fi
19859done
19860
cristy3ed852e2009-09-05 21:47:34 +000019861for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000019862do :
19863 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19864ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000019865if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019866 cat >>confdefs.h <<_ACEOF
19867#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19868_ACEOF
19869
19870else
19871
19872
19873 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
19874
19875fi
19876done
19877
19878
19879
19880cat >>confdefs.h <<_ACEOF
19881#define LT_LIBEXT "$libext"
19882_ACEOF
19883
19884
19885name=ltdl
19886LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
19887
19888
19889
19890
19891
19892
19893
19894
19895# Only expand once:
19896
19897
19898
19899# Check to see if building shared libraries
19900libtool_build_shared_libs='no'
19901if test "$enable_shared" = 'yes'; then
19902 libtool_build_shared_libs='yes'
19903fi
19904
19905# Check to see if building static libraries
19906libtool_build_static_libs='no'
19907if test "$enable_static" = 'yes'; then
19908 libtool_build_static_libs='yes'
19909fi
19910
cristyfa112112010-01-04 17:48:07 +000019911 if test "${libtool_build_shared_libs}" = 'yes'; then
19912 WITH_SHARED_LIBS_TRUE=
19913 WITH_SHARED_LIBS_FALSE='#'
19914else
19915 WITH_SHARED_LIBS_TRUE='#'
19916 WITH_SHARED_LIBS_FALSE=
cristy3ed852e2009-09-05 21:47:34 +000019917fi
19918
19919#
19920# Enable support for building loadable modules
19921#
19922
19923# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000019924if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019925 withval=$with_modules; with_modules=$withval
19926else
cristy5a1cefd2010-01-06 20:42:35 +000019927 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000019928fi
19929
19930
19931# Only allow building loadable modules if we are building shared libraries
19932if test "$with_modules" != 'no' ; then
19933 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000019934 { $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 +000019935$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
19936 with_modules='no'
19937 fi
19938fi
19939if test "$with_modules" != 'no'; then
19940
cristy8b350f62009-11-15 23:12:43 +000019941$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019942
19943fi
19944 if test "$with_modules" != 'no'; then
19945 WITH_MODULES_TRUE=
19946 WITH_MODULES_FALSE='#'
19947else
19948 WITH_MODULES_TRUE='#'
19949 WITH_MODULES_FALSE=
19950fi
19951
19952
19953# Enable building/use of libltdl if we are building shared libraries regardless
19954# of whether modules are built or not.
19955with_ltdl='no'
19956if test "$libtool_build_shared_libs" != 'no'; then
19957 with_ltdl='yes'
19958fi
19959
19960 if test "$with_ltdl" != 'no'; then
19961 WITH_LTDL_TRUE=
19962 WITH_LTDL_FALSE='#'
19963else
19964 WITH_LTDL_TRUE='#'
19965 WITH_LTDL_FALSE=
19966fi
19967
19968if test "$with_ltdl" != 'no'; then
19969
cristy8b350f62009-11-15 23:12:43 +000019970$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019971
19972
19973 # Set DLLDFLAGS
19974 if test X"$enable_shared" = Xyes; then
19975 DLLDFLAGS=-export-dynamic
19976
19977 fi
19978fi
19979
19980# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000019981# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000019982# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000019983if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019984 enableval=$enable_delegate_build; enable_delegate_build=$enableval
19985else
19986 enable_delegate_build='no'
19987fi
19988
19989
19990# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000019991if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019992 enableval=$enable_deprecated; enable_deprecated=$enableval
19993else
19994 enable_deprecated='no'
19995fi
19996
19997
19998if test "$enable_deprecated" = 'yes'; then
19999
cristy8b350f62009-11-15 23:12:43 +000020000$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020001
20002else
20003 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20004fi
20005
20006# Build a version of ImageMagick which operates uninstalled.
20007# Used to build distributions located via MAGICK_HOME / executable path
20008# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020009if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020010 enableval=$enable_installed; enable_installed=$enableval
20011else
20012 enable_installed='yes'
20013fi
20014
20015
20016if test "$enable_installed" = 'yes'; then
20017
cristy8b350f62009-11-15 23:12:43 +000020018$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020019
20020else
20021 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20022fi
20023
20024# Permit enciphering and deciphering image pixels.
20025# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020026if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020027 enableval=$enable_cipher; enable_cipher=$enableval
20028else
20029 enable_cipher='yes'
20030fi
20031
20032
20033if test "$enable_cipher" = 'yes'; then
20034
cristy8b350f62009-11-15 23:12:43 +000020035$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020036
20037fi
20038
20039# Build an embeddable version of ImageMagick.
20040# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020041if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020042 enableval=$enable_embeddable; enable_embeddable=$enableval
20043else
20044 enable_embeddable='no'
20045fi
20046
20047
20048if test "$enable_embeddable" = 'yes'; then
20049
cristy8b350f62009-11-15 23:12:43 +000020050$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020051
20052fi
20053
20054# Build a high dynamic range version of ImageMagick.
20055# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020056if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020057 enableval=$enable_hdri; enable_hdri=$enableval
20058else
20059 enable_hdri='no'
20060fi
20061
20062
20063MAGICK_HDRI=""
20064if test "$enable_hdri" = 'yes'; then
20065 MAGICK_HDRI="HDRI"
20066
cristy8b350f62009-11-15 23:12:43 +000020067$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020068
cristyfd9dcd42010-08-08 18:07:02 +000020069 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020070fi
20071
cristy3ed852e2009-09-05 21:47:34 +000020072# Build a version of ImageMagick with assert statements.
20073# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020074if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020075 enableval=$enable_assert; enable_assert=$enableval
20076else
20077 enable_assert='yes'
20078fi
20079
20080
20081if test "$enable_assert" = 'no'; then
20082
cristy8b350f62009-11-15 23:12:43 +000020083$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020084
20085fi
20086
20087# Add configure option --enable-maintainer-mode which enables dependency
20088# checking and generation useful to package maintainers. This is made an
20089# option to avoid confusing end users.
20090
cristy8b350f62009-11-15 23:12:43 +000020091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000020092$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20093 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000020094if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020095 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20096else
20097 USE_MAINTAINER_MODE=no
20098fi
20099
cristy8b350f62009-11-15 23:12:43 +000020100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000020101$as_echo "$USE_MAINTAINER_MODE" >&6; }
20102 if test $USE_MAINTAINER_MODE = yes; then
20103 MAINTAINER_MODE_TRUE=
20104 MAINTAINER_MODE_FALSE='#'
20105else
20106 MAINTAINER_MODE_TRUE='#'
20107 MAINTAINER_MODE_FALSE=
20108fi
20109
20110 MAINT=$MAINTAINER_MODE_TRUE
20111
20112
20113
20114
20115# Enable ccmalloc memory debugging support
20116# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020117if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020118 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20119else
20120 enable_ccmalloc='no'
20121fi
20122
20123
20124# Enable Electric Fence memory debugging support
20125# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020126if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020127 enableval=$enable_efence; enable_efence=$enableval
20128else
20129 enable_efence='no'
20130fi
20131
20132
20133# Enable prof-based profiling support
20134# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020135if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020136 enableval=$enable_prof; enable_prof=$enableval
20137else
20138 enable_prof='no'
20139fi
20140
20141
20142# Enable gprof-based profiling support
20143# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020144if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020145 enableval=$enable_gprof; enable_gprof=$enableval
20146else
20147 enable_gprof='no'
20148fi
20149
20150
20151# Enable gcov-based profiling support
20152# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020153if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020154 enableval=$enable_gcov; enable_gcov=$enableval
20155else
20156 enable_gcov='no'
20157fi
20158
20159
20160enable_profiling='no'
20161if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20162 enable_profiling='yes'
20163 if test "$libtool_build_shared_libs" = 'yes'; then
20164 echo "Warning: Can not profile code using shared libraries"
20165 fi
20166fi
20167
20168# Magick API method prefix
20169
20170# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020171if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020172 withval=$with_method_prefix; with_method_prefix=$enableval
20173else
20174 with_method_prefix=''
20175fi
20176
20177
20178if test "$with_method_prefix" != ''; then
20179
20180cat >>confdefs.h <<_ACEOF
20181#define NAMESPACE_PREFIX $with_method_prefix
20182_ACEOF
20183
20184fi
20185
20186# Number of bits in a Quantum
20187
20188# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020189if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020190 withval=$with_quantum_depth; with_quantum_depth=$withval
20191else
20192 with_quantum_depth=16
20193fi
20194
20195
20196if test "$with_quantum_depth" != '8'; then
20197 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20198fi
20199
20200case "${with_quantum_depth}" in
20201 8 ) ;;
20202 16 ) ;;
20203 32 ) ;;
20204 64 ) ;;
cristyfd9dcd42010-08-08 18:07:02 +000020205 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000020206esac
20207QUANTUM_DEPTH="$with_quantum_depth"
20208
20209cat >>confdefs.h <<_ACEOF
20210#define QUANTUM_DEPTH $QUANTUM_DEPTH
20211_ACEOF
20212
20213
20214# Set pixel cache threshold
20215
20216# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000020217if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020218 withval=$with_cache; with_cache=$withval
20219else
20220 with_cache=''
20221fi
20222
20223
20224if test "$with_cache" != ''; then
20225
20226cat >>confdefs.h <<_ACEOF
20227#define PixelCacheThreshold $with_cache
20228_ACEOF
20229
20230 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20231fi
20232
20233# Disable/Enable support for full delegate paths
20234
20235# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000020236if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020237 withval=$with_frozenpaths; with_frozenpaths=$withval
20238else
20239 with_frozenpaths='no'
20240fi
20241
20242
20243# Enable build/install of Magick++
20244
20245# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000020246if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020247 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20248else
20249 with_magick_plus_plus='yes'
20250fi
20251
20252
20253# Disable build/install of PerlMagick.
20254
20255# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000020256if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020257 withval=$with_perl; with_perl=$withval
20258else
cristyb5f4e2f2010-04-25 00:49:11 +000020259 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000020260fi
20261
20262
20263# Options to pass when configuring PerlMagick
20264
20265# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000020266if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000020267 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000020268fi
20269
20270
cristy3ed852e2009-09-05 21:47:34 +000020271
20272# Enable umem, object-caching memory allocation library.
20273
20274# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000020275if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020276 withval=$with_umem; with_umem=$withval
20277else
20278 with_umem='no'
20279fi
20280
20281if test "$with_umem" != 'yes' ; then
20282 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20283fi
20284
20285#
20286# Specify path to shared libstdc++ if not in normal location
20287#
20288
20289# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000020290if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020291 withval=$with_libstdc; with_libstdc=$withval
20292else
20293 with_libstdc=''
20294fi
20295
20296
20297if test "$with_libstdc" != ''; then
20298 if test -d "$with_libstdc"; then
20299 LIBSTDCLDFLAGS="-L$with_libstdc"
20300 fi
20301fi
20302
20303
20304# Does gcc required -traditional?
20305if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000020306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020307$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020308if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020309 $as_echo_n "(cached) " >&6
20310else
20311 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000020312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020313/* end confdefs.h. */
20314#include <sgtty.h>
20315Autoconf TIOCGETP
20316_ACEOF
20317if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020318 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020319 ac_cv_prog_gcc_traditional=yes
20320else
20321 ac_cv_prog_gcc_traditional=no
20322fi
20323rm -f conftest*
20324
20325
20326 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000020327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020328/* end confdefs.h. */
20329#include <termio.h>
20330Autoconf TCGETA
20331_ACEOF
20332if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020333 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020334 ac_cv_prog_gcc_traditional=yes
20335fi
20336rm -f conftest*
20337
20338 fi
20339fi
cristy8b350f62009-11-15 23:12:43 +000020340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020341$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20342 if test $ac_cv_prog_gcc_traditional = yes; then
20343 CC="$CC -traditional"
20344 fi
20345fi
20346
20347
20348########
20349#
20350# Set defines required to build DLLs and modules using MinGW
20351#
20352########
20353# These options are set for multi-thread DLL module build
20354# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20355# module: _DLL
20356# executable/Magick++: _DLL _MAGICKMOD_
20357MODULE_EXTRA_CPPFLAGS=''
20358LIBRARY_EXTRA_CPPFLAGS=''
20359if test "${native_win32_build}" = 'yes'; then
20360 if test "${libtool_build_shared_libs}" = 'yes'; then
20361 CPPFLAGS="$CPPFLAGS -D_DLL"
20362 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20363 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20364 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20365 if test "$with_modules" = 'yes'; then
20366 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20367 else
20368 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20369 fi
20370 else
20371 CPPFLAGS="$CPPFLAGS -D_LIB"
20372 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20373 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20374 fi
20375 if test "$with_threads" = 'yes'; then
20376 CPPFLAGS="$CPPFLAGS -D_MT"
20377 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20378 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20379 fi
20380fi
20381
20382
20383
20384# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000020385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000020386$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020387if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020388 $as_echo_n "(cached) " >&6
20389else
cristy8b350f62009-11-15 23:12:43 +000020390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020391/* end confdefs.h. */
20392#include <stdlib.h>
20393#include <stdarg.h>
20394#include <string.h>
20395#include <float.h>
20396
20397int
20398main ()
20399{
20400
20401 ;
20402 return 0;
20403}
20404_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020405if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020406 ac_cv_header_stdc=yes
20407else
cristy8b350f62009-11-15 23:12:43 +000020408 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020409fi
cristy3ed852e2009-09-05 21:47:34 +000020410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20411
20412if test $ac_cv_header_stdc = yes; then
20413 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020415/* end confdefs.h. */
20416#include <string.h>
20417
20418_ACEOF
20419if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020420 $EGREP "memchr" >/dev/null 2>&1; then :
20421
cristy3ed852e2009-09-05 21:47:34 +000020422else
20423 ac_cv_header_stdc=no
20424fi
20425rm -f conftest*
20426
20427fi
20428
20429if test $ac_cv_header_stdc = yes; then
20430 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020432/* end confdefs.h. */
20433#include <stdlib.h>
20434
20435_ACEOF
20436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020437 $EGREP "free" >/dev/null 2>&1; then :
20438
cristy3ed852e2009-09-05 21:47:34 +000020439else
20440 ac_cv_header_stdc=no
20441fi
20442rm -f conftest*
20443
20444fi
20445
20446if test $ac_cv_header_stdc = yes; then
20447 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000020448 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020449 :
20450else
cristy8b350f62009-11-15 23:12:43 +000020451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020452/* end confdefs.h. */
20453#include <ctype.h>
20454#include <stdlib.h>
20455#if ((' ' & 0x0FF) == 0x020)
20456# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20457# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20458#else
20459# define ISLOWER(c) \
20460 (('a' <= (c) && (c) <= 'i') \
20461 || ('j' <= (c) && (c) <= 'r') \
20462 || ('s' <= (c) && (c) <= 'z'))
20463# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20464#endif
20465
20466#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20467int
20468main ()
20469{
20470 int i;
20471 for (i = 0; i < 256; i++)
20472 if (XOR (islower (i), ISLOWER (i))
20473 || toupper (i) != TOUPPER (i))
20474 return 2;
20475 return 0;
20476}
20477_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020478if ac_fn_c_try_run "$LINENO"; then :
20479
cristy3ed852e2009-09-05 21:47:34 +000020480else
cristy8b350f62009-11-15 23:12:43 +000020481 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020482fi
cristy8b350f62009-11-15 23:12:43 +000020483rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20484 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020485fi
20486
cristy3ed852e2009-09-05 21:47:34 +000020487fi
20488fi
cristy8b350f62009-11-15 23:12:43 +000020489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000020490$as_echo "$ac_cv_header_stdc" >&6; }
20491if test $ac_cv_header_stdc = yes; then
20492
cristy8b350f62009-11-15 23:12:43 +000020493$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020494
20495fi
20496
20497if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000020498 { $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 +000020499 header files. Compilation cannot proceed. Please install the ANSI C
20500 headers and rerun this script." >&5
20501$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20502 header files. Compilation cannot proceed. Please install the ANSI C
20503 headers and rerun this script." >&2;};
20504fi
cristya0b81c32010-01-22 02:54:33 +000020505
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20507$as_echo_n "checking whether to enable assertions... " >&6; }
20508 # Check whether --enable-assert was given.
20509if test "${enable_assert+set}" = set; then :
20510 enableval=$enable_assert; ac_enable_assert=$enableval
20511 if test "x$enableval" = xno; then :
20512
20513$as_echo "#define NDEBUG 1" >>confdefs.h
20514
20515elif test "x$enableval" != xyes; then :
20516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20517$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20518 ac_enable_assert=yes
20519fi
20520else
20521 ac_enable_assert=yes
20522fi
20523
20524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20525$as_echo "$ac_enable_assert" >&6; }
20526
cristy3ed852e2009-09-05 21:47:34 +000020527ac_header_dirent=no
20528for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20529 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020531$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000020532if eval "test \"\${$as_ac_Header+set}\"" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020533 $as_echo_n "(cached) " >&6
20534else
cristy8b350f62009-11-15 23:12:43 +000020535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020536/* end confdefs.h. */
20537#include <sys/types.h>
20538#include <$ac_hdr>
20539
20540int
20541main ()
20542{
20543if ((DIR *) 0)
20544return 0;
20545 ;
20546 return 0;
20547}
20548_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020549if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020550 eval "$as_ac_Header=yes"
20551else
cristy8b350f62009-11-15 23:12:43 +000020552 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020553fi
cristy3ed852e2009-09-05 21:47:34 +000020554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20555fi
cristy8b350f62009-11-15 23:12:43 +000020556eval ac_res=\$$as_ac_Header
20557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020558$as_echo "$ac_res" >&6; }
cristyfd9dcd42010-08-08 18:07:02 +000020559if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000020560 cat >>confdefs.h <<_ACEOF
20561#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20562_ACEOF
20563
20564ac_header_dirent=$ac_hdr; break
20565fi
20566
20567done
20568# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20569if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020571$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020572if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020573 $as_echo_n "(cached) " >&6
20574else
20575 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020577/* end confdefs.h. */
20578
20579/* Override any GCC internal prototype to avoid an error.
20580 Use char because int might match the return type of a GCC
20581 builtin and then its argument prototype would still apply. */
20582#ifdef __cplusplus
20583extern "C"
20584#endif
20585char opendir ();
20586int
20587main ()
20588{
20589return opendir ();
20590 ;
20591 return 0;
20592}
20593_ACEOF
20594for ac_lib in '' dir; do
20595 if test -z "$ac_lib"; then
20596 ac_res="none required"
20597 else
20598 ac_res=-l$ac_lib
20599 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20600 fi
cristy8b350f62009-11-15 23:12:43 +000020601 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020602 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020603fi
cristy8b350f62009-11-15 23:12:43 +000020604rm -f core conftest.err conftest.$ac_objext \
20605 conftest$ac_exeext
20606 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020607 break
20608fi
20609done
cristy8b350f62009-11-15 23:12:43 +000020610if test "${ac_cv_search_opendir+set}" = set; then :
20611
cristy3ed852e2009-09-05 21:47:34 +000020612else
20613 ac_cv_search_opendir=no
20614fi
20615rm conftest.$ac_ext
20616LIBS=$ac_func_search_save_LIBS
20617fi
cristy8b350f62009-11-15 23:12:43 +000020618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020619$as_echo "$ac_cv_search_opendir" >&6; }
20620ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020621if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020622 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20623
20624fi
20625
20626else
cristy8b350f62009-11-15 23:12:43 +000020627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020628$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020629if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020630 $as_echo_n "(cached) " >&6
20631else
20632 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020634/* end confdefs.h. */
20635
20636/* Override any GCC internal prototype to avoid an error.
20637 Use char because int might match the return type of a GCC
20638 builtin and then its argument prototype would still apply. */
20639#ifdef __cplusplus
20640extern "C"
20641#endif
20642char opendir ();
20643int
20644main ()
20645{
20646return opendir ();
20647 ;
20648 return 0;
20649}
20650_ACEOF
20651for ac_lib in '' x; do
20652 if test -z "$ac_lib"; then
20653 ac_res="none required"
20654 else
20655 ac_res=-l$ac_lib
20656 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20657 fi
cristy8b350f62009-11-15 23:12:43 +000020658 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020659 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020660fi
cristy8b350f62009-11-15 23:12:43 +000020661rm -f core conftest.err conftest.$ac_objext \
20662 conftest$ac_exeext
20663 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020664 break
20665fi
20666done
cristy8b350f62009-11-15 23:12:43 +000020667if test "${ac_cv_search_opendir+set}" = set; then :
20668
cristy3ed852e2009-09-05 21:47:34 +000020669else
20670 ac_cv_search_opendir=no
20671fi
20672rm conftest.$ac_ext
20673LIBS=$ac_func_search_save_LIBS
20674fi
cristy8b350f62009-11-15 23:12:43 +000020675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020676$as_echo "$ac_cv_search_opendir" >&6; }
20677ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020678if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020679 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20680
20681fi
20682
20683fi
20684
20685
20686# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020687for 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 +000020688do :
20689 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20690ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyfd9dcd42010-08-08 18:07:02 +000020691if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000020692 cat >>confdefs.h <<_ACEOF
20693#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20694_ACEOF
20695
20696fi
20697
20698done
20699
20700
20701########
20702#
20703# Checks for typedefs, structures, and compiler characteristics.
20704#
20705########
20706
cristy8b350f62009-11-15 23:12:43 +000020707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020708$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020709if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020710 $as_echo_n "(cached) " >&6
20711else
cristy8b350f62009-11-15 23:12:43 +000020712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020713/* end confdefs.h. */
20714
20715#include <stdbool.h>
20716#ifndef bool
20717 "error: bool is not defined"
20718#endif
20719#ifndef false
20720 "error: false is not defined"
20721#endif
20722#if false
20723 "error: false is not 0"
20724#endif
20725#ifndef true
20726 "error: true is not defined"
20727#endif
20728#if true != 1
20729 "error: true is not 1"
20730#endif
20731#ifndef __bool_true_false_are_defined
20732 "error: __bool_true_false_are_defined is not defined"
20733#endif
20734
20735 struct s { _Bool s: 1; _Bool t; } s;
20736
20737 char a[true == 1 ? 1 : -1];
20738 char b[false == 0 ? 1 : -1];
20739 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20740 char d[(bool) 0.5 == true ? 1 : -1];
20741 bool e = &s;
20742 char f[(_Bool) 0.0 == false ? 1 : -1];
20743 char g[true];
20744 char h[sizeof (_Bool)];
20745 char i[sizeof s.t];
20746 enum { j = false, k = true, l = false * true, m = true * 256 };
20747 /* The following fails for
20748 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20749 _Bool n[m];
20750 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20751 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20752# if defined __xlc__ || defined __GNUC__
20753 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20754 reported by James Lemley on 2005-10-05; see
20755 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20756 This test is not quite right, since xlc is allowed to
20757 reject this program, as the initializer for xlcbug is
20758 not one of the forms that C requires support for.
20759 However, doing the test right would require a runtime
20760 test, and that would make cross-compilation harder.
20761 Let us hope that IBM fixes the xlc bug, and also adds
20762 support for this kind of constant expression. In the
20763 meantime, this test will reject xlc, which is OK, since
20764 our stdbool.h substitute should suffice. We also test
20765 this with GCC, where it should work, to detect more
20766 quickly whether someone messes up the test in the
20767 future. */
20768 char digs[] = "0123456789";
20769 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20770# endif
20771 /* Catch a bug in an HP-UX C compiler. See
20772 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20773 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20774 */
20775 _Bool q = true;
20776 _Bool *pq = &q;
20777
20778int
20779main ()
20780{
20781
20782 *pq |= q;
20783 *pq |= ! q;
20784 /* Refer to every declared value, to avoid compiler optimizations. */
20785 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20786 + !m + !n + !o + !p + !q + !pq);
20787
20788 ;
20789 return 0;
20790}
20791_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020792if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020793 ac_cv_header_stdbool_h=yes
20794else
cristy8b350f62009-11-15 23:12:43 +000020795 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000020796fi
cristy3ed852e2009-09-05 21:47:34 +000020797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20798fi
cristy8b350f62009-11-15 23:12:43 +000020799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000020800$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020801ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20802if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020803
20804cat >>confdefs.h <<_ACEOF
20805#define HAVE__BOOL 1
20806_ACEOF
20807
20808
20809fi
20810
20811if test $ac_cv_header_stdbool_h = yes; then
20812
cristy8b350f62009-11-15 23:12:43 +000020813$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020814
20815fi
20816
cristy8b350f62009-11-15 23:12:43 +000020817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020818$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020819if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020820 $as_echo_n "(cached) " >&6
20821else
cristy8b350f62009-11-15 23:12:43 +000020822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020823/* end confdefs.h. */
20824
20825int
20826main ()
20827{
20828
20829volatile int x;
20830int * volatile y = (int *) 0;
20831return !x && !y;
20832 ;
20833 return 0;
20834}
20835_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020836if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020837 ac_cv_c_volatile=yes
20838else
cristy8b350f62009-11-15 23:12:43 +000020839 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000020840fi
cristy3ed852e2009-09-05 21:47:34 +000020841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20842fi
cristy8b350f62009-11-15 23:12:43 +000020843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020844$as_echo "$ac_cv_c_volatile" >&6; }
20845if test $ac_cv_c_volatile = no; then
20846
cristy8b350f62009-11-15 23:12:43 +000020847$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020848
20849fi
20850
cristy8b350f62009-11-15 23:12:43 +000020851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000020852$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020853if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020854 $as_echo_n "(cached) " >&6
20855else
cristy8b350f62009-11-15 23:12:43 +000020856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020857/* end confdefs.h. */
20858#define x(y) #y
20859
20860char *s = x(teststring);
20861_ACEOF
20862if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020863 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020864 ac_cv_c_stringize=no
20865else
20866 ac_cv_c_stringize=yes
20867fi
20868rm -f conftest*
20869
20870fi
cristy8b350f62009-11-15 23:12:43 +000020871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000020872$as_echo "$ac_cv_c_stringize" >&6; }
20873if test $ac_cv_c_stringize = yes; then
20874
cristy8b350f62009-11-15 23:12:43 +000020875$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020876
20877fi
20878
cristy8b350f62009-11-15 23:12:43 +000020879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020880$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020881if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020882 $as_echo_n "(cached) " >&6
20883else
cristy8b350f62009-11-15 23:12:43 +000020884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020885/* end confdefs.h. */
20886#include <sys/types.h>
20887#include <sys/stat.h>
20888
20889#if defined S_ISBLK && defined S_IFDIR
20890extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20891#endif
20892
20893#if defined S_ISBLK && defined S_IFCHR
20894extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20895#endif
20896
20897#if defined S_ISLNK && defined S_IFREG
20898extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20899#endif
20900
20901#if defined S_ISSOCK && defined S_IFREG
20902extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20903#endif
20904
20905_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020906if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020907 ac_cv_header_stat_broken=no
20908else
cristy8b350f62009-11-15 23:12:43 +000020909 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000020910fi
cristy3ed852e2009-09-05 21:47:34 +000020911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20912fi
cristy8b350f62009-11-15 23:12:43 +000020913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020914$as_echo "$ac_cv_header_stat_broken" >&6; }
20915if test $ac_cv_header_stat_broken = yes; then
20916
cristy8b350f62009-11-15 23:12:43 +000020917$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020918
20919fi
20920
cristy8b350f62009-11-15 23:12:43 +000020921{ $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 +000020922$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020923if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020924 $as_echo_n "(cached) " >&6
20925else
cristy8b350f62009-11-15 23:12:43 +000020926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020927/* end confdefs.h. */
20928#include <sys/types.h>
20929#include <sys/time.h>
20930#include <time.h>
20931
20932int
20933main ()
20934{
20935if ((struct tm *) 0)
20936return 0;
20937 ;
20938 return 0;
20939}
20940_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020941if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020942 ac_cv_header_time=yes
20943else
cristy8b350f62009-11-15 23:12:43 +000020944 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000020945fi
cristy3ed852e2009-09-05 21:47:34 +000020946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20947fi
cristy8b350f62009-11-15 23:12:43 +000020948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000020949$as_echo "$ac_cv_header_time" >&6; }
20950if test $ac_cv_header_time = yes; then
20951
cristy8b350f62009-11-15 23:12:43 +000020952$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020953
20954fi
20955
cristy8b350f62009-11-15 23:12:43 +000020956{ $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 +000020957$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020958if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020959 $as_echo_n "(cached) " >&6
20960else
cristy8b350f62009-11-15 23:12:43 +000020961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020962/* end confdefs.h. */
20963#include <sys/types.h>
20964#include <time.h>
20965
20966int
20967main ()
20968{
20969struct tm tm;
20970 int *p = &tm.tm_sec;
20971 return !p;
20972 ;
20973 return 0;
20974}
20975_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020976if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020977 ac_cv_struct_tm=time.h
20978else
cristy8b350f62009-11-15 23:12:43 +000020979 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000020980fi
cristy3ed852e2009-09-05 21:47:34 +000020981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20982fi
cristy8b350f62009-11-15 23:12:43 +000020983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000020984$as_echo "$ac_cv_struct_tm" >&6; }
20985if test $ac_cv_struct_tm = sys/time.h; then
20986
cristy8b350f62009-11-15 23:12:43 +000020987$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020988
20989fi
20990
cristy92703d82010-04-26 00:18:18 +000020991ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
20992#include <$ac_cv_struct_tm>
20993
20994"
20995if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
20996
20997cat >>confdefs.h <<_ACEOF
20998#define HAVE_STRUCT_TM_TM_ZONE 1
20999_ACEOF
21000
21001
21002fi
21003
21004if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21005
21006$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21007
21008else
21009 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21010"
21011if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21012 ac_have_decl=1
21013else
21014 ac_have_decl=0
21015fi
21016
21017cat >>confdefs.h <<_ACEOF
21018#define HAVE_DECL_TZNAME $ac_have_decl
21019_ACEOF
21020
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21022$as_echo_n "checking for tzname... " >&6; }
21023if test "${ac_cv_var_tzname+set}" = set; then :
21024 $as_echo_n "(cached) " >&6
21025else
21026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21027/* end confdefs.h. */
21028#include <time.h>
21029#if !HAVE_DECL_TZNAME
21030extern char *tzname[];
21031#endif
21032
21033int
21034main ()
21035{
21036return tzname[0][0];
21037 ;
21038 return 0;
21039}
21040_ACEOF
21041if ac_fn_c_try_link "$LINENO"; then :
21042 ac_cv_var_tzname=yes
21043else
21044 ac_cv_var_tzname=no
21045fi
21046rm -f core conftest.err conftest.$ac_objext \
21047 conftest$ac_exeext conftest.$ac_ext
21048fi
21049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21050$as_echo "$ac_cv_var_tzname" >&6; }
21051 if test $ac_cv_var_tzname = yes; then
21052
21053$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21054
21055 fi
21056fi
21057
cristy8b350f62009-11-15 23:12:43 +000021058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021059$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021060if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021061 $as_echo_n "(cached) " >&6
21062else
21063 echo '#! /bin/cat
21064exit 69
21065' >conftest
21066chmod u+x conftest
21067(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21068if test $? -ne 69; then
21069 ac_cv_sys_interpreter=yes
21070else
21071 ac_cv_sys_interpreter=no
21072fi
21073rm -f conftest
21074fi
cristy8b350f62009-11-15 23:12:43 +000021075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021076$as_echo "$ac_cv_sys_interpreter" >&6; }
21077interpval=$ac_cv_sys_interpreter
21078
21079
cristy3ed852e2009-09-05 21:47:34 +000021080# If the C compiler supports the keyword inline, do nothing. Otherwise
21081# define inline to __inline__ or __inline if it accepts one of those,
21082# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021084$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021085if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021086 $as_echo_n "(cached) " >&6
21087else
21088 ac_cv_c_inline=no
21089for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021091/* end confdefs.h. */
21092#ifndef __cplusplus
21093typedef int foo_t;
21094static $ac_kw foo_t static_foo () {return 0; }
21095$ac_kw foo_t foo () {return 0; }
21096#endif
21097
21098_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021099if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021100 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021101fi
cristy3ed852e2009-09-05 21:47:34 +000021102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21103 test "$ac_cv_c_inline" != no && break
21104done
21105
21106fi
cristy8b350f62009-11-15 23:12:43 +000021107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021108$as_echo "$ac_cv_c_inline" >&6; }
21109
cristy3ed852e2009-09-05 21:47:34 +000021110case $ac_cv_c_inline in
21111 inline | yes) ;;
21112 *)
21113 case $ac_cv_c_inline in
21114 no) ac_val=;;
21115 *) ac_val=$ac_cv_c_inline;;
21116 esac
21117 cat >>confdefs.h <<_ACEOF
21118#ifndef __cplusplus
21119#define inline $ac_val
21120#endif
21121_ACEOF
21122 ;;
21123esac
21124
21125
21126# If the C compiler supports the keyword restrict, do nothing. Otherwise
21127# define restrict to __restrict__ or __restrict if it accepts one of those,
21128# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021130$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021131if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021132 $as_echo_n "(cached) " >&6
21133else
21134 ac_cv_c_restrict=no
21135 # The order here caters to the fact that C++ does not require restrict.
21136 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021138/* end confdefs.h. */
21139typedef int * int_ptr;
21140 int foo (int_ptr $ac_kw ip) {
21141 return ip[0];
21142 }
21143int
21144main ()
21145{
21146int s[1];
21147 int * $ac_kw t = s;
21148 t[0] = 0;
21149 return foo(t)
21150 ;
21151 return 0;
21152}
21153_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021154if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021155 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021156fi
cristy3ed852e2009-09-05 21:47:34 +000021157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21158 test "$ac_cv_c_restrict" != no && break
21159 done
21160
21161fi
cristy8b350f62009-11-15 23:12:43 +000021162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021163$as_echo "$ac_cv_c_restrict" >&6; }
21164
cristy3ed852e2009-09-05 21:47:34 +000021165 case $ac_cv_c_restrict in
21166 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021167 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021168 ;;
21169 *) cat >>confdefs.h <<_ACEOF
21170#define restrict $ac_cv_c_restrict
21171_ACEOF
21172 ;;
21173 esac
21174
21175
21176# If words are stored with the most significant byte first (like
21177# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021179$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021180if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021181 $as_echo_n "(cached) " >&6
21182else
21183 ac_cv_c_bigendian=unknown
21184 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021186/* end confdefs.h. */
21187#ifndef __APPLE_CC__
21188 not a universal capable compiler
21189 #endif
21190 typedef int dummy;
21191
21192_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021193if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021194
21195 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021196 # there are at least two -arch flags with different values.
21197 ac_arch=
21198 ac_prev=
21199 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21200 if test -n "$ac_prev"; then
21201 case $ac_word in
21202 i?86 | x86_64 | ppc | ppc64)
21203 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21204 ac_arch=$ac_word
21205 else
21206 ac_cv_c_bigendian=universal
21207 break
21208 fi
21209 ;;
21210 esac
21211 ac_prev=
21212 elif test "x$ac_word" = "x-arch"; then
21213 ac_prev=arch
21214 fi
21215 done
cristy3ed852e2009-09-05 21:47:34 +000021216fi
cristy3ed852e2009-09-05 21:47:34 +000021217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21218 if test $ac_cv_c_bigendian = unknown; then
21219 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000021220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021221/* end confdefs.h. */
21222#include <sys/types.h>
21223 #include <sys/param.h>
21224
21225int
21226main ()
21227{
21228#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21229 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21230 && LITTLE_ENDIAN)
21231 bogus endian macros
21232 #endif
21233
21234 ;
21235 return 0;
21236}
21237_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021238if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021239 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021241/* end confdefs.h. */
21242#include <sys/types.h>
21243 #include <sys/param.h>
21244
21245int
21246main ()
21247{
21248#if BYTE_ORDER != BIG_ENDIAN
21249 not big endian
21250 #endif
21251
21252 ;
21253 return 0;
21254}
21255_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021256if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021257 ac_cv_c_bigendian=yes
21258else
cristy8b350f62009-11-15 23:12:43 +000021259 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021260fi
cristy3ed852e2009-09-05 21:47:34 +000021261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021262fi
cristy3ed852e2009-09-05 21:47:34 +000021263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21264 fi
21265 if test $ac_cv_c_bigendian = unknown; then
21266 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000021267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021268/* end confdefs.h. */
21269#include <limits.h>
21270
21271int
21272main ()
21273{
21274#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21275 bogus endian macros
21276 #endif
21277
21278 ;
21279 return 0;
21280}
21281_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021282if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021283 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021285/* end confdefs.h. */
21286#include <limits.h>
21287
21288int
21289main ()
21290{
21291#ifndef _BIG_ENDIAN
21292 not big endian
21293 #endif
21294
21295 ;
21296 return 0;
21297}
21298_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021299if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021300 ac_cv_c_bigendian=yes
21301else
cristy8b350f62009-11-15 23:12:43 +000021302 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021303fi
cristy3ed852e2009-09-05 21:47:34 +000021304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021305fi
cristy3ed852e2009-09-05 21:47:34 +000021306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21307 fi
21308 if test $ac_cv_c_bigendian = unknown; then
21309 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000021310 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021311 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000021312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021313/* end confdefs.h. */
21314short int ascii_mm[] =
21315 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21316 short int ascii_ii[] =
21317 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21318 int use_ascii (int i) {
21319 return ascii_mm[i] + ascii_ii[i];
21320 }
21321 short int ebcdic_ii[] =
21322 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21323 short int ebcdic_mm[] =
21324 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21325 int use_ebcdic (int i) {
21326 return ebcdic_mm[i] + ebcdic_ii[i];
21327 }
21328 extern int foo;
21329
21330int
21331main ()
21332{
21333return use_ascii (foo) == use_ebcdic (foo);
21334 ;
21335 return 0;
21336}
21337_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021338if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021339 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21340 ac_cv_c_bigendian=yes
21341 fi
21342 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21343 if test "$ac_cv_c_bigendian" = unknown; then
21344 ac_cv_c_bigendian=no
21345 else
21346 # finding both strings is unlikely to happen, but who knows?
21347 ac_cv_c_bigendian=unknown
21348 fi
21349 fi
cristy3ed852e2009-09-05 21:47:34 +000021350fi
cristy3ed852e2009-09-05 21:47:34 +000021351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21352else
cristy8b350f62009-11-15 23:12:43 +000021353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021354/* end confdefs.h. */
21355$ac_includes_default
21356int
21357main ()
21358{
21359
21360 /* Are we little or big endian? From Harbison&Steele. */
21361 union
21362 {
21363 long int l;
21364 char c[sizeof (long int)];
21365 } u;
21366 u.l = 1;
21367 return u.c[sizeof (long int) - 1] == 1;
21368
21369 ;
21370 return 0;
21371}
21372_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021373if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021374 ac_cv_c_bigendian=no
21375else
cristy8b350f62009-11-15 23:12:43 +000021376 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000021377fi
cristy8b350f62009-11-15 23:12:43 +000021378rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21379 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021380fi
21381
cristy3ed852e2009-09-05 21:47:34 +000021382 fi
21383fi
cristy8b350f62009-11-15 23:12:43 +000021384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021385$as_echo "$ac_cv_c_bigendian" >&6; }
21386 case $ac_cv_c_bigendian in #(
21387 yes)
cristy8b350f62009-11-15 23:12:43 +000021388 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021389;; #(
21390 no)
21391 ;; #(
21392 universal)
21393
cristy8b350f62009-11-15 23:12:43 +000021394$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021395
21396 ;; #(
21397 *)
cristyfd9dcd42010-08-08 18:07:02 +000021398 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000021399 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021400 esac
21401
21402
21403# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021404ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21405if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021406
cristy3ed852e2009-09-05 21:47:34 +000021407else
21408
21409cat >>confdefs.h <<_ACEOF
21410#define mode_t int
21411_ACEOF
21412
21413fi
21414
21415
21416# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021417ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21418if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021419
cristy3ed852e2009-09-05 21:47:34 +000021420else
21421
21422cat >>confdefs.h <<_ACEOF
21423#define off_t long int
21424_ACEOF
21425
21426fi
21427
21428
21429# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021430ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21431if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021432
cristy3ed852e2009-09-05 21:47:34 +000021433else
21434
21435cat >>confdefs.h <<_ACEOF
21436#define pid_t int
21437_ACEOF
21438
21439fi
21440
21441
21442# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021443ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21444if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021445
cristy3ed852e2009-09-05 21:47:34 +000021446else
21447
21448cat >>confdefs.h <<_ACEOF
21449#define size_t unsigned int
21450_ACEOF
21451
21452fi
21453
21454
21455# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021456ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21457if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021458
cristy3ed852e2009-09-05 21:47:34 +000021459else
21460
21461cat >>confdefs.h <<_ACEOF
21462#define ssize_t int
21463_ACEOF
21464
21465fi
21466
21467
21468# If the C compiler supports a working long double type with more range
21469# or precision than the double type, define HAVE_LONG_DOUBLE.
21470
cristy8b350f62009-11-15 23:12:43 +000021471 { $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 +000021472$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021473if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021474 $as_echo_n "(cached) " >&6
21475else
cristy8b350f62009-11-15 23:12:43 +000021476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021477/* end confdefs.h. */
21478#include <float.h>
21479 long double const a[] =
21480 {
21481 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21482 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21483 };
21484 long double
21485 f (long double x)
21486 {
21487 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21488 + (x ? f (x) : 'c'));
21489 }
21490
21491int
21492main ()
21493{
21494static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21495 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21496 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21497 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21498 && (int) LDBL_EPSILON == 0
21499 )];
21500test_array [0] = 0
21501
21502 ;
21503 return 0;
21504}
21505_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021506if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021507 ac_cv_type_long_double_wider=yes
21508else
cristy8b350f62009-11-15 23:12:43 +000021509 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000021510fi
cristy3ed852e2009-09-05 21:47:34 +000021511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21512fi
cristy8b350f62009-11-15 23:12:43 +000021513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000021514$as_echo "$ac_cv_type_long_double_wider" >&6; }
21515 if test $ac_cv_type_long_double_wider = yes; then
21516
cristy8b350f62009-11-15 23:12:43 +000021517$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021518
21519 fi
21520
21521
21522# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21523# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000021524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021525$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021526if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021527 $as_echo_n "(cached) " >&6
21528else
cristy8b350f62009-11-15 23:12:43 +000021529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021530/* end confdefs.h. */
21531$ac_includes_default
21532int
21533main ()
21534{
21535static int test_array [1 - 2 * !(((char) -1) < 0)];
21536test_array [0] = 0
21537
21538 ;
21539 return 0;
21540}
21541_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021542if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021543 ac_cv_c_char_unsigned=no
21544else
cristy8b350f62009-11-15 23:12:43 +000021545 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000021546fi
cristy3ed852e2009-09-05 21:47:34 +000021547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21548fi
cristy8b350f62009-11-15 23:12:43 +000021549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021550$as_echo "$ac_cv_c_char_unsigned" >&6; }
21551if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000021552 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021553
21554fi
21555
21556
21557# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21558# The cast to long int works around a bug in the HP C Compiler
21559# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21560# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21561# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021563$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021564if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021565 $as_echo_n "(cached) " >&6
21566else
cristy8b350f62009-11-15 23:12:43 +000021567 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 +000021568
cristy3ed852e2009-09-05 21:47:34 +000021569else
cristy8b350f62009-11-15 23:12:43 +000021570 if test "$ac_cv_type_signed_short" = yes; then
21571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021573as_fn_error 77 "cannot compute sizeof (signed short)
21574See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021575 else
21576 ac_cv_sizeof_signed_short=0
21577 fi
21578fi
cristy8b350f62009-11-15 23:12:43 +000021579
cristy3ed852e2009-09-05 21:47:34 +000021580fi
cristy8b350f62009-11-15 23:12:43 +000021581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021582$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21583
21584
21585
21586cat >>confdefs.h <<_ACEOF
21587#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21588_ACEOF
21589
21590
21591
21592# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21593# The cast to long int works around a bug in the HP C Compiler
21594# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21595# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21596# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021598$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021599if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021600 $as_echo_n "(cached) " >&6
21601else
cristy8b350f62009-11-15 23:12:43 +000021602 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 +000021603
cristy3ed852e2009-09-05 21:47:34 +000021604else
cristy8b350f62009-11-15 23:12:43 +000021605 if test "$ac_cv_type_unsigned_short" = yes; then
21606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021608as_fn_error 77 "cannot compute sizeof (unsigned short)
21609See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021610 else
21611 ac_cv_sizeof_unsigned_short=0
21612 fi
21613fi
cristy8b350f62009-11-15 23:12:43 +000021614
cristy3ed852e2009-09-05 21:47:34 +000021615fi
cristy8b350f62009-11-15 23:12:43 +000021616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021617$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21618
21619
21620
21621cat >>confdefs.h <<_ACEOF
21622#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21623_ACEOF
21624
21625
21626
21627# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21628# The cast to long int works around a bug in the HP C Compiler
21629# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21630# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21631# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021633$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021634if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021635 $as_echo_n "(cached) " >&6
21636else
cristy8b350f62009-11-15 23:12:43 +000021637 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 +000021638
cristy3ed852e2009-09-05 21:47:34 +000021639else
cristy8b350f62009-11-15 23:12:43 +000021640 if test "$ac_cv_type_signed_int" = yes; then
21641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021643as_fn_error 77 "cannot compute sizeof (signed int)
21644See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021645 else
21646 ac_cv_sizeof_signed_int=0
21647 fi
21648fi
cristy8b350f62009-11-15 23:12:43 +000021649
cristy3ed852e2009-09-05 21:47:34 +000021650fi
cristy8b350f62009-11-15 23:12:43 +000021651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021652$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21653
21654
21655
21656cat >>confdefs.h <<_ACEOF
21657#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21658_ACEOF
21659
21660
21661
21662# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21663# The cast to long int works around a bug in the HP C Compiler
21664# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21665# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21666# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021668$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021669if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021670 $as_echo_n "(cached) " >&6
21671else
cristy8b350f62009-11-15 23:12:43 +000021672 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 +000021673
cristy3ed852e2009-09-05 21:47:34 +000021674else
cristy8b350f62009-11-15 23:12:43 +000021675 if test "$ac_cv_type_unsigned_int" = yes; then
21676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021678as_fn_error 77 "cannot compute sizeof (unsigned int)
21679See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021680 else
21681 ac_cv_sizeof_unsigned_int=0
21682 fi
21683fi
cristy8b350f62009-11-15 23:12:43 +000021684
cristy3ed852e2009-09-05 21:47:34 +000021685fi
cristy8b350f62009-11-15 23:12:43 +000021686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021687$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21688
21689
21690
21691cat >>confdefs.h <<_ACEOF
21692#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21693_ACEOF
21694
21695
21696
21697# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21698# The cast to long int works around a bug in the HP C Compiler
21699# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21700# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21701# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021703$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021704if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021705 $as_echo_n "(cached) " >&6
21706else
cristy8b350f62009-11-15 23:12:43 +000021707 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 +000021708
cristy3ed852e2009-09-05 21:47:34 +000021709else
cristy8b350f62009-11-15 23:12:43 +000021710 if test "$ac_cv_type_signed_long" = yes; then
21711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021713as_fn_error 77 "cannot compute sizeof (signed long)
21714See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021715 else
21716 ac_cv_sizeof_signed_long=0
21717 fi
21718fi
cristy8b350f62009-11-15 23:12:43 +000021719
cristy3ed852e2009-09-05 21:47:34 +000021720fi
cristy8b350f62009-11-15 23:12:43 +000021721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021722$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21723
21724
21725
21726cat >>confdefs.h <<_ACEOF
21727#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21728_ACEOF
21729
21730
21731
21732# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21733# The cast to long int works around a bug in the HP C Compiler
21734# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21735# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21736# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021738$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021739if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021740 $as_echo_n "(cached) " >&6
21741else
cristy8b350f62009-11-15 23:12:43 +000021742 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 +000021743
cristy3ed852e2009-09-05 21:47:34 +000021744else
cristy8b350f62009-11-15 23:12:43 +000021745 if test "$ac_cv_type_unsigned_long" = yes; then
21746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021748as_fn_error 77 "cannot compute sizeof (unsigned long)
21749See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021750 else
21751 ac_cv_sizeof_unsigned_long=0
21752 fi
21753fi
cristy8b350f62009-11-15 23:12:43 +000021754
cristy3ed852e2009-09-05 21:47:34 +000021755fi
cristy8b350f62009-11-15 23:12:43 +000021756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021757$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21758
21759
21760
21761cat >>confdefs.h <<_ACEOF
21762#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21763_ACEOF
21764
21765
21766
21767# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21768# 'signed long long' is not supported then the value defined is zero.
21769# The cast to long int works around a bug in the HP C Compiler
21770# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21771# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21772# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021774$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021775if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021776 $as_echo_n "(cached) " >&6
21777else
cristy8b350f62009-11-15 23:12:43 +000021778 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 +000021779
cristy3ed852e2009-09-05 21:47:34 +000021780else
cristy8b350f62009-11-15 23:12:43 +000021781 if test "$ac_cv_type_signed_long_long" = yes; then
21782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021783$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021784as_fn_error 77 "cannot compute sizeof (signed long long)
21785See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021786 else
21787 ac_cv_sizeof_signed_long_long=0
21788 fi
21789fi
cristy8b350f62009-11-15 23:12:43 +000021790
cristy3ed852e2009-09-05 21:47:34 +000021791fi
cristy8b350f62009-11-15 23:12:43 +000021792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021793$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21794
21795
21796
21797cat >>confdefs.h <<_ACEOF
21798#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21799_ACEOF
21800
21801
21802
21803# Obtain size of a 'unsigned long long' and define as
21804# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
21805# supported then the value defined is zero.
21806# The cast to long int works around a bug in the HP C Compiler
21807# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21808# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21809# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021811$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021812if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021813 $as_echo_n "(cached) " >&6
21814else
cristy8b350f62009-11-15 23:12:43 +000021815 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 +000021816
cristy3ed852e2009-09-05 21:47:34 +000021817else
cristy8b350f62009-11-15 23:12:43 +000021818 if test "$ac_cv_type_unsigned_long_long" = yes; then
21819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021820$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021821as_fn_error 77 "cannot compute sizeof (unsigned long long)
21822See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021823 else
21824 ac_cv_sizeof_unsigned_long_long=0
21825 fi
21826fi
cristy8b350f62009-11-15 23:12:43 +000021827
cristy3ed852e2009-09-05 21:47:34 +000021828fi
cristy8b350f62009-11-15 23:12:43 +000021829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021830$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
21831
21832
21833
21834cat >>confdefs.h <<_ACEOF
21835#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21836_ACEOF
21837
21838
21839
21840# Obtain size of off_t and define as SIZEOF_OFF_T
21841# The cast to long int works around a bug in the HP C Compiler
21842# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21843# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21844# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021846$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021847if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021848 $as_echo_n "(cached) " >&6
21849else
cristy8b350f62009-11-15 23:12:43 +000021850 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 +000021851
cristy3ed852e2009-09-05 21:47:34 +000021852else
cristy8b350f62009-11-15 23:12:43 +000021853 if test "$ac_cv_type_off_t" = yes; then
21854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021855$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021856as_fn_error 77 "cannot compute sizeof (off_t)
21857See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021858 else
21859 ac_cv_sizeof_off_t=0
21860 fi
21861fi
cristy8b350f62009-11-15 23:12:43 +000021862
cristy3ed852e2009-09-05 21:47:34 +000021863fi
cristy8b350f62009-11-15 23:12:43 +000021864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021865$as_echo "$ac_cv_sizeof_off_t" >&6; }
21866
21867
21868
21869cat >>confdefs.h <<_ACEOF
21870#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21871_ACEOF
21872
21873
21874
21875# Obtain size of size_t and define as SIZEOF_SIZE_T
21876# The cast to long int works around a bug in the HP C Compiler
21877# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21878# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21879# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021881$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021882if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021883 $as_echo_n "(cached) " >&6
21884else
cristy8b350f62009-11-15 23:12:43 +000021885 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 +000021886
cristy3ed852e2009-09-05 21:47:34 +000021887else
cristy8b350f62009-11-15 23:12:43 +000021888 if test "$ac_cv_type_size_t" = yes; then
21889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021890$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021891as_fn_error 77 "cannot compute sizeof (size_t)
21892See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021893 else
21894 ac_cv_sizeof_size_t=0
21895 fi
21896fi
cristy8b350f62009-11-15 23:12:43 +000021897
cristy3ed852e2009-09-05 21:47:34 +000021898fi
cristy8b350f62009-11-15 23:12:43 +000021899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021900$as_echo "$ac_cv_sizeof_size_t" >&6; }
21901
21902
21903
21904cat >>confdefs.h <<_ACEOF
21905#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21906_ACEOF
21907
21908
21909
cristy330e9352010-06-01 18:42:49 +000021910# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
21911# The cast to long int works around a bug in the HP C Compiler
21912# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21913# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21914# This bug is HP SR number 8606223364.
21915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
21916$as_echo_n "checking size of ssize_t... " >&6; }
21917if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
21918 $as_echo_n "(cached) " >&6
21919else
21920 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
21921
21922else
21923 if test "$ac_cv_type_ssize_t" = yes; then
21924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21925$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021926as_fn_error 77 "cannot compute sizeof (ssize_t)
21927See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000021928 else
21929 ac_cv_sizeof_ssize_t=0
21930 fi
21931fi
21932
21933fi
21934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
21935$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
21936
21937
21938
21939cat >>confdefs.h <<_ACEOF
21940#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
21941_ACEOF
21942
21943
21944
cristy3ed852e2009-09-05 21:47:34 +000021945# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
21946# The cast to long int works around a bug in the HP C Compiler
21947# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21948# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21949# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000021951$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021952if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021953 $as_echo_n "(cached) " >&6
21954else
cristy8b350f62009-11-15 23:12:43 +000021955 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 +000021956
cristy3ed852e2009-09-05 21:47:34 +000021957else
cristy8b350f62009-11-15 23:12:43 +000021958 if test "$ac_cv_type_unsigned_intp" = yes; then
21959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021960$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristyfd9dcd42010-08-08 18:07:02 +000021961as_fn_error 77 "cannot compute sizeof (unsigned int*)
21962See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021963 else
21964 ac_cv_sizeof_unsigned_intp=0
21965 fi
21966fi
cristy8b350f62009-11-15 23:12:43 +000021967
cristy3ed852e2009-09-05 21:47:34 +000021968fi
cristy8b350f62009-11-15 23:12:43 +000021969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021970$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
21971
21972
21973
21974cat >>confdefs.h <<_ACEOF
21975#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
21976_ACEOF
21977
21978
21979
21980#
21981# Compute sized types for current CPU and compiler options.
21982#
21983
cristy8b350f62009-11-15 23:12:43 +000021984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021985$as_echo_n "checking for signed 8-bit type... " >&6; }
21986INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000021987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021988$as_echo "$INT8_T" >&6; }
21989
21990
cristy8b350f62009-11-15 23:12:43 +000021991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021992$as_echo_n "checking for unsigned 8-bit type... " >&6; }
21993UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000021994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021995$as_echo "$UINT8_T" >&6; }
21996
21997
cristy8b350f62009-11-15 23:12:43 +000021998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021999$as_echo_n "checking for signed 16-bit type... " >&6; }
22000INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022002$as_echo "$INT16_T" >&6; }
22003
22004
cristy8b350f62009-11-15 23:12:43 +000022005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022006$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22007UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022009$as_echo "$UINT16_T" >&6; }
22010
22011
cristy8b350f62009-11-15 23:12:43 +000022012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022013$as_echo_n "checking for signed 32-bit type... " >&6; }
22014INT32_T='none'
22015if test $ac_cv_sizeof_signed_int -eq 4; then
22016 INT32_T='signed int'
22017elif test $ac_cv_sizeof_signed_long -eq 4; then
22018 INT32_T='signed long'
22019fi
cristy8b350f62009-11-15 23:12:43 +000022020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022021$as_echo "$INT32_T" >&6; }
22022
22023
cristy8b350f62009-11-15 23:12:43 +000022024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022025$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22026UINT32_T='none'
22027if test $ac_cv_sizeof_unsigned_int -eq 4; then
22028 UINT32_T='unsigned int'
22029elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22030 UINT32_T='unsigned long'
22031fi
cristy8b350f62009-11-15 23:12:43 +000022032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022033$as_echo "$UINT32_T" >&6; }
22034
22035
cristy8b350f62009-11-15 23:12:43 +000022036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022037$as_echo_n "checking for signed 64-bit type... " >&6; }
22038INT64_T='none'
22039if test $ac_cv_sizeof_signed_long -eq 8; then
22040 INT64_T='signed long'
22041elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22042 INT64_T='signed long long'
22043fi
cristy8b350f62009-11-15 23:12:43 +000022044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022045$as_echo "$INT64_T" >&6; }
22046
22047
cristy8b350f62009-11-15 23:12:43 +000022048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022049$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22050UINT64_T='none'
22051if test $ac_cv_sizeof_unsigned_long -eq 8; then
22052 UINT64_T='unsigned long'
22053elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22054 UINT64_T='unsigned long long'
22055fi
cristy8b350f62009-11-15 23:12:43 +000022056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022057$as_echo "$UINT64_T" >&6; }
22058
22059
cristy8b350f62009-11-15 23:12:43 +000022060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022061$as_echo_n "checking for unsigned maximum type... " >&6; }
22062UINTMAX_T='none'
22063if test "$UINT64_T" != 'none'; then
22064 UINTMAX_T=$UINT64_T
22065elif test "$UINT32_T" != 'none'; then
22066 UINTMAX_T=$UINT32_T
22067fi
cristy8b350f62009-11-15 23:12:43 +000022068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022069$as_echo "$UINTMAX_T" >&6; }
22070
22071
cristy8b350f62009-11-15 23:12:43 +000022072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022073$as_echo_n "checking for pointer difference type... " >&6; }
22074UINTPTR_T='none'
22075if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22076 UINTPTR_T='unsigned long'
22077elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22078 UINTPTR_T='unsigned long long'
22079fi
cristy8b350f62009-11-15 23:12:43 +000022080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022081$as_echo "$UINTPTR_T" >&6; }
22082
22083
cristy8b350f62009-11-15 23:12:43 +000022084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022085$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022087/* end confdefs.h. */
22088
22089int
22090main ()
22091{
22092{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22093 ;
22094 return 0;
22095}
22096_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022097if ac_fn_c_try_compile "$LINENO"; then :
22098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022099$as_echo "yes" >&6; }
22100else
cristy8b350f62009-11-15 23:12:43 +000022101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022102$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022104$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022106/* end confdefs.h. */
22107
22108int
22109main ()
22110{
22111{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22112 ;
22113 return 0;
22114}
22115_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022116if ac_fn_c_try_compile "$LINENO"; then :
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022118$as_echo "yes" >&6; }
22119
cristy8b350f62009-11-15 23:12:43 +000022120$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022121
22122else
cristy8b350f62009-11-15 23:12:43 +000022123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022124$as_echo "no" >&6; }
22125
cristy8b350f62009-11-15 23:12:43 +000022126$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022127
22128fi
cristy3ed852e2009-09-05 21:47:34 +000022129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22130fi
cristy3ed852e2009-09-05 21:47:34 +000022131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22132
22133########
22134#
22135# Check for functions
22136#
22137########
cristy3ed852e2009-09-05 21:47:34 +000022138for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000022139do :
22140 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22141ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyfd9dcd42010-08-08 18:07:02 +000022142if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022143 cat >>confdefs.h <<_ACEOF
22144#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22145_ACEOF
22146
22147fi
22148
22149done
22150
cristy3ed852e2009-09-05 21:47:34 +000022151for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022152do :
22153 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22154if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022155 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022156#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022157_ACEOF
22158
22159fi
22160done
22161
cristy8b350f62009-11-15 23:12:43 +000022162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000022163$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022164if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022165 $as_echo_n "(cached) " >&6
22166else
cristy8b350f62009-11-15 23:12:43 +000022167 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022168 magick_cv_func_mmap_fileio=no
22169else
cristy8b350f62009-11-15 23:12:43 +000022170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022171/* end confdefs.h. */
22172$ac_includes_default
22173/* malloc might have been renamed as rpl_malloc. */
22174#undef malloc
22175
22176/*
22177 This test is derived from GNU Autoconf's similar macro.
22178 The purpose of this test is to verify that files may be memory
22179 mapped, and that memory mapping and file I/O are coherent.
22180
22181 The test creates a test file, memory maps the file, updates
22182 the file using the memory map, and then reads the file using
22183 file I/O to verify that the file contains the updates.
22184*/
22185
22186#include <fcntl.h>
22187#include <sys/mman.h>
22188
22189#if !STDC_HEADERS && !HAVE_STDLIB_H
22190char *malloc ();
22191#endif
22192
22193/* This mess was copied from the GNU getpagesize.h. */
22194#if !HAVE_GETPAGESIZE
22195/* Assume that all systems that can run configure have sys/param.h. */
22196# if !HAVE_SYS_PARAM_H
22197# define HAVE_SYS_PARAM_H 1
22198# endif
22199
22200# ifdef _SC_PAGESIZE
22201# define getpagesize() sysconf(_SC_PAGESIZE)
22202# else /* no _SC_PAGESIZE */
22203# if HAVE_SYS_PARAM_H
22204# include <sys/param.h>
22205# ifdef EXEC_PAGESIZE
22206# define getpagesize() EXEC_PAGESIZE
22207# else /* no EXEC_PAGESIZE */
22208# ifdef NBPG
22209# define getpagesize() NBPG * CLSIZE
22210# ifndef CLSIZE
22211# define CLSIZE 1
22212# endif /* no CLSIZE */
22213# else /* no NBPG */
22214# ifdef NBPC
22215# define getpagesize() NBPC
22216# else /* no NBPC */
22217# ifdef PAGESIZE
22218# define getpagesize() PAGESIZE
22219# endif /* PAGESIZE */
22220# endif /* no NBPC */
22221# endif /* no NBPG */
22222# endif /* no EXEC_PAGESIZE */
22223# else /* no HAVE_SYS_PARAM_H */
22224# define getpagesize() 8192 /* punt totally */
22225# endif /* no HAVE_SYS_PARAM_H */
22226# endif /* no _SC_PAGESIZE */
22227
22228#endif /* no HAVE_GETPAGESIZE */
22229
22230int
22231main ()
22232{
22233 char *data, *data2, *data3;
22234 int i, pagesize;
22235 int fd;
22236
22237 pagesize = getpagesize ();
22238
22239 /* First, make a file with some known garbage in it. */
22240 data = (char *) malloc (pagesize);
22241 if (!data)
22242 exit (1);
22243 for (i = 0; i < pagesize; ++i)
22244 *(data + i) = rand ();
22245 umask (0);
22246 fd = creat ("conftest.mmap", 0600);
22247 if (fd < 0)
22248 exit (1);
22249 if (write (fd, data, pagesize) != pagesize)
22250 exit (1);
22251 close (fd);
22252
22253 /* Mmap the file as read/write/shared and verify that we see the
22254 same garbage. */
22255 fd = open ("conftest.mmap", O_RDWR);
22256 if (fd < 0)
22257 exit (1);
22258 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22259 if (data2 == 0)
22260 exit (1);
22261 for (i = 0; i < pagesize; ++i)
22262 if (*(data + i) != *(data2 + i))
22263 exit (1);
22264
22265 /* Finally, make sure that changes to the mapped area
22266 percolate back to the file as seen by read(). */
22267 for (i = 0; i < pagesize; ++i)
22268 *(data2 + i) = *(data2 + i) + 1;
22269 data3 = (char *) malloc (pagesize);
22270 if (!data3)
22271 exit (1);
22272 if (read (fd, data3, pagesize) != pagesize)
22273 exit (1);
22274 for (i = 0; i < pagesize; ++i)
22275 if (*(data2 + i) != *(data3 + i))
22276 exit (1);
22277 close (fd);
22278 exit (0);
22279}
22280_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022281if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022282 magick_cv_func_mmap_fileio=yes
22283else
cristy8b350f62009-11-15 23:12:43 +000022284 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000022285fi
cristy8b350f62009-11-15 23:12:43 +000022286rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22287 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022288fi
22289
cristy3ed852e2009-09-05 21:47:34 +000022290fi
cristy8b350f62009-11-15 23:12:43 +000022291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000022292$as_echo "$magick_cv_func_mmap_fileio" >&6; }
22293if test $magick_cv_func_mmap_fileio = yes; then
22294
cristy8b350f62009-11-15 23:12:43 +000022295$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022296
22297fi
22298rm -f conftest.mmap
22299
cristy8b350f62009-11-15 23:12:43 +000022300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022301$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022302if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022303 $as_echo_n "(cached) " >&6
22304else
cristy8b350f62009-11-15 23:12:43 +000022305 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022306 ac_cv_func_closedir_void=yes
22307else
cristy8b350f62009-11-15 23:12:43 +000022308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022309/* end confdefs.h. */
22310$ac_includes_default
22311#include <$ac_header_dirent>
22312#ifndef __cplusplus
22313int closedir ();
22314#endif
22315
22316int
22317main ()
22318{
22319return closedir (opendir (".")) != 0;
22320 ;
22321 return 0;
22322}
22323_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022324if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022325 ac_cv_func_closedir_void=no
22326else
cristy8b350f62009-11-15 23:12:43 +000022327 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000022328fi
cristy8b350f62009-11-15 23:12:43 +000022329rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22330 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022331fi
22332
cristy3ed852e2009-09-05 21:47:34 +000022333fi
cristy8b350f62009-11-15 23:12:43 +000022334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022335$as_echo "$ac_cv_func_closedir_void" >&6; }
22336if test $ac_cv_func_closedir_void = yes; then
22337
cristy8b350f62009-11-15 23:12:43 +000022338$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022339
22340fi
22341
cristycd4c5312009-11-22 01:19:08 +000022342
22343
22344
22345 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000022346do :
22347 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000022348ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22349"
cristyfd9dcd42010-08-08 18:07:02 +000022350if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022351 cat >>confdefs.h <<_ACEOF
22352#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22353_ACEOF
22354
22355fi
22356
22357done
22358
cristycd4c5312009-11-22 01:19:08 +000022359
22360
22361
22362
22363
22364
22365
cristy3ed852e2009-09-05 21:47:34 +000022366for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022367do :
22368 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22369if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022370 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022371#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022372_ACEOF
22373
22374fi
22375done
22376
cristy8b350f62009-11-15 23:12:43 +000022377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000022378$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022379if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022380 $as_echo_n "(cached) " >&6
22381else
cristy8b350f62009-11-15 23:12:43 +000022382 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022383 ac_cv_func_mmap_fixed_mapped=no
22384else
cristy8b350f62009-11-15 23:12:43 +000022385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022386/* end confdefs.h. */
22387$ac_includes_default
22388/* malloc might have been renamed as rpl_malloc. */
22389#undef malloc
22390
22391/* Thanks to Mike Haertel and Jim Avera for this test.
22392 Here is a matrix of mmap possibilities:
22393 mmap private not fixed
22394 mmap private fixed at somewhere currently unmapped
22395 mmap private fixed at somewhere already mapped
22396 mmap shared not fixed
22397 mmap shared fixed at somewhere currently unmapped
22398 mmap shared fixed at somewhere already mapped
22399 For private mappings, we should verify that changes cannot be read()
22400 back from the file, nor mmap's back from the file at a different
22401 address. (There have been systems where private was not correctly
22402 implemented like the infamous i386 svr4.0, and systems where the
22403 VM page cache was not coherent with the file system buffer cache
22404 like early versions of FreeBSD and possibly contemporary NetBSD.)
22405 For shared mappings, we should conversely verify that changes get
22406 propagated back to all the places they're supposed to be.
22407
22408 Grep wants private fixed already mapped.
22409 The main things grep needs to know about mmap are:
22410 * does it exist and is it safe to write into the mmap'd area
22411 * how to use it (BSD variants) */
22412
22413#include <fcntl.h>
22414#include <sys/mman.h>
22415
22416#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22417char *malloc ();
22418#endif
22419
22420/* This mess was copied from the GNU getpagesize.h. */
22421#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000022422# ifdef _SC_PAGESIZE
22423# define getpagesize() sysconf(_SC_PAGESIZE)
22424# else /* no _SC_PAGESIZE */
22425# ifdef HAVE_SYS_PARAM_H
22426# include <sys/param.h>
22427# ifdef EXEC_PAGESIZE
22428# define getpagesize() EXEC_PAGESIZE
22429# else /* no EXEC_PAGESIZE */
22430# ifdef NBPG
22431# define getpagesize() NBPG * CLSIZE
22432# ifndef CLSIZE
22433# define CLSIZE 1
22434# endif /* no CLSIZE */
22435# else /* no NBPG */
22436# ifdef NBPC
22437# define getpagesize() NBPC
22438# else /* no NBPC */
22439# ifdef PAGESIZE
22440# define getpagesize() PAGESIZE
22441# endif /* PAGESIZE */
22442# endif /* no NBPC */
22443# endif /* no NBPG */
22444# endif /* no EXEC_PAGESIZE */
22445# else /* no HAVE_SYS_PARAM_H */
22446# define getpagesize() 8192 /* punt totally */
22447# endif /* no HAVE_SYS_PARAM_H */
22448# endif /* no _SC_PAGESIZE */
22449
22450#endif /* no HAVE_GETPAGESIZE */
22451
22452int
22453main ()
22454{
22455 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000022456 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000022457 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000022458 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000022459
22460 pagesize = getpagesize ();
22461
22462 /* First, make a file with some known garbage in it. */
22463 data = (char *) malloc (pagesize);
22464 if (!data)
22465 return 1;
22466 for (i = 0; i < pagesize; ++i)
22467 *(data + i) = rand ();
22468 umask (0);
22469 fd = creat ("conftest.mmap", 0600);
22470 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022471 return 2;
cristy3ed852e2009-09-05 21:47:34 +000022472 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022473 return 3;
cristy3ed852e2009-09-05 21:47:34 +000022474 close (fd);
22475
cristycd4c5312009-11-22 01:19:08 +000022476 /* Next, check that the tail of a page is zero-filled. File must have
22477 non-zero length, otherwise we risk SIGBUS for entire page. */
22478 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22479 if (fd2 < 0)
22480 return 4;
cristyc54f5d42009-11-27 21:36:31 +000022481 cdata2 = "";
22482 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000022483 return 5;
cristyc54f5d42009-11-27 21:36:31 +000022484 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000022485 if (data2 == MAP_FAILED)
22486 return 6;
22487 for (i = 0; i < pagesize; ++i)
22488 if (*(data2 + i))
22489 return 7;
22490 close (fd2);
22491 if (munmap (data2, pagesize))
22492 return 8;
22493
cristy3ed852e2009-09-05 21:47:34 +000022494 /* Next, try to mmap the file at a fixed address which already has
22495 something else allocated at it. If we can, also make sure that
22496 we see the same garbage. */
22497 fd = open ("conftest.mmap", O_RDWR);
22498 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022499 return 9;
cristy3ed852e2009-09-05 21:47:34 +000022500 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22501 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000022502 return 10;
cristy3ed852e2009-09-05 21:47:34 +000022503 for (i = 0; i < pagesize; ++i)
22504 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000022505 return 11;
cristy3ed852e2009-09-05 21:47:34 +000022506
22507 /* Finally, make sure that changes to the mapped area do not
22508 percolate back to the file as seen by read(). (This is a bug on
22509 some variants of i386 svr4.0.) */
22510 for (i = 0; i < pagesize; ++i)
22511 *(data2 + i) = *(data2 + i) + 1;
22512 data3 = (char *) malloc (pagesize);
22513 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000022514 return 12;
cristy3ed852e2009-09-05 21:47:34 +000022515 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022516 return 13;
cristy3ed852e2009-09-05 21:47:34 +000022517 for (i = 0; i < pagesize; ++i)
22518 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000022519 return 14;
cristy3ed852e2009-09-05 21:47:34 +000022520 close (fd);
22521 return 0;
22522}
22523_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022524if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022525 ac_cv_func_mmap_fixed_mapped=yes
22526else
cristy8b350f62009-11-15 23:12:43 +000022527 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000022528fi
cristy8b350f62009-11-15 23:12:43 +000022529rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22530 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022531fi
22532
cristy3ed852e2009-09-05 21:47:34 +000022533fi
cristy8b350f62009-11-15 23:12:43 +000022534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000022535$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22536if test $ac_cv_func_mmap_fixed_mapped = yes; then
22537
cristy8b350f62009-11-15 23:12:43 +000022538$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022539
22540fi
cristycd4c5312009-11-22 01:19:08 +000022541rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000022542
cristy3ed852e2009-09-05 21:47:34 +000022543for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000022544do :
22545 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22546if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022547 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022548#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000022549_ACEOF
22550
22551fi
22552
22553done
22554
cristy3ed852e2009-09-05 21:47:34 +000022555for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000022556do :
22557 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22558ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000022559if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022560 cat >>confdefs.h <<_ACEOF
22561#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22562_ACEOF
22563
22564fi
22565done
22566
22567if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022569$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022570if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022571 $as_echo_n "(cached) " >&6
22572else
cristy8b350f62009-11-15 23:12:43 +000022573 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022574 ac_cv_func_fork_works=cross
22575else
cristy8b350f62009-11-15 23:12:43 +000022576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022577/* end confdefs.h. */
22578$ac_includes_default
22579int
22580main ()
22581{
22582
22583 /* By Ruediger Kuhlmann. */
22584 return fork () < 0;
22585
22586 ;
22587 return 0;
22588}
22589_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022590if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022591 ac_cv_func_fork_works=yes
22592else
cristy8b350f62009-11-15 23:12:43 +000022593 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022594fi
cristy8b350f62009-11-15 23:12:43 +000022595rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22596 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022597fi
22598
cristy3ed852e2009-09-05 21:47:34 +000022599fi
cristy8b350f62009-11-15 23:12:43 +000022600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022601$as_echo "$ac_cv_func_fork_works" >&6; }
22602
22603else
22604 ac_cv_func_fork_works=$ac_cv_func_fork
22605fi
22606if test "x$ac_cv_func_fork_works" = xcross; then
22607 case $host in
22608 *-*-amigaos* | *-*-msdosdjgpp*)
22609 # Override, as these systems have only a dummy fork() stub
22610 ac_cv_func_fork_works=no
22611 ;;
22612 *)
22613 ac_cv_func_fork_works=yes
22614 ;;
22615 esac
cristy8b350f62009-11-15 23:12:43 +000022616 { $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 +000022617$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22618fi
22619ac_cv_func_vfork_works=$ac_cv_func_vfork
22620if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022622$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022623if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022624 $as_echo_n "(cached) " >&6
22625else
cristy8b350f62009-11-15 23:12:43 +000022626 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022627 ac_cv_func_vfork_works=cross
22628else
cristy8b350f62009-11-15 23:12:43 +000022629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022630/* end confdefs.h. */
22631/* Thanks to Paul Eggert for this test. */
22632$ac_includes_default
22633#include <sys/wait.h>
22634#ifdef HAVE_VFORK_H
22635# include <vfork.h>
22636#endif
22637/* On some sparc systems, changes by the child to local and incoming
22638 argument registers are propagated back to the parent. The compiler
22639 is told about this with #include <vfork.h>, but some compilers
22640 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22641 static variable whose address is put into a register that is
22642 clobbered by the vfork. */
22643static void
22644#ifdef __cplusplus
22645sparc_address_test (int arg)
22646# else
22647sparc_address_test (arg) int arg;
22648#endif
22649{
22650 static pid_t child;
22651 if (!child) {
22652 child = vfork ();
22653 if (child < 0) {
22654 perror ("vfork");
22655 _exit(2);
22656 }
22657 if (!child) {
22658 arg = getpid();
22659 write(-1, "", 0);
22660 _exit (arg);
22661 }
22662 }
22663}
22664
22665int
22666main ()
22667{
22668 pid_t parent = getpid ();
22669 pid_t child;
22670
22671 sparc_address_test (0);
22672
22673 child = vfork ();
22674
22675 if (child == 0) {
22676 /* Here is another test for sparc vfork register problems. This
22677 test uses lots of local variables, at least as many local
22678 variables as main has allocated so far including compiler
22679 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22680 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22681 reuse the register of parent for one of the local variables,
22682 since it will think that parent can't possibly be used any more
22683 in this routine. Assigning to the local variable will thus
22684 munge parent in the parent process. */
22685 pid_t
22686 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22687 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22688 /* Convince the compiler that p..p7 are live; otherwise, it might
22689 use the same hardware register for all 8 local variables. */
22690 if (p != p1 || p != p2 || p != p3 || p != p4
22691 || p != p5 || p != p6 || p != p7)
22692 _exit(1);
22693
22694 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22695 from child file descriptors. If the child closes a descriptor
22696 before it execs or exits, this munges the parent's descriptor
22697 as well. Test for this by closing stdout in the child. */
22698 _exit(close(fileno(stdout)) != 0);
22699 } else {
22700 int status;
22701 struct stat st;
22702
22703 while (wait(&status) != child)
22704 ;
22705 return (
22706 /* Was there some problem with vforking? */
22707 child < 0
22708
22709 /* Did the child fail? (This shouldn't happen.) */
22710 || status
22711
22712 /* Did the vfork/compiler bug occur? */
22713 || parent != getpid()
22714
22715 /* Did the file descriptor bug occur? */
22716 || fstat(fileno(stdout), &st) != 0
22717 );
22718 }
22719}
22720_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022721if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022722 ac_cv_func_vfork_works=yes
22723else
cristy8b350f62009-11-15 23:12:43 +000022724 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022725fi
cristy8b350f62009-11-15 23:12:43 +000022726rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22727 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022728fi
22729
cristy3ed852e2009-09-05 21:47:34 +000022730fi
cristy8b350f62009-11-15 23:12:43 +000022731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022732$as_echo "$ac_cv_func_vfork_works" >&6; }
22733
22734fi;
22735if test "x$ac_cv_func_fork_works" = xcross; then
22736 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022737 { $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 +000022738$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22739fi
22740
22741if test "x$ac_cv_func_vfork_works" = xyes; then
22742
cristy8b350f62009-11-15 23:12:43 +000022743$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022744
22745else
22746
cristy8b350f62009-11-15 23:12:43 +000022747$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022748
22749fi
22750if test "x$ac_cv_func_fork_works" = xyes; then
22751
cristy8b350f62009-11-15 23:12:43 +000022752$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022753
22754fi
22755
cristy8b350f62009-11-15 23:12:43 +000022756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022757$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022758if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022759 $as_echo_n "(cached) " >&6
22760else
cristy8b350f62009-11-15 23:12:43 +000022761 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022762 ac_cv_func_memcmp_working=no
22763else
cristy8b350f62009-11-15 23:12:43 +000022764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022765/* end confdefs.h. */
22766$ac_includes_default
22767int
22768main ()
22769{
22770
22771 /* Some versions of memcmp are not 8-bit clean. */
22772 char c0 = '\100', c1 = '\200', c2 = '\201';
22773 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22774 return 1;
22775
22776 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22777 or more and with at least one buffer not starting on a 4-byte boundary.
22778 William Lewis provided this test program. */
22779 {
22780 char foo[21];
22781 char bar[21];
22782 int i;
22783 for (i = 0; i < 4; i++)
22784 {
22785 char *a = foo + i;
22786 char *b = bar + i;
22787 strcpy (a, "--------01111111");
22788 strcpy (b, "--------10000000");
22789 if (memcmp (a, b, 16) >= 0)
22790 return 1;
22791 }
22792 return 0;
22793 }
22794
22795 ;
22796 return 0;
22797}
22798_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022799if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022800 ac_cv_func_memcmp_working=yes
22801else
cristy8b350f62009-11-15 23:12:43 +000022802 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000022803fi
cristy8b350f62009-11-15 23:12:43 +000022804rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22805 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022806fi
22807
cristy3ed852e2009-09-05 21:47:34 +000022808fi
cristy8b350f62009-11-15 23:12:43 +000022809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000022810$as_echo "$ac_cv_func_memcmp_working" >&6; }
22811test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22812 *" memcmp.$ac_objext "* ) ;;
22813 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22814 ;;
22815esac
22816
22817
cristy3ed852e2009-09-05 21:47:34 +000022818for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000022819do :
22820 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22821ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristyfd9dcd42010-08-08 18:07:02 +000022822if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022823 cat >>confdefs.h <<_ACEOF
22824#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22825_ACEOF
22826
22827fi
22828
22829done
22830
cristy8b350f62009-11-15 23:12:43 +000022831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000022832$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022833if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022834 $as_echo_n "(cached) " >&6
22835else
22836 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22837 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22838 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000022839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022840/* end confdefs.h. */
22841$ac_includes_default
22842#ifdef HAVE_SYS_SELECT_H
22843# include <sys/select.h>
22844#endif
22845#ifdef HAVE_SYS_SOCKET_H
22846# include <sys/socket.h>
22847#endif
22848
22849int
22850main ()
22851{
22852extern int select ($ac_arg1,
22853 $ac_arg234, $ac_arg234, $ac_arg234,
22854 $ac_arg5);
22855 ;
22856 return 0;
22857}
22858_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022859if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022860 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000022861fi
cristy3ed852e2009-09-05 21:47:34 +000022862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22863 done
22864 done
22865done
22866# Provide a safe default value.
22867: ${ac_cv_func_select_args='int,int *,struct timeval *'}
22868
22869fi
cristy8b350f62009-11-15 23:12:43 +000022870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000022871$as_echo "$ac_cv_func_select_args" >&6; }
22872ac_save_IFS=$IFS; IFS=','
22873set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22874IFS=$ac_save_IFS
22875shift
22876
22877cat >>confdefs.h <<_ACEOF
22878#define SELECT_TYPE_ARG1 $1
22879_ACEOF
22880
22881
22882cat >>confdefs.h <<_ACEOF
22883#define SELECT_TYPE_ARG234 ($2)
22884_ACEOF
22885
22886
22887cat >>confdefs.h <<_ACEOF
22888#define SELECT_TYPE_ARG5 ($3)
22889_ACEOF
22890
22891rm -f conftest*
22892
cristy8b350f62009-11-15 23:12:43 +000022893if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022894 $as_echo_n "(cached) " >&6
22895else
22896 ac_cv_func_setvbuf_reversed=no
22897fi
22898
22899
cristy8b350f62009-11-15 23:12:43 +000022900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000022901$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022902if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022903 $as_echo_n "(cached) " >&6
22904else
cristy8b350f62009-11-15 23:12:43 +000022905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022906/* end confdefs.h. */
22907#include <sys/types.h>
22908#include <signal.h>
22909
22910int
22911main ()
22912{
22913return *(signal (0, 0)) (0) == 1;
22914 ;
22915 return 0;
22916}
22917_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022918if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022919 ac_cv_type_signal=int
22920else
cristy8b350f62009-11-15 23:12:43 +000022921 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000022922fi
cristy3ed852e2009-09-05 21:47:34 +000022923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22924fi
cristy8b350f62009-11-15 23:12:43 +000022925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000022926$as_echo "$ac_cv_type_signal" >&6; }
22927
22928cat >>confdefs.h <<_ACEOF
22929#define RETSIGTYPE $ac_cv_type_signal
22930_ACEOF
22931
22932
cristy8b350f62009-11-15 23:12:43 +000022933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022934$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022935if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022936 $as_echo_n "(cached) " >&6
22937else
cristy8b350f62009-11-15 23:12:43 +000022938 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022939 ac_cv_func_strtod=no
22940else
cristy8b350f62009-11-15 23:12:43 +000022941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022942/* end confdefs.h. */
22943
22944$ac_includes_default
22945#ifndef strtod
22946double strtod ();
22947#endif
22948int
22949main()
22950{
22951 {
22952 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
22953 char *string = " +69";
22954 char *term;
22955 double value;
22956 value = strtod (string, &term);
22957 if (value != 69 || term != (string + 4))
22958 return 1;
22959 }
22960
22961 {
22962 /* Under Solaris 2.4, strtod returns the wrong value for the
22963 terminating character under some conditions. */
22964 char *string = "NaN";
22965 char *term;
22966 strtod (string, &term);
22967 if (term != string && *(term - 1) == 0)
22968 return 1;
22969 }
22970 return 0;
22971}
22972
22973_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022974if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022975 ac_cv_func_strtod=yes
22976else
cristy8b350f62009-11-15 23:12:43 +000022977 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000022978fi
cristy8b350f62009-11-15 23:12:43 +000022979rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22980 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022981fi
22982
cristy3ed852e2009-09-05 21:47:34 +000022983fi
cristy8b350f62009-11-15 23:12:43 +000022984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022985$as_echo "$ac_cv_func_strtod" >&6; }
22986if test $ac_cv_func_strtod = no; then
22987 case " $LIBOBJS " in
22988 *" strtod.$ac_objext "* ) ;;
22989 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
22990 ;;
22991esac
22992
cristy8b350f62009-11-15 23:12:43 +000022993ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
22994if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022995
cristy3ed852e2009-09-05 21:47:34 +000022996fi
22997
cristy3ed852e2009-09-05 21:47:34 +000022998if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000022999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023000$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023001if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023002 $as_echo_n "(cached) " >&6
23003else
23004 ac_check_lib_save_LIBS=$LIBS
23005LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023007/* end confdefs.h. */
23008
23009/* Override any GCC internal prototype to avoid an error.
23010 Use char because int might match the return type of a GCC
23011 builtin and then its argument prototype would still apply. */
23012#ifdef __cplusplus
23013extern "C"
23014#endif
23015char pow ();
23016int
23017main ()
23018{
23019return pow ();
23020 ;
23021 return 0;
23022}
23023_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023024if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023025 ac_cv_lib_m_pow=yes
23026else
cristy8b350f62009-11-15 23:12:43 +000023027 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023028fi
cristy8b350f62009-11-15 23:12:43 +000023029rm -f core conftest.err conftest.$ac_objext \
23030 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023031LIBS=$ac_check_lib_save_LIBS
23032fi
cristy8b350f62009-11-15 23:12:43 +000023033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023034$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023035if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023036 POW_LIB=-lm
23037else
cristy8b350f62009-11-15 23:12:43 +000023038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023039$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23040fi
23041
23042fi
23043
23044fi
23045
cristy3ed852e2009-09-05 21:47:34 +000023046for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023047do :
23048 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23049if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023050 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023051#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023052_ACEOF
23053
cristy8b350f62009-11-15 23:12:43 +000023054ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23055if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023056
cristy8b350f62009-11-15 23:12:43 +000023057$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023058
23059fi
23060
23061fi
23062done
23063
23064
23065
cristy161b9262010-03-20 19:34:32 +000023066#
23067# Find math library
23068#
23069MATH_LIBS=''
23070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23071$as_echo_n "checking for sqrt in -lm... " >&6; }
23072if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23073 $as_echo_n "(cached) " >&6
23074else
23075 ac_check_lib_save_LIBS=$LIBS
23076LIBS="-lm $LIBS"
23077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23078/* end confdefs.h. */
23079
23080/* Override any GCC internal prototype to avoid an error.
23081 Use char because int might match the return type of a GCC
23082 builtin and then its argument prototype would still apply. */
23083#ifdef __cplusplus
23084extern "C"
23085#endif
23086char sqrt ();
23087int
23088main ()
23089{
23090return sqrt ();
23091 ;
23092 return 0;
23093}
23094_ACEOF
23095if ac_fn_c_try_link "$LINENO"; then :
23096 ac_cv_lib_m_sqrt=yes
23097else
23098 ac_cv_lib_m_sqrt=no
23099fi
23100rm -f core conftest.err conftest.$ac_objext \
23101 conftest$ac_exeext conftest.$ac_ext
23102LIBS=$ac_check_lib_save_LIBS
23103fi
23104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23105$as_echo "$ac_cv_lib_m_sqrt" >&6; }
23106if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23107 MATH_LIBS="-lm"
23108fi
23109
23110LIBS="$MATH_LIBS $LIBS"
23111
23112
cristyf1897e32010-08-29 19:59:09 +000023113for 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 +000023114do :
23115 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23116ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000023117if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023118 cat >>confdefs.h <<_ACEOF
23119#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23120_ACEOF
23121
23122fi
23123done
23124
23125
cristye43a45e2009-09-28 14:49:00 +000023126#
23127# Check for clock_gettime().
23128#
cristy8b350f62009-11-15 23:12:43 +000023129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023130$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023131if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023132 $as_echo_n "(cached) " >&6
23133else
23134 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023136/* end confdefs.h. */
23137
23138/* Override any GCC internal prototype to avoid an error.
23139 Use char because int might match the return type of a GCC
23140 builtin and then its argument prototype would still apply. */
23141#ifdef __cplusplus
23142extern "C"
23143#endif
23144char clock_gettime ();
23145int
23146main ()
23147{
23148return clock_gettime ();
23149 ;
23150 return 0;
23151}
23152_ACEOF
23153for ac_lib in '' rt; do
23154 if test -z "$ac_lib"; then
23155 ac_res="none required"
23156 else
23157 ac_res=-l$ac_lib
23158 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23159 fi
cristy8b350f62009-11-15 23:12:43 +000023160 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023161 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000023162fi
cristy8b350f62009-11-15 23:12:43 +000023163rm -f core conftest.err conftest.$ac_objext \
23164 conftest$ac_exeext
23165 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023166 break
23167fi
23168done
cristy8b350f62009-11-15 23:12:43 +000023169if test "${ac_cv_search_clock_gettime+set}" = set; then :
23170
cristye43a45e2009-09-28 14:49:00 +000023171else
23172 ac_cv_search_clock_gettime=no
23173fi
23174rm conftest.$ac_ext
23175LIBS=$ac_func_search_save_LIBS
23176fi
cristy8b350f62009-11-15 23:12:43 +000023177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023178$as_echo "$ac_cv_search_clock_gettime" >&6; }
23179ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000023180if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000023181 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23182
23183
cristy8b350f62009-11-15 23:12:43 +000023184$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023185
cristy8b350f62009-11-15 23:12:43 +000023186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000023187$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023189/* end confdefs.h. */
23190#include <time.h>
23191int
23192main ()
23193{
23194clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000023195 ;
23196 return 0;
23197}
23198_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023199if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023200
cristy8b350f62009-11-15 23:12:43 +000023201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000023202$as_echo "yes" >&6; }
23203
cristy8b350f62009-11-15 23:12:43 +000023204$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023205
23206
23207else
cristy8b350f62009-11-15 23:12:43 +000023208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000023209$as_echo "no" >&6; }
23210
23211fi
cristye43a45e2009-09-28 14:49:00 +000023212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23213
23214else
23215
cristy8b350f62009-11-15 23:12:43 +000023216 for ac_func in gettimeofday ftime
23217do :
23218 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23219ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000023220if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000023221 cat >>confdefs.h <<_ACEOF
23222#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23223_ACEOF
23224 break
23225fi
23226done
23227
23228
23229
23230fi
23231
23232
cristy3ed852e2009-09-05 21:47:34 +000023233########
23234#
23235# Check for function prototypes
23236#
23237########
23238
cristy8b350f62009-11-15 23:12:43 +000023239ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000023240#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023241"
23242if test "x$ac_cv_have_decl_pread" = x""yes; then :
23243 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023244else
cristy8b350f62009-11-15 23:12:43 +000023245 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023246fi
23247
cristy3ed852e2009-09-05 21:47:34 +000023248cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023249#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023250_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023251ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000023252#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023253"
23254if test "x$ac_cv_have_decl_pwrite" = 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_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023262_ACEOF
23263
23264
cristy8b350f62009-11-15 23:12:43 +000023265ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000023266#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000023267"
23268if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23269 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023270else
cristy8b350f62009-11-15 23:12:43 +000023271 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023272fi
23273
cristy3ed852e2009-09-05 21:47:34 +000023274cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023275#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023276_ACEOF
23277
23278
cristy8b350f62009-11-15 23:12:43 +000023279ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000023280#include <stdio.h>
23281#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000023282"
23283if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23284 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023285else
cristy8b350f62009-11-15 23:12:43 +000023286 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023287fi
23288
cristy3ed852e2009-09-05 21:47:34 +000023289cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023290#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023291_ACEOF
23292
23293
cristy3ed852e2009-09-05 21:47:34 +000023294########
23295#
23296# C++ Support Tests (For Magick++)
23297#
23298########
23299have_magick_plus_plus='no'
23300if test "$with_magick_plus_plus" = 'yes'; then
23301 OLIBS="$LIBS"
23302 LIBS=''
23303 ac_ext=cpp
23304ac_cpp='$CXXCPP $CPPFLAGS'
23305ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23306ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23307ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23308
23309
23310 # Full set of headers used...
23311 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23312 # functional iomanip iosfwd iostream iterator list string strstream utility
23313 ac_ext=cpp
23314ac_cpp='$CXXCPP $CPPFLAGS'
23315ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23316ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23317ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23318
23319 ac_ext=cpp
23320ac_cpp='$CXXCPP $CPPFLAGS'
23321ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23322ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23323ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23324if test -z "$CXX"; then
23325 if test -n "$CCC"; then
23326 CXX=$CCC
23327 else
23328 if test -n "$ac_tool_prefix"; then
23329 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23330 do
23331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23332set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023334$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023335if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023336 $as_echo_n "(cached) " >&6
23337else
23338 if test -n "$CXX"; then
23339 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23340else
23341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23342for as_dir in $PATH
23343do
23344 IFS=$as_save_IFS
23345 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023346 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23348 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023350 break 2
23351 fi
23352done
cristy8b350f62009-11-15 23:12:43 +000023353 done
cristy3ed852e2009-09-05 21:47:34 +000023354IFS=$as_save_IFS
23355
23356fi
23357fi
23358CXX=$ac_cv_prog_CXX
23359if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023361$as_echo "$CXX" >&6; }
23362else
cristy8b350f62009-11-15 23:12:43 +000023363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023364$as_echo "no" >&6; }
23365fi
23366
23367
23368 test -n "$CXX" && break
23369 done
23370fi
23371if test -z "$CXX"; then
23372 ac_ct_CXX=$CXX
23373 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23374do
23375 # Extract the first word of "$ac_prog", so it can be a program name with args.
23376set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023378$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023379if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023380 $as_echo_n "(cached) " >&6
23381else
23382 if test -n "$ac_ct_CXX"; then
23383 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23384else
23385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23386for as_dir in $PATH
23387do
23388 IFS=$as_save_IFS
23389 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023390 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23392 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023394 break 2
23395 fi
23396done
cristy8b350f62009-11-15 23:12:43 +000023397 done
cristy3ed852e2009-09-05 21:47:34 +000023398IFS=$as_save_IFS
23399
23400fi
23401fi
23402ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23403if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023405$as_echo "$ac_ct_CXX" >&6; }
23406else
cristy8b350f62009-11-15 23:12:43 +000023407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023408$as_echo "no" >&6; }
23409fi
23410
23411
23412 test -n "$ac_ct_CXX" && break
23413done
23414
23415 if test "x$ac_ct_CXX" = x; then
23416 CXX="g++"
23417 else
23418 case $cross_compiling:$ac_tool_warned in
23419yes:)
cristy8b350f62009-11-15 23:12:43 +000023420{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023421$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23422ac_tool_warned=yes ;;
23423esac
23424 CXX=$ac_ct_CXX
23425 fi
23426fi
23427
23428 fi
23429fi
23430# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000023431$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000023432set X $ac_compile
23433ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000023434for ac_option in --version -v -V -qversion; do
23435 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000023436case "(($ac_try" in
23437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23438 *) ac_try_echo=$ac_try;;
23439esac
cristy8b350f62009-11-15 23:12:43 +000023440eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23441$as_echo "$ac_try_echo"; } >&5
23442 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000023443 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000023444 if test -s conftest.err; then
23445 sed '10a\
23446... rest of stderr output deleted ...
23447 10q' conftest.err >conftest.er1
23448 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000023449 fi
cristycd4c5312009-11-22 01:19:08 +000023450 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000023451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23452 test $ac_status = 0; }
23453done
cristy3ed852e2009-09-05 21:47:34 +000023454
cristy8b350f62009-11-15 23:12:43 +000023455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000023456$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023457if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023458 $as_echo_n "(cached) " >&6
23459else
cristy8b350f62009-11-15 23:12:43 +000023460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023461/* end confdefs.h. */
23462
23463int
23464main ()
23465{
23466#ifndef __GNUC__
23467 choke me
23468#endif
23469
23470 ;
23471 return 0;
23472}
23473_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023474if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023475 ac_compiler_gnu=yes
23476else
cristy8b350f62009-11-15 23:12:43 +000023477 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000023478fi
cristy3ed852e2009-09-05 21:47:34 +000023479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23480ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23481
23482fi
cristy8b350f62009-11-15 23:12:43 +000023483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000023484$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23485if test $ac_compiler_gnu = yes; then
23486 GXX=yes
23487else
23488 GXX=
23489fi
23490ac_test_CXXFLAGS=${CXXFLAGS+set}
23491ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000023492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023493$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023494if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023495 $as_echo_n "(cached) " >&6
23496else
23497 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23498 ac_cxx_werror_flag=yes
23499 ac_cv_prog_cxx_g=no
23500 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023502/* end confdefs.h. */
23503
23504int
23505main ()
23506{
23507
23508 ;
23509 return 0;
23510}
23511_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023512if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023513 ac_cv_prog_cxx_g=yes
23514else
cristy8b350f62009-11-15 23:12:43 +000023515 CXXFLAGS=""
23516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023517/* end confdefs.h. */
23518
23519int
23520main ()
23521{
23522
23523 ;
23524 return 0;
23525}
23526_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023527if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023528
cristy8b350f62009-11-15 23:12:43 +000023529else
23530 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000023531 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023533/* end confdefs.h. */
23534
23535int
23536main ()
23537{
23538
23539 ;
23540 return 0;
23541}
23542_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023543if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023544 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000023545fi
cristy3ed852e2009-09-05 21:47:34 +000023546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23547fi
cristy3ed852e2009-09-05 21:47:34 +000023548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23549fi
cristy3ed852e2009-09-05 21:47:34 +000023550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23551 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23552fi
cristy8b350f62009-11-15 23:12:43 +000023553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023554$as_echo "$ac_cv_prog_cxx_g" >&6; }
23555if test "$ac_test_CXXFLAGS" = set; then
23556 CXXFLAGS=$ac_save_CXXFLAGS
23557elif test $ac_cv_prog_cxx_g = yes; then
23558 if test "$GXX" = yes; then
23559 CXXFLAGS="-g -O2"
23560 else
23561 CXXFLAGS="-g"
23562 fi
23563else
23564 if test "$GXX" = yes; then
23565 CXXFLAGS="-O2"
23566 else
23567 CXXFLAGS=
23568 fi
23569fi
23570ac_ext=cpp
23571ac_cpp='$CXXCPP $CPPFLAGS'
23572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23575
23576depcc="$CXX" am_compiler_list=
23577
cristy8b350f62009-11-15 23:12:43 +000023578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023579$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023580if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023581 $as_echo_n "(cached) " >&6
23582else
23583 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23584 # We make a subdir and do the tests there. Otherwise we can end up
23585 # making bogus files that we don't know about and never remove. For
23586 # instance it was reported that on HP-UX the gcc test will end up
23587 # making a dummy file named `D' -- because `-MD' means `put the output
23588 # in D'.
23589 mkdir conftest.dir
23590 # Copy depcomp to subdir because otherwise we won't find it if we're
23591 # using a relative directory.
23592 cp "$am_depcomp" conftest.dir
23593 cd conftest.dir
23594 # We will build objects and dependencies in a subdirectory because
23595 # it helps to detect inapplicable dependency modes. For instance
23596 # both Tru64's cc and ICC support -MD to output dependencies as a
23597 # side effect of compilation, but ICC will put the dependencies in
23598 # the current directory while Tru64 will put them in the object
23599 # directory.
23600 mkdir sub
23601
23602 am_cv_CXX_dependencies_compiler_type=none
23603 if test "$am_compiler_list" = ""; then
23604 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23605 fi
23606 am__universal=false
23607 case " $depcc " in #(
23608 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23609 esac
23610
23611 for depmode in $am_compiler_list; do
23612 # Setup a source with many dependencies, because some compilers
23613 # like to wrap large dependency lists on column 80 (with \), and
23614 # we should not choose a depcomp mode which is confused by this.
23615 #
23616 # We need to recreate these files for each test, as the compiler may
23617 # overwrite some of them when testing with obscure command lines.
23618 # This happens at least with the AIX C compiler.
23619 : > sub/conftest.c
23620 for i in 1 2 3 4 5 6; do
23621 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23622 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23623 # Solaris 8's {/usr,}/bin/sh.
23624 touch sub/conftst$i.h
23625 done
23626 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23627
23628 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23629 # mode. It turns out that the SunPro C++ compiler does not properly
23630 # handle `-M -o', and we need to detect this. Also, some Intel
23631 # versions had trouble with output in subdirs
23632 am__obj=sub/conftest.${OBJEXT-o}
23633 am__minus_obj="-o $am__obj"
23634 case $depmode in
23635 gcc)
23636 # This depmode causes a compiler race in universal mode.
23637 test "$am__universal" = false || continue
23638 ;;
23639 nosideeffect)
23640 # after this tag, mechanisms are not by side-effect, so they'll
23641 # only be used when explicitly requested
23642 if test "x$enable_dependency_tracking" = xyes; then
23643 continue
23644 else
23645 break
23646 fi
23647 ;;
23648 msvisualcpp | msvcmsys)
23649 # This compiler won't grok `-c -o', but also, the minuso test has
23650 # not run yet. These depmodes are late enough in the game, and
23651 # so weak that their functioning should not be impacted.
23652 am__obj=conftest.${OBJEXT-o}
23653 am__minus_obj=
23654 ;;
23655 none) break ;;
23656 esac
23657 if depmode=$depmode \
23658 source=sub/conftest.c object=$am__obj \
23659 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23660 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23661 >/dev/null 2>conftest.err &&
23662 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23663 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23664 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23665 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23666 # icc doesn't choke on unknown options, it will just issue warnings
23667 # or remarks (even with -Werror). So we grep stderr for any message
23668 # that says an option was ignored or not supported.
23669 # When given -MP, icc 7.0 and 7.1 complain thusly:
23670 # icc: Command line warning: ignoring option '-M'; no argument required
23671 # The diagnosis changed in icc 8.0:
23672 # icc: Command line remark: option '-MP' not supported
23673 if (grep 'ignoring option' conftest.err ||
23674 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23675 am_cv_CXX_dependencies_compiler_type=$depmode
23676 break
23677 fi
23678 fi
23679 done
23680
23681 cd ..
23682 rm -rf conftest.dir
23683else
23684 am_cv_CXX_dependencies_compiler_type=none
23685fi
23686
23687fi
cristy8b350f62009-11-15 23:12:43 +000023688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023689$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23690CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23691
23692 if
23693 test "x$enable_dependency_tracking" != xno \
23694 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23695 am__fastdepCXX_TRUE=
23696 am__fastdepCXX_FALSE='#'
23697else
23698 am__fastdepCXX_TRUE='#'
23699 am__fastdepCXX_FALSE=
23700fi
23701
23702
cristy8b350f62009-11-15 23:12:43 +000023703 { $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 +000023704$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023705if test "${ax_cv_cxx_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023706 $as_echo_n "(cached) " >&6
23707else
23708
23709 ac_ext=cpp
23710ac_cpp='$CXXCPP $CPPFLAGS'
23711ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23712ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23713ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23714
cristy8b350f62009-11-15 23:12:43 +000023715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023716/* end confdefs.h. */
23717
23718int f(int x){return 1;}
23719int f(char x){return 1;}
23720int f(bool x){return 1;}
23721
23722int
23723main ()
23724{
23725bool b = true; return f(b);
23726 ;
23727 return 0;
23728}
23729_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023730if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023731 ax_cv_cxx_bool=yes
cristy3ed852e2009-09-05 21:47:34 +000023732else
cristy964cb7f2010-04-25 23:18:00 +000023733 ax_cv_cxx_bool=no
cristy3ed852e2009-09-05 21:47:34 +000023734fi
cristy3ed852e2009-09-05 21:47:34 +000023735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23736 ac_ext=cpp
23737ac_cpp='$CXXCPP $CPPFLAGS'
23738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23741
23742
23743fi
cristy964cb7f2010-04-25 23:18:00 +000023744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23745$as_echo "$ax_cv_cxx_bool" >&6; }
23746if test "$ax_cv_cxx_bool" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023747
cristy8b350f62009-11-15 23:12:43 +000023748$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023749
23750fi
23751
cristy8b350f62009-11-15 23:12:43 +000023752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023753$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023754if test "${ax_cv_cxx_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023755 $as_echo_n "(cached) " >&6
23756else
23757
23758 ac_ext=cpp
23759ac_cpp='$CXXCPP $CPPFLAGS'
23760ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23761ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23762ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23763
cristy8b350f62009-11-15 23:12:43 +000023764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023765/* end confdefs.h. */
23766namespace Outer { namespace Inner { int i = 0; }}
23767int
23768main ()
23769{
23770using namespace Outer::Inner; return i;
23771 ;
23772 return 0;
23773}
23774_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023775if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023776 ax_cv_cxx_namespaces=yes
cristy3ed852e2009-09-05 21:47:34 +000023777else
cristy964cb7f2010-04-25 23:18:00 +000023778 ax_cv_cxx_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000023779fi
cristy3ed852e2009-09-05 21:47:34 +000023780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23781 ac_ext=cpp
23782ac_cpp='$CXXCPP $CPPFLAGS'
23783ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23784ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23785ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23786
23787
23788fi
cristy964cb7f2010-04-25 23:18:00 +000023789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23790$as_echo "$ax_cv_cxx_namespaces" >&6; }
23791if test "$ax_cv_cxx_namespaces" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023792
cristy8b350f62009-11-15 23:12:43 +000023793$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023794
23795fi
23796
cristy964cb7f2010-04-25 23:18:00 +000023797
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
23799$as_echo_n "checking if g++ supports namespace std... " >&6; }
23800if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023801 $as_echo_n "(cached) " >&6
23802else
23803
cristy964cb7f2010-04-25 23:18:00 +000023804 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000023805ac_cpp='$CXXCPP $CPPFLAGS'
23806ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23807ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23808ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23809
cristy964cb7f2010-04-25 23:18:00 +000023810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023811/* end confdefs.h. */
23812#include <iostream>
cristy964cb7f2010-04-25 23:18:00 +000023813 std::istream& is = std::cin;
cristy3ed852e2009-09-05 21:47:34 +000023814int
23815main ()
23816{
cristy964cb7f2010-04-25 23:18:00 +000023817
cristy3ed852e2009-09-05 21:47:34 +000023818 ;
23819 return 0;
23820}
23821_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023822if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023823 ax_cv_cxx_have_std_namespace=yes
cristy3ed852e2009-09-05 21:47:34 +000023824else
cristy964cb7f2010-04-25 23:18:00 +000023825 ax_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000023826fi
cristy3ed852e2009-09-05 21:47:34 +000023827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +000023828 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000023829ac_cpp='$CXXCPP $CPPFLAGS'
23830ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23831ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23832ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23833
23834
23835fi
cristy964cb7f2010-04-25 23:18:00 +000023836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
23837$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
23838 if test "$ax_cv_cxx_have_std_namespace" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023839
cristy964cb7f2010-04-25 23:18:00 +000023840$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023841
cristy964cb7f2010-04-25 23:18:00 +000023842 fi
cristy3ed852e2009-09-05 21:47:34 +000023843
cristy8b350f62009-11-15 23:12:43 +000023844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000023845$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023846if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023847 $as_echo_n "(cached) " >&6
23848else
23849
23850
23851 ac_ext=cpp
23852ac_cpp='$CXXCPP $CPPFLAGS'
23853ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23854ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23855ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23856
cristy8b350f62009-11-15 23:12:43 +000023857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023858/* end confdefs.h. */
23859#include <iostream>
23860#include <map>
23861#include <iomanip>
23862#include <cmath>
23863#ifdef HAVE_NAMESPACES
23864using namespace std;
23865#endif
23866int
23867main ()
23868{
23869return 0;
23870 ;
23871 return 0;
23872}
23873_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023874if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023875 ac_cv_cxx_have_std_libs=yes
23876else
cristy8b350f62009-11-15 23:12:43 +000023877 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000023878fi
cristy3ed852e2009-09-05 21:47:34 +000023879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23880 ac_ext=cpp
23881ac_cpp='$CXXCPP $CPPFLAGS'
23882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23885
23886
23887fi
cristy8b350f62009-11-15 23:12:43 +000023888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000023889$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
23890if test "$ac_cv_cxx_have_std_libs" = yes; then
23891
cristy8b350f62009-11-15 23:12:43 +000023892$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023893
23894fi
23895
cristy8b350f62009-11-15 23:12:43 +000023896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000023897$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023898if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023899 $as_echo_n "(cached) " >&6
23900else
23901
23902 ac_ext=cpp
23903ac_cpp='$CXXCPP $CPPFLAGS'
23904ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23905ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23906ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23907
cristy8b350f62009-11-15 23:12:43 +000023908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023909/* end confdefs.h. */
23910const wchar_t* s=L"wide string";
23911_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023912if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023913 ac_cv_cxx_have_lstring=yes
23914else
cristy8b350f62009-11-15 23:12:43 +000023915 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000023916fi
cristy3ed852e2009-09-05 21:47:34 +000023917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23918 ac_ext=cpp
23919ac_cpp='$CXXCPP $CPPFLAGS'
23920ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23921ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23922ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23923
23924
23925fi
cristy8b350f62009-11-15 23:12:43 +000023926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000023927$as_echo "$ac_cv_cxx_have_lstring" >&6; }
23928if test "$ac_cv_cxx_have_lstring" = yes; then
23929
cristy8b350f62009-11-15 23:12:43 +000023930$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023931
23932fi
23933
23934
23935 OPENMP_CXXFLAGS=
23936 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000023937if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023938 enableval=$enable_openmp;
23939fi
23940
23941 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000023942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
23943$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023944if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023945 $as_echo_n "(cached) " >&6
23946else
cristy8b350f62009-11-15 23:12:43 +000023947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23948/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023949
23950#ifndef _OPENMP
23951 choke me
23952#endif
23953#include <omp.h>
23954int main () { return omp_get_num_threads (); }
23955
23956_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023957if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023958 ac_cv_prog_cxx_openmp='none needed'
23959else
cristy8b350f62009-11-15 23:12:43 +000023960 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000023961 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
23962 ac_save_CXXFLAGS=$CXXFLAGS
23963 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000023964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23965/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023966
23967#ifndef _OPENMP
23968 choke me
23969#endif
23970#include <omp.h>
23971int main () { return omp_get_num_threads (); }
23972
23973_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023974if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023975 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000023976fi
cristy8b350f62009-11-15 23:12:43 +000023977rm -f core conftest.err conftest.$ac_objext \
23978 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023979 CXXFLAGS=$ac_save_CXXFLAGS
23980 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
23981 break
23982 fi
23983 done
23984fi
cristy8b350f62009-11-15 23:12:43 +000023985rm -f core conftest.err conftest.$ac_objext \
23986 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023987fi
cristy8b350f62009-11-15 23:12:43 +000023988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023989$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
23990 case $ac_cv_prog_cxx_openmp in #(
23991 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000023992 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000023993 *)
cristy8b350f62009-11-15 23:12:43 +000023994 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000023995 esac
23996 fi
23997
23998
23999 ac_ext=c
24000ac_cpp='$CPP $CPPFLAGS'
24001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24003ac_compiler_gnu=$ac_cv_c_compiler_gnu
24004
24005
cristy8b350f62009-11-15 23:12:43 +000024006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024007$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24008 if \
cristy964cb7f2010-04-25 23:18:00 +000024009 test $ax_cv_cxx_bool = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024010 test $ac_cv_cxx_have_lstring = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024011 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024012 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024013 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024014 have_magick_plus_plus='yes'
24015 else
24016 have_magick_plus_plus='no (failed tests)'
24017 fi
cristy8b350f62009-11-15 23:12:43 +000024018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024019$as_echo "$have_magick_plus_plus" >&6; }
24020 LIBS="$OLIBS"
24021fi
24022 if test "$have_magick_plus_plus" = 'yes'; then
24023 WITH_MAGICK_PLUS_PLUS_TRUE=
24024 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24025else
24026 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24027 WITH_MAGICK_PLUS_PLUS_FALSE=
24028fi
24029
24030
24031# Only check for delegate libraries in subdirectories if requested.
24032if test "$enable_delegate_build" != 'no'; then
24033 # Check for delegate sub-directories and add -I & -L options as required.
24034 # This presumes that delegates are installed as detailed in the ImageMagick
24035 # README. If delegates are installed in a standard location where the
24036 # compiler will automatically find them then these options should not be
24037 # required.
24038
24039 #
24040 # Most delegates have includes in the same directory as the library, but not all...
24041 #
24042 # Includes
cristy5850e4b2010-01-08 14:28:24 +000024043 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 +000024044 if test -d "$builddir/$dir"; then
24045 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24046 else
24047 if test -d "$srcdirfull/$dir"; then
24048 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24049 fi
24050 fi
24051 done
24052
24053 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000024054 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 +000024055 if test -d "$builddir/$dir/.libs"; then
24056 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24057 else
24058 if test -d "$srcdirfull/$dir/.libs"; then
24059 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24060 fi
24061 fi
24062 if test -d "$builddir/$dir"; then
24063 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24064 else
24065 if test -d "$srcdirfull/$dir"; then
24066 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24067 fi
24068 fi
24069 done
24070fi
24071
24072# Assume that delegate headers reside under same directory as ImageMagick
24073# installation prefix.
24074MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24075
24076#
24077# Find the X11 RGB database
24078#
cristy8b350f62009-11-15 23:12:43 +000024079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024080$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024081if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024082 $as_echo_n "(cached) " >&6
24083else
24084 # Look for the header file in a standard set of common directories.
24085# Check X11 before X11Rn because it is often a symlink to the current release.
24086 for ac_dir in \
24087 /lib/usr/lib/X11 \
24088 /usr/X11/lib \
24089 /usr/X11R4/lib \
24090 /usr/X11R5/lib \
24091 /usr/X11R6/lib \
24092 /usr/X11R7/lib \
24093 /usr/X386/lib \
24094 /usr/XFree86/lib/X11 \
24095 /usr/athena/lib \
24096 /usr/lib \
24097 /usr/lib/X11 \
24098 /usr/lib/X11R4 \
24099 /usr/lib/X11R5 \
24100 /usr/lib/X11R6 \
24101 /usr/lib/X11R7 \
24102 /usr/local/X11/lib \
24103 /usr/local/X11R4/lib \
24104 /usr/local/X11R5/lib \
24105 /usr/local/X11R6/lib \
24106 /usr/local/lib \
24107 /usr/local/lib/X11 \
24108 /usr/local/lib/X11R4 \
24109 /usr/local/lib/X11R5 \
24110 /usr/local/lib/X11R6 \
24111 /usr/local/lib/X11R7 \
24112 /usr/local/x11r5/lib \
24113 /usr/lpp/Xamples/lib \
24114 /usr/openwin/lib \
24115 /usr/openwin/share/lib \
24116 /usr/unsupported/lib \
24117 /usr/x386/lib \
24118 ; do
24119 if test -f "$ac_dir/X11/rgb.txt"; then
24120 im_cv_x_configure="$ac_dir/X11/"
24121 break
24122 elif test -f "$ac_dir/rgb.txt"; then
24123 im_cv_x_configure="$ac_dir/"
24124 break
24125 fi
24126
24127 done
24128fi
cristy8b350f62009-11-15 23:12:43 +000024129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024130$as_echo "$im_cv_x_configure" >&6; }
24131X11_CONFIGURE_PATH="$im_cv_x_configure"
24132case "${build_os}" in
24133 mingw* )
24134 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24135 ;;
24136esac
24137
24138cat >>confdefs.h <<_ACEOF
24139#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24140_ACEOF
24141
24142
24143#
24144# Find OpenMP library
24145#
24146GOMP_LIBS=''
24147if test "$enable_openmp" != 'no'; then
24148 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024150$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024151if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024152 $as_echo_n "(cached) " >&6
24153else
24154 ac_check_lib_save_LIBS=$LIBS
24155LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024157/* end confdefs.h. */
24158
24159/* Override any GCC internal prototype to avoid an error.
24160 Use char because int might match the return type of a GCC
24161 builtin and then its argument prototype would still apply. */
24162#ifdef __cplusplus
24163extern "C"
24164#endif
24165char GOMP_parallel_start ();
24166int
24167main ()
24168{
24169return GOMP_parallel_start ();
24170 ;
24171 return 0;
24172}
24173_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024174if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024175 ac_cv_lib_gomp_GOMP_parallel_start=yes
24176else
cristy8b350f62009-11-15 23:12:43 +000024177 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024178fi
cristy8b350f62009-11-15 23:12:43 +000024179rm -f core conftest.err conftest.$ac_objext \
24180 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024181LIBS=$ac_check_lib_save_LIBS
24182fi
cristy8b350f62009-11-15 23:12:43 +000024183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000024184$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024185if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024186 GOMP_LIBS="-lgomp"
24187fi
24188 # gcc
24189 else
cristy8b350f62009-11-15 23:12:43 +000024190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000024191$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024192if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024193 $as_echo_n "(cached) " >&6
24194else
24195 ac_check_lib_save_LIBS=$LIBS
24196LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024198/* end confdefs.h. */
24199
24200/* Override any GCC internal prototype to avoid an error.
24201 Use char because int might match the return type of a GCC
24202 builtin and then its argument prototype would still apply. */
24203#ifdef __cplusplus
24204extern "C"
24205#endif
24206char sunw_mp_register_warn ();
24207int
24208main ()
24209{
24210return sunw_mp_register_warn ();
24211 ;
24212 return 0;
24213}
24214_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024215if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024216 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24217else
cristy8b350f62009-11-15 23:12:43 +000024218 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000024219fi
cristy8b350f62009-11-15 23:12:43 +000024220rm -f core conftest.err conftest.$ac_objext \
24221 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024222LIBS=$ac_check_lib_save_LIBS
24223fi
cristy8b350f62009-11-15 23:12:43 +000024224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000024225$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024226if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024227 GOMP_LIBS="-lmtsk"
24228fi
24229 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000024230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024231$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024232if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024233 $as_echo_n "(cached) " >&6
24234else
24235 ac_check_lib_save_LIBS=$LIBS
24236LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024238/* end confdefs.h. */
24239
24240/* Override any GCC internal prototype to avoid an error.
24241 Use char because int might match the return type of a GCC
24242 builtin and then its argument prototype would still apply. */
24243#ifdef __cplusplus
24244extern "C"
24245#endif
24246char _xlsmpFlush ();
24247int
24248main ()
24249{
24250return _xlsmpFlush ();
24251 ;
24252 return 0;
24253}
24254_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024255if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024256 ac_cv_lib_xlsmp__xlsmpFlush=yes
24257else
cristy8b350f62009-11-15 23:12:43 +000024258 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000024259fi
cristy8b350f62009-11-15 23:12:43 +000024260rm -f core conftest.err conftest.$ac_objext \
24261 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024262LIBS=$ac_check_lib_save_LIBS
24263fi
cristy8b350f62009-11-15 23:12:43 +000024264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000024265$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024266if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024267 GOMP_LIBS="-lxlsmp"
24268fi
24269 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000024270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024271$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024272if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024273 $as_echo_n "(cached) " >&6
24274else
24275 ac_check_lib_save_LIBS=$LIBS
24276LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024278/* end confdefs.h. */
24279
24280/* Override any GCC internal prototype to avoid an error.
24281 Use char because int might match the return type of a GCC
24282 builtin and then its argument prototype would still apply. */
24283#ifdef __cplusplus
24284extern "C"
24285#endif
24286char mp_destroy ();
24287int
24288main ()
24289{
24290return mp_destroy ();
24291 ;
24292 return 0;
24293}
24294_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024295if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024296 ac_cv_lib_mp_mp_destroy=yes
24297else
cristy8b350f62009-11-15 23:12:43 +000024298 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000024299fi
cristy8b350f62009-11-15 23:12:43 +000024300rm -f core conftest.err conftest.$ac_objext \
24301 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024302LIBS=$ac_check_lib_save_LIBS
24303fi
cristy8b350f62009-11-15 23:12:43 +000024304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000024305$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024306if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024307 GOMP_LIBS="-lmp"
24308fi
24309 # SGI IRIX 6.5 MIPSpro C/C++
24310 fi
24311 LIBS="$GOMP_LIBS $LIBS"
24312fi
24313
24314
24315#
24316# Find Posix threads library
24317#
24318THREAD_LIBS=''
24319if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24320
24321 if test "x$PTHREAD_LIBS" = "x"; then
24322 case "${host_cpu}-${host_os}" in
24323 *-freebsd*)
24324
24325
24326
24327ac_ext=c
24328ac_cpp='$CPP $CPPFLAGS'
24329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24331ac_compiler_gnu=$ac_cv_c_compiler_gnu
24332
24333magick_pthread_lib_ok=no
24334
24335LIB=-lc_r
24336save_LIBS="$LIBS"
24337LIBS="$LIBS $LIB"
24338
cristy8b350f62009-11-15 23:12:43 +000024339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024340$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024342/* end confdefs.h. */
24343#include <pthread.h>
24344int
24345main ()
24346{
24347 pthread_t th;
24348 pthread_join(th, 0);
24349 pthread_attr_init(0);
24350 pthread_cleanup_push(0, 0);
24351 pthread_create(0,0,0,0);
24352 pthread_cleanup_pop(0);
24353 ;
24354 return 0;
24355}
24356_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024357if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024358 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024359fi
cristy8b350f62009-11-15 23:12:43 +000024360rm -f core conftest.err conftest.$ac_objext \
24361 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024362
cristy8b350f62009-11-15 23:12:43 +000024363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024364$as_echo "${magick_pthread_lib_ok}" >&6; }
24365if test "$magick_pthread_lib_ok" = yes
24366then
24367 PTHREAD_LIBS=-lc_r
24368 :
24369else
24370
24371 :
24372fi
24373
24374LIBS="$save_LIBS"
24375
24376ac_ext=c
24377ac_cpp='$CPP $CPPFLAGS'
24378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24380ac_compiler_gnu=$ac_cv_c_compiler_gnu
24381
24382 ;;
24383 esac
24384 fi
24385
24386 for lib in pthread pthreads; do
24387 if test "x$PTHREAD_LIBS" = "x"; then
24388
24389
24390
24391ac_ext=c
24392ac_cpp='$CPP $CPPFLAGS'
24393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24395ac_compiler_gnu=$ac_cv_c_compiler_gnu
24396
24397magick_pthread_lib_ok=no
24398
24399LIB=-l$lib
24400save_LIBS="$LIBS"
24401LIBS="$LIBS $LIB"
24402
cristy8b350f62009-11-15 23:12:43 +000024403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024404$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024406/* end confdefs.h. */
24407#include <pthread.h>
24408int
24409main ()
24410{
24411 pthread_t th;
24412 pthread_join(th, 0);
24413 pthread_attr_init(0);
24414 pthread_cleanup_push(0, 0);
24415 pthread_create(0,0,0,0);
24416 pthread_cleanup_pop(0);
24417 ;
24418 return 0;
24419}
24420_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024421if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024422 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024423fi
cristy8b350f62009-11-15 23:12:43 +000024424rm -f core conftest.err conftest.$ac_objext \
24425 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024426
cristy8b350f62009-11-15 23:12:43 +000024427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024428$as_echo "${magick_pthread_lib_ok}" >&6; }
24429if test "$magick_pthread_lib_ok" = yes
24430then
24431 PTHREAD_LIBS=-l$lib
24432 :
24433else
24434
24435 :
24436fi
24437
24438LIBS="$save_LIBS"
24439
24440ac_ext=c
24441ac_cpp='$CPP $CPPFLAGS'
24442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24444ac_compiler_gnu=$ac_cv_c_compiler_gnu
24445
24446
24447 fi
24448 done
24449
24450 THREAD_LIBS="$PTHREAD_LIBS"
24451 LIBS="$LIBS $THREAD_LIBS"
24452fi
24453
24454
24455#
24456# Check for umem.
24457#
24458have_umem='no'
24459UMEM_LIBS=''
24460if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000024462$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024464$as_echo "" >&6; }
24465 failed=0
24466 passed=0
cristy8b350f62009-11-15 23:12:43 +000024467 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24468if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024469 passed=`expr $passed + 1`
24470else
24471 failed=`expr $failed + 1`
24472fi
24473
24474
cristy8b350f62009-11-15 23:12:43 +000024475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024476$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024477if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024478 $as_echo_n "(cached) " >&6
24479else
24480 ac_check_lib_save_LIBS=$LIBS
24481LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024483/* end confdefs.h. */
24484
24485/* Override any GCC internal prototype to avoid an error.
24486 Use char because int might match the return type of a GCC
24487 builtin and then its argument prototype would still apply. */
24488#ifdef __cplusplus
24489extern "C"
24490#endif
24491char umem_alloc ();
24492int
24493main ()
24494{
24495return umem_alloc ();
24496 ;
24497 return 0;
24498}
24499_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024500if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024501 ac_cv_lib_umem_umem_alloc=yes
24502else
cristy8b350f62009-11-15 23:12:43 +000024503 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000024504fi
cristy8b350f62009-11-15 23:12:43 +000024505rm -f core conftest.err conftest.$ac_objext \
24506 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024507LIBS=$ac_check_lib_save_LIBS
24508fi
cristy8b350f62009-11-15 23:12:43 +000024509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024510$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024511if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024512 passed=`expr $passed + 1`
24513else
24514 failed=`expr $failed + 1`
24515fi
24516
cristy8b350f62009-11-15 23:12:43 +000024517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024518$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024519if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024520 $as_echo_n "(cached) " >&6
24521else
24522 ac_check_lib_save_LIBS=$LIBS
24523LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024525/* end confdefs.h. */
24526
24527/* Override any GCC internal prototype to avoid an error.
24528 Use char because int might match the return type of a GCC
24529 builtin and then its argument prototype would still apply. */
24530#ifdef __cplusplus
24531extern "C"
24532#endif
24533char umem_free ();
24534int
24535main ()
24536{
24537return umem_free ();
24538 ;
24539 return 0;
24540}
24541_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024542if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024543 ac_cv_lib_umem_umem_free=yes
24544else
cristy8b350f62009-11-15 23:12:43 +000024545 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000024546fi
cristy8b350f62009-11-15 23:12:43 +000024547rm -f core conftest.err conftest.$ac_objext \
24548 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024549LIBS=$ac_check_lib_save_LIBS
24550fi
cristy8b350f62009-11-15 23:12:43 +000024551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000024552$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024553if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024554 passed=`expr $passed + 1`
24555else
24556 failed=`expr $failed + 1`
24557fi
24558
cristy8b350f62009-11-15 23:12:43 +000024559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024560$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24561 if test $passed -gt 0; then
24562 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024564$as_echo "no -- some components failed test" >&6; }
24565 have_umem='no (failed tests)'
24566 else
24567 UMEM_LIBS='-lumem'
24568 LIBS="$UMEM_LIBS $LIBS"
24569
cristy8b350f62009-11-15 23:12:43 +000024570$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024571
cristy8b350f62009-11-15 23:12:43 +000024572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024573$as_echo "yes" >&6; }
24574 have_umem='yes'
24575 fi
24576 else
cristy8b350f62009-11-15 23:12:43 +000024577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024578$as_echo "no" >&6; }
24579 fi
24580fi
24581 if test "$have_umem" = 'yes'; then
24582 HasUMEM_TRUE=
24583 HasUMEM_FALSE='#'
24584else
24585 HasUMEM_TRUE='#'
24586 HasUMEM_FALSE=
24587fi
24588
24589
24590
24591#
24592# Add support for ccmalloc memory debugging library if requested
24593#
24594have_ccmalloc='no'
24595CCMALLOC_LIBS=''
24596if test "$enable_ccmalloc" = 'yes'; then
24597 # Extract the first word of "ccmalloc", so it can be a program name with args.
24598set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024600$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024601if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024602 $as_echo_n "(cached) " >&6
24603else
24604 case $CCMALLOCDelegate in
24605 [\\/]* | ?:[\\/]*)
24606 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24607 ;;
24608 *)
24609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24610for as_dir in $PATH
24611do
24612 IFS=$as_save_IFS
24613 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024614 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24616 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000024617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024618 break 2
24619 fi
24620done
cristy8b350f62009-11-15 23:12:43 +000024621 done
cristy3ed852e2009-09-05 21:47:34 +000024622IFS=$as_save_IFS
24623
24624 ;;
24625esac
24626fi
24627CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24628if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000024629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024630$as_echo "$CCMALLOCDelegate" >&6; }
24631else
cristy8b350f62009-11-15 23:12:43 +000024632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024633$as_echo "no" >&6; }
24634fi
24635
24636
24637 if test -n "$CCMALLOCDelegate"; then
24638 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24639 OLIBS="$LIBS"
24640 # Assume that gcc is used with ccmalloc.
24641 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000024642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024643$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024644if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024645 $as_echo_n "(cached) " >&6
24646else
24647 ac_check_lib_save_LIBS=$LIBS
24648LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024650/* end confdefs.h. */
24651
24652/* Override any GCC internal prototype to avoid an error.
24653 Use char because int might match the return type of a GCC
24654 builtin and then its argument prototype would still apply. */
24655#ifdef __cplusplus
24656extern "C"
24657#endif
24658char ccmalloc_malloc ();
24659int
24660main ()
24661{
24662return ccmalloc_malloc ();
24663 ;
24664 return 0;
24665}
24666_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024667if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024668 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24669else
cristy8b350f62009-11-15 23:12:43 +000024670 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024671fi
cristy8b350f62009-11-15 23:12:43 +000024672rm -f core conftest.err conftest.$ac_objext \
24673 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024674LIBS=$ac_check_lib_save_LIBS
24675fi
cristy8b350f62009-11-15 23:12:43 +000024676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024677$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024678if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024679 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24680fi
24681
24682 if test -n "$CCMALLOC_LIBS"; then
24683 LIBS="$OLIBS"
24684 LIBS="$LIBS $CCMALLOC_LIBS"
24685 have_ccmalloc='yes'
24686 else
24687 LIBS="$OLIBS"
24688 fi
24689 fi
24690fi
24691
24692#
24693# Add support for efence memory debugging library if requested
24694#
24695if test "$enable_efence" = 'yes'; then
24696 EFENCE_LIBS='-lefence'
24697 LIBS="$EFENCE_LIBS $LIBS"
24698fi
24699
cristy3ed852e2009-09-05 21:47:34 +000024700
24701#
24702# Check for BZLIB
24703#
24704
24705
24706# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024707if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024708 withval=$with_bzlib; with_bzlib=$withval
24709else
24710 with_bzlib='yes'
24711fi
24712
24713
24714if test "$with_bzlib" != 'yes'; then
24715 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24716fi
24717
24718have_bzlib='no'
24719if test "$with_bzlib" != 'no'; then
24720 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024722$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024724$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024726$as_echo "" >&6; }
24727 failed=0
24728 passed=0
24729 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024730 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24731if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024732 passed=`expr $passed + 1`
24733else
24734 failed=`expr $failed + 1`
24735fi
24736
24737
cristy8b350f62009-11-15 23:12:43 +000024738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024739$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024740if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024741 $as_echo_n "(cached) " >&6
24742else
24743 ac_check_lib_save_LIBS=$LIBS
24744LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024746/* end confdefs.h. */
24747
24748/* Override any GCC internal prototype to avoid an error.
24749 Use char because int might match the return type of a GCC
24750 builtin and then its argument prototype would still apply. */
24751#ifdef __cplusplus
24752extern "C"
24753#endif
24754char BZ2_bzDecompress ();
24755int
24756main ()
24757{
24758return BZ2_bzDecompress ();
24759 ;
24760 return 0;
24761}
24762_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024763if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024764 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24765else
cristy8b350f62009-11-15 23:12:43 +000024766 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024767fi
cristy8b350f62009-11-15 23:12:43 +000024768rm -f core conftest.err conftest.$ac_objext \
24769 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024770LIBS=$ac_check_lib_save_LIBS
24771fi
cristy8b350f62009-11-15 23:12:43 +000024772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024773$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024774if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024775 found_libbz=`expr $found_libbz + 1`
24776fi
24777
24778 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024780$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024781if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024782 $as_echo_n "(cached) " >&6
24783else
24784 ac_check_lib_save_LIBS=$LIBS
24785LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024787/* end confdefs.h. */
24788
24789/* Override any GCC internal prototype to avoid an error.
24790 Use char because int might match the return type of a GCC
24791 builtin and then its argument prototype would still apply. */
24792#ifdef __cplusplus
24793extern "C"
24794#endif
24795char _imp__BZ2_decompress ();
24796int
24797main ()
24798{
24799return _imp__BZ2_decompress ();
24800 ;
24801 return 0;
24802}
24803_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024804if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024805 ac_cv_lib_bz2__imp__BZ2_decompress=yes
24806else
cristy8b350f62009-11-15 23:12:43 +000024807 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000024808fi
cristy8b350f62009-11-15 23:12:43 +000024809rm -f core conftest.err conftest.$ac_objext \
24810 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024811LIBS=$ac_check_lib_save_LIBS
24812fi
cristy8b350f62009-11-15 23:12:43 +000024813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024814$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024815if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024816 found_libbz=`expr $found_libbz + 1`
24817fi
24818
24819 fi
24820 if test $found_libbz -gt 0; then
24821 passed=`expr $passed + 1`
24822 else
24823 failed=`expr $failed + 1`
24824 fi
cristy8b350f62009-11-15 23:12:43 +000024825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024826$as_echo_n "checking if BZLIB package is complete... " >&6; }
24827 if test $passed -gt 0; then
24828 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024830$as_echo "no -- some components failed test" >&6; }
24831 have_bzlib='no (failed tests)'
24832 else
24833 BZLIB_LIBS='-lbz2'
24834 LIBS="$BZLIB_LIBS $LIBS"
24835
cristy8b350f62009-11-15 23:12:43 +000024836$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024837
cristy8b350f62009-11-15 23:12:43 +000024838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024839$as_echo "yes" >&6; }
24840 have_bzlib='yes'
24841 fi
24842 else
cristy8b350f62009-11-15 23:12:43 +000024843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024844$as_echo "no" >&6; }
24845 fi
24846fi
24847 if test "$have_bzlib" = 'yes'; then
24848 BZLIB_DELEGATE_TRUE=
24849 BZLIB_DELEGATE_FALSE='#'
24850else
24851 BZLIB_DELEGATE_TRUE='#'
24852 BZLIB_DELEGATE_FALSE=
24853fi
24854
24855
24856
24857#
24858# Find the X11 include and library directories.
24859#
24860IPC_LIBS=''
24861X11_LIBS=''
24862XEXT_LIBS=''
24863XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000024865$as_echo_n "checking for X... " >&6; }
24866
24867
24868# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000024869if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024870 withval=$with_x;
24871fi
24872
24873# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24874if test "x$with_x" = xno; then
24875 # The user explicitly disabled X.
24876 have_x=disabled
24877else
24878 case $x_includes,$x_libraries in #(
cristyfd9dcd42010-08-08 18:07:02 +000024879 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristy8b350f62009-11-15 23:12:43 +000024880 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024881 $as_echo_n "(cached) " >&6
24882else
24883 # One or both of the vars are not set, and there is no cached value.
24884ac_x_includes=no ac_x_libraries=no
24885rm -f -r conftest.dir
24886if mkdir conftest.dir; then
24887 cd conftest.dir
24888 cat >Imakefile <<'_ACEOF'
24889incroot:
24890 @echo incroot='${INCROOT}'
24891usrlibdir:
24892 @echo usrlibdir='${USRLIBDIR}'
24893libdir:
24894 @echo libdir='${LIBDIR}'
24895_ACEOF
24896 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristyfd9dcd42010-08-08 18:07:02 +000024897 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000024898 for ac_var in incroot usrlibdir libdir; do
24899 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24900 done
24901 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24902 for ac_extension in a so sl dylib la dll; do
24903 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24904 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24905 ac_im_usrlibdir=$ac_im_libdir; break
24906 fi
24907 done
24908 # Screen out bogus values from the imake configuration. They are
24909 # bogus both because they are the default anyway, and because
24910 # using them would break gcc on systems where it needs fixed includes.
24911 case $ac_im_incroot in
24912 /usr/include) ac_x_includes= ;;
24913 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24914 esac
24915 case $ac_im_usrlibdir in
24916 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24917 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24918 esac
24919 fi
24920 cd ..
24921 rm -f -r conftest.dir
24922fi
24923
24924# Standard set of common directories for X headers.
24925# Check X11 before X11Rn because it is often a symlink to the current release.
24926ac_x_header_dirs='
24927/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000024928/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024929/usr/X11R6/include
24930/usr/X11R5/include
24931/usr/X11R4/include
24932
24933/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000024934/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024935/usr/include/X11R6
24936/usr/include/X11R5
24937/usr/include/X11R4
24938
24939/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000024940/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024941/usr/local/X11R6/include
24942/usr/local/X11R5/include
24943/usr/local/X11R4/include
24944
24945/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000024946/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024947/usr/local/include/X11R6
24948/usr/local/include/X11R5
24949/usr/local/include/X11R4
24950
24951/usr/X386/include
24952/usr/x386/include
24953/usr/XFree86/include/X11
24954
24955/usr/include
24956/usr/local/include
24957/usr/unsupported/include
24958/usr/athena/include
24959/usr/local/x11r5/include
24960/usr/lpp/Xamples/include
24961
24962/usr/openwin/include
24963/usr/openwin/share/include'
24964
24965if test "$ac_x_includes" = no; then
24966 # Guess where to find include files, by looking for Xlib.h.
24967 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000024968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024969/* end confdefs.h. */
24970#include <X11/Xlib.h>
24971_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024972if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000024973 # We can compile using X headers with no special include directory.
24974ac_x_includes=
24975else
cristyc7083c12009-10-14 03:16:55 +000024976 for ac_dir in $ac_x_header_dirs; do
24977 if test -r "$ac_dir/X11/Xlib.h"; then
24978 ac_x_includes=$ac_dir
24979 break
24980 fi
24981done
24982fi
cristyc7083c12009-10-14 03:16:55 +000024983rm -f conftest.err conftest.$ac_ext
24984fi # $ac_x_includes = no
24985
24986if test "$ac_x_libraries" = no; then
24987 # Check for the libraries.
24988 # See if we find them without any special options.
24989 # Don't add to $LIBS permanently.
24990 ac_save_LIBS=$LIBS
24991 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024993/* end confdefs.h. */
24994#include <X11/Xlib.h>
24995int
24996main ()
24997{
24998XrmInitialize ()
24999 ;
25000 return 0;
25001}
25002_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025003if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025004 LIBS=$ac_save_LIBS
25005# We can link X programs with no special library path.
25006ac_x_libraries=
25007else
cristy8b350f62009-11-15 23:12:43 +000025008 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025009for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25010do
25011 # Don't even attempt the hair of trying to link an X program!
25012 for ac_extension in a so sl dylib la dll; do
25013 if test -r "$ac_dir/libX11.$ac_extension"; then
25014 ac_x_libraries=$ac_dir
25015 break 2
25016 fi
25017 done
25018done
25019fi
cristy8b350f62009-11-15 23:12:43 +000025020rm -f core conftest.err conftest.$ac_objext \
25021 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025022fi # $ac_x_libraries = no
25023
25024case $ac_x_includes,$ac_x_libraries in #(
25025 no,* | *,no | *\'*)
25026 # Didn't find X, or a directory has "'" in its name.
25027 ac_cv_have_x="have_x=no";; #(
25028 *)
25029 # Record where we found X for the cache.
25030 ac_cv_have_x="have_x=yes\
25031 ac_x_includes='$ac_x_includes'\
25032 ac_x_libraries='$ac_x_libraries'"
25033esac
25034fi
25035;; #(
25036 *) have_x=yes;;
25037 esac
25038 eval "$ac_cv_have_x"
25039fi # $with_x != no
25040
25041if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025043$as_echo "$have_x" >&6; }
25044 no_x=yes
25045else
25046 # If each of the values was on the command line, it overrides each guess.
25047 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25048 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25049 # Update the cache value to reflect the command line values.
25050 ac_cv_have_x="have_x=yes\
25051 ac_x_includes='$x_includes'\
25052 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025054$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25055fi
25056
cristy3ed852e2009-09-05 21:47:34 +000025057if test "$no_x" = yes; then
25058 # Not all programs may use this symbol, but it does not hurt to define it.
25059
cristy8b350f62009-11-15 23:12:43 +000025060$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025061
25062 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25063else
25064 if test -n "$x_includes"; then
25065 X_CFLAGS="$X_CFLAGS -I$x_includes"
25066 fi
25067
25068 # It would also be nice to do this for all -L options, not just this one.
25069 if test -n "$x_libraries"; then
25070 X_LIBS="$X_LIBS -L$x_libraries"
25071 # For Solaris; some versions of Sun CC require a space after -R and
25072 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025074$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25075 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25076 ac_xsave_c_werror_flag=$ac_c_werror_flag
25077 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025079/* end confdefs.h. */
25080
25081int
25082main ()
25083{
25084
25085 ;
25086 return 0;
25087}
25088_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025089if ac_fn_c_try_link "$LINENO"; then :
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025091$as_echo "no" >&6; }
25092 X_LIBS="$X_LIBS -R$x_libraries"
25093else
cristy8b350f62009-11-15 23:12:43 +000025094 LIBS="$ac_xsave_LIBS -R $x_libraries"
25095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025096/* end confdefs.h. */
25097
25098int
25099main ()
25100{
25101
25102 ;
25103 return 0;
25104}
25105_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025106if ac_fn_c_try_link "$LINENO"; then :
25107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025108$as_echo "yes" >&6; }
25109 X_LIBS="$X_LIBS -R $x_libraries"
25110else
cristy8b350f62009-11-15 23:12:43 +000025111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025112$as_echo "neither works" >&6; }
25113fi
cristy8b350f62009-11-15 23:12:43 +000025114rm -f core conftest.err conftest.$ac_objext \
25115 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025116fi
cristy8b350f62009-11-15 23:12:43 +000025117rm -f core conftest.err conftest.$ac_objext \
25118 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025119 ac_c_werror_flag=$ac_xsave_c_werror_flag
25120 LIBS=$ac_xsave_LIBS
25121 fi
25122
25123 # Check for system-dependent libraries X programs must link with.
25124 # Do this before checking for the system-independent R6 libraries
25125 # (-lICE), since we may need -lsocket or whatever for X linking.
25126
25127 if test "$ISC" = yes; then
25128 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25129 else
25130 # Martyn Johnson says this is needed for Ultrix, if the X
25131 # libraries were built with DECnet support. And Karl Berry says
25132 # the Alpha needs dnet_stub (dnet does not exist).
25133 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025135/* end confdefs.h. */
25136
25137/* Override any GCC internal prototype to avoid an error.
25138 Use char because int might match the return type of a GCC
25139 builtin and then its argument prototype would still apply. */
25140#ifdef __cplusplus
25141extern "C"
25142#endif
25143char XOpenDisplay ();
25144int
25145main ()
25146{
25147return XOpenDisplay ();
25148 ;
25149 return 0;
25150}
25151_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025152if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025153
cristy8b350f62009-11-15 23:12:43 +000025154else
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025156$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025157if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025158 $as_echo_n "(cached) " >&6
25159else
25160 ac_check_lib_save_LIBS=$LIBS
25161LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025163/* end confdefs.h. */
25164
25165/* Override any GCC internal prototype to avoid an error.
25166 Use char because int might match the return type of a GCC
25167 builtin and then its argument prototype would still apply. */
25168#ifdef __cplusplus
25169extern "C"
25170#endif
25171char dnet_ntoa ();
25172int
25173main ()
25174{
25175return dnet_ntoa ();
25176 ;
25177 return 0;
25178}
25179_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025180if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025181 ac_cv_lib_dnet_dnet_ntoa=yes
25182else
cristy8b350f62009-11-15 23:12:43 +000025183 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025184fi
cristy8b350f62009-11-15 23:12:43 +000025185rm -f core conftest.err conftest.$ac_objext \
25186 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025187LIBS=$ac_check_lib_save_LIBS
25188fi
cristy8b350f62009-11-15 23:12:43 +000025189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025190$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025191if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025192 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25193fi
25194
25195 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000025196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000025197$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025198if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025199 $as_echo_n "(cached) " >&6
25200else
25201 ac_check_lib_save_LIBS=$LIBS
25202LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025204/* end confdefs.h. */
25205
25206/* Override any GCC internal prototype to avoid an error.
25207 Use char because int might match the return type of a GCC
25208 builtin and then its argument prototype would still apply. */
25209#ifdef __cplusplus
25210extern "C"
25211#endif
25212char dnet_ntoa ();
25213int
25214main ()
25215{
25216return dnet_ntoa ();
25217 ;
25218 return 0;
25219}
25220_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025221if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025222 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25223else
cristy8b350f62009-11-15 23:12:43 +000025224 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025225fi
cristy8b350f62009-11-15 23:12:43 +000025226rm -f core conftest.err conftest.$ac_objext \
25227 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025228LIBS=$ac_check_lib_save_LIBS
25229fi
cristy8b350f62009-11-15 23:12:43 +000025230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025231$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025232if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025233 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25234fi
25235
25236 fi
25237fi
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 +000025240 LIBS="$ac_xsave_LIBS"
25241
25242 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25243 # to get the SysV transport functions.
25244 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25245 # needs -lnsl.
25246 # The nsl library prevents programs from opening the X display
25247 # on Irix 5.2, according to T.E. Dickey.
25248 # The functions gethostbyname, getservbyname, and inet_addr are
25249 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000025250 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25251if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025252
cristy3ed852e2009-09-05 21:47:34 +000025253fi
25254
cristy3ed852e2009-09-05 21:47:34 +000025255 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025257$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025258if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025259 $as_echo_n "(cached) " >&6
25260else
25261 ac_check_lib_save_LIBS=$LIBS
25262LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025264/* end confdefs.h. */
25265
25266/* Override any GCC internal prototype to avoid an error.
25267 Use char because int might match the return type of a GCC
25268 builtin and then its argument prototype would still apply. */
25269#ifdef __cplusplus
25270extern "C"
25271#endif
25272char gethostbyname ();
25273int
25274main ()
25275{
25276return gethostbyname ();
25277 ;
25278 return 0;
25279}
25280_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025281if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025282 ac_cv_lib_nsl_gethostbyname=yes
25283else
cristy8b350f62009-11-15 23:12:43 +000025284 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025285fi
cristy8b350f62009-11-15 23:12:43 +000025286rm -f core conftest.err conftest.$ac_objext \
25287 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025288LIBS=$ac_check_lib_save_LIBS
25289fi
cristy8b350f62009-11-15 23:12:43 +000025290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025291$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025292if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025293 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25294fi
25295
25296 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000025298$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025299if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025300 $as_echo_n "(cached) " >&6
25301else
25302 ac_check_lib_save_LIBS=$LIBS
25303LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025305/* end confdefs.h. */
25306
25307/* Override any GCC internal prototype to avoid an error.
25308 Use char because int might match the return type of a GCC
25309 builtin and then its argument prototype would still apply. */
25310#ifdef __cplusplus
25311extern "C"
25312#endif
25313char gethostbyname ();
25314int
25315main ()
25316{
25317return gethostbyname ();
25318 ;
25319 return 0;
25320}
25321_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025322if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025323 ac_cv_lib_bsd_gethostbyname=yes
25324else
cristy8b350f62009-11-15 23:12:43 +000025325 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025326fi
cristy8b350f62009-11-15 23:12:43 +000025327rm -f core conftest.err conftest.$ac_objext \
25328 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025329LIBS=$ac_check_lib_save_LIBS
25330fi
cristy8b350f62009-11-15 23:12:43 +000025331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025332$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025333if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025334 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25335fi
25336
25337 fi
25338 fi
25339
25340 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25341 # socket/setsockopt and other routines are undefined under SCO ODT
25342 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25343 # on later versions), says Simon Leinen: it contains gethostby*
25344 # variants that don't use the name server (or something). -lsocket
25345 # must be given before -lnsl if both are needed. We assume that
25346 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000025347 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25348if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025349
cristy3ed852e2009-09-05 21:47:34 +000025350fi
25351
cristy3ed852e2009-09-05 21:47:34 +000025352 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000025353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000025354$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025355if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025356 $as_echo_n "(cached) " >&6
25357else
25358 ac_check_lib_save_LIBS=$LIBS
25359LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025361/* end confdefs.h. */
25362
25363/* Override any GCC internal prototype to avoid an error.
25364 Use char because int might match the return type of a GCC
25365 builtin and then its argument prototype would still apply. */
25366#ifdef __cplusplus
25367extern "C"
25368#endif
25369char connect ();
25370int
25371main ()
25372{
25373return connect ();
25374 ;
25375 return 0;
25376}
25377_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025378if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025379 ac_cv_lib_socket_connect=yes
25380else
cristy8b350f62009-11-15 23:12:43 +000025381 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000025382fi
cristy8b350f62009-11-15 23:12:43 +000025383rm -f core conftest.err conftest.$ac_objext \
25384 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025385LIBS=$ac_check_lib_save_LIBS
25386fi
cristy8b350f62009-11-15 23:12:43 +000025387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000025388$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025389if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025390 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25391fi
25392
25393 fi
25394
25395 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000025396 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25397if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025398
cristy3ed852e2009-09-05 21:47:34 +000025399fi
25400
cristy3ed852e2009-09-05 21:47:34 +000025401 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000025402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000025403$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025404if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025405 $as_echo_n "(cached) " >&6
25406else
25407 ac_check_lib_save_LIBS=$LIBS
25408LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025410/* end confdefs.h. */
25411
25412/* Override any GCC internal prototype to avoid an error.
25413 Use char because int might match the return type of a GCC
25414 builtin and then its argument prototype would still apply. */
25415#ifdef __cplusplus
25416extern "C"
25417#endif
25418char remove ();
25419int
25420main ()
25421{
25422return remove ();
25423 ;
25424 return 0;
25425}
25426_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025427if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025428 ac_cv_lib_posix_remove=yes
25429else
cristy8b350f62009-11-15 23:12:43 +000025430 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000025431fi
cristy8b350f62009-11-15 23:12:43 +000025432rm -f core conftest.err conftest.$ac_objext \
25433 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025434LIBS=$ac_check_lib_save_LIBS
25435fi
cristy8b350f62009-11-15 23:12:43 +000025436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000025437$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025438if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025439 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25440fi
25441
25442 fi
25443
25444 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000025445 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25446if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025447
cristy3ed852e2009-09-05 21:47:34 +000025448fi
25449
cristy3ed852e2009-09-05 21:47:34 +000025450 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000025451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025452$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025453if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025454 $as_echo_n "(cached) " >&6
25455else
25456 ac_check_lib_save_LIBS=$LIBS
25457LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025459/* end confdefs.h. */
25460
25461/* Override any GCC internal prototype to avoid an error.
25462 Use char because int might match the return type of a GCC
25463 builtin and then its argument prototype would still apply. */
25464#ifdef __cplusplus
25465extern "C"
25466#endif
25467char shmat ();
25468int
25469main ()
25470{
25471return shmat ();
25472 ;
25473 return 0;
25474}
25475_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025476if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025477 ac_cv_lib_ipc_shmat=yes
25478else
cristy8b350f62009-11-15 23:12:43 +000025479 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000025480fi
cristy8b350f62009-11-15 23:12:43 +000025481rm -f core conftest.err conftest.$ac_objext \
25482 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025483LIBS=$ac_check_lib_save_LIBS
25484fi
cristy8b350f62009-11-15 23:12:43 +000025485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000025486$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025487if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025488 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25489fi
25490
25491 fi
25492 fi
25493
25494 # Check for libraries that X11R6 Xt/Xaw programs need.
25495 ac_save_LDFLAGS=$LDFLAGS
25496 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25497 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25498 # check for ICE first), but we must link in the order -lSM -lICE or
25499 # we get undefined symbols. So assume we have SM if we have ICE.
25500 # These have to be linked with before -lX11, unlike the other
25501 # libraries we check for below, so use a different variable.
25502 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000025503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025504$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025505if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025506 $as_echo_n "(cached) " >&6
25507else
25508 ac_check_lib_save_LIBS=$LIBS
25509LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025511/* end confdefs.h. */
25512
25513/* Override any GCC internal prototype to avoid an error.
25514 Use char because int might match the return type of a GCC
25515 builtin and then its argument prototype would still apply. */
25516#ifdef __cplusplus
25517extern "C"
25518#endif
25519char IceConnectionNumber ();
25520int
25521main ()
25522{
25523return IceConnectionNumber ();
25524 ;
25525 return 0;
25526}
25527_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025528if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025529 ac_cv_lib_ICE_IceConnectionNumber=yes
25530else
cristy8b350f62009-11-15 23:12:43 +000025531 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000025532fi
cristy8b350f62009-11-15 23:12:43 +000025533rm -f core conftest.err conftest.$ac_objext \
25534 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025535LIBS=$ac_check_lib_save_LIBS
25536fi
cristy8b350f62009-11-15 23:12:43 +000025537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000025538$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025539if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025540 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25541fi
25542
25543 LDFLAGS=$ac_save_LDFLAGS
25544
25545fi
25546
25547if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025549$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000025551$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025553$as_echo "" >&6; }
25554 LDFLAGS="$LDFLAGS $X_LIBS"
25555 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25556 LIBS="$X11_LIBS $LIBS"
25557 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25558
25559
cristy8b350f62009-11-15 23:12:43 +000025560$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025561
25562 #
25563 # Check for X11 shared memory extension
25564 #
25565 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000025566 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25567if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025568 have_shmctl='yes'
25569fi
25570
25571 if test "$have_shmctl" != 'yes'; then
25572 PERSIST_LIBS=$LIBS
25573 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000025574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025575/* end confdefs.h. */
25576
25577/* Override any GCC internal prototype to avoid an error.
25578 Use char because int might match the return type of a GCC
25579 builtin and then its argument prototype would still apply. */
25580#ifdef __cplusplus
25581extern "C"
25582#endif
25583char shmctl ();
25584int
25585main ()
25586{
25587return shmctl ();
25588 ;
25589 return 0;
25590}
25591_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025592if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025593 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000025594fi
cristy8b350f62009-11-15 23:12:43 +000025595rm -f core conftest.err conftest.$ac_objext \
25596 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025597 LIBS=$PERSIST_LIBS
25598 fi
25599
25600 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025602$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025603if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025604 $as_echo_n "(cached) " >&6
25605else
25606 ac_check_lib_save_LIBS=$LIBS
25607LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025609/* end confdefs.h. */
25610
25611/* Override any GCC internal prototype to avoid an error.
25612 Use char because int might match the return type of a GCC
25613 builtin and then its argument prototype would still apply. */
25614#ifdef __cplusplus
25615extern "C"
25616#endif
25617char XShmAttach ();
25618int
25619main ()
25620{
25621return XShmAttach ();
25622 ;
25623 return 0;
25624}
25625_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025626if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025627 ac_cv_lib_Xext_XShmAttach=yes
25628else
cristy8b350f62009-11-15 23:12:43 +000025629 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025630fi
cristy8b350f62009-11-15 23:12:43 +000025631rm -f core conftest.err conftest.$ac_objext \
25632 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025633LIBS=$ac_check_lib_save_LIBS
25634fi
cristy8b350f62009-11-15 23:12:43 +000025635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025636$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025637if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025638 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025639$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025640
25641fi
25642
25643 fi
25644
25645 #
25646 # Check for X11 shape extension
25647 #
cristy8b350f62009-11-15 23:12:43 +000025648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025649$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025650if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025651 $as_echo_n "(cached) " >&6
25652else
25653 ac_check_lib_save_LIBS=$LIBS
25654LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025656/* end confdefs.h. */
25657
25658/* Override any GCC internal prototype to avoid an error.
25659 Use char because int might match the return type of a GCC
25660 builtin and then its argument prototype would still apply. */
25661#ifdef __cplusplus
25662extern "C"
25663#endif
25664char XShapeCombineMask ();
25665int
25666main ()
25667{
25668return XShapeCombineMask ();
25669 ;
25670 return 0;
25671}
25672_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025673if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025674 ac_cv_lib_Xext_XShapeCombineMask=yes
25675else
cristy8b350f62009-11-15 23:12:43 +000025676 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025677fi
cristy8b350f62009-11-15 23:12:43 +000025678rm -f core conftest.err conftest.$ac_objext \
25679 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025680LIBS=$ac_check_lib_save_LIBS
25681fi
cristy8b350f62009-11-15 23:12:43 +000025682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025683$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025684if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025685 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025686$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025687
25688fi
25689
cristy8b350f62009-11-15 23:12:43 +000025690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025691$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025692if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025693 $as_echo_n "(cached) " >&6
25694else
25695 ac_check_lib_save_LIBS=$LIBS
25696LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025698/* end confdefs.h. */
25699
25700/* Override any GCC internal prototype to avoid an error.
25701 Use char because int might match the return type of a GCC
25702 builtin and then its argument prototype would still apply. */
25703#ifdef __cplusplus
25704extern "C"
25705#endif
25706char XtSetEventDispatcher ();
25707int
25708main ()
25709{
25710return XtSetEventDispatcher ();
25711 ;
25712 return 0;
25713}
25714_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025715if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025716 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25717else
cristy8b350f62009-11-15 23:12:43 +000025718 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025719fi
cristy8b350f62009-11-15 23:12:43 +000025720rm -f core conftest.err conftest.$ac_objext \
25721 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025722LIBS=$ac_check_lib_save_LIBS
25723fi
cristy8b350f62009-11-15 23:12:43 +000025724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025725$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025726if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025727 XT_LIBS='-lXt'
25728fi
25729
25730 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25731fi
25732if test "$no_x" != 'yes'; then
25733 have_x='yes'
25734else
25735 have_x='no'
25736fi
25737 if test "$have_x" = 'yes'; then
25738 X11_DELEGATE_TRUE=
25739 X11_DELEGATE_FALSE='#'
25740else
25741 X11_DELEGATE_TRUE='#'
25742 X11_DELEGATE_FALSE=
25743fi
25744
25745
25746
25747
25748
25749#
25750# Check for ZLIB
25751#
25752
25753# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025754if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025755 withval=$with_zlib; with_zlib=$withval
25756else
25757 with_zlib='yes'
25758fi
25759
25760
25761if test "$with_zlib" != 'yes'; then
25762 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25763fi
25764
25765have_zlib='no'
25766ZLIB_LIBS=''
25767if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025769$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025771$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025773$as_echo "" >&6; }
25774 ZLIB_LIBS=''
25775 failed=0
25776 passed=0
cristy8b350f62009-11-15 23:12:43 +000025777 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25778if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025779 passed=`expr $passed + 1`
25780else
25781 failed=`expr $failed + 1`
25782fi
25783
25784
cristy8b350f62009-11-15 23:12:43 +000025785 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25786if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025787 passed=`expr $passed + 1`
25788else
25789 failed=`expr $failed + 1`
25790fi
25791
25792
cristy8b350f62009-11-15 23:12:43 +000025793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025794$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025795if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025796 $as_echo_n "(cached) " >&6
25797else
25798 ac_check_lib_save_LIBS=$LIBS
25799LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025801/* end confdefs.h. */
25802
25803/* Override any GCC internal prototype to avoid an error.
25804 Use char because int might match the return type of a GCC
25805 builtin and then its argument prototype would still apply. */
25806#ifdef __cplusplus
25807extern "C"
25808#endif
25809char compress ();
25810int
25811main ()
25812{
25813return compress ();
25814 ;
25815 return 0;
25816}
25817_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025818if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025819 ac_cv_lib_z_compress=yes
25820else
cristy8b350f62009-11-15 23:12:43 +000025821 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000025822fi
cristy8b350f62009-11-15 23:12:43 +000025823rm -f core conftest.err conftest.$ac_objext \
25824 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025825LIBS=$ac_check_lib_save_LIBS
25826fi
cristy8b350f62009-11-15 23:12:43 +000025827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025828$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025829if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025830 passed=`expr $passed + 1`
25831else
25832 failed=`expr $failed + 1`
25833fi
25834
cristy8b350f62009-11-15 23:12:43 +000025835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025836$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025837if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025838 $as_echo_n "(cached) " >&6
25839else
25840 ac_check_lib_save_LIBS=$LIBS
25841LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025843/* end confdefs.h. */
25844
25845/* Override any GCC internal prototype to avoid an error.
25846 Use char because int might match the return type of a GCC
25847 builtin and then its argument prototype would still apply. */
25848#ifdef __cplusplus
25849extern "C"
25850#endif
25851char uncompress ();
25852int
25853main ()
25854{
25855return uncompress ();
25856 ;
25857 return 0;
25858}
25859_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025860if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025861 ac_cv_lib_z_uncompress=yes
25862else
cristy8b350f62009-11-15 23:12:43 +000025863 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000025864fi
cristy8b350f62009-11-15 23:12:43 +000025865rm -f core conftest.err conftest.$ac_objext \
25866 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025867LIBS=$ac_check_lib_save_LIBS
25868fi
cristy8b350f62009-11-15 23:12:43 +000025869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025870$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025871if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025872 passed=`expr $passed + 1`
25873else
25874 failed=`expr $failed + 1`
25875fi
25876
cristy8b350f62009-11-15 23:12:43 +000025877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025878$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025879if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025880 $as_echo_n "(cached) " >&6
25881else
25882 ac_check_lib_save_LIBS=$LIBS
25883LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025885/* end confdefs.h. */
25886
25887/* Override any GCC internal prototype to avoid an error.
25888 Use char because int might match the return type of a GCC
25889 builtin and then its argument prototype would still apply. */
25890#ifdef __cplusplus
25891extern "C"
25892#endif
25893char deflate ();
25894int
25895main ()
25896{
25897return deflate ();
25898 ;
25899 return 0;
25900}
25901_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025902if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025903 ac_cv_lib_z_deflate=yes
25904else
cristy8b350f62009-11-15 23:12:43 +000025905 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000025906fi
cristy8b350f62009-11-15 23:12:43 +000025907rm -f core conftest.err conftest.$ac_objext \
25908 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025909LIBS=$ac_check_lib_save_LIBS
25910fi
cristy8b350f62009-11-15 23:12:43 +000025911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025912$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025913if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025914 passed=`expr $passed + 1`
25915else
25916 failed=`expr $failed + 1`
25917fi
25918
cristy8b350f62009-11-15 23:12:43 +000025919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025920$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025921if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025922 $as_echo_n "(cached) " >&6
25923else
25924 ac_check_lib_save_LIBS=$LIBS
25925LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025927/* end confdefs.h. */
25928
25929/* Override any GCC internal prototype to avoid an error.
25930 Use char because int might match the return type of a GCC
25931 builtin and then its argument prototype would still apply. */
25932#ifdef __cplusplus
25933extern "C"
25934#endif
25935char inflate ();
25936int
25937main ()
25938{
25939return inflate ();
25940 ;
25941 return 0;
25942}
25943_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025944if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025945 ac_cv_lib_z_inflate=yes
25946else
cristy8b350f62009-11-15 23:12:43 +000025947 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000025948fi
cristy8b350f62009-11-15 23:12:43 +000025949rm -f core conftest.err conftest.$ac_objext \
25950 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025951LIBS=$ac_check_lib_save_LIBS
25952fi
cristy8b350f62009-11-15 23:12:43 +000025953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025954$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025955if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025956 passed=`expr $passed + 1`
25957else
25958 failed=`expr $failed + 1`
25959fi
25960
cristy8b350f62009-11-15 23:12:43 +000025961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025962$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025963if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025964 $as_echo_n "(cached) " >&6
25965else
25966 ac_check_lib_save_LIBS=$LIBS
25967LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025969/* end confdefs.h. */
25970
25971/* Override any GCC internal prototype to avoid an error.
25972 Use char because int might match the return type of a GCC
25973 builtin and then its argument prototype would still apply. */
25974#ifdef __cplusplus
25975extern "C"
25976#endif
25977char gzseek ();
25978int
25979main ()
25980{
25981return gzseek ();
25982 ;
25983 return 0;
25984}
25985_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025986if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025987 ac_cv_lib_z_gzseek=yes
25988else
cristy8b350f62009-11-15 23:12:43 +000025989 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000025990fi
cristy8b350f62009-11-15 23:12:43 +000025991rm -f core conftest.err conftest.$ac_objext \
25992 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025993LIBS=$ac_check_lib_save_LIBS
25994fi
cristy8b350f62009-11-15 23:12:43 +000025995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000025996$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025997if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025998 passed=`expr $passed + 1`
25999else
26000 failed=`expr $failed + 1`
26001fi
26002
cristy8b350f62009-11-15 23:12:43 +000026003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026004$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026005if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026006 $as_echo_n "(cached) " >&6
26007else
26008 ac_check_lib_save_LIBS=$LIBS
26009LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026011/* end confdefs.h. */
26012
26013/* Override any GCC internal prototype to avoid an error.
26014 Use char because int might match the return type of a GCC
26015 builtin and then its argument prototype would still apply. */
26016#ifdef __cplusplus
26017extern "C"
26018#endif
26019char gztell ();
26020int
26021main ()
26022{
26023return gztell ();
26024 ;
26025 return 0;
26026}
26027_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026028if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026029 ac_cv_lib_z_gztell=yes
26030else
cristy8b350f62009-11-15 23:12:43 +000026031 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026032fi
cristy8b350f62009-11-15 23:12:43 +000026033rm -f core conftest.err conftest.$ac_objext \
26034 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026035LIBS=$ac_check_lib_save_LIBS
26036fi
cristy8b350f62009-11-15 23:12:43 +000026037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026038$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026039if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026040 passed=`expr $passed + 1`
26041else
26042 failed=`expr $failed + 1`
26043fi
26044
cristy8b350f62009-11-15 23:12:43 +000026045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026046$as_echo_n "checking if ZLIB package is complete... " >&6; }
26047 if test $passed -gt 0; then
26048 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026050$as_echo "no -- some components failed test" >&6; }
26051 have_zlib='no (failed tests)'
26052 else
26053 ZLIB_LIBS='-lz'
26054 LIBS="$ZLIB_LIBS $LIBS"
26055
cristy8b350f62009-11-15 23:12:43 +000026056$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026057
cristy8b350f62009-11-15 23:12:43 +000026058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026059$as_echo "yes" >&6; }
26060 have_zlib='yes'
26061 fi
26062 else
cristy8b350f62009-11-15 23:12:43 +000026063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026064$as_echo "no" >&6; }
26065 fi
26066fi
26067 if test "$have_zlib" = 'yes'; then
26068 ZLIB_DELEGATE_TRUE=
26069 ZLIB_DELEGATE_FALSE='#'
26070else
26071 ZLIB_DELEGATE_TRUE='#'
26072 ZLIB_DELEGATE_FALSE=
26073fi
26074
26075
26076
26077#
26078# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26079#
26080LIB_DL=''
26081if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026083$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026084if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026085 $as_echo_n "(cached) " >&6
26086else
26087 ac_check_lib_save_LIBS=$LIBS
26088LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026090/* end confdefs.h. */
26091
26092/* Override any GCC internal prototype to avoid an error.
26093 Use char because int might match the return type of a GCC
26094 builtin and then its argument prototype would still apply. */
26095#ifdef __cplusplus
26096extern "C"
26097#endif
26098char dlopen ();
26099int
26100main ()
26101{
26102return dlopen ();
26103 ;
26104 return 0;
26105}
26106_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026107if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026108 ac_cv_lib_dl_dlopen=yes
26109else
cristy8b350f62009-11-15 23:12:43 +000026110 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026111fi
cristy8b350f62009-11-15 23:12:43 +000026112rm -f core conftest.err conftest.$ac_objext \
26113 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026114LIBS=$ac_check_lib_save_LIBS
26115fi
cristy8b350f62009-11-15 23:12:43 +000026116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026117$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026118if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026119 LIB_DL='-ldl'
26120fi
26121
26122 LIBS="$LIB_DL $LIBS"
26123fi
26124
26125
26126
26127#
26128# Check for Autotrace delegate library.
26129#
26130
26131# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026132if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026133 withval=$with_autotrace; with_autotrace=$withval
26134else
26135 with_autotrace='no'
26136fi
26137
26138
26139if test "$with_autotrace" != 'yes'; then
26140 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26141fi
26142
26143have_autotrace='no'
26144AUTOTRACE_CFLAGS=""
26145AUTOTRACE_LIBS=""
26146AUTOTRACE_PKG=""
26147if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026149$as_echo "-------------------------------------------------------------" >&6; }
26150
26151pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000026153$as_echo_n "checking for AUTOTRACE... " >&6; }
26154
26155if test -n "$AUTOTRACE_CFLAGS"; then
26156 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26157 elif test -n "$PKG_CONFIG"; then
26158 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026159 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026160 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26161 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26163 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026164 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26165else
26166 pkg_failed=yes
26167fi
26168 else
26169 pkg_failed=untried
26170fi
26171if test -n "$AUTOTRACE_LIBS"; then
26172 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26173 elif test -n "$PKG_CONFIG"; then
26174 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026175 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026176 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26177 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26179 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026180 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26181else
26182 pkg_failed=yes
26183fi
26184 else
26185 pkg_failed=untried
26186fi
26187
26188
26189
26190if test $pkg_failed = yes; then
26191
26192if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26193 _pkg_short_errors_supported=yes
26194else
26195 _pkg_short_errors_supported=no
26196fi
26197 if test $_pkg_short_errors_supported = yes; then
26198 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26199 else
26200 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26201 fi
26202 # Put the nasty error message in config.log where it belongs
26203 echo "$AUTOTRACE_PKG_ERRORS" >&5
26204
cristy8b350f62009-11-15 23:12:43 +000026205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026206$as_echo "no" >&6; }
26207 have_autotrace=no
26208elif test $pkg_failed = untried; then
26209 have_autotrace=no
26210else
26211 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26212 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000026213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026214$as_echo "yes" >&6; }
26215 have_autotrace=yes
26216fi
cristy8b350f62009-11-15 23:12:43 +000026217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026218$as_echo "" >&6; }
26219fi
26220
26221if test "$have_autotrace" = 'yes'; then
26222 failed=0
26223
cristy8b350f62009-11-15 23:12:43 +000026224$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026225
26226 if test "$with_modules" = 'no'; then
26227 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26228 fi
26229fi
26230
26231 if test "$have_autotrace" = 'yes'; then
26232 AUTOTRACE_DELEGATE_TRUE=
26233 AUTOTRACE_DELEGATE_FALSE='#'
26234else
26235 AUTOTRACE_DELEGATE_TRUE='#'
26236 AUTOTRACE_DELEGATE_FALSE=
26237fi
26238
26239
26240
26241
26242
26243#
26244# Check for Display Postscript delegate library.
26245#
26246
26247# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000026248if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026249 withval=$with_dps; with_dps=$withval
26250else
26251 with_dps='yes'
26252fi
26253
26254
26255if test "$with_dps" != 'yes'; then
26256 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26257fi
26258
26259have_dps='no'
26260DPS_LIBS=''
26261if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026263$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026265$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026267$as_echo "" >&6; }
26268 failed=0
26269 passed=0
26270 PERSIST_CPPFLAGS="$CPPFLAGS"
26271 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000026272 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26273if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026274 passed=`expr $passed + 1`
26275else
26276 failed=`expr $failed + 1`
26277fi
26278
26279
26280 # DPS issues:
26281 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26282 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26283 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26284 # ImageMagick itself doesn't use -lXt.
26285 have_libdps='no'
26286 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000026287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026288$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026289if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026290 $as_echo_n "(cached) " >&6
26291else
26292 ac_check_lib_save_LIBS=$LIBS
26293LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026295/* end confdefs.h. */
26296
26297/* Override any GCC internal prototype to avoid an error.
26298 Use char because int might match the return type of a GCC
26299 builtin and then its argument prototype would still apply. */
26300#ifdef __cplusplus
26301extern "C"
26302#endif
26303char DPSInitialize ();
26304int
26305main ()
26306{
26307return DPSInitialize ();
26308 ;
26309 return 0;
26310}
26311_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026312if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026313 ac_cv_lib_dps_DPSInitialize=yes
26314else
cristy8b350f62009-11-15 23:12:43 +000026315 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026316fi
cristy8b350f62009-11-15 23:12:43 +000026317rm -f core conftest.err conftest.$ac_objext \
26318 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026319LIBS=$ac_check_lib_save_LIBS
26320fi
cristy8b350f62009-11-15 23:12:43 +000026321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026322$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026323if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026324 have_libdps='yes'
26325else
26326 have_libdps='no'
26327fi
26328
26329 if test "$have_libdps" != 'yes'; then
26330 # Unset cache variable so we can try again.
26331 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000026332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026333$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026334if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026335 $as_echo_n "(cached) " >&6
26336else
26337 ac_check_lib_save_LIBS=$LIBS
26338LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026340/* end confdefs.h. */
26341
26342/* Override any GCC internal prototype to avoid an error.
26343 Use char because int might match the return type of a GCC
26344 builtin and then its argument prototype would still apply. */
26345#ifdef __cplusplus
26346extern "C"
26347#endif
26348char DPSInitialize ();
26349int
26350main ()
26351{
26352return DPSInitialize ();
26353 ;
26354 return 0;
26355}
26356_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026357if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026358 ac_cv_lib_dps_DPSInitialize=yes
26359else
cristy8b350f62009-11-15 23:12:43 +000026360 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026361fi
cristy8b350f62009-11-15 23:12:43 +000026362rm -f core conftest.err conftest.$ac_objext \
26363 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026364LIBS=$ac_check_lib_save_LIBS
26365fi
cristy8b350f62009-11-15 23:12:43 +000026366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026367$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026368if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026369 have_libdps='yes'
26370else
26371 have_libdps='no'
26372fi
26373
26374 if test "$have_libdps" = 'yes'; then
26375 LIBDPS_XT='-lXt'
26376 fi
26377 fi
26378 if test "$have_libdps" = 'yes'; then
26379 passed=`expr $passed + 1`
26380 else
26381 failed=`expr $failed + 1`
26382 fi
cristy8b350f62009-11-15 23:12:43 +000026383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026384$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026385if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026386 $as_echo_n "(cached) " >&6
26387else
26388 ac_check_lib_save_LIBS=$LIBS
26389LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026391/* end confdefs.h. */
26392
26393/* Override any GCC internal prototype to avoid an error.
26394 Use char because int might match the return type of a GCC
26395 builtin and then its argument prototype would still apply. */
26396#ifdef __cplusplus
26397extern "C"
26398#endif
26399char XDPSPixelsPerPoint ();
26400int
26401main ()
26402{
26403return XDPSPixelsPerPoint ();
26404 ;
26405 return 0;
26406}
26407_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026408if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026409 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26410else
cristy8b350f62009-11-15 23:12:43 +000026411 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000026412fi
cristy8b350f62009-11-15 23:12:43 +000026413rm -f core conftest.err conftest.$ac_objext \
26414 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026415LIBS=$ac_check_lib_save_LIBS
26416fi
cristy8b350f62009-11-15 23:12:43 +000026417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000026418$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026419if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026420 passed=`expr $passed + 1`
26421else
26422 failed=`expr $failed + 1`
26423fi
26424
cristy8b350f62009-11-15 23:12:43 +000026425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026426$as_echo_n "checking if DPS package is complete... " >&6; }
26427 if test $passed -gt 0; then
26428 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026430$as_echo "no -- some components failed test" >&6; }
26431 have_dps='no (failed tests)'
26432 CPPFLAGS="$PERSIST_CPPFLAGS"
26433 else
26434 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26435 LIBS="$DPS_LIBS $LIBS"
26436
cristy8b350f62009-11-15 23:12:43 +000026437$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026438
cristy8b350f62009-11-15 23:12:43 +000026439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026440$as_echo "yes" >&6; }
26441 have_dps='yes'
26442 fi
26443 else
cristy8b350f62009-11-15 23:12:43 +000026444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026445$as_echo "no" >&6; }
26446 CPPFLAGS=$PERSIST_CPPFLAGS
26447 fi
26448fi
26449 if test "$have_dps" = 'yes'; then
26450 DPS_DELEGATE_TRUE=
26451 DPS_DELEGATE_FALSE='#'
26452else
26453 DPS_DELEGATE_TRUE='#'
26454 DPS_DELEGATE_FALSE=
26455fi
26456
26457
26458
26459
26460#
26461# Check for DJVU delegate library.
26462#
26463
26464# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000026465if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026466 withval=$with_djvu; with_djvu=$withval
26467else
26468 with_djvu='yes'
26469fi
26470
26471
26472if test "$with_djvu" != 'yes'; then
26473 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26474fi
26475
26476have_djvu='no'
26477DJVU_LIBS=''
26478if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026480$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000026482$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026484$as_echo "" >&6; }
26485 failed=0
26486 passed=0
cristy8b350f62009-11-15 23:12:43 +000026487 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26488if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026489 passed=`expr $passed + 1`
26490else
26491 failed=`expr $failed + 1`
26492fi
26493
26494
cristy8b350f62009-11-15 23:12:43 +000026495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000026496$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026497if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026498 $as_echo_n "(cached) " >&6
26499else
26500 ac_check_lib_save_LIBS=$LIBS
26501LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026503/* end confdefs.h. */
26504
26505/* Override any GCC internal prototype to avoid an error.
26506 Use char because int might match the return type of a GCC
26507 builtin and then its argument prototype would still apply. */
26508#ifdef __cplusplus
26509extern "C"
26510#endif
26511char ddjvu_context_create ();
26512int
26513main ()
26514{
26515return ddjvu_context_create ();
26516 ;
26517 return 0;
26518}
26519_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026520if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026521 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26522else
cristy8b350f62009-11-15 23:12:43 +000026523 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000026524fi
cristy8b350f62009-11-15 23:12:43 +000026525rm -f core conftest.err conftest.$ac_objext \
26526 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026527LIBS=$ac_check_lib_save_LIBS
26528fi
cristy8b350f62009-11-15 23:12:43 +000026529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000026530$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026531if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026532 passed=`expr $passed + 1`
26533else
26534 failed=`expr $failed + 1`
26535fi
26536
cristy8b350f62009-11-15 23:12:43 +000026537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026538$as_echo_n "checking if DJVU package is complete... " >&6; }
26539 if test $passed -gt 0; then
26540 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026542$as_echo "no -- some components failed test" >&6; }
26543 have_djvu='no (failed tests)'
26544 else
26545 DJVU_LIBS='-ldjvulibre'
26546 LIBS="$DJVU_LIBS $LIBS"
26547
cristy8b350f62009-11-15 23:12:43 +000026548$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026549
cristy8b350f62009-11-15 23:12:43 +000026550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026551$as_echo "yes" >&6; }
26552 have_djvu='yes'
26553 fi
26554 else
cristy8b350f62009-11-15 23:12:43 +000026555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026556$as_echo "no" >&6; }
26557 fi
26558fi
26559 if test "$have_djvu" = 'yes'; then
26560 DJVU_DELEGATE_TRUE=
26561 DJVU_DELEGATE_FALSE='#'
26562else
26563 DJVU_DELEGATE_TRUE='#'
26564 DJVU_DELEGATE_FALSE=
26565fi
26566
26567
26568
26569
26570#
cristy430a7312010-01-21 20:44:04 +000026571# Set DejaVu font directory.
26572#
26573
26574# Check whether --with-dejavu-font-dir was given.
26575if test "${with_dejavu_font_dir+set}" = set; then :
26576 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26577else
26578 with_dejavu_font_dir='default'
26579fi
26580
26581
26582if test "$with_dejavu_font_dir" != 'default'; then
26583 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26584fi
26585
26586
26587#
cristy3ed852e2009-09-05 21:47:34 +000026588# Check for FFTW delegate library.
26589#
26590
26591# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000026592if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026593 withval=$with_fftw; with_fftw=$withval
26594else
26595 with_fftw='yes'
26596fi
26597
26598
26599if test "$with_fftw" != 'yes'; then
26600 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26601fi
26602
26603have_fftw='no'
26604FFTW_LIBS=''
26605if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026607$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026609$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026611$as_echo "" >&6; }
26612 failed=0
26613 passed=0
cristy8b350f62009-11-15 23:12:43 +000026614 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26615if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026616 passed=`expr $passed + 1`
26617else
26618 failed=`expr $failed + 1`
26619fi
26620
26621
cristy8b350f62009-11-15 23:12:43 +000026622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026623$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026624if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026625 $as_echo_n "(cached) " >&6
26626else
26627 ac_check_lib_save_LIBS=$LIBS
26628LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026630/* end confdefs.h. */
26631
26632/* Override any GCC internal prototype to avoid an error.
26633 Use char because int might match the return type of a GCC
26634 builtin and then its argument prototype would still apply. */
26635#ifdef __cplusplus
26636extern "C"
26637#endif
26638char fftw_execute ();
26639int
26640main ()
26641{
26642return fftw_execute ();
26643 ;
26644 return 0;
26645}
26646_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026647if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026648 ac_cv_lib_fftw3_fftw_execute=yes
26649else
cristy8b350f62009-11-15 23:12:43 +000026650 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026651fi
cristy8b350f62009-11-15 23:12:43 +000026652rm -f core conftest.err conftest.$ac_objext \
26653 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026654LIBS=$ac_check_lib_save_LIBS
26655fi
cristy8b350f62009-11-15 23:12:43 +000026656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026657$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026658if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026659 passed=`expr $passed + 1`
26660else
26661 failed=`expr $failed + 1`
26662fi
26663
cristy8b350f62009-11-15 23:12:43 +000026664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026665$as_echo_n "checking if FFTW package is complete... " >&6; }
26666 if test $passed -gt 0; then
26667 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026669$as_echo "no -- some components failed test" >&6; }
26670 have_fftw='no (failed tests)'
26671 else
26672 FFTW_LIBS='-lfftw3'
26673 LIBS="$FFTW_LIBS $LIBS"
26674
cristy8b350f62009-11-15 23:12:43 +000026675$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026676
cristy8b350f62009-11-15 23:12:43 +000026677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026678$as_echo "yes" >&6; }
26679 have_fftw='yes'
26680 fi
26681 else
cristy8b350f62009-11-15 23:12:43 +000026682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026683$as_echo "no" >&6; }
26684 fi
26685fi
26686 if test "$have_fftw" = 'yes'; then
26687 FFTW_DELEGATE_TRUE=
26688 FFTW_DELEGATE_FALSE='#'
26689else
26690 FFTW_DELEGATE_TRUE='#'
26691 FFTW_DELEGATE_FALSE=
26692fi
26693
26694
26695
26696
26697#
26698# Check for FlashPIX delegate library.
26699#
26700
26701# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026702if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026703 withval=$with_fpx; with_fpx=$withval
26704else
26705 with_fpx='yes'
26706fi
26707
26708
26709if test "$with_fpx" != 'yes'; then
26710 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26711fi
26712
26713have_fpx='no'
26714FPX_LIBS=''
26715if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026717$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026719$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026721$as_echo "" >&6; }
26722 failed=0
26723 passed=0
26724 ac_ext=cpp
26725ac_cpp='$CXXCPP $CPPFLAGS'
26726ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26727ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26728ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26729
26730
cristy8b350f62009-11-15 23:12:43 +000026731ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26732if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026733 passed=`expr $passed + 1`
26734else
26735 failed=`expr $failed + 1`
26736fi
26737
26738
cristy8b350f62009-11-15 23:12:43 +000026739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026740$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026741if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026742 $as_echo_n "(cached) " >&6
26743else
26744 ac_check_lib_save_LIBS=$LIBS
26745LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026747/* end confdefs.h. */
26748
26749/* Override any GCC internal prototype to avoid an error.
26750 Use char because int might match the return type of a GCC
26751 builtin and then its argument prototype would still apply. */
26752#ifdef __cplusplus
26753extern "C"
26754#endif
26755char FPX_OpenImageByFilename ();
26756int
26757main ()
26758{
26759return FPX_OpenImageByFilename ();
26760 ;
26761 return 0;
26762}
26763_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026764if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026765 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26766else
cristy8b350f62009-11-15 23:12:43 +000026767 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026768fi
cristy8b350f62009-11-15 23:12:43 +000026769rm -f core conftest.err conftest.$ac_objext \
26770 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026771LIBS=$ac_check_lib_save_LIBS
26772fi
cristy8b350f62009-11-15 23:12:43 +000026773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000026774$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026775if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026776 passed=`expr $passed + 1`
26777else
26778 failed=`expr $failed + 1`
26779fi
26780
26781 ac_ext=c
26782ac_cpp='$CPP $CPPFLAGS'
26783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26785ac_compiler_gnu=$ac_cv_c_compiler_gnu
26786
cristy8b350f62009-11-15 23:12:43 +000026787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026788$as_echo_n "checking if FlashPIX package is complete... " >&6; }
26789 if test $passed -gt 0; then
26790 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026792$as_echo "no -- some components failed test" >&6; }
26793 have_fpx='no (failed tests)'
26794 else
26795 FPX_LIBS='-lfpx'
26796
cristy8b350f62009-11-15 23:12:43 +000026797$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026798
cristy8b350f62009-11-15 23:12:43 +000026799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026800$as_echo "yes" >&6; }
26801 have_fpx='yes'
26802 PERLMAINCC="$CXX"
26803 fi
26804 else
cristy8b350f62009-11-15 23:12:43 +000026805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026806$as_echo "no" >&6; }
26807 fi
26808fi
26809 if test "$have_fpx" = 'yes'; then
26810 FPX_DELEGATE_TRUE=
26811 FPX_DELEGATE_FALSE='#'
26812else
26813 FPX_DELEGATE_TRUE='#'
26814 FPX_DELEGATE_FALSE=
26815fi
26816
26817
26818
26819
26820#
26821# Check for fontconfig delegate library.
26822#
26823
26824# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000026825if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026826 withval=$with_fontconfig; with_fontconfig=$withval
26827else
26828 with_fontconfig=$have_x
26829fi
26830
26831
26832if test "$with_fontconfig" != 'yes'; then
26833 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
26834fi
26835
26836have_fontconfig='no'
26837FONTCONFIG_CFLAGS=""
26838FONTCONFIG_LIBS=""
26839FONTCONFIG_PKG=""
26840if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026842$as_echo "-------------------------------------------------------------" >&6; }
26843
26844pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026846$as_echo_n "checking for FONTCONFIG... " >&6; }
26847
26848if test -n "$FONTCONFIG_CFLAGS"; then
26849 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
26850 elif test -n "$PKG_CONFIG"; then
26851 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026852 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026853 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26854 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26856 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026857 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
26858else
26859 pkg_failed=yes
26860fi
26861 else
26862 pkg_failed=untried
26863fi
26864if test -n "$FONTCONFIG_LIBS"; then
26865 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
26866 elif test -n "$PKG_CONFIG"; then
26867 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026868 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026869 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26870 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26872 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026873 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
26874else
26875 pkg_failed=yes
26876fi
26877 else
26878 pkg_failed=untried
26879fi
26880
26881
26882
26883if test $pkg_failed = yes; then
26884
26885if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26886 _pkg_short_errors_supported=yes
26887else
26888 _pkg_short_errors_supported=no
26889fi
26890 if test $_pkg_short_errors_supported = yes; then
26891 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
26892 else
26893 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
26894 fi
26895 # Put the nasty error message in config.log where it belongs
26896 echo "$FONTCONFIG_PKG_ERRORS" >&5
26897
cristy8b350f62009-11-15 23:12:43 +000026898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026899$as_echo "no" >&6; }
26900 have_fontconfig=no
26901elif test $pkg_failed = untried; then
26902 have_fontconfig=no
26903else
26904 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
26905 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000026906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026907$as_echo "yes" >&6; }
26908 have_fontconfig=yes
26909fi
cristy8b350f62009-11-15 23:12:43 +000026910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026911$as_echo "" >&6; }
26912fi
26913
26914if test "$have_fontconfig" = 'yes'; then
26915
cristy8b350f62009-11-15 23:12:43 +000026916$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026917
cristyd09bcf92010-03-25 03:04:45 +000026918 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000026919 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000026920 fi
cristy3ed852e2009-09-05 21:47:34 +000026921fi
26922
26923 if test "$have_fontconfig" = 'yes'; then
26924 FONTCONFIG_DELEGATE_TRUE=
26925 FONTCONFIG_DELEGATE_FALSE='#'
26926else
26927 FONTCONFIG_DELEGATE_TRUE='#'
26928 FONTCONFIG_DELEGATE_FALSE=
26929fi
26930
26931
26932
26933
26934
26935#
26936# Check for freetype delegate library.
26937#
26938
26939# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000026940if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026941 withval=$with_freetype; with_freetype=$withval
26942else
26943 with_freetype='yes'
26944fi
26945
26946
26947
26948if test "$with_freetype" != 'yes'; then
26949 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
26950fi
26951
26952have_freetype='no'
26953FREETYPE_LIBS=''
26954if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026956$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000026958$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026960$as_echo "" >&6; }
26961 failed=0
26962 passed=0
cristy66291112009-10-03 22:44:36 +000026963 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000026964 PERSIST_CPPFLAGS="$CPPFLAGS"
26965 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
26966 :
26967 else
26968 freetype_config=''
26969 for ac_prog in freetype-config
26970do
26971 # Extract the first word of "$ac_prog", so it can be a program name with args.
26972set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026974$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026975if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026976 $as_echo_n "(cached) " >&6
26977else
26978 if test -n "$freetype_config"; then
26979 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
26980else
26981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26982for as_dir in $PATH
26983do
26984 IFS=$as_save_IFS
26985 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026986 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26988 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026990 break 2
26991 fi
26992done
cristy8b350f62009-11-15 23:12:43 +000026993 done
cristy3ed852e2009-09-05 21:47:34 +000026994IFS=$as_save_IFS
26995
26996fi
26997fi
26998freetype_config=$ac_cv_prog_freetype_config
26999if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027001$as_echo "$freetype_config" >&6; }
27002else
cristy8b350f62009-11-15 23:12:43 +000027003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027004$as_echo "no" >&6; }
27005fi
27006
27007
27008 test -n "$freetype_config" && break
27009done
27010 if test -n "$freetype_config"; then
27011 freetype_cflags=`$freetype_config --cflags`
27012 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027013 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027014 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27015 fi
27016 fi
27017
27018 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027020$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027021if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027022 $as_echo_n "(cached) " >&6
27023else
27024 ac_check_lib_save_LIBS=$LIBS
27025LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027027/* end confdefs.h. */
27028
27029/* Override any GCC internal prototype to avoid an error.
27030 Use char because int might match the return type of a GCC
27031 builtin and then its argument prototype would still apply. */
27032#ifdef __cplusplus
27033extern "C"
27034#endif
27035char FT_Init_FreeType ();
27036int
27037main ()
27038{
27039return FT_Init_FreeType ();
27040 ;
27041 return 0;
27042}
27043_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027044if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027045 ac_cv_lib_freetype_FT_Init_FreeType=yes
27046else
cristy8b350f62009-11-15 23:12:43 +000027047 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027048fi
cristy8b350f62009-11-15 23:12:43 +000027049rm -f core conftest.err conftest.$ac_objext \
27050 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027051LIBS=$ac_check_lib_save_LIBS
27052fi
cristy8b350f62009-11-15 23:12:43 +000027053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027054$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027055if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027056 FREETYPE_LIBS='-lfreetype'
27057fi
27058
27059 if test "$FREETYPE_LIBS" != ''; then
27060 passed=`expr $passed + 1`
27061 else
27062 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027063 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027064 fi
27065 fi
27066
cristy8b350f62009-11-15 23:12:43 +000027067 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27068if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027069 FT2BUILD_H='#include <ft2build.h>'
27070else
27071 ft2build=''
27072fi
27073
27074
cristy8b350f62009-11-15 23:12:43 +000027075 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27076"
27077if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027078 have_freetype_h='yes'
27079else
27080 have_freetype_h='no'
27081fi
27082
27083
27084 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27085 passed=`expr $passed + 1`
27086 else
27087 failed=`expr $failed + 1`
27088 CPPFLAGS="$PERSIST_CPPFLAGS"
27089 fi
27090
cristy8b350f62009-11-15 23:12:43 +000027091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027092$as_echo_n "checking if FreeType package is complete... " >&6; }
27093 if test $passed -gt 0; then
27094 if test $failed -gt 0; then
27095 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027097$as_echo "no -- some components failed test" >&6; }
27098 have_freetype='no (failed tests)'
27099 else
27100 LIBS="$FREETYPE_LIBS $LIBS"
27101
cristy8b350f62009-11-15 23:12:43 +000027102$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027103
27104 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27105
cristy8b350f62009-11-15 23:12:43 +000027106$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027107
27108 fi
cristy8b350f62009-11-15 23:12:43 +000027109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027110$as_echo "yes" >&6; }
27111 have_freetype='yes'
27112 fi
27113 else
cristy8b350f62009-11-15 23:12:43 +000027114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027115$as_echo "no" >&6; }
27116 fi
27117fi
27118 if test "$have_freetype" = 'yes'; then
27119 FREETYPE_DELEGATE_TRUE=
27120 FREETYPE_DELEGATE_FALSE='#'
27121else
27122 FREETYPE_DELEGATE_TRUE='#'
27123 FREETYPE_DELEGATE_FALSE=
27124fi
27125
27126
27127
27128
27129
27130#
27131# Check for Ghostscript library or framework.
27132#
27133# Test for iapi.h & test for gsapi_new_instance in -lgs
27134# or -framework Ghostscript
27135
27136
27137# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027138if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027139 withval=$with_gslib; with_gslib=$withval
27140else
27141 with_gslib='no'
27142fi
27143
27144
cristyb7931f12009-09-25 10:22:21 +000027145gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027146if test "$with_gslib" != 'yes'; then
27147 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27148fi
27149
27150have_gslib='no'
27151GS_LIBS=''
27152if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027154$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027156$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027158$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027159 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027160 failed=0
27161 passed=0
cristy8b350f62009-11-15 23:12:43 +000027162 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27163if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027164 passed=`expr $passed + 1`
27165else
27166 failed=`expr $failed + 1`
27167fi
27168
27169
cristy8b350f62009-11-15 23:12:43 +000027170 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27171if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027172 passed=`expr $passed + 1`
27173else
27174 failed=`expr $failed + 1`
27175fi
27176
27177
cristy8b350f62009-11-15 23:12:43 +000027178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000027179$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027180if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027181 $as_echo_n "(cached) " >&6
27182else
27183 ac_check_framework_save_LIBS=$LIBS
27184LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027186/* end confdefs.h. */
27187
27188/* Override any GCC internal prototype to avoid an error.
27189 Use char because int might match the return type of a GCC
27190 builtin and then its argument prototype would still apply. */
27191#ifdef __cplusplus
27192extern "C"
27193#endif
27194char gsapi_new_instance ();
27195int
27196main ()
27197{
27198return gsapi_new_instance ();
27199 ;
27200 return 0;
27201}
27202_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027203if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027204 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27205else
cristy8b350f62009-11-15 23:12:43 +000027206 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027207fi
cristy8b350f62009-11-15 23:12:43 +000027208rm -f core conftest.err conftest.$ac_objext \
27209 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027210LIBS=$ac_check_framework_save_LIBS
27211fi
cristy8b350f62009-11-15 23:12:43 +000027212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027213$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027214if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027215 framework=`expr $framework + 1`
27216else
cristy8b350f62009-11-15 23:12:43 +000027217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000027218$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027219if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027220 $as_echo_n "(cached) " >&6
27221else
27222 ac_check_lib_save_LIBS=$LIBS
27223LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027225/* end confdefs.h. */
27226
27227/* Override any GCC internal prototype to avoid an error.
27228 Use char because int might match the return type of a GCC
27229 builtin and then its argument prototype would still apply. */
27230#ifdef __cplusplus
27231extern "C"
27232#endif
27233char gsapi_new_instance ();
27234int
27235main ()
27236{
27237return gsapi_new_instance ();
27238 ;
27239 return 0;
27240}
27241_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027242if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027243 ac_cv_lib_gs_gsapi_new_instance=yes
27244else
cristy8b350f62009-11-15 23:12:43 +000027245 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027246fi
cristy8b350f62009-11-15 23:12:43 +000027247rm -f core conftest.err conftest.$ac_objext \
27248 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027249LIBS=$ac_check_lib_save_LIBS
27250fi
cristy8b350f62009-11-15 23:12:43 +000027251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027252$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027253if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027254 passed=`expr $passed + 1`
27255else
27256 failed=`expr $failed + 1`
27257fi
27258
27259fi
cristy8b350f62009-11-15 23:12:43 +000027260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027261$as_echo_n "checking if Ghostscript package is complete... " >&6; }
27262 if test $passed -gt 0; then
27263 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027265$as_echo "no -- some components failed test" >&6; }
27266 have_gslib='no (failed tests)'
27267 else
27268 if test $framework -gt 0; then
27269 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000027270 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000027271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000027272$as_echo "yes, using framework." >&6; }
27273 else
cristy8b350f62009-11-15 23:12:43 +000027274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000027275$as_echo "yes, using library." >&6; }
27276 GS_LIBS='-lgs'
27277 fi
27278 LIBS="$GS_LIBS $LIBS"
27279
cristy8b350f62009-11-15 23:12:43 +000027280$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027281
27282 have_gslib='yes'
27283 fi
27284 else
cristy8b350f62009-11-15 23:12:43 +000027285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027286$as_echo "no" >&6; }
27287 fi
27288fi
27289 if test "$have_gslib" = 'yes'; then
27290 GS_DELEGATE_TRUE=
27291 GS_DELEGATE_FALSE='#'
27292else
27293 GS_DELEGATE_TRUE='#'
27294 GS_DELEGATE_FALSE=
27295fi
27296
27297
27298
27299# Set default font search path
27300
27301# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000027302if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027303 withval=$with_fontpath; with_fontpath=$withval
27304else
27305 with_fontpath=''
27306fi
27307
27308
27309if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27310 with_fontpath=''
27311else
27312
27313cat >>confdefs.h <<_ACEOF
27314#define MAGICK_FONT_PATH "$with_fontpath"
27315_ACEOF
27316
27317fi
27318if test "$with_fontpath=" != ''; then
27319 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27320fi
27321
27322# Set Ghostscript font directory
27323
27324# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027325if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027326 withval=$with_gs_font_dir; with_gs_font_dir=$withval
27327else
27328 with_gs_font_dir='default'
27329fi
27330
27331
27332if test "$with_gs_font_dir" != 'default'; then
27333 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27334fi
27335
27336
27337#
27338# Check for GVC delegate library.
27339#
27340
27341# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000027342if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027343 withval=$with_gvc; with_gvc=$withval
27344else
27345 with_gvc='yes'
27346fi
27347
27348
27349if test "$with_gvc" != 'yes'; then
27350 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27351fi
27352
27353GVC_PKG=""
27354if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027356$as_echo "-------------------------------------------------------------" >&6; }
27357
27358pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000027360$as_echo_n "checking for GVC... " >&6; }
27361
27362if test -n "$GVC_CFLAGS"; then
27363 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27364 elif test -n "$PKG_CONFIG"; then
27365 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027366 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027367 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27368 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27370 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027371 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27372else
27373 pkg_failed=yes
27374fi
27375 else
27376 pkg_failed=untried
27377fi
27378if test -n "$GVC_LIBS"; then
27379 pkg_cv_GVC_LIBS="$GVC_LIBS"
27380 elif test -n "$PKG_CONFIG"; then
27381 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027382 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027383 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27384 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27386 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027387 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27388else
27389 pkg_failed=yes
27390fi
27391 else
27392 pkg_failed=untried
27393fi
27394
27395
27396
27397if test $pkg_failed = yes; then
27398
27399if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27400 _pkg_short_errors_supported=yes
27401else
27402 _pkg_short_errors_supported=no
27403fi
27404 if test $_pkg_short_errors_supported = yes; then
27405 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27406 else
27407 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27408 fi
27409 # Put the nasty error message in config.log where it belongs
27410 echo "$GVC_PKG_ERRORS" >&5
27411
cristy8b350f62009-11-15 23:12:43 +000027412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027413$as_echo "no" >&6; }
27414 have_gvc=no
27415elif test $pkg_failed = untried; then
27416 have_gvc=no
27417else
27418 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27419 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000027420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027421$as_echo "yes" >&6; }
27422 have_gvc=yes
27423fi
cristy8b350f62009-11-15 23:12:43 +000027424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027425$as_echo "" >&6; }
27426fi
27427
27428if test "$have_gvc" = 'yes'; then
27429
cristy8b350f62009-11-15 23:12:43 +000027430$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027431
27432 if test "$with_modules" = 'no'; then
27433 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27434 fi
27435fi
27436
27437 if test "$have_gvc" = 'yes'; then
27438 GVC_DELEGATE_TRUE=
27439 GVC_DELEGATE_FALSE='#'
27440else
27441 GVC_DELEGATE_TRUE='#'
27442 GVC_DELEGATE_FALSE=
27443fi
27444
27445
27446
27447
27448
27449#
27450# Check for JBIG delegate library.
27451#
27452
27453
27454# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000027455if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027456 withval=$with_jbig; with_jbig=$withval
27457else
27458 with_jbig='yes'
27459fi
27460
27461
27462have_jbig='no'
27463JBIG_LIBS=''
27464if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027466$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027468$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027470$as_echo "" >&6; }
27471 failed=0
27472 passed=0
cristy8b350f62009-11-15 23:12:43 +000027473 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27474if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027475 passed=`expr $passed + 1`
27476else
27477 failed=`expr $failed + 1`
27478fi
27479
27480
cristy8b350f62009-11-15 23:12:43 +000027481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000027482$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027483if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027484 $as_echo_n "(cached) " >&6
27485else
27486 ac_check_lib_save_LIBS=$LIBS
27487LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027489/* end confdefs.h. */
27490
27491/* Override any GCC internal prototype to avoid an error.
27492 Use char because int might match the return type of a GCC
27493 builtin and then its argument prototype would still apply. */
27494#ifdef __cplusplus
27495extern "C"
27496#endif
27497char jbg_dec_init ();
27498int
27499main ()
27500{
27501return jbg_dec_init ();
27502 ;
27503 return 0;
27504}
27505_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027506if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027507 ac_cv_lib_jbig_jbg_dec_init=yes
27508else
cristy8b350f62009-11-15 23:12:43 +000027509 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000027510fi
cristy8b350f62009-11-15 23:12:43 +000027511rm -f core conftest.err conftest.$ac_objext \
27512 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027513LIBS=$ac_check_lib_save_LIBS
27514fi
cristy8b350f62009-11-15 23:12:43 +000027515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000027516$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027517if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027518 passed=`expr $passed + 1`
27519else
27520 failed=`expr $failed + 1`
27521fi
27522
cristy8b350f62009-11-15 23:12:43 +000027523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027524$as_echo_n "checking if JBIG package is complete... " >&6; }
27525 if test $passed -gt 0; then
27526 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027528$as_echo "no -- some components failed test" >&6; }
27529 have_jbig='no (failed tests)'
27530 else
27531 JBIG_LIBS='-ljbig'
27532 LIBS="$JBIG_LIBS $LIBS"
27533
cristy8b350f62009-11-15 23:12:43 +000027534$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027535
cristy8b350f62009-11-15 23:12:43 +000027536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027537$as_echo "yes" >&6; }
27538 have_jbig='yes'
27539 fi
27540 else
cristy8b350f62009-11-15 23:12:43 +000027541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027542$as_echo "no" >&6; }
27543 fi
27544fi
27545 if test "$have_jbig" = 'yes'; then
27546 JBIG_DELEGATE_TRUE=
27547 JBIG_DELEGATE_FALSE='#'
27548else
27549 JBIG_DELEGATE_TRUE='#'
27550 JBIG_DELEGATE_FALSE=
27551fi
27552
27553
27554
27555
27556#
27557# Check for JPEG delegate library.
27558#
27559
27560# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000027561if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027562 withval=$with_jpeg; with_jpeg=$withval
27563else
27564 with_jpeg='yes'
27565fi
27566
27567
27568if test "$with_jpeg" != 'yes'; then
27569 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27570fi
27571
27572have_jpeg='no'
27573JPEG_LIBS=''
27574if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027576$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027578$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027580$as_echo "" >&6; }
27581 failed=0
27582 passed=0
cristy8b350f62009-11-15 23:12:43 +000027583 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27584if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027585 passed=`expr $passed + 1`
27586else
27587 failed=`expr $failed + 1`
27588fi
27589
27590
cristy8b350f62009-11-15 23:12:43 +000027591 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27592if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027593 passed=`expr $passed + 1`
27594else
27595 failed=`expr $failed + 1`
27596fi
27597
27598
cristy8b350f62009-11-15 23:12:43 +000027599 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27600if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027601 passed=`expr $passed + 1`
27602else
27603 failed=`expr $failed + 1`
27604fi
27605
27606
cristy8b350f62009-11-15 23:12:43 +000027607 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27608if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027609 passed=`expr $passed + 1`
27610else
27611 failed=`expr $failed + 1`
27612fi
27613
27614
cristy8b350f62009-11-15 23:12:43 +000027615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027616$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027617if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027618 $as_echo_n "(cached) " >&6
27619else
27620 ac_check_lib_save_LIBS=$LIBS
27621LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027623/* end confdefs.h. */
27624
27625/* Override any GCC internal prototype to avoid an error.
27626 Use char because int might match the return type of a GCC
27627 builtin and then its argument prototype would still apply. */
27628#ifdef __cplusplus
27629extern "C"
27630#endif
27631char jpeg_read_header ();
27632int
27633main ()
27634{
27635return jpeg_read_header ();
27636 ;
27637 return 0;
27638}
27639_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027640if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027641 ac_cv_lib_jpeg_jpeg_read_header=yes
27642else
cristy8b350f62009-11-15 23:12:43 +000027643 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027644fi
cristy8b350f62009-11-15 23:12:43 +000027645rm -f core conftest.err conftest.$ac_objext \
27646 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027647LIBS=$ac_check_lib_save_LIBS
27648fi
cristy8b350f62009-11-15 23:12:43 +000027649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027650$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027651if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027652 passed=`expr $passed + 1`
27653else
27654 failed=`expr $failed + 1`
27655fi
27656
27657
27658# Test for compatible JPEG library
27659if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027661$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027662if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027663 $as_echo_n "(cached) " >&6
27664else
cristy8b350f62009-11-15 23:12:43 +000027665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027666/* end confdefs.h. */
27667#include <stdio.h>
27668#include <stdlib.h>
27669#include <jpeglib.h>
27670
27671int
27672main ()
27673{
27674
27675#if JPEG_LIB_VERSION < 62
27676#error IJG JPEG library must be version 6b or newer!
27677#endif
27678return 0;
27679
27680 ;
27681 return 0;
27682}
27683_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027684if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027685 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27686else
cristy8b350f62009-11-15 23:12:43 +000027687 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027688fi
cristy3ed852e2009-09-05 21:47:34 +000027689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27690fi
cristy8b350f62009-11-15 23:12:43 +000027691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027692$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27693fi
cristy8b350f62009-11-15 23:12:43 +000027694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027695$as_echo_n "checking if JPEG package is complete... " >&6; }
27696 if test $passed -gt 0; then
27697 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027699$as_echo "no -- some components failed test" >&6; }
27700 have_jpeg='no (failed tests)'
27701 else
27702 JPEG_LIBS='-ljpeg'
27703 LIBS="$JPEG_LIBS $LIBS"
27704
cristy8b350f62009-11-15 23:12:43 +000027705$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027706
cristy8b350f62009-11-15 23:12:43 +000027707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027708$as_echo "yes" >&6; }
27709 have_jpeg='yes'
27710 fi
27711 else
cristy8b350f62009-11-15 23:12:43 +000027712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027713$as_echo "no" >&6; }
27714 fi
27715fi
27716 if test "$have_jpeg" = 'yes'; then
27717 JPEG_DELEGATE_TRUE=
27718 JPEG_DELEGATE_FALSE='#'
27719else
27720 JPEG_DELEGATE_TRUE='#'
27721 JPEG_DELEGATE_FALSE=
27722fi
27723
27724
27725
27726
27727#
27728# Check for JPEG Version 2 delegate library.
27729#
27730
27731# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027732if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027733 withval=$with_jp2; with_jp2=$withval
27734else
27735 with_jp2='yes'
27736fi
27737
27738
27739if test "$with_jp2" != 'yes'; then
27740 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27741fi
27742
27743have_jp2='no'
27744JP2_LIBS=''
27745if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027747$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027749$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027751$as_echo "" >&6; }
27752 failed=0
27753 passed=0
cristy8b350f62009-11-15 23:12:43 +000027754 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27755if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027756 passed=`expr $passed + 1`
27757else
27758 failed=`expr $failed + 1`
27759fi
27760
27761
cristy8b350f62009-11-15 23:12:43 +000027762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027763$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027764if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027765 $as_echo_n "(cached) " >&6
27766else
27767 ac_check_lib_save_LIBS=$LIBS
27768LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027770/* end confdefs.h. */
27771
27772/* Override any GCC internal prototype to avoid an error.
27773 Use char because int might match the return type of a GCC
27774 builtin and then its argument prototype would still apply. */
27775#ifdef __cplusplus
27776extern "C"
27777#endif
27778char jas_stream_fopen ();
27779int
27780main ()
27781{
27782return jas_stream_fopen ();
27783 ;
27784 return 0;
27785}
27786_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027787if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027788 ac_cv_lib_jasper_jas_stream_fopen=yes
27789else
cristy8b350f62009-11-15 23:12:43 +000027790 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000027791fi
cristy8b350f62009-11-15 23:12:43 +000027792rm -f core conftest.err conftest.$ac_objext \
27793 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027794LIBS=$ac_check_lib_save_LIBS
27795fi
cristy8b350f62009-11-15 23:12:43 +000027796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027797$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027798if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027799 passed=`expr $passed + 1`
27800else
27801 failed=`expr $failed + 1`
27802fi
27803
cristy8b350f62009-11-15 23:12:43 +000027804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027805$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27806 if test $passed -gt 0; then
27807 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027809$as_echo "no -- some components failed test" >&6; }
27810 have_jp2='no (failed tests)'
27811 else
27812 JP2_LIBS='-ljasper'
27813 LIBS="$JP2_LIBS $LIBS"
27814
cristy8b350f62009-11-15 23:12:43 +000027815$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027816
cristy8b350f62009-11-15 23:12:43 +000027817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027818$as_echo "yes" >&6; }
27819 have_jp2='yes'
27820 fi
27821 else
cristy8b350f62009-11-15 23:12:43 +000027822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027823$as_echo "no" >&6; }
27824 fi
27825fi
27826 if test "$have_jp2" = 'yes'; then
27827 JP2_DELEGATE_TRUE=
27828 JP2_DELEGATE_FALSE='#'
27829else
27830 JP2_DELEGATE_TRUE='#'
27831 JP2_DELEGATE_FALSE=
27832fi
27833
27834
27835
27836
27837#
27838# Check for LCMS delegate library.
27839#
cristy71203402010-06-18 13:12:03 +000027840# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000027841
27842# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000027843if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027844 withval=$with_lcms; with_lcms=$withval
27845else
27846 with_lcms='yes'
27847fi
27848
cristy71203402010-06-18 13:12:03 +000027849if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000027850 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
27851fi
27852
cristy71203402010-06-18 13:12:03 +000027853# Disable LCMS2.
27854
27855# Check whether --with-lcms2 was given.
27856if test "${with_lcms2+set}" = set; then :
27857 withval=$with_lcms2; with_lcms2=$withval
27858else
27859 with_lcms2='yes'
27860fi
27861
27862if test "$with_lcms2" != 'yes' ; then
27863 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
27864fi
27865
27866have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000027867LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000027868if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027870$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000027871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
27872$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027874$as_echo "" >&6; }
27875 failed=0
27876 passed=0
27877 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000027878
27879 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000027880 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
27881if test "x$ac_cv_header_lcms2_h" = x""yes; then :
27882 have_lcms_header='yes'
27883fi
27884
27885
27886 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000027887
27888$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
27889
cristy71203402010-06-18 13:12:03 +000027890 passed=`expr $passed + 1`
27891 fi
27892
27893 # Check for <lcms2/lcms2.h)
27894 if test "$have_lcms_header" != 'yes'; then
27895 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
27896if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000027897 have_lcms_header='yes'
27898fi
27899
27900
cristy71203402010-06-18 13:12:03 +000027901 if test "$have_lcms_header" = 'yes'; then
27902 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000027903
cristy71203402010-06-18 13:12:03 +000027904$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000027905
cristy71203402010-06-18 13:12:03 +000027906 fi
cristyd09bcf92010-03-25 03:04:45 +000027907 fi
cristy71203402010-06-18 13:12:03 +000027908
27909 # Failed to find lcms header?
27910 if test "$have_lcms_header" != 'yes'; then
27911 failed=`expr $failed + 1`
27912 fi
27913
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
27915$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
27916if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
cristyd09bcf92010-03-25 03:04:45 +000027917 $as_echo_n "(cached) " >&6
27918else
27919 ac_check_lib_save_LIBS=$LIBS
27920LIBS="-llcms2 $LIBS"
27921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27922/* end confdefs.h. */
27923
27924/* Override any GCC internal prototype to avoid an error.
27925 Use char because int might match the return type of a GCC
27926 builtin and then its argument prototype would still apply. */
27927#ifdef __cplusplus
27928extern "C"
27929#endif
cristy71203402010-06-18 13:12:03 +000027930char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000027931int
27932main ()
27933{
cristy71203402010-06-18 13:12:03 +000027934return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000027935 ;
27936 return 0;
27937}
27938_ACEOF
27939if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000027940 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000027941else
cristy71203402010-06-18 13:12:03 +000027942 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000027943fi
27944rm -f core conftest.err conftest.$ac_objext \
27945 conftest$ac_exeext conftest.$ac_ext
27946LIBS=$ac_check_lib_save_LIBS
27947fi
cristy71203402010-06-18 13:12:03 +000027948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
27949$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
27950if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000027951 passed=`expr $passed + 1`
27952else
27953 failed=`expr $failed + 1`
27954fi
27955
cristy71203402010-06-18 13:12:03 +000027956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
27957$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000027958 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000027959 if test $failed -gt 0; then
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000027961$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000027962 have_lcms2='no (failed tests)'
27963 else
27964 LCMS_LIBS='-llcms2'
27965 LIBS="$LCMS_LIBS $LIBS"
27966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000027967$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000027968 have_lcms2='yes'
27969 fi
cristyd09bcf92010-03-25 03:04:45 +000027970 else
cristy71203402010-06-18 13:12:03 +000027971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000027972$as_echo "no" >&6; }
27973 fi
27974fi
27975
cristy71203402010-06-18 13:12:03 +000027976#
27977# Check for LCMS v1 (1.11 or later)
27978#
27979if test $have_lcms2 = 'yes'; then
27980 with_lcms='no'
27981fi
27982
27983have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000027984if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000027985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27986$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000027987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
27988$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000027989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27990$as_echo "" >&6; }
27991 failed=0
27992 passed=0
27993 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000027994
27995 # Check for <lcms.h>
27996 if test "$have_lcms_header" != 'yes'; then
27997 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristy8b350f62009-11-15 23:12:43 +000027998if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027999 have_lcms_header='yes'
28000fi
28001
28002
cristy71203402010-06-18 13:12:03 +000028003 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028004 passed=`expr $passed + 1`
28005
cristy8b350f62009-11-15 23:12:43 +000028006$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028007
cristy71203402010-06-18 13:12:03 +000028008 fi
28009 fi
28010
28011 # Check for <lcms/lcms.h>
28012 if test "$have_lcms_header" != 'yes'; then
28013 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 +000028014if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028015 have_lcms_header='yes'
28016fi
28017
28018
cristy71203402010-06-18 13:12:03 +000028019 if test "$have_lcms_header" = 'yes'; then
28020 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028021
cristy8b350f62009-11-15 23:12:43 +000028022$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028023
cristy71203402010-06-18 13:12:03 +000028024 fi
cristy3ed852e2009-09-05 21:47:34 +000028025 fi
cristy71203402010-06-18 13:12:03 +000028026
28027 # Failed to find lcms header?
28028 if test "$have_lcms_header" != 'yes'; then
28029 failed=`expr $failed + 1`
28030 fi
28031
28032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28033$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28034if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028035 $as_echo_n "(cached) " >&6
28036else
28037 ac_check_lib_save_LIBS=$LIBS
28038LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028040/* end confdefs.h. */
28041
28042/* Override any GCC internal prototype to avoid an error.
28043 Use char because int might match the return type of a GCC
28044 builtin and then its argument prototype would still apply. */
28045#ifdef __cplusplus
28046extern "C"
28047#endif
cristy71203402010-06-18 13:12:03 +000028048char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028049int
28050main ()
28051{
cristy71203402010-06-18 13:12:03 +000028052return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028053 ;
28054 return 0;
28055}
28056_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028057if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028058 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000028059else
cristy71203402010-06-18 13:12:03 +000028060 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000028061fi
cristy8b350f62009-11-15 23:12:43 +000028062rm -f core conftest.err conftest.$ac_objext \
28063 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028064LIBS=$ac_check_lib_save_LIBS
28065fi
cristy71203402010-06-18 13:12:03 +000028066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28067$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28068if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028069 passed=`expr $passed + 1`
28070else
28071 failed=`expr $failed + 1`
28072fi
28073
cristy8b350f62009-11-15 23:12:43 +000028074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028075$as_echo_n "checking if LCMS package is complete... " >&6; }
28076 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028077 if test $failed -gt 0; then
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028079$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028080 have_lcms='no (failed tests)'
28081 else
28082 LCMS_LIBS='-llcms'
28083 LIBS="$LCMS_LIBS $LIBS"
28084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028085$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028086 have_lcms='yes'
28087 fi
cristy3ed852e2009-09-05 21:47:34 +000028088 else
cristy71203402010-06-18 13:12:03 +000028089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028090$as_echo "no" >&6; }
28091 fi
28092fi
cristy71203402010-06-18 13:12:03 +000028093
28094 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028095 LCMS_DELEGATE_TRUE=
28096 LCMS_DELEGATE_FALSE='#'
28097else
28098 LCMS_DELEGATE_TRUE='#'
28099 LCMS_DELEGATE_FALSE=
28100fi
28101
cristy71203402010-06-18 13:12:03 +000028102if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28103
28104$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28105
28106fi
28107
cristy3ed852e2009-09-05 21:47:34 +000028108
28109
28110
28111#
28112# Check for the LQR (Liquid Rescale) delegate library.
28113#
28114
28115# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028116if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028117 withval=$with_lqr; with_lqr=$withval
28118else
28119 with_lqr='yes'
28120fi
28121
28122
28123if test "$with_lqr" != 'yes'; then
28124 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28125fi
28126
28127have_lqr='no'
28128LQR_CFLAGS=""
28129LQR_LIBS=""
28130LQR_PKG=""
28131if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028133$as_echo "-------------------------------------------------------------" >&6; }
28134
28135pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028137$as_echo_n "checking for LQR... " >&6; }
28138
28139if test -n "$LQR_CFLAGS"; then
28140 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28141 elif test -n "$PKG_CONFIG"; then
28142 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028143 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028144 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28145 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28147 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028148 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28149else
28150 pkg_failed=yes
28151fi
28152 else
28153 pkg_failed=untried
28154fi
28155if test -n "$LQR_LIBS"; then
28156 pkg_cv_LQR_LIBS="$LQR_LIBS"
28157 elif test -n "$PKG_CONFIG"; then
28158 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028159 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028160 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28161 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28163 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028164 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28165else
28166 pkg_failed=yes
28167fi
28168 else
28169 pkg_failed=untried
28170fi
28171
28172
28173
28174if test $pkg_failed = yes; then
28175
28176if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28177 _pkg_short_errors_supported=yes
28178else
28179 _pkg_short_errors_supported=no
28180fi
28181 if test $_pkg_short_errors_supported = yes; then
28182 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28183 else
28184 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28185 fi
28186 # Put the nasty error message in config.log where it belongs
28187 echo "$LQR_PKG_ERRORS" >&5
28188
cristy8b350f62009-11-15 23:12:43 +000028189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028190$as_echo "no" >&6; }
28191 have_lqr=no
28192elif test $pkg_failed = untried; then
28193 have_lqr=no
28194else
28195 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28196 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028198$as_echo "yes" >&6; }
28199 have_lqr=yes
28200fi
cristy8b350f62009-11-15 23:12:43 +000028201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028202$as_echo "" >&6; }
28203fi
28204
28205if test "$have_lqr" = 'yes'; then
28206
cristy8b350f62009-11-15 23:12:43 +000028207$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028208
28209 CFLAGS="$LQR_CFLAGS $CFLAGS"
28210fi
28211
28212 if test "$have_lqr" = 'yes'; then
28213 LQR_DELEGATE_TRUE=
28214 LQR_DELEGATE_FALSE='#'
28215else
28216 LQR_DELEGATE_TRUE='#'
28217 LQR_DELEGATE_FALSE=
28218fi
28219
28220
28221
28222
28223
28224#
28225# Check for the OpenEXR delegate library.
28226#
28227
28228# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000028229if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028230 withval=$with_openexr; with_openexr=$withval
28231else
28232 with_openexr='yes'
28233fi
28234
28235
28236if test "$with_openexr" != 'yes'; then
28237 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28238fi
28239
28240have_openexr='no'
28241OPENEXR_CFLAGS=""
28242OPENEXR_LIBS=""
28243OPENEXR_PKG=""
28244if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028246$as_echo "-------------------------------------------------------------" >&6; }
28247
28248pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028250$as_echo_n "checking for OPENEXR... " >&6; }
28251
28252if test -n "$OPENEXR_CFLAGS"; then
28253 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28254 elif test -n "$PKG_CONFIG"; then
28255 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028256 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028257 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28258 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28260 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028261 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28262else
28263 pkg_failed=yes
28264fi
28265 else
28266 pkg_failed=untried
28267fi
28268if test -n "$OPENEXR_LIBS"; then
28269 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28270 elif test -n "$PKG_CONFIG"; then
28271 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028272 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028273 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28274 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28276 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028277 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28278else
28279 pkg_failed=yes
28280fi
28281 else
28282 pkg_failed=untried
28283fi
28284
28285
28286
28287if test $pkg_failed = yes; then
28288
28289if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28290 _pkg_short_errors_supported=yes
28291else
28292 _pkg_short_errors_supported=no
28293fi
28294 if test $_pkg_short_errors_supported = yes; then
28295 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28296 else
28297 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28298 fi
28299 # Put the nasty error message in config.log where it belongs
28300 echo "$OPENEXR_PKG_ERRORS" >&5
28301
cristy8b350f62009-11-15 23:12:43 +000028302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028303$as_echo "no" >&6; }
28304 have_openexr=no
28305elif test $pkg_failed = untried; then
28306 have_openexr=no
28307else
28308 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28309 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028311$as_echo "yes" >&6; }
28312 have_openexr=yes
28313fi
cristy8b350f62009-11-15 23:12:43 +000028314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028315$as_echo "" >&6; }
28316fi
28317
28318if test "$have_openexr" = 'yes'; then
28319
cristy8b350f62009-11-15 23:12:43 +000028320$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028321
28322 if test "$with_modules" = 'no'; then
28323 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28324 fi
28325fi
28326
28327 if test "$have_openexr" = 'yes'; then
28328 OPENEXR_DELEGATE_TRUE=
28329 OPENEXR_DELEGATE_FALSE='#'
28330else
28331 OPENEXR_DELEGATE_TRUE='#'
28332 OPENEXR_DELEGATE_FALSE=
28333fi
28334
28335
28336
28337
28338
28339#
28340# Check for PNG delegate library.
28341#
28342
28343# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000028344if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028345 withval=$with_png; with_png=$withval
28346else
28347 with_png='yes'
28348fi
28349
28350
28351if test "$with_png" != 'yes'; then
28352 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28353fi
28354
28355have_png='no'
28356PNG_LIBS=''
28357if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028359$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028361$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028363$as_echo "" >&6; }
28364 failed=0
28365 passed=0
cristy8b350f62009-11-15 23:12:43 +000028366 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28367if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028368 passed=`expr $passed + 1`
28369else
28370 failed=`expr $failed + 1`
28371fi
28372
28373
cristy8b350f62009-11-15 23:12:43 +000028374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000028375$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028376if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028377 $as_echo_n "(cached) " >&6
28378else
28379 ac_check_lib_save_LIBS=$LIBS
28380LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028382/* end confdefs.h. */
28383
28384/* Override any GCC internal prototype to avoid an error.
28385 Use char because int might match the return type of a GCC
28386 builtin and then its argument prototype would still apply. */
28387#ifdef __cplusplus
28388extern "C"
28389#endif
28390char png_get_io_ptr ();
28391int
28392main ()
28393{
28394return png_get_io_ptr ();
28395 ;
28396 return 0;
28397}
28398_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028399if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028400 ac_cv_lib_png_png_get_io_ptr=yes
28401else
cristy8b350f62009-11-15 23:12:43 +000028402 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000028403fi
cristy8b350f62009-11-15 23:12:43 +000028404rm -f core conftest.err conftest.$ac_objext \
28405 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028406LIBS=$ac_check_lib_save_LIBS
28407fi
cristy8b350f62009-11-15 23:12:43 +000028408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000028409$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028410if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028411 passed=`expr $passed + 1`
28412else
28413 failed=`expr $failed + 1`
28414fi
28415
cristy8b350f62009-11-15 23:12:43 +000028416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028417$as_echo_n "checking if PNG package is complete... " >&6; }
28418 if test $passed -gt 0; then
28419 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028421$as_echo "no -- some components failed test" >&6; }
28422 have_png='no (failed tests)'
28423 else
28424 PNG_LIBS='-lpng'
28425 LIBS="$PNG_LIBS $LIBS"
28426
cristy8b350f62009-11-15 23:12:43 +000028427$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028428
cristy8b350f62009-11-15 23:12:43 +000028429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028430$as_echo "yes" >&6; }
28431 have_png='yes'
28432 fi
28433 else
cristy8b350f62009-11-15 23:12:43 +000028434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028435$as_echo "no" >&6; }
28436 fi
28437fi
28438 if test "$have_png" = 'yes'; then
28439 PNG_DELEGATE_TRUE=
28440 PNG_DELEGATE_FALSE='#'
28441else
28442 PNG_DELEGATE_TRUE='#'
28443 PNG_DELEGATE_FALSE=
28444fi
28445
28446
28447
28448
28449#
28450# Check for RSVG delegate library.
28451#
28452
28453# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000028454if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028455 withval=$with_rsvg; with_rsvg=$withval
28456else
28457 with_rsvg=$have_x
28458fi
28459
28460
28461if test "$with_rsvg" != 'yes'; then
28462 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28463fi
28464
28465have_rsvg='no'
28466have_cairo='no'
28467RSVG_CFLAGS=""
28468RSVG_LIBS=""
28469RSVG_PKG=""
28470if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028472$as_echo "-------------------------------------------------------------" >&6; }
28473
28474pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028476$as_echo_n "checking for RSVG... " >&6; }
28477
28478if test -n "$RSVG_CFLAGS"; then
28479 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28480 elif test -n "$PKG_CONFIG"; then
28481 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028482 { { $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 +000028483 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28484 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28486 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028487 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28488else
28489 pkg_failed=yes
28490fi
28491 else
28492 pkg_failed=untried
28493fi
28494if test -n "$RSVG_LIBS"; then
28495 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28496 elif test -n "$PKG_CONFIG"; then
28497 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028498 { { $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 +000028499 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28500 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28502 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028503 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28504else
28505 pkg_failed=yes
28506fi
28507 else
28508 pkg_failed=untried
28509fi
28510
28511
28512
28513if test $pkg_failed = yes; then
28514
28515if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28516 _pkg_short_errors_supported=yes
28517else
28518 _pkg_short_errors_supported=no
28519fi
28520 if test $_pkg_short_errors_supported = yes; then
28521 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28522 else
28523 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28524 fi
28525 # Put the nasty error message in config.log where it belongs
28526 echo "$RSVG_PKG_ERRORS" >&5
28527
cristy8b350f62009-11-15 23:12:43 +000028528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028529$as_echo "no" >&6; }
28530 have_rsvg=no
28531elif test $pkg_failed = untried; then
28532 have_rsvg=no
28533else
28534 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28535 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028537$as_echo "yes" >&6; }
28538 have_rsvg=yes
28539fi
cristy8b350f62009-11-15 23:12:43 +000028540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028541$as_echo "" >&6; }
28542
28543pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028545$as_echo_n "checking for CAIRO_SVG... " >&6; }
28546
28547if test -n "$CAIRO_SVG_CFLAGS"; then
28548 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28549 elif test -n "$PKG_CONFIG"; then
28550 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028551 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028552 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28553 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28555 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028556 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28557else
28558 pkg_failed=yes
28559fi
28560 else
28561 pkg_failed=untried
28562fi
28563if test -n "$CAIRO_SVG_LIBS"; then
28564 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28565 elif test -n "$PKG_CONFIG"; then
28566 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028567 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028568 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28569 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28571 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028572 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28573else
28574 pkg_failed=yes
28575fi
28576 else
28577 pkg_failed=untried
28578fi
28579
28580
28581
28582if test $pkg_failed = yes; then
28583
28584if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28585 _pkg_short_errors_supported=yes
28586else
28587 _pkg_short_errors_supported=no
28588fi
28589 if test $_pkg_short_errors_supported = yes; then
28590 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28591 else
28592 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28593 fi
28594 # Put the nasty error message in config.log where it belongs
28595 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28596
cristy8b350f62009-11-15 23:12:43 +000028597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028598$as_echo "no" >&6; }
28599 have_cairo=no
28600elif test $pkg_failed = untried; then
28601 have_cairo=no
28602else
28603 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28604 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028606$as_echo "yes" >&6; }
28607 have_cairo=yes
28608fi
cristy8b350f62009-11-15 23:12:43 +000028609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028610$as_echo "" >&6; }
28611fi
28612
28613if test "$have_rsvg" = 'yes'; then
28614
cristy8b350f62009-11-15 23:12:43 +000028615$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028616
28617 if test "$with_modules" = 'no'; then
28618 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28619 fi
28620fi
28621
28622if test "$have_cairo" = 'yes'; then
28623
cristy8b350f62009-11-15 23:12:43 +000028624$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028625
28626 if test "$with_modules" = 'no'; then
28627 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28628 fi
28629fi
28630
28631 if test "$have_rsvg" = 'yes'; then
28632 RSVG_DELEGATE_TRUE=
28633 RSVG_DELEGATE_FALSE='#'
28634else
28635 RSVG_DELEGATE_TRUE='#'
28636 RSVG_DELEGATE_FALSE=
28637fi
28638
28639 if test "$have_cairo" = 'yes'; then
28640 CAIRO_DELEGATE_TRUE=
28641 CAIRO_DELEGATE_FALSE='#'
28642else
28643 CAIRO_DELEGATE_TRUE='#'
28644 CAIRO_DELEGATE_FALSE=
28645fi
28646
28647
28648
28649
28650
28651#
28652# Check for TIFF delegate library.
28653#
28654
28655# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000028656if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028657 withval=$with_tiff; with_tiff=$withval
28658else
28659 with_tiff='yes'
28660fi
28661
28662
28663if test "$with_tiff" != 'yes'; then
28664 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28665fi
28666
28667have_tiff='no'
28668TIFF_LIBS=''
28669if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028671$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028673$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028675$as_echo "" >&6; }
28676 failed=0
28677 passed=0
cristy8b350f62009-11-15 23:12:43 +000028678 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28679if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028680 passed=`expr $passed + 1`
28681else
28682 failed=`expr $failed + 1`
28683fi
28684
28685
cristy8b350f62009-11-15 23:12:43 +000028686 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28687if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028688 passed=`expr $passed + 1`
28689else
28690 failed=`expr $failed + 1`
28691fi
28692
28693
cristy8b350f62009-11-15 23:12:43 +000028694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028695$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028696if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028697 $as_echo_n "(cached) " >&6
28698else
28699 ac_check_lib_save_LIBS=$LIBS
28700LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028702/* end confdefs.h. */
28703
28704/* Override any GCC internal prototype to avoid an error.
28705 Use char because int might match the return type of a GCC
28706 builtin and then its argument prototype would still apply. */
28707#ifdef __cplusplus
28708extern "C"
28709#endif
28710char TIFFOpen ();
28711int
28712main ()
28713{
28714return TIFFOpen ();
28715 ;
28716 return 0;
28717}
28718_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028719if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028720 ac_cv_lib_tiff_TIFFOpen=yes
28721else
cristy8b350f62009-11-15 23:12:43 +000028722 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028723fi
cristy8b350f62009-11-15 23:12:43 +000028724rm -f core conftest.err conftest.$ac_objext \
28725 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028726LIBS=$ac_check_lib_save_LIBS
28727fi
cristy8b350f62009-11-15 23:12:43 +000028728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028729$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028730if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028731 passed=`expr $passed + 1`
28732else
28733 failed=`expr $failed + 1`
28734fi
28735
cristy8b350f62009-11-15 23:12:43 +000028736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028737$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028738if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028739 $as_echo_n "(cached) " >&6
28740else
28741 ac_check_lib_save_LIBS=$LIBS
28742LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028744/* end confdefs.h. */
28745
28746/* Override any GCC internal prototype to avoid an error.
28747 Use char because int might match the return type of a GCC
28748 builtin and then its argument prototype would still apply. */
28749#ifdef __cplusplus
28750extern "C"
28751#endif
28752char TIFFClientOpen ();
28753int
28754main ()
28755{
28756return TIFFClientOpen ();
28757 ;
28758 return 0;
28759}
28760_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028761if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028762 ac_cv_lib_tiff_TIFFClientOpen=yes
28763else
cristy8b350f62009-11-15 23:12:43 +000028764 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028765fi
cristy8b350f62009-11-15 23:12:43 +000028766rm -f core conftest.err conftest.$ac_objext \
28767 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028768LIBS=$ac_check_lib_save_LIBS
28769fi
cristy8b350f62009-11-15 23:12:43 +000028770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028771$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028772if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028773 passed=`expr $passed + 1`
28774else
28775 failed=`expr $failed + 1`
28776fi
28777
cristyb97f1002010-07-26 14:02:57 +000028778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
28779$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
28780if test "${ac_cv_lib_tiff_TIFFIsBigEndian+set}" = set; then :
28781 $as_echo_n "(cached) " >&6
28782else
28783 ac_check_lib_save_LIBS=$LIBS
28784LIBS="-ltiff $LIBS"
28785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28786/* end confdefs.h. */
28787
28788/* Override any GCC internal prototype to avoid an error.
28789 Use char because int might match the return type of a GCC
28790 builtin and then its argument prototype would still apply. */
28791#ifdef __cplusplus
28792extern "C"
28793#endif
28794char TIFFIsBigEndian ();
28795int
28796main ()
28797{
28798return TIFFIsBigEndian ();
28799 ;
28800 return 0;
28801}
28802_ACEOF
28803if ac_fn_c_try_link "$LINENO"; then :
28804 ac_cv_lib_tiff_TIFFIsBigEndian=yes
28805else
28806 ac_cv_lib_tiff_TIFFIsBigEndian=no
28807fi
28808rm -f core conftest.err conftest.$ac_objext \
28809 conftest$ac_exeext conftest.$ac_ext
28810LIBS=$ac_check_lib_save_LIBS
28811fi
28812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
28813$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
28814if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = x""yes; then :
28815 passed=`expr $passed + 1`
28816else
28817 failed=`expr $failed + 1`
28818fi
28819
cristy8b350f62009-11-15 23:12:43 +000028820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028821$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028822if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028823 $as_echo_n "(cached) " >&6
28824else
28825 ac_check_lib_save_LIBS=$LIBS
28826LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028828/* end confdefs.h. */
28829
28830/* Override any GCC internal prototype to avoid an error.
28831 Use char because int might match the return type of a GCC
28832 builtin and then its argument prototype would still apply. */
28833#ifdef __cplusplus
28834extern "C"
28835#endif
28836char TIFFIsByteSwapped ();
28837int
28838main ()
28839{
28840return TIFFIsByteSwapped ();
28841 ;
28842 return 0;
28843}
28844_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028845if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028846 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28847else
cristy8b350f62009-11-15 23:12:43 +000028848 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000028849fi
cristy8b350f62009-11-15 23:12:43 +000028850rm -f core conftest.err conftest.$ac_objext \
28851 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028852LIBS=$ac_check_lib_save_LIBS
28853fi
cristy8b350f62009-11-15 23:12:43 +000028854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000028855$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028856if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028857 passed=`expr $passed + 1`
28858else
28859 failed=`expr $failed + 1`
28860fi
28861
cristy8b350f62009-11-15 23:12:43 +000028862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028863$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028864if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028865 $as_echo_n "(cached) " >&6
28866else
28867 ac_check_lib_save_LIBS=$LIBS
28868LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028870/* end confdefs.h. */
28871
28872/* Override any GCC internal prototype to avoid an error.
28873 Use char because int might match the return type of a GCC
28874 builtin and then its argument prototype would still apply. */
28875#ifdef __cplusplus
28876extern "C"
28877#endif
28878char TIFFReadRGBATile ();
28879int
28880main ()
28881{
28882return TIFFReadRGBATile ();
28883 ;
28884 return 0;
28885}
28886_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028887if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028888 ac_cv_lib_tiff_TIFFReadRGBATile=yes
28889else
cristy8b350f62009-11-15 23:12:43 +000028890 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000028891fi
cristy8b350f62009-11-15 23:12:43 +000028892rm -f core conftest.err conftest.$ac_objext \
28893 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028894LIBS=$ac_check_lib_save_LIBS
28895fi
cristy8b350f62009-11-15 23:12:43 +000028896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000028897$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028898if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028899 passed=`expr $passed + 1`
28900else
28901 failed=`expr $failed + 1`
28902fi
28903
cristy8b350f62009-11-15 23:12:43 +000028904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028905$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028906if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028907 $as_echo_n "(cached) " >&6
28908else
28909 ac_check_lib_save_LIBS=$LIBS
28910LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028912/* end confdefs.h. */
28913
28914/* Override any GCC internal prototype to avoid an error.
28915 Use char because int might match the return type of a GCC
28916 builtin and then its argument prototype would still apply. */
28917#ifdef __cplusplus
28918extern "C"
28919#endif
28920char TIFFReadRGBAStrip ();
28921int
28922main ()
28923{
28924return TIFFReadRGBAStrip ();
28925 ;
28926 return 0;
28927}
28928_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028929if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028930 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
28931else
cristy8b350f62009-11-15 23:12:43 +000028932 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000028933fi
cristy8b350f62009-11-15 23:12:43 +000028934rm -f core conftest.err conftest.$ac_objext \
28935 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028936LIBS=$ac_check_lib_save_LIBS
28937fi
cristy8b350f62009-11-15 23:12:43 +000028938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000028939$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028940if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028941 passed=`expr $passed + 1`
28942else
28943 failed=`expr $failed + 1`
28944fi
28945
cristy8b350f62009-11-15 23:12:43 +000028946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028947$as_echo_n "checking if TIFF package is complete... " >&6; }
28948 if test $passed -gt 0; then
28949 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028951$as_echo "no -- some components failed test" >&6; }
28952 have_tiff='no (failed tests)'
28953 else
28954 TIFF_LIBS='-ltiff'
28955 LIBS="$TIFF_LIBS $LIBS"
28956
cristy8b350f62009-11-15 23:12:43 +000028957$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028958
cristy8b350f62009-11-15 23:12:43 +000028959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028960$as_echo "yes" >&6; }
28961 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000028962 for ac_header in tiffconf.h
28963do :
28964 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
28965if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028966 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028967#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000028968_ACEOF
28969
28970fi
28971
28972done
28973
cristy8b350f62009-11-15 23:12:43 +000028974 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000028975 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
28976 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000028977do :
28978 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28979ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristyfd9dcd42010-08-08 18:07:02 +000028980if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000028981 cat >>confdefs.h <<_ACEOF
28982#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28983_ACEOF
28984
28985fi
28986done
28987
28988 fi
28989 else
cristy8b350f62009-11-15 23:12:43 +000028990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028991$as_echo "no" >&6; }
28992 fi
28993fi
28994 if test "$have_tiff" = 'yes'; then
28995 TIFF_DELEGATE_TRUE=
28996 TIFF_DELEGATE_FALSE='#'
28997else
28998 TIFF_DELEGATE_TRUE='#'
28999 TIFF_DELEGATE_FALSE=
29000fi
29001
29002
29003
29004
29005#
29006# Set Windows font directory.
29007#
29008
29009# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029010if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029011 withval=$with_windows_font_dir; with_windows_font_dir=$withval
29012else
29013 with_windows_font_dir=''
29014fi
29015
29016if test "$with_windows_font_dir" != '' ; then
29017 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29018fi
29019
29020
29021#
29022# Check for WMF delegate library.
29023#
29024
29025# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000029026if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029027 withval=$with_wmf; with_wmf=$withval
29028else
cristy8d63d1d2010-01-06 20:38:37 +000029029 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000029030fi
29031
29032
29033if test "$with_wmf" != 'yes'; then
29034 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29035fi
29036
29037have_wmf='no'
29038WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000029039if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029041$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029043$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029045$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000029046 failed=0
29047 passed=0
29048 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29049if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29050 passed=`expr $passed + 1`
29051else
29052 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029053fi
29054
29055
cristy735e8942010-04-02 20:32:57 +000029056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29057$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29058if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029059 $as_echo_n "(cached) " >&6
29060else
29061 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000029062LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029064/* end confdefs.h. */
29065
29066/* Override any GCC internal prototype to avoid an error.
29067 Use char because int might match the return type of a GCC
29068 builtin and then its argument prototype would still apply. */
29069#ifdef __cplusplus
29070extern "C"
29071#endif
cristy735e8942010-04-02 20:32:57 +000029072char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029073int
29074main ()
29075{
cristy735e8942010-04-02 20:32:57 +000029076return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029077 ;
29078 return 0;
29079}
29080_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029081if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000029082 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000029083else
cristy735e8942010-04-02 20:32:57 +000029084 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000029085fi
cristy8b350f62009-11-15 23:12:43 +000029086rm -f core conftest.err conftest.$ac_objext \
29087 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029088LIBS=$ac_check_lib_save_LIBS
29089fi
cristy735e8942010-04-02 20:32:57 +000029090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29091$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29092if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29093 passed=`expr $passed + 1`
29094else
29095 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029096fi
29097
cristy735e8942010-04-02 20:32:57 +000029098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29099$as_echo_n "checking if WMF package is complete... " >&6; }
29100 if test $passed -gt 0; then
29101 if test $failed -gt 0; then
29102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29103$as_echo "no -- some components failed test" >&6; }
29104 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000029105 else
cristy735e8942010-04-02 20:32:57 +000029106 WMF_LIBS='-lwmf -lwmflite'
29107 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029108
cristy8b350f62009-11-15 23:12:43 +000029109$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029110
cristy735e8942010-04-02 20:32:57 +000029111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029112$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000029113 have_wmf='yes'
29114 fi
cristy3ed852e2009-09-05 21:47:34 +000029115 else
cristy8b350f62009-11-15 23:12:43 +000029116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029117$as_echo "no" >&6; }
29118 fi
29119fi
29120 if test "$have_wmf" = 'yes'; then
29121 WMF_DELEGATE_TRUE=
29122 WMF_DELEGATE_FALSE='#'
29123else
29124 WMF_DELEGATE_TRUE='#'
29125 WMF_DELEGATE_FALSE=
29126fi
29127
29128
29129
29130
29131
cristy735e8942010-04-02 20:32:57 +000029132
cristy3ed852e2009-09-05 21:47:34 +000029133#
29134# Check for XML delegate library.
29135#
29136
29137# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000029138if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029139 withval=$with_xml; with_xml=$withval
29140else
29141 with_xml=$have_x
29142fi
29143
29144
29145if test "$with_xml" != 'yes' ; then
29146 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29147fi
29148
29149have_xml='no'
29150XML_LIBS=''
29151if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029153$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000029155$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029157$as_echo "" >&6; }
29158 PERSIST_LDFLAGS=$LDFLAGS
29159 PERSIST_CPPFLAGS=$CPPFLAGS
29160 xml2_config=''
29161 for ac_prog in xml2-config
29162do
29163 # Extract the first word of "$ac_prog", so it can be a program name with args.
29164set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029166$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029167if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029168 $as_echo_n "(cached) " >&6
29169else
29170 if test -n "$xml2_config"; then
29171 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29172else
29173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29174for as_dir in $PATH
29175do
29176 IFS=$as_save_IFS
29177 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029178 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29180 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029182 break 2
29183 fi
29184done
cristy8b350f62009-11-15 23:12:43 +000029185 done
cristy3ed852e2009-09-05 21:47:34 +000029186IFS=$as_save_IFS
29187
29188fi
29189fi
29190xml2_config=$ac_cv_prog_xml2_config
29191if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000029192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000029193$as_echo "$xml2_config" >&6; }
29194else
cristy8b350f62009-11-15 23:12:43 +000029195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029196$as_echo "no" >&6; }
29197fi
29198
29199
29200 test -n "$xml2_config" && break
29201done
29202 if test -n "$xml2_config"; then
29203 # Debian installs libxml headers under /usr/include/libxml2/libxml with
29204 # the shared library installed under /usr/lib, whereas the package
29205 # installs itself under $prefix/libxml and $prefix/lib.
29206 xml2_prefix=`xml2-config --prefix`
29207 if test -d "${xml2_prefix}/include/libxml2"; then
29208 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29209 fi
29210 if test "${xml2_prefix}" != '/usr'; then
29211 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29212 fi
29213 fi
29214 failed=0
29215 passed=0
cristy8b350f62009-11-15 23:12:43 +000029216 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29217if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029218 passed=`expr $passed + 1`
29219else
29220 failed=`expr $failed + 1`
29221fi
29222
29223
cristy8b350f62009-11-15 23:12:43 +000029224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029225$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029226if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029227 $as_echo_n "(cached) " >&6
29228else
29229 ac_check_lib_save_LIBS=$LIBS
29230LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029232/* end confdefs.h. */
29233
29234/* Override any GCC internal prototype to avoid an error.
29235 Use char because int might match the return type of a GCC
29236 builtin and then its argument prototype would still apply. */
29237#ifdef __cplusplus
29238extern "C"
29239#endif
29240char xmlParseExternalEntity ();
29241int
29242main ()
29243{
29244return xmlParseExternalEntity ();
29245 ;
29246 return 0;
29247}
29248_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029249if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029250 ac_cv_lib_xml2_xmlParseExternalEntity=yes
29251else
cristy8b350f62009-11-15 23:12:43 +000029252 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000029253fi
cristy8b350f62009-11-15 23:12:43 +000029254rm -f core conftest.err conftest.$ac_objext \
29255 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029256LIBS=$ac_check_lib_save_LIBS
29257fi
cristy8b350f62009-11-15 23:12:43 +000029258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000029259$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029260if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029261 passed=`expr $passed + 1`
29262else
29263 failed=`expr $failed + 1`
29264fi
29265
cristy8b350f62009-11-15 23:12:43 +000029266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029267$as_echo_n "checking if XML package is complete... " >&6; }
29268 if test $passed -gt 0; then
29269 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029271$as_echo "no -- some components failed test" >&6; }
29272 have_xml='no (failed tests)'
29273 LDFLAGS="$PERSIST_LDFLAGS"
29274 CPPFLAGS="$PERSIST_CPPFLAGS"
29275 else
29276 XML_LIBS='-lxml2'
29277 LIBS="$XML_LIBS $LIBS"
29278
cristy8b350f62009-11-15 23:12:43 +000029279$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029280
cristy8b350f62009-11-15 23:12:43 +000029281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029282$as_echo "yes" >&6; }
29283 have_xml='yes'
29284 fi
29285 else
cristy8b350f62009-11-15 23:12:43 +000029286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029287$as_echo "no" >&6; }
29288 fi
29289fi
29290 if test "$have_xml" = 'yes'; then
29291 XML_DELEGATE_TRUE=
29292 XML_DELEGATE_FALSE='#'
29293else
29294 XML_DELEGATE_TRUE='#'
29295 XML_DELEGATE_FALSE=
29296fi
29297
29298
29299
29300
29301# Substitute compiler name to build/link PerlMagick
29302#
29303
29304
29305#
29306# Configure install Paths
29307#
29308
29309# Subdirectory under lib to place ImageMagick lib files
29310LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29311
29312cat >>confdefs.h <<_ACEOF
29313#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29314_ACEOF
29315
29316
29317# Path to ImageMagick bin directory
29318EXECUTABLE_PATH="${BIN_DIR}"
29319DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29320case "${build_os}" in
29321 mingw* )
29322 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29323 ;;
29324esac
29325
29326cat >>confdefs.h <<_ACEOF
29327#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29328_ACEOF
29329
29330
29331
29332# Path to ImageMagick lib
29333LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29334DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29335case "${build_os}" in
29336 mingw* )
29337 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29338 ;;
29339esac
29340
29341cat >>confdefs.h <<_ACEOF
29342#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29343_ACEOF
29344
29345
29346
29347# Subdirectory under lib to place ImageMagick configuration files
29348CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29349
29350cat >>confdefs.h <<_ACEOF
29351#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29352_ACEOF
29353
29354CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29355DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29356case "${build_os}" in
29357 mingw* )
29358 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29359 ;;
29360esac
29361
29362cat >>confdefs.h <<_ACEOF
29363#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29364_ACEOF
29365
29366
29367
29368#
29369# Subdirectory under lib to place ImageMagick coder module files
29370CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29371
29372cat >>confdefs.h <<_ACEOF
29373#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29374_ACEOF
29375
29376CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29377DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29378case "${build_os}" in
29379 mingw* )
29380 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29381 ;;
29382esac
29383
29384cat >>confdefs.h <<_ACEOF
29385#define CODER_PATH "$DEFINE_CODER_PATH"
29386_ACEOF
29387
29388
29389
29390#
29391# Subdirectory under lib to place ImageMagick filter module files
29392FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29393
29394cat >>confdefs.h <<_ACEOF
29395#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29396_ACEOF
29397
29398FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29399DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29400case "${build_os}" in
29401 mingw* )
29402 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29403 ;;
29404esac
29405
29406cat >>confdefs.h <<_ACEOF
29407#define FILTER_PATH "$DEFINE_FILTER_PATH"
29408_ACEOF
29409
29410
29411
29412#
29413# Path to ImageMagick documentation files
29414DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29415DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29416DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29417case "${build_os}" in
29418 mingw* )
29419 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29420 ;;
29421esac
29422
29423cat >>confdefs.h <<_ACEOF
29424#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29425_ACEOF
29426
29427
29428
29429#
29430# Path to ImageMagick share files
29431SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29432SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29433DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29434case "${build_os}" in
29435 mingw* )
29436 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29437 ;;
29438esac
29439
29440cat >>confdefs.h <<_ACEOF
29441#define SHARE_PATH "$DEFINE_SHARE_PATH"
29442_ACEOF
29443
29444
29445
29446# Subdirectory under share to place ImageMagick configuration files
29447SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29448
29449cat >>confdefs.h <<_ACEOF
29450#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29451_ACEOF
29452
29453SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29454DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29455case "${build_os}" in
29456 mingw* )
29457 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29458 ;;
29459esac
29460
29461cat >>confdefs.h <<_ACEOF
29462#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29463_ACEOF
29464
29465
29466
29467#
29468# program_transform_name is formed for use in a Makefile, so create a
29469# modified version for use in a shell script.
29470configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29471
29472# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000029473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029474$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029476$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029478$as_echo "" >&6; }
29479AutotraceDecodeDelegateDefault='autotrace'
29480AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000029481BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000029482BZIPDelegateDefault='bzip2'
29483BrowseDelegateDefault='xdg-open'
29484CGMDecodeDelegateDefault='ralcgm'
29485CatDelegateDefault='cat'
29486DNGDecodeDelegateDefault='ufraw-batch'
29487GVCDecodeDelegateDefault='dot'
29488DVIDecodeDelegateDefault='dvips'
29489EchoDelegateDefault='echo'
29490EditorDelegateDefault='xterm'
29491FIGDecodeDelegateDefault='fig2dev'
29492ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29493DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29494MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29495GnuplotDecodeDelegateDefault='gnuplot'
29496HDRDecodeDelegateDefault='ra_pfm'
29497HPGLDecodeDelegateDefault='hp2xx'
29498HTMLDecodeDelegateDefault='html2ps'
29499ILBMDecodeDelegateDefault='ilbmtoppm'
29500ILBMEncodeDelegateDefault='ppmtoilbm'
29501LPDelegateDefault='lp'
29502LPRDelegateDefault='lpr'
29503LZWDecodeDelegateDefault='uncompress'
29504LZWEncodeDelegateDefault='compress'
29505LaunchDelegateDefault='gimp'
29506MANDelegateDefault='groff'
29507MPEGDecodeDelegateDefault='ffmpeg'
29508MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000029509MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000029510MVDelegateDefault='mv'
29511PCLDelegateDefault='pcl6'
29512PGPDecodeDelegateDefault='pgpv'
29513POVDelegateDefault='povray'
29514if test "$native_win32_build" = 'yes'; then
29515 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000029516elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029517 PSDelegateDefault='gsc'
29518else
29519 PSDelegateDefault='gs'
29520fi
29521RLEEncodeDelegateDefault='rawtorle'
29522RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000029523RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000029524SCANDecodeDelegateDefault='scanimage'
29525TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000029526UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000029527WMFDecodeDelegateDefault='wmf2eps'
29528WWWDecodeDelegateDefault='curl'
29529XPSDelegateDefault='gxps'
29530ZipDelegateDefault='gzip'
29531
29532# Search for delegates
29533# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29534set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029536$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029537if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029538 $as_echo_n "(cached) " >&6
29539else
29540 case $AutotraceDecodeDelegate in
29541 [\\/]* | ?:[\\/]*)
29542 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29543 ;;
29544 *)
29545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29546for as_dir in $PATH
29547do
29548 IFS=$as_save_IFS
29549 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029550 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29552 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029554 break 2
29555 fi
29556done
cristy8b350f62009-11-15 23:12:43 +000029557 done
cristy3ed852e2009-09-05 21:47:34 +000029558IFS=$as_save_IFS
29559
29560 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29561 ;;
29562esac
29563fi
29564AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29565if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029567$as_echo "$AutotraceDecodeDelegate" >&6; }
29568else
cristy8b350f62009-11-15 23:12:43 +000029569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029570$as_echo "no" >&6; }
29571fi
29572
29573
29574# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29575set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029577$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029578if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029579 $as_echo_n "(cached) " >&6
29580else
29581 case $AVIDecodeDelegate in
29582 [\\/]* | ?:[\\/]*)
29583 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29584 ;;
29585 *)
29586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29587for as_dir in $PATH
29588do
29589 IFS=$as_save_IFS
29590 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029591 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29593 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029595 break 2
29596 fi
29597done
cristy8b350f62009-11-15 23:12:43 +000029598 done
cristy3ed852e2009-09-05 21:47:34 +000029599IFS=$as_save_IFS
29600
29601 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29602 ;;
29603esac
29604fi
29605AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29606if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029608$as_echo "$AVIDecodeDelegate" >&6; }
29609else
cristy8b350f62009-11-15 23:12:43 +000029610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029611$as_echo "no" >&6; }
29612fi
29613
29614
29615# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29616set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029618$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029619if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029620 $as_echo_n "(cached) " >&6
29621else
29622 case $BlenderDecodeDelegate in
29623 [\\/]* | ?:[\\/]*)
29624 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29625 ;;
29626 *)
29627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29628for as_dir in $PATH
29629do
29630 IFS=$as_save_IFS
29631 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029632 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29634 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029636 break 2
29637 fi
29638done
cristy8b350f62009-11-15 23:12:43 +000029639 done
cristy3ed852e2009-09-05 21:47:34 +000029640IFS=$as_save_IFS
29641
29642 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29643 ;;
29644esac
29645fi
29646BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29647if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029649$as_echo "$BlenderDecodeDelegate" >&6; }
29650else
cristy8b350f62009-11-15 23:12:43 +000029651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029652$as_echo "no" >&6; }
29653fi
29654
29655
29656# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29657set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029659$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029660if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029661 $as_echo_n "(cached) " >&6
29662else
29663 case $BZIPDelegate in
29664 [\\/]* | ?:[\\/]*)
29665 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29666 ;;
29667 *)
29668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29669for as_dir in $PATH
29670do
29671 IFS=$as_save_IFS
29672 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029673 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29675 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029677 break 2
29678 fi
29679done
cristy8b350f62009-11-15 23:12:43 +000029680 done
cristy3ed852e2009-09-05 21:47:34 +000029681IFS=$as_save_IFS
29682
29683 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29684 ;;
29685esac
29686fi
29687BZIPDelegate=$ac_cv_path_BZIPDelegate
29688if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029690$as_echo "$BZIPDelegate" >&6; }
29691else
cristy8b350f62009-11-15 23:12:43 +000029692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029693$as_echo "no" >&6; }
29694fi
29695
29696
29697# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29698set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029700$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029701if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029702 $as_echo_n "(cached) " >&6
29703else
29704 case $BrowseDelegate in
29705 [\\/]* | ?:[\\/]*)
29706 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29707 ;;
29708 *)
29709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29710for as_dir in $PATH
29711do
29712 IFS=$as_save_IFS
29713 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029714 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29716 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029718 break 2
29719 fi
29720done
cristy8b350f62009-11-15 23:12:43 +000029721 done
cristy3ed852e2009-09-05 21:47:34 +000029722IFS=$as_save_IFS
29723
29724 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29725 ;;
29726esac
29727fi
29728BrowseDelegate=$ac_cv_path_BrowseDelegate
29729if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029731$as_echo "$BrowseDelegate" >&6; }
29732else
cristy8b350f62009-11-15 23:12:43 +000029733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029734$as_echo "no" >&6; }
29735fi
29736
29737
29738# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29739set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029741$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029742if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029743 $as_echo_n "(cached) " >&6
29744else
29745 case $CGMDecodeDelegate in
29746 [\\/]* | ?:[\\/]*)
29747 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29748 ;;
29749 *)
29750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29751for as_dir in $PATH
29752do
29753 IFS=$as_save_IFS
29754 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029755 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29757 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029759 break 2
29760 fi
29761done
cristy8b350f62009-11-15 23:12:43 +000029762 done
cristy3ed852e2009-09-05 21:47:34 +000029763IFS=$as_save_IFS
29764
29765 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29766 ;;
29767esac
29768fi
29769CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29770if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029772$as_echo "$CGMDecodeDelegate" >&6; }
29773else
cristy8b350f62009-11-15 23:12:43 +000029774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029775$as_echo "no" >&6; }
29776fi
29777
29778
29779# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29780set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029782$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029783if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029784 $as_echo_n "(cached) " >&6
29785else
29786 case $CatDelegate in
29787 [\\/]* | ?:[\\/]*)
29788 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29789 ;;
29790 *)
29791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29792for as_dir in $PATH
29793do
29794 IFS=$as_save_IFS
29795 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029796 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29798 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029800 break 2
29801 fi
29802done
cristy8b350f62009-11-15 23:12:43 +000029803 done
cristy3ed852e2009-09-05 21:47:34 +000029804IFS=$as_save_IFS
29805
29806 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29807 ;;
29808esac
29809fi
29810CatDelegate=$ac_cv_path_CatDelegate
29811if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029813$as_echo "$CatDelegate" >&6; }
29814else
cristy8b350f62009-11-15 23:12:43 +000029815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029816$as_echo "no" >&6; }
29817fi
29818
29819
29820# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29821set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029823$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029824if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029825 $as_echo_n "(cached) " >&6
29826else
29827 case $DNGDecodeDelegate in
29828 [\\/]* | ?:[\\/]*)
29829 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29830 ;;
29831 *)
29832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29833for as_dir in $PATH
29834do
29835 IFS=$as_save_IFS
29836 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029837 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29839 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029841 break 2
29842 fi
29843done
cristy8b350f62009-11-15 23:12:43 +000029844 done
cristy3ed852e2009-09-05 21:47:34 +000029845IFS=$as_save_IFS
29846
29847 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29848 ;;
29849esac
29850fi
29851DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29852if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029854$as_echo "$DNGDecodeDelegate" >&6; }
29855else
cristy8b350f62009-11-15 23:12:43 +000029856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029857$as_echo "no" >&6; }
29858fi
29859
29860
29861# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29862set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029864$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029865if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029866 $as_echo_n "(cached) " >&6
29867else
29868 case $GVCDecodeDelegate in
29869 [\\/]* | ?:[\\/]*)
29870 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29871 ;;
29872 *)
29873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29874for as_dir in $PATH
29875do
29876 IFS=$as_save_IFS
29877 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029878 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29880 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029882 break 2
29883 fi
29884done
cristy8b350f62009-11-15 23:12:43 +000029885 done
cristy3ed852e2009-09-05 21:47:34 +000029886IFS=$as_save_IFS
29887
29888 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29889 ;;
29890esac
29891fi
29892GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29893if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029895$as_echo "$GVCDecodeDelegate" >&6; }
29896else
cristy8b350f62009-11-15 23:12:43 +000029897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029898$as_echo "no" >&6; }
29899fi
29900
29901
29902# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29903set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029905$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029906if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029907 $as_echo_n "(cached) " >&6
29908else
29909 case $DVIDecodeDelegate in
29910 [\\/]* | ?:[\\/]*)
29911 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
29912 ;;
29913 *)
29914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29915for as_dir in $PATH
29916do
29917 IFS=$as_save_IFS
29918 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029919 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29921 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029923 break 2
29924 fi
29925done
cristy8b350f62009-11-15 23:12:43 +000029926 done
cristy3ed852e2009-09-05 21:47:34 +000029927IFS=$as_save_IFS
29928
29929 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
29930 ;;
29931esac
29932fi
29933DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
29934if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029936$as_echo "$DVIDecodeDelegate" >&6; }
29937else
cristy8b350f62009-11-15 23:12:43 +000029938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029939$as_echo "no" >&6; }
29940fi
29941
29942
29943# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
29944set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029946$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029947if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029948 $as_echo_n "(cached) " >&6
29949else
29950 case $EchoDelegate in
29951 [\\/]* | ?:[\\/]*)
29952 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
29953 ;;
29954 *)
29955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29956for as_dir in $PATH
29957do
29958 IFS=$as_save_IFS
29959 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029960 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29962 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029964 break 2
29965 fi
29966done
cristy8b350f62009-11-15 23:12:43 +000029967 done
cristy3ed852e2009-09-05 21:47:34 +000029968IFS=$as_save_IFS
29969
29970 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
29971 ;;
29972esac
29973fi
29974EchoDelegate=$ac_cv_path_EchoDelegate
29975if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029977$as_echo "$EchoDelegate" >&6; }
29978else
cristy8b350f62009-11-15 23:12:43 +000029979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029980$as_echo "no" >&6; }
29981fi
29982
29983
29984# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
29985set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029987$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029988if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029989 $as_echo_n "(cached) " >&6
29990else
29991 case $EditorDelegate in
29992 [\\/]* | ?:[\\/]*)
29993 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
29994 ;;
29995 *)
29996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29997for as_dir in $PATH
29998do
29999 IFS=$as_save_IFS
30000 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030001 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30003 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030005 break 2
30006 fi
30007done
cristy8b350f62009-11-15 23:12:43 +000030008 done
cristy3ed852e2009-09-05 21:47:34 +000030009IFS=$as_save_IFS
30010
30011 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30012 ;;
30013esac
30014fi
30015EditorDelegate=$ac_cv_path_EditorDelegate
30016if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030018$as_echo "$EditorDelegate" >&6; }
30019else
cristy8b350f62009-11-15 23:12:43 +000030020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030021$as_echo "no" >&6; }
30022fi
30023
30024
30025# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30026set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030028$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030029if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030030 $as_echo_n "(cached) " >&6
30031else
30032 case $FIGDecodeDelegate in
30033 [\\/]* | ?:[\\/]*)
30034 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30035 ;;
30036 *)
30037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30038for as_dir in $PATH
30039do
30040 IFS=$as_save_IFS
30041 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030042 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30044 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030046 break 2
30047 fi
30048done
cristy8b350f62009-11-15 23:12:43 +000030049 done
cristy3ed852e2009-09-05 21:47:34 +000030050IFS=$as_save_IFS
30051
30052 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30053 ;;
30054esac
30055fi
30056FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30057if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030059$as_echo "$FIGDecodeDelegate" >&6; }
30060else
cristy8b350f62009-11-15 23:12:43 +000030061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030062$as_echo "no" >&6; }
30063fi
30064
30065
30066# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30067set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030069$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030070if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030071 $as_echo_n "(cached) " >&6
30072else
30073 case $ConvertDelegate in
30074 [\\/]* | ?:[\\/]*)
30075 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30076 ;;
30077 *)
30078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30079for as_dir in $PATH
30080do
30081 IFS=$as_save_IFS
30082 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030083 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30085 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030087 break 2
30088 fi
30089done
cristy8b350f62009-11-15 23:12:43 +000030090 done
cristy3ed852e2009-09-05 21:47:34 +000030091IFS=$as_save_IFS
30092
30093 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30094 ;;
30095esac
30096fi
30097ConvertDelegate=$ac_cv_path_ConvertDelegate
30098if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030100$as_echo "$ConvertDelegate" >&6; }
30101else
cristy8b350f62009-11-15 23:12:43 +000030102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030103$as_echo "no" >&6; }
30104fi
30105
30106
30107# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30108set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030110$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030111if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030112 $as_echo_n "(cached) " >&6
30113else
30114 case $DisplayDelegate in
30115 [\\/]* | ?:[\\/]*)
30116 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30117 ;;
30118 *)
30119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30120for as_dir in $PATH
30121do
30122 IFS=$as_save_IFS
30123 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030124 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30126 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030128 break 2
30129 fi
30130done
cristy8b350f62009-11-15 23:12:43 +000030131 done
cristy3ed852e2009-09-05 21:47:34 +000030132IFS=$as_save_IFS
30133
30134 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30135 ;;
30136esac
30137fi
30138DisplayDelegate=$ac_cv_path_DisplayDelegate
30139if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030141$as_echo "$DisplayDelegate" >&6; }
30142else
cristy8b350f62009-11-15 23:12:43 +000030143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030144$as_echo "no" >&6; }
30145fi
30146
30147
30148# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30149set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030151$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030152if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030153 $as_echo_n "(cached) " >&6
30154else
30155 case $MogrifyDelegate in
30156 [\\/]* | ?:[\\/]*)
30157 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30158 ;;
30159 *)
30160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30161for as_dir in $PATH
30162do
30163 IFS=$as_save_IFS
30164 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030165 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30167 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030169 break 2
30170 fi
30171done
cristy8b350f62009-11-15 23:12:43 +000030172 done
cristy3ed852e2009-09-05 21:47:34 +000030173IFS=$as_save_IFS
30174
30175 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30176 ;;
30177esac
30178fi
30179MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30180if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030182$as_echo "$MogrifyDelegate" >&6; }
30183else
cristy8b350f62009-11-15 23:12:43 +000030184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030185$as_echo "no" >&6; }
30186fi
30187
30188
30189# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30190set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030192$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030193if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030194 $as_echo_n "(cached) " >&6
30195else
30196 case $GnuplotDecodeDelegate in
30197 [\\/]* | ?:[\\/]*)
30198 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30199 ;;
30200 *)
30201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30202for as_dir in $PATH
30203do
30204 IFS=$as_save_IFS
30205 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030206 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30208 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030210 break 2
30211 fi
30212done
cristy8b350f62009-11-15 23:12:43 +000030213 done
cristy3ed852e2009-09-05 21:47:34 +000030214IFS=$as_save_IFS
30215
30216 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30217 ;;
30218esac
30219fi
30220GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30221if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030223$as_echo "$GnuplotDecodeDelegate" >&6; }
30224else
cristy8b350f62009-11-15 23:12:43 +000030225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030226$as_echo "no" >&6; }
30227fi
30228
30229
30230# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30231set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030233$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030234if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030235 $as_echo_n "(cached) " >&6
30236else
30237 case $HDRDecodeDelegate in
30238 [\\/]* | ?:[\\/]*)
30239 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30240 ;;
30241 *)
30242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30243for as_dir in $PATH
30244do
30245 IFS=$as_save_IFS
30246 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030247 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30249 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030251 break 2
30252 fi
30253done
cristy8b350f62009-11-15 23:12:43 +000030254 done
cristy3ed852e2009-09-05 21:47:34 +000030255IFS=$as_save_IFS
30256
30257 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30258 ;;
30259esac
30260fi
30261HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30262if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030264$as_echo "$HDRDecodeDelegate" >&6; }
30265else
cristy8b350f62009-11-15 23:12:43 +000030266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030267$as_echo "no" >&6; }
30268fi
30269
30270
30271# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30272set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030274$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030275if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030276 $as_echo_n "(cached) " >&6
30277else
30278 case $HPGLDecodeDelegate in
30279 [\\/]* | ?:[\\/]*)
30280 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30281 ;;
30282 *)
30283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30284for as_dir in $PATH
30285do
30286 IFS=$as_save_IFS
30287 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030288 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30290 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030292 break 2
30293 fi
30294done
cristy8b350f62009-11-15 23:12:43 +000030295 done
cristy3ed852e2009-09-05 21:47:34 +000030296IFS=$as_save_IFS
30297
30298 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30299 ;;
30300esac
30301fi
30302HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30303if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030305$as_echo "$HPGLDecodeDelegate" >&6; }
30306else
cristy8b350f62009-11-15 23:12:43 +000030307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030308$as_echo "no" >&6; }
30309fi
30310
30311
30312# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30313set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030315$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030316if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030317 $as_echo_n "(cached) " >&6
30318else
30319 case $HTMLDecodeDelegate in
30320 [\\/]* | ?:[\\/]*)
30321 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30322 ;;
30323 *)
30324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30325for as_dir in $PATH
30326do
30327 IFS=$as_save_IFS
30328 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030329 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30331 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030333 break 2
30334 fi
30335done
cristy8b350f62009-11-15 23:12:43 +000030336 done
cristy3ed852e2009-09-05 21:47:34 +000030337IFS=$as_save_IFS
30338
30339 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30340 ;;
30341esac
30342fi
30343HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30344if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030346$as_echo "$HTMLDecodeDelegate" >&6; }
30347else
cristy8b350f62009-11-15 23:12:43 +000030348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030349$as_echo "no" >&6; }
30350fi
30351
30352
30353# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30354set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030356$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030357if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030358 $as_echo_n "(cached) " >&6
30359else
30360 case $ILBMDecodeDelegate in
30361 [\\/]* | ?:[\\/]*)
30362 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30363 ;;
30364 *)
30365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30366for as_dir in $PATH
30367do
30368 IFS=$as_save_IFS
30369 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030370 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30372 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030374 break 2
30375 fi
30376done
cristy8b350f62009-11-15 23:12:43 +000030377 done
cristy3ed852e2009-09-05 21:47:34 +000030378IFS=$as_save_IFS
30379
30380 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30381 ;;
30382esac
30383fi
30384ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30385if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030387$as_echo "$ILBMDecodeDelegate" >&6; }
30388else
cristy8b350f62009-11-15 23:12:43 +000030389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030390$as_echo "no" >&6; }
30391fi
30392
30393
30394# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30395set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030397$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030398if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030399 $as_echo_n "(cached) " >&6
30400else
30401 case $ILBMEncodeDelegate in
30402 [\\/]* | ?:[\\/]*)
30403 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30404 ;;
30405 *)
30406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30407for as_dir in $PATH
30408do
30409 IFS=$as_save_IFS
30410 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030411 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30413 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030415 break 2
30416 fi
30417done
cristy8b350f62009-11-15 23:12:43 +000030418 done
cristy3ed852e2009-09-05 21:47:34 +000030419IFS=$as_save_IFS
30420
30421 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30422 ;;
30423esac
30424fi
30425ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30426if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030428$as_echo "$ILBMEncodeDelegate" >&6; }
30429else
cristy8b350f62009-11-15 23:12:43 +000030430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030431$as_echo "no" >&6; }
30432fi
30433
30434
30435# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30436set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030438$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030439if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030440 $as_echo_n "(cached) " >&6
30441else
30442 case $LPDelegate in
30443 [\\/]* | ?:[\\/]*)
30444 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30445 ;;
30446 *)
30447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30448for as_dir in $PATH
30449do
30450 IFS=$as_save_IFS
30451 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030452 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30454 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030456 break 2
30457 fi
30458done
cristy8b350f62009-11-15 23:12:43 +000030459 done
cristy3ed852e2009-09-05 21:47:34 +000030460IFS=$as_save_IFS
30461
30462 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30463 ;;
30464esac
30465fi
30466LPDelegate=$ac_cv_path_LPDelegate
30467if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030469$as_echo "$LPDelegate" >&6; }
30470else
cristy8b350f62009-11-15 23:12:43 +000030471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030472$as_echo "no" >&6; }
30473fi
30474
30475
30476# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30477set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030479$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030480if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030481 $as_echo_n "(cached) " >&6
30482else
30483 case $LPRDelegate in
30484 [\\/]* | ?:[\\/]*)
30485 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30486 ;;
30487 *)
30488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30489for as_dir in $PATH
30490do
30491 IFS=$as_save_IFS
30492 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030493 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30495 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030497 break 2
30498 fi
30499done
cristy8b350f62009-11-15 23:12:43 +000030500 done
cristy3ed852e2009-09-05 21:47:34 +000030501IFS=$as_save_IFS
30502
30503 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30504 ;;
30505esac
30506fi
30507LPRDelegate=$ac_cv_path_LPRDelegate
30508if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030510$as_echo "$LPRDelegate" >&6; }
30511else
cristy8b350f62009-11-15 23:12:43 +000030512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030513$as_echo "no" >&6; }
30514fi
30515
30516
30517# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30518set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030520$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030521if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030522 $as_echo_n "(cached) " >&6
30523else
30524 case $LZWDecodeDelegate in
30525 [\\/]* | ?:[\\/]*)
30526 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30527 ;;
30528 *)
30529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30530for as_dir in $PATH
30531do
30532 IFS=$as_save_IFS
30533 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030534 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30536 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030538 break 2
30539 fi
30540done
cristy8b350f62009-11-15 23:12:43 +000030541 done
cristy3ed852e2009-09-05 21:47:34 +000030542IFS=$as_save_IFS
30543
30544 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30545 ;;
30546esac
30547fi
30548LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30549if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030551$as_echo "$LZWDecodeDelegate" >&6; }
30552else
cristy8b350f62009-11-15 23:12:43 +000030553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030554$as_echo "no" >&6; }
30555fi
30556
30557
30558# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30559set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030561$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030562if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030563 $as_echo_n "(cached) " >&6
30564else
30565 case $LZWEncodeDelegate in
30566 [\\/]* | ?:[\\/]*)
30567 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30568 ;;
30569 *)
30570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30571for as_dir in $PATH
30572do
30573 IFS=$as_save_IFS
30574 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030575 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30577 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030579 break 2
30580 fi
30581done
cristy8b350f62009-11-15 23:12:43 +000030582 done
cristy3ed852e2009-09-05 21:47:34 +000030583IFS=$as_save_IFS
30584
30585 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30586 ;;
30587esac
30588fi
30589LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30590if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030592$as_echo "$LZWEncodeDelegate" >&6; }
30593else
cristy8b350f62009-11-15 23:12:43 +000030594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030595$as_echo "no" >&6; }
30596fi
30597
30598
30599# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30600set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030602$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030603if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030604 $as_echo_n "(cached) " >&6
30605else
30606 case $LaunchDelegate in
30607 [\\/]* | ?:[\\/]*)
30608 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30609 ;;
30610 *)
30611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30612for as_dir in $PATH
30613do
30614 IFS=$as_save_IFS
30615 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030616 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30618 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030620 break 2
30621 fi
30622done
cristy8b350f62009-11-15 23:12:43 +000030623 done
cristy3ed852e2009-09-05 21:47:34 +000030624IFS=$as_save_IFS
30625
30626 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30627 ;;
30628esac
30629fi
30630LaunchDelegate=$ac_cv_path_LaunchDelegate
30631if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030633$as_echo "$LaunchDelegate" >&6; }
30634else
cristy8b350f62009-11-15 23:12:43 +000030635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030636$as_echo "no" >&6; }
30637fi
30638
30639
30640# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30641set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030643$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030644if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030645 $as_echo_n "(cached) " >&6
30646else
30647 case $MANDelegate in
30648 [\\/]* | ?:[\\/]*)
30649 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30650 ;;
30651 *)
30652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30653for as_dir in $PATH
30654do
30655 IFS=$as_save_IFS
30656 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030657 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30659 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030661 break 2
30662 fi
30663done
cristy8b350f62009-11-15 23:12:43 +000030664 done
cristy3ed852e2009-09-05 21:47:34 +000030665IFS=$as_save_IFS
30666
30667 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30668 ;;
30669esac
30670fi
30671MANDelegate=$ac_cv_path_MANDelegate
30672if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030674$as_echo "$MANDelegate" >&6; }
30675else
cristy8b350f62009-11-15 23:12:43 +000030676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030677$as_echo "no" >&6; }
30678fi
30679
30680
30681# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30682set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030684$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030685if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030686 $as_echo_n "(cached) " >&6
30687else
30688 case $MPEGDecodeDelegate in
30689 [\\/]* | ?:[\\/]*)
30690 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30691 ;;
30692 *)
30693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30694for as_dir in $PATH
30695do
30696 IFS=$as_save_IFS
30697 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030698 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30700 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030702 break 2
30703 fi
30704done
cristy8b350f62009-11-15 23:12:43 +000030705 done
cristy3ed852e2009-09-05 21:47:34 +000030706IFS=$as_save_IFS
30707
30708 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30709 ;;
30710esac
30711fi
30712MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30713if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030715$as_echo "$MPEGDecodeDelegate" >&6; }
30716else
cristy8b350f62009-11-15 23:12:43 +000030717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030718$as_echo "no" >&6; }
30719fi
30720
30721
30722# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30723set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030725$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030726if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030727 $as_echo_n "(cached) " >&6
30728else
30729 case $MPEGEncodeDelegate in
30730 [\\/]* | ?:[\\/]*)
30731 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30732 ;;
30733 *)
30734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30735for as_dir in $PATH
30736do
30737 IFS=$as_save_IFS
30738 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030739 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30741 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030743 break 2
30744 fi
30745done
cristy8b350f62009-11-15 23:12:43 +000030746 done
cristy3ed852e2009-09-05 21:47:34 +000030747IFS=$as_save_IFS
30748
30749 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30750 ;;
30751esac
30752fi
30753MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30754if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030756$as_echo "$MPEGEncodeDelegate" >&6; }
30757else
cristy8b350f62009-11-15 23:12:43 +000030758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030759$as_echo "no" >&6; }
30760fi
30761
30762
cristy935c86e2010-06-05 23:50:07 +000030763# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30764set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30766$as_echo_n "checking for $ac_word... " >&6; }
30767if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30768 $as_echo_n "(cached) " >&6
30769else
30770 case $MrSIDDecodeDelegate in
30771 [\\/]* | ?:[\\/]*)
30772 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
30773 ;;
30774 *)
30775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30776for as_dir in $PATH
30777do
30778 IFS=$as_save_IFS
30779 test -z "$as_dir" && as_dir=.
30780 for ac_exec_ext in '' $ac_executable_extensions; do
30781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30782 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30784 break 2
30785 fi
30786done
30787 done
30788IFS=$as_save_IFS
30789
30790 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
30791 ;;
30792esac
30793fi
30794MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
30795if test -n "$MrSIDDecodeDelegate"; then
30796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
30797$as_echo "$MrSIDDecodeDelegate" >&6; }
30798else
30799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30800$as_echo "no" >&6; }
30801fi
30802
30803
cristy3ed852e2009-09-05 21:47:34 +000030804# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30805set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030807$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030808if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030809 $as_echo_n "(cached) " >&6
30810else
30811 case $MVDelegate in
30812 [\\/]* | ?:[\\/]*)
30813 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30814 ;;
30815 *)
30816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30817for as_dir in $PATH
30818do
30819 IFS=$as_save_IFS
30820 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030821 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30823 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030825 break 2
30826 fi
30827done
cristy8b350f62009-11-15 23:12:43 +000030828 done
cristy3ed852e2009-09-05 21:47:34 +000030829IFS=$as_save_IFS
30830
30831 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30832 ;;
30833esac
30834fi
30835MVDelegate=$ac_cv_path_MVDelegate
30836if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030838$as_echo "$MVDelegate" >&6; }
30839else
cristy8b350f62009-11-15 23:12:43 +000030840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030841$as_echo "no" >&6; }
30842fi
30843
30844
30845# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30846set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030848$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030849if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030850 $as_echo_n "(cached) " >&6
30851else
30852 case $PCLDelegate in
30853 [\\/]* | ?:[\\/]*)
30854 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30855 ;;
30856 *)
30857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30858for as_dir in $PATH
30859do
30860 IFS=$as_save_IFS
30861 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030862 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30864 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030866 break 2
30867 fi
30868done
cristy8b350f62009-11-15 23:12:43 +000030869 done
cristy3ed852e2009-09-05 21:47:34 +000030870IFS=$as_save_IFS
30871
30872 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30873 ;;
30874esac
30875fi
30876PCLDelegate=$ac_cv_path_PCLDelegate
30877if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030879$as_echo "$PCLDelegate" >&6; }
30880else
cristy8b350f62009-11-15 23:12:43 +000030881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030882$as_echo "no" >&6; }
30883fi
30884
30885
30886# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30887set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030889$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030890if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030891 $as_echo_n "(cached) " >&6
30892else
30893 case $PGPDecodeDelegate in
30894 [\\/]* | ?:[\\/]*)
30895 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30896 ;;
30897 *)
30898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30899for as_dir in $PATH
30900do
30901 IFS=$as_save_IFS
30902 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030903 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30905 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030907 break 2
30908 fi
30909done
cristy8b350f62009-11-15 23:12:43 +000030910 done
cristy3ed852e2009-09-05 21:47:34 +000030911IFS=$as_save_IFS
30912
30913 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30914 ;;
30915esac
30916fi
30917PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30918if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030920$as_echo "$PGPDecodeDelegate" >&6; }
30921else
cristy8b350f62009-11-15 23:12:43 +000030922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030923$as_echo "no" >&6; }
30924fi
30925
30926
30927# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
30928set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030930$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030931if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030932 $as_echo_n "(cached) " >&6
30933else
30934 case $POVDelegate in
30935 [\\/]* | ?:[\\/]*)
30936 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
30937 ;;
30938 *)
30939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30940for as_dir in $PATH
30941do
30942 IFS=$as_save_IFS
30943 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030944 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30946 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030948 break 2
30949 fi
30950done
cristy8b350f62009-11-15 23:12:43 +000030951 done
cristy3ed852e2009-09-05 21:47:34 +000030952IFS=$as_save_IFS
30953
30954 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
30955 ;;
30956esac
30957fi
30958POVDelegate=$ac_cv_path_POVDelegate
30959if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030961$as_echo "$POVDelegate" >&6; }
30962else
cristy8b350f62009-11-15 23:12:43 +000030963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030964$as_echo "no" >&6; }
30965fi
30966
30967
30968for ac_prog in gsx gsc "$PSDelegateDefault"
30969do
30970 # Extract the first word of "$ac_prog", so it can be a program name with args.
30971set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030973$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030974if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030975 $as_echo_n "(cached) " >&6
30976else
30977 case $PSDelegate in
30978 [\\/]* | ?:[\\/]*)
30979 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
30980 ;;
30981 *)
30982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30983for as_dir in $PATH
30984do
30985 IFS=$as_save_IFS
30986 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030987 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30989 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030991 break 2
30992 fi
30993done
cristy8b350f62009-11-15 23:12:43 +000030994 done
cristy3ed852e2009-09-05 21:47:34 +000030995IFS=$as_save_IFS
30996
30997 ;;
30998esac
30999fi
31000PSDelegate=$ac_cv_path_PSDelegate
31001if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031003$as_echo "$PSDelegate" >&6; }
31004else
cristy8b350f62009-11-15 23:12:43 +000031005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031006$as_echo "no" >&6; }
31007fi
31008
31009
31010 test -n "$PSDelegate" && break
31011done
31012test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31013
31014# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31015set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031017$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031018if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031019 $as_echo_n "(cached) " >&6
31020else
31021 case $RLEEncodeDelegate in
31022 [\\/]* | ?:[\\/]*)
31023 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31024 ;;
31025 *)
31026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31027for as_dir in $PATH
31028do
31029 IFS=$as_save_IFS
31030 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031031 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31033 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031035 break 2
31036 fi
31037done
cristy8b350f62009-11-15 23:12:43 +000031038 done
cristy3ed852e2009-09-05 21:47:34 +000031039IFS=$as_save_IFS
31040
31041 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31042 ;;
31043esac
31044fi
31045RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31046if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031048$as_echo "$RLEEncodeDelegate" >&6; }
31049else
cristy8b350f62009-11-15 23:12:43 +000031050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031051$as_echo "no" >&6; }
31052fi
31053
31054
31055# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31056set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031058$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031059if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031060 $as_echo_n "(cached) " >&6
31061else
31062 case $RMDelegate in
31063 [\\/]* | ?:[\\/]*)
31064 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31065 ;;
31066 *)
31067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31068for as_dir in $PATH
31069do
31070 IFS=$as_save_IFS
31071 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031072 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31074 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031076 break 2
31077 fi
31078done
cristy8b350f62009-11-15 23:12:43 +000031079 done
cristy3ed852e2009-09-05 21:47:34 +000031080IFS=$as_save_IFS
31081
31082 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31083 ;;
31084esac
31085fi
31086RMDelegate=$ac_cv_path_RMDelegate
31087if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031089$as_echo "$RMDelegate" >&6; }
31090else
cristy8b350f62009-11-15 23:12:43 +000031091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031092$as_echo "no" >&6; }
31093fi
31094
31095
cristy4689cf02010-02-17 21:15:45 +000031096# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31097set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31099$as_echo_n "checking for $ac_word... " >&6; }
31100if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31101 $as_echo_n "(cached) " >&6
31102else
31103 case $RSVGDecodeDelegate in
31104 [\\/]* | ?:[\\/]*)
31105 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31106 ;;
31107 *)
31108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31109for as_dir in $PATH
31110do
31111 IFS=$as_save_IFS
31112 test -z "$as_dir" && as_dir=.
31113 for ac_exec_ext in '' $ac_executable_extensions; do
31114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31115 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31117 break 2
31118 fi
31119done
31120 done
31121IFS=$as_save_IFS
31122
31123 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31124 ;;
31125esac
31126fi
31127RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31128if test -n "$RSVGDecodeDelegate"; then
31129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31130$as_echo "$RSVGDecodeDelegate" >&6; }
31131else
31132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31133$as_echo "no" >&6; }
31134fi
31135
31136
cristy3ed852e2009-09-05 21:47:34 +000031137# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31138set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031140$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031141if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031142 $as_echo_n "(cached) " >&6
31143else
31144 case $SCANDecodeDelegate in
31145 [\\/]* | ?:[\\/]*)
31146 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31147 ;;
31148 *)
31149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31150for as_dir in $PATH
31151do
31152 IFS=$as_save_IFS
31153 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031154 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31156 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031158 break 2
31159 fi
31160done
cristy8b350f62009-11-15 23:12:43 +000031161 done
cristy3ed852e2009-09-05 21:47:34 +000031162IFS=$as_save_IFS
31163
31164 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31165 ;;
31166esac
31167fi
31168SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31169if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031171$as_echo "$SCANDecodeDelegate" >&6; }
31172else
cristy8b350f62009-11-15 23:12:43 +000031173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031174$as_echo "no" >&6; }
31175fi
31176
31177
31178# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31179set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031181$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031182if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031183 $as_echo_n "(cached) " >&6
31184else
31185 case $TXTDelegate in
31186 [\\/]* | ?:[\\/]*)
31187 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31188 ;;
31189 *)
31190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31191for as_dir in $PATH
31192do
31193 IFS=$as_save_IFS
31194 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031195 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31197 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031199 break 2
31200 fi
31201done
cristy8b350f62009-11-15 23:12:43 +000031202 done
cristy3ed852e2009-09-05 21:47:34 +000031203IFS=$as_save_IFS
31204
31205 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31206 ;;
31207esac
31208fi
31209TXTDelegate=$ac_cv_path_TXTDelegate
31210if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031212$as_echo "$TXTDelegate" >&6; }
31213else
cristy8b350f62009-11-15 23:12:43 +000031214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031215$as_echo "no" >&6; }
31216fi
31217
31218
cristy5ac9ac82010-07-29 13:24:24 +000031219# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
31220set dummy "$UniconvertorDelegateDefault"; ac_word=$2
31221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31222$as_echo_n "checking for $ac_word... " >&6; }
31223if test "${ac_cv_path_UniconvertorDelegate+set}" = set; then :
31224 $as_echo_n "(cached) " >&6
31225else
31226 case $UniconvertorDelegate in
31227 [\\/]* | ?:[\\/]*)
31228 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
31229 ;;
31230 *)
31231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31232for as_dir in $PATH
31233do
31234 IFS=$as_save_IFS
31235 test -z "$as_dir" && as_dir=.
31236 for ac_exec_ext in '' $ac_executable_extensions; do
31237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31238 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
31239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31240 break 2
31241 fi
31242done
31243 done
31244IFS=$as_save_IFS
31245
31246 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
31247 ;;
31248esac
31249fi
31250UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
31251if test -n "$UniconvertorDelegate"; then
31252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
31253$as_echo "$UniconvertorDelegate" >&6; }
31254else
31255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31256$as_echo "no" >&6; }
31257fi
31258
31259
cristy3ed852e2009-09-05 21:47:34 +000031260# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31261set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031263$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031264if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031265 $as_echo_n "(cached) " >&6
31266else
31267 case $WMFDecodeDelegate in
31268 [\\/]* | ?:[\\/]*)
31269 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31270 ;;
31271 *)
31272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31273for as_dir in $PATH
31274do
31275 IFS=$as_save_IFS
31276 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031277 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31279 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031281 break 2
31282 fi
31283done
cristy8b350f62009-11-15 23:12:43 +000031284 done
cristy3ed852e2009-09-05 21:47:34 +000031285IFS=$as_save_IFS
31286
31287 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31288 ;;
31289esac
31290fi
31291WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31292if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031294$as_echo "$WMFDecodeDelegate" >&6; }
31295else
cristy8b350f62009-11-15 23:12:43 +000031296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031297$as_echo "no" >&6; }
31298fi
31299
31300
31301# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31302set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031304$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031305if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031306 $as_echo_n "(cached) " >&6
31307else
31308 case $WWWDecodeDelegate in
31309 [\\/]* | ?:[\\/]*)
31310 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31311 ;;
31312 *)
31313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31314for as_dir in $PATH
31315do
31316 IFS=$as_save_IFS
31317 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031318 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31320 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031322 break 2
31323 fi
31324done
cristy8b350f62009-11-15 23:12:43 +000031325 done
cristy3ed852e2009-09-05 21:47:34 +000031326IFS=$as_save_IFS
31327
31328 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31329 ;;
31330esac
31331fi
31332WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31333if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031335$as_echo "$WWWDecodeDelegate" >&6; }
31336else
cristy8b350f62009-11-15 23:12:43 +000031337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031338$as_echo "no" >&6; }
31339fi
31340
31341
31342# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31343set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031345$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031346if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031347 $as_echo_n "(cached) " >&6
31348else
31349 case $XPSDelegate in
31350 [\\/]* | ?:[\\/]*)
31351 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31352 ;;
31353 *)
31354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31355for as_dir in $PATH
31356do
31357 IFS=$as_save_IFS
31358 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031359 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31361 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031363 break 2
31364 fi
31365done
cristy8b350f62009-11-15 23:12:43 +000031366 done
cristy3ed852e2009-09-05 21:47:34 +000031367IFS=$as_save_IFS
31368
31369 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31370 ;;
31371esac
31372fi
31373XPSDelegate=$ac_cv_path_XPSDelegate
31374if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031376$as_echo "$XPSDelegate" >&6; }
31377else
cristy8b350f62009-11-15 23:12:43 +000031378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031379$as_echo "no" >&6; }
31380fi
31381
31382
31383# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31384set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031386$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031387if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031388 $as_echo_n "(cached) " >&6
31389else
31390 case $ZipDelegate in
31391 [\\/]* | ?:[\\/]*)
31392 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31393 ;;
31394 *)
31395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31396for as_dir in $PATH
31397do
31398 IFS=$as_save_IFS
31399 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031400 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31402 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031404 break 2
31405 fi
31406done
cristy8b350f62009-11-15 23:12:43 +000031407 done
cristy3ed852e2009-09-05 21:47:34 +000031408IFS=$as_save_IFS
31409
31410 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31411 ;;
31412esac
31413fi
31414ZipDelegate=$ac_cv_path_ZipDelegate
31415if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031417$as_echo "$ZipDelegate" >&6; }
31418else
cristy8b350f62009-11-15 23:12:43 +000031419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031420$as_echo "no" >&6; }
31421fi
31422
31423
31424
31425# Prefer lpr to lp; lp needs options tacked on.
31426if test "$LPRDelegate" != no; then
31427 PrintDelegate="$LPRDelegate"
31428else
31429 PrintDelegate="$LPDelegate -c -s"
31430fi
31431
31432
31433# Installed ImageMagick utiltity paths
31434ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31435DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31436MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31437
31438# Set delegate booleans
31439have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31440have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31441have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31442have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31443have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31444have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000031445have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000031446have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31447have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31448have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31449have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31450have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31451
31452#
31453# Test for font directories
31454#
31455type_include_files=''
31456
cristy430a7312010-01-21 20:44:04 +000031457# Dejavu fonts.
31458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31459$as_echo_n "checking for Dejavu fonts directory... " >&6; }
31460dejavu_font_dir=''
31461if test "${with_dejavu_font_dir}" != 'default'; then
31462 dejavu_font_dir="${with_dejavu_font_dir}/"
31463else
31464 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31465 if test -f "${font_dir}DejaVuSerif.ttf"; then
31466 dejavu_font_dir="${font_dir}"
31467 break 1
31468 fi
31469 done
31470fi
31471if test "${dejavu_font_dir}x" != 'x'; then
31472 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31474$as_echo "$dejavu_font_dir" >&6; }
31475else
31476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31477$as_echo "not found!" >&6; };
31478fi
31479
31480
cristy3ed852e2009-09-05 21:47:34 +000031481# Windows
31482windows_font_dir=''
31483if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31484 windows_font_dir="${with_windows_font_dir}/"
31485fi
cristy430a7312010-01-21 20:44:04 +000031486if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031487 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31488 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31489 fi
31490 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31491 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31492 fi
31493 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31494 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31495 fi
31496fi
cristy430a7312010-01-21 20:44:04 +000031497if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031498 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31499fi
31500
31501
31502# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000031503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000031504$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31505ghostscript_font_dir=''
31506if test "${with_gs_font_dir}" != 'default'; then
31507 ghostscript_font_dir="${with_gs_font_dir}/"
31508else
31509 if test "${native_win32_build}" = 'yes'; then
31510 # Native Windows Build
31511 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31512 if test -f "${font_dir}a010013l.pfb"; then
31513 ghostscript_font_dir="$font_dir"
31514 break 1
31515 fi
31516 done
31517 if test "${PSDelegate}" != 'gswin32c'; then
31518 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31519 fi
31520 else
31521 # Linux / Mac OS X / Unix Build
31522 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
31523 if test -f "${font_dir}a010013l.pfb"; then
31524 ghostscript_font_dir="${font_dir}"
31525 break 1
31526 fi
31527 done
31528 if test "${ghostscript_font_dir}x" = 'x'; then
31529 if test "$PSDelegate" != 'gs'; then
31530 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31531 fi
31532 fi
31533 fi
31534fi
31535if test "${ghostscript_font_dir}x" != 'x'; then
31536 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000031537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000031538$as_echo "$ghostscript_font_dir" >&6; }
31539else
cristy8b350f62009-11-15 23:12:43 +000031540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000031541$as_echo "not found!" >&6; };
31542fi
31543
31544case "${build_os}" in
31545 mingw* )
31546 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31547 ;;
31548esac
31549
31550
31551
31552#
31553# Handle case where user doesn't want frozen paths
31554#
31555if test "$with_frozenpaths" != 'yes'; then
31556 # Re-set delegate definitions to default (no paths)
31557 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31558 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31559 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31560 BZIPDelegate="$BZIPDelegateDefault"
31561 BrowseDelegate="$BrowseDelegateDefault"
31562 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31563 CatDelegate="$CatDelegateDefault"
31564 ConvertDelegate="$ConvertDelegateDefault"
31565 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31566 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31567 EchoDelegate="$EchoDelegateDefault"
31568 EditorDelegate="$EditorDelegateDefault"
31569 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31570 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31571 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31572 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31573 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31574 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31575 LPDelegate="$LPDelegateDefault"
31576 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31577 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31578 LaunchDelegate="$LaunchDelegateDefault"
31579 MANDelegate="$MANDelegateDefault"
31580 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31581 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031582 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000031583 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31584 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031585 PCLDelegate="$PCLDelegateDefault"
31586 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31587 POVDelegate="$POVDelegateDefault"
31588 PSDelegate="$PSDelegateDefault"
31589 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31590 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31591 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000031592 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031593 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31594 ShowImageDelegate="$ShowImageDelegateDefault"
31595 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000031596 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031597 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31598 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31599 XPSDelegate="$XPSDelegateDefault"
31600 ZipDelegate="$ZipDelegateDefault"
31601fi
31602
31603# Delegate substitutions
31604
31605
31606
31607
31608
31609
31610
31611
31612
31613
31614
31615
31616
31617
31618
31619
31620
31621
31622
31623
31624
31625
31626
31627
31628
31629
31630
31631
31632
31633
31634
31635
31636
31637
31638
31639
31640
31641
31642
31643
31644
31645
cristy935c86e2010-06-05 23:50:07 +000031646
cristy5ac9ac82010-07-29 13:24:24 +000031647
cristy3ed852e2009-09-05 21:47:34 +000031648#
31649# RPM support.
31650#
31651RPM=''
31652for ac_prog in gnutar gtar tar
31653do
31654 # Extract the first word of "$ac_prog", so it can be a program name with args.
31655set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031657$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031658if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031659 $as_echo_n "(cached) " >&6
31660else
31661 if test -n "$TAR"; then
31662 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31663else
31664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31665for as_dir in $PATH
31666do
31667 IFS=$as_save_IFS
31668 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031669 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31671 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031673 break 2
31674 fi
31675done
cristy8b350f62009-11-15 23:12:43 +000031676 done
cristy3ed852e2009-09-05 21:47:34 +000031677IFS=$as_save_IFS
31678
31679fi
31680fi
31681TAR=$ac_cv_prog_TAR
31682if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000031683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000031684$as_echo "$TAR" >&6; }
31685else
cristy8b350f62009-11-15 23:12:43 +000031686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031687$as_echo "no" >&6; }
31688fi
31689
31690
31691 test -n "$TAR" && break
31692done
31693
31694for ac_prog in perl
31695do
31696 # Extract the first word of "$ac_prog", so it can be a program name with args.
31697set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031699$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031700if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031701 $as_echo_n "(cached) " >&6
31702else
31703 if test -n "$PERL"; then
31704 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31705else
31706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31707for as_dir in $PATH
31708do
31709 IFS=$as_save_IFS
31710 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031711 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31713 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031715 break 2
31716 fi
31717done
cristy8b350f62009-11-15 23:12:43 +000031718 done
cristy3ed852e2009-09-05 21:47:34 +000031719IFS=$as_save_IFS
31720
31721fi
31722fi
31723PERL=$ac_cv_prog_PERL
31724if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031726$as_echo "$PERL" >&6; }
31727else
cristy8b350f62009-11-15 23:12:43 +000031728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031729$as_echo "no" >&6; }
31730fi
31731
31732
31733 test -n "$PERL" && break
31734done
31735
31736for ac_prog in rpmbuild rpm
31737do
31738 # Extract the first word of "$ac_prog", so it can be a program name with args.
31739set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031741$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031742if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031743 $as_echo_n "(cached) " >&6
31744else
31745 if test -n "$RPM"; then
31746 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31747else
31748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31749for as_dir in $PATH
31750do
31751 IFS=$as_save_IFS
31752 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031753 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31755 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031757 break 2
31758 fi
31759done
cristy8b350f62009-11-15 23:12:43 +000031760 done
cristy3ed852e2009-09-05 21:47:34 +000031761IFS=$as_save_IFS
31762
31763fi
31764fi
31765RPM=$ac_cv_prog_RPM
31766if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000031767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000031768$as_echo "$RPM" >&6; }
31769else
cristy8b350f62009-11-15 23:12:43 +000031770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031771$as_echo "no" >&6; }
31772fi
31773
31774
31775 test -n "$RPM" && break
31776done
31777
31778
31779ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31780
31781
31782AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31783
31784
31785AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31786
31787
31788AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31789
31790
31791 if test "x$RPM" != "x" ; then
31792 RPM_DELEGATE_TRUE=
31793 RPM_DELEGATE_FALSE='#'
31794else
31795 RPM_DELEGATE_TRUE='#'
31796 RPM_DELEGATE_FALSE=
31797fi
31798
31799
31800#
31801# 7ZIP support (http://p7zip.sourceforge.net/)
31802#
31803P7ZIP=''
31804for ac_prog in 7za
31805do
31806 # Extract the first word of "$ac_prog", so it can be a program name with args.
31807set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031809$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031810if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031811 $as_echo_n "(cached) " >&6
31812else
31813 if test -n "$P7ZIP"; then
31814 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31815else
31816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31817for as_dir in $PATH
31818do
31819 IFS=$as_save_IFS
31820 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031821 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31823 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031825 break 2
31826 fi
31827done
cristy8b350f62009-11-15 23:12:43 +000031828 done
cristy3ed852e2009-09-05 21:47:34 +000031829IFS=$as_save_IFS
31830
31831fi
31832fi
31833P7ZIP=$ac_cv_prog_P7ZIP
31834if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031836$as_echo "$P7ZIP" >&6; }
31837else
cristy8b350f62009-11-15 23:12:43 +000031838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031839$as_echo "no" >&6; }
31840fi
31841
31842
31843 test -n "$P7ZIP" && break
31844done
31845
31846
31847 if test "x$P7ZIP" != "x" ; then
31848 P7ZIP_DELEGATE_TRUE=
31849 P7ZIP_DELEGATE_FALSE='#'
31850else
31851 P7ZIP_DELEGATE_TRUE='#'
31852 P7ZIP_DELEGATE_FALSE=
31853fi
31854
31855
31856#
31857# ZIP support (http://www.info-zip.org/Zip.html)
31858#
31859ZIP=''
31860for ac_prog in zip
31861do
31862 # Extract the first word of "$ac_prog", so it can be a program name with args.
31863set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031865$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031866if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031867 $as_echo_n "(cached) " >&6
31868else
31869 if test -n "$ZIP"; then
31870 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31871else
31872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31873for as_dir in $PATH
31874do
31875 IFS=$as_save_IFS
31876 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031877 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31879 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031881 break 2
31882 fi
31883done
cristy8b350f62009-11-15 23:12:43 +000031884 done
cristy3ed852e2009-09-05 21:47:34 +000031885IFS=$as_save_IFS
31886
31887fi
31888fi
31889ZIP=$ac_cv_prog_ZIP
31890if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031892$as_echo "$ZIP" >&6; }
31893else
cristy8b350f62009-11-15 23:12:43 +000031894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031895$as_echo "no" >&6; }
31896fi
31897
31898
31899 test -n "$ZIP" && break
31900done
31901
31902
31903 if test "x$ZIP" != "x" ; then
31904 ZIP_DELEGATE_TRUE=
31905 ZIP_DELEGATE_FALSE='#'
31906else
31907 ZIP_DELEGATE_TRUE='#'
31908 ZIP_DELEGATE_FALSE=
31909fi
31910
31911
31912#
31913# GhostPCL related configuration.
31914#
31915PCLColorDevice=ppmraw
31916PCLCMYKDevice=bmpsep8
31917PCLMonoDevice=pbmraw
31918if test -z "$PCLVersion"; then
31919 PCLVersion='unknown'
31920fi
31921if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031923$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031925$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031927$as_echo "" >&6; }
31928 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000031929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031930$as_echo_n "checking for pcl color device... " >&6; }
31931 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31932 :
31933 else
31934 PCLColorDevice=ppmraw
31935 fi
cristy8b350f62009-11-15 23:12:43 +000031936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031937$as_echo "$PCLColorDevice" >&6; }
31938
31939 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031941$as_echo_n "checking for pcl CMYK device... " >&6; }
31942 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31943 :
31944 else
31945 PCLCMYKDevice=$PCLColorDevice
31946 fi
cristy8b350f62009-11-15 23:12:43 +000031947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031948$as_echo "$PCLCMYKDevice" >&6; }
31949
31950 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031952$as_echo_n "checking for pcl mono device... " >&6; }
31953 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31954 :
31955 else
31956 PCLMonoDevice=$PCLColorDevice
31957 fi
cristy8b350f62009-11-15 23:12:43 +000031958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031959$as_echo "$PCLMonoDevice" >&6; }
31960fi
31961
31962
31963
31964
31965
31966
31967#
31968# GhostXPS related configuration.
31969#
31970XPSColorDevice=ppmraw
31971XPSCMYKDevice=bmpsep8
31972XPSMonoDevice=pbmraw
31973if test -z "$XPSVersion"; then
31974 XPSVersion='unknown'
31975fi
31976if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031978$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000031980$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031982$as_echo "" >&6; }
31983 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000031984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031985$as_echo_n "checking for xps color device... " >&6; }
31986 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31987 :
31988 else
31989 XPSColorDevice=ppmraw
31990 fi
cristy8b350f62009-11-15 23:12:43 +000031991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031992$as_echo "$XPSColorDevice" >&6; }
31993
31994 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031996$as_echo_n "checking for xps CMYK device... " >&6; }
31997 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31998 :
31999 else
32000 XPSCMYKDevice=$XPSColorDevice
32001 fi
cristy8b350f62009-11-15 23:12:43 +000032002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032003$as_echo "$XPSCMYKDevice" >&6; }
32004
32005 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032007$as_echo_n "checking for xps mono device... " >&6; }
32008 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32009 :
32010 else
32011 XPSMonoDevice=$XPSColorDevice
32012 fi
cristy8b350f62009-11-15 23:12:43 +000032013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032014$as_echo "$XPSMonoDevice" >&6; }
32015fi
32016
32017
32018
32019
32020
32021
32022#
32023# Ghostscript related configuration.
32024#
32025if test "$have_png" = 'yes'; then
32026 GSAlphaDevice=pngalpha
32027else
32028 GSAlphaDevice=pnmraw
32029fi
32030GSColorDevice=pnmraw
32031GSCMYKDevice=pam
32032GSMonoDevice=pbmraw
32033GSPDFDevice=pdfwrite
32034GSPSDevice=pswrite
32035GSEPSDevice=epswrite
32036GSVersion='unknown'
32037if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032039$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000032041$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032043$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000032045$as_echo_n "checking for Ghostscript version... " >&6; }
32046 if GSVersion=`$PSDelegate --version`; then
32047 :
32048 else
32049 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32050 fi
cristy8b350f62009-11-15 23:12:43 +000032051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000032052$as_echo "$GSVersion" >&6; }
32053
32054 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000032055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032056$as_echo_n "checking for gs alpha device... " >&6; }
32057 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32058 :
32059 else
32060 GSAlphaDevice=pnmraw
32061 fi
cristy8b350f62009-11-15 23:12:43 +000032062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032063$as_echo "$GSAlphaDevice" >&6; }
32064
32065 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032067$as_echo_n "checking for gs color device... " >&6; }
32068 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32069 :
32070 else
32071 GSColorDevice=pnmraw
32072 fi
cristy8b350f62009-11-15 23:12:43 +000032073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032074$as_echo "$GSColorDevice" >&6; }
32075
32076 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032078$as_echo_n "checking for gs CMYK device... " >&6; }
32079 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32080 :
32081 else
32082 GSCMYKDevice=bmpsep8
32083 fi
cristy8b350f62009-11-15 23:12:43 +000032084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032085$as_echo "$GSCMYKDevice" >&6; }
32086
32087 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032089$as_echo_n "checking for gs mono device... " >&6; }
32090 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32091 :
32092 else
32093 GSMonoDevice=$GSColorDevice
32094 fi
cristy8b350f62009-11-15 23:12:43 +000032095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032096$as_echo "$GSMonoDevice" >&6; }
32097
32098 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000032099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032100$as_echo_n "checking for gs PDF writing device... " >&6; }
32101 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32102 :
32103 else
32104 GSPDFDevice=nodevice
32105 fi
cristy8b350f62009-11-15 23:12:43 +000032106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032107$as_echo "$GSPDFDevice" >&6; }
32108
32109 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000032110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032111$as_echo_n "checking for gs PS writing device... " >&6; }
32112 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32113 :
32114 else
32115 GSPSDevice=nodevice
32116 fi
cristy8b350f62009-11-15 23:12:43 +000032117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032118$as_echo "$GSPSDevice" >&6; }
32119
32120 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000032121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032122$as_echo_n "checking for gs EPS writing device... " >&6; }
32123 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32124 :
32125 else
32126 GSEPSDevice=nodevice
32127 fi
cristy8b350f62009-11-15 23:12:43 +000032128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032129$as_echo "$GSEPSDevice" >&6; }
32130fi
32131
32132
32133
32134
32135
32136
32137
32138
32139
32140
32141#
32142# PerlMagick-related configuration
32143#
32144
32145# Look for PERL if PerlMagick requested
32146# If name/path of desired PERL interpreter is specified, look for that one first
32147have_perl='no'
32148if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000032149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032150$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032152$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032154$as_echo "" >&6; }
32155 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032157$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032158if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032159 $as_echo_n "(cached) " >&6
32160else
32161 ac_cv_path_PERL="$with_perl"
32162fi
cristy8b350f62009-11-15 23:12:43 +000032163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032164$as_echo "$ac_cv_path_PERL" >&6; };
32165 PERL=$ac_cv_path_PERL
32166 have_perl="$ac_cv_path_PERL"
32167 else
32168 for ac_prog in perl perl5
32169do
32170 # Extract the first word of "$ac_prog", so it can be a program name with args.
32171set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032173$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032174if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032175 $as_echo_n "(cached) " >&6
32176else
32177 case $PERL in
32178 [\\/]* | ?:[\\/]*)
32179 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32180 ;;
32181 *)
32182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32183for as_dir in $PATH
32184do
32185 IFS=$as_save_IFS
32186 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032187 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32189 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032191 break 2
32192 fi
32193done
cristy8b350f62009-11-15 23:12:43 +000032194 done
cristy3ed852e2009-09-05 21:47:34 +000032195IFS=$as_save_IFS
32196
32197 ;;
32198esac
32199fi
32200PERL=$ac_cv_path_PERL
32201if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032203$as_echo "$PERL" >&6; }
32204else
cristy8b350f62009-11-15 23:12:43 +000032205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032206$as_echo "no" >&6; }
32207fi
32208
32209
32210 test -n "$PERL" && break
32211done
32212 if test "$ac_cv_path_PERL"; then
32213 have_perl="$ac_cv_path_PERL"
32214 fi
32215 fi
32216fi
32217
cristy949301e2010-01-06 01:38:40 +000032218if test "$with_perl" != 'yes' ; then
32219 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32220fi
32221
32222PERL_SUPPORTS_DESTDIR='no'
32223
cristy3ed852e2009-09-05 21:47:34 +000032224with_perl_static='no'
32225with_perl_dynamic='no'
32226if test "$have_perl" != 'no'; then
32227 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32228 with_perl_static='yes'
32229 fi
32230 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32231 with_perl_dynamic='yes'
32232 fi
32233 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy964cb7f2010-04-25 23:18:00 +000032234
32235
32236
32237
32238 if test -n "$PERL"; then :
32239
32240 ax_perl_version="5.8.1"
32241
32242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32243$as_echo_n "checking for perl version... " >&6; }
32244
32245 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32246
32247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32248$as_echo "$perl_version" >&6; }
32249
32250 PERL_VERSION=$perl_version
32251
32252
32253
32254
32255
32256 # Used to indicate true or false condition
32257 ax_compare_version=false
32258
32259 # Convert the two version strings to be compared into a format that
32260 # allows a simple string comparison. The end result is that a version
32261 # string of the form 1.12.5-r617 will be converted to the form
32262 # 0001001200050617. In other words, each number is zero padded to four
32263 # digits, and non digits are removed.
32264
32265 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32266 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32267 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32268 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32269 -e 's/[^0-9]//g'`
32270
32271
32272 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32273 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32274 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32275 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32276 -e 's/[^0-9]//g'`
32277
32278
32279 ax_compare_version=`echo "x$ax_compare_version_A
32280x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32281
32282
32283
32284 if test "$ax_compare_version" = "true" ; then
32285
32286 :
32287 PERL_SUPPORTS_DESTDIR='yes'
32288
32289 else
32290 :
32291 PERL_SUPPORTS_DESTDIR='no'
32292
cristy3ed852e2009-09-05 21:47:34 +000032293 fi
cristy3ed852e2009-09-05 21:47:34 +000032294
cristy964cb7f2010-04-25 23:18:00 +000032295
cristy3ed852e2009-09-05 21:47:34 +000032296else
cristy3ed852e2009-09-05 21:47:34 +000032297
cristy964cb7f2010-04-25 23:18:00 +000032298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32299$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32300 PERL_SUPPORTS_DESTDIR='no'
cristy3ed852e2009-09-05 21:47:34 +000032301
32302fi
32303
cristy3ed852e2009-09-05 21:47:34 +000032304fi
32305 if test "$have_perl" != 'no'; then
32306 WITH_PERL_TRUE=
32307 WITH_PERL_FALSE='#'
32308else
32309 WITH_PERL_TRUE='#'
32310 WITH_PERL_FALSE=
32311fi
32312
32313 if test $with_perl_static = 'yes'; then
32314 WITH_PERL_STATIC_TRUE=
32315 WITH_PERL_STATIC_FALSE='#'
32316else
32317 WITH_PERL_STATIC_TRUE='#'
32318 WITH_PERL_STATIC_FALSE=
32319fi
32320
32321 if test $with_perl_dynamic = 'yes'; then
32322 WITH_PERL_DYNAMIC_TRUE=
32323 WITH_PERL_DYNAMIC_FALSE='#'
32324else
32325 WITH_PERL_DYNAMIC_TRUE='#'
32326 WITH_PERL_DYNAMIC_FALSE=
32327fi
32328
32329
32330
32331# Determine path to pick up MagickCore library from for use with building PerlMagick
32332MAGICKCORE_PATH="${LIB_DIR}"
32333if test $with_perl_static = 'yes'; then
32334 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32335 libtool_objdir=$objdir
32336
32337 # Linker search path to library, followed by -lMagickCore
32338 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32339fi
32340
32341
32342# Create a simple string containing format names for all delegate libraries
32343DELEGATES=''
32344if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32345if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32346if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32347if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32348if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32349if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32350if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32351if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32352if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32353if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32354if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32355if test "$have_jpeg" = 'yes'; then
32356 DELEGATES="$DELEGATES jpeg";
32357 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32358fi
32359if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000032360if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000032361if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32362if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32363if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32364if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32365if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32366if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32367if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32368if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32369if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32370if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32371if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32372
32373
32374
32375#
32376# Handle special compiler flags
32377#
32378
32379# Add '-p' if prof source profiling support enabled
32380if test "$enable_prof" = 'yes'; then
32381 CFLAGS="-p $CFLAGS"
32382 CXXFLAGS="-p $CXXFLAGS"
32383 LDFLAGS="-p $LDFLAGS"
32384fi
32385
32386# Add '-pg' if gprof source profiling support enabled
32387if test "$enable_gprof" = 'yes'; then
32388 CFLAGS="-pg $CFLAGS"
32389 CXXFLAGS="-pg $CXXFLAGS"
32390 LDFLAGS="-pg $LDFLAGS"
32391fi
32392
32393# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32394# This is a gcc-specific feature
32395if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032397$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032398if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032399 $as_echo_n "(cached) " >&6
32400else
32401 ac_check_lib_save_LIBS=$LIBS
32402LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032404/* end confdefs.h. */
32405
32406/* Override any GCC internal prototype to avoid an error.
32407 Use char because int might match the return type of a GCC
32408 builtin and then its argument prototype would still apply. */
32409#ifdef __cplusplus
32410extern "C"
32411#endif
32412char _gcov_init ();
32413int
32414main ()
32415{
32416return _gcov_init ();
32417 ;
32418 return 0;
32419}
32420_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032421if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032422 ac_cv_lib_gcov__gcov_init=yes
32423else
cristy8b350f62009-11-15 23:12:43 +000032424 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032425fi
cristy8b350f62009-11-15 23:12:43 +000032426rm -f core conftest.err conftest.$ac_objext \
32427 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032428LIBS=$ac_check_lib_save_LIBS
32429fi
cristy8b350f62009-11-15 23:12:43 +000032430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032431$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032432if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032433 cat >>confdefs.h <<_ACEOF
32434#define HAVE_LIBGCOV 1
32435_ACEOF
32436
32437 LIBS="-lgcov $LIBS"
32438
32439fi
32440
cristy8b350f62009-11-15 23:12:43 +000032441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032442$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032443if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032444 $as_echo_n "(cached) " >&6
32445else
32446 ac_check_lib_save_LIBS=$LIBS
32447LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032449/* end confdefs.h. */
32450
32451/* Override any GCC internal prototype to avoid an error.
32452 Use char because int might match the return type of a GCC
32453 builtin and then its argument prototype would still apply. */
32454#ifdef __cplusplus
32455extern "C"
32456#endif
32457char __gcov_init ();
32458int
32459main ()
32460{
32461return __gcov_init ();
32462 ;
32463 return 0;
32464}
32465_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032466if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032467 ac_cv_lib_gcov___gcov_init=yes
32468else
cristy8b350f62009-11-15 23:12:43 +000032469 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032470fi
cristy8b350f62009-11-15 23:12:43 +000032471rm -f core conftest.err conftest.$ac_objext \
32472 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032473LIBS=$ac_check_lib_save_LIBS
32474fi
cristy8b350f62009-11-15 23:12:43 +000032475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032476$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032477if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032478 cat >>confdefs.h <<_ACEOF
32479#define HAVE_LIBGCOV 1
32480_ACEOF
32481
32482 LIBS="-lgcov $LIBS"
32483
32484fi
32485
32486 case "$target_os" in
32487 darwin*)
32488 OSX_GCOV_LDFLAG="-Wl,-single_module"
32489 ;;
32490 *)
32491 OSX_GCOV_LDFLAG=""
32492 ;;
32493 esac
32494
32495 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32496 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32497 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32498fi
32499
32500#
32501# Build library dependency list for libMagickCore
32502#
32503
32504MAGICK_LIBLTDL='' # Libltdl for build
32505MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32506MAGICK_LTDLDEPS='' # extra libltdl dependencies
32507if test "$with_ltdl" != 'no'
32508then
32509 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32510 MAGICK_API_LIBLTDL='-lltdl'
32511 fi
32512 MAGICK_LIBLTDL=${LIBLTDL}
32513 MAGICK_LTDLDEPS=${LTDLDEPS}
32514fi
32515
32516
32517
32518if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000032519 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 +000032520else
cristy2e8b51d2009-10-17 18:26:15 +000032521 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 +000032522fi
32523
32524
32525#
32526# Remove extraneous spaces from output variables (asthetic)
32527#
32528X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32529X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32530X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32531X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32532
32533CC=`echo $CC | sed -e 's/ */ /g'`
32534CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32535CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32536CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32537DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32538DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32539LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32540TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32541MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32542#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32543
32544# Pass only user-provided LIBS as "global" libraries
32545LIBS=$USER_LIBS
32546
32547#AC_SUBST(CPPFLAGS)
32548
32549#AC_SUBST(LDFLAGS)
32550#AC_SUBST(X_PRE_LIBS)
32551#AC_SUBST(X_LIBS)
32552#AC_SUBST(X_EXTRA_LIBS)
32553
32554MAGICK_CFLAGS=$CFLAGS
32555MAGICK_CXXFLAGS="$CXXFLAGS"
32556MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32557MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32558MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32559MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32560
32561
32562
32563
32564
32565
32566
32567
cristyfd9dcd42010-08-08 18:07:02 +000032568
cristy3ed852e2009-09-05 21:47:34 +000032569# Set configured scripts to executable.
32570ac_config_commands="$ac_config_commands default"
32571
32572ac_config_commands="$ac_config_commands MagickCore-config.in"
32573
32574ac_config_commands="$ac_config_commands Magick-config.in"
32575
32576ac_config_commands="$ac_config_commands MagickWand-config.in"
32577
32578ac_config_commands="$ac_config_commands Wand-config.in"
32579
32580ac_config_commands="$ac_config_commands Magick++-config.in"
32581
32582ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32583
32584
cristy8b350f62009-11-15 23:12:43 +000032585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032586$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000032588$as_echo "Update ImageMagick configuration" >&6; }
32589cat >confcache <<\_ACEOF
32590# This file is a shell script that caches the results of configure
32591# tests run on this system so they can be shared between configure
32592# scripts and configure runs, see configure's option --config-cache.
32593# It is not useful on other systems. If it contains results you don't
32594# want to keep, you may remove or edit it.
32595#
32596# config.status only pays attention to the cache file if you give it
32597# the --recheck option to rerun configure.
32598#
32599# `ac_cv_env_foo' variables (set or unset) will be overridden when
32600# loading this file, other *unset* `ac_cv_foo' will be assigned the
32601# following values.
32602
32603_ACEOF
32604
32605# The following way of writing the cache mishandles newlines in values,
32606# but we know of no workaround that is simple, portable, and efficient.
32607# So, we kill variables containing newlines.
32608# Ultrix sh set writes to stderr and can't be redirected directly,
32609# and sets the high bit in the cache file unless we assign to the vars.
32610(
32611 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32612 eval ac_val=\$$ac_var
32613 case $ac_val in #(
32614 *${as_nl}*)
32615 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000032616 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000032617$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32618 esac
32619 case $ac_var in #(
32620 _ | IFS | as_nl) ;; #(
32621 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000032622 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000032623 esac ;;
32624 esac
32625 done
32626
32627 (set) 2>&1 |
32628 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32629 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000032630 # `set' does not quote correctly, so add quotes: double-quote
32631 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000032632 sed -n \
32633 "s/'/'\\\\''/g;
32634 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32635 ;; #(
32636 *)
32637 # `set' quotes correctly as required by POSIX, so do not add quotes.
32638 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32639 ;;
32640 esac |
32641 sort
32642) |
32643 sed '
32644 /^ac_cv_env_/b end
32645 t clear
32646 :clear
32647 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32648 t end
32649 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32650 :end' >>confcache
32651if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32652 if test -w "$cache_file"; then
32653 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000032654 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032655$as_echo "$as_me: updating cache $cache_file" >&6;}
32656 cat confcache >$cache_file
32657 else
cristy8b350f62009-11-15 23:12:43 +000032658 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032659$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32660 fi
32661fi
32662rm -f confcache
32663
32664test "x$prefix" = xNONE && prefix=$ac_default_prefix
32665# Let make expand exec_prefix.
32666test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32667
32668DEFS=-DHAVE_CONFIG_H
32669
32670ac_libobjs=
32671ac_ltlibobjs=
cristyfd9dcd42010-08-08 18:07:02 +000032672U=
cristy3ed852e2009-09-05 21:47:34 +000032673for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32674 # 1. Remove the extension, and $U if already installed.
32675 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32676 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32677 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32678 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000032679 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32680 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000032681done
32682LIBOBJS=$ac_libobjs
32683
32684LTLIBOBJS=$ac_ltlibobjs
32685
32686
32687 if test -n "$EXEEXT"; then
32688 am__EXEEXT_TRUE=
32689 am__EXEEXT_FALSE='#'
32690else
32691 am__EXEEXT_TRUE='#'
32692 am__EXEEXT_FALSE=
32693fi
32694
32695if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032696 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032697Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032698fi
32699if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032700 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032701Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032702fi
cristya0b81c32010-01-22 02:54:33 +000032703if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032704 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristya0b81c32010-01-22 02:54:33 +000032705Usually this means the macro was only invoked conditionally." "$LINENO" 5
32706fi
cristy3ed852e2009-09-05 21:47:34 +000032707if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032708 as_fn_error $? "conditional \"am__fastdepCXX\" 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 "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032712 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032713Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032714fi
32715if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032716 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032717Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032718fi
32719if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032720 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032721Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032722fi
32723if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032724 as_fn_error $? "conditional \"USING_CL\" 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
cristy3ed852e2009-09-05 21:47:34 +000032727if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032728 as_fn_error $? "conditional \"INSTALL_LTDL\" 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 "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032732 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032733Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032734fi
32735LT_CONFIG_H=config/config.h
32736
32737 _ltdl_libobjs=
32738 _ltdl_ltlibobjs=
32739 if test -n "$_LT_LIBOBJS"; then
32740 # Remove the extension.
32741 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32742 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32743 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32744 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32745 done
32746 fi
32747 ltdl_LIBOBJS=$_ltdl_libobjs
32748
32749 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32750
32751
cristyfa112112010-01-04 17:48:07 +000032752if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032753 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristyfa112112010-01-04 17:48:07 +000032754Usually this means the macro was only invoked conditionally." "$LINENO" 5
32755fi
cristy3ed852e2009-09-05 21:47:34 +000032756if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032757 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032758Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032759fi
32760if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032761 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032762Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032763fi
32764if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032765 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032766Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032767fi
32768
32769if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032770 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032771Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032772fi
32773if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032774 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032775Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032776fi
32777if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032778 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032779Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032780fi
32781if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032782 as_fn_error $? "conditional \"BZLIB_DELEGATE\" 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 "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032786 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032787Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032788fi
32789if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032790 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032791Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032792fi
32793if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032794 as_fn_error $? "conditional \"AUTOTRACE_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 "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032798 as_fn_error $? "conditional \"DPS_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 "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032802 as_fn_error $? "conditional \"DJVU_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 "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032806 as_fn_error $? "conditional \"FFTW_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 "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032810 as_fn_error $? "conditional \"FPX_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 "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032814 as_fn_error $? "conditional \"FONTCONFIG_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 "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032818 as_fn_error $? "conditional \"FREETYPE_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 "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032822 as_fn_error $? "conditional \"GS_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 "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032826 as_fn_error $? "conditional \"GVC_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 "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032830 as_fn_error $? "conditional \"JBIG_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 "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032834 as_fn_error $? "conditional \"JPEG_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 "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032838 as_fn_error $? "conditional \"JP2_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 "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032842 as_fn_error $? "conditional \"LCMS_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 "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032846 as_fn_error $? "conditional \"LQR_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 "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032850 as_fn_error $? "conditional \"OPENEXR_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 "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032854 as_fn_error $? "conditional \"PNG_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 "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032858 as_fn_error $? "conditional \"RSVG_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 "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032862 as_fn_error $? "conditional \"CAIRO_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 "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032866 as_fn_error $? "conditional \"TIFF_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 "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032870 as_fn_error $? "conditional \"WMF_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 "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032874 as_fn_error $? "conditional \"XML_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 "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032878 as_fn_error $? "conditional \"RPM_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 "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032882 as_fn_error $? "conditional \"P7ZIP_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 "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032886 as_fn_error $? "conditional \"ZIP_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 "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032890 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032891Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032892fi
32893if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032894 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032895Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032896fi
32897if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristyfd9dcd42010-08-08 18:07:02 +000032898 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" 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
32901
32902: ${CONFIG_STATUS=./config.status}
32903ac_write_fail=0
32904ac_clean_files_save=$ac_clean_files
32905ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000032906{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032907$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032908as_write_fail=0
32909cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032910#! $SHELL
32911# Generated by $as_me.
32912# Run this file to recreate the current configuration.
32913# Compiler output produced by configure, useful for debugging
32914# configure, is in config.log if it exists.
32915
32916debug=false
32917ac_cs_recheck=false
32918ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000032919
cristy8b350f62009-11-15 23:12:43 +000032920SHELL=\${CONFIG_SHELL-$SHELL}
32921export SHELL
32922_ASEOF
32923cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32924## -------------------- ##
32925## M4sh Initialization. ##
32926## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000032927
32928# Be more Bourne compatible
32929DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000032930if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000032931 emulate sh
32932 NULLCMD=:
32933 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32934 # is contrary to our usage. Disable this feature.
32935 alias -g '${1+"$@"}'='"$@"'
32936 setopt NO_GLOB_SUBST
32937else
cristy8b350f62009-11-15 23:12:43 +000032938 case `(set -o) 2>/dev/null` in #(
32939 *posix*) :
32940 set -o posix ;; #(
32941 *) :
32942 ;;
cristy3ed852e2009-09-05 21:47:34 +000032943esac
cristy3ed852e2009-09-05 21:47:34 +000032944fi
32945
32946
cristy3ed852e2009-09-05 21:47:34 +000032947as_nl='
32948'
32949export as_nl
32950# Printing a long string crashes Solaris 7 /usr/bin/printf.
32951as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32952as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32953as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000032954# Prefer a ksh shell builtin over an external printf program on Solaris,
32955# but without wasting forks for bash or zsh.
32956if test -z "$BASH_VERSION$ZSH_VERSION" \
32957 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32958 as_echo='print -r --'
32959 as_echo_n='print -rn --'
32960elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000032961 as_echo='printf %s\n'
32962 as_echo_n='printf %s'
32963else
32964 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32965 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32966 as_echo_n='/usr/ucb/echo -n'
32967 else
32968 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32969 as_echo_n_body='eval
32970 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000032971 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000032972 *"$as_nl"*)
32973 expr "X$arg" : "X\\(.*\\)$as_nl";
32974 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32975 esac;
32976 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32977 '
32978 export as_echo_n_body
32979 as_echo_n='sh -c $as_echo_n_body as_echo'
32980 fi
32981 export as_echo_body
32982 as_echo='sh -c $as_echo_body as_echo'
32983fi
32984
32985# The user is always right.
32986if test "${PATH_SEPARATOR+set}" != set; then
32987 PATH_SEPARATOR=:
32988 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32989 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32990 PATH_SEPARATOR=';'
32991 }
32992fi
32993
cristy3ed852e2009-09-05 21:47:34 +000032994
32995# IFS
32996# We need space, tab and new line, in precisely that order. Quoting is
32997# there to prevent editors from complaining about space-tab.
32998# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32999# splitting by setting IFS to empty value.)
33000IFS=" "" $as_nl"
33001
33002# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000033003case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000033004 *[\\/]* ) as_myself=$0 ;;
33005 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33006for as_dir in $PATH
33007do
33008 IFS=$as_save_IFS
33009 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033010 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33011 done
cristy3ed852e2009-09-05 21:47:34 +000033012IFS=$as_save_IFS
33013
33014 ;;
33015esac
33016# We did not find ourselves, most probably we were run as `sh COMMAND'
33017# in which case we are not to be found in the path.
33018if test "x$as_myself" = x; then
33019 as_myself=$0
33020fi
33021if test ! -f "$as_myself"; then
33022 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000033023 exit 1
cristy3ed852e2009-09-05 21:47:34 +000033024fi
33025
cristy8b350f62009-11-15 23:12:43 +000033026# Unset variables that we do not need and which cause bugs (e.g. in
33027# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33028# suppresses any "Segmentation fault" message there. '((' could
33029# trigger a bug in pdksh 5.2.14.
33030for as_var in BASH_ENV ENV MAIL MAILPATH
33031do eval test x\${$as_var+set} = xset \
33032 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000033033done
33034PS1='$ '
33035PS2='> '
33036PS4='+ '
33037
33038# NLS nuisances.
33039LC_ALL=C
33040export LC_ALL
33041LANGUAGE=C
33042export LANGUAGE
33043
cristy8b350f62009-11-15 23:12:43 +000033044# CDPATH.
33045(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33046
33047
cristyfd9dcd42010-08-08 18:07:02 +000033048# as_fn_error STATUS ERROR [LINENO LOG_FD]
33049# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000033050# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33051# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristyfd9dcd42010-08-08 18:07:02 +000033052# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000033053as_fn_error ()
33054{
cristyfd9dcd42010-08-08 18:07:02 +000033055 as_status=$1; test $as_status -eq 0 && as_status=1
33056 if test "$4"; then
33057 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33058 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000033059 fi
cristyfd9dcd42010-08-08 18:07:02 +000033060 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000033061 as_fn_exit $as_status
33062} # as_fn_error
33063
33064
33065# as_fn_set_status STATUS
33066# -----------------------
33067# Set $? to STATUS, without forking.
33068as_fn_set_status ()
33069{
33070 return $1
33071} # as_fn_set_status
33072
33073# as_fn_exit STATUS
33074# -----------------
33075# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33076as_fn_exit ()
33077{
33078 set +e
33079 as_fn_set_status $1
33080 exit $1
33081} # as_fn_exit
33082
33083# as_fn_unset VAR
33084# ---------------
33085# Portably unset VAR.
33086as_fn_unset ()
33087{
33088 { eval $1=; unset $1;}
33089}
33090as_unset=as_fn_unset
33091# as_fn_append VAR VALUE
33092# ----------------------
33093# Append the text in VALUE to the end of the definition contained in VAR. Take
33094# advantage of any shell optimizations that allow amortized linear growth over
33095# repeated appends, instead of the typical quadratic growth present in naive
33096# implementations.
33097if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33098 eval 'as_fn_append ()
33099 {
33100 eval $1+=\$2
33101 }'
33102else
33103 as_fn_append ()
33104 {
33105 eval $1=\$$1\$2
33106 }
33107fi # as_fn_append
33108
33109# as_fn_arith ARG...
33110# ------------------
33111# Perform arithmetic evaluation on the ARGs, and store the result in the
33112# global $as_val. Take advantage of shells that can avoid forks. The arguments
33113# must be portable across $(()) and expr.
33114if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33115 eval 'as_fn_arith ()
33116 {
33117 as_val=$(( $* ))
33118 }'
33119else
33120 as_fn_arith ()
33121 {
33122 as_val=`expr "$@" || test $? -eq 1`
33123 }
33124fi # as_fn_arith
33125
33126
cristy3ed852e2009-09-05 21:47:34 +000033127if expr a : '\(a\)' >/dev/null 2>&1 &&
33128 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33129 as_expr=expr
33130else
33131 as_expr=false
33132fi
33133
33134if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33135 as_basename=basename
33136else
33137 as_basename=false
33138fi
33139
cristy8b350f62009-11-15 23:12:43 +000033140if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33141 as_dirname=dirname
33142else
33143 as_dirname=false
33144fi
cristy3ed852e2009-09-05 21:47:34 +000033145
cristy3ed852e2009-09-05 21:47:34 +000033146as_me=`$as_basename -- "$0" ||
33147$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33148 X"$0" : 'X\(//\)$' \| \
33149 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33150$as_echo X/"$0" |
33151 sed '/^.*\/\([^/][^/]*\)\/*$/{
33152 s//\1/
33153 q
33154 }
33155 /^X\/\(\/\/\)$/{
33156 s//\1/
33157 q
33158 }
33159 /^X\/\(\/\).*/{
33160 s//\1/
33161 q
33162 }
33163 s/.*/./; q'`
33164
cristy8b350f62009-11-15 23:12:43 +000033165# Avoid depending upon Character Ranges.
33166as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33167as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33168as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33169as_cr_digits='0123456789'
33170as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000033171
33172ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000033173case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000033174-n*)
cristy8b350f62009-11-15 23:12:43 +000033175 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000033176 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000033177 xy) ECHO_C='\c';;
33178 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33179 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000033180 esac;;
33181*)
33182 ECHO_N='-n';;
33183esac
cristy3ed852e2009-09-05 21:47:34 +000033184
33185rm -f conf$$ conf$$.exe conf$$.file
33186if test -d conf$$.dir; then
33187 rm -f conf$$.dir/conf$$.file
33188else
33189 rm -f conf$$.dir
33190 mkdir conf$$.dir 2>/dev/null
33191fi
33192if (echo >conf$$.file) 2>/dev/null; then
33193 if ln -s conf$$.file conf$$ 2>/dev/null; then
33194 as_ln_s='ln -s'
33195 # ... but there are two gotchas:
33196 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33197 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33198 # In both cases, we have to default to `cp -p'.
33199 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33200 as_ln_s='cp -p'
33201 elif ln conf$$.file conf$$ 2>/dev/null; then
33202 as_ln_s=ln
33203 else
33204 as_ln_s='cp -p'
33205 fi
33206else
33207 as_ln_s='cp -p'
33208fi
33209rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33210rmdir conf$$.dir 2>/dev/null
33211
cristy8b350f62009-11-15 23:12:43 +000033212
33213# as_fn_mkdir_p
33214# -------------
33215# Create "$as_dir" as a directory, including parents if necessary.
33216as_fn_mkdir_p ()
33217{
33218
33219 case $as_dir in #(
33220 -*) as_dir=./$as_dir;;
33221 esac
33222 test -d "$as_dir" || eval $as_mkdir_p || {
33223 as_dirs=
33224 while :; do
33225 case $as_dir in #(
33226 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33227 *) as_qdir=$as_dir;;
33228 esac
33229 as_dirs="'$as_qdir' $as_dirs"
33230 as_dir=`$as_dirname -- "$as_dir" ||
33231$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33232 X"$as_dir" : 'X\(//\)[^/]' \| \
33233 X"$as_dir" : 'X\(//\)$' \| \
33234 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33235$as_echo X"$as_dir" |
33236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33237 s//\1/
33238 q
33239 }
33240 /^X\(\/\/\)[^/].*/{
33241 s//\1/
33242 q
33243 }
33244 /^X\(\/\/\)$/{
33245 s//\1/
33246 q
33247 }
33248 /^X\(\/\).*/{
33249 s//\1/
33250 q
33251 }
33252 s/.*/./; q'`
33253 test -d "$as_dir" && break
33254 done
33255 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristyfd9dcd42010-08-08 18:07:02 +000033256 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000033257
33258
33259} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033260if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000033261 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000033262else
33263 test -d ./-p && rmdir ./-p
33264 as_mkdir_p=false
33265fi
33266
33267if test -x / >/dev/null 2>&1; then
33268 as_test_x='test -x'
33269else
33270 if ls -dL / >/dev/null 2>&1; then
33271 as_ls_L_option=L
33272 else
33273 as_ls_L_option=
33274 fi
33275 as_test_x='
33276 eval sh -c '\''
33277 if test -d "$1"; then
33278 test -d "$1/.";
33279 else
cristy8b350f62009-11-15 23:12:43 +000033280 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000033281 -*)set "./$1";;
33282 esac;
cristy8b350f62009-11-15 23:12:43 +000033283 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000033284 ???[sx]*):;;*)false;;esac;fi
33285 '\'' sh
33286 '
33287fi
33288as_executable_p=$as_test_x
33289
33290# Sed expression to map a string onto a valid CPP name.
33291as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33292
33293# Sed expression to map a string onto a valid variable name.
33294as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33295
33296
33297exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000033298## ----------------------------------- ##
33299## Main body of $CONFIG_STATUS script. ##
33300## ----------------------------------- ##
33301_ASEOF
33302test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033303
cristy8b350f62009-11-15 23:12:43 +000033304cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33305# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000033306# report actual input values of CONFIG_FILES etc. instead of their
33307# values after options handling.
33308ac_log="
cristy56225732010-09-04 23:44:25 +000033309This file was extended by ImageMagick $as_me 6.6.4, which was
cristyfd9dcd42010-08-08 18:07:02 +000033310generated by GNU Autoconf 2.66. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000033311
33312 CONFIG_FILES = $CONFIG_FILES
33313 CONFIG_HEADERS = $CONFIG_HEADERS
33314 CONFIG_LINKS = $CONFIG_LINKS
33315 CONFIG_COMMANDS = $CONFIG_COMMANDS
33316 $ $0 $@
33317
33318on `(hostname || uname -n) 2>/dev/null | sed 1q`
33319"
33320
33321_ACEOF
33322
33323case $ac_config_files in *"
33324"*) set x $ac_config_files; shift; ac_config_files=$*;;
33325esac
33326
33327case $ac_config_headers in *"
33328"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33329esac
33330
33331
33332cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33333# Files that config.status was made for.
33334config_files="$ac_config_files"
33335config_headers="$ac_config_headers"
33336config_commands="$ac_config_commands"
33337
33338_ACEOF
33339
33340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33341ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000033342\`$as_me' instantiates files and other configuration actions
33343from templates according to the current configuration. Unless the files
33344and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000033345
cristy8b350f62009-11-15 23:12:43 +000033346Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000033347
33348 -h, --help print this help, then exit
33349 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000033350 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000033351 -q, --quiet, --silent
33352 do not print progress messages
33353 -d, --debug don't remove temporary files
33354 --recheck update $as_me by reconfiguring in the same conditions
33355 --file=FILE[:TEMPLATE]
33356 instantiate the configuration file FILE
33357 --header=FILE[:TEMPLATE]
33358 instantiate the configuration header FILE
33359
33360Configuration files:
33361$config_files
33362
33363Configuration headers:
33364$config_headers
33365
33366Configuration commands:
33367$config_commands
33368
cristy8b350f62009-11-15 23:12:43 +000033369Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000033370
33371_ACEOF
33372cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000033373ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000033374ac_cs_version="\\
cristy56225732010-09-04 23:44:25 +000033375ImageMagick config.status 6.6.4
cristyfd9dcd42010-08-08 18:07:02 +000033376configured by $0, generated by GNU Autoconf 2.66,
cristycd4c5312009-11-22 01:19:08 +000033377 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000033378
cristyfd9dcd42010-08-08 18:07:02 +000033379Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033380This config.status script is free software; the Free Software Foundation
33381gives unlimited permission to copy, distribute and modify it."
33382
33383ac_pwd='$ac_pwd'
33384srcdir='$srcdir'
33385INSTALL='$INSTALL'
33386MKDIR_P='$MKDIR_P'
33387AWK='$AWK'
33388test -n "\$AWK" || AWK=awk
33389_ACEOF
33390
33391cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33392# The default lists apply if the user does not specify any file.
33393ac_need_defaults=:
33394while test $# != 0
33395do
33396 case $1 in
33397 --*=*)
33398 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33399 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33400 ac_shift=:
33401 ;;
33402 *)
33403 ac_option=$1
33404 ac_optarg=$2
33405 ac_shift=shift
33406 ;;
33407 esac
33408
33409 case $ac_option in
33410 # Handling of the options.
33411 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33412 ac_cs_recheck=: ;;
33413 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33414 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000033415 --config | --confi | --conf | --con | --co | --c )
33416 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000033417 --debug | --debu | --deb | --de | --d | -d )
33418 debug=: ;;
33419 --file | --fil | --fi | --f )
33420 $ac_shift
33421 case $ac_optarg in
33422 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33423 esac
cristy8b350f62009-11-15 23:12:43 +000033424 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033425 ac_need_defaults=false;;
33426 --header | --heade | --head | --hea )
33427 $ac_shift
33428 case $ac_optarg in
33429 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33430 esac
cristy8b350f62009-11-15 23:12:43 +000033431 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033432 ac_need_defaults=false;;
33433 --he | --h)
33434 # Conflict between --help and --header
cristyfd9dcd42010-08-08 18:07:02 +000033435 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033436Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000033437 --help | --hel | -h )
33438 $as_echo "$ac_cs_usage"; exit ;;
33439 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33440 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33441 ac_cs_silent=: ;;
33442
33443 # This is an error.
cristyfd9dcd42010-08-08 18:07:02 +000033444 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033445Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000033446
cristy8b350f62009-11-15 23:12:43 +000033447 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000033448 ac_need_defaults=false ;;
33449
33450 esac
33451 shift
33452done
33453
33454ac_configure_extra_args=
33455
33456if $ac_cs_silent; then
33457 exec 6>/dev/null
33458 ac_configure_extra_args="$ac_configure_extra_args --silent"
33459fi
33460
33461_ACEOF
33462cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33463if \$ac_cs_recheck; then
33464 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33465 shift
33466 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33467 CONFIG_SHELL='$SHELL'
33468 export CONFIG_SHELL
33469 exec "\$@"
33470fi
33471
33472_ACEOF
33473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33474exec 5>>config.log
33475{
33476 echo
33477 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33478## Running $as_me. ##
33479_ASBOX
33480 $as_echo "$ac_log"
33481} >&5
33482
33483_ACEOF
33484cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33485#
33486# INIT-COMMANDS
33487#
33488PACKAGE="$PACKAGE"
33489AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33490
33491
33492# The HP-UX ksh and POSIX shell print the target directory to stdout
33493# if CDPATH is set.
33494(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33495
33496sed_quote_subst='$sed_quote_subst'
33497double_quote_subst='$double_quote_subst'
33498delay_variable_subst='$delay_variable_subst'
cristyfd9dcd42010-08-08 18:07:02 +000033499SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33500Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33501GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
33502EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
33503FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
33504SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33505ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33506LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
33507macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33508macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33509AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
33510DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33511OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33512enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33513enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33514pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33515enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33516host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33517host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33518host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33519build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33520build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33521build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33522NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
33523LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
33524max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
33525ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
33526exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33527lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33528lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33529lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33530reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33531reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33532deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33533file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33534AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33535AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33536STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33537RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33538old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33539old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33540old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
33541lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
33542CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
33543CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
33544compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
33545GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
33546lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
33547lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
33548lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
33549lt_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"`'
33550objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
33551MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
33552lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
33553lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33554lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
33555lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
33556lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
33557need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
33558DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
33559NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
33560LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
33561OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
33562OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
33563libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
33564shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
33565extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33566archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
33567enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
33568export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
33569whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
33570compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
33571old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
33572old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33573archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
33574archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33575module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
33576module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33577with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
33578allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
33579no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
33580hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
33581hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
33582hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
33583hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
33584hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
33585hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
33586hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
33587hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
33588inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
33589link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
33590fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
33591always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
33592export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
33593exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
33594include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
33595prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
33596file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
33597variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
33598need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
33599need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
33600version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
33601runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
33602shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
33603shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
33604libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
33605library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
33606soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
33607install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
33608postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33609postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33610finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
33611finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
33612hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
33613sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
33614sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
33615hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
33616enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
33617enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
33618enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
33619old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
33620striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
33621compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
33622predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
33623postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
33624predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
33625postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
33626compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
33627LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
33628reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
33629reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33630old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33631compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
33632GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
33633lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
33634lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
33635lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
33636lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
33637lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
33638archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
33639enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
33640export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33641whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33642compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
33643old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33644old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33645archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33646archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33647module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33648module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33649with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
33650allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33651no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33652hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33653hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
33654hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
33655hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
33656hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
33657hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
33658hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
33659hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
33660inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
33661link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
33662fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
33663always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
33664export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33665exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33666include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33667prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33668file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
33669hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
33670compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
33671predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33672postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33673predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
33674postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
33675compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000033676
33677LTCC='$LTCC'
33678LTCFLAGS='$LTCFLAGS'
33679compiler='$compiler_DEFAULT'
33680
cristyfd9dcd42010-08-08 18:07:02 +000033681# A function that is used when there is no print builtin or printf.
33682func_fallback_echo ()
33683{
33684 eval 'cat <<_LTECHO_EOF
33685\$1
33686_LTECHO_EOF'
33687}
33688
cristy3ed852e2009-09-05 21:47:34 +000033689# Quote evaled strings.
33690for var in SED \
33691GREP \
33692EGREP \
33693FGREP \
cristyfd9dcd42010-08-08 18:07:02 +000033694SHELL \
33695ECHO \
cristy3ed852e2009-09-05 21:47:34 +000033696LD \
cristyfd9dcd42010-08-08 18:07:02 +000033697AS \
33698DLLTOOL \
33699OBJDUMP \
cristy3ed852e2009-09-05 21:47:34 +000033700NM \
33701LN_S \
33702lt_SP2NL \
33703lt_NL2SP \
33704reload_flag \
33705deplibs_check_method \
33706file_magic_cmd \
33707AR \
33708AR_FLAGS \
33709STRIP \
33710RANLIB \
33711CC \
33712CFLAGS \
33713compiler \
33714lt_cv_sys_global_symbol_pipe \
33715lt_cv_sys_global_symbol_to_cdecl \
33716lt_cv_sys_global_symbol_to_c_name_address \
33717lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy3ed852e2009-09-05 21:47:34 +000033718lt_prog_compiler_no_builtin_flag \
33719lt_prog_compiler_wl \
33720lt_prog_compiler_pic \
33721lt_prog_compiler_static \
33722lt_cv_prog_compiler_c_o \
33723need_locks \
33724DSYMUTIL \
33725NMEDIT \
33726LIPO \
33727OTOOL \
33728OTOOL64 \
33729shrext_cmds \
33730export_dynamic_flag_spec \
33731whole_archive_flag_spec \
33732compiler_needs_object \
33733with_gnu_ld \
33734allow_undefined_flag \
33735no_undefined_flag \
33736hardcode_libdir_flag_spec \
33737hardcode_libdir_flag_spec_ld \
33738hardcode_libdir_separator \
33739fix_srcfile_path \
33740exclude_expsyms \
33741include_expsyms \
33742file_list_spec \
33743variables_saved_for_relink \
33744libname_spec \
33745library_names_spec \
33746soname_spec \
cristyfd9dcd42010-08-08 18:07:02 +000033747install_override_mode \
cristy3ed852e2009-09-05 21:47:34 +000033748finish_eval \
33749old_striplib \
33750striplib \
33751compiler_lib_search_dirs \
33752predep_objects \
33753postdep_objects \
33754predeps \
33755postdeps \
33756compiler_lib_search_path \
33757LD_CXX \
cristyfd9dcd42010-08-08 18:07:02 +000033758reload_flag_CXX \
cristy3ed852e2009-09-05 21:47:34 +000033759compiler_CXX \
33760lt_prog_compiler_no_builtin_flag_CXX \
33761lt_prog_compiler_wl_CXX \
33762lt_prog_compiler_pic_CXX \
33763lt_prog_compiler_static_CXX \
33764lt_cv_prog_compiler_c_o_CXX \
33765export_dynamic_flag_spec_CXX \
33766whole_archive_flag_spec_CXX \
33767compiler_needs_object_CXX \
33768with_gnu_ld_CXX \
33769allow_undefined_flag_CXX \
33770no_undefined_flag_CXX \
33771hardcode_libdir_flag_spec_CXX \
33772hardcode_libdir_flag_spec_ld_CXX \
33773hardcode_libdir_separator_CXX \
33774fix_srcfile_path_CXX \
33775exclude_expsyms_CXX \
33776include_expsyms_CXX \
33777file_list_spec_CXX \
33778compiler_lib_search_dirs_CXX \
33779predep_objects_CXX \
33780postdep_objects_CXX \
33781predeps_CXX \
33782postdeps_CXX \
33783compiler_lib_search_path_CXX; do
cristyfd9dcd42010-08-08 18:07:02 +000033784 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy3ed852e2009-09-05 21:47:34 +000033785 *[\\\\\\\`\\"\\\$]*)
cristyfd9dcd42010-08-08 18:07:02 +000033786 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033787 ;;
33788 *)
33789 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33790 ;;
33791 esac
33792done
33793
33794# Double-quote double-evaled strings.
33795for var in reload_cmds \
33796old_postinstall_cmds \
33797old_postuninstall_cmds \
33798old_archive_cmds \
33799extract_expsyms_cmds \
33800old_archive_from_new_cmds \
33801old_archive_from_expsyms_cmds \
33802archive_cmds \
33803archive_expsym_cmds \
33804module_cmds \
33805module_expsym_cmds \
33806export_symbols_cmds \
33807prelink_cmds \
33808postinstall_cmds \
33809postuninstall_cmds \
33810finish_cmds \
33811sys_lib_search_path_spec \
33812sys_lib_dlsearch_path_spec \
cristyfd9dcd42010-08-08 18:07:02 +000033813reload_cmds_CXX \
cristy3ed852e2009-09-05 21:47:34 +000033814old_archive_cmds_CXX \
33815old_archive_from_new_cmds_CXX \
33816old_archive_from_expsyms_cmds_CXX \
33817archive_cmds_CXX \
33818archive_expsym_cmds_CXX \
33819module_cmds_CXX \
33820module_expsym_cmds_CXX \
33821export_symbols_cmds_CXX \
33822prelink_cmds_CXX; do
cristyfd9dcd42010-08-08 18:07:02 +000033823 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy3ed852e2009-09-05 21:47:34 +000033824 *[\\\\\\\`\\"\\\$]*)
cristyfd9dcd42010-08-08 18:07:02 +000033825 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033826 ;;
33827 *)
33828 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33829 ;;
33830 esac
33831done
33832
cristy3ed852e2009-09-05 21:47:34 +000033833ac_aux_dir='$ac_aux_dir'
33834xsi_shell='$xsi_shell'
33835lt_shell_append='$lt_shell_append'
33836
33837# See if we are running on zsh, and set the options which allow our
33838# commands through without removal of \ escapes INIT.
33839if test -n "\${ZSH_VERSION+set}" ; then
33840 setopt NO_GLOB_SUBST
33841fi
33842
33843
33844 PACKAGE='$PACKAGE'
33845 VERSION='$VERSION'
33846 TIMESTAMP='$TIMESTAMP'
33847 RM='$RM'
33848 ofile='$ofile'
33849
33850
33851
33852
33853
33854
33855_ACEOF
33856
33857cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33858
33859# Handling of arguments.
33860for ac_config_target in $ac_config_targets
33861do
33862 case $ac_config_target in
33863 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33864 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33865 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33866 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33867 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33868 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33869 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000033870 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000033871 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33872 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33873 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33874 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33875 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33876 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33877 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33878 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33879 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33880 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33881 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33882 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33883 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33884 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33885 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33886 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33887 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33888 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33889 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33890 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33891 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33892 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33893 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33894 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33895 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33896 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33897 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33898 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33899 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33900 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33901 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33902 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33903 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
33904 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33905 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33906 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33907 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33908 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33909 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33910 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33911 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33912 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33913
cristyfd9dcd42010-08-08 18:07:02 +000033914 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033915 esac
33916done
33917
33918
33919# If the user did not use the arguments to specify the items to instantiate,
33920# then the envvar interface is used. Set only those that are not.
33921# We use the long form for the default assignment because of an extremely
33922# bizarre bug on SunOS 4.1.3.
33923if $ac_need_defaults; then
33924 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33925 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33926 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33927fi
33928
33929# Have a temporary directory for convenience. Make it in the build tree
33930# simply because there is no reason against having it here, and in addition,
33931# creating and moving files from /tmp can sometimes cause problems.
33932# Hook for its removal unless debugging.
33933# Note that there is a small window in which the directory will not be cleaned:
33934# after its creation but before its name has been assigned to `$tmp'.
33935$debug ||
33936{
33937 tmp=
33938 trap 'exit_status=$?
33939 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33940' 0
cristy8b350f62009-11-15 23:12:43 +000033941 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000033942}
33943# Create a (secure) tmp directory for tmp files.
33944
33945{
33946 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33947 test -n "$tmp" && test -d "$tmp"
33948} ||
33949{
33950 tmp=./conf$$-$RANDOM
33951 (umask 077 && mkdir "$tmp")
cristyfd9dcd42010-08-08 18:07:02 +000033952} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033953
33954# Set up the scripts for CONFIG_FILES section.
33955# No need to generate them if there are no CONFIG_FILES.
33956# This happens for instance with `./config.status config.h'.
33957if test -n "$CONFIG_FILES"; then
33958
33959
cristy8b350f62009-11-15 23:12:43 +000033960ac_cr=`echo X | tr X '\015'`
33961# On cygwin, bash can eat \r inside `` if the user requested igncr.
33962# But we know of no other shell where ac_cr would be empty at this
33963# point, so we can use a bashism as a fallback.
33964if test "x$ac_cr" = x; then
33965 eval ac_cr=\$\'\\r\'
33966fi
cristy3ed852e2009-09-05 21:47:34 +000033967ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33968if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristyfd9dcd42010-08-08 18:07:02 +000033969 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000033970else
33971 ac_cs_awk_cr=$ac_cr
33972fi
33973
33974echo 'BEGIN {' >"$tmp/subs1.awk" &&
33975_ACEOF
33976
33977
33978{
33979 echo "cat >conf$$subs.awk <<_ACEOF" &&
33980 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33981 echo "_ACEOF"
33982} >conf$$subs.sh ||
cristyfd9dcd42010-08-08 18:07:02 +000033983 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33984ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000033985ac_delim='%!_!# '
33986for ac_last_try in false false false false false :; do
33987 . ./conf$$subs.sh ||
cristyfd9dcd42010-08-08 18:07:02 +000033988 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033989
33990 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33991 if test $ac_delim_n = $ac_delim_num; then
33992 break
33993 elif $ac_last_try; then
cristyfd9dcd42010-08-08 18:07:02 +000033994 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033995 else
33996 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33997 fi
33998done
33999rm -f conf$$subs.sh
34000
34001cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34002cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34003_ACEOF
34004sed -n '
34005h
34006s/^/S["/; s/!.*/"]=/
34007p
34008g
34009s/^[^!]*!//
34010:repl
34011t repl
34012s/'"$ac_delim"'$//
34013t delim
34014:nl
34015h
cristycd4c5312009-11-22 01:19:08 +000034016s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034017t more1
34018s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34019p
34020n
34021b repl
34022:more1
34023s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34024p
34025g
34026s/.\{148\}//
34027t nl
34028:delim
34029h
cristycd4c5312009-11-22 01:19:08 +000034030s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034031t more2
34032s/["\\]/\\&/g; s/^/"/; s/$/"/
34033p
34034b
34035:more2
34036s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34037p
34038g
34039s/.\{148\}//
34040t delim
34041' <conf$$subs.awk | sed '
34042/^[^""]/{
34043 N
34044 s/\n//
34045}
34046' >>$CONFIG_STATUS || ac_write_fail=1
34047rm -f conf$$subs.awk
34048cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34049_ACAWK
34050cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34051 for (key in S) S_is_set[key] = 1
34052 FS = ""
34053
34054}
34055{
34056 line = $ 0
34057 nfields = split(line, field, "@")
34058 substed = 0
34059 len = length(field[1])
34060 for (i = 2; i < nfields; i++) {
34061 key = field[i]
34062 keylen = length(key)
34063 if (S_is_set[key]) {
34064 value = S[key]
34065 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34066 len += length(value) + length(field[++i])
34067 substed = 1
34068 } else
34069 len += 1 + keylen
34070 }
34071
34072 print line
34073}
34074
34075_ACAWK
34076_ACEOF
34077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34078if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34079 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34080else
34081 cat
34082fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristyfd9dcd42010-08-08 18:07:02 +000034083 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034084_ACEOF
34085
cristyfd9dcd42010-08-08 18:07:02 +000034086# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34087# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000034088# trailing colons and then remove the whole line if VPATH becomes empty
34089# (actually we leave an empty line to preserve line numbers).
34090if test "x$srcdir" = x.; then
cristyfd9dcd42010-08-08 18:07:02 +000034091 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
34092h
34093s///
34094s/^/:/
34095s/[ ]*$/:/
34096s/:\$(srcdir):/:/g
34097s/:\${srcdir}:/:/g
34098s/:@srcdir@:/:/g
34099s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000034100s/:*$//
cristyfd9dcd42010-08-08 18:07:02 +000034101x
34102s/\(=[ ]*\).*/\1/
34103G
34104s/\n//
cristy3ed852e2009-09-05 21:47:34 +000034105s/^[^=]*=[ ]*$//
34106}'
34107fi
34108
34109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34110fi # test -n "$CONFIG_FILES"
34111
34112# Set up the scripts for CONFIG_HEADERS section.
34113# No need to generate them if there are no CONFIG_HEADERS.
34114# This happens for instance with `./config.status Makefile'.
34115if test -n "$CONFIG_HEADERS"; then
34116cat >"$tmp/defines.awk" <<\_ACAWK ||
34117BEGIN {
34118_ACEOF
34119
34120# Transform confdefs.h into an awk script `defines.awk', embedded as
34121# here-document in config.status, that substitutes the proper values into
34122# config.h.in to produce config.h.
34123
34124# Create a delimiter string that does not exist in confdefs.h, to ease
34125# handling of long lines.
34126ac_delim='%!_!# '
34127for ac_last_try in false false :; do
34128 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34129 if test -z "$ac_t"; then
34130 break
34131 elif $ac_last_try; then
cristyfd9dcd42010-08-08 18:07:02 +000034132 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034133 else
34134 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34135 fi
34136done
34137
34138# For the awk script, D is an array of macro values keyed by name,
34139# likewise P contains macro parameters if any. Preserve backslash
34140# newline sequences.
34141
34142ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34143sed -n '
34144s/.\{148\}/&'"$ac_delim"'/g
34145t rset
34146:rset
34147s/^[ ]*#[ ]*define[ ][ ]*/ /
34148t def
34149d
34150:def
34151s/\\$//
34152t bsnl
34153s/["\\]/\\&/g
34154s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34155D["\1"]=" \3"/p
34156s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34157d
34158:bsnl
34159s/["\\]/\\&/g
34160s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34161D["\1"]=" \3\\\\\\n"\\/p
34162t cont
34163s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34164t cont
34165d
34166:cont
34167n
34168s/.\{148\}/&'"$ac_delim"'/g
34169t clear
34170:clear
34171s/\\$//
34172t bsnlc
34173s/["\\]/\\&/g; s/^/"/; s/$/"/p
34174d
34175:bsnlc
34176s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34177b cont
34178' <confdefs.h | sed '
34179s/'"$ac_delim"'/"\\\
34180"/g' >>$CONFIG_STATUS || ac_write_fail=1
34181
34182cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34183 for (key in D) D_is_set[key] = 1
34184 FS = ""
34185}
34186/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34187 line = \$ 0
34188 split(line, arg, " ")
34189 if (arg[1] == "#") {
34190 defundef = arg[2]
34191 mac1 = arg[3]
34192 } else {
34193 defundef = substr(arg[1], 2)
34194 mac1 = arg[2]
34195 }
34196 split(mac1, mac2, "(") #)
34197 macro = mac2[1]
34198 prefix = substr(line, 1, index(line, defundef) - 1)
34199 if (D_is_set[macro]) {
34200 # Preserve the white space surrounding the "#".
34201 print prefix "define", macro P[macro] D[macro]
34202 next
34203 } else {
34204 # Replace #undef with comments. This is necessary, for example,
34205 # in the case of _POSIX_SOURCE, which is predefined and required
34206 # on some systems where configure will not decide to define it.
34207 if (defundef == "undef") {
34208 print "/*", prefix defundef, macro, "*/"
34209 next
34210 }
34211 }
34212}
34213{ print }
34214_ACAWK
34215_ACEOF
34216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristyfd9dcd42010-08-08 18:07:02 +000034217 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034218fi # test -n "$CONFIG_HEADERS"
34219
34220
34221eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34222shift
34223for ac_tag
34224do
34225 case $ac_tag in
34226 :[FHLC]) ac_mode=$ac_tag; continue;;
34227 esac
34228 case $ac_mode$ac_tag in
34229 :[FHL]*:*);;
cristyfd9dcd42010-08-08 18:07:02 +000034230 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034231 :[FH]-) ac_tag=-:-;;
34232 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34233 esac
34234 ac_save_IFS=$IFS
34235 IFS=:
34236 set x $ac_tag
34237 IFS=$ac_save_IFS
34238 shift
34239 ac_file=$1
34240 shift
34241
34242 case $ac_mode in
34243 :L) ac_source=$1;;
34244 :[FH])
34245 ac_file_inputs=
34246 for ac_f
34247 do
34248 case $ac_f in
34249 -) ac_f="$tmp/stdin";;
34250 *) # Look for the file first in the build tree, then in the source tree
34251 # (if the path is not absolute). The absolute path cannot be DOS-style,
34252 # because $ac_f cannot contain `:'.
34253 test -f "$ac_f" ||
34254 case $ac_f in
34255 [\\/$]*) false;;
34256 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34257 esac ||
cristyfd9dcd42010-08-08 18:07:02 +000034258 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034259 esac
34260 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000034261 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000034262 done
34263
34264 # Let's still pretend it is `configure' which instantiates (i.e., don't
34265 # use $as_me), people would be surprised to read:
34266 # /* config.h. Generated by config.status. */
34267 configure_input='Generated from '`
34268 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34269 `' by configure.'
34270 if test x"$ac_file" != x-; then
34271 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000034272 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034273$as_echo "$as_me: creating $ac_file" >&6;}
34274 fi
34275 # Neutralize special characters interpreted by sed in replacement strings.
34276 case $configure_input in #(
34277 *\&* | *\|* | *\\* )
34278 ac_sed_conf_input=`$as_echo "$configure_input" |
34279 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34280 *) ac_sed_conf_input=$configure_input;;
34281 esac
34282
34283 case $ac_tag in
34284 *:-:* | *:-) cat >"$tmp/stdin" \
cristyfd9dcd42010-08-08 18:07:02 +000034285 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000034286 esac
34287 ;;
34288 esac
34289
34290 ac_dir=`$as_dirname -- "$ac_file" ||
34291$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34292 X"$ac_file" : 'X\(//\)[^/]' \| \
34293 X"$ac_file" : 'X\(//\)$' \| \
34294 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34295$as_echo X"$ac_file" |
34296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34297 s//\1/
34298 q
34299 }
34300 /^X\(\/\/\)[^/].*/{
34301 s//\1/
34302 q
34303 }
34304 /^X\(\/\/\)$/{
34305 s//\1/
34306 q
34307 }
34308 /^X\(\/\).*/{
34309 s//\1/
34310 q
34311 }
34312 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034313 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034314 ac_builddir=.
34315
34316case "$ac_dir" in
34317.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34318*)
34319 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34320 # A ".." for each directory in $ac_dir_suffix.
34321 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34322 case $ac_top_builddir_sub in
34323 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34324 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34325 esac ;;
34326esac
34327ac_abs_top_builddir=$ac_pwd
34328ac_abs_builddir=$ac_pwd$ac_dir_suffix
34329# for backward compatibility:
34330ac_top_builddir=$ac_top_build_prefix
34331
34332case $srcdir in
34333 .) # We are building in place.
34334 ac_srcdir=.
34335 ac_top_srcdir=$ac_top_builddir_sub
34336 ac_abs_top_srcdir=$ac_pwd ;;
34337 [\\/]* | ?:[\\/]* ) # Absolute name.
34338 ac_srcdir=$srcdir$ac_dir_suffix;
34339 ac_top_srcdir=$srcdir
34340 ac_abs_top_srcdir=$srcdir ;;
34341 *) # Relative name.
34342 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34343 ac_top_srcdir=$ac_top_build_prefix$srcdir
34344 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34345esac
34346ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34347
34348
34349 case $ac_mode in
34350 :F)
34351 #
34352 # CONFIG_FILE
34353 #
34354
34355 case $INSTALL in
34356 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34357 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34358 esac
34359 ac_MKDIR_P=$MKDIR_P
34360 case $MKDIR_P in
34361 [\\/$]* | ?:[\\/]* ) ;;
34362 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34363 esac
34364_ACEOF
34365
34366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34367# If the template does not know about datarootdir, expand it.
34368# FIXME: This hack should be removed a few years after 2.60.
34369ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000034370ac_sed_dataroot='
34371/datarootdir/ {
34372 p
34373 q
34374}
34375/@datadir@/p
34376/@docdir@/p
34377/@infodir@/p
34378/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000034379/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000034380case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34381*datarootdir*) ac_datarootdir_seen=yes;;
34382*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000034383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000034384$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34385_ACEOF
34386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34387 ac_datarootdir_hack='
34388 s&@datadir@&$datadir&g
34389 s&@docdir@&$docdir&g
34390 s&@infodir@&$infodir&g
34391 s&@localedir@&$localedir&g
34392 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000034393 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000034394esac
34395_ACEOF
34396
34397# Neutralize VPATH when `$srcdir' = `.'.
34398# Shell code in configure.ac might set extrasub.
34399# FIXME: do we really want to maintain this feature?
34400cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34401ac_sed_extra="$ac_vpsub
34402$extrasub
34403_ACEOF
34404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34405:t
34406/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34407s|@configure_input@|$ac_sed_conf_input|;t t
34408s&@top_builddir@&$ac_top_builddir_sub&;t t
34409s&@top_build_prefix@&$ac_top_build_prefix&;t t
34410s&@srcdir@&$ac_srcdir&;t t
34411s&@abs_srcdir@&$ac_abs_srcdir&;t t
34412s&@top_srcdir@&$ac_top_srcdir&;t t
34413s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34414s&@builddir@&$ac_builddir&;t t
34415s&@abs_builddir@&$ac_abs_builddir&;t t
34416s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34417s&@INSTALL@&$ac_INSTALL&;t t
34418s&@MKDIR_P@&$ac_MKDIR_P&;t t
34419$ac_datarootdir_hack
34420"
34421eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristyfd9dcd42010-08-08 18:07:02 +000034422 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034423
34424test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34425 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34426 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000034427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristyfd9dcd42010-08-08 18:07:02 +000034428which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000034429$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristyfd9dcd42010-08-08 18:07:02 +000034430which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000034431
34432 rm -f "$tmp/stdin"
34433 case $ac_file in
34434 -) cat "$tmp/out" && rm -f "$tmp/out";;
34435 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34436 esac \
cristyfd9dcd42010-08-08 18:07:02 +000034437 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034438 ;;
34439 :H)
34440 #
34441 # CONFIG_HEADER
34442 #
34443 if test x"$ac_file" != x-; then
34444 {
34445 $as_echo "/* $configure_input */" \
34446 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34447 } >"$tmp/config.h" \
cristyfd9dcd42010-08-08 18:07:02 +000034448 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034449 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000034450 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034451$as_echo "$as_me: $ac_file is unchanged" >&6;}
34452 else
34453 rm -f "$ac_file"
34454 mv "$tmp/config.h" "$ac_file" \
cristyfd9dcd42010-08-08 18:07:02 +000034455 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034456 fi
34457 else
34458 $as_echo "/* $configure_input */" \
34459 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristyfd9dcd42010-08-08 18:07:02 +000034460 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034461 fi
34462# Compute "$ac_file"'s index in $config_headers.
34463_am_arg="$ac_file"
34464_am_stamp_count=1
34465for _am_header in $config_headers :; do
34466 case $_am_header in
34467 $_am_arg | $_am_arg:* )
34468 break ;;
34469 * )
34470 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34471 esac
34472done
34473echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34474$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34475 X"$_am_arg" : 'X\(//\)[^/]' \| \
34476 X"$_am_arg" : 'X\(//\)$' \| \
34477 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34478$as_echo X"$_am_arg" |
34479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34480 s//\1/
34481 q
34482 }
34483 /^X\(\/\/\)[^/].*/{
34484 s//\1/
34485 q
34486 }
34487 /^X\(\/\/\)$/{
34488 s//\1/
34489 q
34490 }
34491 /^X\(\/\).*/{
34492 s//\1/
34493 q
34494 }
34495 s/.*/./; q'`/stamp-h$_am_stamp_count
34496 ;;
34497
cristy8b350f62009-11-15 23:12:43 +000034498 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000034499$as_echo "$as_me: executing $ac_file commands" >&6;}
34500 ;;
34501 esac
34502
34503
34504 case $ac_file$ac_mode in
34505 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34506ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34507ac_prefix_conf_PKG=`echo MagickCore`
34508ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34509ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34510ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34511if test ".$ac_prefix_conf_INP" = "."; then
34512 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34513 case "$ac_file" in
34514 *.h) ac_prefix_conf_INP=$ac_file ;;
34515 *)
34516 esac
34517 test ".$ac_prefix_conf_INP" != "." && break
34518 done
34519fi
34520if test ".$ac_prefix_conf_INP" = "."; then
34521 case "$ac_prefix_conf_OUT" in
34522 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34523 ;;
34524 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34525 ;;
34526 *) ac_prefix_conf_INP=config.h
34527 ;;
34528 esac
34529fi
34530if test -z "$ac_prefix_conf_PKG" ; then
cristyfd9dcd42010-08-08 18:07:02 +000034531 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034532else
34533 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34534 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34535 fi fi
cristy8b350f62009-11-15 23:12:43 +000034536 { $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 +000034537$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34538 if test -f $ac_prefix_conf_INP ; then
34539 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34540 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034541 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34542 echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034543 echo "#endif/" >>conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034544 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34545 echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034546 echo "#endif/" >> conftest.prefix
34547 # now executing _script on _DEF input to create _OUT output file
34548 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34549 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34550 echo ' ' >>$tmp/pconfig.h
34551 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34552
34553 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34554 echo ' ' >>$tmp/pconfig.h
34555 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34556 echo "#endif" >>$tmp/pconfig.h
34557 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034558 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034559$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34560 else
34561 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34562$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34563 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34564 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34565 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34566$as_echo X"$ac_prefix_conf_OUT" |
34567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34568 s//\1/
34569 q
34570 }
34571 /^X\(\/\/\)[^/].*/{
34572 s//\1/
34573 q
34574 }
34575 /^X\(\/\/\)$/{
34576 s//\1/
34577 q
34578 }
34579 /^X\(\/\).*/{
34580 s//\1/
34581 q
34582 }
34583 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034584 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034585 rm -f "$ac_prefix_conf_OUT"
34586 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34587 fi
34588 cp conftest.prefix _configs.sed
34589 else
cristyfd9dcd42010-08-08 18:07:02 +000034590 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 +000034591 fi
34592 rm -f conftest.*
34593fi
34594 ;;
34595 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34596 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34597 # are listed without --file. Let's play safe and only enable the eval
34598 # if we detect the quoting.
34599 case $CONFIG_FILES in
34600 *\'*) eval set x "$CONFIG_FILES" ;;
34601 *) set x $CONFIG_FILES ;;
34602 esac
34603 shift
34604 for mf
34605 do
34606 # Strip MF so we end up with the name of the file.
34607 mf=`echo "$mf" | sed -e 's/:.*$//'`
34608 # Check whether this is an Automake generated Makefile or not.
34609 # We used to match only the files named `Makefile.in', but
34610 # some people rename them; so instead we look at the file content.
34611 # Grep'ing the first line is not enough: some people post-process
34612 # each Makefile.in and add a new line on top of each file to say so.
34613 # Grep'ing the whole file is not good either: AIX grep has a line
34614 # limit of 2048, but all sed's we know have understand at least 4000.
34615 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34616 dirpart=`$as_dirname -- "$mf" ||
34617$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34618 X"$mf" : 'X\(//\)[^/]' \| \
34619 X"$mf" : 'X\(//\)$' \| \
34620 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34621$as_echo X"$mf" |
34622 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34623 s//\1/
34624 q
34625 }
34626 /^X\(\/\/\)[^/].*/{
34627 s//\1/
34628 q
34629 }
34630 /^X\(\/\/\)$/{
34631 s//\1/
34632 q
34633 }
34634 /^X\(\/\).*/{
34635 s//\1/
34636 q
34637 }
34638 s/.*/./; q'`
34639 else
34640 continue
34641 fi
34642 # Extract the definition of DEPDIR, am__include, and am__quote
34643 # from the Makefile without running `make'.
34644 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34645 test -z "$DEPDIR" && continue
34646 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34647 test -z "am__include" && continue
34648 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34649 # When using ansi2knr, U may be empty or an underscore; expand it
34650 U=`sed -n 's/^U = //p' < "$mf"`
34651 # Find all dependency output files, they are included files with
34652 # $(DEPDIR) in their names. We invoke sed twice because it is the
34653 # simplest approach to changing $(DEPDIR) to its actual value in the
34654 # expansion.
34655 for file in `sed -n "
34656 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34657 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34658 # Make sure the directory exists.
34659 test -f "$dirpart/$file" && continue
34660 fdir=`$as_dirname -- "$file" ||
34661$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34662 X"$file" : 'X\(//\)[^/]' \| \
34663 X"$file" : 'X\(//\)$' \| \
34664 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34665$as_echo X"$file" |
34666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34667 s//\1/
34668 q
34669 }
34670 /^X\(\/\/\)[^/].*/{
34671 s//\1/
34672 q
34673 }
34674 /^X\(\/\/\)$/{
34675 s//\1/
34676 q
34677 }
34678 /^X\(\/\).*/{
34679 s//\1/
34680 q
34681 }
34682 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034683 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034684 # echo "creating $dirpart/$file"
34685 echo '# dummy' > "$dirpart/$file"
34686 done
34687 done
34688}
34689 ;;
34690 "libtool":C)
34691
34692 # See if we are running on zsh, and set the options which allow our
34693 # commands through without removal of \ escapes.
34694 if test -n "${ZSH_VERSION+set}" ; then
34695 setopt NO_GLOB_SUBST
34696 fi
34697
34698 cfgfile="${ofile}T"
34699 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34700 $RM "$cfgfile"
34701
34702 cat <<_LT_EOF >> "$cfgfile"
34703#! $SHELL
34704
34705# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34706# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34707# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34708# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34709#
34710# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristyfd9dcd42010-08-08 18:07:02 +000034711# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
34712# Inc.
cristy3ed852e2009-09-05 21:47:34 +000034713# Written by Gordon Matzigkeit, 1996
34714#
34715# This file is part of GNU Libtool.
34716#
34717# GNU Libtool is free software; you can redistribute it and/or
34718# modify it under the terms of the GNU General Public License as
34719# published by the Free Software Foundation; either version 2 of
34720# the License, or (at your option) any later version.
34721#
34722# As a special exception to the GNU General Public License,
34723# if you distribute this file as part of a program or library that
34724# is built using GNU Libtool, you may include this file under the
34725# same distribution terms that you use for the rest of that program.
34726#
34727# GNU Libtool is distributed in the hope that it will be useful,
34728# but WITHOUT ANY WARRANTY; without even the implied warranty of
34729# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34730# GNU General Public License for more details.
34731#
34732# You should have received a copy of the GNU General Public License
34733# along with GNU Libtool; see the file COPYING. If not, a copy
34734# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34735# obtained by writing to the Free Software Foundation, Inc.,
34736# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34737
34738
34739# The names of the tagged configurations supported by this script.
34740available_tags="CXX "
34741
34742# ### BEGIN LIBTOOL CONFIG
34743
34744# A sed program that does not truncate output.
34745SED=$lt_SED
34746
34747# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34748Xsed="\$SED -e 1s/^X//"
34749
34750# A grep program that handles long lines.
34751GREP=$lt_GREP
34752
34753# An ERE matcher.
34754EGREP=$lt_EGREP
34755
34756# A literal string matcher.
34757FGREP=$lt_FGREP
34758
cristyfd9dcd42010-08-08 18:07:02 +000034759# Shell to use when invoking shell scripts.
34760SHELL=$lt_SHELL
34761
34762# An echo program that protects backslashes.
34763ECHO=$lt_ECHO
34764
cristy3ed852e2009-09-05 21:47:34 +000034765# Which release of libtool.m4 was used?
34766macro_version=$macro_version
34767macro_revision=$macro_revision
34768
34769# Assembler program.
cristyfd9dcd42010-08-08 18:07:02 +000034770AS=$lt_AS
cristy3ed852e2009-09-05 21:47:34 +000034771
34772# DLL creation program.
cristyfd9dcd42010-08-08 18:07:02 +000034773DLLTOOL=$lt_DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000034774
34775# Object dumper program.
cristyfd9dcd42010-08-08 18:07:02 +000034776OBJDUMP=$lt_OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000034777
34778# Whether or not to build shared libraries.
34779build_libtool_libs=$enable_shared
34780
34781# Whether or not to build static libraries.
34782build_old_libs=$enable_static
34783
34784# What type of objects to build.
34785pic_mode=$pic_mode
34786
34787# Whether or not to optimize for fast installation.
34788fast_install=$enable_fast_install
34789
34790# The host system.
34791host_alias=$host_alias
34792host=$host
34793host_os=$host_os
34794
34795# The build system.
34796build_alias=$build_alias
34797build=$build
34798build_os=$build_os
34799
34800# A BSD- or MS-compatible name lister.
34801NM=$lt_NM
34802
34803# Whether we need soft or hard links.
34804LN_S=$lt_LN_S
34805
34806# What is the maximum length of a command?
34807max_cmd_len=$max_cmd_len
34808
34809# Object file suffix (normally "o").
34810objext=$ac_objext
34811
34812# Executable file suffix (normally "").
34813exeext=$exeext
34814
34815# whether the shell understands "unset".
34816lt_unset=$lt_unset
34817
34818# turn spaces into newlines.
34819SP2NL=$lt_lt_SP2NL
34820
34821# turn newlines into spaces.
34822NL2SP=$lt_lt_NL2SP
34823
cristy3ed852e2009-09-05 21:47:34 +000034824# Method to check whether dependent libraries are shared objects.
34825deplibs_check_method=$lt_deplibs_check_method
34826
34827# Command to use when deplibs_check_method == "file_magic".
34828file_magic_cmd=$lt_file_magic_cmd
34829
34830# The archiver.
34831AR=$lt_AR
34832AR_FLAGS=$lt_AR_FLAGS
34833
34834# A symbol stripping program.
34835STRIP=$lt_STRIP
34836
34837# Commands used to install an old-style archive.
34838RANLIB=$lt_RANLIB
34839old_postinstall_cmds=$lt_old_postinstall_cmds
34840old_postuninstall_cmds=$lt_old_postuninstall_cmds
34841
cristyfd9dcd42010-08-08 18:07:02 +000034842# Whether to use a lock for old archive extraction.
34843lock_old_archive_extraction=$lock_old_archive_extraction
34844
cristy3ed852e2009-09-05 21:47:34 +000034845# A C compiler.
34846LTCC=$lt_CC
34847
34848# LTCC compiler flags.
34849LTCFLAGS=$lt_CFLAGS
34850
34851# Take the output of nm and produce a listing of raw symbols and C names.
34852global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34853
34854# Transform the output of nm in a proper C declaration.
34855global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34856
34857# Transform the output of nm in a C name address pair.
34858global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34859
34860# Transform the output of nm in a C name address pair when lib prefix is needed.
34861global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34862
34863# The name of the directory that contains temporary libtool files.
34864objdir=$objdir
34865
cristy3ed852e2009-09-05 21:47:34 +000034866# Used to examine libraries when file_magic_cmd begins with "file".
34867MAGIC_CMD=$MAGIC_CMD
34868
34869# Must we lock files when doing compilation?
34870need_locks=$lt_need_locks
34871
34872# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34873DSYMUTIL=$lt_DSYMUTIL
34874
34875# Tool to change global to local symbols on Mac OS X.
34876NMEDIT=$lt_NMEDIT
34877
34878# Tool to manipulate fat objects and archives on Mac OS X.
34879LIPO=$lt_LIPO
34880
34881# ldd/readelf like tool for Mach-O binaries on Mac OS X.
34882OTOOL=$lt_OTOOL
34883
34884# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34885OTOOL64=$lt_OTOOL64
34886
34887# Old archive suffix (normally "a").
34888libext=$libext
34889
34890# Shared library suffix (normally ".so").
34891shrext_cmds=$lt_shrext_cmds
34892
34893# The commands to extract the exported symbol list from a shared archive.
34894extract_expsyms_cmds=$lt_extract_expsyms_cmds
34895
34896# Variables whose values should be saved in libtool wrapper scripts and
34897# restored at link time.
34898variables_saved_for_relink=$lt_variables_saved_for_relink
34899
34900# Do we need the "lib" prefix for modules?
34901need_lib_prefix=$need_lib_prefix
34902
34903# Do we need a version for libraries?
34904need_version=$need_version
34905
34906# Library versioning type.
34907version_type=$version_type
34908
34909# Shared library runtime path variable.
34910runpath_var=$runpath_var
34911
34912# Shared library path variable.
34913shlibpath_var=$shlibpath_var
34914
34915# Is shlibpath searched before the hard-coded library search path?
34916shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34917
34918# Format of library name prefix.
34919libname_spec=$lt_libname_spec
34920
34921# List of archive names. First name is the real one, the rest are links.
34922# The last name is the one that the linker finds with -lNAME
34923library_names_spec=$lt_library_names_spec
34924
34925# The coded name of the library, if different from the real name.
34926soname_spec=$lt_soname_spec
34927
cristyfd9dcd42010-08-08 18:07:02 +000034928# Permission mode override for installation of shared libraries.
34929install_override_mode=$lt_install_override_mode
34930
cristy3ed852e2009-09-05 21:47:34 +000034931# Command to use after installation of a shared archive.
34932postinstall_cmds=$lt_postinstall_cmds
34933
34934# Command to use after uninstallation of a shared archive.
34935postuninstall_cmds=$lt_postuninstall_cmds
34936
34937# Commands used to finish a libtool library installation in a directory.
34938finish_cmds=$lt_finish_cmds
34939
34940# As "finish_cmds", except a single script fragment to be evaled but
34941# not shown.
34942finish_eval=$lt_finish_eval
34943
34944# Whether we should hardcode library paths into libraries.
34945hardcode_into_libs=$hardcode_into_libs
34946
34947# Compile-time system search path for libraries.
34948sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34949
34950# Run-time system search path for libraries.
34951sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34952
34953# Whether dlopen is supported.
34954dlopen_support=$enable_dlopen
34955
34956# Whether dlopen of programs is supported.
34957dlopen_self=$enable_dlopen_self
34958
34959# Whether dlopen of statically linked programs is supported.
34960dlopen_self_static=$enable_dlopen_self_static
34961
34962# Commands to strip libraries.
34963old_striplib=$lt_old_striplib
34964striplib=$lt_striplib
34965
34966
34967# The linker used to build libraries.
34968LD=$lt_LD
34969
cristyfd9dcd42010-08-08 18:07:02 +000034970# How to create reloadable object files.
34971reload_flag=$lt_reload_flag
34972reload_cmds=$lt_reload_cmds
34973
cristy3ed852e2009-09-05 21:47:34 +000034974# Commands used to build an old-style archive.
34975old_archive_cmds=$lt_old_archive_cmds
34976
34977# A language specific compiler.
34978CC=$lt_compiler
34979
34980# Is the compiler the GNU compiler?
34981with_gcc=$GCC
34982
34983# Compiler flag to turn off builtin functions.
34984no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34985
34986# How to pass a linker flag through the compiler.
34987wl=$lt_lt_prog_compiler_wl
34988
34989# Additional compiler flags for building library objects.
34990pic_flag=$lt_lt_prog_compiler_pic
34991
34992# Compiler flag to prevent dynamic linking.
34993link_static_flag=$lt_lt_prog_compiler_static
34994
34995# Does compiler simultaneously support -c and -o options?
34996compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34997
34998# Whether or not to add -lc for building shared libraries.
34999build_libtool_need_lc=$archive_cmds_need_lc
35000
35001# Whether or not to disallow shared libs when runtime libs are static.
35002allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35003
35004# Compiler flag to allow reflexive dlopens.
35005export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35006
35007# Compiler flag to generate shared objects directly from archives.
35008whole_archive_flag_spec=$lt_whole_archive_flag_spec
35009
35010# Whether the compiler copes with passing no objects directly.
35011compiler_needs_object=$lt_compiler_needs_object
35012
35013# Create an old-style archive from a shared archive.
35014old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35015
35016# Create a temporary old-style archive to link instead of a shared archive.
35017old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35018
35019# Commands used to build a shared archive.
35020archive_cmds=$lt_archive_cmds
35021archive_expsym_cmds=$lt_archive_expsym_cmds
35022
35023# Commands used to build a loadable module if different from building
35024# a shared archive.
35025module_cmds=$lt_module_cmds
35026module_expsym_cmds=$lt_module_expsym_cmds
35027
35028# Whether we are building with GNU ld or not.
35029with_gnu_ld=$lt_with_gnu_ld
35030
35031# Flag that allows shared libraries with undefined symbols to be built.
35032allow_undefined_flag=$lt_allow_undefined_flag
35033
35034# Flag that enforces no undefined symbols.
35035no_undefined_flag=$lt_no_undefined_flag
35036
35037# Flag to hardcode \$libdir into a binary during linking.
35038# This must work even if \$libdir does not exist
35039hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35040
35041# If ld is used when linking, flag to hardcode \$libdir into a binary
35042# during linking. This must work even if \$libdir does not exist.
35043hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35044
35045# Whether we need a single "-rpath" flag with a separated argument.
35046hardcode_libdir_separator=$lt_hardcode_libdir_separator
35047
35048# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35049# DIR into the resulting binary.
35050hardcode_direct=$hardcode_direct
35051
35052# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35053# DIR into the resulting binary and the resulting library dependency is
35054# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35055# library is relocated.
35056hardcode_direct_absolute=$hardcode_direct_absolute
35057
35058# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35059# into the resulting binary.
35060hardcode_minus_L=$hardcode_minus_L
35061
35062# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35063# into the resulting binary.
35064hardcode_shlibpath_var=$hardcode_shlibpath_var
35065
35066# Set to "yes" if building a shared library automatically hardcodes DIR
35067# into the library and all subsequent libraries and executables linked
35068# against it.
35069hardcode_automatic=$hardcode_automatic
35070
35071# Set to yes if linker adds runtime paths of dependent libraries
35072# to runtime path list.
35073inherit_rpath=$inherit_rpath
35074
35075# Whether libtool must link a program against all its dependency libraries.
35076link_all_deplibs=$link_all_deplibs
35077
35078# Fix the shell variable \$srcfile for the compiler.
35079fix_srcfile_path=$lt_fix_srcfile_path
35080
35081# Set to "yes" if exported symbols are required.
35082always_export_symbols=$always_export_symbols
35083
35084# The commands to list exported symbols.
35085export_symbols_cmds=$lt_export_symbols_cmds
35086
35087# Symbols that should not be listed in the preloaded symbols.
35088exclude_expsyms=$lt_exclude_expsyms
35089
35090# Symbols that must always be exported.
35091include_expsyms=$lt_include_expsyms
35092
35093# Commands necessary for linking programs (against libraries) with templates.
35094prelink_cmds=$lt_prelink_cmds
35095
35096# Specify filename containing input files.
35097file_list_spec=$lt_file_list_spec
35098
35099# How to hardcode a shared library path into an executable.
35100hardcode_action=$hardcode_action
35101
35102# The directories searched by this compiler when creating a shared library.
35103compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35104
35105# Dependencies to place before and after the objects being linked to
35106# create a shared library.
35107predep_objects=$lt_predep_objects
35108postdep_objects=$lt_postdep_objects
35109predeps=$lt_predeps
35110postdeps=$lt_postdeps
35111
35112# The library search path used internally by the compiler when linking
35113# a shared library.
35114compiler_lib_search_path=$lt_compiler_lib_search_path
35115
35116# ### END LIBTOOL CONFIG
35117
35118_LT_EOF
35119
35120 case $host_os in
35121 aix3*)
35122 cat <<\_LT_EOF >> "$cfgfile"
35123# AIX sometimes has problems with the GCC collect2 program. For some
35124# reason, if we set the COLLECT_NAMES environment variable, the problems
35125# vanish in a puff of smoke.
35126if test "X${COLLECT_NAMES+set}" != Xset; then
35127 COLLECT_NAMES=
35128 export COLLECT_NAMES
35129fi
35130_LT_EOF
35131 ;;
35132 esac
35133
35134
35135ltmain="$ac_aux_dir/ltmain.sh"
35136
35137
35138 # We use sed instead of cat because bash on DJGPP gets confused if
35139 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35140 # text mode, it properly converts lines to CR/LF. This bash problem
35141 # is reportedly fixed, but why not run on old versions too?
35142 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35143 || (rm -f "$cfgfile"; exit 1)
35144
35145 case $xsi_shell in
35146 yes)
35147 cat << \_LT_EOF >> "$cfgfile"
35148
35149# func_dirname file append nondir_replacement
35150# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35151# otherwise set result to NONDIR_REPLACEMENT.
35152func_dirname ()
35153{
35154 case ${1} in
35155 */*) func_dirname_result="${1%/*}${2}" ;;
35156 * ) func_dirname_result="${3}" ;;
35157 esac
35158}
35159
35160# func_basename file
35161func_basename ()
35162{
35163 func_basename_result="${1##*/}"
35164}
35165
35166# func_dirname_and_basename file append nondir_replacement
35167# perform func_basename and func_dirname in a single function
35168# call:
35169# dirname: Compute the dirname of FILE. If nonempty,
35170# add APPEND to the result, otherwise set result
35171# to NONDIR_REPLACEMENT.
35172# value returned in "$func_dirname_result"
35173# basename: Compute filename of FILE.
35174# value retuned in "$func_basename_result"
35175# Implementation must be kept synchronized with func_dirname
35176# and func_basename. For efficiency, we do not delegate to
35177# those functions but instead duplicate the functionality here.
35178func_dirname_and_basename ()
35179{
35180 case ${1} in
35181 */*) func_dirname_result="${1%/*}${2}" ;;
35182 * ) func_dirname_result="${3}" ;;
35183 esac
35184 func_basename_result="${1##*/}"
35185}
35186
35187# func_stripname prefix suffix name
35188# strip PREFIX and SUFFIX off of NAME.
35189# PREFIX and SUFFIX must not contain globbing or regex special
35190# characters, hashes, percent signs, but SUFFIX may contain a leading
35191# dot (in which case that matches only a dot).
35192func_stripname ()
35193{
35194 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35195 # positional parameters, so assign one to ordinary parameter first.
35196 func_stripname_result=${3}
35197 func_stripname_result=${func_stripname_result#"${1}"}
35198 func_stripname_result=${func_stripname_result%"${2}"}
35199}
35200
35201# func_opt_split
35202func_opt_split ()
35203{
35204 func_opt_split_opt=${1%%=*}
35205 func_opt_split_arg=${1#*=}
35206}
35207
35208# func_lo2o object
35209func_lo2o ()
35210{
35211 case ${1} in
35212 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35213 *) func_lo2o_result=${1} ;;
35214 esac
35215}
35216
35217# func_xform libobj-or-source
35218func_xform ()
35219{
35220 func_xform_result=${1%.*}.lo
35221}
35222
35223# func_arith arithmetic-term...
35224func_arith ()
35225{
35226 func_arith_result=$(( $* ))
35227}
35228
35229# func_len string
35230# STRING may not start with a hyphen.
35231func_len ()
35232{
35233 func_len_result=${#1}
35234}
35235
35236_LT_EOF
35237 ;;
35238 *) # Bourne compatible functions.
35239 cat << \_LT_EOF >> "$cfgfile"
35240
35241# func_dirname file append nondir_replacement
35242# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35243# otherwise set result to NONDIR_REPLACEMENT.
35244func_dirname ()
35245{
35246 # Extract subdirectory from the argument.
cristyfd9dcd42010-08-08 18:07:02 +000035247 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000035248 if test "X$func_dirname_result" = "X${1}"; then
35249 func_dirname_result="${3}"
35250 else
35251 func_dirname_result="$func_dirname_result${2}"
35252 fi
35253}
35254
35255# func_basename file
35256func_basename ()
35257{
cristyfd9dcd42010-08-08 18:07:02 +000035258 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000035259}
35260
35261
35262# func_stripname prefix suffix name
35263# strip PREFIX and SUFFIX off of NAME.
35264# PREFIX and SUFFIX must not contain globbing or regex special
35265# characters, hashes, percent signs, but SUFFIX may contain a leading
35266# dot (in which case that matches only a dot).
35267# func_strip_suffix prefix name
35268func_stripname ()
35269{
35270 case ${2} in
cristyfd9dcd42010-08-08 18:07:02 +000035271 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
35272 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000035273 esac
35274}
35275
35276# sed scripts:
35277my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35278my_sed_long_arg='1s/^-[^=]*=//'
35279
35280# func_opt_split
35281func_opt_split ()
35282{
cristyfd9dcd42010-08-08 18:07:02 +000035283 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
35284 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000035285}
35286
35287# func_lo2o object
35288func_lo2o ()
35289{
cristyfd9dcd42010-08-08 18:07:02 +000035290 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000035291}
35292
35293# func_xform libobj-or-source
35294func_xform ()
35295{
cristyfd9dcd42010-08-08 18:07:02 +000035296 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000035297}
35298
35299# func_arith arithmetic-term...
35300func_arith ()
35301{
35302 func_arith_result=`expr "$@"`
35303}
35304
35305# func_len string
35306# STRING may not start with a hyphen.
35307func_len ()
35308{
35309 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35310}
35311
35312_LT_EOF
35313esac
35314
35315case $lt_shell_append in
35316 yes)
35317 cat << \_LT_EOF >> "$cfgfile"
35318
35319# func_append var value
35320# Append VALUE to the end of shell variable VAR.
35321func_append ()
35322{
35323 eval "$1+=\$2"
35324}
35325_LT_EOF
35326 ;;
35327 *)
35328 cat << \_LT_EOF >> "$cfgfile"
35329
35330# func_append var value
35331# Append VALUE to the end of shell variable VAR.
35332func_append ()
35333{
35334 eval "$1=\$$1\$2"
35335}
35336
35337_LT_EOF
35338 ;;
35339 esac
35340
35341
35342 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35343 || (rm -f "$cfgfile"; exit 1)
35344
35345 mv -f "$cfgfile" "$ofile" ||
35346 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35347 chmod +x "$ofile"
35348
35349
35350 cat <<_LT_EOF >> "$ofile"
35351
35352# ### BEGIN LIBTOOL TAG CONFIG: CXX
35353
35354# The linker used to build libraries.
35355LD=$lt_LD_CXX
35356
cristyfd9dcd42010-08-08 18:07:02 +000035357# How to create reloadable object files.
35358reload_flag=$lt_reload_flag_CXX
35359reload_cmds=$lt_reload_cmds_CXX
35360
cristy3ed852e2009-09-05 21:47:34 +000035361# Commands used to build an old-style archive.
35362old_archive_cmds=$lt_old_archive_cmds_CXX
35363
35364# A language specific compiler.
35365CC=$lt_compiler_CXX
35366
35367# Is the compiler the GNU compiler?
35368with_gcc=$GCC_CXX
35369
35370# Compiler flag to turn off builtin functions.
35371no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35372
35373# How to pass a linker flag through the compiler.
35374wl=$lt_lt_prog_compiler_wl_CXX
35375
35376# Additional compiler flags for building library objects.
35377pic_flag=$lt_lt_prog_compiler_pic_CXX
35378
35379# Compiler flag to prevent dynamic linking.
35380link_static_flag=$lt_lt_prog_compiler_static_CXX
35381
35382# Does compiler simultaneously support -c and -o options?
35383compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35384
35385# Whether or not to add -lc for building shared libraries.
35386build_libtool_need_lc=$archive_cmds_need_lc_CXX
35387
35388# Whether or not to disallow shared libs when runtime libs are static.
35389allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35390
35391# Compiler flag to allow reflexive dlopens.
35392export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35393
35394# Compiler flag to generate shared objects directly from archives.
35395whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35396
35397# Whether the compiler copes with passing no objects directly.
35398compiler_needs_object=$lt_compiler_needs_object_CXX
35399
35400# Create an old-style archive from a shared archive.
35401old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35402
35403# Create a temporary old-style archive to link instead of a shared archive.
35404old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35405
35406# Commands used to build a shared archive.
35407archive_cmds=$lt_archive_cmds_CXX
35408archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35409
35410# Commands used to build a loadable module if different from building
35411# a shared archive.
35412module_cmds=$lt_module_cmds_CXX
35413module_expsym_cmds=$lt_module_expsym_cmds_CXX
35414
35415# Whether we are building with GNU ld or not.
35416with_gnu_ld=$lt_with_gnu_ld_CXX
35417
35418# Flag that allows shared libraries with undefined symbols to be built.
35419allow_undefined_flag=$lt_allow_undefined_flag_CXX
35420
35421# Flag that enforces no undefined symbols.
35422no_undefined_flag=$lt_no_undefined_flag_CXX
35423
35424# Flag to hardcode \$libdir into a binary during linking.
35425# This must work even if \$libdir does not exist
35426hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35427
35428# If ld is used when linking, flag to hardcode \$libdir into a binary
35429# during linking. This must work even if \$libdir does not exist.
35430hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35431
35432# Whether we need a single "-rpath" flag with a separated argument.
35433hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35434
35435# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35436# DIR into the resulting binary.
35437hardcode_direct=$hardcode_direct_CXX
35438
35439# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35440# DIR into the resulting binary and the resulting library dependency is
35441# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35442# library is relocated.
35443hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35444
35445# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35446# into the resulting binary.
35447hardcode_minus_L=$hardcode_minus_L_CXX
35448
35449# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35450# into the resulting binary.
35451hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35452
35453# Set to "yes" if building a shared library automatically hardcodes DIR
35454# into the library and all subsequent libraries and executables linked
35455# against it.
35456hardcode_automatic=$hardcode_automatic_CXX
35457
35458# Set to yes if linker adds runtime paths of dependent libraries
35459# to runtime path list.
35460inherit_rpath=$inherit_rpath_CXX
35461
35462# Whether libtool must link a program against all its dependency libraries.
35463link_all_deplibs=$link_all_deplibs_CXX
35464
35465# Fix the shell variable \$srcfile for the compiler.
35466fix_srcfile_path=$lt_fix_srcfile_path_CXX
35467
35468# Set to "yes" if exported symbols are required.
35469always_export_symbols=$always_export_symbols_CXX
35470
35471# The commands to list exported symbols.
35472export_symbols_cmds=$lt_export_symbols_cmds_CXX
35473
35474# Symbols that should not be listed in the preloaded symbols.
35475exclude_expsyms=$lt_exclude_expsyms_CXX
35476
35477# Symbols that must always be exported.
35478include_expsyms=$lt_include_expsyms_CXX
35479
35480# Commands necessary for linking programs (against libraries) with templates.
35481prelink_cmds=$lt_prelink_cmds_CXX
35482
35483# Specify filename containing input files.
35484file_list_spec=$lt_file_list_spec_CXX
35485
35486# How to hardcode a shared library path into an executable.
35487hardcode_action=$hardcode_action_CXX
35488
35489# The directories searched by this compiler when creating a shared library.
35490compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35491
35492# Dependencies to place before and after the objects being linked to
35493# create a shared library.
35494predep_objects=$lt_predep_objects_CXX
35495postdep_objects=$lt_postdep_objects_CXX
35496predeps=$lt_predeps_CXX
35497postdeps=$lt_postdeps_CXX
35498
35499# The library search path used internally by the compiler when linking
35500# a shared library.
35501compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35502
35503# ### END LIBTOOL TAG CONFIG: CXX
35504_LT_EOF
35505
35506 ;;
35507 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35508 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35509 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35510 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35511 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35512 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35513
35514 esac
35515done # for ac_tag
35516
35517
cristy8b350f62009-11-15 23:12:43 +000035518as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000035519_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000035520ac_clean_files=$ac_clean_files_save
35521
35522test $ac_write_fail = 0 ||
cristyfd9dcd42010-08-08 18:07:02 +000035523 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035524
35525
35526# configure is writing to config.log, and then calls config.status.
35527# config.status does its own redirection, appending to config.log.
35528# Unfortunately, on DOS this fails, as config.log is still kept open
35529# by configure, so config.status won't be able to write to it; its
35530# output is simply discarded. So we exec the FD to /dev/null,
35531# effectively closing config.log, so it can be properly (re)opened and
35532# appended to by config.status. When coming back to configure, we
35533# need to make the FD available again.
35534if test "$no_create" != yes; then
35535 ac_cs_success=:
35536 ac_config_status_args=
35537 test "$silent" = yes &&
35538 ac_config_status_args="$ac_config_status_args --quiet"
35539 exec 5>/dev/null
35540 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35541 exec 5>>config.log
35542 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35543 # would make configure fail if this is the last instruction.
cristyfd9dcd42010-08-08 18:07:02 +000035544 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000035545fi
35546if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000035547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000035548$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35549fi
35550
35551
35552rm -f magick-version
35553
cristy430a7312010-01-21 20:44:04 +000035554result_dejavu_font_dir='none'
35555if test "${dejavu_font_dir}x" != 'x'; then
35556 result_dejavu_font_dir=$dejavu_font_dir
35557fi
35558
cristy3ed852e2009-09-05 21:47:34 +000035559result_ghostscript_font_dir='none'
35560if test "${ghostscript_font_dir}x" != 'x'; then
35561 result_ghostscript_font_dir=$ghostscript_font_dir
35562fi
35563
35564result_windows_font_dir='none'
35565if test "${windows_font_dir}x" != 'x'; then
35566 result_windows_font_dir=${windows_font_dir}
35567fi
35568
cristy8b350f62009-11-15 23:12:43 +000035569{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000035570ImageMagick is configured as follows. Please verify that this configuration
35571matches your expectations.
35572
35573Host system type: $host
35574Build system type: $build
35575
35576 Option Value
35577-------------------------------------------------------------------------------
35578Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35579Static libraries --enable-static=$enable_static $libtool_build_static_libs
35580Module support --with-modules=$with_modules $with_modules
35581GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35582Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35583High Dynamic Range Imagery
35584 --enable-hdri=$enable_hdri $enable_hdri
35585
35586Delegate Configuration:
35587BZLIB --with-bzlib=$with_bzlib $have_bzlib
35588Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035589Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035590DJVU --with-djvu=$with_djvu $have_djvu
35591DPS --with-dps=$with_dps $have_dps
35592FFTW --with-fftw=$with_fftw $have_fftw
35593FlashPIX --with-fpx=$with_fpx $have_fpx
35594FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35595FreeType --with-freetype=$with_freetype $have_freetype
35596GhostPCL None $PCLDelegate ($PCLVersion)
35597GhostXPS None $XPSDelegate ($XPSVersion)
35598Ghostscript None $PSDelegate ($GSVersion)
35599Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35600Ghostscript lib --with-gslib=$with_gslib $have_gslib
35601Graphviz --with-gvc=$with_gvc $have_gvc
35602JBIG --with-jbig=$with_jbig $have_jbig
35603JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35604JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035605LCMS v1 --with-lcms=$with_lcms $have_lcms
35606LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035607LQR --with-lqr=$with_lqr $have_lqr
35608Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35609OpenEXR --with-openexr=$with_openexr $have_openexr
35610PERL --with-perl=$with_perl $have_perl
35611PNG --with-png=$with_png $have_png
35612RSVG --with-rsvg=$with_rsvg $have_rsvg
35613TIFF --with-tiff=$with_tiff $have_tiff
35614Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35615WMF --with-wmf=$with_wmf $have_wmf
35616X11 --with-x=$with_x $have_x
35617XML --with-xml=$with_xml $have_xml
35618ZLIB --with-zlib=$with_zlib $have_zlib
35619
35620X11 Configuration:
35621 X_CFLAGS = $X_CFLAGS
35622 X_PRE_LIBS = $X_PRE_LIBS
35623 X_LIBS = $X_LIBS
35624 X_EXTRA_LIBS = $X_EXTRA_LIBS
35625
35626Options used to compile and link:
35627 PREFIX = $PREFIX_DIR
35628 EXEC-PREFIX = $EXEC_PREFIX_DIR
35629 VERSION = $PACKAGE_VERSION
35630 CC = $CC
35631 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035632 CPPFLAGS = $MAGICK_CPPFLAGS
35633 PCFLAGS = $MAGICK_PCFLAGS
35634 DEFS = $DEFS
35635 LDFLAGS = $LDFLAGS
35636 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35637 LIBS = $MAGICK_LIBS
35638 CXX = $CXX
35639 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000035640 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000035641" >&5
35642$as_echo "
35643ImageMagick is configured as follows. Please verify that this configuration
35644matches your expectations.
35645
35646Host system type: $host
35647Build system type: $build
35648
35649 Option Value
35650-------------------------------------------------------------------------------
35651Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35652Static libraries --enable-static=$enable_static $libtool_build_static_libs
35653Module support --with-modules=$with_modules $with_modules
35654GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35655Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35656High Dynamic Range Imagery
35657 --enable-hdri=$enable_hdri $enable_hdri
35658
35659Delegate Configuration:
35660BZLIB --with-bzlib=$with_bzlib $have_bzlib
35661Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035662Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035663DJVU --with-djvu=$with_djvu $have_djvu
35664DPS --with-dps=$with_dps $have_dps
35665FFTW --with-fftw=$with_fftw $have_fftw
35666FlashPIX --with-fpx=$with_fpx $have_fpx
35667FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35668FreeType --with-freetype=$with_freetype $have_freetype
35669GhostPCL None $PCLDelegate ($PCLVersion)
35670GhostXPS None $XPSDelegate ($XPSVersion)
35671Ghostscript None $PSDelegate ($GSVersion)
35672Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35673Ghostscript lib --with-gslib=$with_gslib $have_gslib
35674Graphviz --with-gvc=$with_gvc $have_gvc
35675JBIG --with-jbig=$with_jbig $have_jbig
35676JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35677JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035678LCMS v1 --with-lcms=$with_lcms $have_lcms
35679LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035680LQR --with-lqr=$with_lqr $have_lqr
35681Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35682OpenEXR --with-openexr=$with_openexr $have_openexr
35683PERL --with-perl=$with_perl $have_perl
35684PNG --with-png=$with_png $have_png
35685RSVG --with-rsvg=$with_rsvg $have_rsvg
35686TIFF --with-tiff=$with_tiff $have_tiff
35687Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35688WMF --with-wmf=$with_wmf $have_wmf
35689X11 --with-x=$with_x $have_x
35690XML --with-xml=$with_xml $have_xml
35691ZLIB --with-zlib=$with_zlib $have_zlib
35692
35693X11 Configuration:
35694 X_CFLAGS = $X_CFLAGS
35695 X_PRE_LIBS = $X_PRE_LIBS
35696 X_LIBS = $X_LIBS
35697 X_EXTRA_LIBS = $X_EXTRA_LIBS
35698
35699Options used to compile and link:
35700 PREFIX = $PREFIX_DIR
35701 EXEC-PREFIX = $EXEC_PREFIX_DIR
35702 VERSION = $PACKAGE_VERSION
35703 CC = $CC
35704 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035705 CPPFLAGS = $MAGICK_CPPFLAGS
35706 PCFLAGS = $MAGICK_PCFLAGS
35707 DEFS = $DEFS
35708 LDFLAGS = $LDFLAGS
35709 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35710 LIBS = $MAGICK_LIBS
35711 CXX = $CXX
35712 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000035713 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000035714" >&6; }