blob: 57f1c7c38a04c304603a66f4a67d19bdbf2d95bc [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy0684af42010-07-09 00:00:05 +00003# Generated by GNU Autoconf 2.66 for ImageMagick 6.6.3.
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,
cristy0684af42010-07-09 00:00:05 +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
cristy232a9ab2010-06-26 01:02:54 +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"
cristy0684af42010-07-09 00:00:05 +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
cristy0684af42010-07-09 00:00:05 +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
cristy0684af42010-07-09 00:00:05 +0000374# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000375as_fn_error ()
376{
cristy0684af42010-07-09 00:00:05 +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
cristy0684af42010-07-09 00:00:05 +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
cristy232a9ab2010-06-26 01:02:54 +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.
cristy0684af42010-07-09 00:00:05 +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'
cristyfbb4a972010-06-30 17:42:22 +0000569PACKAGE_VERSION='6.6.3'
570PACKAGE_STRING='ImageMagick 6.6.3'
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
618MAGICK_LIBS
619MAGICK_LDFLAGS
620MAGICK_PCFLAGS
621MAGICK_CPPFLAGS
622MAGICK_CXXFLAGS
623MAGICK_CFLAGS
624MAGICK_DEP_LIBS
625MAGICK_LTDLDEPS
626MAGICK_LIBLTDL
627OSX_GCOV_LDFLAG
628DELEGATES
629MAGICKCORE_PATH
630PERL_SUPPORTS_DESTDIR
631WITH_PERL_DYNAMIC_FALSE
632WITH_PERL_DYNAMIC_TRUE
633WITH_PERL_STATIC_FALSE
634WITH_PERL_STATIC_TRUE
635WITH_PERL_FALSE
636WITH_PERL_TRUE
cristy964cb7f2010-04-25 23:18:00 +0000637PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000638GSVersion
639GSPSDevice
640GSPDFDevice
641GSMonoDevice
642GSEPSDevice
643GSColorDevice
644GSCMYKDevice
645GSAlphaDevice
646XPSVersion
647XPSCMYKDevice
648XPSColorDevice
649XPSMonoDevice
650PCLVersion
651PCLCMYKDevice
652PCLColorDevice
653PCLMonoDevice
654ZIP_DELEGATE_FALSE
655ZIP_DELEGATE_TRUE
656ZIP
657P7ZIP_DELEGATE_FALSE
658P7ZIP_DELEGATE_TRUE
659P7ZIP
660RPM_DELEGATE_FALSE
661RPM_DELEGATE_TRUE
662RPM
663PERL
664TAR
665ShowImageDelegate
666type_include_files
667ghostscript_font_dir
668windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000669dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000670PrintDelegate
671ZipDelegate
672XPSDelegate
673WWWDecodeDelegate
674WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000675UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000676TXTDelegate
677SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000678RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000679RMDelegate
680RLEEncodeDelegate
681PSDelegate
682POVDelegate
683PGPDecodeDelegate
684PCLDelegate
685MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000686MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000687MPEGEncodeDelegate
688MPEGDecodeDelegate
689MANDelegate
690LaunchDelegate
691LZWEncodeDelegate
692LZWDecodeDelegate
693LPRDelegate
694LPDelegate
695ILBMEncodeDelegate
696ILBMDecodeDelegate
697HTMLDecodeDelegate
698HPGLDecodeDelegate
699HDRDecodeDelegate
700GnuplotDecodeDelegate
701MogrifyDelegate
702DisplayDelegate
703ConvertDelegate
704FIGDecodeDelegate
705EditorDelegate
706EchoDelegate
707DVIDecodeDelegate
708GVCDecodeDelegate
709DNGDecodeDelegate
710CatDelegate
711CGMDecodeDelegate
712BrowseDelegate
713BZIPDelegate
714BlenderDecodeDelegate
715AVIDecodeDelegate
716AutotraceDecodeDelegate
717SHARE_CONFIGURE_PATH
718SHARE_PATH
719DOCUMENTATION_PATH
720FILTER_PATH
721CODER_PATH
722CONFIGURE_PATH
723LIBRARY_PATH
724EXECUTABLE_PATH
725PERLMAINCC
726XML_LIBS
727XML_DELEGATE_FALSE
728XML_DELEGATE_TRUE
729xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000730WMF_LIBS
731WMF_DELEGATE_FALSE
732WMF_DELEGATE_TRUE
733TIFF_LIBS
734TIFF_DELEGATE_FALSE
735TIFF_DELEGATE_TRUE
736CAIRO_DELEGATE_FALSE
737CAIRO_DELEGATE_TRUE
738RSVG_DELEGATE_FALSE
739RSVG_DELEGATE_TRUE
740CAIRO_SVG_LIBS
741CAIRO_SVG_CFLAGS
742RSVG_LIBS
743RSVG_CFLAGS
744PNG_LIBS
745PNG_DELEGATE_FALSE
746PNG_DELEGATE_TRUE
747OPENEXR_DELEGATE_FALSE
748OPENEXR_DELEGATE_TRUE
749OPENEXR_LIBS
750OPENEXR_CFLAGS
751LQR_DELEGATE_FALSE
752LQR_DELEGATE_TRUE
753LQR_LIBS
754LQR_CFLAGS
755LCMS_LIBS
756LCMS_DELEGATE_FALSE
757LCMS_DELEGATE_TRUE
758JP2_LIBS
759JP2_DELEGATE_FALSE
760JP2_DELEGATE_TRUE
761JPEG_LIBS
762JPEG_DELEGATE_FALSE
763JPEG_DELEGATE_TRUE
764JBIG_LIBS
765JBIG_DELEGATE_FALSE
766JBIG_DELEGATE_TRUE
767GVC_DELEGATE_FALSE
768GVC_DELEGATE_TRUE
769GVC_LIBS
770GVC_CFLAGS
771GS_LIBS
772GS_DELEGATE_FALSE
773GS_DELEGATE_TRUE
774FREETYPE_LIBS
775FREETYPE_DELEGATE_FALSE
776FREETYPE_DELEGATE_TRUE
777freetype_config
778FONTCONFIG_DELEGATE_FALSE
779FONTCONFIG_DELEGATE_TRUE
780FONTCONFIG_LIBS
781FONTCONFIG_CFLAGS
782FPX_LIBS
783FPX_DELEGATE_FALSE
784FPX_DELEGATE_TRUE
785FFTW_LIBS
786FFTW_DELEGATE_FALSE
787FFTW_DELEGATE_TRUE
788DJVU_LIBS
789DJVU_DELEGATE_FALSE
790DJVU_DELEGATE_TRUE
791DPS_LIBS
792DPS_DELEGATE_FALSE
793DPS_DELEGATE_TRUE
794AUTOTRACE_DELEGATE_FALSE
795AUTOTRACE_DELEGATE_TRUE
796AUTOTRACE_LIBS
797AUTOTRACE_CFLAGS
798LIB_DL
799ZLIB_LIBS
800ZLIB_DELEGATE_FALSE
801ZLIB_DELEGATE_TRUE
802XEXT_LIBS
803X11_LIBS
804X11_DELEGATE_FALSE
805X11_DELEGATE_TRUE
806X_EXTRA_LIBS
807X_LIBS
808X_PRE_LIBS
809X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000810XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000811BZLIB_LIBS
812BZLIB_DELEGATE_FALSE
813BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000814CCMALLOCDelegate
815UMEM_LIBS
816HasUMEM_FALSE
817HasUMEM_TRUE
818THREAD_LIBS
819GOMP_LIBS
820WITH_MAGICK_PLUS_PLUS_FALSE
821WITH_MAGICK_PLUS_PLUS_TRUE
822OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000823MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000824POW_LIB
825LIBOBJS
826UINTPTR_T
827UINTMAX_T
828UINT64_T
829INT64_T
830UINT32_T
831INT32_T
832UINT16_T
833INT16_T
834UINT8_T
835INT8_T
836LIBRARY_EXTRA_CPPFLAGS
837MODULE_EXTRA_CPPFLAGS
838LIBSTDCLDFLAGS
839PERL_MAKE_OPTIONS
840QUANTUM_DEPTH
841MAINT
842MAINTAINER_MODE_FALSE
843MAINTAINER_MODE_TRUE
844MAGICK_HDRI
845DLLDFLAGS
846WITH_LTDL_FALSE
847WITH_LTDL_TRUE
848WITH_MODULES_FALSE
849WITH_MODULES_TRUE
cristyfa112112010-01-04 17:48:07 +0000850WITH_SHARED_LIBS_FALSE
851WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000852LTDLOPEN
853LT_CONFIG_H
854CONVENIENCE_LTDL_FALSE
855CONVENIENCE_LTDL_TRUE
856INSTALL_LTDL_FALSE
857INSTALL_LTDL_TRUE
858ARGZ_H
859sys_symbol_underscore
860LIBADD_DL
861LT_DLPREOPEN
862LIBADD_DLD_LINK
863LIBADD_SHL_LOAD
864LIBADD_DLOPEN
865LT_DLLOADERS
866INCLTDL
867LTDLINCL
868LTDLDEPS
869LIBLTDL
870LIBTOOL_DEPS
871CXXCPP
872OTOOL64
873OTOOL
874LIPO
875NMEDIT
876DSYMUTIL
cristy4dc44432009-12-30 23:30:06 +0000877RANLIB
cristy3ed852e2009-09-05 21:47:34 +0000878AR
879NM
880ac_ct_DUMPBIN
881DUMPBIN
882LIBTOOL
883OBJDUMP
884DLLTOOL
885AS
886LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +0000887CL_LIBS
888CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000889OPENMP_CFLAGS
890PTHREAD_CFLAGS
891PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000892PTHREAD_CC
cristy964cb7f2010-04-25 23:18:00 +0000893ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000894WinPathScript
895USING_CL_FALSE
896USING_CL_TRUE
897CYGWIN_BUILD_FALSE
898CYGWIN_BUILD_TRUE
899WIN32_NATIVE_BUILD_FALSE
900WIN32_NATIVE_BUILD_TRUE
901WINGDI32_DELEGATE_FALSE
902WINGDI32_DELEGATE_TRUE
903GDI32_LIBS
904PKG_CONFIG
905LN_S
cristy3ed852e2009-09-05 21:47:34 +0000906LD
907FGREP
cristy3ed852e2009-09-05 21:47:34 +0000908SED
cristy95646052009-11-28 23:05:30 +0000909am__fastdepCXX_FALSE
910am__fastdepCXX_TRUE
911CXXDEPMODE
912ac_ct_CXX
913CXXFLAGS
914CXX
cristya0b81c32010-01-22 02:54:33 +0000915EGREP
916GREP
917CPP
cristy3ed852e2009-09-05 21:47:34 +0000918am__fastdepCC_FALSE
919am__fastdepCC_TRUE
920CCDEPMODE
921AMDEPBACKSLASH
922AMDEP_FALSE
923AMDEP_TRUE
924am__quote
925am__include
926DEPDIR
927OBJEXT
928EXEEXT
929ac_ct_CC
930CPPFLAGS
931LDFLAGS
932CFLAGS
933CC
934DIRSEP
935MAGICK_FILTER_MODULE_PATH
936MAGICK_CONFIGURE_BUILD_PATH
937MAGICK_CONFIGURE_SRC_PATH
938MAGICK_CODER_MODULE_PATH
939MAN_DIR
940INFO_DIR
941PERSISTINCLUDE_DIR
942INCLUDE_DIR
943LIB_DIR
944LOCALSTATE_DIR
945SHAREDSTATE_DIR
946SYSCONF_DIR
947DATA_DIR
948LIBEXEC_DIR
949SBIN_DIR
950BIN_DIR
951EXEC_PREFIX_DIR
952PREFIX_DIR
953CONFIG_STATUS_DEPENDENCIES
954MAGICK_LIB_VERSION_NUMBER
955MAGICK_LIB_VERSION_TEXT
956MAGICK_LIB_VERSION
957AM_BACKSLASH
958AM_DEFAULT_VERBOSITY
959am__untar
960am__tar
961AMTAR
962am__leading_dot
963SET_MAKE
964AWK
965mkdir_p
966MKDIR_P
967INSTALL_STRIP_PROGRAM
968STRIP
969install_sh
970MAKEINFO
971AUTOHEADER
972AUTOMAKE
973AUTOCONF
974ACLOCAL
975VERSION
976PACKAGE
977CYGPATH_W
978am__isrc
979INSTALL_DATA
980INSTALL_SCRIPT
981INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +0000982PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +0000983PACKAGE_RELEASE_DATE
984PACKAGE_LIB_VERSION_NUMBER
985PACKAGE_LIB_VERSION
986PACKAGE_CHANGE_DATE
987PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +0000988MAGICK_LIBRARY_VERSION_INFO
989MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +0000990MAGICK_LIBRARY_AGE
991MAGICK_LIBRARY_REVISION
992MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +0000993MAGICK_TARGET_OS
994MAGICK_TARGET_VENDOR
995MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +0000996target_os
997target_vendor
998target_cpu
999target
1000host_os
1001host_vendor
1002host_cpu
1003host
1004build_os
1005build_vendor
1006build_cpu
1007build
1008CONFIGURE_ARGS
1009DISTCHECK_CONFIG_FLAGS
1010target_alias
1011host_alias
1012build_alias
1013LIBS
1014ECHO_T
1015ECHO_N
1016ECHO_C
1017DEFS
1018mandir
1019localedir
1020libdir
1021psdir
1022pdfdir
1023dvidir
1024htmldir
1025infodir
1026docdir
1027oldincludedir
1028includedir
1029localstatedir
1030sharedstatedir
1031sysconfdir
1032datadir
1033datarootdir
1034libexecdir
1035sbindir
1036bindir
1037program_transform_name
1038prefix
1039exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001040PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001041PACKAGE_BUGREPORT
1042PACKAGE_STRING
1043PACKAGE_VERSION
1044PACKAGE_TARNAME
1045PACKAGE_NAME
1046PATH_SEPARATOR
1047SHELL'
1048ac_subst_files=''
1049ac_user_opts='
1050enable_option_checking
1051enable_silent_rules
1052enable_dependency_tracking
1053with_gnu_ld
cristy3ed852e2009-09-05 21:47:34 +00001054with_dmalloc
1055enable_bounds_checking
1056enable_osx_universal_binary
1057with_threads
1058enable_openmp
cristy43596fe2010-01-21 16:46:08 +00001059enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001060enable_largefile
1061enable_shared
1062enable_static
1063with_pic
1064enable_fast_install
1065enable_libtool_lock
1066with_included_ltdl
1067with_ltdl_include
1068with_ltdl_lib
1069enable_ltdl_install
1070with_modules
1071enable_delegate_build
1072enable_deprecated
1073enable_installed
1074enable_cipher
1075enable_embeddable
1076enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001077enable_assert
1078enable_maintainer_mode
1079enable_ccmalloc
1080enable_efence
1081enable_prof
1082enable_gprof
1083enable_gcov
1084with_method_prefix
1085with_quantum_depth
1086with_cache
1087with_frozenpaths
1088with_magick_plus_plus
1089with_perl
1090with_perl_options
1091with_umem
1092with_libstdc
1093with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001094with_x
cristy3ed852e2009-09-05 21:47:34 +00001095with_zlib
1096with_autotrace
1097with_dps
1098with_djvu
cristy430a7312010-01-21 20:44:04 +00001099with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001100with_fftw
1101with_fpx
1102with_fontconfig
1103with_freetype
1104with_gslib
1105with_fontpath
1106with_gs_font_dir
1107with_gvc
1108with_jbig
1109with_jpeg
1110with_jp2
1111with_lcms
cristy71203402010-06-18 13:12:03 +00001112with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001113with_lqr
1114with_openexr
1115with_png
1116with_rsvg
1117with_tiff
1118with_windows_font_dir
1119with_wmf
1120with_xml
1121'
1122 ac_precious_vars='build_alias
1123host_alias
1124target_alias
1125CC
1126CFLAGS
1127LDFLAGS
1128LIBS
1129CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001130CPP
cristy3ed852e2009-09-05 21:47:34 +00001131CXX
1132CXXFLAGS
1133CCC
1134PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001135CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001136XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001137AUTOTRACE_CFLAGS
1138AUTOTRACE_LIBS
1139FONTCONFIG_CFLAGS
1140FONTCONFIG_LIBS
1141GVC_CFLAGS
1142GVC_LIBS
1143LQR_CFLAGS
1144LQR_LIBS
1145OPENEXR_CFLAGS
1146OPENEXR_LIBS
1147RSVG_CFLAGS
1148RSVG_LIBS
1149CAIRO_SVG_CFLAGS
1150CAIRO_SVG_LIBS'
1151
1152
1153# Initialize some variables set by options.
1154ac_init_help=
1155ac_init_version=false
1156ac_unrecognized_opts=
1157ac_unrecognized_sep=
1158# The variables have the same names as the options, with
1159# dashes changed to underlines.
1160cache_file=/dev/null
1161exec_prefix=NONE
1162no_create=
1163no_recursion=
1164prefix=NONE
1165program_prefix=NONE
1166program_suffix=NONE
1167program_transform_name=s,x,x,
1168silent=
1169site=
1170srcdir=
1171verbose=
1172x_includes=NONE
1173x_libraries=NONE
1174
1175# Installation directory options.
1176# These are left unexpanded so users can "make install exec_prefix=/foo"
1177# and all the variables that are supposed to be based on exec_prefix
1178# by default will actually change.
1179# Use braces instead of parens because sh, perl, etc. also accept them.
1180# (The list follows the same order as the GNU Coding Standards.)
1181bindir='${exec_prefix}/bin'
1182sbindir='${exec_prefix}/sbin'
1183libexecdir='${exec_prefix}/libexec'
1184datarootdir='${prefix}/share'
1185datadir='${datarootdir}'
1186sysconfdir='${prefix}/etc'
1187sharedstatedir='${prefix}/com'
1188localstatedir='${prefix}/var'
1189includedir='${prefix}/include'
1190oldincludedir='/usr/include'
1191docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1192infodir='${datarootdir}/info'
1193htmldir='${docdir}'
1194dvidir='${docdir}'
1195pdfdir='${docdir}'
1196psdir='${docdir}'
1197libdir='${exec_prefix}/lib'
1198localedir='${datarootdir}/locale'
1199mandir='${datarootdir}/man'
1200
1201ac_prev=
1202ac_dashdash=
1203for ac_option
1204do
1205 # If the previous option needs an argument, assign it.
1206 if test -n "$ac_prev"; then
1207 eval $ac_prev=\$ac_option
1208 ac_prev=
1209 continue
1210 fi
1211
1212 case $ac_option in
1213 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1214 *) ac_optarg=yes ;;
1215 esac
1216
1217 # Accept the important Cygnus configure options, so we can diagnose typos.
1218
1219 case $ac_dashdash$ac_option in
1220 --)
1221 ac_dashdash=yes ;;
1222
1223 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1224 ac_prev=bindir ;;
1225 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1226 bindir=$ac_optarg ;;
1227
1228 -build | --build | --buil | --bui | --bu)
1229 ac_prev=build_alias ;;
1230 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1231 build_alias=$ac_optarg ;;
1232
1233 -cache-file | --cache-file | --cache-fil | --cache-fi \
1234 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1235 ac_prev=cache_file ;;
1236 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1237 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1238 cache_file=$ac_optarg ;;
1239
1240 --config-cache | -C)
1241 cache_file=config.cache ;;
1242
1243 -datadir | --datadir | --datadi | --datad)
1244 ac_prev=datadir ;;
1245 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1246 datadir=$ac_optarg ;;
1247
1248 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1249 | --dataroo | --dataro | --datar)
1250 ac_prev=datarootdir ;;
1251 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1252 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1253 datarootdir=$ac_optarg ;;
1254
1255 -disable-* | --disable-*)
1256 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy0684af42010-07-09 00:00:05 +00001259 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001260 ac_useropt_orig=$ac_useropt
1261 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262 case $ac_user_opts in
1263 *"
1264"enable_$ac_useropt"
1265"*) ;;
1266 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1267 ac_unrecognized_sep=', ';;
1268 esac
1269 eval enable_$ac_useropt=no ;;
1270
1271 -docdir | --docdir | --docdi | --doc | --do)
1272 ac_prev=docdir ;;
1273 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1274 docdir=$ac_optarg ;;
1275
1276 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1277 ac_prev=dvidir ;;
1278 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1279 dvidir=$ac_optarg ;;
1280
1281 -enable-* | --enable-*)
1282 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy0684af42010-07-09 00:00:05 +00001285 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1289 *"
1290"enable_$ac_useropt"
1291"*) ;;
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1294 esac
1295 eval enable_$ac_useropt=\$ac_optarg ;;
1296
1297 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1298 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1299 | --exec | --exe | --ex)
1300 ac_prev=exec_prefix ;;
1301 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1302 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1303 | --exec=* | --exe=* | --ex=*)
1304 exec_prefix=$ac_optarg ;;
1305
1306 -gas | --gas | --ga | --g)
1307 # Obsolete; use --with-gas.
1308 with_gas=yes ;;
1309
1310 -help | --help | --hel | --he | -h)
1311 ac_init_help=long ;;
1312 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1313 ac_init_help=recursive ;;
1314 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1315 ac_init_help=short ;;
1316
1317 -host | --host | --hos | --ho)
1318 ac_prev=host_alias ;;
1319 -host=* | --host=* | --hos=* | --ho=*)
1320 host_alias=$ac_optarg ;;
1321
1322 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1323 ac_prev=htmldir ;;
1324 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1325 | --ht=*)
1326 htmldir=$ac_optarg ;;
1327
1328 -includedir | --includedir | --includedi | --included | --include \
1329 | --includ | --inclu | --incl | --inc)
1330 ac_prev=includedir ;;
1331 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1332 | --includ=* | --inclu=* | --incl=* | --inc=*)
1333 includedir=$ac_optarg ;;
1334
1335 -infodir | --infodir | --infodi | --infod | --info | --inf)
1336 ac_prev=infodir ;;
1337 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1338 infodir=$ac_optarg ;;
1339
1340 -libdir | --libdir | --libdi | --libd)
1341 ac_prev=libdir ;;
1342 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1343 libdir=$ac_optarg ;;
1344
1345 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1346 | --libexe | --libex | --libe)
1347 ac_prev=libexecdir ;;
1348 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1349 | --libexe=* | --libex=* | --libe=*)
1350 libexecdir=$ac_optarg ;;
1351
1352 -localedir | --localedir | --localedi | --localed | --locale)
1353 ac_prev=localedir ;;
1354 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1355 localedir=$ac_optarg ;;
1356
1357 -localstatedir | --localstatedir | --localstatedi | --localstated \
1358 | --localstate | --localstat | --localsta | --localst | --locals)
1359 ac_prev=localstatedir ;;
1360 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1361 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1362 localstatedir=$ac_optarg ;;
1363
1364 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1365 ac_prev=mandir ;;
1366 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1367 mandir=$ac_optarg ;;
1368
1369 -nfp | --nfp | --nf)
1370 # Obsolete; use --without-fp.
1371 with_fp=no ;;
1372
1373 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1374 | --no-cr | --no-c | -n)
1375 no_create=yes ;;
1376
1377 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1378 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1379 no_recursion=yes ;;
1380
1381 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1382 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1383 | --oldin | --oldi | --old | --ol | --o)
1384 ac_prev=oldincludedir ;;
1385 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1386 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1387 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1388 oldincludedir=$ac_optarg ;;
1389
1390 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1391 ac_prev=prefix ;;
1392 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1393 prefix=$ac_optarg ;;
1394
1395 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1396 | --program-pre | --program-pr | --program-p)
1397 ac_prev=program_prefix ;;
1398 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1399 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1400 program_prefix=$ac_optarg ;;
1401
1402 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1403 | --program-suf | --program-su | --program-s)
1404 ac_prev=program_suffix ;;
1405 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1406 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1407 program_suffix=$ac_optarg ;;
1408
1409 -program-transform-name | --program-transform-name \
1410 | --program-transform-nam | --program-transform-na \
1411 | --program-transform-n | --program-transform- \
1412 | --program-transform | --program-transfor \
1413 | --program-transfo | --program-transf \
1414 | --program-trans | --program-tran \
1415 | --progr-tra | --program-tr | --program-t)
1416 ac_prev=program_transform_name ;;
1417 -program-transform-name=* | --program-transform-name=* \
1418 | --program-transform-nam=* | --program-transform-na=* \
1419 | --program-transform-n=* | --program-transform-=* \
1420 | --program-transform=* | --program-transfor=* \
1421 | --program-transfo=* | --program-transf=* \
1422 | --program-trans=* | --program-tran=* \
1423 | --progr-tra=* | --program-tr=* | --program-t=*)
1424 program_transform_name=$ac_optarg ;;
1425
1426 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1427 ac_prev=pdfdir ;;
1428 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1429 pdfdir=$ac_optarg ;;
1430
1431 -psdir | --psdir | --psdi | --psd | --ps)
1432 ac_prev=psdir ;;
1433 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1434 psdir=$ac_optarg ;;
1435
1436 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1437 | -silent | --silent | --silen | --sile | --sil)
1438 silent=yes ;;
1439
1440 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1441 ac_prev=sbindir ;;
1442 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1443 | --sbi=* | --sb=*)
1444 sbindir=$ac_optarg ;;
1445
1446 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1447 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1448 | --sharedst | --shareds | --shared | --share | --shar \
1449 | --sha | --sh)
1450 ac_prev=sharedstatedir ;;
1451 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1452 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1453 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1454 | --sha=* | --sh=*)
1455 sharedstatedir=$ac_optarg ;;
1456
1457 -site | --site | --sit)
1458 ac_prev=site ;;
1459 -site=* | --site=* | --sit=*)
1460 site=$ac_optarg ;;
1461
1462 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1463 ac_prev=srcdir ;;
1464 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1465 srcdir=$ac_optarg ;;
1466
1467 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1468 | --syscon | --sysco | --sysc | --sys | --sy)
1469 ac_prev=sysconfdir ;;
1470 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1471 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1472 sysconfdir=$ac_optarg ;;
1473
1474 -target | --target | --targe | --targ | --tar | --ta | --t)
1475 ac_prev=target_alias ;;
1476 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1477 target_alias=$ac_optarg ;;
1478
1479 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1480 verbose=yes ;;
1481
1482 -version | --version | --versio | --versi | --vers | -V)
1483 ac_init_version=: ;;
1484
1485 -with-* | --with-*)
1486 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1487 # Reject names that are not valid shell variable names.
1488 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy0684af42010-07-09 00:00:05 +00001489 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001490 ac_useropt_orig=$ac_useropt
1491 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1492 case $ac_user_opts in
1493 *"
1494"with_$ac_useropt"
1495"*) ;;
1496 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1497 ac_unrecognized_sep=', ';;
1498 esac
1499 eval with_$ac_useropt=\$ac_optarg ;;
1500
1501 -without-* | --without-*)
1502 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1503 # Reject names that are not valid shell variable names.
1504 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy0684af42010-07-09 00:00:05 +00001505 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001506 ac_useropt_orig=$ac_useropt
1507 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1508 case $ac_user_opts in
1509 *"
1510"with_$ac_useropt"
1511"*) ;;
1512 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1513 ac_unrecognized_sep=', ';;
1514 esac
1515 eval with_$ac_useropt=no ;;
1516
1517 --x)
1518 # Obsolete; use --with-x.
1519 with_x=yes ;;
1520
1521 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1522 | --x-incl | --x-inc | --x-in | --x-i)
1523 ac_prev=x_includes ;;
1524 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1525 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1526 x_includes=$ac_optarg ;;
1527
1528 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1529 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1530 ac_prev=x_libraries ;;
1531 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1532 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1533 x_libraries=$ac_optarg ;;
1534
cristy0684af42010-07-09 00:00:05 +00001535 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1536Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001537 ;;
1538
1539 *=*)
1540 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1541 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001542 case $ac_envvar in #(
1543 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy0684af42010-07-09 00:00:05 +00001544 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001545 esac
cristy3ed852e2009-09-05 21:47:34 +00001546 eval $ac_envvar=\$ac_optarg
1547 export $ac_envvar ;;
1548
1549 *)
1550 # FIXME: should be removed in autoconf 3.0.
1551 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1552 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1553 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1554 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1555 ;;
1556
1557 esac
1558done
1559
1560if test -n "$ac_prev"; then
1561 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy0684af42010-07-09 00:00:05 +00001562 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001563fi
1564
1565if test -n "$ac_unrecognized_opts"; then
1566 case $enable_option_checking in
1567 no) ;;
cristy0684af42010-07-09 00:00:05 +00001568 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001569 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1570 esac
1571fi
1572
1573# Check all directory arguments for consistency.
1574for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1575 datadir sysconfdir sharedstatedir localstatedir includedir \
1576 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1577 libdir localedir mandir
1578do
1579 eval ac_val=\$$ac_var
1580 # Remove trailing slashes.
1581 case $ac_val in
1582 */ )
1583 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1584 eval $ac_var=\$ac_val;;
1585 esac
1586 # Be sure to have absolute directory names.
1587 case $ac_val in
1588 [\\/$]* | ?:[\\/]* ) continue;;
1589 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1590 esac
cristy0684af42010-07-09 00:00:05 +00001591 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001592done
1593
1594# There might be people who depend on the old broken behavior: `$host'
1595# used to hold the argument of --host etc.
1596# FIXME: To remove some day.
1597build=$build_alias
1598host=$host_alias
1599target=$target_alias
1600
1601# FIXME: To remove some day.
1602if test "x$host_alias" != x; then
1603 if test "x$build_alias" = x; then
1604 cross_compiling=maybe
cristy0684af42010-07-09 00:00:05 +00001605 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1606 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001607 elif test "x$build_alias" != "x$host_alias"; then
1608 cross_compiling=yes
1609 fi
1610fi
1611
1612ac_tool_prefix=
1613test -n "$host_alias" && ac_tool_prefix=$host_alias-
1614
1615test "$silent" = yes && exec 6>/dev/null
1616
1617
1618ac_pwd=`pwd` && test -n "$ac_pwd" &&
1619ac_ls_di=`ls -di .` &&
1620ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy0684af42010-07-09 00:00:05 +00001621 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001622test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy0684af42010-07-09 00:00:05 +00001623 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001624
1625
1626# Find the source files, if location was not specified.
1627if test -z "$srcdir"; then
1628 ac_srcdir_defaulted=yes
1629 # Try the directory containing this script, then the parent directory.
1630 ac_confdir=`$as_dirname -- "$as_myself" ||
1631$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1632 X"$as_myself" : 'X\(//\)[^/]' \| \
1633 X"$as_myself" : 'X\(//\)$' \| \
1634 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1635$as_echo X"$as_myself" |
1636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1637 s//\1/
1638 q
1639 }
1640 /^X\(\/\/\)[^/].*/{
1641 s//\1/
1642 q
1643 }
1644 /^X\(\/\/\)$/{
1645 s//\1/
1646 q
1647 }
1648 /^X\(\/\).*/{
1649 s//\1/
1650 q
1651 }
1652 s/.*/./; q'`
1653 srcdir=$ac_confdir
1654 if test ! -r "$srcdir/$ac_unique_file"; then
1655 srcdir=..
1656 fi
1657else
1658 ac_srcdir_defaulted=no
1659fi
1660if test ! -r "$srcdir/$ac_unique_file"; then
1661 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy0684af42010-07-09 00:00:05 +00001662 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001663fi
1664ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1665ac_abs_confdir=`(
cristy0684af42010-07-09 00:00:05 +00001666 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001667 pwd)`
1668# When building in place, set srcdir=.
1669if test "$ac_abs_confdir" = "$ac_pwd"; then
1670 srcdir=.
1671fi
1672# Remove unnecessary trailing slashes from srcdir.
1673# Double slashes in file names in object file debugging info
1674# mess up M-x gdb in Emacs.
1675case $srcdir in
1676*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1677esac
1678for ac_var in $ac_precious_vars; do
1679 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1680 eval ac_env_${ac_var}_value=\$${ac_var}
1681 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1682 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1683done
1684
1685#
1686# Report the --help message.
1687#
1688if test "$ac_init_help" = "long"; then
1689 # Omit some internal or obsolete options to make the list less imposing.
1690 # This message is too long to be a string in the A/UX 3.1 sh.
1691 cat <<_ACEOF
cristyfbb4a972010-06-30 17:42:22 +00001692\`configure' configures ImageMagick 6.6.3 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001693
1694Usage: $0 [OPTION]... [VAR=VALUE]...
1695
1696To assign environment variables (e.g., CC, CFLAGS...), specify them as
1697VAR=VALUE. See below for descriptions of some of the useful variables.
1698
1699Defaults for the options are specified in brackets.
1700
1701Configuration:
1702 -h, --help display this help and exit
1703 --help=short display options specific to this package
1704 --help=recursive display the short help of all the included packages
1705 -V, --version display version information and exit
cristy0684af42010-07-09 00:00:05 +00001706 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001707 --cache-file=FILE cache test results in FILE [disabled]
1708 -C, --config-cache alias for \`--cache-file=config.cache'
1709 -n, --no-create do not create output files
1710 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1711
1712Installation directories:
1713 --prefix=PREFIX install architecture-independent files in PREFIX
1714 [$ac_default_prefix]
1715 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1716 [PREFIX]
1717
1718By default, \`make install' will install all the files in
1719\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1720an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1721for instance \`--prefix=\$HOME'.
1722
1723For better control, use the options below.
1724
1725Fine tuning of the installation directories:
1726 --bindir=DIR user executables [EPREFIX/bin]
1727 --sbindir=DIR system admin executables [EPREFIX/sbin]
1728 --libexecdir=DIR program executables [EPREFIX/libexec]
1729 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1730 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1731 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1732 --libdir=DIR object code libraries [EPREFIX/lib]
1733 --includedir=DIR C header files [PREFIX/include]
1734 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1735 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1736 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1737 --infodir=DIR info documentation [DATAROOTDIR/info]
1738 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1739 --mandir=DIR man documentation [DATAROOTDIR/man]
1740 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1741 --htmldir=DIR html documentation [DOCDIR]
1742 --dvidir=DIR dvi documentation [DOCDIR]
1743 --pdfdir=DIR pdf documentation [DOCDIR]
1744 --psdir=DIR ps documentation [DOCDIR]
1745_ACEOF
1746
1747 cat <<\_ACEOF
1748
1749Program names:
1750 --program-prefix=PREFIX prepend PREFIX to installed program names
1751 --program-suffix=SUFFIX append SUFFIX to installed program names
1752 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1753
1754X features:
1755 --x-includes=DIR X include files are in DIR
1756 --x-libraries=DIR X library files are in DIR
1757
1758System types:
1759 --build=BUILD configure for building on BUILD [guessed]
1760 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1761 --target=TARGET configure for building compilers for TARGET [HOST]
1762_ACEOF
1763fi
1764
1765if test -n "$ac_init_help"; then
1766 case $ac_init_help in
cristyfbb4a972010-06-30 17:42:22 +00001767 short | recursive ) echo "Configuration of ImageMagick 6.6.3:";;
cristy3ed852e2009-09-05 21:47:34 +00001768 esac
1769 cat <<\_ACEOF
1770
1771Optional Features:
1772 --disable-option-checking ignore unrecognized --enable/--with options
1773 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1774 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1775 --enable-silent-rules less verbose build output (undo: `make V=1')
1776 --disable-silent-rules verbose build output (undo: `make V=0')
1777 --disable-dependency-tracking speeds up one-time build
1778 --enable-dependency-tracking do not reject slow dependency extractors
1779 --bounds-checking enable run-time bounds-checking
1780 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001781 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001782 --disable-openmp do not use OpenMP
cristy43596fe2010-01-21 16:46:08 +00001783 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001784 --disable-largefile omit support for large files
1785 --enable-shared[=PKGS] build shared libraries [default=yes]
1786 --enable-static[=PKGS] build static libraries [default=yes]
1787 --enable-fast-install[=PKGS]
1788 optimize for fast installation [default=yes]
1789 --disable-libtool-lock avoid locking (might break parallel builds)
1790 --enable-ltdl-install install libltdl
1791 --enable-delegate-build look for delegate libraries in build directory
1792 --disable-deprecated exclude deprecated methods in MagickCore and
1793 MagickWand API's
1794 --disable-installed Formally install ImageMagick under PREFIX
1795 --disable-cipher disable enciphering and deciphering image pixels
1796 --enable-embeddable enable self-contained, embeddable,
1797 zero-configuration ImageMagick
1798 --enable-hdri accurately represent the wide range of intensity
1799 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001800 --disable-assert disable assert() statements in build
1801 --enable-maintainer-mode enable make rules and dependencies not useful
1802 (and sometimes confusing) to the casual installer
1803 --enable-ccmalloc enable 'ccmalloc' memory debug support
1804 --enable-efence enable 'efence' memory debug support
1805 --enable-prof enable 'prof' profiling support
1806 --enable-gprof enable 'gprof' profiling support
1807 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001808 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001809
1810Optional Packages:
1811 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1812 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1813 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy3ed852e2009-09-05 21:47:34 +00001814 --with-dmalloc use dmalloc, as in
1815 http://www.dmalloc.com/dmalloc.tar.gz
1816 --without-threads disable threads support
1817 --with-pic try to use only PIC/non-PIC objects [default=use
1818 both]
1819 --with-included-ltdl use the GNU ltdl sources included here
1820 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1821 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1822 --with-modules enable building dynamically loadable modules
1823 --with-method-prefix=PREFIX
1824 prefix MagickCore API methods
1825 --with-quantum-depth=DEPTH
1826 number of bits in a pixel quantum (default 16)
1827 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1828 memory)
1829 --with-frozenpaths freeze delegate paths
1830 --without-magick-plus-plus
1831 disable build/install of Magick++
1832 --with-perl enable build/install of PerlMagick
1833 --with-perl-options=OPTIONS
1834 options to pass on command-line when generating
1835 PerlMagick's build file
1836 --with-umem enable umem memory allocation library support
1837 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1838 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001839 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001840 --without-zlib disable ZLIB support
1841 --with-autotrace enable autotrace support
1842 --without-dps disable Display Postscript support
1843 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001844 --with-dejavu-font-dir=DIR
1845 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001846 --without-fftw disable FFTW support
1847 --without-fpx disable FlashPIX support
1848 --without-fontconfig disable fontconfig support
1849 --without-freetype disable Freetype support
1850 --without-gslib enable Ghostscript library support
1851 --with-fontpath=DIR prepend to default font search path
1852 --with-gs-font-dir=DIR Ghostscript font directory
1853 --without-gvc disable GVC support
1854 --without-jbig disable JBIG support
1855 --without-jpeg disable JPEG support
1856 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001857 --without-lcms disable lcms (v1.1X) support
1858 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001859 --without-lqr disable Liquid Rescale support
cristy3ed852e2009-09-05 21:47:34 +00001860 --without-openexr disable OpenEXR support
1861 --without-png disable PNG support
1862 --without-rsvg disable RSVG support
1863 --without-tiff disable TIFF support
1864 --with-windows-font-dir=DIR
1865 directory containing MS-Windows fonts
1866 --without-wmf disable WMF support
1867 --without-xml disable XML support
1868
1869Some influential environment variables:
1870 CC C compiler command
1871 CFLAGS C compiler flags
1872 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1873 nonstandard directory <lib dir>
1874 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001875 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001876 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001877 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001878 CXX C++ compiler command
1879 CXXFLAGS C++ compiler flags
1880 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00001881 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00001882 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00001883 AUTOTRACE_CFLAGS
1884 C compiler flags for AUTOTRACE, overriding pkg-config
1885 AUTOTRACE_LIBS
1886 linker flags for AUTOTRACE, overriding pkg-config
1887 FONTCONFIG_CFLAGS
1888 C compiler flags for FONTCONFIG, overriding pkg-config
1889 FONTCONFIG_LIBS
1890 linker flags for FONTCONFIG, overriding pkg-config
1891 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1892 GVC_LIBS linker flags for GVC, overriding pkg-config
1893 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1894 LQR_LIBS linker flags for LQR, overriding pkg-config
1895 OPENEXR_CFLAGS
1896 C compiler flags for OPENEXR, overriding pkg-config
1897 OPENEXR_LIBS
1898 linker flags for OPENEXR, overriding pkg-config
1899 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1900 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1901 CAIRO_SVG_CFLAGS
1902 C compiler flags for CAIRO_SVG, overriding pkg-config
1903 CAIRO_SVG_LIBS
1904 linker flags for CAIRO_SVG, overriding pkg-config
1905
1906Use these variables to override the choices made by `configure' or to help
1907it to find libraries and programs with nonstandard names/locations.
1908
1909Report bugs to <http://www.imagemagick.org>.
1910_ACEOF
1911ac_status=$?
1912fi
1913
1914if test "$ac_init_help" = "recursive"; then
1915 # If there are subdirs, report their specific --help.
1916 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1917 test -d "$ac_dir" ||
1918 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1919 continue
1920 ac_builddir=.
1921
1922case "$ac_dir" in
1923.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1924*)
1925 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1926 # A ".." for each directory in $ac_dir_suffix.
1927 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1928 case $ac_top_builddir_sub in
1929 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1930 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1931 esac ;;
1932esac
1933ac_abs_top_builddir=$ac_pwd
1934ac_abs_builddir=$ac_pwd$ac_dir_suffix
1935# for backward compatibility:
1936ac_top_builddir=$ac_top_build_prefix
1937
1938case $srcdir in
1939 .) # We are building in place.
1940 ac_srcdir=.
1941 ac_top_srcdir=$ac_top_builddir_sub
1942 ac_abs_top_srcdir=$ac_pwd ;;
1943 [\\/]* | ?:[\\/]* ) # Absolute name.
1944 ac_srcdir=$srcdir$ac_dir_suffix;
1945 ac_top_srcdir=$srcdir
1946 ac_abs_top_srcdir=$srcdir ;;
1947 *) # Relative name.
1948 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1949 ac_top_srcdir=$ac_top_build_prefix$srcdir
1950 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1951esac
1952ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1953
1954 cd "$ac_dir" || { ac_status=$?; continue; }
1955 # Check for guested configure.
1956 if test -f "$ac_srcdir/configure.gnu"; then
1957 echo &&
1958 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1959 elif test -f "$ac_srcdir/configure"; then
1960 echo &&
1961 $SHELL "$ac_srcdir/configure" --help=recursive
1962 else
1963 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1964 fi || ac_status=$?
1965 cd "$ac_pwd" || { ac_status=$?; break; }
1966 done
1967fi
1968
1969test -n "$ac_init_help" && exit $ac_status
1970if $ac_init_version; then
1971 cat <<\_ACEOF
cristyfbb4a972010-06-30 17:42:22 +00001972ImageMagick configure 6.6.3
cristy0684af42010-07-09 00:00:05 +00001973generated by GNU Autoconf 2.66
cristy3ed852e2009-09-05 21:47:34 +00001974
cristy0684af42010-07-09 00:00:05 +00001975Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00001976This configure script is free software; the Free Software Foundation
1977gives unlimited permission to copy, distribute and modify it.
1978_ACEOF
1979 exit
1980fi
cristy8b350f62009-11-15 23:12:43 +00001981
1982## ------------------------ ##
1983## Autoconf initialization. ##
1984## ------------------------ ##
1985
1986# ac_fn_c_try_compile LINENO
1987# --------------------------
1988# Try to compile conftest.$ac_ext, and return whether this succeeded.
1989ac_fn_c_try_compile ()
1990{
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 rm -f conftest.$ac_objext
1993 if { { ac_try="$ac_compile"
1994case "(($ac_try" in
1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996 *) ac_try_echo=$ac_try;;
1997esac
1998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999$as_echo "$ac_try_echo"; } >&5
2000 (eval "$ac_compile") 2>conftest.err
2001 ac_status=$?
2002 if test -s conftest.err; then
2003 grep -v '^ *+' conftest.err >conftest.er1
2004 cat conftest.er1 >&5
2005 mv -f conftest.er1 conftest.err
2006 fi
2007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008 test $ac_status = 0; } && {
2009 test -z "$ac_c_werror_flag" ||
2010 test ! -s conftest.err
2011 } && test -s conftest.$ac_objext; then :
2012 ac_retval=0
2013else
2014 $as_echo "$as_me: failed program was:" >&5
2015sed 's/^/| /' conftest.$ac_ext >&5
2016
2017 ac_retval=1
2018fi
2019 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002020 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002021
2022} # ac_fn_c_try_compile
2023
cristy95646052009-11-28 23:05:30 +00002024# ac_fn_c_try_cpp LINENO
2025# ----------------------
2026# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2027ac_fn_c_try_cpp ()
2028{
2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030 if { { ac_try="$ac_cpp conftest.$ac_ext"
2031case "(($ac_try" in
2032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2033 *) ac_try_echo=$ac_try;;
2034esac
2035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2036$as_echo "$ac_try_echo"; } >&5
2037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2038 ac_status=$?
2039 if test -s conftest.err; then
2040 grep -v '^ *+' conftest.err >conftest.er1
2041 cat conftest.er1 >&5
2042 mv -f conftest.er1 conftest.err
2043 fi
2044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2045 test $ac_status = 0; } >/dev/null && {
2046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2047 test ! -s conftest.err
2048 }; then :
2049 ac_retval=0
2050else
2051 $as_echo "$as_me: failed program was:" >&5
2052sed 's/^/| /' conftest.$ac_ext >&5
2053
2054 ac_retval=1
2055fi
2056 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2057 as_fn_set_status $ac_retval
2058
2059} # ac_fn_c_try_cpp
2060
cristy8b350f62009-11-15 23:12:43 +00002061# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2062# -------------------------------------------------------
2063# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2064# the include files in INCLUDES and setting the cache variable VAR
2065# accordingly.
2066ac_fn_c_check_header_mongrel ()
2067{
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy0684af42010-07-09 00:00:05 +00002069 if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2071$as_echo_n "checking for $2... " >&6; }
cristy0684af42010-07-09 00:00:05 +00002072if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002073 $as_echo_n "(cached) " >&6
2074fi
2075eval ac_res=\$$3
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077$as_echo "$ac_res" >&6; }
2078else
2079 # Is the header compilable?
2080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2081$as_echo_n "checking $2 usability... " >&6; }
2082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083/* end confdefs.h. */
2084$4
2085#include <$2>
2086_ACEOF
2087if ac_fn_c_try_compile "$LINENO"; then :
2088 ac_header_compiler=yes
2089else
2090 ac_header_compiler=no
2091fi
2092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2094$as_echo "$ac_header_compiler" >&6; }
2095
2096# Is the header present?
2097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2098$as_echo_n "checking $2 presence... " >&6; }
2099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100/* end confdefs.h. */
2101#include <$2>
2102_ACEOF
2103if ac_fn_c_try_cpp "$LINENO"; then :
2104 ac_header_preproc=yes
2105else
2106 ac_header_preproc=no
2107fi
2108rm -f conftest.err conftest.$ac_ext
2109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2110$as_echo "$ac_header_preproc" >&6; }
2111
2112# So? What about this header?
2113case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2114 yes:no: )
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2116$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2118$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2119 ;;
2120 no:yes:* )
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2122$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2124$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2126$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2128$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2130$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy0684af42010-07-09 00:00:05 +00002131( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002132## Report this to http://www.imagemagick.org ##
cristy0684af42010-07-09 00:00:05 +00002133## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002134 ) | sed "s/^/$as_me: WARNING: /" >&2
2135 ;;
2136esac
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2138$as_echo_n "checking for $2... " >&6; }
cristy0684af42010-07-09 00:00:05 +00002139if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002140 $as_echo_n "(cached) " >&6
2141else
2142 eval "$3=\$ac_header_compiler"
2143fi
2144eval ac_res=\$$3
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2146$as_echo "$ac_res" >&6; }
2147fi
2148 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2149
2150} # ac_fn_c_check_header_mongrel
2151
2152# ac_fn_c_try_run LINENO
2153# ----------------------
2154# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2155# that executables *can* be run.
2156ac_fn_c_try_run ()
2157{
2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159 if { { ac_try="$ac_link"
2160case "(($ac_try" in
2161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2162 *) ac_try_echo=$ac_try;;
2163esac
2164eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2165$as_echo "$ac_try_echo"; } >&5
2166 (eval "$ac_link") 2>&5
2167 ac_status=$?
2168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2169 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2170 { { case "(($ac_try" in
2171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172 *) ac_try_echo=$ac_try;;
2173esac
2174eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2175$as_echo "$ac_try_echo"; } >&5
2176 (eval "$ac_try") 2>&5
2177 ac_status=$?
2178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2179 test $ac_status = 0; }; }; then :
2180 ac_retval=0
2181else
2182 $as_echo "$as_me: program exited with status $ac_status" >&5
2183 $as_echo "$as_me: failed program was:" >&5
2184sed 's/^/| /' conftest.$ac_ext >&5
2185
2186 ac_retval=$ac_status
2187fi
2188 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2189 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002190 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002191
2192} # ac_fn_c_try_run
2193
2194# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2195# -------------------------------------------------------
2196# Tests whether HEADER exists and can be compiled using the include files in
2197# INCLUDES, setting the cache variable VAR accordingly.
2198ac_fn_c_check_header_compile ()
2199{
2200 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2202$as_echo_n "checking for $2... " >&6; }
cristy0684af42010-07-09 00:00:05 +00002203if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002204 $as_echo_n "(cached) " >&6
2205else
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207/* end confdefs.h. */
2208$4
2209#include <$2>
2210_ACEOF
2211if ac_fn_c_try_compile "$LINENO"; then :
2212 eval "$3=yes"
2213else
2214 eval "$3=no"
2215fi
2216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2217fi
2218eval ac_res=\$$3
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2220$as_echo "$ac_res" >&6; }
2221 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2222
2223} # ac_fn_c_check_header_compile
2224
cristya0b81c32010-01-22 02:54:33 +00002225# ac_fn_cxx_try_compile LINENO
2226# ----------------------------
2227# Try to compile conftest.$ac_ext, and return whether this succeeded.
2228ac_fn_cxx_try_compile ()
2229{
2230 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2231 rm -f conftest.$ac_objext
2232 if { { ac_try="$ac_compile"
2233case "(($ac_try" in
2234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2235 *) ac_try_echo=$ac_try;;
2236esac
2237eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2238$as_echo "$ac_try_echo"; } >&5
2239 (eval "$ac_compile") 2>conftest.err
2240 ac_status=$?
2241 if test -s conftest.err; then
2242 grep -v '^ *+' conftest.err >conftest.er1
2243 cat conftest.er1 >&5
2244 mv -f conftest.er1 conftest.err
2245 fi
2246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2247 test $ac_status = 0; } && {
2248 test -z "$ac_cxx_werror_flag" ||
2249 test ! -s conftest.err
2250 } && test -s conftest.$ac_objext; then :
2251 ac_retval=0
2252else
2253 $as_echo "$as_me: failed program was:" >&5
2254sed 's/^/| /' conftest.$ac_ext >&5
2255
2256 ac_retval=1
2257fi
2258 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2259 as_fn_set_status $ac_retval
2260
2261} # ac_fn_cxx_try_compile
2262
cristy8b350f62009-11-15 23:12:43 +00002263# ac_fn_c_try_link LINENO
2264# -----------------------
2265# Try to link conftest.$ac_ext, and return whether this succeeded.
2266ac_fn_c_try_link ()
2267{
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269 rm -f conftest.$ac_objext conftest$ac_exeext
2270 if { { ac_try="$ac_link"
2271case "(($ac_try" in
2272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2273 *) ac_try_echo=$ac_try;;
2274esac
2275eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2276$as_echo "$ac_try_echo"; } >&5
2277 (eval "$ac_link") 2>conftest.err
2278 ac_status=$?
2279 if test -s conftest.err; then
2280 grep -v '^ *+' conftest.err >conftest.er1
2281 cat conftest.er1 >&5
2282 mv -f conftest.er1 conftest.err
2283 fi
2284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2285 test $ac_status = 0; } && {
2286 test -z "$ac_c_werror_flag" ||
2287 test ! -s conftest.err
2288 } && test -s conftest$ac_exeext && {
2289 test "$cross_compiling" = yes ||
2290 $as_test_x conftest$ac_exeext
2291 }; then :
2292 ac_retval=0
2293else
2294 $as_echo "$as_me: failed program was:" >&5
2295sed 's/^/| /' conftest.$ac_ext >&5
2296
2297 ac_retval=1
2298fi
2299 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2300 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2301 # interfere with the next link command; also delete a directory that is
2302 # left behind by Apple's compiler. We do this before executing the actions.
2303 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2304 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002305 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002306
2307} # ac_fn_c_try_link
2308
2309# ac_fn_c_check_func LINENO FUNC VAR
2310# ----------------------------------
2311# Tests whether FUNC exists, setting the cache variable VAR accordingly
2312ac_fn_c_check_func ()
2313{
2314 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2316$as_echo_n "checking for $2... " >&6; }
cristy0684af42010-07-09 00:00:05 +00002317if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002318 $as_echo_n "(cached) " >&6
2319else
2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321/* end confdefs.h. */
2322/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2324#define $2 innocuous_$2
2325
2326/* System header to define __stub macros and hopefully few prototypes,
2327 which can conflict with char $2 (); below.
2328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2329 <limits.h> exists even on freestanding compilers. */
2330
2331#ifdef __STDC__
2332# include <limits.h>
2333#else
2334# include <assert.h>
2335#endif
2336
2337#undef $2
2338
2339/* Override any GCC internal prototype to avoid an error.
2340 Use char because int might match the return type of a GCC
2341 builtin and then its argument prototype would still apply. */
2342#ifdef __cplusplus
2343extern "C"
2344#endif
2345char $2 ();
2346/* The GNU C library defines this for functions which it implements
2347 to always fail with ENOSYS. Some functions are actually named
2348 something starting with __ and the normal name is an alias. */
2349#if defined __stub_$2 || defined __stub___$2
2350choke me
2351#endif
2352
2353int
2354main ()
2355{
2356return $2 ();
2357 ;
2358 return 0;
2359}
2360_ACEOF
2361if ac_fn_c_try_link "$LINENO"; then :
2362 eval "$3=yes"
2363else
2364 eval "$3=no"
2365fi
2366rm -f core conftest.err conftest.$ac_objext \
2367 conftest$ac_exeext conftest.$ac_ext
2368fi
2369eval ac_res=\$$3
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2371$as_echo "$ac_res" >&6; }
2372 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2373
2374} # ac_fn_c_check_func
2375
2376# ac_fn_cxx_try_cpp LINENO
2377# ------------------------
2378# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2379ac_fn_cxx_try_cpp ()
2380{
2381 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2382 if { { ac_try="$ac_cpp conftest.$ac_ext"
2383case "(($ac_try" in
2384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385 *) ac_try_echo=$ac_try;;
2386esac
2387eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2388$as_echo "$ac_try_echo"; } >&5
2389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2390 ac_status=$?
2391 if test -s conftest.err; then
2392 grep -v '^ *+' conftest.err >conftest.er1
2393 cat conftest.er1 >&5
2394 mv -f conftest.er1 conftest.err
2395 fi
2396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2397 test $ac_status = 0; } >/dev/null && {
2398 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2399 test ! -s conftest.err
2400 }; then :
2401 ac_retval=0
2402else
2403 $as_echo "$as_me: failed program was:" >&5
2404sed 's/^/| /' conftest.$ac_ext >&5
2405
2406 ac_retval=1
2407fi
2408 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002409 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002410
2411} # ac_fn_cxx_try_cpp
2412
2413# ac_fn_cxx_try_link LINENO
2414# -------------------------
2415# Try to link conftest.$ac_ext, and return whether this succeeded.
2416ac_fn_cxx_try_link ()
2417{
2418 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2419 rm -f conftest.$ac_objext conftest$ac_exeext
2420 if { { ac_try="$ac_link"
2421case "(($ac_try" in
2422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423 *) ac_try_echo=$ac_try;;
2424esac
2425eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2426$as_echo "$ac_try_echo"; } >&5
2427 (eval "$ac_link") 2>conftest.err
2428 ac_status=$?
2429 if test -s conftest.err; then
2430 grep -v '^ *+' conftest.err >conftest.er1
2431 cat conftest.er1 >&5
2432 mv -f conftest.er1 conftest.err
2433 fi
2434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2435 test $ac_status = 0; } && {
2436 test -z "$ac_cxx_werror_flag" ||
2437 test ! -s conftest.err
2438 } && test -s conftest$ac_exeext && {
2439 test "$cross_compiling" = yes ||
2440 $as_test_x conftest$ac_exeext
2441 }; then :
2442 ac_retval=0
2443else
2444 $as_echo "$as_me: failed program was:" >&5
2445sed 's/^/| /' conftest.$ac_ext >&5
2446
2447 ac_retval=1
2448fi
2449 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2450 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2451 # interfere with the next link command; also delete a directory that is
2452 # left behind by Apple's compiler. We do this before executing the actions.
2453 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2454 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002455 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002456
2457} # ac_fn_cxx_try_link
2458
cristy0684af42010-07-09 00:00:05 +00002459# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2460# ---------------------------------------------
2461# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2462# accordingly.
cristy8b350f62009-11-15 23:12:43 +00002463ac_fn_c_check_decl ()
2464{
2465 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy0684af42010-07-09 00:00:05 +00002466 as_decl_name=`echo $2|sed 's/ *(.*//'`
2467 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2469$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2470if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002471 $as_echo_n "(cached) " >&6
2472else
2473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2474/* end confdefs.h. */
2475$4
2476int
2477main ()
2478{
cristy0684af42010-07-09 00:00:05 +00002479#ifndef $as_decl_name
2480#ifdef __cplusplus
2481 (void) $as_decl_use;
2482#else
2483 (void) $as_decl_name;
2484#endif
cristy8b350f62009-11-15 23:12:43 +00002485#endif
2486
2487 ;
2488 return 0;
2489}
2490_ACEOF
2491if ac_fn_c_try_compile "$LINENO"; then :
2492 eval "$3=yes"
2493else
2494 eval "$3=no"
2495fi
2496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2497fi
2498eval ac_res=\$$3
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2500$as_echo "$ac_res" >&6; }
2501 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2502
2503} # ac_fn_c_check_decl
2504
2505# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2506# -------------------------------------------
2507# Tests whether TYPE exists after having included INCLUDES, setting cache
2508# variable VAR accordingly.
2509ac_fn_c_check_type ()
2510{
2511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2513$as_echo_n "checking for $2... " >&6; }
cristy0684af42010-07-09 00:00:05 +00002514if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002515 $as_echo_n "(cached) " >&6
2516else
2517 eval "$3=no"
2518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2519/* end confdefs.h. */
2520$4
2521int
2522main ()
2523{
2524if (sizeof ($2))
2525 return 0;
2526 ;
2527 return 0;
2528}
2529_ACEOF
2530if ac_fn_c_try_compile "$LINENO"; then :
2531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532/* end confdefs.h. */
2533$4
2534int
2535main ()
2536{
2537if (sizeof (($2)))
2538 return 0;
2539 ;
2540 return 0;
2541}
2542_ACEOF
2543if ac_fn_c_try_compile "$LINENO"; then :
2544
2545else
2546 eval "$3=yes"
2547fi
2548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2549fi
2550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2551fi
2552eval ac_res=\$$3
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2554$as_echo "$ac_res" >&6; }
2555 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2556
2557} # ac_fn_c_check_type
2558
cristy92703d82010-04-26 00:18:18 +00002559# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2560# ----------------------------------------------------
2561# Tries to find if the field MEMBER exists in type AGGR, after including
2562# INCLUDES, setting cache variable VAR accordingly.
2563ac_fn_c_check_member ()
2564{
2565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2567$as_echo_n "checking for $2.$3... " >&6; }
cristy0684af42010-07-09 00:00:05 +00002568if eval "test \"\${$4+set}\"" = set; then :
cristy92703d82010-04-26 00:18:18 +00002569 $as_echo_n "(cached) " >&6
2570else
2571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2572/* end confdefs.h. */
2573$5
2574int
2575main ()
2576{
2577static $2 ac_aggr;
2578if (ac_aggr.$3)
2579return 0;
2580 ;
2581 return 0;
2582}
2583_ACEOF
2584if ac_fn_c_try_compile "$LINENO"; then :
2585 eval "$4=yes"
2586else
2587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2588/* end confdefs.h. */
2589$5
2590int
2591main ()
2592{
2593static $2 ac_aggr;
2594if (sizeof ac_aggr.$3)
2595return 0;
2596 ;
2597 return 0;
2598}
2599_ACEOF
2600if ac_fn_c_try_compile "$LINENO"; then :
2601 eval "$4=yes"
2602else
2603 eval "$4=no"
2604fi
2605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606fi
2607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608fi
2609eval ac_res=\$$4
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2611$as_echo "$ac_res" >&6; }
2612 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2613
2614} # ac_fn_c_check_member
2615
cristy8b350f62009-11-15 23:12:43 +00002616# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2617# --------------------------------------------
2618# Tries to find the compile-time value of EXPR in a program that includes
2619# INCLUDES, setting VAR accordingly. Returns whether the value could be
2620# computed
2621ac_fn_c_compute_int ()
2622{
2623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2624 if test "$cross_compiling" = yes; then
2625 # Depending upon the size, compute the lo and hi bounds.
2626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2627/* end confdefs.h. */
2628$4
2629int
2630main ()
2631{
2632static int test_array [1 - 2 * !(($2) >= 0)];
2633test_array [0] = 0
2634
2635 ;
2636 return 0;
2637}
2638_ACEOF
2639if ac_fn_c_try_compile "$LINENO"; then :
2640 ac_lo=0 ac_mid=0
2641 while :; do
2642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2643/* end confdefs.h. */
2644$4
2645int
2646main ()
2647{
2648static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2649test_array [0] = 0
2650
2651 ;
2652 return 0;
2653}
2654_ACEOF
2655if ac_fn_c_try_compile "$LINENO"; then :
2656 ac_hi=$ac_mid; break
2657else
2658 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2659 if test $ac_lo -le $ac_mid; then
2660 ac_lo= ac_hi=
2661 break
2662 fi
2663 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2664fi
2665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2666 done
2667else
2668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2669/* end confdefs.h. */
2670$4
2671int
2672main ()
2673{
2674static int test_array [1 - 2 * !(($2) < 0)];
2675test_array [0] = 0
2676
2677 ;
2678 return 0;
2679}
2680_ACEOF
2681if ac_fn_c_try_compile "$LINENO"; then :
2682 ac_hi=-1 ac_mid=-1
2683 while :; do
2684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2685/* end confdefs.h. */
2686$4
2687int
2688main ()
2689{
2690static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2691test_array [0] = 0
2692
2693 ;
2694 return 0;
2695}
2696_ACEOF
2697if ac_fn_c_try_compile "$LINENO"; then :
2698 ac_lo=$ac_mid; break
2699else
2700 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2701 if test $ac_mid -le $ac_hi; then
2702 ac_lo= ac_hi=
2703 break
2704 fi
2705 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2706fi
2707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2708 done
2709else
2710 ac_lo= ac_hi=
2711fi
2712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2713fi
2714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2715# Binary search between lo and hi bounds.
2716while test "x$ac_lo" != "x$ac_hi"; do
2717 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719/* end confdefs.h. */
2720$4
2721int
2722main ()
2723{
2724static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2725test_array [0] = 0
2726
2727 ;
2728 return 0;
2729}
2730_ACEOF
2731if ac_fn_c_try_compile "$LINENO"; then :
2732 ac_hi=$ac_mid
2733else
2734 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2735fi
2736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2737done
2738case $ac_lo in #((
2739?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2740'') ac_retval=1 ;;
2741esac
2742 else
2743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2744/* end confdefs.h. */
2745$4
2746static long int longval () { return $2; }
2747static unsigned long int ulongval () { return $2; }
2748#include <stdio.h>
2749#include <stdlib.h>
2750int
2751main ()
2752{
2753
2754 FILE *f = fopen ("conftest.val", "w");
2755 if (! f)
2756 return 1;
2757 if (($2) < 0)
2758 {
2759 long int i = longval ();
2760 if (i != ($2))
2761 return 1;
2762 fprintf (f, "%ld", i);
2763 }
2764 else
2765 {
2766 unsigned long int i = ulongval ();
2767 if (i != ($2))
2768 return 1;
2769 fprintf (f, "%lu", i);
2770 }
2771 /* Do not output a trailing newline, as this causes \r\n confusion
2772 on some platforms. */
2773 return ferror (f) || fclose (f) != 0;
2774
2775 ;
2776 return 0;
2777}
2778_ACEOF
2779if ac_fn_c_try_run "$LINENO"; then :
2780 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2781else
2782 ac_retval=1
2783fi
2784rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2785 conftest.$ac_objext conftest.beam conftest.$ac_ext
2786rm -f conftest.val
2787
2788 fi
2789 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002790 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002791
2792} # ac_fn_c_compute_int
2793
2794# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2795# ---------------------------------------------------------
2796# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2797# the include files in INCLUDES and setting the cache variable VAR
2798# accordingly.
2799ac_fn_cxx_check_header_mongrel ()
2800{
2801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy0684af42010-07-09 00:00:05 +00002802 if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2804$as_echo_n "checking for $2... " >&6; }
cristy0684af42010-07-09 00:00:05 +00002805if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002806 $as_echo_n "(cached) " >&6
2807fi
2808eval ac_res=\$$3
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2810$as_echo "$ac_res" >&6; }
2811else
2812 # Is the header compilable?
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2814$as_echo_n "checking $2 usability... " >&6; }
2815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2816/* end confdefs.h. */
2817$4
2818#include <$2>
2819_ACEOF
2820if ac_fn_cxx_try_compile "$LINENO"; then :
2821 ac_header_compiler=yes
2822else
2823 ac_header_compiler=no
2824fi
2825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2827$as_echo "$ac_header_compiler" >&6; }
2828
2829# Is the header present?
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2831$as_echo_n "checking $2 presence... " >&6; }
2832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2833/* end confdefs.h. */
2834#include <$2>
2835_ACEOF
2836if ac_fn_cxx_try_cpp "$LINENO"; then :
2837 ac_header_preproc=yes
2838else
2839 ac_header_preproc=no
2840fi
2841rm -f conftest.err conftest.$ac_ext
2842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2843$as_echo "$ac_header_preproc" >&6; }
2844
2845# So? What about this header?
2846case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2847 yes:no: )
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2849$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2851$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2852 ;;
2853 no:yes:* )
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2855$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2857$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2859$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2861$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2863$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy0684af42010-07-09 00:00:05 +00002864( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002865## Report this to http://www.imagemagick.org ##
cristy0684af42010-07-09 00:00:05 +00002866## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002867 ) | sed "s/^/$as_me: WARNING: /" >&2
2868 ;;
2869esac
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2871$as_echo_n "checking for $2... " >&6; }
cristy0684af42010-07-09 00:00:05 +00002872if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002873 $as_echo_n "(cached) " >&6
2874else
2875 eval "$3=\$ac_header_compiler"
2876fi
2877eval ac_res=\$$3
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2879$as_echo "$ac_res" >&6; }
2880fi
2881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2882
2883} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002884cat >config.log <<_ACEOF
2885This file contains any messages produced by compilers while
2886running configure, to aid debugging if configure makes a mistake.
2887
cristyfbb4a972010-06-30 17:42:22 +00002888It was created by ImageMagick $as_me 6.6.3, which was
cristy0684af42010-07-09 00:00:05 +00002889generated by GNU Autoconf 2.66. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002890
2891 $ $0 $@
2892
2893_ACEOF
2894exec 5>>config.log
2895{
2896cat <<_ASUNAME
2897## --------- ##
2898## Platform. ##
2899## --------- ##
2900
2901hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2902uname -m = `(uname -m) 2>/dev/null || echo unknown`
2903uname -r = `(uname -r) 2>/dev/null || echo unknown`
2904uname -s = `(uname -s) 2>/dev/null || echo unknown`
2905uname -v = `(uname -v) 2>/dev/null || echo unknown`
2906
2907/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2908/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2909
2910/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2911/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2912/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2913/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2914/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2915/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2916/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2917
2918_ASUNAME
2919
2920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921for as_dir in $PATH
2922do
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002925 $as_echo "PATH: $as_dir"
2926 done
cristy3ed852e2009-09-05 21:47:34 +00002927IFS=$as_save_IFS
2928
2929} >&5
2930
2931cat >&5 <<_ACEOF
2932
2933
2934## ----------- ##
2935## Core tests. ##
2936## ----------- ##
2937
2938_ACEOF
2939
2940
2941# Keep a trace of the command line.
2942# Strip out --no-create and --no-recursion so they do not pile up.
2943# Strip out --silent because we don't want to record it for future runs.
2944# Also quote any args containing shell meta-characters.
2945# Make two passes to allow for proper duplicate-argument suppression.
2946ac_configure_args=
2947ac_configure_args0=
2948ac_configure_args1=
2949ac_must_keep_next=false
2950for ac_pass in 1 2
2951do
2952 for ac_arg
2953 do
2954 case $ac_arg in
2955 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2956 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2957 | -silent | --silent | --silen | --sile | --sil)
2958 continue ;;
2959 *\'*)
2960 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2961 esac
2962 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00002963 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00002964 2)
cristy8b350f62009-11-15 23:12:43 +00002965 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002966 if test $ac_must_keep_next = true; then
2967 ac_must_keep_next=false # Got value, back to normal.
2968 else
2969 case $ac_arg in
2970 *=* | --config-cache | -C | -disable-* | --disable-* \
2971 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2972 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2973 | -with-* | --with-* | -without-* | --without-* | --x)
2974 case "$ac_configure_args0 " in
2975 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2976 esac
2977 ;;
2978 -* ) ac_must_keep_next=true ;;
2979 esac
2980 fi
cristy8b350f62009-11-15 23:12:43 +00002981 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002982 ;;
2983 esac
2984 done
2985done
cristy8b350f62009-11-15 23:12:43 +00002986{ ac_configure_args0=; unset ac_configure_args0;}
2987{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00002988
2989# When interrupted or exit'd, cleanup temporary files, and complete
2990# config.log. We remove comments because anyway the quotes in there
2991# would cause problems or look ugly.
2992# WARNING: Use '\'' to represent an apostrophe within the trap.
2993# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2994trap 'exit_status=$?
2995 # Save into config.log some information that might help in debugging.
2996 {
2997 echo
2998
cristy0684af42010-07-09 00:00:05 +00002999 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003000## Cache variables. ##
cristy0684af42010-07-09 00:00:05 +00003001## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003002 echo
3003 # The following way of writing the cache mishandles newlines in values,
3004(
3005 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3006 eval ac_val=\$$ac_var
3007 case $ac_val in #(
3008 *${as_nl}*)
3009 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003010 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003011$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3012 esac
3013 case $ac_var in #(
3014 _ | IFS | as_nl) ;; #(
3015 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003016 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003017 esac ;;
3018 esac
3019 done
3020 (set) 2>&1 |
3021 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3022 *${as_nl}ac_space=\ *)
3023 sed -n \
3024 "s/'\''/'\''\\\\'\'''\''/g;
3025 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3026 ;; #(
3027 *)
3028 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3029 ;;
3030 esac |
3031 sort
3032)
3033 echo
3034
cristy0684af42010-07-09 00:00:05 +00003035 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003036## Output variables. ##
cristy0684af42010-07-09 00:00:05 +00003037## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003038 echo
3039 for ac_var in $ac_subst_vars
3040 do
3041 eval ac_val=\$$ac_var
3042 case $ac_val in
3043 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3044 esac
3045 $as_echo "$ac_var='\''$ac_val'\''"
3046 done | sort
3047 echo
3048
3049 if test -n "$ac_subst_files"; then
cristy0684af42010-07-09 00:00:05 +00003050 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003051## File substitutions. ##
cristy0684af42010-07-09 00:00:05 +00003052## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003053 echo
3054 for ac_var in $ac_subst_files
3055 do
3056 eval ac_val=\$$ac_var
3057 case $ac_val in
3058 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3059 esac
3060 $as_echo "$ac_var='\''$ac_val'\''"
3061 done | sort
3062 echo
3063 fi
3064
3065 if test -s confdefs.h; then
cristy0684af42010-07-09 00:00:05 +00003066 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003067## confdefs.h. ##
cristy0684af42010-07-09 00:00:05 +00003068## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003069 echo
3070 cat confdefs.h
3071 echo
3072 fi
3073 test "$ac_signal" != 0 &&
3074 $as_echo "$as_me: caught signal $ac_signal"
3075 $as_echo "$as_me: exit $exit_status"
3076 } >&5
3077 rm -f core *.core core.conftest.* &&
3078 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3079 exit $exit_status
3080' 0
3081for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003082 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003083done
3084ac_signal=0
3085
3086# confdefs.h avoids OS command line length limits that DEFS can exceed.
3087rm -f -r conftest* confdefs.h
3088
cristy8b350f62009-11-15 23:12:43 +00003089$as_echo "/* confdefs.h */" > confdefs.h
3090
cristy3ed852e2009-09-05 21:47:34 +00003091# Predefined preprocessor variables.
3092
3093cat >>confdefs.h <<_ACEOF
3094#define PACKAGE_NAME "$PACKAGE_NAME"
3095_ACEOF
3096
cristy3ed852e2009-09-05 21:47:34 +00003097cat >>confdefs.h <<_ACEOF
3098#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3099_ACEOF
3100
cristy3ed852e2009-09-05 21:47:34 +00003101cat >>confdefs.h <<_ACEOF
3102#define PACKAGE_VERSION "$PACKAGE_VERSION"
3103_ACEOF
3104
cristy3ed852e2009-09-05 21:47:34 +00003105cat >>confdefs.h <<_ACEOF
3106#define PACKAGE_STRING "$PACKAGE_STRING"
3107_ACEOF
3108
cristy3ed852e2009-09-05 21:47:34 +00003109cat >>confdefs.h <<_ACEOF
3110#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3111_ACEOF
3112
cristy8b350f62009-11-15 23:12:43 +00003113cat >>confdefs.h <<_ACEOF
3114#define PACKAGE_URL "$PACKAGE_URL"
3115_ACEOF
3116
cristy3ed852e2009-09-05 21:47:34 +00003117
3118# Let the site file select an alternate cache file if it wants to.
3119# Prefer an explicitly selected file to automatically selected ones.
3120ac_site_file1=NONE
3121ac_site_file2=NONE
3122if test -n "$CONFIG_SITE"; then
cristy0684af42010-07-09 00:00:05 +00003123 # We do not want a PATH search for config.site.
3124 case $CONFIG_SITE in #((
3125 -*) ac_site_file1=./$CONFIG_SITE;;
3126 */*) ac_site_file1=$CONFIG_SITE;;
3127 *) ac_site_file1=./$CONFIG_SITE;;
3128 esac
cristy3ed852e2009-09-05 21:47:34 +00003129elif test "x$prefix" != xNONE; then
3130 ac_site_file1=$prefix/share/config.site
3131 ac_site_file2=$prefix/etc/config.site
3132else
3133 ac_site_file1=$ac_default_prefix/share/config.site
3134 ac_site_file2=$ac_default_prefix/etc/config.site
3135fi
3136for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3137do
3138 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003139 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003140 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003141$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3142 sed 's/^/| /' "$ac_site_file" >&5
cristy0684af42010-07-09 00:00:05 +00003143 . "$ac_site_file" \
3144 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146as_fn_error $? "failed to load site script $ac_site_file
3147See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003148 fi
3149done
3150
3151if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003152 # Some versions of bash will fail to source /dev/null (special files
3153 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3154 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003155 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003156$as_echo "$as_me: loading cache $cache_file" >&6;}
3157 case $cache_file in
3158 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3159 *) . "./$cache_file";;
3160 esac
3161 fi
3162else
cristy8b350f62009-11-15 23:12:43 +00003163 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003164$as_echo "$as_me: creating cache $cache_file" >&6;}
3165 >$cache_file
3166fi
3167
cristycd4c5312009-11-22 01:19:08 +00003168as_fn_append ac_header_list " stdlib.h"
3169as_fn_append ac_header_list " unistd.h"
3170as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003171# Check that the precious variables saved in the cache have kept the same
3172# value.
3173ac_cache_corrupted=false
3174for ac_var in $ac_precious_vars; do
3175 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3176 eval ac_new_set=\$ac_env_${ac_var}_set
3177 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3178 eval ac_new_val=\$ac_env_${ac_var}_value
3179 case $ac_old_set,$ac_new_set in
3180 set,)
cristy8b350f62009-11-15 23:12:43 +00003181 { $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 +00003182$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3183 ac_cache_corrupted=: ;;
3184 ,set)
cristy8b350f62009-11-15 23:12:43 +00003185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003186$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3187 ac_cache_corrupted=: ;;
3188 ,);;
3189 *)
3190 if test "x$ac_old_val" != "x$ac_new_val"; then
3191 # differences in whitespace do not lead to failure.
3192 ac_old_val_w=`echo x $ac_old_val`
3193 ac_new_val_w=`echo x $ac_new_val`
3194 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003196$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3197 ac_cache_corrupted=:
3198 else
cristy8b350f62009-11-15 23:12:43 +00003199 { $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 +00003200$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3201 eval $ac_var=\$ac_old_val
3202 fi
cristy8b350f62009-11-15 23:12:43 +00003203 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003204$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003205 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003206$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3207 fi;;
3208 esac
3209 # Pass precious variables to config.status.
3210 if test "$ac_new_set" = set; then
3211 case $ac_new_val in
3212 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3213 *) ac_arg=$ac_var=$ac_new_val ;;
3214 esac
3215 case " $ac_configure_args " in
3216 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003217 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003218 esac
3219 fi
3220done
3221if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003223$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003225$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy0684af42010-07-09 00:00:05 +00003226 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003227fi
cristy8b350f62009-11-15 23:12:43 +00003228## -------------------- ##
3229## Main body of script. ##
3230## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003231
3232ac_ext=c
3233ac_cpp='$CPP $CPPFLAGS'
3234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3236ac_compiler_gnu=$ac_cv_c_compiler_gnu
3237
3238
3239
3240ac_aux_dir=
3241for ac_dir in config "$srcdir"/config; do
cristy0684af42010-07-09 00:00:05 +00003242 if test -f "$ac_dir/install-sh"; then
3243 ac_aux_dir=$ac_dir
3244 ac_install_sh="$ac_aux_dir/install-sh -c"
3245 break
3246 elif test -f "$ac_dir/install.sh"; then
3247 ac_aux_dir=$ac_dir
3248 ac_install_sh="$ac_aux_dir/install.sh -c"
3249 break
3250 elif test -f "$ac_dir/shtool"; then
3251 ac_aux_dir=$ac_dir
3252 ac_install_sh="$ac_aux_dir/shtool install -c"
3253 break
3254 fi
cristy3ed852e2009-09-05 21:47:34 +00003255done
3256if test -z "$ac_aux_dir"; then
cristy0684af42010-07-09 00:00:05 +00003257 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003258fi
3259
3260# These three variables are undocumented and unsupported,
3261# and are intended to be withdrawn in a future Autoconf release.
3262# They can cause serious problems if a builder's source tree is in a directory
3263# whose full name contains unusual characters.
3264ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3265ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3266ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3267
3268
3269
3270
3271ac_config_headers="$ac_config_headers config/config.h"
3272
3273ac_config_commands="$ac_config_commands magick/magick-config.h"
3274
cristy430a7312010-01-21 20:44:04 +00003275ac_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 +00003276
3277
3278#
3279# Save initial user-tunable values
3280#
3281USER_LIBS=$LIBS
3282for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3283 eval isset=\${$var+set}
3284 if test "$isset" = 'set'; then
3285 eval val=$`echo $var`
3286 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3287 fi
3288done
3289
3290
3291CONFIGURE_ARGS="$0 ${ac_configure_args}"
3292
3293
3294# Source file containing package/library versioning information.
3295. ${srcdir}/version.sh
3296
cristy15a88782010-01-31 23:24:49 +00003297echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003298# Make sure we can run config.sub.
3299$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy0684af42010-07-09 00:00:05 +00003300 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003301
cristy8b350f62009-11-15 23:12:43 +00003302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003303$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003304if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003305 $as_echo_n "(cached) " >&6
3306else
3307 ac_build_alias=$build_alias
3308test "x$ac_build_alias" = x &&
3309 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3310test "x$ac_build_alias" = x &&
cristy0684af42010-07-09 00:00:05 +00003311 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003312ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy0684af42010-07-09 00:00:05 +00003313 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003314
3315fi
cristy8b350f62009-11-15 23:12:43 +00003316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003317$as_echo "$ac_cv_build" >&6; }
3318case $ac_cv_build in
3319*-*-*) ;;
cristy0684af42010-07-09 00:00:05 +00003320*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003321esac
3322build=$ac_cv_build
3323ac_save_IFS=$IFS; IFS='-'
3324set x $ac_cv_build
3325shift
3326build_cpu=$1
3327build_vendor=$2
3328shift; shift
3329# Remember, the first character of IFS is used to create $*,
3330# except with old shells:
3331build_os=$*
3332IFS=$ac_save_IFS
3333case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3334
3335
cristy8b350f62009-11-15 23:12:43 +00003336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003337$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003338if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003339 $as_echo_n "(cached) " >&6
3340else
3341 if test "x$host_alias" = x; then
3342 ac_cv_host=$ac_cv_build
3343else
3344 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy0684af42010-07-09 00:00:05 +00003345 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003346fi
3347
3348fi
cristy8b350f62009-11-15 23:12:43 +00003349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003350$as_echo "$ac_cv_host" >&6; }
3351case $ac_cv_host in
3352*-*-*) ;;
cristy0684af42010-07-09 00:00:05 +00003353*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003354esac
3355host=$ac_cv_host
3356ac_save_IFS=$IFS; IFS='-'
3357set x $ac_cv_host
3358shift
3359host_cpu=$1
3360host_vendor=$2
3361shift; shift
3362# Remember, the first character of IFS is used to create $*,
3363# except with old shells:
3364host_os=$*
3365IFS=$ac_save_IFS
3366case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3367
3368
cristy8b350f62009-11-15 23:12:43 +00003369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003370$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003371if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003372 $as_echo_n "(cached) " >&6
3373else
3374 if test "x$target_alias" = x; then
3375 ac_cv_target=$ac_cv_host
3376else
3377 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy0684af42010-07-09 00:00:05 +00003378 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003379fi
3380
3381fi
cristy8b350f62009-11-15 23:12:43 +00003382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003383$as_echo "$ac_cv_target" >&6; }
3384case $ac_cv_target in
3385*-*-*) ;;
cristy0684af42010-07-09 00:00:05 +00003386*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003387esac
3388target=$ac_cv_target
3389ac_save_IFS=$IFS; IFS='-'
3390set x $ac_cv_target
3391shift
3392target_cpu=$1
3393target_vendor=$2
3394shift; shift
3395# Remember, the first character of IFS is used to create $*,
3396# except with old shells:
3397target_os=$*
3398IFS=$ac_save_IFS
3399case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3400
3401
3402# The aliases save the names the user supplied, while $host etc.
3403# will get canonicalized.
3404test -n "$target_alias" &&
3405 test "$program_prefix$program_suffix$program_transform_name" = \
3406 NONENONEs,x,x, &&
3407 program_prefix=${target_alias}-
3408
cristy837d6dc2010-02-27 01:16:57 +00003409
3410
3411
3412
cristy3225a072010-04-17 01:47:28 +00003413MAGICK_TARGET_CPU=$target_cpu
3414
3415
3416MAGICK_TARGET_VENDOR=$target_vendor
3417
3418
3419MAGICK_TARGET_OS=$target_os
3420
3421
cristy3ed852e2009-09-05 21:47:34 +00003422# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003423MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3424
3425MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3426
cristy3ed852e2009-09-05 21:47:34 +00003427
3428
3429# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003431$as_echo_n "checking whether build environment is sane... " >&6; }
3432# Just in case
3433sleep 1
3434echo timestamp > conftest.file
3435# Reject unsafe characters in $srcdir or the absolute working directory
3436# name. Accept space and tab only in the latter.
3437am_lf='
3438'
3439case `pwd` in
3440 *[\\\"\#\$\&\'\`$am_lf]*)
cristy0684af42010-07-09 00:00:05 +00003441 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003442esac
3443case $srcdir in
3444 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy0684af42010-07-09 00:00:05 +00003445 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003446esac
3447
3448# Do `set' in a subshell so we don't clobber the current shell's
3449# arguments. Must try -L first in case configure is actually a
3450# symlink; some systems play weird games with the mod time of symlinks
3451# (eg FreeBSD returns the mod time of the symlink's containing
3452# directory).
3453if (
3454 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3455 if test "$*" = "X"; then
3456 # -L didn't work.
3457 set X `ls -t "$srcdir/configure" conftest.file`
3458 fi
3459 rm -f conftest.file
3460 if test "$*" != "X $srcdir/configure conftest.file" \
3461 && test "$*" != "X conftest.file $srcdir/configure"; then
3462
3463 # If neither matched, then we have a broken ls. This can happen
3464 # if, for instance, CONFIG_SHELL is bash and it inherits a
3465 # broken ls alias from the environment. This has actually
3466 # happened. Such a system could not be considered "sane".
cristy0684af42010-07-09 00:00:05 +00003467 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy8b350f62009-11-15 23:12:43 +00003468alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003469 fi
3470
3471 test "$2" = conftest.file
3472 )
3473then
3474 # Ok.
3475 :
3476else
cristy0684af42010-07-09 00:00:05 +00003477 as_fn_error $? "newly created file is older than distributed files!
cristy8b350f62009-11-15 23:12:43 +00003478Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003479fi
cristy8b350f62009-11-15 23:12:43 +00003480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003481$as_echo "yes" >&6; }
3482
3483am__api_version='1.11'
3484
3485# Find a good install program. We prefer a C program (faster),
3486# so one script is as good as another. But avoid the broken or
3487# incompatible versions:
3488# SysV /etc/install, /usr/sbin/install
3489# SunOS /usr/etc/install
3490# IRIX /sbin/install
3491# AIX /bin/install
3492# AmigaOS /C/install, which installs bootblocks on floppy discs
3493# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3494# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3495# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3496# OS/2's system install, which has a completely different semantic
3497# ./install, which can be erroneously created by make from ./install.sh.
3498# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003500$as_echo_n "checking for a BSD-compatible install... " >&6; }
3501if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003502if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003503 $as_echo_n "(cached) " >&6
3504else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506for as_dir in $PATH
3507do
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003510 # Account for people who put trailing slashes in PATH elements.
3511case $as_dir/ in #((
3512 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003513 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003514 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003515 /usr/ucb/* ) ;;
3516 *)
3517 # OSF1 and SCO ODT 3.0 have their own names for install.
3518 # Don't use installbsd from OSF since it installs stuff as root
3519 # by default.
3520 for ac_prog in ginstall scoinst install; do
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3523 if test $ac_prog = install &&
3524 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3525 # AIX install. It has an incompatible calling convention.
3526 :
3527 elif test $ac_prog = install &&
3528 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3529 # program-specific install script used by HP pwplus--don't use.
3530 :
3531 else
3532 rm -rf conftest.one conftest.two conftest.dir
3533 echo one > conftest.one
3534 echo two > conftest.two
3535 mkdir conftest.dir
3536 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3537 test -s conftest.one && test -s conftest.two &&
3538 test -s conftest.dir/conftest.one &&
3539 test -s conftest.dir/conftest.two
3540 then
3541 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3542 break 3
3543 fi
3544 fi
3545 fi
3546 done
3547 done
3548 ;;
3549esac
3550
cristy8b350f62009-11-15 23:12:43 +00003551 done
cristy3ed852e2009-09-05 21:47:34 +00003552IFS=$as_save_IFS
3553
3554rm -rf conftest.one conftest.two conftest.dir
3555
3556fi
3557 if test "${ac_cv_path_install+set}" = set; then
3558 INSTALL=$ac_cv_path_install
3559 else
3560 # As a last resort, use the slow shell script. Don't cache a
3561 # value for INSTALL within a source directory, because that will
3562 # break other packages using the cache if that directory is
3563 # removed, or if the value is a relative name.
3564 INSTALL=$ac_install_sh
3565 fi
3566fi
cristy8b350f62009-11-15 23:12:43 +00003567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003568$as_echo "$INSTALL" >&6; }
3569
3570# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3571# It thinks the first close brace ends the variable substitution.
3572test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3573
3574test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3575
3576test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3577
3578test "$program_prefix" != NONE &&
3579 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3580# Use a double $ so make ignores it.
3581test "$program_suffix" != NONE &&
3582 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3583# Double any \ or $.
3584# By default was `s,x,x', remove it if useless.
3585ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3586program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3587
3588# expand $ac_aux_dir to an absolute path
3589am_aux_dir=`cd $ac_aux_dir && pwd`
3590
3591if test x"${MISSING+set}" != xset; then
3592 case $am_aux_dir in
3593 *\ * | *\ *)
3594 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3595 *)
3596 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3597 esac
3598fi
3599# Use eval to expand $SHELL
3600if eval "$MISSING --run true"; then
3601 am_missing_run="$MISSING --run "
3602else
3603 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003605$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3606fi
3607
3608if test x"${install_sh}" != xset; then
3609 case $am_aux_dir in
3610 *\ * | *\ *)
3611 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3612 *)
3613 install_sh="\${SHELL} $am_aux_dir/install-sh"
3614 esac
3615fi
3616
3617# Installed binaries are usually stripped using `strip' when the user
3618# run `make install-strip'. However `strip' might not be the right
3619# tool to use in cross-compilation environments, therefore Automake
3620# will honor the `STRIP' environment variable to overrule this program.
3621if test "$cross_compiling" != no; then
3622 if test -n "$ac_tool_prefix"; then
3623 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3624set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003626$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003627if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003628 $as_echo_n "(cached) " >&6
3629else
3630 if test -n "$STRIP"; then
3631 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3632else
3633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634for as_dir in $PATH
3635do
3636 IFS=$as_save_IFS
3637 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003638 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3640 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003642 break 2
3643 fi
3644done
cristy8b350f62009-11-15 23:12:43 +00003645 done
cristy3ed852e2009-09-05 21:47:34 +00003646IFS=$as_save_IFS
3647
3648fi
3649fi
3650STRIP=$ac_cv_prog_STRIP
3651if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003653$as_echo "$STRIP" >&6; }
3654else
cristy8b350f62009-11-15 23:12:43 +00003655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003656$as_echo "no" >&6; }
3657fi
3658
3659
3660fi
3661if test -z "$ac_cv_prog_STRIP"; then
3662 ac_ct_STRIP=$STRIP
3663 # Extract the first word of "strip", so it can be a program name with args.
3664set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003666$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003667if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003668 $as_echo_n "(cached) " >&6
3669else
3670 if test -n "$ac_ct_STRIP"; then
3671 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3672else
3673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674for as_dir in $PATH
3675do
3676 IFS=$as_save_IFS
3677 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003678 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3680 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003682 break 2
3683 fi
3684done
cristy8b350f62009-11-15 23:12:43 +00003685 done
cristy3ed852e2009-09-05 21:47:34 +00003686IFS=$as_save_IFS
3687
3688fi
3689fi
3690ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3691if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003693$as_echo "$ac_ct_STRIP" >&6; }
3694else
cristy8b350f62009-11-15 23:12:43 +00003695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003696$as_echo "no" >&6; }
3697fi
3698
3699 if test "x$ac_ct_STRIP" = x; then
3700 STRIP=":"
3701 else
3702 case $cross_compiling:$ac_tool_warned in
3703yes:)
cristy8b350f62009-11-15 23:12:43 +00003704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3706ac_tool_warned=yes ;;
3707esac
3708 STRIP=$ac_ct_STRIP
3709 fi
3710else
3711 STRIP="$ac_cv_prog_STRIP"
3712fi
3713
3714fi
3715INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3716
cristy8b350f62009-11-15 23:12:43 +00003717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003718$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3719if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003720 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003721 $as_echo_n "(cached) " >&6
3722else
3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3725do
3726 IFS=$as_save_IFS
3727 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003728 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003729 for ac_exec_ext in '' $ac_executable_extensions; do
3730 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3731 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3732 'mkdir (GNU coreutils) '* | \
3733 'mkdir (coreutils) '* | \
3734 'mkdir (fileutils) '4.1*)
3735 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3736 break 3;;
3737 esac
3738 done
3739 done
cristy8b350f62009-11-15 23:12:43 +00003740 done
cristy3ed852e2009-09-05 21:47:34 +00003741IFS=$as_save_IFS
3742
3743fi
3744
cristycd4c5312009-11-22 01:19:08 +00003745 test -d ./--version && rmdir ./--version
cristy3ed852e2009-09-05 21:47:34 +00003746 if test "${ac_cv_path_mkdir+set}" = set; then
3747 MKDIR_P="$ac_cv_path_mkdir -p"
3748 else
3749 # As a last resort, use the slow shell script. Don't cache a
3750 # value for MKDIR_P within a source directory, because that will
3751 # break other packages using the cache if that directory is
3752 # removed, or if the value is a relative name.
cristy3ed852e2009-09-05 21:47:34 +00003753 MKDIR_P="$ac_install_sh -d"
3754 fi
3755fi
cristy8b350f62009-11-15 23:12:43 +00003756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003757$as_echo "$MKDIR_P" >&6; }
3758
3759mkdir_p="$MKDIR_P"
3760case $mkdir_p in
3761 [\\/$]* | ?:[\\/]*) ;;
3762 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3763esac
3764
3765for ac_prog in gawk mawk nawk awk
3766do
3767 # Extract the first word of "$ac_prog", so it can be a program name with args.
3768set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003770$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003771if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003772 $as_echo_n "(cached) " >&6
3773else
3774 if test -n "$AWK"; then
3775 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3776else
3777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778for as_dir in $PATH
3779do
3780 IFS=$as_save_IFS
3781 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003782 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3784 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003786 break 2
3787 fi
3788done
cristy8b350f62009-11-15 23:12:43 +00003789 done
cristy3ed852e2009-09-05 21:47:34 +00003790IFS=$as_save_IFS
3791
3792fi
3793fi
3794AWK=$ac_cv_prog_AWK
3795if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003797$as_echo "$AWK" >&6; }
3798else
cristy8b350f62009-11-15 23:12:43 +00003799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003800$as_echo "no" >&6; }
3801fi
3802
3803
3804 test -n "$AWK" && break
3805done
3806
cristy8b350f62009-11-15 23:12:43 +00003807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003808$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3809set x ${MAKE-make}
3810ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy0684af42010-07-09 00:00:05 +00003811if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003812 $as_echo_n "(cached) " >&6
3813else
3814 cat >conftest.make <<\_ACEOF
3815SHELL = /bin/sh
3816all:
3817 @echo '@@@%%%=$(MAKE)=@@@%%%'
3818_ACEOF
cristy0684af42010-07-09 00:00:05 +00003819# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy3ed852e2009-09-05 21:47:34 +00003820case `${MAKE-make} -f conftest.make 2>/dev/null` in
3821 *@@@%%%=?*=@@@%%%*)
3822 eval ac_cv_prog_make_${ac_make}_set=yes;;
3823 *)
3824 eval ac_cv_prog_make_${ac_make}_set=no;;
3825esac
3826rm -f conftest.make
3827fi
3828if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003830$as_echo "yes" >&6; }
3831 SET_MAKE=
3832else
cristy8b350f62009-11-15 23:12:43 +00003833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003834$as_echo "no" >&6; }
3835 SET_MAKE="MAKE=${MAKE-make}"
3836fi
3837
3838rm -rf .tst 2>/dev/null
3839mkdir .tst 2>/dev/null
3840if test -d .tst; then
3841 am__leading_dot=.
3842else
3843 am__leading_dot=_
3844fi
3845rmdir .tst 2>/dev/null
3846
3847if test "`cd $srcdir && pwd`" != "`pwd`"; then
3848 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3849 # is not polluted with repeated "-I."
3850 am__isrc=' -I$(srcdir)'
3851 # test to see if srcdir already configured
3852 if test -f $srcdir/config.status; then
cristy0684af42010-07-09 00:00:05 +00003853 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003854 fi
3855fi
3856
3857# test whether we have cygpath
3858if test -z "$CYGPATH_W"; then
3859 if (cygpath --version) >/dev/null 2>/dev/null; then
3860 CYGPATH_W='cygpath -w'
3861 else
3862 CYGPATH_W=echo
3863 fi
3864fi
3865
3866
3867# Define the identity of the package.
3868 PACKAGE=$PACKAGE_NAME
cristy15a88782010-01-31 23:24:49 +00003869 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003870
3871
3872# Some tools Automake needs.
3873
3874ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3875
3876
3877AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3878
3879
3880AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3881
3882
3883AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3884
3885
3886MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3887
3888# We need awk for the "check" target. The system "awk" is bad on
3889# some platforms.
3890# Always define AMTAR for backward compatibility.
3891
3892AMTAR=${AMTAR-"${am_missing_run}tar"}
3893
3894am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3895
3896
3897
3898
3899
3900
3901# Enable support for silent build rules
3902# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00003903if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003904 enableval=$enable_silent_rules;
3905fi
3906
3907case $enable_silent_rules in
3908yes) AM_DEFAULT_VERBOSITY=0;;
3909no) AM_DEFAULT_VERBOSITY=1;;
3910*) AM_DEFAULT_VERBOSITY=0;;
3911esac
3912AM_BACKSLASH='\'
3913
3914
3915MAGICK_LIB_VERSION="0x"
3916if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3917 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3918fi
3919MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3920if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3921 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3922fi
3923MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3924if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3925 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3926fi
3927MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3928
3929
3930# Definition used to define MagickLibVersionText in version.h
3931MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3932
3933
3934# Definition used to define MagickLibVersionNumber in version.h
3935MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3936
3937
3938# Regenerate config.status if ChangeLog or version.sh is updated.
3939CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3940
3941
3942PERLMAINCC=$CC
3943
3944MAGICK_CFLAGS=''
3945MAGICK_CPPFLAGS=$CPPFLAGS_USER
3946MAGICK_PCFLAGS=$CPPFLAGS_USER
3947MAGICK_LDFLAGS=''
3948MAGICK_LIBS=''
3949
3950#
3951# Evaluate shell variable equivalents to Makefile directory variables
3952#
3953if test "x$prefix" = xNONE; then
3954 prefix=$ac_default_prefix
3955fi
3956# Let make expand exec_prefix.
3957if test "x$exec_prefix" = xNONE; then
3958 exec_prefix='${prefix}'
3959fi
3960
3961#
3962eval "eval PREFIX_DIR=${prefix}"
3963
3964eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3965
3966eval "eval BIN_DIR=$bindir"
3967
3968eval "eval SBIN_DIR=$sbindir"
3969
3970eval "eval LIBEXEC_DIR=$libexecdir"
3971
3972eval "eval DATA_DIR=$datadir"
3973
3974eval "eval SYSCONF_DIR=$sysconfdir"
3975
3976eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3977
3978eval "eval LOCALSTATE_DIR=$localstatedir"
3979
3980eval "eval LIB_DIR=$libdir"
3981
3982eval "eval INCLUDE_DIR=$includedir"
3983
3984eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
3985
3986eval "eval INFO_DIR=$infodir"
3987
3988eval "eval MAN_DIR=$mandir"
3989
3990
3991# Get full paths to source and build directories
3992srcdirfull="`cd $srcdir && pwd`"
3993builddir="`pwd`"
3994
3995#
3996# Compute variables useful for running uninstalled software.
3997#
3998MAGICK_CODER_MODULE_PATH="${builddir}/coders"
3999MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4000MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4001MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4002DIRSEP=':'
4003case "${build_os}" in
4004 mingw* )
4005 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4006 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4007 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4008 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4009 DIRSEP=';'
4010 ;;
4011esac
4012case "${host_os}" in
4013 mingw* )
4014 DIRSEP=';'
4015 ;;
4016esac
4017
4018
4019
4020
4021
4022
cristya0b81c32010-01-22 02:54:33 +00004023
4024#
4025# Enable OS features.
4026#
4027DEPDIR="${am__leading_dot}deps"
4028
4029ac_config_commands="$ac_config_commands depfiles"
4030
4031
4032am_make=${MAKE-make}
4033cat > confinc << 'END'
4034am__doit:
4035 @echo this is the am__doit target
4036.PHONY: am__doit
4037END
4038# If we don't find an include directive, just comment out the code.
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4040$as_echo_n "checking for style of include used by $am_make... " >&6; }
4041am__include="#"
4042am__quote=
4043_am_result=none
4044# First try GNU make style include.
4045echo "include confinc" > confmf
4046# Ignore all kinds of additional output from `make'.
4047case `$am_make -s -f confmf 2> /dev/null` in #(
4048*the\ am__doit\ target*)
4049 am__include=include
4050 am__quote=
4051 _am_result=GNU
4052 ;;
4053esac
4054# Now try BSD make style include.
4055if test "$am__include" = "#"; then
4056 echo '.include "confinc"' > confmf
4057 case `$am_make -s -f confmf 2> /dev/null` in #(
4058 *the\ am__doit\ target*)
4059 am__include=.include
4060 am__quote="\""
4061 _am_result=BSD
4062 ;;
4063 esac
4064fi
4065
4066
4067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4068$as_echo "$_am_result" >&6; }
4069rm -f confinc confmf
4070
4071# Check whether --enable-dependency-tracking was given.
4072if test "${enable_dependency_tracking+set}" = set; then :
4073 enableval=$enable_dependency_tracking;
4074fi
4075
4076if test "x$enable_dependency_tracking" != xno; then
4077 am_depcomp="$ac_aux_dir/depcomp"
4078 AMDEPBACKSLASH='\'
4079fi
4080 if test "x$enable_dependency_tracking" != xno; then
4081 AMDEP_TRUE=
4082 AMDEP_FALSE='#'
4083else
4084 AMDEP_TRUE='#'
4085 AMDEP_FALSE=
4086fi
4087
4088
cristy3ed852e2009-09-05 21:47:34 +00004089ac_ext=c
4090ac_cpp='$CPP $CPPFLAGS'
4091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094if test -n "$ac_tool_prefix"; then
4095 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4096set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004098$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004099if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004100 $as_echo_n "(cached) " >&6
4101else
4102 if test -n "$CC"; then
4103 ac_cv_prog_CC="$CC" # Let the user override the test.
4104else
4105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106for as_dir in $PATH
4107do
4108 IFS=$as_save_IFS
4109 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004110 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4112 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004114 break 2
4115 fi
4116done
cristy8b350f62009-11-15 23:12:43 +00004117 done
cristy3ed852e2009-09-05 21:47:34 +00004118IFS=$as_save_IFS
4119
4120fi
4121fi
4122CC=$ac_cv_prog_CC
4123if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004125$as_echo "$CC" >&6; }
4126else
cristy8b350f62009-11-15 23:12:43 +00004127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004128$as_echo "no" >&6; }
4129fi
4130
4131
4132fi
4133if test -z "$ac_cv_prog_CC"; then
4134 ac_ct_CC=$CC
4135 # Extract the first word of "gcc", so it can be a program name with args.
4136set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004138$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004139if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004140 $as_echo_n "(cached) " >&6
4141else
4142 if test -n "$ac_ct_CC"; then
4143 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4144else
4145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4146for as_dir in $PATH
4147do
4148 IFS=$as_save_IFS
4149 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004150 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4152 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004154 break 2
4155 fi
4156done
cristy8b350f62009-11-15 23:12:43 +00004157 done
cristy3ed852e2009-09-05 21:47:34 +00004158IFS=$as_save_IFS
4159
4160fi
4161fi
4162ac_ct_CC=$ac_cv_prog_ac_ct_CC
4163if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004165$as_echo "$ac_ct_CC" >&6; }
4166else
cristy8b350f62009-11-15 23:12:43 +00004167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004168$as_echo "no" >&6; }
4169fi
4170
4171 if test "x$ac_ct_CC" = x; then
4172 CC=""
4173 else
4174 case $cross_compiling:$ac_tool_warned in
4175yes:)
cristy8b350f62009-11-15 23:12:43 +00004176{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004177$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4178ac_tool_warned=yes ;;
4179esac
4180 CC=$ac_ct_CC
4181 fi
4182else
4183 CC="$ac_cv_prog_CC"
4184fi
4185
4186if test -z "$CC"; then
4187 if test -n "$ac_tool_prefix"; then
4188 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4189set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004191$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004192if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004193 $as_echo_n "(cached) " >&6
4194else
4195 if test -n "$CC"; then
4196 ac_cv_prog_CC="$CC" # Let the user override the test.
4197else
4198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199for as_dir in $PATH
4200do
4201 IFS=$as_save_IFS
4202 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004203 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4205 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004207 break 2
4208 fi
4209done
cristy8b350f62009-11-15 23:12:43 +00004210 done
cristy3ed852e2009-09-05 21:47:34 +00004211IFS=$as_save_IFS
4212
4213fi
4214fi
4215CC=$ac_cv_prog_CC
4216if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004218$as_echo "$CC" >&6; }
4219else
cristy8b350f62009-11-15 23:12:43 +00004220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004221$as_echo "no" >&6; }
4222fi
4223
4224
4225 fi
4226fi
4227if test -z "$CC"; then
4228 # Extract the first word of "cc", so it can be a program name with args.
4229set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004231$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004232if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004233 $as_echo_n "(cached) " >&6
4234else
4235 if test -n "$CC"; then
4236 ac_cv_prog_CC="$CC" # Let the user override the test.
4237else
4238 ac_prog_rejected=no
4239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240for as_dir in $PATH
4241do
4242 IFS=$as_save_IFS
4243 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004244 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4246 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4247 ac_prog_rejected=yes
4248 continue
4249 fi
4250 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004252 break 2
4253 fi
4254done
cristy8b350f62009-11-15 23:12:43 +00004255 done
cristy3ed852e2009-09-05 21:47:34 +00004256IFS=$as_save_IFS
4257
4258if test $ac_prog_rejected = yes; then
4259 # We found a bogon in the path, so make sure we never use it.
4260 set dummy $ac_cv_prog_CC
4261 shift
4262 if test $# != 0; then
4263 # We chose a different compiler from the bogus one.
4264 # However, it has the same basename, so the bogon will be chosen
4265 # first if we set CC to just the basename; use the full file name.
4266 shift
4267 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4268 fi
4269fi
4270fi
4271fi
4272CC=$ac_cv_prog_CC
4273if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004275$as_echo "$CC" >&6; }
4276else
cristy8b350f62009-11-15 23:12:43 +00004277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004278$as_echo "no" >&6; }
4279fi
4280
4281
4282fi
4283if test -z "$CC"; then
4284 if test -n "$ac_tool_prefix"; then
4285 for ac_prog in cl.exe
4286 do
4287 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4288set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004290$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004291if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004292 $as_echo_n "(cached) " >&6
4293else
4294 if test -n "$CC"; then
4295 ac_cv_prog_CC="$CC" # Let the user override the test.
4296else
4297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298for as_dir in $PATH
4299do
4300 IFS=$as_save_IFS
4301 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004302 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4304 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004306 break 2
4307 fi
4308done
cristy8b350f62009-11-15 23:12:43 +00004309 done
cristy3ed852e2009-09-05 21:47:34 +00004310IFS=$as_save_IFS
4311
4312fi
4313fi
4314CC=$ac_cv_prog_CC
4315if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004317$as_echo "$CC" >&6; }
4318else
cristy8b350f62009-11-15 23:12:43 +00004319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004320$as_echo "no" >&6; }
4321fi
4322
4323
4324 test -n "$CC" && break
4325 done
4326fi
4327if test -z "$CC"; then
4328 ac_ct_CC=$CC
4329 for ac_prog in cl.exe
4330do
4331 # Extract the first word of "$ac_prog", so it can be a program name with args.
4332set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004334$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004335if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004336 $as_echo_n "(cached) " >&6
4337else
4338 if test -n "$ac_ct_CC"; then
4339 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4340else
4341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342for as_dir in $PATH
4343do
4344 IFS=$as_save_IFS
4345 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004346 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4348 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004350 break 2
4351 fi
4352done
cristy8b350f62009-11-15 23:12:43 +00004353 done
cristy3ed852e2009-09-05 21:47:34 +00004354IFS=$as_save_IFS
4355
4356fi
4357fi
4358ac_ct_CC=$ac_cv_prog_ac_ct_CC
4359if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004361$as_echo "$ac_ct_CC" >&6; }
4362else
cristy8b350f62009-11-15 23:12:43 +00004363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004364$as_echo "no" >&6; }
4365fi
4366
4367
4368 test -n "$ac_ct_CC" && break
4369done
4370
4371 if test "x$ac_ct_CC" = x; then
4372 CC=""
4373 else
4374 case $cross_compiling:$ac_tool_warned in
4375yes:)
cristy8b350f62009-11-15 23:12:43 +00004376{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4378ac_tool_warned=yes ;;
4379esac
4380 CC=$ac_ct_CC
4381 fi
4382fi
4383
4384fi
4385
4386
cristy8b350f62009-11-15 23:12:43 +00004387test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004388$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +00004389as_fn_error $? "no acceptable C compiler found in \$PATH
4390See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004391
4392# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004393$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004394set X $ac_compile
4395ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004396for ac_option in --version -v -V -qversion; do
4397 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004398case "(($ac_try" in
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4401esac
cristy8b350f62009-11-15 23:12:43 +00004402eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4403$as_echo "$ac_try_echo"; } >&5
4404 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004405 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004406 if test -s conftest.err; then
4407 sed '10a\
4408... rest of stderr output deleted ...
4409 10q' conftest.err >conftest.er1
4410 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004411 fi
cristycd4c5312009-11-22 01:19:08 +00004412 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4414 test $ac_status = 0; }
4415done
cristy3ed852e2009-09-05 21:47:34 +00004416
cristy8b350f62009-11-15 23:12:43 +00004417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004418/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004419
cristy3ed852e2009-09-05 21:47:34 +00004420int
4421main ()
4422{
4423
4424 ;
4425 return 0;
4426}
4427_ACEOF
4428ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004429ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004430# Try to create an executable without -o first, disregard a.out.
4431# It will help us diagnose broken compilers, and finding out an intuition
4432# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4434$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004435ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4436
4437# The possible output files:
4438ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4439
4440ac_rmfiles=
4441for ac_file in $ac_files
4442do
4443 case $ac_file in
4444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4445 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4446 esac
4447done
4448rm -f $ac_rmfiles
4449
cristy8b350f62009-11-15 23:12:43 +00004450if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004451case "(($ac_try" in
4452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453 *) ac_try_echo=$ac_try;;
4454esac
cristy8b350f62009-11-15 23:12:43 +00004455eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4456$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004457 (eval "$ac_link_default") 2>&5
4458 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4460 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004461 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4462# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4463# in a Makefile. We should not override ac_cv_exeext if it was cached,
4464# so that the user can short-circuit this test for compilers unknown to
4465# Autoconf.
4466for ac_file in $ac_files ''
4467do
4468 test -f "$ac_file" || continue
4469 case $ac_file in
4470 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4471 ;;
4472 [ab].out )
4473 # We found the default executable, but exeext='' is most
4474 # certainly right.
4475 break;;
4476 *.* )
cristy8b350f62009-11-15 23:12:43 +00004477 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004478 then :; else
4479 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4480 fi
4481 # We set ac_cv_exeext here because the later test for it is not
4482 # safe: cross compilers may not add the suffix if given an `-o'
4483 # argument, so we may need to know it at that point already.
4484 # Even if this section looks crufty: it has the advantage of
4485 # actually working.
4486 break;;
4487 * )
4488 break;;
4489 esac
4490done
4491test "$ac_cv_exeext" = no && ac_cv_exeext=
4492
4493else
4494 ac_file=''
4495fi
cristy8b350f62009-11-15 23:12:43 +00004496if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498$as_echo "no" >&6; }
4499$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004500sed 's/^/| /' conftest.$ac_ext >&5
4501
cristy8b350f62009-11-15 23:12:43 +00004502{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +00004504as_fn_error 77 "C compiler cannot create executables
4505See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004506else
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4508$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004509fi
cristycd4c5312009-11-22 01:19:08 +00004510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4511$as_echo_n "checking for C compiler default output file name... " >&6; }
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4513$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004514ac_exeext=$ac_cv_exeext
4515
cristycd4c5312009-11-22 01:19:08 +00004516rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004517ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004519$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004520if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004521case "(($ac_try" in
4522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523 *) ac_try_echo=$ac_try;;
4524esac
cristy8b350f62009-11-15 23:12:43 +00004525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4526$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004527 (eval "$ac_link") 2>&5
4528 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4530 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004531 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4532# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4533# work properly (i.e., refer to `conftest.exe'), while it won't with
4534# `rm'.
4535for ac_file in conftest.exe conftest conftest.*; do
4536 test -f "$ac_file" || continue
4537 case $ac_file in
4538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4539 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4540 break;;
4541 * ) break;;
4542 esac
4543done
4544else
cristy8b350f62009-11-15 23:12:43 +00004545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004546$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +00004547as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4548See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004549fi
cristycd4c5312009-11-22 01:19:08 +00004550rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004552$as_echo "$ac_cv_exeext" >&6; }
4553
4554rm -f conftest.$ac_ext
4555EXEEXT=$ac_cv_exeext
4556ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558/* end confdefs.h. */
4559#include <stdio.h>
4560int
4561main ()
4562{
4563FILE *f = fopen ("conftest.out", "w");
4564 return ferror (f) || fclose (f) != 0;
4565
4566 ;
4567 return 0;
4568}
4569_ACEOF
4570ac_clean_files="$ac_clean_files conftest.out"
4571# Check that the compiler produces executables we can run. If not, either
4572# the compiler is broken, or we cross compile.
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4574$as_echo_n "checking whether we are cross compiling... " >&6; }
4575if test "$cross_compiling" != yes; then
4576 { { ac_try="$ac_link"
4577case "(($ac_try" in
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4580esac
4581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4582$as_echo "$ac_try_echo"; } >&5
4583 (eval "$ac_link") 2>&5
4584 ac_status=$?
4585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4586 test $ac_status = 0; }
4587 if { ac_try='./conftest$ac_cv_exeext'
4588 { { case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4591esac
4592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4593$as_echo "$ac_try_echo"; } >&5
4594 (eval "$ac_try") 2>&5
4595 ac_status=$?
4596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4597 test $ac_status = 0; }; }; then
4598 cross_compiling=no
4599 else
4600 if test "$cross_compiling" = maybe; then
4601 cross_compiling=yes
4602 else
4603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4604$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +00004605as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004606If you meant to cross compile, use \`--host'.
cristy0684af42010-07-09 00:00:05 +00004607See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004608 fi
4609 fi
4610fi
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4612$as_echo "$cross_compiling" >&6; }
4613
4614rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4615ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004617$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004618if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004619 $as_echo_n "(cached) " >&6
4620else
cristy8b350f62009-11-15 23:12:43 +00004621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004622/* end confdefs.h. */
4623
4624int
4625main ()
4626{
4627
4628 ;
4629 return 0;
4630}
4631_ACEOF
4632rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004633if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004634case "(($ac_try" in
4635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636 *) ac_try_echo=$ac_try;;
4637esac
cristy8b350f62009-11-15 23:12:43 +00004638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4639$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004640 (eval "$ac_compile") 2>&5
4641 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4643 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004644 for ac_file in conftest.o conftest.obj conftest.*; do
4645 test -f "$ac_file" || continue;
4646 case $ac_file in
4647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4648 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4649 break;;
4650 esac
4651done
4652else
4653 $as_echo "$as_me: failed program was:" >&5
4654sed 's/^/| /' conftest.$ac_ext >&5
4655
cristy8b350f62009-11-15 23:12:43 +00004656{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004657$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +00004658as_fn_error $? "cannot compute suffix of object files: cannot compile
4659See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004660fi
cristy3ed852e2009-09-05 21:47:34 +00004661rm -f conftest.$ac_cv_objext conftest.$ac_ext
4662fi
cristy8b350f62009-11-15 23:12:43 +00004663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004664$as_echo "$ac_cv_objext" >&6; }
4665OBJEXT=$ac_cv_objext
4666ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004668$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004669if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004670 $as_echo_n "(cached) " >&6
4671else
cristy8b350f62009-11-15 23:12:43 +00004672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004673/* end confdefs.h. */
4674
4675int
4676main ()
4677{
4678#ifndef __GNUC__
4679 choke me
4680#endif
4681
4682 ;
4683 return 0;
4684}
4685_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004686if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004687 ac_compiler_gnu=yes
4688else
cristy8b350f62009-11-15 23:12:43 +00004689 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004690fi
cristy3ed852e2009-09-05 21:47:34 +00004691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692ac_cv_c_compiler_gnu=$ac_compiler_gnu
4693
4694fi
cristy8b350f62009-11-15 23:12:43 +00004695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004696$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4697if test $ac_compiler_gnu = yes; then
4698 GCC=yes
4699else
4700 GCC=
4701fi
4702ac_test_CFLAGS=${CFLAGS+set}
4703ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004705$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004706if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004707 $as_echo_n "(cached) " >&6
4708else
4709 ac_save_c_werror_flag=$ac_c_werror_flag
4710 ac_c_werror_flag=yes
4711 ac_cv_prog_cc_g=no
4712 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004714/* end confdefs.h. */
4715
4716int
4717main ()
4718{
4719
4720 ;
4721 return 0;
4722}
4723_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004724if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004725 ac_cv_prog_cc_g=yes
4726else
cristy8b350f62009-11-15 23:12:43 +00004727 CFLAGS=""
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004729/* end confdefs.h. */
4730
4731int
4732main ()
4733{
4734
4735 ;
4736 return 0;
4737}
4738_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004739if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004740
cristy8b350f62009-11-15 23:12:43 +00004741else
4742 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004743 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004745/* end confdefs.h. */
4746
4747int
4748main ()
4749{
4750
4751 ;
4752 return 0;
4753}
4754_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004755if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004756 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004757fi
cristy3ed852e2009-09-05 21:47:34 +00004758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4759fi
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
4763 ac_c_werror_flag=$ac_save_c_werror_flag
4764fi
cristy8b350f62009-11-15 23:12:43 +00004765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004766$as_echo "$ac_cv_prog_cc_g" >&6; }
4767if test "$ac_test_CFLAGS" = set; then
4768 CFLAGS=$ac_save_CFLAGS
4769elif test $ac_cv_prog_cc_g = yes; then
4770 if test "$GCC" = yes; then
4771 CFLAGS="-g -O2"
4772 else
4773 CFLAGS="-g"
4774 fi
4775else
4776 if test "$GCC" = yes; then
4777 CFLAGS="-O2"
4778 else
4779 CFLAGS=
4780 fi
4781fi
cristy8b350f62009-11-15 23:12:43 +00004782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004783$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004784if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004785 $as_echo_n "(cached) " >&6
4786else
4787 ac_cv_prog_cc_c89=no
4788ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004790/* end confdefs.h. */
4791#include <stdarg.h>
4792#include <stdio.h>
4793#include <sys/types.h>
4794#include <sys/stat.h>
4795/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4796struct buf { int x; };
4797FILE * (*rcsopen) (struct buf *, struct stat *, int);
4798static char *e (p, i)
4799 char **p;
4800 int i;
4801{
4802 return p[i];
4803}
4804static char *f (char * (*g) (char **, int), char **p, ...)
4805{
4806 char *s;
4807 va_list v;
4808 va_start (v,p);
4809 s = g (p, va_arg (v,int));
4810 va_end (v);
4811 return s;
4812}
4813
4814/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4815 function prototypes and stuff, but not '\xHH' hex character constants.
4816 These don't provoke an error unfortunately, instead are silently treated
4817 as 'x'. The following induces an error, until -std is added to get
4818 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4819 array size at least. It's necessary to write '\x00'==0 to get something
4820 that's true only with -std. */
4821int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4822
4823/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4824 inside strings and character constants. */
4825#define FOO(x) 'x'
4826int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4827
4828int test (int i, double x);
4829struct s1 {int (*f) (int a);};
4830struct s2 {int (*f) (double a);};
4831int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4832int argc;
4833char **argv;
4834int
4835main ()
4836{
4837return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4838 ;
4839 return 0;
4840}
4841_ACEOF
4842for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4843 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4844do
4845 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004846 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004847 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004848fi
cristy3ed852e2009-09-05 21:47:34 +00004849rm -f core conftest.err conftest.$ac_objext
4850 test "x$ac_cv_prog_cc_c89" != "xno" && break
4851done
4852rm -f conftest.$ac_ext
4853CC=$ac_save_CC
4854
4855fi
4856# AC_CACHE_VAL
4857case "x$ac_cv_prog_cc_c89" in
4858 x)
cristy8b350f62009-11-15 23:12:43 +00004859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004860$as_echo "none needed" >&6; } ;;
4861 xno)
cristy8b350f62009-11-15 23:12:43 +00004862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004863$as_echo "unsupported" >&6; } ;;
4864 *)
4865 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004867$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4868esac
cristy8b350f62009-11-15 23:12:43 +00004869if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004870
cristy8b350f62009-11-15 23:12:43 +00004871fi
cristy3ed852e2009-09-05 21:47:34 +00004872
4873ac_ext=c
4874ac_cpp='$CPP $CPPFLAGS'
4875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4877ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00004878
cristya0b81c32010-01-22 02:54:33 +00004879depcc="$CC" am_compiler_list=
cristy3ed852e2009-09-05 21:47:34 +00004880
cristya0b81c32010-01-22 02:54:33 +00004881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4882$as_echo_n "checking dependency style of $depcc... " >&6; }
4883if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4884 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00004885else
cristya0b81c32010-01-22 02:54:33 +00004886 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4887 # We make a subdir and do the tests there. Otherwise we can end up
4888 # making bogus files that we don't know about and never remove. For
4889 # instance it was reported that on HP-UX the gcc test will end up
4890 # making a dummy file named `D' -- because `-MD' means `put the output
4891 # in D'.
4892 mkdir conftest.dir
4893 # Copy depcomp to subdir because otherwise we won't find it if we're
4894 # using a relative directory.
4895 cp "$am_depcomp" conftest.dir
4896 cd conftest.dir
4897 # We will build objects and dependencies in a subdirectory because
4898 # it helps to detect inapplicable dependency modes. For instance
4899 # both Tru64's cc and ICC support -MD to output dependencies as a
4900 # side effect of compilation, but ICC will put the dependencies in
4901 # the current directory while Tru64 will put them in the object
4902 # directory.
4903 mkdir sub
4904
4905 am_cv_CC_dependencies_compiler_type=none
4906 if test "$am_compiler_list" = ""; then
4907 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4908 fi
4909 am__universal=false
4910 case " $depcc " in #(
4911 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4912 esac
4913
4914 for depmode in $am_compiler_list; do
4915 # Setup a source with many dependencies, because some compilers
4916 # like to wrap large dependency lists on column 80 (with \), and
4917 # we should not choose a depcomp mode which is confused by this.
4918 #
4919 # We need to recreate these files for each test, as the compiler may
4920 # overwrite some of them when testing with obscure command lines.
4921 # This happens at least with the AIX C compiler.
4922 : > sub/conftest.c
4923 for i in 1 2 3 4 5 6; do
4924 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4925 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4926 # Solaris 8's {/usr,}/bin/sh.
4927 touch sub/conftst$i.h
4928 done
4929 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4930
4931 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4932 # mode. It turns out that the SunPro C++ compiler does not properly
4933 # handle `-M -o', and we need to detect this. Also, some Intel
4934 # versions had trouble with output in subdirs
4935 am__obj=sub/conftest.${OBJEXT-o}
4936 am__minus_obj="-o $am__obj"
4937 case $depmode in
4938 gcc)
4939 # This depmode causes a compiler race in universal mode.
4940 test "$am__universal" = false || continue
4941 ;;
4942 nosideeffect)
4943 # after this tag, mechanisms are not by side-effect, so they'll
4944 # only be used when explicitly requested
4945 if test "x$enable_dependency_tracking" = xyes; then
4946 continue
4947 else
4948 break
4949 fi
4950 ;;
4951 msvisualcpp | msvcmsys)
4952 # This compiler won't grok `-c -o', but also, the minuso test has
4953 # not run yet. These depmodes are late enough in the game, and
4954 # so weak that their functioning should not be impacted.
4955 am__obj=conftest.${OBJEXT-o}
4956 am__minus_obj=
4957 ;;
4958 none) break ;;
4959 esac
4960 if depmode=$depmode \
4961 source=sub/conftest.c object=$am__obj \
4962 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4963 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4964 >/dev/null 2>conftest.err &&
4965 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4966 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4967 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4968 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4969 # icc doesn't choke on unknown options, it will just issue warnings
4970 # or remarks (even with -Werror). So we grep stderr for any message
4971 # that says an option was ignored or not supported.
4972 # When given -MP, icc 7.0 and 7.1 complain thusly:
4973 # icc: Command line warning: ignoring option '-M'; no argument required
4974 # The diagnosis changed in icc 8.0:
4975 # icc: Command line remark: option '-MP' not supported
4976 if (grep 'ignoring option' conftest.err ||
4977 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4978 am_cv_CC_dependencies_compiler_type=$depmode
4979 break
4980 fi
4981 fi
4982 done
4983
4984 cd ..
4985 rm -rf conftest.dir
4986else
4987 am_cv_CC_dependencies_compiler_type=none
4988fi
4989
4990fi
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4992$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4993CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4994
4995 if
4996 test "x$enable_dependency_tracking" != xno \
4997 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4998 am__fastdepCC_TRUE=
4999 am__fastdepCC_FALSE='#'
5000else
5001 am__fastdepCC_TRUE='#'
5002 am__fastdepCC_FALSE=
cristy3ed852e2009-09-05 21:47:34 +00005003fi
5004
5005
5006
cristya0b81c32010-01-22 02:54:33 +00005007ac_ext=c
5008ac_cpp='$CPP $CPPFLAGS'
5009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011ac_compiler_gnu=$ac_cv_c_compiler_gnu
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5013$as_echo_n "checking how to run the C preprocessor... " >&6; }
5014# On Suns, sometimes $CPP names a directory.
5015if test -n "$CPP" && test -d "$CPP"; then
5016 CPP=
5017fi
5018if test -z "$CPP"; then
5019 if test "${ac_cv_prog_CPP+set}" = set; then :
5020 $as_echo_n "(cached) " >&6
5021else
5022 # Double quotes because CPP needs to be expanded
5023 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5024 do
5025 ac_preproc_ok=false
5026for ac_c_preproc_warn_flag in '' yes
5027do
5028 # Use a header file that comes with gcc, so configuring glibc
5029 # with a fresh cross-compiler works.
5030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5031 # <limits.h> exists even on freestanding compilers.
5032 # On the NeXT, cc -E runs the code through the compiler's parser,
5033 # not just through cpp. "Syntax error" is here to catch this case.
5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035/* end confdefs.h. */
5036#ifdef __STDC__
5037# include <limits.h>
5038#else
5039# include <assert.h>
5040#endif
5041 Syntax error
5042_ACEOF
5043if ac_fn_c_try_cpp "$LINENO"; then :
5044
5045else
5046 # Broken: fails on valid input.
5047continue
5048fi
5049rm -f conftest.err conftest.$ac_ext
5050
5051 # OK, works on sane cases. Now check whether nonexistent headers
5052 # can be detected and how.
5053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054/* end confdefs.h. */
5055#include <ac_nonexistent.h>
5056_ACEOF
5057if ac_fn_c_try_cpp "$LINENO"; then :
5058 # Broken: success on invalid input.
5059continue
5060else
5061 # Passes both tests.
5062ac_preproc_ok=:
5063break
5064fi
5065rm -f conftest.err conftest.$ac_ext
5066
5067done
5068# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5069rm -f conftest.err conftest.$ac_ext
5070if $ac_preproc_ok; then :
5071 break
5072fi
5073
5074 done
5075 ac_cv_prog_CPP=$CPP
5076
5077fi
5078 CPP=$ac_cv_prog_CPP
5079else
5080 ac_cv_prog_CPP=$CPP
5081fi
5082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5083$as_echo "$CPP" >&6; }
5084ac_preproc_ok=false
5085for ac_c_preproc_warn_flag in '' yes
5086do
5087 # Use a header file that comes with gcc, so configuring glibc
5088 # with a fresh cross-compiler works.
5089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5090 # <limits.h> exists even on freestanding compilers.
5091 # On the NeXT, cc -E runs the code through the compiler's parser,
5092 # not just through cpp. "Syntax error" is here to catch this case.
5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094/* end confdefs.h. */
5095#ifdef __STDC__
5096# include <limits.h>
5097#else
5098# include <assert.h>
5099#endif
5100 Syntax error
5101_ACEOF
5102if ac_fn_c_try_cpp "$LINENO"; then :
5103
5104else
5105 # Broken: fails on valid input.
5106continue
5107fi
5108rm -f conftest.err conftest.$ac_ext
5109
5110 # OK, works on sane cases. Now check whether nonexistent headers
5111 # can be detected and how.
5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113/* end confdefs.h. */
5114#include <ac_nonexistent.h>
5115_ACEOF
5116if ac_fn_c_try_cpp "$LINENO"; then :
5117 # Broken: success on invalid input.
5118continue
5119else
5120 # Passes both tests.
5121ac_preproc_ok=:
5122break
5123fi
5124rm -f conftest.err conftest.$ac_ext
5125
5126done
5127# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5128rm -f conftest.err conftest.$ac_ext
5129if $ac_preproc_ok; then :
5130
5131else
5132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5133$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +00005134as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5135See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005136fi
5137
5138ac_ext=c
5139ac_cpp='$CPP $CPPFLAGS'
5140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142ac_compiler_gnu=$ac_cv_c_compiler_gnu
5143
5144
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5146$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5147if test "${ac_cv_path_GREP+set}" = set; then :
5148 $as_echo_n "(cached) " >&6
5149else
5150 if test -z "$GREP"; then
5151 ac_path_GREP_found=false
5152 # Loop through the user's path and test for each of PROGNAME-LIST
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5155do
5156 IFS=$as_save_IFS
5157 test -z "$as_dir" && as_dir=.
5158 for ac_prog in grep ggrep; do
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5161 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5162# Check for GNU ac_path_GREP and select it if it is found.
5163 # Check for GNU $ac_path_GREP
5164case `"$ac_path_GREP" --version 2>&1` in
5165*GNU*)
5166 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5167*)
5168 ac_count=0
5169 $as_echo_n 0123456789 >"conftest.in"
5170 while :
5171 do
5172 cat "conftest.in" "conftest.in" >"conftest.tmp"
5173 mv "conftest.tmp" "conftest.in"
5174 cp "conftest.in" "conftest.nl"
5175 $as_echo 'GREP' >> "conftest.nl"
5176 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5177 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5178 as_fn_arith $ac_count + 1 && ac_count=$as_val
5179 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5180 # Best one so far, save it but keep looking for a better one
5181 ac_cv_path_GREP="$ac_path_GREP"
5182 ac_path_GREP_max=$ac_count
5183 fi
5184 # 10*(2^10) chars as input seems more than enough
5185 test $ac_count -gt 10 && break
5186 done
5187 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5188esac
5189
5190 $ac_path_GREP_found && break 3
5191 done
5192 done
5193 done
5194IFS=$as_save_IFS
5195 if test -z "$ac_cv_path_GREP"; then
cristy0684af42010-07-09 00:00:05 +00005196 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005197 fi
5198else
5199 ac_cv_path_GREP=$GREP
5200fi
5201
5202fi
5203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5204$as_echo "$ac_cv_path_GREP" >&6; }
5205 GREP="$ac_cv_path_GREP"
5206
5207
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5209$as_echo_n "checking for egrep... " >&6; }
5210if test "${ac_cv_path_EGREP+set}" = set; then :
5211 $as_echo_n "(cached) " >&6
5212else
5213 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5214 then ac_cv_path_EGREP="$GREP -E"
5215 else
5216 if test -z "$EGREP"; then
5217 ac_path_EGREP_found=false
5218 # Loop through the user's path and test for each of PROGNAME-LIST
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5221do
5222 IFS=$as_save_IFS
5223 test -z "$as_dir" && as_dir=.
5224 for ac_prog in egrep; do
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5227 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5228# Check for GNU ac_path_EGREP and select it if it is found.
5229 # Check for GNU $ac_path_EGREP
5230case `"$ac_path_EGREP" --version 2>&1` in
5231*GNU*)
5232 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5233*)
5234 ac_count=0
5235 $as_echo_n 0123456789 >"conftest.in"
5236 while :
5237 do
5238 cat "conftest.in" "conftest.in" >"conftest.tmp"
5239 mv "conftest.tmp" "conftest.in"
5240 cp "conftest.in" "conftest.nl"
5241 $as_echo 'EGREP' >> "conftest.nl"
5242 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5243 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5244 as_fn_arith $ac_count + 1 && ac_count=$as_val
5245 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5246 # Best one so far, save it but keep looking for a better one
5247 ac_cv_path_EGREP="$ac_path_EGREP"
5248 ac_path_EGREP_max=$ac_count
5249 fi
5250 # 10*(2^10) chars as input seems more than enough
5251 test $ac_count -gt 10 && break
5252 done
5253 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5254esac
5255
5256 $ac_path_EGREP_found && break 3
5257 done
5258 done
5259 done
5260IFS=$as_save_IFS
5261 if test -z "$ac_cv_path_EGREP"; then
cristy0684af42010-07-09 00:00:05 +00005262 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005263 fi
5264else
5265 ac_cv_path_EGREP=$EGREP
5266fi
5267
5268 fi
5269fi
5270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5271$as_echo "$ac_cv_path_EGREP" >&6; }
5272 EGREP="$ac_cv_path_EGREP"
5273
5274
5275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5276$as_echo_n "checking for ANSI C header files... " >&6; }
5277if test "${ac_cv_header_stdc+set}" = set; then :
5278 $as_echo_n "(cached) " >&6
5279else
5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281/* end confdefs.h. */
5282#include <stdlib.h>
5283#include <stdarg.h>
5284#include <string.h>
5285#include <float.h>
5286
5287int
5288main ()
5289{
5290
5291 ;
5292 return 0;
5293}
5294_ACEOF
5295if ac_fn_c_try_compile "$LINENO"; then :
5296 ac_cv_header_stdc=yes
5297else
5298 ac_cv_header_stdc=no
5299fi
5300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5301
5302if test $ac_cv_header_stdc = yes; then
5303 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305/* end confdefs.h. */
5306#include <string.h>
5307
5308_ACEOF
5309if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5310 $EGREP "memchr" >/dev/null 2>&1; then :
5311
5312else
5313 ac_cv_header_stdc=no
5314fi
5315rm -f conftest*
5316
5317fi
5318
5319if test $ac_cv_header_stdc = yes; then
5320 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322/* end confdefs.h. */
5323#include <stdlib.h>
5324
5325_ACEOF
5326if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5327 $EGREP "free" >/dev/null 2>&1; then :
5328
5329else
5330 ac_cv_header_stdc=no
5331fi
5332rm -f conftest*
5333
5334fi
5335
5336if test $ac_cv_header_stdc = yes; then
5337 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5338 if test "$cross_compiling" = yes; then :
5339 :
5340else
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342/* end confdefs.h. */
5343#include <ctype.h>
5344#include <stdlib.h>
5345#if ((' ' & 0x0FF) == 0x020)
5346# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5347# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5348#else
5349# define ISLOWER(c) \
5350 (('a' <= (c) && (c) <= 'i') \
5351 || ('j' <= (c) && (c) <= 'r') \
5352 || ('s' <= (c) && (c) <= 'z'))
5353# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5354#endif
5355
5356#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5357int
5358main ()
5359{
5360 int i;
5361 for (i = 0; i < 256; i++)
5362 if (XOR (islower (i), ISLOWER (i))
5363 || toupper (i) != TOUPPER (i))
5364 return 2;
5365 return 0;
5366}
5367_ACEOF
5368if ac_fn_c_try_run "$LINENO"; then :
5369
5370else
5371 ac_cv_header_stdc=no
5372fi
5373rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5374 conftest.$ac_objext conftest.beam conftest.$ac_ext
5375fi
5376
5377fi
5378fi
5379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5380$as_echo "$ac_cv_header_stdc" >&6; }
5381if test $ac_cv_header_stdc = yes; then
5382
5383$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5384
5385fi
5386
5387# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5388for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5389 inttypes.h stdint.h unistd.h
5390do :
5391 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5392ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5393"
cristy0684af42010-07-09 00:00:05 +00005394if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005395 cat >>confdefs.h <<_ACEOF
5396#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5397_ACEOF
5398
5399fi
5400
5401done
5402
5403
5404
5405 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5406if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5407 MINIX=yes
5408else
5409 MINIX=
5410fi
5411
5412
5413 if test "$MINIX" = yes; then
5414
5415$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5416
5417
5418$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5419
5420
5421$as_echo "#define _MINIX 1" >>confdefs.h
5422
5423 fi
5424
5425
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5427$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5428if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5429 $as_echo_n "(cached) " >&6
5430else
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432/* end confdefs.h. */
5433
5434# define __EXTENSIONS__ 1
5435 $ac_includes_default
5436int
5437main ()
5438{
5439
5440 ;
5441 return 0;
5442}
5443_ACEOF
5444if ac_fn_c_try_compile "$LINENO"; then :
5445 ac_cv_safe_to_define___extensions__=yes
5446else
5447 ac_cv_safe_to_define___extensions__=no
5448fi
5449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5450fi
5451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5452$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5453 test $ac_cv_safe_to_define___extensions__ = yes &&
5454 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5455
5456 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5457
5458 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5459
5460 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5461
5462 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5463
5464
5465
5466# Check for programs
5467ac_ext=c
5468ac_cpp='$CPP $CPPFLAGS'
5469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5471ac_compiler_gnu=$ac_cv_c_compiler_gnu
5472if test -n "$ac_tool_prefix"; then
5473 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5474set dummy ${ac_tool_prefix}gcc; ac_word=$2
5475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476$as_echo_n "checking for $ac_word... " >&6; }
5477if test "${ac_cv_prog_CC+set}" = set; then :
5478 $as_echo_n "(cached) " >&6
5479else
5480 if test -n "$CC"; then
5481 ac_cv_prog_CC="$CC" # Let the user override the test.
5482else
5483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484for as_dir in $PATH
5485do
5486 IFS=$as_save_IFS
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5490 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 break 2
5493 fi
5494done
5495 done
5496IFS=$as_save_IFS
5497
5498fi
5499fi
5500CC=$ac_cv_prog_CC
5501if test -n "$CC"; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5503$as_echo "$CC" >&6; }
5504else
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506$as_echo "no" >&6; }
5507fi
5508
5509
5510fi
5511if test -z "$ac_cv_prog_CC"; then
5512 ac_ct_CC=$CC
5513 # Extract the first word of "gcc", so it can be a program name with args.
5514set dummy gcc; ac_word=$2
5515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5516$as_echo_n "checking for $ac_word... " >&6; }
5517if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5518 $as_echo_n "(cached) " >&6
5519else
5520 if test -n "$ac_ct_CC"; then
5521 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5522else
5523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524for as_dir in $PATH
5525do
5526 IFS=$as_save_IFS
5527 test -z "$as_dir" && as_dir=.
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5530 ac_cv_prog_ac_ct_CC="gcc"
5531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5532 break 2
5533 fi
5534done
5535 done
5536IFS=$as_save_IFS
5537
5538fi
5539fi
5540ac_ct_CC=$ac_cv_prog_ac_ct_CC
5541if test -n "$ac_ct_CC"; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5543$as_echo "$ac_ct_CC" >&6; }
5544else
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546$as_echo "no" >&6; }
5547fi
5548
5549 if test "x$ac_ct_CC" = x; then
5550 CC=""
5551 else
5552 case $cross_compiling:$ac_tool_warned in
5553yes:)
5554{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5556ac_tool_warned=yes ;;
5557esac
5558 CC=$ac_ct_CC
5559 fi
5560else
5561 CC="$ac_cv_prog_CC"
5562fi
5563
5564if test -z "$CC"; then
5565 if test -n "$ac_tool_prefix"; then
5566 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5567set dummy ${ac_tool_prefix}cc; ac_word=$2
5568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5569$as_echo_n "checking for $ac_word... " >&6; }
5570if test "${ac_cv_prog_CC+set}" = set; then :
5571 $as_echo_n "(cached) " >&6
5572else
5573 if test -n "$CC"; then
5574 ac_cv_prog_CC="$CC" # Let the user override the test.
5575else
5576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577for as_dir in $PATH
5578do
5579 IFS=$as_save_IFS
5580 test -z "$as_dir" && as_dir=.
5581 for ac_exec_ext in '' $ac_executable_extensions; do
5582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5583 ac_cv_prog_CC="${ac_tool_prefix}cc"
5584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5585 break 2
5586 fi
5587done
5588 done
5589IFS=$as_save_IFS
5590
5591fi
5592fi
5593CC=$ac_cv_prog_CC
5594if test -n "$CC"; then
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5596$as_echo "$CC" >&6; }
5597else
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599$as_echo "no" >&6; }
5600fi
5601
5602
5603 fi
5604fi
5605if test -z "$CC"; then
5606 # Extract the first word of "cc", so it can be a program name with args.
5607set dummy cc; ac_word=$2
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5609$as_echo_n "checking for $ac_word... " >&6; }
5610if test "${ac_cv_prog_CC+set}" = set; then :
5611 $as_echo_n "(cached) " >&6
5612else
5613 if test -n "$CC"; then
5614 ac_cv_prog_CC="$CC" # Let the user override the test.
5615else
5616 ac_prog_rejected=no
5617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618for as_dir in $PATH
5619do
5620 IFS=$as_save_IFS
5621 test -z "$as_dir" && as_dir=.
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5624 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5625 ac_prog_rejected=yes
5626 continue
5627 fi
5628 ac_cv_prog_CC="cc"
5629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630 break 2
5631 fi
5632done
5633 done
5634IFS=$as_save_IFS
5635
5636if test $ac_prog_rejected = yes; then
5637 # We found a bogon in the path, so make sure we never use it.
5638 set dummy $ac_cv_prog_CC
5639 shift
5640 if test $# != 0; then
5641 # We chose a different compiler from the bogus one.
5642 # However, it has the same basename, so the bogon will be chosen
5643 # first if we set CC to just the basename; use the full file name.
5644 shift
5645 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5646 fi
5647fi
5648fi
5649fi
5650CC=$ac_cv_prog_CC
5651if test -n "$CC"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5653$as_echo "$CC" >&6; }
5654else
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656$as_echo "no" >&6; }
5657fi
5658
5659
5660fi
5661if test -z "$CC"; then
5662 if test -n "$ac_tool_prefix"; then
5663 for ac_prog in cl.exe
5664 do
5665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5666set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5668$as_echo_n "checking for $ac_word... " >&6; }
5669if test "${ac_cv_prog_CC+set}" = set; then :
5670 $as_echo_n "(cached) " >&6
5671else
5672 if test -n "$CC"; then
5673 ac_cv_prog_CC="$CC" # Let the user override the test.
5674else
5675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676for as_dir in $PATH
5677do
5678 IFS=$as_save_IFS
5679 test -z "$as_dir" && as_dir=.
5680 for ac_exec_ext in '' $ac_executable_extensions; do
5681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5682 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5684 break 2
5685 fi
5686done
5687 done
5688IFS=$as_save_IFS
5689
5690fi
5691fi
5692CC=$ac_cv_prog_CC
5693if test -n "$CC"; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5695$as_echo "$CC" >&6; }
5696else
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698$as_echo "no" >&6; }
5699fi
5700
5701
5702 test -n "$CC" && break
5703 done
5704fi
5705if test -z "$CC"; then
5706 ac_ct_CC=$CC
5707 for ac_prog in cl.exe
5708do
5709 # Extract the first word of "$ac_prog", so it can be a program name with args.
5710set dummy $ac_prog; ac_word=$2
5711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5712$as_echo_n "checking for $ac_word... " >&6; }
5713if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5714 $as_echo_n "(cached) " >&6
5715else
5716 if test -n "$ac_ct_CC"; then
5717 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5718else
5719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720for as_dir in $PATH
5721do
5722 IFS=$as_save_IFS
5723 test -z "$as_dir" && as_dir=.
5724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5726 ac_cv_prog_ac_ct_CC="$ac_prog"
5727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5728 break 2
5729 fi
5730done
5731 done
5732IFS=$as_save_IFS
5733
5734fi
5735fi
5736ac_ct_CC=$ac_cv_prog_ac_ct_CC
5737if test -n "$ac_ct_CC"; then
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5739$as_echo "$ac_ct_CC" >&6; }
5740else
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742$as_echo "no" >&6; }
5743fi
5744
5745
5746 test -n "$ac_ct_CC" && break
5747done
5748
5749 if test "x$ac_ct_CC" = x; then
5750 CC=""
5751 else
5752 case $cross_compiling:$ac_tool_warned in
5753yes:)
5754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5756ac_tool_warned=yes ;;
5757esac
5758 CC=$ac_ct_CC
5759 fi
5760fi
5761
5762fi
5763
5764
5765test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +00005767as_fn_error $? "no acceptable C compiler found in \$PATH
5768See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005769
5770# Provide some information about the compiler.
5771$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5772set X $ac_compile
5773ac_compiler=$2
5774for ac_option in --version -v -V -qversion; do
5775 { { ac_try="$ac_compiler $ac_option >&5"
5776case "(($ac_try" in
5777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778 *) ac_try_echo=$ac_try;;
5779esac
5780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5781$as_echo "$ac_try_echo"; } >&5
5782 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5783 ac_status=$?
5784 if test -s conftest.err; then
5785 sed '10a\
5786... rest of stderr output deleted ...
5787 10q' conftest.err >conftest.er1
5788 cat conftest.er1 >&5
5789 fi
5790 rm -f conftest.er1 conftest.err
5791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5792 test $ac_status = 0; }
5793done
5794
5795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5796$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5797if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5798 $as_echo_n "(cached) " >&6
5799else
5800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5801/* end confdefs.h. */
5802
5803int
5804main ()
5805{
5806#ifndef __GNUC__
5807 choke me
5808#endif
5809
5810 ;
5811 return 0;
5812}
5813_ACEOF
5814if ac_fn_c_try_compile "$LINENO"; then :
5815 ac_compiler_gnu=yes
5816else
5817 ac_compiler_gnu=no
5818fi
5819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5820ac_cv_c_compiler_gnu=$ac_compiler_gnu
5821
5822fi
5823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5824$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5825if test $ac_compiler_gnu = yes; then
5826 GCC=yes
5827else
5828 GCC=
5829fi
5830ac_test_CFLAGS=${CFLAGS+set}
5831ac_save_CFLAGS=$CFLAGS
5832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5833$as_echo_n "checking whether $CC accepts -g... " >&6; }
5834if test "${ac_cv_prog_cc_g+set}" = set; then :
5835 $as_echo_n "(cached) " >&6
5836else
5837 ac_save_c_werror_flag=$ac_c_werror_flag
5838 ac_c_werror_flag=yes
5839 ac_cv_prog_cc_g=no
5840 CFLAGS="-g"
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842/* end confdefs.h. */
5843
5844int
5845main ()
5846{
5847
5848 ;
5849 return 0;
5850}
5851_ACEOF
5852if ac_fn_c_try_compile "$LINENO"; then :
5853 ac_cv_prog_cc_g=yes
5854else
5855 CFLAGS=""
5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857/* end confdefs.h. */
5858
5859int
5860main ()
5861{
5862
5863 ;
5864 return 0;
5865}
5866_ACEOF
5867if ac_fn_c_try_compile "$LINENO"; then :
5868
5869else
5870 ac_c_werror_flag=$ac_save_c_werror_flag
5871 CFLAGS="-g"
5872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5873/* end confdefs.h. */
5874
5875int
5876main ()
5877{
5878
5879 ;
5880 return 0;
5881}
5882_ACEOF
5883if ac_fn_c_try_compile "$LINENO"; then :
5884 ac_cv_prog_cc_g=yes
5885fi
5886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5887fi
5888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889fi
5890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891 ac_c_werror_flag=$ac_save_c_werror_flag
5892fi
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5894$as_echo "$ac_cv_prog_cc_g" >&6; }
5895if test "$ac_test_CFLAGS" = set; then
5896 CFLAGS=$ac_save_CFLAGS
5897elif test $ac_cv_prog_cc_g = yes; then
5898 if test "$GCC" = yes; then
5899 CFLAGS="-g -O2"
5900 else
5901 CFLAGS="-g"
5902 fi
5903else
5904 if test "$GCC" = yes; then
5905 CFLAGS="-O2"
5906 else
5907 CFLAGS=
5908 fi
5909fi
5910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5911$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5912if test "${ac_cv_prog_cc_c89+set}" = set; then :
5913 $as_echo_n "(cached) " >&6
5914else
5915 ac_cv_prog_cc_c89=no
5916ac_save_CC=$CC
5917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918/* end confdefs.h. */
5919#include <stdarg.h>
5920#include <stdio.h>
5921#include <sys/types.h>
5922#include <sys/stat.h>
5923/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5924struct buf { int x; };
5925FILE * (*rcsopen) (struct buf *, struct stat *, int);
5926static char *e (p, i)
5927 char **p;
5928 int i;
5929{
5930 return p[i];
5931}
5932static char *f (char * (*g) (char **, int), char **p, ...)
5933{
5934 char *s;
5935 va_list v;
5936 va_start (v,p);
5937 s = g (p, va_arg (v,int));
5938 va_end (v);
5939 return s;
5940}
5941
5942/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5943 function prototypes and stuff, but not '\xHH' hex character constants.
5944 These don't provoke an error unfortunately, instead are silently treated
5945 as 'x'. The following induces an error, until -std is added to get
5946 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5947 array size at least. It's necessary to write '\x00'==0 to get something
5948 that's true only with -std. */
5949int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5950
5951/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5952 inside strings and character constants. */
5953#define FOO(x) 'x'
5954int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5955
5956int test (int i, double x);
5957struct s1 {int (*f) (int a);};
5958struct s2 {int (*f) (double a);};
5959int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5960int argc;
5961char **argv;
5962int
5963main ()
5964{
5965return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5966 ;
5967 return 0;
5968}
5969_ACEOF
5970for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5971 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5972do
5973 CC="$ac_save_CC $ac_arg"
5974 if ac_fn_c_try_compile "$LINENO"; then :
5975 ac_cv_prog_cc_c89=$ac_arg
5976fi
5977rm -f core conftest.err conftest.$ac_objext
5978 test "x$ac_cv_prog_cc_c89" != "xno" && break
5979done
5980rm -f conftest.$ac_ext
5981CC=$ac_save_CC
5982
5983fi
5984# AC_CACHE_VAL
5985case "x$ac_cv_prog_cc_c89" in
5986 x)
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5988$as_echo "none needed" >&6; } ;;
5989 xno)
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5991$as_echo "unsupported" >&6; } ;;
5992 *)
5993 CC="$CC $ac_cv_prog_cc_c89"
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5995$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5996esac
5997if test "x$ac_cv_prog_cc_c89" != xno; then :
5998
5999fi
6000
6001ac_ext=c
6002ac_cpp='$CPP $CPPFLAGS'
6003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6005ac_compiler_gnu=$ac_cv_c_compiler_gnu
6006
cristy3ed852e2009-09-05 21:47:34 +00006007depcc="$CC" am_compiler_list=
6008
cristy8b350f62009-11-15 23:12:43 +00006009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006010$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006011if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006012 $as_echo_n "(cached) " >&6
6013else
6014 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6015 # We make a subdir and do the tests there. Otherwise we can end up
6016 # making bogus files that we don't know about and never remove. For
6017 # instance it was reported that on HP-UX the gcc test will end up
6018 # making a dummy file named `D' -- because `-MD' means `put the output
6019 # in D'.
6020 mkdir conftest.dir
6021 # Copy depcomp to subdir because otherwise we won't find it if we're
6022 # using a relative directory.
6023 cp "$am_depcomp" conftest.dir
6024 cd conftest.dir
6025 # We will build objects and dependencies in a subdirectory because
6026 # it helps to detect inapplicable dependency modes. For instance
6027 # both Tru64's cc and ICC support -MD to output dependencies as a
6028 # side effect of compilation, but ICC will put the dependencies in
6029 # the current directory while Tru64 will put them in the object
6030 # directory.
6031 mkdir sub
6032
6033 am_cv_CC_dependencies_compiler_type=none
6034 if test "$am_compiler_list" = ""; then
6035 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6036 fi
6037 am__universal=false
6038 case " $depcc " in #(
6039 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6040 esac
6041
6042 for depmode in $am_compiler_list; do
6043 # Setup a source with many dependencies, because some compilers
6044 # like to wrap large dependency lists on column 80 (with \), and
6045 # we should not choose a depcomp mode which is confused by this.
6046 #
6047 # We need to recreate these files for each test, as the compiler may
6048 # overwrite some of them when testing with obscure command lines.
6049 # This happens at least with the AIX C compiler.
6050 : > sub/conftest.c
6051 for i in 1 2 3 4 5 6; do
6052 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6053 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6054 # Solaris 8's {/usr,}/bin/sh.
6055 touch sub/conftst$i.h
6056 done
6057 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6058
6059 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6060 # mode. It turns out that the SunPro C++ compiler does not properly
6061 # handle `-M -o', and we need to detect this. Also, some Intel
6062 # versions had trouble with output in subdirs
6063 am__obj=sub/conftest.${OBJEXT-o}
6064 am__minus_obj="-o $am__obj"
6065 case $depmode in
6066 gcc)
6067 # This depmode causes a compiler race in universal mode.
6068 test "$am__universal" = false || continue
6069 ;;
6070 nosideeffect)
6071 # after this tag, mechanisms are not by side-effect, so they'll
6072 # only be used when explicitly requested
6073 if test "x$enable_dependency_tracking" = xyes; then
6074 continue
6075 else
6076 break
6077 fi
6078 ;;
6079 msvisualcpp | msvcmsys)
6080 # This compiler won't grok `-c -o', but also, the minuso test has
6081 # not run yet. These depmodes are late enough in the game, and
6082 # so weak that their functioning should not be impacted.
6083 am__obj=conftest.${OBJEXT-o}
6084 am__minus_obj=
6085 ;;
6086 none) break ;;
6087 esac
6088 if depmode=$depmode \
6089 source=sub/conftest.c object=$am__obj \
6090 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6091 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6092 >/dev/null 2>conftest.err &&
6093 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6094 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6095 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6096 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6097 # icc doesn't choke on unknown options, it will just issue warnings
6098 # or remarks (even with -Werror). So we grep stderr for any message
6099 # that says an option was ignored or not supported.
6100 # When given -MP, icc 7.0 and 7.1 complain thusly:
6101 # icc: Command line warning: ignoring option '-M'; no argument required
6102 # The diagnosis changed in icc 8.0:
6103 # icc: Command line remark: option '-MP' not supported
6104 if (grep 'ignoring option' conftest.err ||
6105 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6106 am_cv_CC_dependencies_compiler_type=$depmode
6107 break
6108 fi
6109 fi
6110 done
6111
6112 cd ..
6113 rm -rf conftest.dir
6114else
6115 am_cv_CC_dependencies_compiler_type=none
6116fi
6117
6118fi
cristy8b350f62009-11-15 23:12:43 +00006119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00006120$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6121CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6122
6123 if
6124 test "x$enable_dependency_tracking" != xno \
6125 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6126 am__fastdepCC_TRUE=
6127 am__fastdepCC_FALSE='#'
6128else
6129 am__fastdepCC_TRUE='#'
6130 am__fastdepCC_FALSE=
6131fi
6132
6133
cristy95646052009-11-28 23:05:30 +00006134ac_ext=cpp
6135ac_cpp='$CXXCPP $CPPFLAGS'
6136ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6137ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6138ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6139if test -z "$CXX"; then
6140 if test -n "$CCC"; then
6141 CXX=$CCC
6142 else
6143 if test -n "$ac_tool_prefix"; then
6144 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6145 do
6146 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6147set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6149$as_echo_n "checking for $ac_word... " >&6; }
6150if test "${ac_cv_prog_CXX+set}" = set; then :
6151 $as_echo_n "(cached) " >&6
6152else
6153 if test -n "$CXX"; then
6154 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6155else
6156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157for as_dir in $PATH
6158do
6159 IFS=$as_save_IFS
6160 test -z "$as_dir" && as_dir=.
6161 for ac_exec_ext in '' $ac_executable_extensions; do
6162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6163 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6165 break 2
6166 fi
6167done
6168 done
6169IFS=$as_save_IFS
6170
6171fi
6172fi
6173CXX=$ac_cv_prog_CXX
6174if test -n "$CXX"; then
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6176$as_echo "$CXX" >&6; }
6177else
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6179$as_echo "no" >&6; }
6180fi
6181
6182
6183 test -n "$CXX" && break
6184 done
6185fi
6186if test -z "$CXX"; then
6187 ac_ct_CXX=$CXX
6188 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6189do
6190 # Extract the first word of "$ac_prog", so it can be a program name with args.
6191set dummy $ac_prog; ac_word=$2
6192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6193$as_echo_n "checking for $ac_word... " >&6; }
6194if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6195 $as_echo_n "(cached) " >&6
6196else
6197 if test -n "$ac_ct_CXX"; then
6198 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6199else
6200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201for as_dir in $PATH
6202do
6203 IFS=$as_save_IFS
6204 test -z "$as_dir" && as_dir=.
6205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6207 ac_cv_prog_ac_ct_CXX="$ac_prog"
6208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6209 break 2
6210 fi
6211done
6212 done
6213IFS=$as_save_IFS
6214
6215fi
6216fi
6217ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6218if test -n "$ac_ct_CXX"; then
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6220$as_echo "$ac_ct_CXX" >&6; }
6221else
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6223$as_echo "no" >&6; }
6224fi
6225
6226
6227 test -n "$ac_ct_CXX" && break
6228done
6229
6230 if test "x$ac_ct_CXX" = x; then
6231 CXX="g++"
6232 else
6233 case $cross_compiling:$ac_tool_warned in
6234yes:)
6235{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6236$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6237ac_tool_warned=yes ;;
6238esac
6239 CXX=$ac_ct_CXX
6240 fi
6241fi
6242
6243 fi
6244fi
6245# Provide some information about the compiler.
6246$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6247set X $ac_compile
6248ac_compiler=$2
6249for ac_option in --version -v -V -qversion; do
6250 { { ac_try="$ac_compiler $ac_option >&5"
6251case "(($ac_try" in
6252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6253 *) ac_try_echo=$ac_try;;
6254esac
6255eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6256$as_echo "$ac_try_echo"; } >&5
6257 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6258 ac_status=$?
6259 if test -s conftest.err; then
6260 sed '10a\
6261... rest of stderr output deleted ...
6262 10q' conftest.err >conftest.er1
6263 cat conftest.er1 >&5
6264 fi
6265 rm -f conftest.er1 conftest.err
6266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6267 test $ac_status = 0; }
6268done
6269
6270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6271$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6272if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6273 $as_echo_n "(cached) " >&6
6274else
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276/* end confdefs.h. */
6277
6278int
6279main ()
6280{
6281#ifndef __GNUC__
6282 choke me
6283#endif
6284
6285 ;
6286 return 0;
6287}
6288_ACEOF
6289if ac_fn_cxx_try_compile "$LINENO"; then :
6290 ac_compiler_gnu=yes
6291else
6292 ac_compiler_gnu=no
6293fi
6294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6295ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6296
6297fi
6298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6299$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6300if test $ac_compiler_gnu = yes; then
6301 GXX=yes
6302else
6303 GXX=
6304fi
6305ac_test_CXXFLAGS=${CXXFLAGS+set}
6306ac_save_CXXFLAGS=$CXXFLAGS
6307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6308$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6309if test "${ac_cv_prog_cxx_g+set}" = set; then :
6310 $as_echo_n "(cached) " >&6
6311else
6312 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6313 ac_cxx_werror_flag=yes
6314 ac_cv_prog_cxx_g=no
6315 CXXFLAGS="-g"
6316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6317/* end confdefs.h. */
6318
6319int
6320main ()
6321{
6322
6323 ;
6324 return 0;
6325}
6326_ACEOF
6327if ac_fn_cxx_try_compile "$LINENO"; then :
6328 ac_cv_prog_cxx_g=yes
6329else
6330 CXXFLAGS=""
6331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6332/* end confdefs.h. */
6333
6334int
6335main ()
6336{
6337
6338 ;
6339 return 0;
6340}
6341_ACEOF
6342if ac_fn_cxx_try_compile "$LINENO"; then :
6343
6344else
6345 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6346 CXXFLAGS="-g"
6347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6348/* end confdefs.h. */
6349
6350int
6351main ()
6352{
6353
6354 ;
6355 return 0;
6356}
6357_ACEOF
6358if ac_fn_cxx_try_compile "$LINENO"; then :
6359 ac_cv_prog_cxx_g=yes
6360fi
6361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362fi
6363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364fi
6365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6367fi
6368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6369$as_echo "$ac_cv_prog_cxx_g" >&6; }
6370if test "$ac_test_CXXFLAGS" = set; then
6371 CXXFLAGS=$ac_save_CXXFLAGS
6372elif test $ac_cv_prog_cxx_g = yes; then
6373 if test "$GXX" = yes; then
6374 CXXFLAGS="-g -O2"
6375 else
6376 CXXFLAGS="-g"
6377 fi
6378else
6379 if test "$GXX" = yes; then
6380 CXXFLAGS="-O2"
6381 else
6382 CXXFLAGS=
6383 fi
6384fi
6385ac_ext=c
6386ac_cpp='$CPP $CPPFLAGS'
6387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6389ac_compiler_gnu=$ac_cv_c_compiler_gnu
6390
6391depcc="$CXX" am_compiler_list=
6392
6393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6394$as_echo_n "checking dependency style of $depcc... " >&6; }
6395if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6396 $as_echo_n "(cached) " >&6
6397else
6398 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6399 # We make a subdir and do the tests there. Otherwise we can end up
6400 # making bogus files that we don't know about and never remove. For
6401 # instance it was reported that on HP-UX the gcc test will end up
6402 # making a dummy file named `D' -- because `-MD' means `put the output
6403 # in D'.
6404 mkdir conftest.dir
6405 # Copy depcomp to subdir because otherwise we won't find it if we're
6406 # using a relative directory.
6407 cp "$am_depcomp" conftest.dir
6408 cd conftest.dir
6409 # We will build objects and dependencies in a subdirectory because
6410 # it helps to detect inapplicable dependency modes. For instance
6411 # both Tru64's cc and ICC support -MD to output dependencies as a
6412 # side effect of compilation, but ICC will put the dependencies in
6413 # the current directory while Tru64 will put them in the object
6414 # directory.
6415 mkdir sub
6416
6417 am_cv_CXX_dependencies_compiler_type=none
6418 if test "$am_compiler_list" = ""; then
6419 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6420 fi
6421 am__universal=false
6422 case " $depcc " in #(
6423 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6424 esac
6425
6426 for depmode in $am_compiler_list; do
6427 # Setup a source with many dependencies, because some compilers
6428 # like to wrap large dependency lists on column 80 (with \), and
6429 # we should not choose a depcomp mode which is confused by this.
6430 #
6431 # We need to recreate these files for each test, as the compiler may
6432 # overwrite some of them when testing with obscure command lines.
6433 # This happens at least with the AIX C compiler.
6434 : > sub/conftest.c
6435 for i in 1 2 3 4 5 6; do
6436 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6437 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6438 # Solaris 8's {/usr,}/bin/sh.
6439 touch sub/conftst$i.h
6440 done
6441 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6442
6443 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6444 # mode. It turns out that the SunPro C++ compiler does not properly
6445 # handle `-M -o', and we need to detect this. Also, some Intel
6446 # versions had trouble with output in subdirs
6447 am__obj=sub/conftest.${OBJEXT-o}
6448 am__minus_obj="-o $am__obj"
6449 case $depmode in
6450 gcc)
6451 # This depmode causes a compiler race in universal mode.
6452 test "$am__universal" = false || continue
6453 ;;
6454 nosideeffect)
6455 # after this tag, mechanisms are not by side-effect, so they'll
6456 # only be used when explicitly requested
6457 if test "x$enable_dependency_tracking" = xyes; then
6458 continue
6459 else
6460 break
6461 fi
6462 ;;
6463 msvisualcpp | msvcmsys)
6464 # This compiler won't grok `-c -o', but also, the minuso test has
6465 # not run yet. These depmodes are late enough in the game, and
6466 # so weak that their functioning should not be impacted.
6467 am__obj=conftest.${OBJEXT-o}
6468 am__minus_obj=
6469 ;;
6470 none) break ;;
6471 esac
6472 if depmode=$depmode \
6473 source=sub/conftest.c object=$am__obj \
6474 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6475 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6476 >/dev/null 2>conftest.err &&
6477 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6478 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6479 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6480 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6481 # icc doesn't choke on unknown options, it will just issue warnings
6482 # or remarks (even with -Werror). So we grep stderr for any message
6483 # that says an option was ignored or not supported.
6484 # When given -MP, icc 7.0 and 7.1 complain thusly:
6485 # icc: Command line warning: ignoring option '-M'; no argument required
6486 # The diagnosis changed in icc 8.0:
6487 # icc: Command line remark: option '-MP' not supported
6488 if (grep 'ignoring option' conftest.err ||
6489 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6490 am_cv_CXX_dependencies_compiler_type=$depmode
6491 break
6492 fi
6493 fi
6494 done
6495
6496 cd ..
6497 rm -rf conftest.dir
6498else
6499 am_cv_CXX_dependencies_compiler_type=none
6500fi
6501
6502fi
6503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6504$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6505CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6506
6507 if
6508 test "x$enable_dependency_tracking" != xno \
6509 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6510 am__fastdepCXX_TRUE=
6511 am__fastdepCXX_FALSE='#'
6512else
6513 am__fastdepCXX_TRUE='#'
6514 am__fastdepCXX_FALSE=
6515fi
6516
6517
cristy8b350f62009-11-15 23:12:43 +00006518 case $ac_cv_prog_cc_stdc in #(
6519 no) :
6520 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6521 *) :
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006523$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006524if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006525 $as_echo_n "(cached) " >&6
6526else
6527 ac_cv_prog_cc_c99=no
6528ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006530/* end confdefs.h. */
6531#include <stdarg.h>
6532#include <stdbool.h>
6533#include <stdlib.h>
6534#include <wchar.h>
6535#include <stdio.h>
6536
6537// Check varargs macros. These examples are taken from C99 6.10.3.5.
6538#define debug(...) fprintf (stderr, __VA_ARGS__)
6539#define showlist(...) puts (#__VA_ARGS__)
6540#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6541static void
6542test_varargs_macros (void)
6543{
6544 int x = 1234;
6545 int y = 5678;
6546 debug ("Flag");
6547 debug ("X = %d\n", x);
6548 showlist (The first, second, and third items.);
6549 report (x>y, "x is %d but y is %d", x, y);
6550}
6551
6552// Check long long types.
6553#define BIG64 18446744073709551615ull
6554#define BIG32 4294967295ul
6555#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6556#if !BIG_OK
6557 your preprocessor is broken;
6558#endif
6559#if BIG_OK
6560#else
6561 your preprocessor is broken;
6562#endif
6563static long long int bignum = -9223372036854775807LL;
6564static unsigned long long int ubignum = BIG64;
6565
6566struct incomplete_array
6567{
6568 int datasize;
6569 double data[];
6570};
6571
6572struct named_init {
6573 int number;
6574 const wchar_t *name;
6575 double average;
6576};
6577
6578typedef const char *ccp;
6579
6580static inline int
6581test_restrict (ccp restrict text)
6582{
6583 // See if C++-style comments work.
6584 // Iterate through items via the restricted pointer.
6585 // Also check for declarations in for loops.
6586 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6587 continue;
6588 return 0;
6589}
6590
6591// Check varargs and va_copy.
6592static void
6593test_varargs (const char *format, ...)
6594{
6595 va_list args;
6596 va_start (args, format);
6597 va_list args_copy;
6598 va_copy (args_copy, args);
6599
6600 const char *str;
6601 int number;
6602 float fnumber;
6603
6604 while (*format)
6605 {
6606 switch (*format++)
6607 {
6608 case 's': // string
6609 str = va_arg (args_copy, const char *);
6610 break;
6611 case 'd': // int
6612 number = va_arg (args_copy, int);
6613 break;
6614 case 'f': // float
6615 fnumber = va_arg (args_copy, double);
6616 break;
6617 default:
6618 break;
6619 }
6620 }
6621 va_end (args_copy);
6622 va_end (args);
6623}
6624
6625int
6626main ()
6627{
6628
6629 // Check bool.
6630 _Bool success = false;
6631
6632 // Check restrict.
6633 if (test_restrict ("String literal") == 0)
6634 success = true;
6635 char *restrict newvar = "Another string";
6636
6637 // Check varargs.
6638 test_varargs ("s, d' f .", "string", 65, 34.234);
6639 test_varargs_macros ();
6640
6641 // Check flexible array members.
6642 struct incomplete_array *ia =
6643 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6644 ia->datasize = 10;
6645 for (int i = 0; i < ia->datasize; ++i)
6646 ia->data[i] = i * 1.234;
6647
6648 // Check named initializers.
6649 struct named_init ni = {
6650 .number = 34,
6651 .name = L"Test wide string",
6652 .average = 543.34343,
6653 };
6654
6655 ni.number = 58;
6656
6657 int dynamic_array[ni.number];
6658 dynamic_array[ni.number - 1] = 543;
6659
6660 // work around unused variable warnings
6661 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6662 || dynamic_array[ni.number - 1] != 543);
6663
6664 ;
6665 return 0;
6666}
6667_ACEOF
6668for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6669do
6670 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006671 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006672 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006673fi
cristy3ed852e2009-09-05 21:47:34 +00006674rm -f core conftest.err conftest.$ac_objext
6675 test "x$ac_cv_prog_cc_c99" != "xno" && break
6676done
6677rm -f conftest.$ac_ext
6678CC=$ac_save_CC
6679
6680fi
6681# AC_CACHE_VAL
6682case "x$ac_cv_prog_cc_c99" in
6683 x)
cristy8b350f62009-11-15 23:12:43 +00006684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006685$as_echo "none needed" >&6; } ;;
6686 xno)
cristy8b350f62009-11-15 23:12:43 +00006687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006688$as_echo "unsupported" >&6; } ;;
6689 *)
6690 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006692$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6693esac
cristy8b350f62009-11-15 23:12:43 +00006694if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006695 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6696else
cristy8b350f62009-11-15 23:12:43 +00006697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006698$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006699if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006700 $as_echo_n "(cached) " >&6
6701else
6702 ac_cv_prog_cc_c89=no
6703ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006705/* end confdefs.h. */
6706#include <stdarg.h>
6707#include <stdio.h>
6708#include <sys/types.h>
6709#include <sys/stat.h>
6710/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6711struct buf { int x; };
6712FILE * (*rcsopen) (struct buf *, struct stat *, int);
6713static char *e (p, i)
6714 char **p;
6715 int i;
6716{
6717 return p[i];
6718}
6719static char *f (char * (*g) (char **, int), char **p, ...)
6720{
6721 char *s;
6722 va_list v;
6723 va_start (v,p);
6724 s = g (p, va_arg (v,int));
6725 va_end (v);
6726 return s;
6727}
6728
6729/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6730 function prototypes and stuff, but not '\xHH' hex character constants.
6731 These don't provoke an error unfortunately, instead are silently treated
6732 as 'x'. The following induces an error, until -std is added to get
6733 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6734 array size at least. It's necessary to write '\x00'==0 to get something
6735 that's true only with -std. */
6736int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6737
6738/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6739 inside strings and character constants. */
6740#define FOO(x) 'x'
6741int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6742
6743int test (int i, double x);
6744struct s1 {int (*f) (int a);};
6745struct s2 {int (*f) (double a);};
6746int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6747int argc;
6748char **argv;
6749int
6750main ()
6751{
6752return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6753 ;
6754 return 0;
6755}
6756_ACEOF
6757for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6758 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6759do
6760 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006761 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006762 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006763fi
cristy3ed852e2009-09-05 21:47:34 +00006764rm -f core conftest.err conftest.$ac_objext
6765 test "x$ac_cv_prog_cc_c89" != "xno" && break
6766done
6767rm -f conftest.$ac_ext
6768CC=$ac_save_CC
6769
6770fi
6771# AC_CACHE_VAL
6772case "x$ac_cv_prog_cc_c89" in
6773 x)
cristy8b350f62009-11-15 23:12:43 +00006774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006775$as_echo "none needed" >&6; } ;;
6776 xno)
cristy8b350f62009-11-15 23:12:43 +00006777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006778$as_echo "unsupported" >&6; } ;;
6779 *)
6780 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006782$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6783esac
cristy8b350f62009-11-15 23:12:43 +00006784if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006785 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6786else
6787 ac_cv_prog_cc_stdc=no
6788fi
6789
cristy3ed852e2009-09-05 21:47:34 +00006790fi
cristy3ed852e2009-09-05 21:47:34 +00006791 ;;
6792esac
cristy8b350f62009-11-15 23:12:43 +00006793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006794$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006795 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006796 $as_echo_n "(cached) " >&6
6797fi
6798
cristy8b350f62009-11-15 23:12:43 +00006799 case $ac_cv_prog_cc_stdc in #(
6800 no) :
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6802$as_echo "unsupported" >&6; } ;; #(
6803 '') :
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6805$as_echo "none needed" >&6; } ;; #(
6806 *) :
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006808$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6809esac
6810
cristy3ed852e2009-09-05 21:47:34 +00006811ac_ext=c
6812ac_cpp='$CPP $CPPFLAGS'
6813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6815ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006817$as_echo_n "checking how to run the C preprocessor... " >&6; }
6818# On Suns, sometimes $CPP names a directory.
6819if test -n "$CPP" && test -d "$CPP"; then
6820 CPP=
6821fi
6822if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00006823 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006824 $as_echo_n "(cached) " >&6
6825else
6826 # Double quotes because CPP needs to be expanded
6827 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6828 do
6829 ac_preproc_ok=false
6830for ac_c_preproc_warn_flag in '' yes
6831do
6832 # Use a header file that comes with gcc, so configuring glibc
6833 # with a fresh cross-compiler works.
6834 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6835 # <limits.h> exists even on freestanding compilers.
6836 # On the NeXT, cc -E runs the code through the compiler's parser,
6837 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006839/* end confdefs.h. */
6840#ifdef __STDC__
6841# include <limits.h>
6842#else
6843# include <assert.h>
6844#endif
6845 Syntax error
6846_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006847if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006848
cristy8b350f62009-11-15 23:12:43 +00006849else
cristy3ed852e2009-09-05 21:47:34 +00006850 # Broken: fails on valid input.
6851continue
6852fi
cristy3ed852e2009-09-05 21:47:34 +00006853rm -f conftest.err conftest.$ac_ext
6854
6855 # OK, works on sane cases. Now check whether nonexistent headers
6856 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006858/* end confdefs.h. */
6859#include <ac_nonexistent.h>
6860_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006861if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006862 # Broken: success on invalid input.
6863continue
6864else
cristy3ed852e2009-09-05 21:47:34 +00006865 # Passes both tests.
6866ac_preproc_ok=:
6867break
6868fi
cristy3ed852e2009-09-05 21:47:34 +00006869rm -f conftest.err conftest.$ac_ext
6870
6871done
6872# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6873rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006874if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00006875 break
6876fi
6877
6878 done
6879 ac_cv_prog_CPP=$CPP
6880
6881fi
6882 CPP=$ac_cv_prog_CPP
6883else
6884 ac_cv_prog_CPP=$CPP
6885fi
cristy8b350f62009-11-15 23:12:43 +00006886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006887$as_echo "$CPP" >&6; }
6888ac_preproc_ok=false
6889for ac_c_preproc_warn_flag in '' yes
6890do
6891 # Use a header file that comes with gcc, so configuring glibc
6892 # with a fresh cross-compiler works.
6893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6894 # <limits.h> exists even on freestanding compilers.
6895 # On the NeXT, cc -E runs the code through the compiler's parser,
6896 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006898/* end confdefs.h. */
6899#ifdef __STDC__
6900# include <limits.h>
6901#else
6902# include <assert.h>
6903#endif
6904 Syntax error
6905_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006906if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006907
cristy8b350f62009-11-15 23:12:43 +00006908else
cristy3ed852e2009-09-05 21:47:34 +00006909 # Broken: fails on valid input.
6910continue
6911fi
cristy3ed852e2009-09-05 21:47:34 +00006912rm -f conftest.err conftest.$ac_ext
6913
6914 # OK, works on sane cases. Now check whether nonexistent headers
6915 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006917/* end confdefs.h. */
6918#include <ac_nonexistent.h>
6919_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006920if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006921 # Broken: success on invalid input.
6922continue
6923else
cristy3ed852e2009-09-05 21:47:34 +00006924 # Passes both tests.
6925ac_preproc_ok=:
6926break
6927fi
cristy3ed852e2009-09-05 21:47:34 +00006928rm -f conftest.err conftest.$ac_ext
6929
6930done
6931# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6932rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006933if $ac_preproc_ok; then :
6934
cristy3ed852e2009-09-05 21:47:34 +00006935else
cristy8b350f62009-11-15 23:12:43 +00006936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00006937$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +00006938as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6939See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00006940fi
6941
6942ac_ext=c
6943ac_cpp='$CPP $CPPFLAGS'
6944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6946ac_compiler_gnu=$ac_cv_c_compiler_gnu
6947
cristy8b350f62009-11-15 23:12:43 +00006948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00006949$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006950if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006951 $as_echo_n "(cached) " >&6
6952else
6953 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6954 for ac_i in 1 2 3 4 5 6 7; do
6955 ac_script="$ac_script$as_nl$ac_script"
6956 done
6957 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00006958 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00006959 if test -z "$SED"; then
6960 ac_path_SED_found=false
6961 # Loop through the user's path and test for each of PROGNAME-LIST
6962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963for as_dir in $PATH
6964do
6965 IFS=$as_save_IFS
6966 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006967 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00006968 for ac_exec_ext in '' $ac_executable_extensions; do
6969 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6970 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6971# Check for GNU ac_path_SED and select it if it is found.
6972 # Check for GNU $ac_path_SED
6973case `"$ac_path_SED" --version 2>&1` in
6974*GNU*)
6975 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6976*)
6977 ac_count=0
6978 $as_echo_n 0123456789 >"conftest.in"
6979 while :
6980 do
6981 cat "conftest.in" "conftest.in" >"conftest.tmp"
6982 mv "conftest.tmp" "conftest.in"
6983 cp "conftest.in" "conftest.nl"
6984 $as_echo '' >> "conftest.nl"
6985 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6986 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00006987 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00006988 if test $ac_count -gt ${ac_path_SED_max-0}; then
6989 # Best one so far, save it but keep looking for a better one
6990 ac_cv_path_SED="$ac_path_SED"
6991 ac_path_SED_max=$ac_count
6992 fi
6993 # 10*(2^10) chars as input seems more than enough
6994 test $ac_count -gt 10 && break
6995 done
6996 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6997esac
6998
6999 $ac_path_SED_found && break 3
7000 done
7001 done
cristy8b350f62009-11-15 23:12:43 +00007002 done
cristy3ed852e2009-09-05 21:47:34 +00007003IFS=$as_save_IFS
7004 if test -z "$ac_cv_path_SED"; then
cristy0684af42010-07-09 00:00:05 +00007005 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007006 fi
7007else
7008 ac_cv_path_SED=$SED
7009fi
7010
7011fi
cristy8b350f62009-11-15 23:12:43 +00007012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00007013$as_echo "$ac_cv_path_SED" >&6; }
7014 SED="$ac_cv_path_SED"
7015 rm -f conftest.sed
7016
7017test -z "$SED" && SED=sed
7018Xsed="$SED -e 1s/^X//"
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
cristy8b350f62009-11-15 23:12:43 +00007030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00007031$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007032if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007033 $as_echo_n "(cached) " >&6
7034else
7035 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7036 then ac_cv_path_FGREP="$GREP -F"
7037 else
7038 if test -z "$FGREP"; then
7039 ac_path_FGREP_found=false
7040 # Loop through the user's path and test for each of PROGNAME-LIST
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7043do
7044 IFS=$as_save_IFS
7045 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007046 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00007047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7049 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7050# Check for GNU ac_path_FGREP and select it if it is found.
7051 # Check for GNU $ac_path_FGREP
7052case `"$ac_path_FGREP" --version 2>&1` in
7053*GNU*)
7054 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7055*)
7056 ac_count=0
7057 $as_echo_n 0123456789 >"conftest.in"
7058 while :
7059 do
7060 cat "conftest.in" "conftest.in" >"conftest.tmp"
7061 mv "conftest.tmp" "conftest.in"
7062 cp "conftest.in" "conftest.nl"
7063 $as_echo 'FGREP' >> "conftest.nl"
7064 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7065 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007066 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007067 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7068 # Best one so far, save it but keep looking for a better one
7069 ac_cv_path_FGREP="$ac_path_FGREP"
7070 ac_path_FGREP_max=$ac_count
7071 fi
7072 # 10*(2^10) chars as input seems more than enough
7073 test $ac_count -gt 10 && break
7074 done
7075 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7076esac
7077
7078 $ac_path_FGREP_found && break 3
7079 done
7080 done
cristy8b350f62009-11-15 23:12:43 +00007081 done
cristy3ed852e2009-09-05 21:47:34 +00007082IFS=$as_save_IFS
7083 if test -z "$ac_cv_path_FGREP"; then
cristy0684af42010-07-09 00:00:05 +00007084 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007085 fi
7086else
7087 ac_cv_path_FGREP=$FGREP
7088fi
7089
7090 fi
7091fi
cristy8b350f62009-11-15 23:12:43 +00007092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007093$as_echo "$ac_cv_path_FGREP" >&6; }
7094 FGREP="$ac_cv_path_FGREP"
7095
7096
7097test -z "$GREP" && GREP=grep
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
cristy232a9ab2010-06-26 01:02:54 +00007115ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7116ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7117ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7118
7119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7120$as_echo_n "checking how to print strings... " >&6; }
7121# Test print first, because it will be a builtin if present.
7122if test "X`print -r -- -n 2>/dev/null`" = X-n && \
7123 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7124 ECHO='print -r --'
7125elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7126 ECHO='printf %s\n'
7127else
7128 # Use this function as a fallback that always works.
7129 func_fallback_echo ()
7130 {
7131 eval 'cat <<_LTECHO_EOF
7132$1
7133_LTECHO_EOF'
7134 }
7135 ECHO='func_fallback_echo'
7136fi
7137
7138# func_echo_all arg...
7139# Invoke $ECHO with all args, space-separated.
7140func_echo_all ()
7141{
7142 $ECHO ""
7143}
7144
7145case "$ECHO" in
7146 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7147$as_echo "printf" >&6; } ;;
7148 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7149$as_echo "print -r" >&6; } ;;
7150 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7151$as_echo "cat" >&6; } ;;
7152esac
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
cristy3ed852e2009-09-05 21:47:34 +00007167
7168
7169# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00007170if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007171 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7172else
7173 with_gnu_ld=no
7174fi
7175
7176ac_prog=ld
7177if test "$GCC" = yes; then
7178 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00007179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007180$as_echo_n "checking for ld used by $CC... " >&6; }
7181 case $host in
7182 *-*-mingw*)
7183 # gcc leaves a trailing carriage return which upsets mingw
7184 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7185 *)
7186 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7187 esac
7188 case $ac_prog in
7189 # Accept absolute paths.
7190 [\\/]* | ?:[\\/]*)
7191 re_direlt='/[^/][^/]*/\.\./'
7192 # Canonicalize the pathname of ld
7193 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7194 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7195 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7196 done
7197 test -z "$LD" && LD="$ac_prog"
7198 ;;
7199 "")
7200 # If it fails, then pretend we aren't using GCC.
7201 ac_prog=ld
7202 ;;
7203 *)
7204 # If it is relative, then search for the first ld in PATH.
7205 with_gnu_ld=unknown
7206 ;;
7207 esac
7208elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007210$as_echo_n "checking for GNU ld... " >&6; }
7211else
cristy8b350f62009-11-15 23:12:43 +00007212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007213$as_echo_n "checking for non-GNU ld... " >&6; }
7214fi
cristy8b350f62009-11-15 23:12:43 +00007215if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007216 $as_echo_n "(cached) " >&6
7217else
7218 if test -z "$LD"; then
7219 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7220 for ac_dir in $PATH; do
7221 IFS="$lt_save_ifs"
7222 test -z "$ac_dir" && ac_dir=.
7223 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7224 lt_cv_path_LD="$ac_dir/$ac_prog"
7225 # Check to see if the program is GNU ld. I'd rather use --version,
7226 # but apparently some variants of GNU ld only accept -v.
7227 # Break only if it was the GNU/non-GNU ld that we prefer.
7228 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7229 *GNU* | *'with BFD'*)
7230 test "$with_gnu_ld" != no && break
7231 ;;
7232 *)
7233 test "$with_gnu_ld" != yes && break
7234 ;;
7235 esac
7236 fi
7237 done
7238 IFS="$lt_save_ifs"
7239else
7240 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7241fi
7242fi
7243
7244LD="$lt_cv_path_LD"
7245if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00007246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00007247$as_echo "$LD" >&6; }
7248else
cristy8b350f62009-11-15 23:12:43 +00007249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007250$as_echo "no" >&6; }
7251fi
cristy0684af42010-07-09 00:00:05 +00007252test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy8b350f62009-11-15 23:12:43 +00007253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007254$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007255if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007256 $as_echo_n "(cached) " >&6
7257else
7258 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7259case `$LD -v 2>&1 </dev/null` in
7260*GNU* | *'with BFD'*)
7261 lt_cv_prog_gnu_ld=yes
7262 ;;
7263*)
7264 lt_cv_prog_gnu_ld=no
7265 ;;
7266esac
7267fi
cristy8b350f62009-11-15 23:12:43 +00007268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007269$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7270with_gnu_ld=$lt_cv_prog_gnu_ld
7271
7272
7273
7274
7275
7276
7277
7278
7279
cristy3ed852e2009-09-05 21:47:34 +00007280
cristy837d6dc2010-02-27 01:16:57 +00007281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7282$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7283if test "${ac_cv_prog_cc_c99+set}" = set; then :
7284 $as_echo_n "(cached) " >&6
7285else
7286 ac_cv_prog_cc_c99=no
7287ac_save_CC=$CC
7288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289/* end confdefs.h. */
7290#include <stdarg.h>
7291#include <stdbool.h>
7292#include <stdlib.h>
7293#include <wchar.h>
7294#include <stdio.h>
7295
7296// Check varargs macros. These examples are taken from C99 6.10.3.5.
7297#define debug(...) fprintf (stderr, __VA_ARGS__)
7298#define showlist(...) puts (#__VA_ARGS__)
7299#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7300static void
7301test_varargs_macros (void)
7302{
7303 int x = 1234;
7304 int y = 5678;
7305 debug ("Flag");
7306 debug ("X = %d\n", x);
7307 showlist (The first, second, and third items.);
7308 report (x>y, "x is %d but y is %d", x, y);
7309}
7310
7311// Check long long types.
7312#define BIG64 18446744073709551615ull
7313#define BIG32 4294967295ul
7314#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7315#if !BIG_OK
7316 your preprocessor is broken;
7317#endif
7318#if BIG_OK
7319#else
7320 your preprocessor is broken;
7321#endif
7322static long long int bignum = -9223372036854775807LL;
7323static unsigned long long int ubignum = BIG64;
7324
7325struct incomplete_array
7326{
7327 int datasize;
7328 double data[];
7329};
7330
7331struct named_init {
7332 int number;
7333 const wchar_t *name;
7334 double average;
7335};
7336
7337typedef const char *ccp;
7338
7339static inline int
7340test_restrict (ccp restrict text)
7341{
7342 // See if C++-style comments work.
7343 // Iterate through items via the restricted pointer.
7344 // Also check for declarations in for loops.
7345 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7346 continue;
7347 return 0;
7348}
7349
7350// Check varargs and va_copy.
7351static void
7352test_varargs (const char *format, ...)
7353{
7354 va_list args;
7355 va_start (args, format);
7356 va_list args_copy;
7357 va_copy (args_copy, args);
7358
7359 const char *str;
7360 int number;
7361 float fnumber;
7362
7363 while (*format)
7364 {
7365 switch (*format++)
7366 {
7367 case 's': // string
7368 str = va_arg (args_copy, const char *);
7369 break;
7370 case 'd': // int
7371 number = va_arg (args_copy, int);
7372 break;
7373 case 'f': // float
7374 fnumber = va_arg (args_copy, double);
7375 break;
7376 default:
7377 break;
7378 }
7379 }
7380 va_end (args_copy);
7381 va_end (args);
7382}
7383
7384int
7385main ()
7386{
7387
7388 // Check bool.
7389 _Bool success = false;
7390
7391 // Check restrict.
7392 if (test_restrict ("String literal") == 0)
7393 success = true;
7394 char *restrict newvar = "Another string";
7395
7396 // Check varargs.
7397 test_varargs ("s, d' f .", "string", 65, 34.234);
7398 test_varargs_macros ();
7399
7400 // Check flexible array members.
7401 struct incomplete_array *ia =
7402 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7403 ia->datasize = 10;
7404 for (int i = 0; i < ia->datasize; ++i)
7405 ia->data[i] = i * 1.234;
7406
7407 // Check named initializers.
7408 struct named_init ni = {
7409 .number = 34,
7410 .name = L"Test wide string",
7411 .average = 543.34343,
7412 };
7413
7414 ni.number = 58;
7415
7416 int dynamic_array[ni.number];
7417 dynamic_array[ni.number - 1] = 543;
7418
7419 // work around unused variable warnings
7420 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7421 || dynamic_array[ni.number - 1] != 543);
7422
7423 ;
7424 return 0;
7425}
7426_ACEOF
7427for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7428do
7429 CC="$ac_save_CC $ac_arg"
7430 if ac_fn_c_try_compile "$LINENO"; then :
7431 ac_cv_prog_cc_c99=$ac_arg
7432fi
7433rm -f core conftest.err conftest.$ac_objext
7434 test "x$ac_cv_prog_cc_c99" != "xno" && break
7435done
7436rm -f conftest.$ac_ext
7437CC=$ac_save_CC
7438
7439fi
7440# AC_CACHE_VAL
7441case "x$ac_cv_prog_cc_c99" in
7442 x)
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7444$as_echo "none needed" >&6; } ;;
7445 xno)
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7447$as_echo "unsupported" >&6; } ;;
7448 *)
7449 CC="$CC $ac_cv_prog_cc_c99"
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7451$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7452esac
7453if test "x$ac_cv_prog_cc_c99" != xno; then :
7454
7455fi
7456
7457
cristy3ed852e2009-09-05 21:47:34 +00007458if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00007459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007460$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7461else
cristy8b350f62009-11-15 23:12:43 +00007462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007463$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7464fi
7465set dummy $CC; ac_cc=`$as_echo "$2" |
7466 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy0684af42010-07-09 00:00:05 +00007467if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007468 $as_echo_n "(cached) " >&6
7469else
cristy8b350f62009-11-15 23:12:43 +00007470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007471/* end confdefs.h. */
7472
7473int
7474main ()
7475{
7476
7477 ;
7478 return 0;
7479}
7480_ACEOF
7481# Make sure it works both with $CC and with simple cc.
7482# We do the test twice because some compilers refuse to overwrite an
7483# existing .o file with -o, though they will create one.
7484ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7485rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007486if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7488 *) ac_try_echo=$ac_try;;
7489esac
cristy8b350f62009-11-15 23:12:43 +00007490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7491$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007492 (eval "$ac_try") 2>&5
7493 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7495 test $ac_status = 0; } &&
7496 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7498 *) ac_try_echo=$ac_try;;
7499esac
cristy8b350f62009-11-15 23:12:43 +00007500eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7501$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007502 (eval "$ac_try") 2>&5
7503 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7505 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007506then
7507 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7508 if test "x$CC" != xcc; then
7509 # Test first that cc exists at all.
7510 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00007511 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7513 *) ac_try_echo=$ac_try;;
7514esac
cristy8b350f62009-11-15 23:12:43 +00007515eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7516$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007517 (eval "$ac_try") 2>&5
7518 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7520 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00007521 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7522 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007523 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7525 *) ac_try_echo=$ac_try;;
7526esac
cristy8b350f62009-11-15 23:12:43 +00007527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7528$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007529 (eval "$ac_try") 2>&5
7530 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7532 test $ac_status = 0; } &&
7533 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535 *) ac_try_echo=$ac_try;;
7536esac
cristy8b350f62009-11-15 23:12:43 +00007537eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7538$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007539 (eval "$ac_try") 2>&5
7540 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7542 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007543 then
7544 # cc works too.
7545 :
7546 else
7547 # cc exists but doesn't like -o.
7548 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7549 fi
7550 fi
7551 fi
7552else
7553 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7554fi
7555rm -f core conftest*
7556
7557fi
7558if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00007559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007560$as_echo "yes" >&6; }
7561else
cristy8b350f62009-11-15 23:12:43 +00007562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007563$as_echo "no" >&6; }
7564
cristy8b350f62009-11-15 23:12:43 +00007565$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007566
7567fi
7568
7569# FIXME: we rely on the cache variable name because
7570# there is no other way.
7571set dummy $CC
7572am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7573eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7574if test "$am_t" != yes; then
7575 # Losing compiler, so override with the script.
7576 # FIXME: It is wrong to rewrite CC.
7577 # But if we don't then we get into trouble of one sort or another.
7578 # A longer-term fix would be to have automake use am__CC in this case,
7579 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7580 CC="$am_aux_dir/compile $CC"
7581fi
7582
7583
cristy92703d82010-04-26 00:18:18 +00007584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7585$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7586if test "${ac_cv_cflags_warn_all+set}" = set; then :
7587 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00007588else
cristy92703d82010-04-26 00:18:18 +00007589 ac_cv_cflags_warn_all="no, unknown"
7590
7591 ac_ext=c
7592ac_cpp='$CPP $CPPFLAGS'
7593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7595ac_compiler_gnu=$ac_cv_c_compiler_gnu
7596
7597 ac_save_CFLAGS="$CFLAGS"
7598for 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" #
7599do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601/* end confdefs.h. */
7602
7603int
7604main ()
7605{
7606return 0;
7607 ;
7608 return 0;
7609}
7610_ACEOF
7611if ac_fn_c_try_compile "$LINENO"; then :
7612 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
cristy3ed852e2009-09-05 21:47:34 +00007613fi
cristy92703d82010-04-26 00:18:18 +00007614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7615done
7616 CFLAGS="$ac_save_CFLAGS"
7617 ac_ext=c
7618ac_cpp='$CPP $CPPFLAGS'
7619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7621ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00007622
7623
cristy92703d82010-04-26 00:18:18 +00007624fi
7625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7626$as_echo "$ac_cv_cflags_warn_all" >&6; }
7627case ".$ac_cv_cflags_warn_all" in
7628 .ok|.ok,*) ;;
7629 .|.no|.no,*)
7630 ;;
7631 *)
7632 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7633 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7634 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7635 ac_status=$?
7636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7637 test $ac_status = 0; }
7638 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7639 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7640 ac_status=$?
7641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7642 test $ac_status = 0; }
7643 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7644 fi
7645 ;;
7646esac
cristy3ed852e2009-09-05 21:47:34 +00007647
cristya0b81c32010-01-22 02:54:33 +00007648$ac_includes_default
7649
7650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7651$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7652set x ${MAKE-make}
7653ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy0684af42010-07-09 00:00:05 +00007654if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
cristya0b81c32010-01-22 02:54:33 +00007655 $as_echo_n "(cached) " >&6
7656else
7657 cat >conftest.make <<\_ACEOF
7658SHELL = /bin/sh
7659all:
7660 @echo '@@@%%%=$(MAKE)=@@@%%%'
7661_ACEOF
cristy0684af42010-07-09 00:00:05 +00007662# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007663case `${MAKE-make} -f conftest.make 2>/dev/null` in
7664 *@@@%%%=?*=@@@%%%*)
7665 eval ac_cv_prog_make_${ac_make}_set=yes;;
7666 *)
7667 eval ac_cv_prog_make_${ac_make}_set=no;;
7668esac
7669rm -f conftest.make
7670fi
7671if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7673$as_echo "yes" >&6; }
7674 SET_MAKE=
7675else
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677$as_echo "no" >&6; }
7678 SET_MAKE="MAKE=${MAKE-make}"
7679fi
7680
cristy8b350f62009-11-15 23:12:43 +00007681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007682$as_echo_n "checking whether ln -s works... " >&6; }
7683LN_S=$as_ln_s
7684if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007686$as_echo "yes" >&6; }
7687else
cristy8b350f62009-11-15 23:12:43 +00007688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007689$as_echo "no, using $LN_S" >&6; }
7690fi
7691
cristy8b350f62009-11-15 23:12:43 +00007692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00007693$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7694
7695# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00007696if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007697 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007699$as_echo "yes" >&6; }
7700
cristy8b350f62009-11-15 23:12:43 +00007701$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007702
7703 LIBS="$LIBS -ldmalloc"
7704 LDFLAGS="$LDFLAGS -g"
7705else
cristy8b350f62009-11-15 23:12:43 +00007706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007707$as_echo "no" >&6; }
7708fi
7709else
cristy8b350f62009-11-15 23:12:43 +00007710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007711$as_echo "no" >&6; }
7712fi
7713
7714
7715
cristy0d3a6382010-04-26 00:45:55 +00007716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7717$as_echo_n "checking for __attribute__... " >&6; }
7718if test "${ax_cv___attribute__+set}" = set; then :
7719 $as_echo_n "(cached) " >&6
7720else
7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7722/* end confdefs.h. */
7723#include <stdlib.h>
7724 static void foo(void) __attribute__ ((unused));
7725 static void
7726 foo(void) {
7727 exit(1);
7728 }
7729
7730int
7731main ()
7732{
7733
7734 ;
7735 return 0;
7736}
7737_ACEOF
7738if ac_fn_c_try_compile "$LINENO"; then :
7739 ax_cv___attribute__=yes
7740else
7741 ax_cv___attribute__=no
7742
7743fi
7744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7745
7746fi
7747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7748$as_echo "$ax_cv___attribute__" >&6; }
7749 if test "$ax_cv___attribute__" = "yes"; then
7750
7751$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7752
7753 fi
7754
7755
cristy3ed852e2009-09-05 21:47:34 +00007756
7757if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7758 if test -n "$ac_tool_prefix"; then
7759 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7760set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007762$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007763if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007764 $as_echo_n "(cached) " >&6
7765else
7766 case $PKG_CONFIG in
7767 [\\/]* | ?:[\\/]*)
7768 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7769 ;;
7770 *)
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772for as_dir in $PATH
7773do
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007776 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7778 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007780 break 2
7781 fi
7782done
cristy8b350f62009-11-15 23:12:43 +00007783 done
cristy3ed852e2009-09-05 21:47:34 +00007784IFS=$as_save_IFS
7785
7786 ;;
7787esac
7788fi
7789PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7790if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007792$as_echo "$PKG_CONFIG" >&6; }
7793else
cristy8b350f62009-11-15 23:12:43 +00007794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007795$as_echo "no" >&6; }
7796fi
7797
7798
7799fi
7800if test -z "$ac_cv_path_PKG_CONFIG"; then
7801 ac_pt_PKG_CONFIG=$PKG_CONFIG
7802 # Extract the first word of "pkg-config", so it can be a program name with args.
7803set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007805$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007806if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007807 $as_echo_n "(cached) " >&6
7808else
7809 case $ac_pt_PKG_CONFIG in
7810 [\\/]* | ?:[\\/]*)
7811 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7812 ;;
7813 *)
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815for as_dir in $PATH
7816do
7817 IFS=$as_save_IFS
7818 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007819 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7821 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007823 break 2
7824 fi
7825done
cristy8b350f62009-11-15 23:12:43 +00007826 done
cristy3ed852e2009-09-05 21:47:34 +00007827IFS=$as_save_IFS
7828
7829 ;;
7830esac
7831fi
7832ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7833if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007835$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7836else
cristy8b350f62009-11-15 23:12:43 +00007837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007838$as_echo "no" >&6; }
7839fi
7840
7841 if test "x$ac_pt_PKG_CONFIG" = x; then
7842 PKG_CONFIG=""
7843 else
7844 case $cross_compiling:$ac_tool_warned in
7845yes:)
cristy8b350f62009-11-15 23:12:43 +00007846{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00007847$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7848ac_tool_warned=yes ;;
7849esac
7850 PKG_CONFIG=$ac_pt_PKG_CONFIG
7851 fi
7852else
7853 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7854fi
7855
7856fi
7857if test -n "$PKG_CONFIG"; then
7858 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00007859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00007860$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7861 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00007862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007863$as_echo "yes" >&6; }
7864 else
cristy8b350f62009-11-15 23:12:43 +00007865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007866$as_echo "no" >&6; }
7867 PKG_CONFIG=""
7868 fi
7869
7870fi
7871
7872#
cristy3ed852e2009-09-05 21:47:34 +00007873# Enable run-time checking.
7874#
7875# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007876if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007877 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7878else
7879 enable_bounds_checking='no'
7880fi
7881
7882
7883if test "$enable_bounds_checking" = yes; then
7884
cristy8b350f62009-11-15 23:12:43 +00007885$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007886
7887fi
7888
7889#
7890# Tests for Windows
7891#
7892
7893
cristy0d3a6382010-04-26 00:45:55 +00007894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7895$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7896if test "${ax_cv_c_compiler_ms+set}" = set; then :
7897 $as_echo_n "(cached) " >&6
7898else
7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900/* end confdefs.h. */
7901
7902int
7903main ()
7904{
7905#ifndef _MSC_VER
7906 choke me
7907#endif
7908
7909 ;
7910 return 0;
7911}
7912_ACEOF
7913if ac_fn_c_try_compile "$LINENO"; then :
7914 ax_compiler_ms=yes
7915else
7916 ax_compiler_ms=no
7917fi
7918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7919ax_cv_c_compiler_ms=$ax_compiler_ms
7920
7921fi
7922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7923$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00007924
7925GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00007926native_win32_build='no'
7927cygwin_build='no'
7928case "${host_os}" in
7929 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00007930 cygwin_build='yes'
7931 GDI32_LIBS='-lgdi32'
7932 ;;
7933 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00007934 native_win32_build='yes'
7935 GDI32_LIBS='-lgdi32'
7936 ;;
7937esac
7938if test "${GDI32_LIBS}x" != 'x'; then
7939
cristy8b350f62009-11-15 23:12:43 +00007940$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007941
7942fi
7943
7944 if test "${GDI32_LIBS}x" != 'x' ; then
7945 WINGDI32_DELEGATE_TRUE=
7946 WINGDI32_DELEGATE_FALSE='#'
7947else
7948 WINGDI32_DELEGATE_TRUE='#'
7949 WINGDI32_DELEGATE_FALSE=
7950fi
7951
7952 if test "${native_win32_build}" = 'yes' ; then
7953 WIN32_NATIVE_BUILD_TRUE=
7954 WIN32_NATIVE_BUILD_FALSE='#'
7955else
7956 WIN32_NATIVE_BUILD_TRUE='#'
7957 WIN32_NATIVE_BUILD_FALSE=
7958fi
7959
7960 if test "${cygwin_build}" = 'yes' ; then
7961 CYGWIN_BUILD_TRUE=
7962 CYGWIN_BUILD_FALSE='#'
7963else
7964 CYGWIN_BUILD_TRUE='#'
7965 CYGWIN_BUILD_FALSE=
7966fi
7967
7968 if test "x${CC}" = 'xcl.exe' ; then
7969 USING_CL_TRUE=
7970 USING_CL_FALSE='#'
7971else
7972 USING_CL_TRUE='#'
7973 USING_CL_FALSE=
7974fi
7975
7976
7977WinPathScript="${srcdirfull}/winpath.sh"
7978
7979
7980#
7981# Compiler flags tweaks
7982#
7983if test "${GCC}" != "yes"; then
7984 case "${host}" in
7985 *-*-hpux* )
7986 # aCC: HP ANSI C++ B3910B A.03.34
7987 CFLAGS="${CFLAGS} -Wp,-H30000"
7988 if test -n "${CXXFLAGS}"; then
7989 CXXFLAGS='-AA'
7990 else
7991 CXXFLAGS="${CXXFLAGS} -AA"
7992 fi
7993 ;;
7994 *-dec-osf5.* )
7995 # Compaq alphaev68-dec-osf5.1 compiler
7996 if test -n "${CXXFLAGS}"; then
7997 CXXFLAGS='-std strict_ansi -noimplicit_include'
7998 else
7999 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8000 fi
8001 esac
8002fi
8003
8004# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008006$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008007if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008008 $as_echo_n "(cached) " >&6
8009else
8010
8011im_cv_ld_lazyload='none'
8012case "${host}" in
8013 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8014 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8015 im_cv_ld_lazyload='-Wl,-zlazyload'
8016 fi
8017 ;;
8018esac
8019
8020fi
cristy8b350f62009-11-15 23:12:43 +00008021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008022$as_echo "$im_cv_ld_lazyload" >&6; }
8023if test "${im_cv_ld_lazyload}" != 'none' ; then
8024 if test -z "${LDFLAGS}" ; then
8025 LDFLAGS="${im_cv_ld_lazyload}"
8026 else
8027 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8028 fi
8029fi
8030
8031case "$host" in
8032*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008033 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008034if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008035 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8036else
8037 build_osxuniversal=no
8038fi
8039
8040
8041 if test "${build_osxuniversal}" != no ; then
8042 if test "$enable_dependency_tracking" != no ; then
cristy0684af42010-07-09 00:00:05 +00008043 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008044Please re-run configure with these options:
8045 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008046 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008047 fi
8048 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8049 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8050 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8051 fi
8052 ;;
8053esac
8054
8055# Enable support for threads
8056
8057# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008058if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008059 withval=$with_threads; with_threads=$withval
8060else
8061 with_threads='yes'
8062fi
8063
8064
8065have_threads=no
8066if test "$with_threads" != 'no'; then
8067
8068
8069
8070ac_ext=c
8071ac_cpp='$CPP $CPPFLAGS'
8072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8074ac_compiler_gnu=$ac_cv_c_compiler_gnu
8075
cristy964cb7f2010-04-25 23:18:00 +00008076ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008077
8078# We used to check for pthread.h first, but this fails if pthread.h
8079# requires special compiler flags (e.g. on True64 or Sequent).
8080# It gets checked for in the link test anyway.
8081
8082# First of all, check if the user has set any of the PTHREAD_LIBS,
8083# etcetera environment variables, and if threads linking works using
8084# them:
8085if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8086 save_CFLAGS="$CFLAGS"
8087 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8088 save_LIBS="$LIBS"
8089 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00008090 { $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 +00008091$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008093/* end confdefs.h. */
8094
8095/* Override any GCC internal prototype to avoid an error.
8096 Use char because int might match the return type of a GCC
8097 builtin and then its argument prototype would still apply. */
8098#ifdef __cplusplus
8099extern "C"
8100#endif
8101char pthread_join ();
8102int
8103main ()
8104{
8105return pthread_join ();
8106 ;
8107 return 0;
8108}
8109_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008110if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008111 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008112fi
cristy8b350f62009-11-15 23:12:43 +00008113rm -f core conftest.err conftest.$ac_objext \
8114 conftest$ac_exeext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +00008115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8116$as_echo "$ax_pthread_ok" >&6; }
8117 if test x"$ax_pthread_ok" = xno; then
cristy3ed852e2009-09-05 21:47:34 +00008118 PTHREAD_LIBS=""
8119 PTHREAD_CFLAGS=""
8120 fi
8121 LIBS="$save_LIBS"
8122 CFLAGS="$save_CFLAGS"
8123fi
8124
8125# We must check for the threads library under a number of different
8126# names; the ordering is very important because some systems
8127# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8128# libraries is broken (non-POSIX).
8129
8130# Create a list of thread flags to try. Items starting with a "-" are
8131# C compiler flags, and other items are library names, except for "none"
8132# which indicates that we try without any flags at all, and "pthread-config"
8133# which is a program returning the flags for the Pth emulation library.
8134
cristy964cb7f2010-04-25 23:18:00 +00008135ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy3ed852e2009-09-05 21:47:34 +00008136
8137# The ordering *is* (sometimes) important. Some notes on the
8138# individual items follow:
8139
8140# pthreads: AIX (must check this before -lpthread)
8141# none: in case threads are in libc; should be tried before -Kthread and
8142# other compiler flags to prevent continual compiler warnings
8143# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8144# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8145# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8146# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8147# -pthreads: Solaris/gcc
8148# -mthreads: Mingw32/gcc, Lynx/gcc
8149# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8150# doesn't hurt to check since this sometimes defines pthreads too;
8151# also defines -D_REENTRANT)
8152# ... -mt is also the pthreads flag for HP/aCC
8153# pthread: Linux, etcetera
8154# --thread-safe: KAI C++
8155# pthread-config: use pthread-config program (for GNU Pth library)
8156
8157case "${host_cpu}-${host_os}" in
8158 *solaris*)
8159
8160 # On Solaris (at least, for some versions), libc contains stubbed
8161 # (non-functional) versions of the pthreads routines, so link-based
8162 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8163 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8164 # a function called by this macro, so we could check for that, but
8165 # who knows whether they'll stub that too in a future libc.) So,
8166 # we'll just look for -pthreads and -lpthread first:
8167
cristy964cb7f2010-04-25 23:18:00 +00008168 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
cristy3ed852e2009-09-05 21:47:34 +00008169 ;;
cristy964cb7f2010-04-25 23:18:00 +00008170
8171 *-darwin*)
8172 acx_pthread_flags="-pthread $acx_pthread_flags"
8173 ;;
cristy3ed852e2009-09-05 21:47:34 +00008174esac
8175
cristy964cb7f2010-04-25 23:18:00 +00008176if test x"$ax_pthread_ok" = xno; then
8177for flag in $ax_pthread_flags; do
cristy3ed852e2009-09-05 21:47:34 +00008178
8179 case $flag in
8180 none)
cristy8b350f62009-11-15 23:12:43 +00008181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00008182$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8183 ;;
8184
8185 -*)
cristy8b350f62009-11-15 23:12:43 +00008186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008187$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8188 PTHREAD_CFLAGS="$flag"
8189 ;;
8190
8191 pthread-config)
8192 # Extract the first word of "pthread-config", so it can be a program name with args.
8193set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008195$as_echo_n "checking for $ac_word... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +00008196if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008197 $as_echo_n "(cached) " >&6
8198else
cristy964cb7f2010-04-25 23:18:00 +00008199 if test -n "$ax_pthread_config"; then
8200 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
cristy3ed852e2009-09-05 21:47:34 +00008201else
8202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203for as_dir in $PATH
8204do
8205 IFS=$as_save_IFS
8206 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008207 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008208 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 +00008209 ac_cv_prog_ax_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00008210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008211 break 2
8212 fi
8213done
cristy8b350f62009-11-15 23:12:43 +00008214 done
cristy3ed852e2009-09-05 21:47:34 +00008215IFS=$as_save_IFS
8216
cristy964cb7f2010-04-25 23:18:00 +00008217 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
cristy3ed852e2009-09-05 21:47:34 +00008218fi
8219fi
cristy964cb7f2010-04-25 23:18:00 +00008220ax_pthread_config=$ac_cv_prog_ax_pthread_config
8221if test -n "$ax_pthread_config"; then
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8223$as_echo "$ax_pthread_config" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008224else
cristy8b350f62009-11-15 23:12:43 +00008225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008226$as_echo "no" >&6; }
8227fi
8228
8229
cristy964cb7f2010-04-25 23:18:00 +00008230 if test x"$ax_pthread_config" = xno; then continue; fi
cristy3ed852e2009-09-05 21:47:34 +00008231 PTHREAD_CFLAGS="`pthread-config --cflags`"
8232 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8233 ;;
8234
8235 *)
cristy8b350f62009-11-15 23:12:43 +00008236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008237$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8238 PTHREAD_LIBS="-l$flag"
8239 ;;
8240 esac
8241
8242 save_LIBS="$LIBS"
8243 save_CFLAGS="$CFLAGS"
8244 LIBS="$PTHREAD_LIBS $LIBS"
8245 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8246
8247 # Check for various functions. We must include pthread.h,
8248 # since some functions may be macros. (On the Sequent, we
8249 # need a special flag -Kthread to make this header compile.)
8250 # We check for pthread_join because it is in -lpthread on IRIX
8251 # while pthread_create is in libc. We check for pthread_attr_init
8252 # due to DEC craziness with -lpthreads. We check for
8253 # pthread_cleanup_push because it is one of the few pthread
8254 # functions on Solaris that doesn't have a non-functional libc stub.
8255 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00008256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008257/* end confdefs.h. */
8258#include <pthread.h>
cristy964cb7f2010-04-25 23:18:00 +00008259 static void routine(void* a) {a=0;}
8260 static void* start_routine(void* a) {return a;}
cristy3ed852e2009-09-05 21:47:34 +00008261int
8262main ()
8263{
cristy964cb7f2010-04-25 23:18:00 +00008264pthread_t th; pthread_attr_t attr;
8265 pthread_join(th, 0);
8266 pthread_attr_init(&attr);
8267 pthread_cleanup_push(routine, 0);
8268 pthread_create(&th,0,start_routine,0);
8269 pthread_cleanup_pop(0);
cristy3ed852e2009-09-05 21:47:34 +00008270 ;
8271 return 0;
8272}
8273_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008274if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008275 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008276fi
cristy8b350f62009-11-15 23:12:43 +00008277rm -f core conftest.err conftest.$ac_objext \
8278 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008279
8280 LIBS="$save_LIBS"
8281 CFLAGS="$save_CFLAGS"
8282
cristy964cb7f2010-04-25 23:18:00 +00008283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8284$as_echo "$ax_pthread_ok" >&6; }
8285 if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008286 break;
8287 fi
8288
8289 PTHREAD_LIBS=""
8290 PTHREAD_CFLAGS=""
8291done
8292fi
8293
8294# Various other checks:
cristy964cb7f2010-04-25 23:18:00 +00008295if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008296 save_LIBS="$LIBS"
8297 LIBS="$PTHREAD_LIBS $LIBS"
8298 save_CFLAGS="$CFLAGS"
8299 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8300
8301 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00008302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00008303$as_echo_n "checking for joinable pthread attribute... " >&6; }
8304 attr_name=unknown
8305 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00008306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008307/* end confdefs.h. */
8308#include <pthread.h>
8309int
8310main ()
8311{
8312int attr=$attr; return attr;
8313 ;
8314 return 0;
8315}
8316_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008317if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008318 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00008319fi
cristy8b350f62009-11-15 23:12:43 +00008320rm -f core conftest.err conftest.$ac_objext \
8321 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008322 done
cristy8b350f62009-11-15 23:12:43 +00008323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00008324$as_echo "$attr_name" >&6; }
8325 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8326
8327cat >>confdefs.h <<_ACEOF
8328#define PTHREAD_CREATE_JOINABLE $attr_name
8329_ACEOF
8330
8331 fi
8332
cristy8b350f62009-11-15 23:12:43 +00008333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00008334$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8335 flag=no
8336 case "${host_cpu}-${host_os}" in
8337 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8338 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8339 esac
cristy8b350f62009-11-15 23:12:43 +00008340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00008341$as_echo "${flag}" >&6; }
8342 if test "x$flag" != xno; then
8343 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8344 fi
8345
8346 LIBS="$save_LIBS"
8347 CFLAGS="$save_CFLAGS"
8348
8349 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00008350 if test x"$GCC" != xyes; then
8351 for ac_prog in xlc_r cc_r
8352do
8353 # Extract the first word of "$ac_prog", so it can be a program name with args.
8354set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008356$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008357if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008358 $as_echo_n "(cached) " >&6
8359else
8360 if test -n "$PTHREAD_CC"; then
8361 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8362else
8363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364for as_dir in $PATH
8365do
8366 IFS=$as_save_IFS
8367 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008368 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008369 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 +00008370 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008372 break 2
8373 fi
8374done
cristy8b350f62009-11-15 23:12:43 +00008375 done
cristy3ed852e2009-09-05 21:47:34 +00008376IFS=$as_save_IFS
8377
cristy3ed852e2009-09-05 21:47:34 +00008378fi
8379fi
8380PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8381if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008383$as_echo "$PTHREAD_CC" >&6; }
8384else
cristy8b350f62009-11-15 23:12:43 +00008385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008386$as_echo "no" >&6; }
8387fi
8388
cristy736173a2009-09-20 21:18:22 +00008389
8390 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00008391done
cristy736173a2009-09-20 21:18:22 +00008392test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00008393
cristy736173a2009-09-20 21:18:22 +00008394 else
8395 PTHREAD_CC=$CC
8396 fi
cristy3ed852e2009-09-05 21:47:34 +00008397else
cristy736173a2009-09-20 21:18:22 +00008398 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00008399fi
8400
cristy3ed852e2009-09-05 21:47:34 +00008401
8402
8403
8404
8405# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
cristy964cb7f2010-04-25 23:18:00 +00008406if test x"$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008407
cristy8b350f62009-11-15 23:12:43 +00008408$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008409
8410 :
8411else
cristy964cb7f2010-04-25 23:18:00 +00008412 ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008413
8414fi
8415ac_ext=c
8416ac_cpp='$CPP $CPPFLAGS'
8417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8419ac_compiler_gnu=$ac_cv_c_compiler_gnu
8420
8421
cristy964cb7f2010-04-25 23:18:00 +00008422 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008423 have_threads=yes
8424 DEF_THREAD="$PTHREAD_CFLAGS"
8425 CFLAGS="$CFLAGS $DEF_THREAD"
8426 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8427 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008428 { $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 +00008429$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8430 CC="$PTHREAD_CC"
8431 fi
8432 fi
8433fi
8434
8435# Enable support for OpenMP
8436if test "$have_threads" != 'yes'; then
8437 ac_cv_prog_c_openmp=unsupported
8438fi
8439
8440 OPENMP_CFLAGS=
8441 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008442if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008443 enableval=$enable_openmp;
8444fi
8445
8446 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008448$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008449if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008450 $as_echo_n "(cached) " >&6
8451else
cristy8b350f62009-11-15 23:12:43 +00008452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008454
8455#ifndef _OPENMP
8456 choke me
8457#endif
8458#include <omp.h>
8459int main () { return omp_get_num_threads (); }
8460
8461_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008462if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008463 ac_cv_prog_c_openmp='none needed'
8464else
cristy8b350f62009-11-15 23:12:43 +00008465 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008466 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8467 ac_save_CFLAGS=$CFLAGS
8468 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008471
8472#ifndef _OPENMP
8473 choke me
8474#endif
8475#include <omp.h>
8476int main () { return omp_get_num_threads (); }
8477
8478_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008479if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008480 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008481fi
cristy8b350f62009-11-15 23:12:43 +00008482rm -f core conftest.err conftest.$ac_objext \
8483 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008484 CFLAGS=$ac_save_CFLAGS
8485 if test "$ac_cv_prog_c_openmp" != unsupported; then
8486 break
8487 fi
8488 done
8489fi
cristy8b350f62009-11-15 23:12:43 +00008490rm -f core conftest.err conftest.$ac_objext \
8491 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008492fi
cristy8b350f62009-11-15 23:12:43 +00008493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008494$as_echo "$ac_cv_prog_c_openmp" >&6; }
8495 case $ac_cv_prog_c_openmp in #(
8496 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008497 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008498 *)
cristy8b350f62009-11-15 23:12:43 +00008499 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008500 esac
8501 fi
8502
8503
8504CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8505MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8506
8507
cristy736173a2009-09-20 21:18:22 +00008508# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00008509
cristy964cb7f2010-04-25 23:18:00 +00008510
8511
8512ac_ext=c
8513ac_cpp='$CPP $CPPFLAGS'
8514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8516ac_compiler_gnu=$ac_cv_c_compiler_gnu
8517
8518ax_pthread_ok=no
8519
8520# We used to check for pthread.h first, but this fails if pthread.h
8521# requires special compiler flags (e.g. on True64 or Sequent).
8522# It gets checked for in the link test anyway.
8523
8524# First of all, check if the user has set any of the PTHREAD_LIBS,
8525# etcetera environment variables, and if threads linking works using
8526# them:
8527if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8528 save_CFLAGS="$CFLAGS"
8529 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8530 save_LIBS="$LIBS"
8531 LIBS="$PTHREAD_LIBS $LIBS"
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8533$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535/* end confdefs.h. */
8536
8537/* Override any GCC internal prototype to avoid an error.
8538 Use char because int might match the return type of a GCC
8539 builtin and then its argument prototype would still apply. */
8540#ifdef __cplusplus
8541extern "C"
8542#endif
8543char pthread_join ();
8544int
8545main ()
8546{
8547return pthread_join ();
8548 ;
8549 return 0;
8550}
8551_ACEOF
8552if ac_fn_c_try_link "$LINENO"; then :
8553 ax_pthread_ok=yes
8554fi
8555rm -f core conftest.err conftest.$ac_objext \
8556 conftest$ac_exeext conftest.$ac_ext
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8558$as_echo "$ax_pthread_ok" >&6; }
8559 if test x"$ax_pthread_ok" = xno; then
8560 PTHREAD_LIBS=""
8561 PTHREAD_CFLAGS=""
8562 fi
8563 LIBS="$save_LIBS"
8564 CFLAGS="$save_CFLAGS"
8565fi
8566
8567# We must check for the threads library under a number of different
8568# names; the ordering is very important because some systems
8569# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8570# libraries is broken (non-POSIX).
8571
8572# Create a list of thread flags to try. Items starting with a "-" are
8573# C compiler flags, and other items are library names, except for "none"
8574# which indicates that we try without any flags at all, and "pthread-config"
8575# which is a program returning the flags for the Pth emulation library.
8576
8577ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8578
8579# The ordering *is* (sometimes) important. Some notes on the
8580# individual items follow:
8581
8582# pthreads: AIX (must check this before -lpthread)
8583# none: in case threads are in libc; should be tried before -Kthread and
8584# other compiler flags to prevent continual compiler warnings
8585# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8586# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8587# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8588# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8589# -pthreads: Solaris/gcc
8590# -mthreads: Mingw32/gcc, Lynx/gcc
8591# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8592# doesn't hurt to check since this sometimes defines pthreads too;
8593# also defines -D_REENTRANT)
8594# ... -mt is also the pthreads flag for HP/aCC
8595# pthread: Linux, etcetera
8596# --thread-safe: KAI C++
8597# pthread-config: use pthread-config program (for GNU Pth library)
8598
8599case "${host_cpu}-${host_os}" in
8600 *solaris*)
8601
8602 # On Solaris (at least, for some versions), libc contains stubbed
8603 # (non-functional) versions of the pthreads routines, so link-based
8604 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8605 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8606 # a function called by this macro, so we could check for that, but
8607 # who knows whether they'll stub that too in a future libc.) So,
8608 # we'll just look for -pthreads and -lpthread first:
8609
8610 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8611 ;;
8612
8613 *-darwin*)
8614 acx_pthread_flags="-pthread $acx_pthread_flags"
8615 ;;
8616esac
8617
8618if test x"$ax_pthread_ok" = xno; then
8619for flag in $ax_pthread_flags; do
8620
8621 case $flag in
8622 none)
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8624$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8625 ;;
8626
8627 -*)
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8629$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8630 PTHREAD_CFLAGS="$flag"
8631 ;;
8632
8633 pthread-config)
8634 # Extract the first word of "pthread-config", so it can be a program name with args.
8635set dummy pthread-config; ac_word=$2
8636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8637$as_echo_n "checking for $ac_word... " >&6; }
8638if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8639 $as_echo_n "(cached) " >&6
8640else
8641 if test -n "$ax_pthread_config"; then
8642 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8643else
8644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8645for as_dir in $PATH
8646do
8647 IFS=$as_save_IFS
8648 test -z "$as_dir" && as_dir=.
8649 for ac_exec_ext in '' $ac_executable_extensions; do
8650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8651 ac_cv_prog_ax_pthread_config="yes"
8652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8653 break 2
8654 fi
8655done
8656 done
8657IFS=$as_save_IFS
8658
8659 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8660fi
8661fi
8662ax_pthread_config=$ac_cv_prog_ax_pthread_config
8663if test -n "$ax_pthread_config"; then
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8665$as_echo "$ax_pthread_config" >&6; }
8666else
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8668$as_echo "no" >&6; }
8669fi
8670
8671
8672 if test x"$ax_pthread_config" = xno; then continue; fi
8673 PTHREAD_CFLAGS="`pthread-config --cflags`"
8674 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8675 ;;
8676
8677 *)
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8679$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8680 PTHREAD_LIBS="-l$flag"
8681 ;;
8682 esac
8683
8684 save_LIBS="$LIBS"
8685 save_CFLAGS="$CFLAGS"
8686 LIBS="$PTHREAD_LIBS $LIBS"
8687 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8688
8689 # Check for various functions. We must include pthread.h,
8690 # since some functions may be macros. (On the Sequent, we
8691 # need a special flag -Kthread to make this header compile.)
8692 # We check for pthread_join because it is in -lpthread on IRIX
8693 # while pthread_create is in libc. We check for pthread_attr_init
8694 # due to DEC craziness with -lpthreads. We check for
8695 # pthread_cleanup_push because it is one of the few pthread
8696 # functions on Solaris that doesn't have a non-functional libc stub.
8697 # We try pthread_create on general principles.
8698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8699/* end confdefs.h. */
8700#include <pthread.h>
8701 static void routine(void* a) {a=0;}
8702 static void* start_routine(void* a) {return a;}
8703int
8704main ()
8705{
8706pthread_t th; pthread_attr_t attr;
8707 pthread_join(th, 0);
8708 pthread_attr_init(&attr);
8709 pthread_cleanup_push(routine, 0);
8710 pthread_create(&th,0,start_routine,0);
8711 pthread_cleanup_pop(0);
8712 ;
8713 return 0;
8714}
8715_ACEOF
8716if ac_fn_c_try_link "$LINENO"; then :
8717 ax_pthread_ok=yes
8718fi
8719rm -f core conftest.err conftest.$ac_objext \
8720 conftest$ac_exeext conftest.$ac_ext
8721
8722 LIBS="$save_LIBS"
8723 CFLAGS="$save_CFLAGS"
8724
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8726$as_echo "$ax_pthread_ok" >&6; }
8727 if test "x$ax_pthread_ok" = xyes; then
8728 break;
8729 fi
8730
8731 PTHREAD_LIBS=""
8732 PTHREAD_CFLAGS=""
8733done
8734fi
8735
8736# Various other checks:
8737if test "x$ax_pthread_ok" = xyes; then
8738 save_LIBS="$LIBS"
8739 LIBS="$PTHREAD_LIBS $LIBS"
8740 save_CFLAGS="$CFLAGS"
8741 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8742
8743 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8745$as_echo_n "checking for joinable pthread attribute... " >&6; }
8746 attr_name=unknown
8747 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749/* end confdefs.h. */
8750#include <pthread.h>
8751int
8752main ()
8753{
8754int attr=$attr; return attr;
8755 ;
8756 return 0;
8757}
8758_ACEOF
8759if ac_fn_c_try_link "$LINENO"; then :
8760 attr_name=$attr; break
8761fi
8762rm -f core conftest.err conftest.$ac_objext \
8763 conftest$ac_exeext conftest.$ac_ext
8764 done
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8766$as_echo "$attr_name" >&6; }
8767 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8768
8769cat >>confdefs.h <<_ACEOF
8770#define PTHREAD_CREATE_JOINABLE $attr_name
8771_ACEOF
8772
8773 fi
8774
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8776$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8777 flag=no
8778 case "${host_cpu}-${host_os}" in
8779 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8780 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8781 esac
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8783$as_echo "${flag}" >&6; }
8784 if test "x$flag" != xno; then
8785 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8786 fi
8787
8788 LIBS="$save_LIBS"
8789 CFLAGS="$save_CFLAGS"
8790
8791 # More AIX lossage: must compile with xlc_r or cc_r
8792 if test x"$GCC" != xyes; then
8793 for ac_prog in xlc_r cc_r
8794do
8795 # Extract the first word of "$ac_prog", so it can be a program name with args.
8796set dummy $ac_prog; ac_word=$2
8797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8798$as_echo_n "checking for $ac_word... " >&6; }
8799if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8800 $as_echo_n "(cached) " >&6
8801else
8802 if test -n "$PTHREAD_CC"; then
8803 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8804else
8805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8806for as_dir in $PATH
8807do
8808 IFS=$as_save_IFS
8809 test -z "$as_dir" && as_dir=.
8810 for ac_exec_ext in '' $ac_executable_extensions; do
8811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8812 ac_cv_prog_PTHREAD_CC="$ac_prog"
8813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8814 break 2
8815 fi
8816done
8817 done
8818IFS=$as_save_IFS
8819
8820fi
8821fi
8822PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8823if test -n "$PTHREAD_CC"; then
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8825$as_echo "$PTHREAD_CC" >&6; }
8826else
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8828$as_echo "no" >&6; }
8829fi
8830
8831
8832 test -n "$PTHREAD_CC" && break
8833done
8834test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8835
8836 else
8837 PTHREAD_CC=$CC
8838 fi
8839else
8840 PTHREAD_CC="$CC"
8841fi
8842
8843
8844
8845
8846
8847# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8848if test x"$ax_pthread_ok" = xyes; then
8849
8850$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8851
8852 :
8853else
8854 ax_pthread_ok=no
8855
8856fi
8857ac_ext=c
8858ac_cpp='$CPP $CPPFLAGS'
8859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8861ac_compiler_gnu=$ac_cv_c_compiler_gnu
8862
8863
8864
cristy43596fe2010-01-21 16:46:08 +00008865# Check whether --enable-opencl was given.
8866if test "${enable_opencl+set}" = set; then :
8867 enableval=$enable_opencl; disable_opencl=$enableval
8868else
8869 disable_opencl='yes'
8870fi
8871
8872
8873if test "$disable_opencl" = 'yes'; then
8874 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008875ac_cpp='$CPP $CPPFLAGS'
8876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8878ac_compiler_gnu=$ac_cv_c_compiler_gnu
8879
cristy43596fe2010-01-21 16:46:08 +00008880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00008881$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008882if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008883 $as_echo_n "(cached) " >&6
8884else
cristy8b350f62009-11-15 23:12:43 +00008885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008886/* end confdefs.h. */
8887
8888int
8889main ()
8890{
8891#ifndef _MSC_VER
8892 choke me
8893#endif
8894
8895 ;
8896 return 0;
8897}
8898_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008899if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008900 ax_compiler_ms=yes
8901else
cristy8b350f62009-11-15 23:12:43 +00008902 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00008903fi
cristy736173a2009-09-20 21:18:22 +00008904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8905ax_cv_c_compiler_ms=$ax_compiler_ms
8906
8907fi
cristy8b350f62009-11-15 23:12:43 +00008908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00008909$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy43596fe2010-01-21 16:46:08 +00008910 if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008911 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8912fi
8913
cristy43596fe2010-01-21 16:46:08 +00008914 ax_save_CPPFLAGS=$CPPFLAGS
8915 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8916 for ac_header in CL/cl.h OpenCL/cl.h
cristy8b350f62009-11-15 23:12:43 +00008917do :
8918 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8919ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy0684af42010-07-09 00:00:05 +00008920if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy736173a2009-09-20 21:18:22 +00008921 cat >>confdefs.h <<_ACEOF
8922#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8923_ACEOF
8924
8925fi
8926
8927done
8928
cristy43596fe2010-01-21 16:46:08 +00008929 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00008930
cristy43596fe2010-01-21 16:46:08 +00008931 for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00008932do :
8933 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8934if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00008935 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008936#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00008937_ACEOF
8938
8939fi
8940
8941done
8942
8943
8944
8945
cristy43596fe2010-01-21 16:46:08 +00008946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00008947$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008948if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008949 $as_echo_n "(cached) " >&6
8950else
8951 ax_cv_check_cl_libcl=no
cristy43596fe2010-01-21 16:46:08 +00008952 case $host_cpu in
8953 x86_64) ax_check_cl_libdir=lib64 ;;
8954 *) ax_check_cl_libdir=lib ;;
8955 esac
8956 ax_save_CPPFLAGS=$CPPFLAGS
8957 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8958 ax_save_LIBS=$LIBS
8959 LIBS=""
8960 ax_check_libs="-lOpenCL -lCL -lclparser"
8961 for ax_lib in $ax_check_libs; do
8962 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00008963 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8964else
8965 ax_try_lib=$ax_lib
8966fi
cristy43596fe2010-01-21 16:46:08 +00008967 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008969/* end confdefs.h. */
8970
cristy43596fe2010-01-21 16:46:08 +00008971 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8972 # include <windows.h>
8973 # endif
8974 # ifdef HAVE_CL_CL_H
8975 # include <CL/cl.h>
8976 # elif defined(HAVE_OPENCL_CL_H)
8977 # include <OpenCL/cl.h>
8978 # else
8979 # error no CL.h
8980 # endif
cristy736173a2009-09-20 21:18:22 +00008981int
8982main ()
8983{
cristyc7083c12009-10-14 03:16:55 +00008984clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008985 ;
8986 return 0;
8987}
8988_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008989if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008990 ax_cv_check_cl_libcl=$ax_try_lib; break
8991else
cristy8b350f62009-11-15 23:12:43 +00008992 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 +00008993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008994/* end confdefs.h. */
8995
cristy43596fe2010-01-21 16:46:08 +00008996 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8997 # include <windows.h>
8998 # endif
8999 # ifdef HAVE_CL_CL_H
9000 # include <CL/cl.h>
9001 # elif defined(HAVE_OPENCL_CL_H)
9002 # include <OpenCL/cl.h>
9003 # else
9004 # error no CL.h
9005 # endif
cristy736173a2009-09-20 21:18:22 +00009006int
9007main ()
9008{
cristyc7083c12009-10-14 03:16:55 +00009009clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009010 ;
9011 return 0;
9012}
9013_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009014if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009015 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9016else
cristy4dc44432009-12-30 23:30:06 +00009017 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 +00009018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009019/* end confdefs.h. */
9020
cristy43596fe2010-01-21 16:46:08 +00009021 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9022 # include <windows.h>
9023 # endif
9024 # ifdef HAVE_CL_CL_H
9025 # include <CL/cl.h>
9026 # elif defined(HAVE_OPENCL_CL_H)
9027 # include <OpenCL/cl.h>
9028 # else
9029 # error no CL.h
9030 # endif
cristy736173a2009-09-20 21:18:22 +00009031int
9032main ()
9033{
cristyc7083c12009-10-14 03:16:55 +00009034clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009035 ;
9036 return 0;
9037}
9038_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009039if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009040 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00009041fi
cristy8b350f62009-11-15 23:12:43 +00009042rm -f core conftest.err conftest.$ac_objext \
9043 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009044fi
cristy8b350f62009-11-15 23:12:43 +00009045rm -f core conftest.err conftest.$ac_objext \
9046 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009047fi
cristy8b350f62009-11-15 23:12:43 +00009048rm -f core conftest.err conftest.$ac_objext \
9049 conftest$ac_exeext conftest.$ac_ext
cristy43596fe2010-01-21 16:46:08 +00009050 done
cristy736173a2009-09-20 21:18:22 +00009051
cristy43596fe2010-01-21 16:46:08 +00009052 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00009053 LIBS='-framework OpenCL'
cristy43596fe2010-01-21 16:46:08 +00009054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009055/* end confdefs.h. */
9056
cristy43596fe2010-01-21 16:46:08 +00009057 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9058 # include <windows.h>
9059 # endif
9060 # ifdef HAVE_CL_CL_H
9061 # include <CL/cl.h>
9062 # elif defined(HAVE_OPENCL_CL_H)
9063 # include <OpenCL/cl.h>
9064 # else
9065 # error no CL.h
9066 # endif
cristy736173a2009-09-20 21:18:22 +00009067int
9068main ()
9069{
cristyc7083c12009-10-14 03:16:55 +00009070clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009071 ;
9072 return 0;
9073}
9074_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009075if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009076 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00009077fi
cristy8b350f62009-11-15 23:12:43 +00009078rm -f core conftest.err conftest.$ac_objext \
9079 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009080fi
9081
cristy43596fe2010-01-21 16:46:08 +00009082 LIBS=$ax_save_LIBS
9083 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00009084fi
cristy8b350f62009-11-15 23:12:43 +00009085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00009086$as_echo "$ax_cv_check_cl_libcl" >&6; }
9087
cristy43596fe2010-01-21 16:46:08 +00009088 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00009089 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9090else
cristy99cc3002010-01-21 14:50:11 +00009091 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9092$as_echo "#define _OPENCL 1" >>confdefs.h
9093
cristy736173a2009-09-20 21:18:22 +00009094fi
cristy43596fe2010-01-21 16:46:08 +00009095 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00009096ac_cpp='$CPP $CPPFLAGS'
9097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9099ac_compiler_gnu=$ac_cv_c_compiler_gnu
9100
cristy43596fe2010-01-21 16:46:08 +00009101fi
cristy736173a2009-09-20 21:18:22 +00009102
9103
9104
9105
cristyc7083c12009-10-14 03:16:55 +00009106CFLAGS="$CL_CFLAGS $CFLAGS"
9107LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009108
cristy2e8b51d2009-10-17 18:26:15 +00009109
cristy3ed852e2009-09-05 21:47:34 +00009110########
9111#
9112# Check for large file support
9113#
9114########
9115# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009116if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009117 enableval=$enable_largefile;
9118fi
9119
9120if test "$enable_largefile" != no; then
9121
cristy8b350f62009-11-15 23:12:43 +00009122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009123$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009124if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009125 $as_echo_n "(cached) " >&6
9126else
9127 ac_cv_sys_largefile_CC=no
9128 if test "$GCC" != yes; then
9129 ac_save_CC=$CC
9130 while :; do
9131 # IRIX 6.2 and later do not support large files by default,
9132 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009134/* end confdefs.h. */
9135#include <sys/types.h>
9136 /* Check that off_t can represent 2**63 - 1 correctly.
9137 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9138 since some C++ compilers masquerading as C compilers
9139 incorrectly reject 9223372036854775807. */
9140#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9141 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9142 && LARGE_OFF_T % 2147483647 == 1)
9143 ? 1 : -1];
9144int
9145main ()
9146{
9147
9148 ;
9149 return 0;
9150}
9151_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009152 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009153 break
cristy3ed852e2009-09-05 21:47:34 +00009154fi
cristy3ed852e2009-09-05 21:47:34 +00009155rm -f core conftest.err conftest.$ac_objext
9156 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009157 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009158 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009159fi
cristy3ed852e2009-09-05 21:47:34 +00009160rm -f core conftest.err conftest.$ac_objext
9161 break
9162 done
9163 CC=$ac_save_CC
9164 rm -f conftest.$ac_ext
9165 fi
9166fi
cristy8b350f62009-11-15 23:12:43 +00009167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009168$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9169 if test "$ac_cv_sys_largefile_CC" != no; then
9170 CC=$CC$ac_cv_sys_largefile_CC
9171 fi
9172
cristy8b350f62009-11-15 23:12:43 +00009173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009174$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009175if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009176 $as_echo_n "(cached) " >&6
9177else
9178 while :; do
cristy8b350f62009-11-15 23:12:43 +00009179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009180/* end confdefs.h. */
9181#include <sys/types.h>
9182 /* Check that off_t can represent 2**63 - 1 correctly.
9183 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9184 since some C++ compilers masquerading as C compilers
9185 incorrectly reject 9223372036854775807. */
9186#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9187 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9188 && LARGE_OFF_T % 2147483647 == 1)
9189 ? 1 : -1];
9190int
9191main ()
9192{
9193
9194 ;
9195 return 0;
9196}
9197_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009198if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009199 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009200fi
cristy3ed852e2009-09-05 21:47:34 +00009201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009203/* end confdefs.h. */
9204#define _FILE_OFFSET_BITS 64
9205#include <sys/types.h>
9206 /* Check that off_t can represent 2**63 - 1 correctly.
9207 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9208 since some C++ compilers masquerading as C compilers
9209 incorrectly reject 9223372036854775807. */
9210#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9211 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9212 && LARGE_OFF_T % 2147483647 == 1)
9213 ? 1 : -1];
9214int
9215main ()
9216{
9217
9218 ;
9219 return 0;
9220}
9221_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009222if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009223 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009224fi
cristy3ed852e2009-09-05 21:47:34 +00009225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9226 ac_cv_sys_file_offset_bits=unknown
9227 break
9228done
9229fi
cristy8b350f62009-11-15 23:12:43 +00009230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009231$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9232case $ac_cv_sys_file_offset_bits in #(
9233 no | unknown) ;;
9234 *)
9235cat >>confdefs.h <<_ACEOF
9236#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9237_ACEOF
9238;;
9239esac
9240rm -rf conftest*
9241 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009243$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009244if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009245 $as_echo_n "(cached) " >&6
9246else
9247 while :; do
cristy8b350f62009-11-15 23:12:43 +00009248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009249/* end confdefs.h. */
9250#include <sys/types.h>
9251 /* Check that off_t can represent 2**63 - 1 correctly.
9252 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9253 since some C++ compilers masquerading as C compilers
9254 incorrectly reject 9223372036854775807. */
9255#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9256 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9257 && LARGE_OFF_T % 2147483647 == 1)
9258 ? 1 : -1];
9259int
9260main ()
9261{
9262
9263 ;
9264 return 0;
9265}
9266_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009267if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009268 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009269fi
cristy3ed852e2009-09-05 21:47:34 +00009270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009272/* end confdefs.h. */
9273#define _LARGE_FILES 1
9274#include <sys/types.h>
9275 /* Check that off_t can represent 2**63 - 1 correctly.
9276 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9277 since some C++ compilers masquerading as C compilers
9278 incorrectly reject 9223372036854775807. */
9279#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9280 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9281 && LARGE_OFF_T % 2147483647 == 1)
9282 ? 1 : -1];
9283int
9284main ()
9285{
9286
9287 ;
9288 return 0;
9289}
9290_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009291if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009292 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009293fi
cristy3ed852e2009-09-05 21:47:34 +00009294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9295 ac_cv_sys_large_files=unknown
9296 break
9297done
9298fi
cristy8b350f62009-11-15 23:12:43 +00009299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009300$as_echo "$ac_cv_sys_large_files" >&6; }
9301case $ac_cv_sys_large_files in #(
9302 no | unknown) ;;
9303 *)
9304cat >>confdefs.h <<_ACEOF
9305#define _LARGE_FILES $ac_cv_sys_large_files
9306_ACEOF
9307;;
9308esac
9309rm -rf conftest*
9310 fi
9311fi
9312
cristy8b350f62009-11-15 23:12:43 +00009313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009314$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009315if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009316 $as_echo_n "(cached) " >&6
9317else
9318 while :; do
cristy8b350f62009-11-15 23:12:43 +00009319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009320/* end confdefs.h. */
9321#include <sys/types.h> /* for off_t */
9322 #include <stdio.h>
9323int
9324main ()
9325{
9326int (*fp) (FILE *, off_t, int) = fseeko;
9327 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9328 ;
9329 return 0;
9330}
9331_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009332if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009333 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009334fi
cristy8b350f62009-11-15 23:12:43 +00009335rm -f core conftest.err conftest.$ac_objext \
9336 conftest$ac_exeext conftest.$ac_ext
9337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009338/* end confdefs.h. */
9339#define _LARGEFILE_SOURCE 1
9340#include <sys/types.h> /* for off_t */
9341 #include <stdio.h>
9342int
9343main ()
9344{
9345int (*fp) (FILE *, off_t, int) = fseeko;
9346 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9347 ;
9348 return 0;
9349}
9350_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009351if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009352 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009353fi
cristy8b350f62009-11-15 23:12:43 +00009354rm -f core conftest.err conftest.$ac_objext \
9355 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009356 ac_cv_sys_largefile_source=unknown
9357 break
9358done
9359fi
cristy8b350f62009-11-15 23:12:43 +00009360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009361$as_echo "$ac_cv_sys_largefile_source" >&6; }
9362case $ac_cv_sys_largefile_source in #(
9363 no | unknown) ;;
9364 *)
9365cat >>confdefs.h <<_ACEOF
9366#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9367_ACEOF
9368;;
9369esac
9370rm -rf conftest*
9371
9372# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9373# in glibc 2.1.3, but that breaks too many other things.
9374# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9375if test $ac_cv_sys_largefile_source != unknown; then
9376
cristy8b350f62009-11-15 23:12:43 +00009377$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009378
9379fi
9380
9381LFS_CPPFLAGS=''
9382if test "$enable_largefile" != no; then
9383 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9384 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9385 else
cristy8b350f62009-11-15 23:12:43 +00009386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009387$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009388 if test "$cross_compiling" = yes; then :
9389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +00009391as_fn_error $? "cannot run test program while cross compiling
9392See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009393else
cristy8b350f62009-11-15 23:12:43 +00009394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9395/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009396#include <unistd.h>
9397 main () {
9398 exit(!(sizeof(off_t) == 8));
9399 }
9400_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009401if ac_fn_c_try_run "$LINENO"; then :
9402 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009403
cristy8b350f62009-11-15 23:12:43 +00009404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009405$as_echo "yes" >&6; }
9406else
cristy8b350f62009-11-15 23:12:43 +00009407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009408$as_echo "no" >&6; }
9409fi
cristy8b350f62009-11-15 23:12:43 +00009410rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9411 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009412fi
9413
cristy3ed852e2009-09-05 21:47:34 +00009414 fi
9415 if test "$ac_cv_sys_large_files" != 'no'; then
9416 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9417 fi
9418 if test "$ac_cv_sys_largefile_source" != 'no'; then
9419 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9420 fi
9421fi
9422
9423
9424#
9425# Configure libtool & libltdl
9426#
9427# Configure libtool
9428enable_dlopen=yes
9429
9430
9431
9432case `pwd` in
9433 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00009434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00009435$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9436esac
9437
9438
9439
cristy232a9ab2010-06-26 01:02:54 +00009440macro_version='2.2.10'
9441macro_revision='1.3175'
cristy3ed852e2009-09-05 21:47:34 +00009442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455ltmain="$ac_aux_dir/ltmain.sh"
9456
cristy232a9ab2010-06-26 01:02:54 +00009457# Backslashify metacharacters that are still active within
9458# double-quoted strings.
9459sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9460
9461# Same as above, but do not quote variable references.
9462double_quote_subst='s/\(["`\\]\)/\\\1/g'
9463
9464# Sed substitution to delay expansion of an escaped shell variable in a
9465# double_quote_subst'ed string.
9466delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9467
9468# Sed substitution to delay expansion of an escaped single quote.
9469delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9470
9471# Sed substitution to avoid accidental globbing in evaled expressions
9472no_glob_subst='s/\*/\\\*/g'
9473
cristy8b350f62009-11-15 23:12:43 +00009474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00009475$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009476if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009477 $as_echo_n "(cached) " >&6
9478else
9479 if test -n "$NM"; then
9480 # Let the user override the test.
9481 lt_cv_path_NM="$NM"
9482else
9483 lt_nm_to_check="${ac_tool_prefix}nm"
9484 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9485 lt_nm_to_check="$lt_nm_to_check nm"
9486 fi
9487 for lt_tmp_nm in $lt_nm_to_check; do
9488 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9489 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9490 IFS="$lt_save_ifs"
9491 test -z "$ac_dir" && ac_dir=.
9492 tmp_nm="$ac_dir/$lt_tmp_nm"
9493 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9494 # Check to see if the nm accepts a BSD-compat flag.
9495 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9496 # nm: unknown option "B" ignored
9497 # Tru64's nm complains that /dev/null is an invalid object file
9498 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9499 */dev/null* | *'Invalid file or object type'*)
9500 lt_cv_path_NM="$tmp_nm -B"
9501 break
9502 ;;
9503 *)
9504 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9505 */dev/null*)
9506 lt_cv_path_NM="$tmp_nm -p"
9507 break
9508 ;;
9509 *)
9510 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9511 continue # so that we can try to find one that supports BSD flags
9512 ;;
9513 esac
9514 ;;
9515 esac
9516 fi
9517 done
9518 IFS="$lt_save_ifs"
9519 done
9520 : ${lt_cv_path_NM=no}
9521fi
9522fi
cristy8b350f62009-11-15 23:12:43 +00009523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00009524$as_echo "$lt_cv_path_NM" >&6; }
9525if test "$lt_cv_path_NM" != "no"; then
9526 NM="$lt_cv_path_NM"
9527else
9528 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy232a9ab2010-06-26 01:02:54 +00009529 if test -n "$DUMPBIN"; then :
9530 # Let the user override the test.
9531 else
9532 if test -n "$ac_tool_prefix"; then
9533 for ac_prog in dumpbin "link -dump"
cristy3ed852e2009-09-05 21:47:34 +00009534 do
9535 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9536set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009538$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009539if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009540 $as_echo_n "(cached) " >&6
9541else
9542 if test -n "$DUMPBIN"; then
9543 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9544else
9545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9546for as_dir in $PATH
9547do
9548 IFS=$as_save_IFS
9549 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009550 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9552 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009554 break 2
9555 fi
9556done
cristy8b350f62009-11-15 23:12:43 +00009557 done
cristy3ed852e2009-09-05 21:47:34 +00009558IFS=$as_save_IFS
9559
9560fi
9561fi
9562DUMPBIN=$ac_cv_prog_DUMPBIN
9563if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009565$as_echo "$DUMPBIN" >&6; }
9566else
cristy8b350f62009-11-15 23:12:43 +00009567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009568$as_echo "no" >&6; }
9569fi
9570
9571
9572 test -n "$DUMPBIN" && break
9573 done
9574fi
9575if test -z "$DUMPBIN"; then
9576 ac_ct_DUMPBIN=$DUMPBIN
cristy232a9ab2010-06-26 01:02:54 +00009577 for ac_prog in dumpbin "link -dump"
cristy3ed852e2009-09-05 21:47:34 +00009578do
9579 # Extract the first word of "$ac_prog", so it can be a program name with args.
9580set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009582$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009583if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009584 $as_echo_n "(cached) " >&6
9585else
9586 if test -n "$ac_ct_DUMPBIN"; then
9587 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9588else
9589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9590for as_dir in $PATH
9591do
9592 IFS=$as_save_IFS
9593 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009594 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9596 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009598 break 2
9599 fi
9600done
cristy8b350f62009-11-15 23:12:43 +00009601 done
cristy3ed852e2009-09-05 21:47:34 +00009602IFS=$as_save_IFS
9603
9604fi
9605fi
9606ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9607if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009609$as_echo "$ac_ct_DUMPBIN" >&6; }
9610else
cristy8b350f62009-11-15 23:12:43 +00009611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009612$as_echo "no" >&6; }
9613fi
9614
9615
9616 test -n "$ac_ct_DUMPBIN" && break
9617done
9618
9619 if test "x$ac_ct_DUMPBIN" = x; then
9620 DUMPBIN=":"
9621 else
9622 case $cross_compiling:$ac_tool_warned in
9623yes:)
cristy8b350f62009-11-15 23:12:43 +00009624{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009625$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9626ac_tool_warned=yes ;;
9627esac
9628 DUMPBIN=$ac_ct_DUMPBIN
9629 fi
9630fi
9631
cristy232a9ab2010-06-26 01:02:54 +00009632 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9633 *COFF*)
9634 DUMPBIN="$DUMPBIN -symbols"
9635 ;;
9636 *)
9637 DUMPBIN=:
9638 ;;
9639 esac
9640 fi
cristy3ed852e2009-09-05 21:47:34 +00009641
9642 if test "$DUMPBIN" != ":"; then
9643 NM="$DUMPBIN"
9644 fi
9645fi
9646test -z "$NM" && NM=nm
9647
9648
9649
9650
9651
9652
cristy8b350f62009-11-15 23:12:43 +00009653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009654$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009655if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009656 $as_echo_n "(cached) " >&6
9657else
9658 lt_cv_nm_interface="BSD nm"
9659 echo "int some_variable = 0;" > conftest.$ac_ext
cristy232a9ab2010-06-26 01:02:54 +00009660 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009661 (eval "$ac_compile" 2>conftest.err)
9662 cat conftest.err >&5
cristy232a9ab2010-06-26 01:02:54 +00009663 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009664 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9665 cat conftest.err >&5
cristy232a9ab2010-06-26 01:02:54 +00009666 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009667 cat conftest.out >&5
9668 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9669 lt_cv_nm_interface="MS dumpbin"
9670 fi
9671 rm -f conftest*
9672fi
cristy8b350f62009-11-15 23:12:43 +00009673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009674$as_echo "$lt_cv_nm_interface" >&6; }
9675
9676# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00009677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00009678$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009679if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009680 $as_echo_n "(cached) " >&6
9681else
9682 i=0
9683 teststring="ABCD"
9684
9685 case $build_os in
9686 msdosdjgpp*)
9687 # On DJGPP, this test can blow up pretty badly due to problems in libc
9688 # (any single argument exceeding 2000 bytes causes a buffer overrun
9689 # during glob expansion). Even if it were fixed, the result of this
9690 # check would be larger than it should be.
9691 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9692 ;;
9693
9694 gnu*)
9695 # Under GNU Hurd, this test is not required because there is
9696 # no limit to the length of command line arguments.
9697 # Libtool will interpret -1 as no limit whatsoever
9698 lt_cv_sys_max_cmd_len=-1;
9699 ;;
9700
9701 cygwin* | mingw* | cegcc*)
9702 # On Win9x/ME, this test blows up -- it succeeds, but takes
9703 # about 5 minutes as the teststring grows exponentially.
9704 # Worse, since 9x/ME are not pre-emptively multitasking,
9705 # you end up with a "frozen" computer, even though with patience
9706 # the test eventually succeeds (with a max line length of 256k).
9707 # Instead, let's just punt: use the minimum linelength reported by
9708 # all of the supported platforms: 8192 (on NT/2K/XP).
9709 lt_cv_sys_max_cmd_len=8192;
9710 ;;
9711
cristy232a9ab2010-06-26 01:02:54 +00009712 mint*)
9713 # On MiNT this can take a long time and run out of memory.
9714 lt_cv_sys_max_cmd_len=8192;
9715 ;;
9716
cristy3ed852e2009-09-05 21:47:34 +00009717 amigaos*)
9718 # On AmigaOS with pdksh, this test takes hours, literally.
9719 # So we just punt and use a minimum line length of 8192.
9720 lt_cv_sys_max_cmd_len=8192;
9721 ;;
9722
9723 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9724 # This has been around since 386BSD, at least. Likely further.
9725 if test -x /sbin/sysctl; then
9726 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9727 elif test -x /usr/sbin/sysctl; then
9728 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9729 else
9730 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9731 fi
9732 # And add a safety zone
9733 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9734 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9735 ;;
9736
9737 interix*)
9738 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9739 lt_cv_sys_max_cmd_len=196608
9740 ;;
9741
9742 osf*)
9743 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9744 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9745 # nice to cause kernel panics so lets avoid the loop below.
9746 # First set a reasonable default.
9747 lt_cv_sys_max_cmd_len=16384
9748 #
9749 if test -x /sbin/sysconfig; then
9750 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9751 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9752 esac
9753 fi
9754 ;;
9755 sco3.2v5*)
9756 lt_cv_sys_max_cmd_len=102400
9757 ;;
9758 sysv5* | sco5v6* | sysv4.2uw2*)
9759 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9760 if test -n "$kargmax"; then
9761 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9762 else
9763 lt_cv_sys_max_cmd_len=32768
9764 fi
9765 ;;
9766 *)
9767 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9768 if test -n "$lt_cv_sys_max_cmd_len"; then
9769 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9770 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9771 else
9772 # Make teststring a little bigger before we do anything with it.
9773 # a 1K string should be a reasonable start.
9774 for i in 1 2 3 4 5 6 7 8 ; do
9775 teststring=$teststring$teststring
9776 done
9777 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9778 # If test is not a shell built-in, we'll probably end up computing a
9779 # maximum length that is only half of the actual maximum length, but
9780 # we can't tell.
cristy232a9ab2010-06-26 01:02:54 +00009781 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9782 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00009783 test $i != 17 # 1/2 MB should be enough
9784 do
9785 i=`expr $i + 1`
9786 teststring=$teststring$teststring
9787 done
9788 # Only check the string length outside the loop.
9789 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9790 teststring=
9791 # Add a significant safety factor because C++ compilers can tack on
9792 # massive amounts of additional arguments before passing them to the
9793 # linker. It appears as though 1/2 is a usable value.
9794 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9795 fi
9796 ;;
9797 esac
9798
9799fi
9800
9801if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00009802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00009803$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9804else
cristy8b350f62009-11-15 23:12:43 +00009805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00009806$as_echo "none" >&6; }
9807fi
9808max_cmd_len=$lt_cv_sys_max_cmd_len
9809
9810
9811
9812
9813
9814
9815: ${CP="cp -f"}
9816: ${MV="mv -f"}
9817: ${RM="rm -f"}
9818
cristy8b350f62009-11-15 23:12:43 +00009819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00009820$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9821# Try some XSI features
9822xsi_shell=no
9823( _lt_dummy="a/b/c"
9824 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9825 = c,a/b,, \
9826 && eval 'test $(( 1 + 1 )) -eq 2 \
9827 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9828 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00009829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00009830$as_echo "$xsi_shell" >&6; }
9831
9832
cristy8b350f62009-11-15 23:12:43 +00009833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00009834$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9835lt_shell_append=no
9836( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9837 >/dev/null 2>&1 \
9838 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00009839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00009840$as_echo "$lt_shell_append" >&6; }
9841
9842
9843if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9844 lt_unset=unset
9845else
9846 lt_unset=false
9847fi
9848
9849
9850
9851
9852
9853# test EBCDIC or ASCII
9854case `echo X|tr X '\101'` in
9855 A) # ASCII based system
9856 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9857 lt_SP2NL='tr \040 \012'
9858 lt_NL2SP='tr \015\012 \040\040'
9859 ;;
9860 *) # EBCDIC based system
9861 lt_SP2NL='tr \100 \n'
9862 lt_NL2SP='tr \r\n \100\100'
9863 ;;
9864esac
9865
9866
9867
9868
9869
9870
9871
9872
9873
cristy8b350f62009-11-15 23:12:43 +00009874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009875$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009876if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009877 $as_echo_n "(cached) " >&6
9878else
9879 lt_cv_ld_reload_flag='-r'
9880fi
cristy8b350f62009-11-15 23:12:43 +00009881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00009882$as_echo "$lt_cv_ld_reload_flag" >&6; }
9883reload_flag=$lt_cv_ld_reload_flag
9884case $reload_flag in
9885"" | " "*) ;;
9886*) reload_flag=" $reload_flag" ;;
9887esac
9888reload_cmds='$LD$reload_flag -o $output$reload_objs'
9889case $host_os in
9890 darwin*)
9891 if test "$GCC" = yes; then
9892 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9893 else
9894 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9895 fi
9896 ;;
9897esac
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907if test -n "$ac_tool_prefix"; then
9908 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9909set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009911$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009912if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009913 $as_echo_n "(cached) " >&6
9914else
9915 if test -n "$OBJDUMP"; then
9916 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9917else
9918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9919for as_dir in $PATH
9920do
9921 IFS=$as_save_IFS
9922 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009923 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9925 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00009926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009927 break 2
9928 fi
9929done
cristy8b350f62009-11-15 23:12:43 +00009930 done
cristy3ed852e2009-09-05 21:47:34 +00009931IFS=$as_save_IFS
9932
9933fi
9934fi
9935OBJDUMP=$ac_cv_prog_OBJDUMP
9936if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009938$as_echo "$OBJDUMP" >&6; }
9939else
cristy8b350f62009-11-15 23:12:43 +00009940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009941$as_echo "no" >&6; }
9942fi
9943
9944
9945fi
9946if test -z "$ac_cv_prog_OBJDUMP"; then
9947 ac_ct_OBJDUMP=$OBJDUMP
9948 # Extract the first word of "objdump", so it can be a program name with args.
9949set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009951$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009952if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009953 $as_echo_n "(cached) " >&6
9954else
9955 if test -n "$ac_ct_OBJDUMP"; then
9956 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9957else
9958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9959for as_dir in $PATH
9960do
9961 IFS=$as_save_IFS
9962 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009963 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9965 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +00009966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009967 break 2
9968 fi
9969done
cristy8b350f62009-11-15 23:12:43 +00009970 done
cristy3ed852e2009-09-05 21:47:34 +00009971IFS=$as_save_IFS
9972
9973fi
9974fi
9975ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9976if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009978$as_echo "$ac_ct_OBJDUMP" >&6; }
9979else
cristy8b350f62009-11-15 23:12:43 +00009980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009981$as_echo "no" >&6; }
9982fi
9983
9984 if test "x$ac_ct_OBJDUMP" = x; then
9985 OBJDUMP="false"
9986 else
9987 case $cross_compiling:$ac_tool_warned in
9988yes:)
cristy8b350f62009-11-15 23:12:43 +00009989{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9991ac_tool_warned=yes ;;
9992esac
9993 OBJDUMP=$ac_ct_OBJDUMP
9994 fi
9995else
9996 OBJDUMP="$ac_cv_prog_OBJDUMP"
9997fi
9998
9999test -z "$OBJDUMP" && OBJDUMP=objdump
10000
10001
10002
10003
10004
10005
cristy8b350f62009-11-15 23:12:43 +000010006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000010007$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010008if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010009 $as_echo_n "(cached) " >&6
10010else
10011 lt_cv_file_magic_cmd='$MAGIC_CMD'
10012lt_cv_file_magic_test_file=
10013lt_cv_deplibs_check_method='unknown'
10014# Need to set the preceding variable on all platforms that support
10015# interlibrary dependencies.
10016# 'none' -- dependencies not supported.
10017# `unknown' -- same as none, but documents that we really don't know.
10018# 'pass_all' -- all dependencies passed with no checks.
10019# 'test_compile' -- check by making test program.
10020# 'file_magic [[regex]]' -- check by looking for files in library path
10021# which responds to the $file_magic_cmd with a given extended regex.
10022# If you have `file' or equivalent on your system and you're not sure
10023# whether `pass_all' will *always* work, you probably want this one.
10024
10025case $host_os in
10026aix[4-9]*)
10027 lt_cv_deplibs_check_method=pass_all
10028 ;;
10029
10030beos*)
10031 lt_cv_deplibs_check_method=pass_all
10032 ;;
10033
10034bsdi[45]*)
10035 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10036 lt_cv_file_magic_cmd='/usr/bin/file -L'
10037 lt_cv_file_magic_test_file=/shlib/libc.so
10038 ;;
10039
10040cygwin*)
10041 # func_win32_libid is a shell function defined in ltmain.sh
10042 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10043 lt_cv_file_magic_cmd='func_win32_libid'
10044 ;;
10045
10046mingw* | pw32*)
10047 # Base MSYS/MinGW do not provide the 'file' command needed by
10048 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10049 # unless we find 'file', for example because we are cross-compiling.
cristy232a9ab2010-06-26 01:02:54 +000010050 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10051 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +000010052 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10053 lt_cv_file_magic_cmd='func_win32_libid'
10054 else
cristy232a9ab2010-06-26 01:02:54 +000010055 # Keep this pattern in sync with the one in func_win32_libid.
10056 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 +000010057 lt_cv_file_magic_cmd='$OBJDUMP -f'
10058 fi
10059 ;;
10060
cristy232a9ab2010-06-26 01:02:54 +000010061cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000010062 # use the weaker test based on 'objdump'. See mingw*.
10063 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10064 lt_cv_file_magic_cmd='$OBJDUMP -f'
10065 ;;
10066
10067darwin* | rhapsody*)
10068 lt_cv_deplibs_check_method=pass_all
10069 ;;
10070
10071freebsd* | dragonfly*)
10072 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10073 case $host_cpu in
10074 i*86 )
10075 # Not sure whether the presence of OpenBSD here was a mistake.
10076 # Let's accept both of them until this is cleared up.
10077 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10078 lt_cv_file_magic_cmd=/usr/bin/file
10079 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10080 ;;
10081 esac
10082 else
10083 lt_cv_deplibs_check_method=pass_all
10084 fi
10085 ;;
10086
10087gnu*)
10088 lt_cv_deplibs_check_method=pass_all
10089 ;;
10090
cristy232a9ab2010-06-26 01:02:54 +000010091haiku*)
10092 lt_cv_deplibs_check_method=pass_all
10093 ;;
10094
cristy3ed852e2009-09-05 21:47:34 +000010095hpux10.20* | hpux11*)
10096 lt_cv_file_magic_cmd=/usr/bin/file
10097 case $host_cpu in
10098 ia64*)
10099 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10100 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10101 ;;
10102 hppa*64*)
cristy232a9ab2010-06-26 01:02:54 +000010103 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 +000010104 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10105 ;;
10106 *)
cristy232a9ab2010-06-26 01:02:54 +000010107 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 +000010108 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10109 ;;
10110 esac
10111 ;;
10112
10113interix[3-9]*)
10114 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10115 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10116 ;;
10117
10118irix5* | irix6* | nonstopux*)
10119 case $LD in
10120 *-32|*"-32 ") libmagic=32-bit;;
10121 *-n32|*"-n32 ") libmagic=N32;;
10122 *-64|*"-64 ") libmagic=64-bit;;
10123 *) libmagic=never-match;;
10124 esac
10125 lt_cv_deplibs_check_method=pass_all
10126 ;;
10127
10128# This must be Linux ELF.
cristy232a9ab2010-06-26 01:02:54 +000010129linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000010130 lt_cv_deplibs_check_method=pass_all
10131 ;;
10132
10133netbsd*)
10134 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10135 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10136 else
10137 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10138 fi
10139 ;;
10140
10141newos6*)
10142 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10143 lt_cv_file_magic_cmd=/usr/bin/file
10144 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10145 ;;
10146
10147*nto* | *qnx*)
10148 lt_cv_deplibs_check_method=pass_all
10149 ;;
10150
10151openbsd*)
10152 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10153 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10154 else
10155 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10156 fi
10157 ;;
10158
10159osf3* | osf4* | osf5*)
10160 lt_cv_deplibs_check_method=pass_all
10161 ;;
10162
10163rdos*)
10164 lt_cv_deplibs_check_method=pass_all
10165 ;;
10166
10167solaris*)
10168 lt_cv_deplibs_check_method=pass_all
10169 ;;
10170
10171sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10172 lt_cv_deplibs_check_method=pass_all
10173 ;;
10174
10175sysv4 | sysv4.3*)
10176 case $host_vendor in
10177 motorola)
10178 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]'
10179 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10180 ;;
10181 ncr)
10182 lt_cv_deplibs_check_method=pass_all
10183 ;;
10184 sequent)
10185 lt_cv_file_magic_cmd='/bin/file'
10186 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10187 ;;
10188 sni)
10189 lt_cv_file_magic_cmd='/bin/file'
10190 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10191 lt_cv_file_magic_test_file=/lib/libc.so
10192 ;;
10193 siemens)
10194 lt_cv_deplibs_check_method=pass_all
10195 ;;
10196 pc)
10197 lt_cv_deplibs_check_method=pass_all
10198 ;;
10199 esac
10200 ;;
10201
10202tpf*)
10203 lt_cv_deplibs_check_method=pass_all
10204 ;;
10205esac
10206
10207fi
cristy8b350f62009-11-15 23:12:43 +000010208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +000010209$as_echo "$lt_cv_deplibs_check_method" >&6; }
10210file_magic_cmd=$lt_cv_file_magic_cmd
10211deplibs_check_method=$lt_cv_deplibs_check_method
10212test -z "$deplibs_check_method" && deplibs_check_method=unknown
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225if test -n "$ac_tool_prefix"; then
10226 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10227set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010229$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010230if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010231 $as_echo_n "(cached) " >&6
10232else
10233 if test -n "$AR"; then
10234 ac_cv_prog_AR="$AR" # Let the user override the test.
10235else
10236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10237for as_dir in $PATH
10238do
10239 IFS=$as_save_IFS
10240 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010241 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10243 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +000010244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010245 break 2
10246 fi
10247done
cristy8b350f62009-11-15 23:12:43 +000010248 done
cristy3ed852e2009-09-05 21:47:34 +000010249IFS=$as_save_IFS
10250
10251fi
10252fi
10253AR=$ac_cv_prog_AR
10254if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +000010255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010256$as_echo "$AR" >&6; }
10257else
cristy8b350f62009-11-15 23:12:43 +000010258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010259$as_echo "no" >&6; }
10260fi
10261
10262
10263fi
10264if test -z "$ac_cv_prog_AR"; then
10265 ac_ct_AR=$AR
10266 # Extract the first word of "ar", so it can be a program name with args.
10267set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010269$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010270if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010271 $as_echo_n "(cached) " >&6
10272else
10273 if test -n "$ac_ct_AR"; then
10274 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10275else
10276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10277for as_dir in $PATH
10278do
10279 IFS=$as_save_IFS
10280 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010281 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10283 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +000010284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010285 break 2
10286 fi
10287done
cristy8b350f62009-11-15 23:12:43 +000010288 done
cristy3ed852e2009-09-05 21:47:34 +000010289IFS=$as_save_IFS
10290
10291fi
10292fi
10293ac_ct_AR=$ac_cv_prog_ac_ct_AR
10294if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +000010295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010296$as_echo "$ac_ct_AR" >&6; }
10297else
cristy8b350f62009-11-15 23:12:43 +000010298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010299$as_echo "no" >&6; }
10300fi
10301
10302 if test "x$ac_ct_AR" = x; then
10303 AR="false"
10304 else
10305 case $cross_compiling:$ac_tool_warned in
10306yes:)
cristy8b350f62009-11-15 23:12:43 +000010307{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010308$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10309ac_tool_warned=yes ;;
10310esac
10311 AR=$ac_ct_AR
10312 fi
10313else
10314 AR="$ac_cv_prog_AR"
10315fi
10316
10317test -z "$AR" && AR=ar
10318test -z "$AR_FLAGS" && AR_FLAGS=cru
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330if test -n "$ac_tool_prefix"; then
10331 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10332set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010334$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010335if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010336 $as_echo_n "(cached) " >&6
10337else
10338 if test -n "$STRIP"; then
10339 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10340else
10341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10342for as_dir in $PATH
10343do
10344 IFS=$as_save_IFS
10345 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010346 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10348 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +000010349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010350 break 2
10351 fi
10352done
cristy8b350f62009-11-15 23:12:43 +000010353 done
cristy3ed852e2009-09-05 21:47:34 +000010354IFS=$as_save_IFS
10355
10356fi
10357fi
10358STRIP=$ac_cv_prog_STRIP
10359if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010361$as_echo "$STRIP" >&6; }
10362else
cristy8b350f62009-11-15 23:12:43 +000010363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010364$as_echo "no" >&6; }
10365fi
10366
10367
10368fi
10369if test -z "$ac_cv_prog_STRIP"; then
10370 ac_ct_STRIP=$STRIP
10371 # Extract the first word of "strip", so it can be a program name with args.
10372set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010374$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010375if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010376 $as_echo_n "(cached) " >&6
10377else
10378 if test -n "$ac_ct_STRIP"; then
10379 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10380else
10381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10382for as_dir in $PATH
10383do
10384 IFS=$as_save_IFS
10385 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010386 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10388 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +000010389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010390 break 2
10391 fi
10392done
cristy8b350f62009-11-15 23:12:43 +000010393 done
cristy3ed852e2009-09-05 21:47:34 +000010394IFS=$as_save_IFS
10395
10396fi
10397fi
10398ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10399if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010401$as_echo "$ac_ct_STRIP" >&6; }
10402else
cristy8b350f62009-11-15 23:12:43 +000010403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010404$as_echo "no" >&6; }
10405fi
10406
10407 if test "x$ac_ct_STRIP" = x; then
10408 STRIP=":"
10409 else
10410 case $cross_compiling:$ac_tool_warned in
10411yes:)
cristy8b350f62009-11-15 23:12:43 +000010412{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10414ac_tool_warned=yes ;;
10415esac
10416 STRIP=$ac_ct_STRIP
10417 fi
10418else
10419 STRIP="$ac_cv_prog_STRIP"
10420fi
10421
10422test -z "$STRIP" && STRIP=:
10423
10424
10425
10426
10427
10428
10429if test -n "$ac_tool_prefix"; then
10430 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10431set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010433$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010434if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010435 $as_echo_n "(cached) " >&6
10436else
10437 if test -n "$RANLIB"; then
10438 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10439else
10440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10441for as_dir in $PATH
10442do
10443 IFS=$as_save_IFS
10444 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010445 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10447 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +000010448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010449 break 2
10450 fi
10451done
cristy8b350f62009-11-15 23:12:43 +000010452 done
cristy3ed852e2009-09-05 21:47:34 +000010453IFS=$as_save_IFS
10454
10455fi
10456fi
10457RANLIB=$ac_cv_prog_RANLIB
10458if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010460$as_echo "$RANLIB" >&6; }
10461else
cristy8b350f62009-11-15 23:12:43 +000010462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010463$as_echo "no" >&6; }
10464fi
10465
10466
10467fi
10468if test -z "$ac_cv_prog_RANLIB"; then
10469 ac_ct_RANLIB=$RANLIB
10470 # Extract the first word of "ranlib", so it can be a program name with args.
10471set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010473$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010474if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010475 $as_echo_n "(cached) " >&6
10476else
10477 if test -n "$ac_ct_RANLIB"; then
10478 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10479else
10480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10481for as_dir in $PATH
10482do
10483 IFS=$as_save_IFS
10484 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010485 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10487 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +000010488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010489 break 2
10490 fi
10491done
cristy8b350f62009-11-15 23:12:43 +000010492 done
cristy3ed852e2009-09-05 21:47:34 +000010493IFS=$as_save_IFS
10494
10495fi
10496fi
10497ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10498if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010500$as_echo "$ac_ct_RANLIB" >&6; }
10501else
cristy8b350f62009-11-15 23:12:43 +000010502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010503$as_echo "no" >&6; }
10504fi
10505
10506 if test "x$ac_ct_RANLIB" = x; then
10507 RANLIB=":"
10508 else
10509 case $cross_compiling:$ac_tool_warned in
10510yes:)
cristy8b350f62009-11-15 23:12:43 +000010511{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010512$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10513ac_tool_warned=yes ;;
10514esac
10515 RANLIB=$ac_ct_RANLIB
10516 fi
10517else
10518 RANLIB="$ac_cv_prog_RANLIB"
10519fi
10520
10521test -z "$RANLIB" && RANLIB=:
10522
10523
10524
10525
10526
10527
10528# Determine commands to create old-style static archives.
10529old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10530old_postinstall_cmds='chmod 644 $oldlib'
10531old_postuninstall_cmds=
10532
10533if test -n "$RANLIB"; then
10534 case $host_os in
10535 openbsd*)
10536 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10537 ;;
10538 *)
10539 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10540 ;;
10541 esac
10542 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10543fi
10544
cristy232a9ab2010-06-26 01:02:54 +000010545case $host_os in
10546 darwin*)
10547 lock_old_archive_extraction=yes ;;
10548 *)
10549 lock_old_archive_extraction=no ;;
10550esac
10551
10552
10553
10554
10555
10556
cristy3ed852e2009-09-05 21:47:34 +000010557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590# If no C compiler was specified, use CC.
10591LTCC=${LTCC-"$CC"}
10592
10593# If no C compiler flags were specified, use CFLAGS.
10594LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10595
10596# Allow CC to be a program name with arguments.
10597compiler=$CC
10598
10599
10600# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +000010601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +000010602$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010603if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010604 $as_echo_n "(cached) " >&6
10605else
10606
10607# These are sane defaults that work on at least a few old systems.
10608# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10609
10610# Character class describing NM global symbol codes.
10611symcode='[BCDEGRST]'
10612
10613# Regexp to match symbols that can be accessed directly from C.
10614sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10615
10616# Define system-specific variables.
10617case $host_os in
10618aix*)
10619 symcode='[BCDT]'
10620 ;;
10621cygwin* | mingw* | pw32* | cegcc*)
10622 symcode='[ABCDGISTW]'
10623 ;;
10624hpux*)
10625 if test "$host_cpu" = ia64; then
10626 symcode='[ABCDEGRST]'
10627 fi
10628 ;;
10629irix* | nonstopux*)
10630 symcode='[BCDEGRST]'
10631 ;;
10632osf*)
10633 symcode='[BCDEGQRST]'
10634 ;;
10635solaris*)
10636 symcode='[BDRT]'
10637 ;;
10638sco3.2v5*)
10639 symcode='[DT]'
10640 ;;
10641sysv4.2uw2*)
10642 symcode='[DT]'
10643 ;;
10644sysv5* | sco5v6* | unixware* | OpenUNIX*)
10645 symcode='[ABDT]'
10646 ;;
10647sysv4)
10648 symcode='[DFNSTU]'
10649 ;;
10650esac
10651
10652# If we're using GNU nm, then use its standard symbol codes.
10653case `$NM -V 2>&1` in
10654*GNU* | *'with BFD'*)
10655 symcode='[ABCDGIRSTW]' ;;
10656esac
10657
10658# Transform an extracted symbol line into a proper C declaration.
10659# Some systems (esp. on ia64) link data and code symbols differently,
10660# so use this general approach.
10661lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10662
10663# Transform an extracted symbol line into symbol name and symbol address
10664lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10665lt_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'"
10666
10667# Handle CRLF in mingw tool chain
10668opt_cr=
10669case $build_os in
10670mingw*)
10671 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10672 ;;
10673esac
10674
10675# Try without a prefix underscore, then with it.
10676for ac_symprfx in "" "_"; do
10677
10678 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10679 symxfrm="\\1 $ac_symprfx\\2 \\2"
10680
10681 # Write the raw and C identifiers.
10682 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10683 # Fake it for dumpbin and say T for any non-static function
10684 # and D for any global variable.
10685 # Also find C++ and __fastcall symbols from MSVC++,
10686 # which start with @ or ?.
10687 lt_cv_sys_global_symbol_pipe="$AWK '"\
10688" {last_section=section; section=\$ 3};"\
10689" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10690" \$ 0!~/External *\|/{next};"\
10691" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10692" {if(hide[section]) next};"\
10693" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10694" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10695" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10696" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10697" ' prfx=^$ac_symprfx"
10698 else
10699 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10700 fi
10701
10702 # Check to see that the pipe works correctly.
10703 pipe_works=no
10704
10705 rm -f conftest*
10706 cat > conftest.$ac_ext <<_LT_EOF
10707#ifdef __cplusplus
10708extern "C" {
10709#endif
10710char nm_test_var;
10711void nm_test_func(void);
10712void nm_test_func(void){}
10713#ifdef __cplusplus
10714}
10715#endif
10716int main(){nm_test_var='a';nm_test_func();return(0);}
10717_LT_EOF
10718
cristy8b350f62009-11-15 23:12:43 +000010719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010720 (eval $ac_compile) 2>&5
10721 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10723 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010724 # Now try to grab the symbols.
10725 nlist=conftest.nm
cristy232a9ab2010-06-26 01:02:54 +000010726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10727 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +000010728 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10730 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000010731 # Try sorting and uniquifying the output.
10732 if sort "$nlist" | uniq > "$nlist"T; then
10733 mv -f "$nlist"T "$nlist"
10734 else
10735 rm -f "$nlist"T
10736 fi
10737
10738 # Make sure that we snagged all the symbols we need.
10739 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10740 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10741 cat <<_LT_EOF > conftest.$ac_ext
10742#ifdef __cplusplus
10743extern "C" {
10744#endif
10745
10746_LT_EOF
10747 # Now generate the symbol file.
10748 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10749
10750 cat <<_LT_EOF >> conftest.$ac_ext
10751
10752/* The mapping between symbol names and symbols. */
10753const struct {
10754 const char *name;
10755 void *address;
10756}
10757lt__PROGRAM__LTX_preloaded_symbols[] =
10758{
10759 { "@PROGRAM@", (void *) 0 },
10760_LT_EOF
10761 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10762 cat <<\_LT_EOF >> conftest.$ac_ext
10763 {0, (void *) 0}
10764};
10765
10766/* This works around a problem in FreeBSD linker */
10767#ifdef FREEBSD_WORKAROUND
10768static const void *lt_preloaded_setup() {
10769 return lt__PROGRAM__LTX_preloaded_symbols;
10770}
10771#endif
10772
10773#ifdef __cplusplus
10774}
10775#endif
10776_LT_EOF
10777 # Now try linking the two files.
10778 mv conftest.$ac_objext conftstm.$ac_objext
10779 lt_save_LIBS="$LIBS"
10780 lt_save_CFLAGS="$CFLAGS"
10781 LIBS="conftstm.$ac_objext"
10782 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +000010783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010784 (eval $ac_link) 2>&5
10785 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10787 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +000010788 pipe_works=yes
10789 fi
10790 LIBS="$lt_save_LIBS"
10791 CFLAGS="$lt_save_CFLAGS"
10792 else
10793 echo "cannot find nm_test_func in $nlist" >&5
10794 fi
10795 else
10796 echo "cannot find nm_test_var in $nlist" >&5
10797 fi
10798 else
10799 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10800 fi
10801 else
10802 echo "$progname: failed program was:" >&5
10803 cat conftest.$ac_ext >&5
10804 fi
10805 rm -rf conftest* conftst*
10806
10807 # Do not use the global_symbol_pipe unless it works.
10808 if test "$pipe_works" = yes; then
10809 break
10810 else
10811 lt_cv_sys_global_symbol_pipe=
10812 fi
10813done
10814
10815fi
10816
10817if test -z "$lt_cv_sys_global_symbol_pipe"; then
10818 lt_cv_sys_global_symbol_to_cdecl=
10819fi
10820if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +000010821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +000010822$as_echo "failed" >&6; }
10823else
cristy8b350f62009-11-15 23:12:43 +000010824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000010825$as_echo "ok" >&6; }
10826fi
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +000010850if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010851 enableval=$enable_libtool_lock;
10852fi
10853
10854test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10855
10856# Some flags need to be propagated to the compiler or linker for good
10857# libtool support.
10858case $host in
10859ia64-*-hpux*)
10860 # Find out which ABI we are using.
10861 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010863 (eval $ac_compile) 2>&5
10864 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10866 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010867 case `/usr/bin/file conftest.$ac_objext` in
10868 *ELF-32*)
10869 HPUX_IA64_MODE="32"
10870 ;;
10871 *ELF-64*)
10872 HPUX_IA64_MODE="64"
10873 ;;
10874 esac
10875 fi
10876 rm -rf conftest*
10877 ;;
10878*-*-irix6*)
10879 # Find out which ABI we are using.
cristy232a9ab2010-06-26 01:02:54 +000010880 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010882 (eval $ac_compile) 2>&5
10883 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10885 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010886 if test "$lt_cv_prog_gnu_ld" = yes; then
10887 case `/usr/bin/file conftest.$ac_objext` in
10888 *32-bit*)
10889 LD="${LD-ld} -melf32bsmip"
10890 ;;
10891 *N32*)
10892 LD="${LD-ld} -melf32bmipn32"
10893 ;;
10894 *64-bit*)
10895 LD="${LD-ld} -melf64bmip"
10896 ;;
10897 esac
10898 else
10899 case `/usr/bin/file conftest.$ac_objext` in
10900 *32-bit*)
10901 LD="${LD-ld} -32"
10902 ;;
10903 *N32*)
10904 LD="${LD-ld} -n32"
10905 ;;
10906 *64-bit*)
10907 LD="${LD-ld} -64"
10908 ;;
10909 esac
10910 fi
10911 fi
10912 rm -rf conftest*
10913 ;;
10914
10915x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10916s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10917 # Find out which ABI we are using.
10918 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010920 (eval $ac_compile) 2>&5
10921 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10923 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010924 case `/usr/bin/file conftest.o` in
10925 *32-bit*)
10926 case $host in
10927 x86_64-*kfreebsd*-gnu)
10928 LD="${LD-ld} -m elf_i386_fbsd"
10929 ;;
10930 x86_64-*linux*)
10931 LD="${LD-ld} -m elf_i386"
10932 ;;
10933 ppc64-*linux*|powerpc64-*linux*)
10934 LD="${LD-ld} -m elf32ppclinux"
10935 ;;
10936 s390x-*linux*)
10937 LD="${LD-ld} -m elf_s390"
10938 ;;
10939 sparc64-*linux*)
10940 LD="${LD-ld} -m elf32_sparc"
10941 ;;
10942 esac
10943 ;;
10944 *64-bit*)
10945 case $host in
10946 x86_64-*kfreebsd*-gnu)
10947 LD="${LD-ld} -m elf_x86_64_fbsd"
10948 ;;
10949 x86_64-*linux*)
10950 LD="${LD-ld} -m elf_x86_64"
10951 ;;
10952 ppc*-*linux*|powerpc*-*linux*)
10953 LD="${LD-ld} -m elf64ppc"
10954 ;;
10955 s390*-*linux*|s390*-*tpf*)
10956 LD="${LD-ld} -m elf64_s390"
10957 ;;
10958 sparc*-*linux*)
10959 LD="${LD-ld} -m elf64_sparc"
10960 ;;
10961 esac
10962 ;;
10963 esac
10964 fi
10965 rm -rf conftest*
10966 ;;
10967
10968*-*-sco3.2v5*)
10969 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10970 SAVE_CFLAGS="$CFLAGS"
10971 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +000010972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000010973$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010974if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010975 $as_echo_n "(cached) " >&6
10976else
10977 ac_ext=c
10978ac_cpp='$CPP $CPPFLAGS'
10979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10981ac_compiler_gnu=$ac_cv_c_compiler_gnu
10982
cristy8b350f62009-11-15 23:12:43 +000010983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010984/* end confdefs.h. */
10985
10986int
10987main ()
10988{
10989
10990 ;
10991 return 0;
10992}
10993_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010994if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010995 lt_cv_cc_needs_belf=yes
10996else
cristy8b350f62009-11-15 23:12:43 +000010997 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +000010998fi
cristy8b350f62009-11-15 23:12:43 +000010999rm -f core conftest.err conftest.$ac_objext \
11000 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011001 ac_ext=c
11002ac_cpp='$CPP $CPPFLAGS'
11003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11005ac_compiler_gnu=$ac_cv_c_compiler_gnu
11006
11007fi
cristy8b350f62009-11-15 23:12:43 +000011008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000011009$as_echo "$lt_cv_cc_needs_belf" >&6; }
11010 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11011 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11012 CFLAGS="$SAVE_CFLAGS"
11013 fi
11014 ;;
11015sparc*-*solaris*)
11016 # Find out which ABI we are using.
11017 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000011019 (eval $ac_compile) 2>&5
11020 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000011021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11022 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000011023 case `/usr/bin/file conftest.o` in
11024 *64-bit*)
11025 case $lt_cv_prog_gnu_ld in
11026 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11027 *)
11028 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11029 LD="${LD-ld} -64"
11030 fi
11031 ;;
11032 esac
11033 ;;
11034 esac
11035 fi
11036 rm -rf conftest*
11037 ;;
11038esac
11039
11040need_locks="$enable_libtool_lock"
11041
11042
11043 case $host_os in
11044 rhapsody* | darwin*)
11045 if test -n "$ac_tool_prefix"; then
11046 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11047set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011049$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011050if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011051 $as_echo_n "(cached) " >&6
11052else
11053 if test -n "$DSYMUTIL"; then
11054 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11055else
11056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057for as_dir in $PATH
11058do
11059 IFS=$as_save_IFS
11060 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011061 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11063 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011065 break 2
11066 fi
11067done
cristy8b350f62009-11-15 23:12:43 +000011068 done
cristy3ed852e2009-09-05 21:47:34 +000011069IFS=$as_save_IFS
11070
11071fi
11072fi
11073DSYMUTIL=$ac_cv_prog_DSYMUTIL
11074if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011076$as_echo "$DSYMUTIL" >&6; }
11077else
cristy8b350f62009-11-15 23:12:43 +000011078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011079$as_echo "no" >&6; }
11080fi
11081
11082
11083fi
11084if test -z "$ac_cv_prog_DSYMUTIL"; then
11085 ac_ct_DSYMUTIL=$DSYMUTIL
11086 # Extract the first word of "dsymutil", so it can be a program name with args.
11087set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011089$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011090if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011091 $as_echo_n "(cached) " >&6
11092else
11093 if test -n "$ac_ct_DSYMUTIL"; then
11094 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11095else
11096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11097for as_dir in $PATH
11098do
11099 IFS=$as_save_IFS
11100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011101 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11103 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011105 break 2
11106 fi
11107done
cristy8b350f62009-11-15 23:12:43 +000011108 done
cristy3ed852e2009-09-05 21:47:34 +000011109IFS=$as_save_IFS
11110
11111fi
11112fi
11113ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11114if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011116$as_echo "$ac_ct_DSYMUTIL" >&6; }
11117else
cristy8b350f62009-11-15 23:12:43 +000011118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011119$as_echo "no" >&6; }
11120fi
11121
11122 if test "x$ac_ct_DSYMUTIL" = x; then
11123 DSYMUTIL=":"
11124 else
11125 case $cross_compiling:$ac_tool_warned in
11126yes:)
cristy8b350f62009-11-15 23:12:43 +000011127{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011128$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11129ac_tool_warned=yes ;;
11130esac
11131 DSYMUTIL=$ac_ct_DSYMUTIL
11132 fi
11133else
11134 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11135fi
11136
11137 if test -n "$ac_tool_prefix"; then
11138 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11139set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011141$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011142if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011143 $as_echo_n "(cached) " >&6
11144else
11145 if test -n "$NMEDIT"; then
11146 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11147else
11148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11149for as_dir in $PATH
11150do
11151 IFS=$as_save_IFS
11152 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011153 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11155 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +000011156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011157 break 2
11158 fi
11159done
cristy8b350f62009-11-15 23:12:43 +000011160 done
cristy3ed852e2009-09-05 21:47:34 +000011161IFS=$as_save_IFS
11162
11163fi
11164fi
11165NMEDIT=$ac_cv_prog_NMEDIT
11166if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011168$as_echo "$NMEDIT" >&6; }
11169else
cristy8b350f62009-11-15 23:12:43 +000011170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011171$as_echo "no" >&6; }
11172fi
11173
11174
11175fi
11176if test -z "$ac_cv_prog_NMEDIT"; then
11177 ac_ct_NMEDIT=$NMEDIT
11178 # Extract the first word of "nmedit", so it can be a program name with args.
11179set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011181$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011182if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011183 $as_echo_n "(cached) " >&6
11184else
11185 if test -n "$ac_ct_NMEDIT"; then
11186 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11187else
11188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11189for as_dir in $PATH
11190do
11191 IFS=$as_save_IFS
11192 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011193 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11195 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +000011196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011197 break 2
11198 fi
11199done
cristy8b350f62009-11-15 23:12:43 +000011200 done
cristy3ed852e2009-09-05 21:47:34 +000011201IFS=$as_save_IFS
11202
11203fi
11204fi
11205ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11206if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011208$as_echo "$ac_ct_NMEDIT" >&6; }
11209else
cristy8b350f62009-11-15 23:12:43 +000011210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011211$as_echo "no" >&6; }
11212fi
11213
11214 if test "x$ac_ct_NMEDIT" = x; then
11215 NMEDIT=":"
11216 else
11217 case $cross_compiling:$ac_tool_warned in
11218yes:)
cristy8b350f62009-11-15 23:12:43 +000011219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11221ac_tool_warned=yes ;;
11222esac
11223 NMEDIT=$ac_ct_NMEDIT
11224 fi
11225else
11226 NMEDIT="$ac_cv_prog_NMEDIT"
11227fi
11228
11229 if test -n "$ac_tool_prefix"; then
11230 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11231set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011233$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011234if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011235 $as_echo_n "(cached) " >&6
11236else
11237 if test -n "$LIPO"; then
11238 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11239else
11240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11241for as_dir in $PATH
11242do
11243 IFS=$as_save_IFS
11244 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011245 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11247 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +000011248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011249 break 2
11250 fi
11251done
cristy8b350f62009-11-15 23:12:43 +000011252 done
cristy3ed852e2009-09-05 21:47:34 +000011253IFS=$as_save_IFS
11254
11255fi
11256fi
11257LIPO=$ac_cv_prog_LIPO
11258if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011260$as_echo "$LIPO" >&6; }
11261else
cristy8b350f62009-11-15 23:12:43 +000011262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011263$as_echo "no" >&6; }
11264fi
11265
11266
11267fi
11268if test -z "$ac_cv_prog_LIPO"; then
11269 ac_ct_LIPO=$LIPO
11270 # Extract the first word of "lipo", so it can be a program name with args.
11271set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011273$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011274if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011275 $as_echo_n "(cached) " >&6
11276else
11277 if test -n "$ac_ct_LIPO"; then
11278 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11279else
11280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11281for as_dir in $PATH
11282do
11283 IFS=$as_save_IFS
11284 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011285 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11287 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +000011288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011289 break 2
11290 fi
11291done
cristy8b350f62009-11-15 23:12:43 +000011292 done
cristy3ed852e2009-09-05 21:47:34 +000011293IFS=$as_save_IFS
11294
11295fi
11296fi
11297ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11298if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011300$as_echo "$ac_ct_LIPO" >&6; }
11301else
cristy8b350f62009-11-15 23:12:43 +000011302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011303$as_echo "no" >&6; }
11304fi
11305
11306 if test "x$ac_ct_LIPO" = x; then
11307 LIPO=":"
11308 else
11309 case $cross_compiling:$ac_tool_warned in
11310yes:)
cristy8b350f62009-11-15 23:12:43 +000011311{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011312$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11313ac_tool_warned=yes ;;
11314esac
11315 LIPO=$ac_ct_LIPO
11316 fi
11317else
11318 LIPO="$ac_cv_prog_LIPO"
11319fi
11320
11321 if test -n "$ac_tool_prefix"; then
11322 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11323set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011325$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011326if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011327 $as_echo_n "(cached) " >&6
11328else
11329 if test -n "$OTOOL"; then
11330 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11331else
11332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11333for as_dir in $PATH
11334do
11335 IFS=$as_save_IFS
11336 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011337 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11339 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +000011340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011341 break 2
11342 fi
11343done
cristy8b350f62009-11-15 23:12:43 +000011344 done
cristy3ed852e2009-09-05 21:47:34 +000011345IFS=$as_save_IFS
11346
11347fi
11348fi
11349OTOOL=$ac_cv_prog_OTOOL
11350if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011352$as_echo "$OTOOL" >&6; }
11353else
cristy8b350f62009-11-15 23:12:43 +000011354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011355$as_echo "no" >&6; }
11356fi
11357
11358
11359fi
11360if test -z "$ac_cv_prog_OTOOL"; then
11361 ac_ct_OTOOL=$OTOOL
11362 # Extract the first word of "otool", so it can be a program name with args.
11363set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011365$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011366if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011367 $as_echo_n "(cached) " >&6
11368else
11369 if test -n "$ac_ct_OTOOL"; then
11370 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11371else
11372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11373for as_dir in $PATH
11374do
11375 IFS=$as_save_IFS
11376 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011377 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11379 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +000011380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011381 break 2
11382 fi
11383done
cristy8b350f62009-11-15 23:12:43 +000011384 done
cristy3ed852e2009-09-05 21:47:34 +000011385IFS=$as_save_IFS
11386
11387fi
11388fi
11389ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11390if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011392$as_echo "$ac_ct_OTOOL" >&6; }
11393else
cristy8b350f62009-11-15 23:12:43 +000011394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011395$as_echo "no" >&6; }
11396fi
11397
11398 if test "x$ac_ct_OTOOL" = x; then
11399 OTOOL=":"
11400 else
11401 case $cross_compiling:$ac_tool_warned in
11402yes:)
cristy8b350f62009-11-15 23:12:43 +000011403{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011404$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11405ac_tool_warned=yes ;;
11406esac
11407 OTOOL=$ac_ct_OTOOL
11408 fi
11409else
11410 OTOOL="$ac_cv_prog_OTOOL"
11411fi
11412
11413 if test -n "$ac_tool_prefix"; then
11414 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11415set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011417$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011418if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011419 $as_echo_n "(cached) " >&6
11420else
11421 if test -n "$OTOOL64"; then
11422 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11423else
11424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11425for as_dir in $PATH
11426do
11427 IFS=$as_save_IFS
11428 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011429 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11431 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +000011432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011433 break 2
11434 fi
11435done
cristy8b350f62009-11-15 23:12:43 +000011436 done
cristy3ed852e2009-09-05 21:47:34 +000011437IFS=$as_save_IFS
11438
11439fi
11440fi
11441OTOOL64=$ac_cv_prog_OTOOL64
11442if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011444$as_echo "$OTOOL64" >&6; }
11445else
cristy8b350f62009-11-15 23:12:43 +000011446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011447$as_echo "no" >&6; }
11448fi
11449
11450
11451fi
11452if test -z "$ac_cv_prog_OTOOL64"; then
11453 ac_ct_OTOOL64=$OTOOL64
11454 # Extract the first word of "otool64", so it can be a program name with args.
11455set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011457$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011458if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011459 $as_echo_n "(cached) " >&6
11460else
11461 if test -n "$ac_ct_OTOOL64"; then
11462 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11463else
11464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11465for as_dir in $PATH
11466do
11467 IFS=$as_save_IFS
11468 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011469 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11471 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000011472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011473 break 2
11474 fi
11475done
cristy8b350f62009-11-15 23:12:43 +000011476 done
cristy3ed852e2009-09-05 21:47:34 +000011477IFS=$as_save_IFS
11478
11479fi
11480fi
11481ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11482if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011484$as_echo "$ac_ct_OTOOL64" >&6; }
11485else
cristy8b350f62009-11-15 23:12:43 +000011486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011487$as_echo "no" >&6; }
11488fi
11489
11490 if test "x$ac_ct_OTOOL64" = x; then
11491 OTOOL64=":"
11492 else
11493 case $cross_compiling:$ac_tool_warned in
11494yes:)
cristy8b350f62009-11-15 23:12:43 +000011495{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11497ac_tool_warned=yes ;;
11498esac
11499 OTOOL64=$ac_ct_OTOOL64
11500 fi
11501else
11502 OTOOL64="$ac_cv_prog_OTOOL64"
11503fi
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
cristy8b350f62009-11-15 23:12:43 +000011531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011532$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011533if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011534 $as_echo_n "(cached) " >&6
11535else
11536 lt_cv_apple_cc_single_mod=no
11537 if test -z "${LT_MULTI_MODULE}"; then
11538 # By default we will add the -single_module flag. You can override
11539 # by either setting the environment variable LT_MULTI_MODULE
11540 # non-empty at configure time, or by adding -multi_module to the
11541 # link flags.
11542 rm -rf libconftest.dylib*
11543 echo "int foo(void){return 1;}" > conftest.c
11544 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11545-dynamiclib -Wl,-single_module conftest.c" >&5
11546 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11547 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11548 _lt_result=$?
11549 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11550 lt_cv_apple_cc_single_mod=yes
11551 else
11552 cat conftest.err >&5
11553 fi
11554 rm -rf libconftest.dylib*
11555 rm -f conftest.*
11556 fi
11557fi
cristy8b350f62009-11-15 23:12:43 +000011558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000011559$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011561$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011562if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011563 $as_echo_n "(cached) " >&6
11564else
11565 lt_cv_ld_exported_symbols_list=no
11566 save_LDFLAGS=$LDFLAGS
11567 echo "_main" > conftest.sym
11568 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000011569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011570/* end confdefs.h. */
11571
11572int
11573main ()
11574{
11575
11576 ;
11577 return 0;
11578}
11579_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011580if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011581 lt_cv_ld_exported_symbols_list=yes
11582else
cristy8b350f62009-11-15 23:12:43 +000011583 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000011584fi
cristy8b350f62009-11-15 23:12:43 +000011585rm -f core conftest.err conftest.$ac_objext \
11586 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011587 LDFLAGS="$save_LDFLAGS"
11588
11589fi
cristy8b350f62009-11-15 23:12:43 +000011590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000011591$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy232a9ab2010-06-26 01:02:54 +000011592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11593$as_echo_n "checking for -force_load linker flag... " >&6; }
11594if test "${lt_cv_ld_force_load+set}" = set; then :
11595 $as_echo_n "(cached) " >&6
11596else
11597 lt_cv_ld_force_load=no
11598 cat > conftest.c << _LT_EOF
11599int forced_loaded() { return 2;}
11600_LT_EOF
11601 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11602 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11603 echo "$AR cru libconftest.a conftest.o" >&5
11604 $AR cru libconftest.a conftest.o 2>&5
11605 echo "$RANLIB libconftest.a" >&5
11606 $RANLIB libconftest.a 2>&5
11607 cat > conftest.c << _LT_EOF
11608int main() { return 0;}
11609_LT_EOF
11610 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11611 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11612 _lt_result=$?
11613 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11614 lt_cv_ld_force_load=yes
11615 else
11616 cat conftest.err >&5
11617 fi
11618 rm -f conftest.err libconftest.a conftest conftest.c
11619 rm -rf conftest.dSYM
11620
11621fi
11622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11623$as_echo "$lt_cv_ld_force_load" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011624 case $host_os in
11625 rhapsody* | darwin1.[012])
11626 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11627 darwin1.*)
11628 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11629 darwin*) # darwin 5.x on
11630 # if running on 10.5 or later, the deployment target defaults
11631 # to the OS version, if on x86, and 10.4, the deployment
11632 # target defaults to 10.4. Don't you love it?
11633 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11634 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11635 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11636 10.[012]*)
11637 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11638 10.*)
11639 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11640 esac
11641 ;;
11642 esac
11643 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11644 _lt_dar_single_mod='$single_module'
11645 fi
11646 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11647 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11648 else
11649 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11650 fi
cristy232a9ab2010-06-26 01:02:54 +000011651 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy3ed852e2009-09-05 21:47:34 +000011652 _lt_dsymutil='~$DSYMUTIL $lib || :'
11653 else
11654 _lt_dsymutil=
11655 fi
11656 ;;
11657 esac
11658
cristy3ed852e2009-09-05 21:47:34 +000011659for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000011660do :
11661 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11662"
11663if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011664 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011665#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000011666_ACEOF
11667
11668fi
11669
11670done
11671
11672
11673
cristy3ed852e2009-09-05 21:47:34 +000011674
11675
11676
11677# Set options
11678enable_win32_dll=yes
11679
11680case $host in
cristy232a9ab2010-06-26 01:02:54 +000011681*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000011682 if test -n "$ac_tool_prefix"; then
11683 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11684set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011686$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011687if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011688 $as_echo_n "(cached) " >&6
11689else
11690 if test -n "$AS"; then
11691 ac_cv_prog_AS="$AS" # Let the user override the test.
11692else
11693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11694for as_dir in $PATH
11695do
11696 IFS=$as_save_IFS
11697 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011698 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11700 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000011701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011702 break 2
11703 fi
11704done
cristy8b350f62009-11-15 23:12:43 +000011705 done
cristy3ed852e2009-09-05 21:47:34 +000011706IFS=$as_save_IFS
11707
11708fi
11709fi
11710AS=$ac_cv_prog_AS
11711if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000011712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011713$as_echo "$AS" >&6; }
11714else
cristy8b350f62009-11-15 23:12:43 +000011715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011716$as_echo "no" >&6; }
11717fi
11718
11719
11720fi
11721if test -z "$ac_cv_prog_AS"; then
11722 ac_ct_AS=$AS
11723 # Extract the first word of "as", so it can be a program name with args.
11724set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011726$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011727if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011728 $as_echo_n "(cached) " >&6
11729else
11730 if test -n "$ac_ct_AS"; then
11731 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11732else
11733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11734for as_dir in $PATH
11735do
11736 IFS=$as_save_IFS
11737 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011738 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11740 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000011741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011742 break 2
11743 fi
11744done
cristy8b350f62009-11-15 23:12:43 +000011745 done
cristy3ed852e2009-09-05 21:47:34 +000011746IFS=$as_save_IFS
11747
11748fi
11749fi
11750ac_ct_AS=$ac_cv_prog_ac_ct_AS
11751if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000011752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011753$as_echo "$ac_ct_AS" >&6; }
11754else
cristy8b350f62009-11-15 23:12:43 +000011755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011756$as_echo "no" >&6; }
11757fi
11758
11759 if test "x$ac_ct_AS" = x; then
11760 AS="false"
11761 else
11762 case $cross_compiling:$ac_tool_warned in
11763yes:)
cristy8b350f62009-11-15 23:12:43 +000011764{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011765$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11766ac_tool_warned=yes ;;
11767esac
11768 AS=$ac_ct_AS
11769 fi
11770else
11771 AS="$ac_cv_prog_AS"
11772fi
11773
11774 if test -n "$ac_tool_prefix"; then
11775 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11776set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011778$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011779if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011780 $as_echo_n "(cached) " >&6
11781else
11782 if test -n "$DLLTOOL"; then
11783 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11784else
11785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786for as_dir in $PATH
11787do
11788 IFS=$as_save_IFS
11789 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011790 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11792 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000011793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011794 break 2
11795 fi
11796done
cristy8b350f62009-11-15 23:12:43 +000011797 done
cristy3ed852e2009-09-05 21:47:34 +000011798IFS=$as_save_IFS
11799
11800fi
11801fi
11802DLLTOOL=$ac_cv_prog_DLLTOOL
11803if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011805$as_echo "$DLLTOOL" >&6; }
11806else
cristy8b350f62009-11-15 23:12:43 +000011807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011808$as_echo "no" >&6; }
11809fi
11810
11811
11812fi
11813if test -z "$ac_cv_prog_DLLTOOL"; then
11814 ac_ct_DLLTOOL=$DLLTOOL
11815 # Extract the first word of "dlltool", so it can be a program name with args.
11816set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011818$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011819if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011820 $as_echo_n "(cached) " >&6
11821else
11822 if test -n "$ac_ct_DLLTOOL"; then
11823 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11824else
11825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11826for as_dir in $PATH
11827do
11828 IFS=$as_save_IFS
11829 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011830 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11832 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000011833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011834 break 2
11835 fi
11836done
cristy8b350f62009-11-15 23:12:43 +000011837 done
cristy3ed852e2009-09-05 21:47:34 +000011838IFS=$as_save_IFS
11839
11840fi
11841fi
11842ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11843if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011845$as_echo "$ac_ct_DLLTOOL" >&6; }
11846else
cristy8b350f62009-11-15 23:12:43 +000011847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011848$as_echo "no" >&6; }
11849fi
11850
11851 if test "x$ac_ct_DLLTOOL" = x; then
11852 DLLTOOL="false"
11853 else
11854 case $cross_compiling:$ac_tool_warned in
11855yes:)
cristy8b350f62009-11-15 23:12:43 +000011856{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011857$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11858ac_tool_warned=yes ;;
11859esac
11860 DLLTOOL=$ac_ct_DLLTOOL
11861 fi
11862else
11863 DLLTOOL="$ac_cv_prog_DLLTOOL"
11864fi
11865
11866 if test -n "$ac_tool_prefix"; then
11867 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11868set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011870$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011871if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011872 $as_echo_n "(cached) " >&6
11873else
11874 if test -n "$OBJDUMP"; then
11875 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11876else
11877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11878for as_dir in $PATH
11879do
11880 IFS=$as_save_IFS
11881 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011882 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11884 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000011885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011886 break 2
11887 fi
11888done
cristy8b350f62009-11-15 23:12:43 +000011889 done
cristy3ed852e2009-09-05 21:47:34 +000011890IFS=$as_save_IFS
11891
11892fi
11893fi
11894OBJDUMP=$ac_cv_prog_OBJDUMP
11895if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011897$as_echo "$OBJDUMP" >&6; }
11898else
cristy8b350f62009-11-15 23:12:43 +000011899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011900$as_echo "no" >&6; }
11901fi
11902
11903
11904fi
11905if test -z "$ac_cv_prog_OBJDUMP"; then
11906 ac_ct_OBJDUMP=$OBJDUMP
11907 # Extract the first word of "objdump", so it can be a program name with args.
11908set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011910$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011911if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011912 $as_echo_n "(cached) " >&6
11913else
11914 if test -n "$ac_ct_OBJDUMP"; then
11915 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11916else
11917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11918for as_dir in $PATH
11919do
11920 IFS=$as_save_IFS
11921 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011922 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11924 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000011925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011926 break 2
11927 fi
11928done
cristy8b350f62009-11-15 23:12:43 +000011929 done
cristy3ed852e2009-09-05 21:47:34 +000011930IFS=$as_save_IFS
11931
11932fi
11933fi
11934ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11935if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011937$as_echo "$ac_ct_OBJDUMP" >&6; }
11938else
cristy8b350f62009-11-15 23:12:43 +000011939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011940$as_echo "no" >&6; }
11941fi
11942
11943 if test "x$ac_ct_OBJDUMP" = x; then
11944 OBJDUMP="false"
11945 else
11946 case $cross_compiling:$ac_tool_warned in
11947yes:)
cristy8b350f62009-11-15 23:12:43 +000011948{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011949$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11950ac_tool_warned=yes ;;
11951esac
11952 OBJDUMP=$ac_ct_OBJDUMP
11953 fi
11954else
11955 OBJDUMP="$ac_cv_prog_OBJDUMP"
11956fi
11957
11958 ;;
11959esac
11960
11961test -z "$AS" && AS=as
11962
11963
11964
11965
11966
11967test -z "$DLLTOOL" && DLLTOOL=dlltool
11968
11969
11970
11971
11972
11973test -z "$OBJDUMP" && OBJDUMP=objdump
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000011984if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011985 enableval=$enable_shared; p=${PACKAGE-default}
11986 case $enableval in
11987 yes) enable_shared=yes ;;
11988 no) enable_shared=no ;;
11989 *)
11990 enable_shared=no
11991 # Look at the argument we got. We use all the common list separators.
11992 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11993 for pkg in $enableval; do
11994 IFS="$lt_save_ifs"
11995 if test "X$pkg" = "X$p"; then
11996 enable_shared=yes
11997 fi
11998 done
11999 IFS="$lt_save_ifs"
12000 ;;
12001 esac
12002else
12003 enable_shared=yes
12004fi
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000012015if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012016 enableval=$enable_static; p=${PACKAGE-default}
12017 case $enableval in
12018 yes) enable_static=yes ;;
12019 no) enable_static=no ;;
12020 *)
12021 enable_static=no
12022 # Look at the argument we got. We use all the common list separators.
12023 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12024 for pkg in $enableval; do
12025 IFS="$lt_save_ifs"
12026 if test "X$pkg" = "X$p"; then
12027 enable_static=yes
12028 fi
12029 done
12030 IFS="$lt_save_ifs"
12031 ;;
12032 esac
12033else
12034 enable_static=yes
12035fi
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000012047if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012048 withval=$with_pic; pic_mode="$withval"
12049else
12050 pic_mode=default
12051fi
12052
12053
12054test -z "$pic_mode" && pic_mode=default
12055
12056
12057
12058
12059
12060
12061
12062 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000012063if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012064 enableval=$enable_fast_install; p=${PACKAGE-default}
12065 case $enableval in
12066 yes) enable_fast_install=yes ;;
12067 no) enable_fast_install=no ;;
12068 *)
12069 enable_fast_install=no
12070 # Look at the argument we got. We use all the common list separators.
12071 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12072 for pkg in $enableval; do
12073 IFS="$lt_save_ifs"
12074 if test "X$pkg" = "X$p"; then
12075 enable_fast_install=yes
12076 fi
12077 done
12078 IFS="$lt_save_ifs"
12079 ;;
12080 esac
12081else
12082 enable_fast_install=yes
12083fi
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095# This can be used to rebuild libtool when needed
12096LIBTOOL_DEPS="$ltmain"
12097
12098# Always use our own libtool.
12099LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
cristy232a9ab2010-06-26 01:02:54 +000012125
cristy3ed852e2009-09-05 21:47:34 +000012126test -z "$LN_S" && LN_S="ln -s"
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141if test -n "${ZSH_VERSION+set}" ; then
12142 setopt NO_GLOB_SUBST
12143fi
12144
cristy8b350f62009-11-15 23:12:43 +000012145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012146$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012147if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012148 $as_echo_n "(cached) " >&6
12149else
12150 rm -f .libs 2>/dev/null
12151mkdir .libs 2>/dev/null
12152if test -d .libs; then
12153 lt_cv_objdir=.libs
12154else
12155 # MS-DOS does not allow filenames that begin with a dot.
12156 lt_cv_objdir=_libs
12157fi
12158rmdir .libs 2>/dev/null
12159fi
cristy8b350f62009-11-15 23:12:43 +000012160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012161$as_echo "$lt_cv_objdir" >&6; }
12162objdir=$lt_cv_objdir
12163
12164
12165
12166
12167
12168cat >>confdefs.h <<_ACEOF
12169#define LT_OBJDIR "$lt_cv_objdir/"
12170_ACEOF
12171
12172
12173
12174
cristy3ed852e2009-09-05 21:47:34 +000012175case $host_os in
12176aix3*)
12177 # AIX sometimes has problems with the GCC collect2 program. For some
12178 # reason, if we set the COLLECT_NAMES environment variable, the problems
12179 # vanish in a puff of smoke.
12180 if test "X${COLLECT_NAMES+set}" != Xset; then
12181 COLLECT_NAMES=
12182 export COLLECT_NAMES
12183 fi
12184 ;;
12185esac
12186
cristy3ed852e2009-09-05 21:47:34 +000012187# Global variables:
12188ofile=libtool
12189can_build_shared=yes
12190
12191# All known linkers require a `.a' archive for static linking (except MSVC,
12192# which needs '.lib').
12193libext=a
12194
12195with_gnu_ld="$lt_cv_prog_gnu_ld"
12196
12197old_CC="$CC"
12198old_CFLAGS="$CFLAGS"
12199
12200# Set sane defaults for various variables
12201test -z "$CC" && CC=cc
12202test -z "$LTCC" && LTCC=$CC
12203test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12204test -z "$LD" && LD=ld
12205test -z "$ac_objext" && ac_objext=o
12206
12207for cc_temp in $compiler""; do
12208 case $cc_temp in
12209 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12210 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12211 \-*) ;;
12212 *) break;;
12213 esac
12214done
cristy232a9ab2010-06-26 01:02:54 +000012215cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000012216
12217
12218# Only perform the check for file, if the check method requires it
12219test -z "$MAGIC_CMD" && MAGIC_CMD=file
12220case $deplibs_check_method in
12221file_magic*)
12222 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000012223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012224$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012225if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012226 $as_echo_n "(cached) " >&6
12227else
12228 case $MAGIC_CMD in
12229[\\/*] | ?:[\\/]*)
12230 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12231 ;;
12232*)
12233 lt_save_MAGIC_CMD="$MAGIC_CMD"
12234 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12235 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12236 for ac_dir in $ac_dummy; do
12237 IFS="$lt_save_ifs"
12238 test -z "$ac_dir" && ac_dir=.
12239 if test -f $ac_dir/${ac_tool_prefix}file; then
12240 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12241 if test -n "$file_magic_test_file"; then
12242 case $deplibs_check_method in
12243 "file_magic "*)
12244 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12245 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12246 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12247 $EGREP "$file_magic_regex" > /dev/null; then
12248 :
12249 else
12250 cat <<_LT_EOF 1>&2
12251
12252*** Warning: the command libtool uses to detect shared libraries,
12253*** $file_magic_cmd, produces output that libtool cannot recognize.
12254*** The result is that libtool may fail to recognize shared libraries
12255*** as such. This will affect the creation of libtool libraries that
12256*** depend on shared libraries, but programs linked with such libtool
12257*** libraries will work regardless of this problem. Nevertheless, you
12258*** may want to report the problem to your system manager and/or to
12259*** bug-libtool@gnu.org
12260
12261_LT_EOF
12262 fi ;;
12263 esac
12264 fi
12265 break
12266 fi
12267 done
12268 IFS="$lt_save_ifs"
12269 MAGIC_CMD="$lt_save_MAGIC_CMD"
12270 ;;
12271esac
12272fi
12273
12274MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12275if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012277$as_echo "$MAGIC_CMD" >&6; }
12278else
cristy8b350f62009-11-15 23:12:43 +000012279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012280$as_echo "no" >&6; }
12281fi
12282
12283
12284
12285
12286
12287if test -z "$lt_cv_path_MAGIC_CMD"; then
12288 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000012289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012290$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012291if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012292 $as_echo_n "(cached) " >&6
12293else
12294 case $MAGIC_CMD in
12295[\\/*] | ?:[\\/]*)
12296 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12297 ;;
12298*)
12299 lt_save_MAGIC_CMD="$MAGIC_CMD"
12300 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12301 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12302 for ac_dir in $ac_dummy; do
12303 IFS="$lt_save_ifs"
12304 test -z "$ac_dir" && ac_dir=.
12305 if test -f $ac_dir/file; then
12306 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12307 if test -n "$file_magic_test_file"; then
12308 case $deplibs_check_method in
12309 "file_magic "*)
12310 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12311 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12312 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12313 $EGREP "$file_magic_regex" > /dev/null; then
12314 :
12315 else
12316 cat <<_LT_EOF 1>&2
12317
12318*** Warning: the command libtool uses to detect shared libraries,
12319*** $file_magic_cmd, produces output that libtool cannot recognize.
12320*** The result is that libtool may fail to recognize shared libraries
12321*** as such. This will affect the creation of libtool libraries that
12322*** depend on shared libraries, but programs linked with such libtool
12323*** libraries will work regardless of this problem. Nevertheless, you
12324*** may want to report the problem to your system manager and/or to
12325*** bug-libtool@gnu.org
12326
12327_LT_EOF
12328 fi ;;
12329 esac
12330 fi
12331 break
12332 fi
12333 done
12334 IFS="$lt_save_ifs"
12335 MAGIC_CMD="$lt_save_MAGIC_CMD"
12336 ;;
12337esac
12338fi
12339
12340MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12341if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012343$as_echo "$MAGIC_CMD" >&6; }
12344else
cristy8b350f62009-11-15 23:12:43 +000012345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012346$as_echo "no" >&6; }
12347fi
12348
12349
12350 else
12351 MAGIC_CMD=:
12352 fi
12353fi
12354
12355 fi
12356 ;;
12357esac
12358
12359# Use C for the default configuration in the libtool script
12360
12361lt_save_CC="$CC"
12362ac_ext=c
12363ac_cpp='$CPP $CPPFLAGS'
12364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12366ac_compiler_gnu=$ac_cv_c_compiler_gnu
12367
12368
12369# Source file extension for C test sources.
12370ac_ext=c
12371
12372# Object file extension for compiled C test sources.
12373objext=o
12374objext=$objext
12375
12376# Code to be used in simple compile tests
12377lt_simple_compile_test_code="int some_variable = 0;"
12378
12379# Code to be used in simple link tests
12380lt_simple_link_test_code='int main(){return(0);}'
12381
12382
12383
12384
12385
12386
12387
12388# If no C compiler was specified, use CC.
12389LTCC=${LTCC-"$CC"}
12390
12391# If no C compiler flags were specified, use CFLAGS.
12392LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12393
12394# Allow CC to be a program name with arguments.
12395compiler=$CC
12396
12397# Save the default compiler, since it gets overwritten when the other
12398# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12399compiler_DEFAULT=$CC
12400
12401# save warnings/boilerplate of simple test code
12402ac_outfile=conftest.$ac_objext
12403echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12404eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12405_lt_compiler_boilerplate=`cat conftest.err`
12406$RM conftest*
12407
12408ac_outfile=conftest.$ac_objext
12409echo "$lt_simple_link_test_code" >conftest.$ac_ext
12410eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12411_lt_linker_boilerplate=`cat conftest.err`
12412$RM -r conftest*
12413
12414
12415## CAVEAT EMPTOR:
12416## There is no encapsulation within the following macros, do not change
12417## the running order or otherwise move them around unless you know exactly
12418## what you are doing...
12419if test -n "$compiler"; then
12420
12421lt_prog_compiler_no_builtin_flag=
12422
12423if test "$GCC" = yes; then
cristy232a9ab2010-06-26 01:02:54 +000012424 case $cc_basename in
12425 nvcc*)
12426 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12427 *)
12428 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12429 esac
cristy3ed852e2009-09-05 21:47:34 +000012430
cristy8b350f62009-11-15 23:12:43 +000012431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012432$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012433if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012434 $as_echo_n "(cached) " >&6
12435else
12436 lt_cv_prog_compiler_rtti_exceptions=no
12437 ac_outfile=conftest.$ac_objext
12438 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12439 lt_compiler_flag="-fno-rtti -fno-exceptions"
12440 # Insert the option either (1) after the last *FLAGS variable, or
12441 # (2) before a word containing "conftest.", or (3) at the end.
12442 # Note that $ac_compile itself does not contain backslashes and begins
12443 # with a dollar sign (not a hyphen), so the echo should work correctly.
12444 # The option is referenced via a variable to avoid confusing sed.
12445 lt_compile=`echo "$ac_compile" | $SED \
12446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12448 -e 's:$: $lt_compiler_flag:'`
cristy232a9ab2010-06-26 01:02:54 +000012449 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012450 (eval "$lt_compile" 2>conftest.err)
12451 ac_status=$?
12452 cat conftest.err >&5
cristy232a9ab2010-06-26 01:02:54 +000012453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012454 if (exit $ac_status) && test -s "$ac_outfile"; then
12455 # The compiler can only warn and ignore the option if not recognized
12456 # So say no if there are warnings other than the usual output.
cristy232a9ab2010-06-26 01:02:54 +000012457 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012458 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12459 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12460 lt_cv_prog_compiler_rtti_exceptions=yes
12461 fi
12462 fi
12463 $RM conftest*
12464
12465fi
cristy8b350f62009-11-15 23:12:43 +000012466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012467$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12468
12469if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12470 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12471else
12472 :
12473fi
12474
12475fi
12476
12477
12478
12479
12480
12481
12482 lt_prog_compiler_wl=
12483lt_prog_compiler_pic=
12484lt_prog_compiler_static=
12485
cristy8b350f62009-11-15 23:12:43 +000012486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000012487$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12488
12489 if test "$GCC" = yes; then
12490 lt_prog_compiler_wl='-Wl,'
12491 lt_prog_compiler_static='-static'
12492
12493 case $host_os in
12494 aix*)
12495 # All AIX code is PIC.
12496 if test "$host_cpu" = ia64; then
12497 # AIX 5 now supports IA64 processor
12498 lt_prog_compiler_static='-Bstatic'
12499 fi
12500 ;;
12501
12502 amigaos*)
12503 case $host_cpu in
12504 powerpc)
12505 # see comment about AmigaOS4 .so support
12506 lt_prog_compiler_pic='-fPIC'
12507 ;;
12508 m68k)
12509 # FIXME: we need at least 68020 code to build shared libraries, but
12510 # adding the `-m68020' flag to GCC prevents building anything better,
12511 # like `-m68040'.
12512 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12513 ;;
12514 esac
12515 ;;
12516
12517 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12518 # PIC is the default for these OSes.
12519 ;;
12520
12521 mingw* | cygwin* | pw32* | os2* | cegcc*)
12522 # This hack is so that the source file can tell whether it is being
12523 # built for inclusion in a dll (and should export symbols for example).
12524 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12525 # (--disable-auto-import) libraries
12526 lt_prog_compiler_pic='-DDLL_EXPORT'
12527 ;;
12528
12529 darwin* | rhapsody*)
12530 # PIC is the default on this platform
12531 # Common symbols not allowed in MH_DYLIB files
12532 lt_prog_compiler_pic='-fno-common'
12533 ;;
12534
cristy232a9ab2010-06-26 01:02:54 +000012535 haiku*)
12536 # PIC is the default for Haiku.
12537 # The "-static" flag exists, but is broken.
12538 lt_prog_compiler_static=
12539 ;;
12540
cristy3ed852e2009-09-05 21:47:34 +000012541 hpux*)
12542 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12543 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12544 # sets the default TLS model and affects inlining.
12545 case $host_cpu in
12546 hppa*64*)
12547 # +Z the default
12548 ;;
12549 *)
12550 lt_prog_compiler_pic='-fPIC'
12551 ;;
12552 esac
12553 ;;
12554
12555 interix[3-9]*)
12556 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12557 # Instead, we relocate shared libraries at runtime.
12558 ;;
12559
12560 msdosdjgpp*)
12561 # Just because we use GCC doesn't mean we suddenly get shared libraries
12562 # on systems that don't support them.
12563 lt_prog_compiler_can_build_shared=no
12564 enable_shared=no
12565 ;;
12566
12567 *nto* | *qnx*)
12568 # QNX uses GNU C++, but need to define -shared option too, otherwise
12569 # it will coredump.
12570 lt_prog_compiler_pic='-fPIC -shared'
12571 ;;
12572
12573 sysv4*MP*)
12574 if test -d /usr/nec; then
12575 lt_prog_compiler_pic=-Kconform_pic
12576 fi
12577 ;;
12578
12579 *)
12580 lt_prog_compiler_pic='-fPIC'
12581 ;;
12582 esac
cristy232a9ab2010-06-26 01:02:54 +000012583
12584 case $cc_basename in
12585 nvcc*) # Cuda Compiler Driver 2.2
12586 lt_prog_compiler_wl='-Xlinker '
12587 lt_prog_compiler_pic='-Xcompiler -fPIC'
12588 ;;
12589 esac
cristy3ed852e2009-09-05 21:47:34 +000012590 else
12591 # PORTME Check for flag to pass linker flags through the system compiler.
12592 case $host_os in
12593 aix*)
12594 lt_prog_compiler_wl='-Wl,'
12595 if test "$host_cpu" = ia64; then
12596 # AIX 5 now supports IA64 processor
12597 lt_prog_compiler_static='-Bstatic'
12598 else
12599 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12600 fi
12601 ;;
12602
12603 mingw* | cygwin* | pw32* | os2* | cegcc*)
12604 # This hack is so that the source file can tell whether it is being
12605 # built for inclusion in a dll (and should export symbols for example).
12606 lt_prog_compiler_pic='-DDLL_EXPORT'
12607 ;;
12608
12609 hpux9* | hpux10* | hpux11*)
12610 lt_prog_compiler_wl='-Wl,'
12611 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12612 # not for PA HP-UX.
12613 case $host_cpu in
12614 hppa*64*|ia64*)
12615 # +Z the default
12616 ;;
12617 *)
12618 lt_prog_compiler_pic='+Z'
12619 ;;
12620 esac
12621 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12622 lt_prog_compiler_static='${wl}-a ${wl}archive'
12623 ;;
12624
12625 irix5* | irix6* | nonstopux*)
12626 lt_prog_compiler_wl='-Wl,'
12627 # PIC (with -KPIC) is the default.
12628 lt_prog_compiler_static='-non_shared'
12629 ;;
12630
cristy232a9ab2010-06-26 01:02:54 +000012631 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000012632 case $cc_basename in
12633 # old Intel for x86_64 which still supported -KPIC.
12634 ecc*)
12635 lt_prog_compiler_wl='-Wl,'
12636 lt_prog_compiler_pic='-KPIC'
12637 lt_prog_compiler_static='-static'
12638 ;;
12639 # icc used to be incompatible with GCC.
12640 # ICC 10 doesn't accept -KPIC any more.
12641 icc* | ifort*)
12642 lt_prog_compiler_wl='-Wl,'
12643 lt_prog_compiler_pic='-fPIC'
12644 lt_prog_compiler_static='-static'
12645 ;;
12646 # Lahey Fortran 8.1.
12647 lf95*)
12648 lt_prog_compiler_wl='-Wl,'
12649 lt_prog_compiler_pic='--shared'
12650 lt_prog_compiler_static='--static'
12651 ;;
cristy232a9ab2010-06-26 01:02:54 +000012652 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy3ed852e2009-09-05 21:47:34 +000012653 # Portland Group compilers (*not* the Pentium gcc compiler,
12654 # which looks to be a dead project)
12655 lt_prog_compiler_wl='-Wl,'
12656 lt_prog_compiler_pic='-fpic'
12657 lt_prog_compiler_static='-Bstatic'
12658 ;;
12659 ccc*)
12660 lt_prog_compiler_wl='-Wl,'
12661 # All Alpha code is PIC.
12662 lt_prog_compiler_static='-non_shared'
12663 ;;
cristy232a9ab2010-06-26 01:02:54 +000012664 xl* | bgxl* | bgf* | mpixl*)
12665 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy3ed852e2009-09-05 21:47:34 +000012666 lt_prog_compiler_wl='-Wl,'
12667 lt_prog_compiler_pic='-qpic'
12668 lt_prog_compiler_static='-qstaticlink'
12669 ;;
12670 *)
12671 case `$CC -V 2>&1 | sed 5q` in
cristy232a9ab2010-06-26 01:02:54 +000012672 *Sun\ F* | *Sun*Fortran*)
12673 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12674 lt_prog_compiler_pic='-KPIC'
12675 lt_prog_compiler_static='-Bstatic'
12676 lt_prog_compiler_wl=''
12677 ;;
cristy3ed852e2009-09-05 21:47:34 +000012678 *Sun\ C*)
12679 # Sun C 5.9
12680 lt_prog_compiler_pic='-KPIC'
12681 lt_prog_compiler_static='-Bstatic'
12682 lt_prog_compiler_wl='-Wl,'
12683 ;;
cristy3ed852e2009-09-05 21:47:34 +000012684 esac
12685 ;;
12686 esac
12687 ;;
12688
12689 newsos6)
12690 lt_prog_compiler_pic='-KPIC'
12691 lt_prog_compiler_static='-Bstatic'
12692 ;;
12693
12694 *nto* | *qnx*)
12695 # QNX uses GNU C++, but need to define -shared option too, otherwise
12696 # it will coredump.
12697 lt_prog_compiler_pic='-fPIC -shared'
12698 ;;
12699
12700 osf3* | osf4* | osf5*)
12701 lt_prog_compiler_wl='-Wl,'
12702 # All OSF/1 code is PIC.
12703 lt_prog_compiler_static='-non_shared'
12704 ;;
12705
12706 rdos*)
12707 lt_prog_compiler_static='-non_shared'
12708 ;;
12709
12710 solaris*)
12711 lt_prog_compiler_pic='-KPIC'
12712 lt_prog_compiler_static='-Bstatic'
12713 case $cc_basename in
cristy232a9ab2010-06-26 01:02:54 +000012714 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy3ed852e2009-09-05 21:47:34 +000012715 lt_prog_compiler_wl='-Qoption ld ';;
12716 *)
12717 lt_prog_compiler_wl='-Wl,';;
12718 esac
12719 ;;
12720
12721 sunos4*)
12722 lt_prog_compiler_wl='-Qoption ld '
12723 lt_prog_compiler_pic='-PIC'
12724 lt_prog_compiler_static='-Bstatic'
12725 ;;
12726
12727 sysv4 | sysv4.2uw2* | sysv4.3*)
12728 lt_prog_compiler_wl='-Wl,'
12729 lt_prog_compiler_pic='-KPIC'
12730 lt_prog_compiler_static='-Bstatic'
12731 ;;
12732
12733 sysv4*MP*)
12734 if test -d /usr/nec ;then
12735 lt_prog_compiler_pic='-Kconform_pic'
12736 lt_prog_compiler_static='-Bstatic'
12737 fi
12738 ;;
12739
12740 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12741 lt_prog_compiler_wl='-Wl,'
12742 lt_prog_compiler_pic='-KPIC'
12743 lt_prog_compiler_static='-Bstatic'
12744 ;;
12745
12746 unicos*)
12747 lt_prog_compiler_wl='-Wl,'
12748 lt_prog_compiler_can_build_shared=no
12749 ;;
12750
12751 uts4*)
12752 lt_prog_compiler_pic='-pic'
12753 lt_prog_compiler_static='-Bstatic'
12754 ;;
12755
12756 *)
12757 lt_prog_compiler_can_build_shared=no
12758 ;;
12759 esac
12760 fi
12761
12762case $host_os in
12763 # For platforms which do not support PIC, -DPIC is meaningless:
12764 *djgpp*)
12765 lt_prog_compiler_pic=
12766 ;;
12767 *)
12768 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12769 ;;
12770esac
cristy8b350f62009-11-15 23:12:43 +000012771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000012772$as_echo "$lt_prog_compiler_pic" >&6; }
12773
12774
12775
12776
12777
12778
12779#
12780# Check to make sure the PIC flag actually works.
12781#
12782if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000012783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012784$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012785if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012786 $as_echo_n "(cached) " >&6
12787else
12788 lt_cv_prog_compiler_pic_works=no
12789 ac_outfile=conftest.$ac_objext
12790 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12791 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12792 # Insert the option either (1) after the last *FLAGS variable, or
12793 # (2) before a word containing "conftest.", or (3) at the end.
12794 # Note that $ac_compile itself does not contain backslashes and begins
12795 # with a dollar sign (not a hyphen), so the echo should work correctly.
12796 # The option is referenced via a variable to avoid confusing sed.
12797 lt_compile=`echo "$ac_compile" | $SED \
12798 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12799 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12800 -e 's:$: $lt_compiler_flag:'`
cristy232a9ab2010-06-26 01:02:54 +000012801 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012802 (eval "$lt_compile" 2>conftest.err)
12803 ac_status=$?
12804 cat conftest.err >&5
cristy232a9ab2010-06-26 01:02:54 +000012805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012806 if (exit $ac_status) && test -s "$ac_outfile"; then
12807 # The compiler can only warn and ignore the option if not recognized
12808 # So say no if there are warnings other than the usual output.
cristy232a9ab2010-06-26 01:02:54 +000012809 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012810 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12811 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12812 lt_cv_prog_compiler_pic_works=yes
12813 fi
12814 fi
12815 $RM conftest*
12816
12817fi
cristy8b350f62009-11-15 23:12:43 +000012818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012819$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12820
12821if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12822 case $lt_prog_compiler_pic in
12823 "" | " "*) ;;
12824 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12825 esac
12826else
12827 lt_prog_compiler_pic=
12828 lt_prog_compiler_can_build_shared=no
12829fi
12830
12831fi
12832
12833
12834
12835
12836
12837
12838#
12839# Check to make sure the static flag actually works.
12840#
12841wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000012842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012843$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012844if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012845 $as_echo_n "(cached) " >&6
12846else
12847 lt_cv_prog_compiler_static_works=no
12848 save_LDFLAGS="$LDFLAGS"
12849 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12850 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12851 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12852 # The linker can only warn and ignore the option if not recognized
12853 # So say no if there are warnings
12854 if test -s conftest.err; then
12855 # Append any errors to the config.log.
12856 cat conftest.err 1>&5
cristy232a9ab2010-06-26 01:02:54 +000012857 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12859 if diff conftest.exp conftest.er2 >/dev/null; then
12860 lt_cv_prog_compiler_static_works=yes
12861 fi
12862 else
12863 lt_cv_prog_compiler_static_works=yes
12864 fi
12865 fi
12866 $RM -r conftest*
12867 LDFLAGS="$save_LDFLAGS"
12868
12869fi
cristy8b350f62009-11-15 23:12:43 +000012870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012871$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12872
12873if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12874 :
12875else
12876 lt_prog_compiler_static=
12877fi
12878
12879
12880
12881
12882
12883
12884
cristy8b350f62009-11-15 23:12:43 +000012885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012886$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012887if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012888 $as_echo_n "(cached) " >&6
12889else
12890 lt_cv_prog_compiler_c_o=no
12891 $RM -r conftest 2>/dev/null
12892 mkdir conftest
12893 cd conftest
12894 mkdir out
12895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12896
12897 lt_compiler_flag="-o out/conftest2.$ac_objext"
12898 # Insert the option either (1) after the last *FLAGS variable, or
12899 # (2) before a word containing "conftest.", or (3) at the end.
12900 # Note that $ac_compile itself does not contain backslashes and begins
12901 # with a dollar sign (not a hyphen), so the echo should work correctly.
12902 lt_compile=`echo "$ac_compile" | $SED \
12903 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12904 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12905 -e 's:$: $lt_compiler_flag:'`
cristy232a9ab2010-06-26 01:02:54 +000012906 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012907 (eval "$lt_compile" 2>out/conftest.err)
12908 ac_status=$?
12909 cat out/conftest.err >&5
cristy232a9ab2010-06-26 01:02:54 +000012910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012911 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12912 then
12913 # The compiler can only warn and ignore the option if not recognized
12914 # So say no if there are warnings
cristy232a9ab2010-06-26 01:02:54 +000012915 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012916 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12917 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12918 lt_cv_prog_compiler_c_o=yes
12919 fi
12920 fi
12921 chmod u+w . 2>&5
12922 $RM conftest*
12923 # SGI C++ compiler will create directory out/ii_files/ for
12924 # template instantiation
12925 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12926 $RM out/* && rmdir out
12927 cd ..
12928 $RM -r conftest
12929 $RM conftest*
12930
12931fi
cristy8b350f62009-11-15 23:12:43 +000012932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012933$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12934
12935
12936
12937
12938
12939
cristy8b350f62009-11-15 23:12:43 +000012940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012941$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012942if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012943 $as_echo_n "(cached) " >&6
12944else
12945 lt_cv_prog_compiler_c_o=no
12946 $RM -r conftest 2>/dev/null
12947 mkdir conftest
12948 cd conftest
12949 mkdir out
12950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12951
12952 lt_compiler_flag="-o out/conftest2.$ac_objext"
12953 # Insert the option either (1) after the last *FLAGS variable, or
12954 # (2) before a word containing "conftest.", or (3) at the end.
12955 # Note that $ac_compile itself does not contain backslashes and begins
12956 # with a dollar sign (not a hyphen), so the echo should work correctly.
12957 lt_compile=`echo "$ac_compile" | $SED \
12958 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12960 -e 's:$: $lt_compiler_flag:'`
cristy232a9ab2010-06-26 01:02:54 +000012961 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012962 (eval "$lt_compile" 2>out/conftest.err)
12963 ac_status=$?
12964 cat out/conftest.err >&5
cristy232a9ab2010-06-26 01:02:54 +000012965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012966 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12967 then
12968 # The compiler can only warn and ignore the option if not recognized
12969 # So say no if there are warnings
cristy232a9ab2010-06-26 01:02:54 +000012970 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012971 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12972 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12973 lt_cv_prog_compiler_c_o=yes
12974 fi
12975 fi
12976 chmod u+w . 2>&5
12977 $RM conftest*
12978 # SGI C++ compiler will create directory out/ii_files/ for
12979 # template instantiation
12980 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12981 $RM out/* && rmdir out
12982 cd ..
12983 $RM -r conftest
12984 $RM conftest*
12985
12986fi
cristy8b350f62009-11-15 23:12:43 +000012987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012988$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12989
12990
12991
12992
12993hard_links="nottested"
12994if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12995 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000012996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000012997$as_echo_n "checking if we can lock with hard links... " >&6; }
12998 hard_links=yes
12999 $RM conftest*
13000 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13001 touch conftest.a
13002 ln conftest.a conftest.b 2>&5 || hard_links=no
13003 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000013004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013005$as_echo "$hard_links" >&6; }
13006 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000013007 { $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 +000013008$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13009 need_locks=warn
13010 fi
13011else
13012 need_locks=no
13013fi
13014
13015
13016
13017
13018
13019
cristy8b350f62009-11-15 23:12:43 +000013020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000013021$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13022
13023 runpath_var=
13024 allow_undefined_flag=
13025 always_export_symbols=no
13026 archive_cmds=
13027 archive_expsym_cmds=
13028 compiler_needs_object=no
13029 enable_shared_with_static_runtimes=no
13030 export_dynamic_flag_spec=
13031 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13032 hardcode_automatic=no
13033 hardcode_direct=no
13034 hardcode_direct_absolute=no
13035 hardcode_libdir_flag_spec=
13036 hardcode_libdir_flag_spec_ld=
13037 hardcode_libdir_separator=
13038 hardcode_minus_L=no
13039 hardcode_shlibpath_var=unsupported
13040 inherit_rpath=no
13041 link_all_deplibs=unknown
13042 module_cmds=
13043 module_expsym_cmds=
13044 old_archive_from_new_cmds=
13045 old_archive_from_expsyms_cmds=
13046 thread_safe_flag_spec=
13047 whole_archive_flag_spec=
13048 # include_expsyms should be a list of space-separated symbols to be *always*
13049 # included in the symbol list
13050 include_expsyms=
13051 # exclude_expsyms can be an extended regexp of symbols to exclude
13052 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13053 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13054 # as well as any symbol that contains `d'.
13055 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13056 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13057 # platforms (ab)use it in PIC code, but their linkers get confused if
13058 # the symbol is explicitly referenced. Since portable code cannot
13059 # rely on this symbol name, it's probably fine to never include it in
13060 # preloaded symbol tables.
13061 # Exclude shared library initialization/finalization symbols.
13062 extract_expsyms_cmds=
13063
13064 case $host_os in
13065 cygwin* | mingw* | pw32* | cegcc*)
13066 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13067 # When not using gcc, we currently assume that we are using
13068 # Microsoft Visual C++.
13069 if test "$GCC" != yes; then
13070 with_gnu_ld=no
13071 fi
13072 ;;
13073 interix*)
13074 # we just hope/assume this is gcc and not c89 (= MSVC++)
13075 with_gnu_ld=yes
13076 ;;
13077 openbsd*)
13078 with_gnu_ld=no
13079 ;;
13080 esac
13081
13082 ld_shlibs=yes
cristy232a9ab2010-06-26 01:02:54 +000013083
13084 # On some targets, GNU ld is compatible enough with the native linker
13085 # that we're better off using the native interface for both.
13086 lt_use_gnu_ld_interface=no
cristy3ed852e2009-09-05 21:47:34 +000013087 if test "$with_gnu_ld" = yes; then
cristy232a9ab2010-06-26 01:02:54 +000013088 case $host_os in
13089 aix*)
13090 # The AIX port of GNU ld has always aspired to compatibility
13091 # with the native linker. However, as the warning in the GNU ld
13092 # block says, versions before 2.19.5* couldn't really create working
13093 # shared libraries, regardless of the interface used.
13094 case `$LD -v 2>&1` in
13095 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13096 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13097 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13098 *)
13099 lt_use_gnu_ld_interface=yes
13100 ;;
13101 esac
13102 ;;
13103 *)
13104 lt_use_gnu_ld_interface=yes
13105 ;;
13106 esac
13107 fi
13108
13109 if test "$lt_use_gnu_ld_interface" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000013110 # If archive_cmds runs LD, not CC, wlarc should be empty
13111 wlarc='${wl}'
13112
13113 # Set some defaults for GNU ld with shared library support. These
13114 # are reset later if shared libraries are not supported. Putting them
13115 # here allows them to be overridden if necessary.
13116 runpath_var=LD_RUN_PATH
13117 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13118 export_dynamic_flag_spec='${wl}--export-dynamic'
13119 # ancient GNU ld didn't support --whole-archive et. al.
13120 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13121 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13122 else
13123 whole_archive_flag_spec=
13124 fi
13125 supports_anon_versioning=no
13126 case `$LD -v 2>&1` in
cristy232a9ab2010-06-26 01:02:54 +000013127 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy3ed852e2009-09-05 21:47:34 +000013128 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13129 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13130 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13131 *\ 2.11.*) ;; # other 2.11 versions
13132 *) supports_anon_versioning=yes ;;
13133 esac
13134
13135 # See if GNU ld supports shared libraries.
13136 case $host_os in
13137 aix[3-9]*)
13138 # On AIX/PPC, the GNU linker is very broken
13139 if test "$host_cpu" != ia64; then
13140 ld_shlibs=no
13141 cat <<_LT_EOF 1>&2
13142
cristy232a9ab2010-06-26 01:02:54 +000013143*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy3ed852e2009-09-05 21:47:34 +000013144*** to be unable to reliably create shared libraries on AIX.
13145*** Therefore, libtool is disabling shared libraries support. If you
cristy232a9ab2010-06-26 01:02:54 +000013146*** really care for shared libraries, you may want to install binutils
13147*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13148*** You will then need to restart the configuration process.
cristy3ed852e2009-09-05 21:47:34 +000013149
13150_LT_EOF
13151 fi
13152 ;;
13153
13154 amigaos*)
13155 case $host_cpu in
13156 powerpc)
13157 # see comment about AmigaOS4 .so support
13158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13159 archive_expsym_cmds=''
13160 ;;
13161 m68k)
13162 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)'
13163 hardcode_libdir_flag_spec='-L$libdir'
13164 hardcode_minus_L=yes
13165 ;;
13166 esac
13167 ;;
13168
13169 beos*)
13170 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13171 allow_undefined_flag=unsupported
13172 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13173 # support --undefined. This deserves some investigation. FIXME
13174 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13175 else
13176 ld_shlibs=no
13177 fi
13178 ;;
13179
13180 cygwin* | mingw* | pw32* | cegcc*)
13181 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13182 # as there is no search path for DLLs.
13183 hardcode_libdir_flag_spec='-L$libdir'
cristy232a9ab2010-06-26 01:02:54 +000013184 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy3ed852e2009-09-05 21:47:34 +000013185 allow_undefined_flag=unsupported
13186 always_export_symbols=no
13187 enable_shared_with_static_runtimes=yes
13188 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13189
13190 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13192 # If the export-symbols file already is a .def file (1st line
13193 # is EXPORTS), use it as is; otherwise, prepend...
13194 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13195 cp $export_symbols $output_objdir/$soname.def;
13196 else
13197 echo EXPORTS > $output_objdir/$soname.def;
13198 cat $export_symbols >> $output_objdir/$soname.def;
13199 fi~
13200 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13201 else
13202 ld_shlibs=no
13203 fi
13204 ;;
13205
cristy232a9ab2010-06-26 01:02:54 +000013206 haiku*)
13207 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13208 link_all_deplibs=yes
13209 ;;
13210
cristy3ed852e2009-09-05 21:47:34 +000013211 interix[3-9]*)
13212 hardcode_direct=no
13213 hardcode_shlibpath_var=no
13214 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13215 export_dynamic_flag_spec='${wl}-E'
13216 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13217 # Instead, shared libraries are loaded at an image base (0x10000000 by
13218 # default) and relocated if they conflict, which is a slow very memory
13219 # consuming and fragmenting process. To avoid this, we pick a random,
13220 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13221 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13222 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13223 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'
13224 ;;
13225
cristy232a9ab2010-06-26 01:02:54 +000013226 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013227 tmp_diet=no
13228 if test "$host_os" = linux-dietlibc; then
13229 case $cc_basename in
13230 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13231 esac
13232 fi
13233 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13234 && test "$tmp_diet" = no
13235 then
13236 tmp_addflag=
13237 tmp_sharedflag='-shared'
13238 case $cc_basename,$host_cpu in
13239 pgcc*) # Portland Group C compiler
cristy232a9ab2010-06-26 01:02:54 +000013240 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 +000013241 tmp_addflag=' $pic_flag'
13242 ;;
cristy232a9ab2010-06-26 01:02:54 +000013243 pgf77* | pgf90* | pgf95* | pgfortran*)
13244 # Portland Group f77 and f90 compilers
13245 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 +000013246 tmp_addflag=' $pic_flag -Mnomain' ;;
13247 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13248 tmp_addflag=' -i_dynamic' ;;
13249 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13250 tmp_addflag=' -i_dynamic -nofor_main' ;;
13251 ifc* | ifort*) # Intel Fortran compiler
13252 tmp_addflag=' -nofor_main' ;;
13253 lf95*) # Lahey Fortran 8.1
13254 whole_archive_flag_spec=
13255 tmp_sharedflag='--shared' ;;
cristy232a9ab2010-06-26 01:02:54 +000013256 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000013257 tmp_sharedflag='-qmkshrobj'
13258 tmp_addflag= ;;
cristy232a9ab2010-06-26 01:02:54 +000013259 nvcc*) # Cuda Compiler Driver 2.2
13260 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'
13261 compiler_needs_object=yes
13262 ;;
cristy3ed852e2009-09-05 21:47:34 +000013263 esac
13264 case `$CC -V 2>&1 | sed 5q` in
13265 *Sun\ C*) # Sun C 5.9
cristy232a9ab2010-06-26 01:02:54 +000013266 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 +000013267 compiler_needs_object=yes
13268 tmp_sharedflag='-G' ;;
13269 *Sun\ F*) # Sun Fortran 8.3
13270 tmp_sharedflag='-G' ;;
13271 esac
13272 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13273
13274 if test "x$supports_anon_versioning" = xyes; then
13275 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13276 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13277 echo "local: *; };" >> $output_objdir/$libname.ver~
13278 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13279 fi
13280
13281 case $cc_basename in
cristy232a9ab2010-06-26 01:02:54 +000013282 xlf* | bgf* | bgxlf* | mpixlf*)
cristy3ed852e2009-09-05 21:47:34 +000013283 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13284 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13285 hardcode_libdir_flag_spec=
13286 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy232a9ab2010-06-26 01:02:54 +000013287 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013288 if test "x$supports_anon_versioning" = xyes; then
13289 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13290 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13291 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy232a9ab2010-06-26 01:02:54 +000013292 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013293 fi
13294 ;;
13295 esac
13296 else
13297 ld_shlibs=no
13298 fi
13299 ;;
13300
13301 netbsd*)
13302 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13303 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13304 wlarc=
13305 else
13306 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13307 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13308 fi
13309 ;;
13310
13311 solaris*)
13312 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13313 ld_shlibs=no
13314 cat <<_LT_EOF 1>&2
13315
13316*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13317*** create shared libraries on Solaris systems. Therefore, libtool
13318*** is disabling shared libraries support. We urge you to upgrade GNU
13319*** binutils to release 2.9.1 or newer. Another option is to modify
13320*** your PATH or compiler configuration so that the native linker is
13321*** used, and then restart.
13322
13323_LT_EOF
13324 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13325 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13326 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13327 else
13328 ld_shlibs=no
13329 fi
13330 ;;
13331
13332 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13333 case `$LD -v 2>&1` in
13334 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13335 ld_shlibs=no
13336 cat <<_LT_EOF 1>&2
13337
13338*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13339*** reliably create shared libraries on SCO systems. Therefore, libtool
13340*** is disabling shared libraries support. We urge you to upgrade GNU
13341*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13342*** your PATH or compiler configuration so that the native linker is
13343*** used, and then restart.
13344
13345_LT_EOF
13346 ;;
13347 *)
13348 # For security reasons, it is highly recommended that you always
13349 # use absolute paths for naming shared libraries, and exclude the
13350 # DT_RUNPATH tag from executables and libraries. But doing so
13351 # requires that you compile everything twice, which is a pain.
13352 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13353 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13354 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13355 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13356 else
13357 ld_shlibs=no
13358 fi
13359 ;;
13360 esac
13361 ;;
13362
13363 sunos4*)
13364 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13365 wlarc=
13366 hardcode_direct=yes
13367 hardcode_shlibpath_var=no
13368 ;;
13369
13370 *)
13371 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13372 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13373 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13374 else
13375 ld_shlibs=no
13376 fi
13377 ;;
13378 esac
13379
13380 if test "$ld_shlibs" = no; then
13381 runpath_var=
13382 hardcode_libdir_flag_spec=
13383 export_dynamic_flag_spec=
13384 whole_archive_flag_spec=
13385 fi
13386 else
13387 # PORTME fill in a description of your system's linker (not GNU ld)
13388 case $host_os in
13389 aix3*)
13390 allow_undefined_flag=unsupported
13391 always_export_symbols=yes
13392 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'
13393 # Note: this linker hardcodes the directories in LIBPATH if there
13394 # are no directories specified by -L.
13395 hardcode_minus_L=yes
13396 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13397 # Neither direct hardcoding nor static linking is supported with a
13398 # broken collect2.
13399 hardcode_direct=unsupported
13400 fi
13401 ;;
13402
13403 aix[4-9]*)
13404 if test "$host_cpu" = ia64; then
13405 # On IA64, the linker does run time linking by default, so we don't
13406 # have to do anything special.
13407 aix_use_runtimelinking=no
13408 exp_sym_flag='-Bexport'
13409 no_entry_flag=""
13410 else
13411 # If we're using GNU nm, then we don't want the "-C" option.
13412 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy232a9ab2010-06-26 01:02:54 +000013413 # Also, AIX nm treats weak defined symbols like other global
13414 # defined symbols, whereas GNU nm marks them as "W".
cristy3ed852e2009-09-05 21:47:34 +000013415 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy232a9ab2010-06-26 01:02:54 +000013416 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 +000013417 else
13418 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'
13419 fi
13420 aix_use_runtimelinking=no
13421
13422 # Test if we are trying to use run time linking or normal
13423 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13424 # need to do runtime linking.
13425 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13426 for ld_flag in $LDFLAGS; do
13427 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13428 aix_use_runtimelinking=yes
13429 break
13430 fi
13431 done
13432 ;;
13433 esac
13434
13435 exp_sym_flag='-bexport'
13436 no_entry_flag='-bnoentry'
13437 fi
13438
13439 # When large executables or shared objects are built, AIX ld can
13440 # have problems creating the table of contents. If linking a library
13441 # or program results in "error TOC overflow" add -mminimal-toc to
13442 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13443 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13444
13445 archive_cmds=''
13446 hardcode_direct=yes
13447 hardcode_direct_absolute=yes
13448 hardcode_libdir_separator=':'
13449 link_all_deplibs=yes
13450 file_list_spec='${wl}-f,'
13451
13452 if test "$GCC" = yes; then
13453 case $host_os in aix4.[012]|aix4.[012].*)
13454 # We only want to do this on AIX 4.2 and lower, the check
13455 # below for broken collect2 doesn't work under 4.3+
13456 collect2name=`${CC} -print-prog-name=collect2`
13457 if test -f "$collect2name" &&
13458 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13459 then
13460 # We have reworked collect2
13461 :
13462 else
13463 # We have old collect2
13464 hardcode_direct=unsupported
13465 # It fails to find uninstalled libraries when the uninstalled
13466 # path is not listed in the libpath. Setting hardcode_minus_L
13467 # to unsupported forces relinking
13468 hardcode_minus_L=yes
13469 hardcode_libdir_flag_spec='-L$libdir'
13470 hardcode_libdir_separator=
13471 fi
13472 ;;
13473 esac
13474 shared_flag='-shared'
13475 if test "$aix_use_runtimelinking" = yes; then
13476 shared_flag="$shared_flag "'${wl}-G'
13477 fi
13478 else
13479 # not using gcc
13480 if test "$host_cpu" = ia64; then
13481 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13482 # chokes on -Wl,-G. The following line is correct:
13483 shared_flag='-G'
13484 else
13485 if test "$aix_use_runtimelinking" = yes; then
13486 shared_flag='${wl}-G'
13487 else
13488 shared_flag='${wl}-bM:SRE'
13489 fi
13490 fi
13491 fi
13492
13493 export_dynamic_flag_spec='${wl}-bexpall'
13494 # It seems that -bexpall does not export symbols beginning with
13495 # underscore (_), so it is better to generate a list of symbols to export.
13496 always_export_symbols=yes
13497 if test "$aix_use_runtimelinking" = yes; then
13498 # Warning - without using the other runtime loading flags (-brtl),
13499 # -berok will link without error, but may produce a broken library.
13500 allow_undefined_flag='-berok'
13501 # Determine the default libpath from the value encoded in an
13502 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013504/* end confdefs.h. */
13505
13506int
13507main ()
13508{
13509
13510 ;
13511 return 0;
13512}
13513_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013514if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013515
13516lt_aix_libpath_sed='
13517 /Import File Strings/,/^$/ {
13518 /^0/ {
13519 s/^0 *\(.*\)$/\1/
13520 p
13521 }
13522 }'
13523aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13524# Check for a 64-bit object if we didn't find anything.
13525if test -z "$aix_libpath"; then
13526 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13527fi
cristy3ed852e2009-09-05 21:47:34 +000013528fi
cristy8b350f62009-11-15 23:12:43 +000013529rm -f core conftest.err conftest.$ac_objext \
13530 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013531if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13532
13533 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy232a9ab2010-06-26 01:02:54 +000013534 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 +000013535 else
13536 if test "$host_cpu" = ia64; then
13537 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13538 allow_undefined_flag="-z nodefs"
13539 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"
13540 else
13541 # Determine the default libpath from the value encoded in an
13542 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013544/* end confdefs.h. */
13545
13546int
13547main ()
13548{
13549
13550 ;
13551 return 0;
13552}
13553_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013554if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013555
13556lt_aix_libpath_sed='
13557 /Import File Strings/,/^$/ {
13558 /^0/ {
13559 s/^0 *\(.*\)$/\1/
13560 p
13561 }
13562 }'
13563aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13564# Check for a 64-bit object if we didn't find anything.
13565if test -z "$aix_libpath"; then
13566 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13567fi
cristy3ed852e2009-09-05 21:47:34 +000013568fi
cristy8b350f62009-11-15 23:12:43 +000013569rm -f core conftest.err conftest.$ac_objext \
13570 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013571if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13572
13573 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13574 # Warning - without using the other run time loading flags,
13575 # -berok will link without error, but may produce a broken library.
13576 no_undefined_flag=' ${wl}-bernotok'
13577 allow_undefined_flag=' ${wl}-berok'
cristy232a9ab2010-06-26 01:02:54 +000013578 if test "$with_gnu_ld" = yes; then
13579 # We only use this code for GNU lds that support --whole-archive.
13580 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13581 else
13582 # Exported symbols can be pulled into shared objects from archives
13583 whole_archive_flag_spec='$convenience'
13584 fi
cristy3ed852e2009-09-05 21:47:34 +000013585 archive_cmds_need_lc=yes
13586 # This is similar to how AIX traditionally builds its shared libraries.
13587 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'
13588 fi
13589 fi
13590 ;;
13591
13592 amigaos*)
13593 case $host_cpu in
13594 powerpc)
13595 # see comment about AmigaOS4 .so support
13596 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13597 archive_expsym_cmds=''
13598 ;;
13599 m68k)
13600 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)'
13601 hardcode_libdir_flag_spec='-L$libdir'
13602 hardcode_minus_L=yes
13603 ;;
13604 esac
13605 ;;
13606
13607 bsdi[45]*)
13608 export_dynamic_flag_spec=-rdynamic
13609 ;;
13610
13611 cygwin* | mingw* | pw32* | cegcc*)
13612 # When not using gcc, we currently assume that we are using
13613 # Microsoft Visual C++.
13614 # hardcode_libdir_flag_spec is actually meaningless, as there is
13615 # no search path for DLLs.
13616 hardcode_libdir_flag_spec=' '
13617 allow_undefined_flag=unsupported
13618 # Tell ltmain to make .lib files, not .a files.
13619 libext=lib
13620 # Tell ltmain to make .dll files, not .so files.
13621 shrext_cmds=".dll"
13622 # FIXME: Setting linknames here is a bad hack.
cristy232a9ab2010-06-26 01:02:54 +000013623 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000013624 # The linker will automatically build a .lib file if we build a DLL.
13625 old_archive_from_new_cmds='true'
13626 # FIXME: Should let the user specify the lib program.
13627 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13628 fix_srcfile_path='`cygpath -w "$srcfile"`'
13629 enable_shared_with_static_runtimes=yes
13630 ;;
13631
13632 darwin* | rhapsody*)
13633
13634
13635 archive_cmds_need_lc=no
13636 hardcode_direct=no
13637 hardcode_automatic=yes
13638 hardcode_shlibpath_var=unsupported
cristy232a9ab2010-06-26 01:02:54 +000013639 if test "$lt_cv_ld_force_load" = "yes"; then
13640 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\"`'
13641 else
13642 whole_archive_flag_spec=''
13643 fi
cristy3ed852e2009-09-05 21:47:34 +000013644 link_all_deplibs=yes
13645 allow_undefined_flag="$_lt_dar_allow_undefined"
13646 case $cc_basename in
13647 ifort*) _lt_dar_can_shared=yes ;;
13648 *) _lt_dar_can_shared=$GCC ;;
13649 esac
13650 if test "$_lt_dar_can_shared" = "yes"; then
cristy232a9ab2010-06-26 01:02:54 +000013651 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000013652 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13653 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13654 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}"
13655 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}"
13656
13657 else
13658 ld_shlibs=no
13659 fi
13660
13661 ;;
13662
13663 dgux*)
13664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13665 hardcode_libdir_flag_spec='-L$libdir'
13666 hardcode_shlibpath_var=no
13667 ;;
13668
13669 freebsd1*)
13670 ld_shlibs=no
13671 ;;
13672
13673 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13674 # support. Future versions do this automatically, but an explicit c++rt0.o
13675 # does not break anything, and helps significantly (at the cost of a little
13676 # extra space).
13677 freebsd2.2*)
13678 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13679 hardcode_libdir_flag_spec='-R$libdir'
13680 hardcode_direct=yes
13681 hardcode_shlibpath_var=no
13682 ;;
13683
13684 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13685 freebsd2*)
13686 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13687 hardcode_direct=yes
13688 hardcode_minus_L=yes
13689 hardcode_shlibpath_var=no
13690 ;;
13691
13692 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13693 freebsd* | dragonfly*)
13694 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13695 hardcode_libdir_flag_spec='-R$libdir'
13696 hardcode_direct=yes
13697 hardcode_shlibpath_var=no
13698 ;;
13699
13700 hpux9*)
13701 if test "$GCC" = yes; then
13702 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'
13703 else
13704 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'
13705 fi
13706 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13707 hardcode_libdir_separator=:
13708 hardcode_direct=yes
13709
13710 # hardcode_minus_L: Not really in the search PATH,
13711 # but as the default location of the library.
13712 hardcode_minus_L=yes
13713 export_dynamic_flag_spec='${wl}-E'
13714 ;;
13715
13716 hpux10*)
cristy232a9ab2010-06-26 01:02:54 +000013717 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013718 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13719 else
13720 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13721 fi
13722 if test "$with_gnu_ld" = no; then
13723 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13724 hardcode_libdir_flag_spec_ld='+b $libdir'
13725 hardcode_libdir_separator=:
13726 hardcode_direct=yes
13727 hardcode_direct_absolute=yes
13728 export_dynamic_flag_spec='${wl}-E'
13729 # hardcode_minus_L: Not really in the search PATH,
13730 # but as the default location of the library.
13731 hardcode_minus_L=yes
13732 fi
13733 ;;
13734
13735 hpux11*)
cristy232a9ab2010-06-26 01:02:54 +000013736 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013737 case $host_cpu in
13738 hppa*64*)
13739 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13740 ;;
13741 ia64*)
13742 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13743 ;;
13744 *)
13745 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13746 ;;
13747 esac
13748 else
13749 case $host_cpu in
13750 hppa*64*)
13751 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13752 ;;
13753 ia64*)
13754 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13755 ;;
13756 *)
cristy232a9ab2010-06-26 01:02:54 +000013757
13758 # Older versions of the 11.00 compiler do not understand -b yet
13759 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13761$as_echo_n "checking if $CC understands -b... " >&6; }
13762if test "${lt_cv_prog_compiler__b+set}" = set; then :
13763 $as_echo_n "(cached) " >&6
13764else
13765 lt_cv_prog_compiler__b=no
13766 save_LDFLAGS="$LDFLAGS"
13767 LDFLAGS="$LDFLAGS -b"
13768 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13769 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13770 # The linker can only warn and ignore the option if not recognized
13771 # So say no if there are warnings
13772 if test -s conftest.err; then
13773 # Append any errors to the config.log.
13774 cat conftest.err 1>&5
13775 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13776 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13777 if diff conftest.exp conftest.er2 >/dev/null; then
13778 lt_cv_prog_compiler__b=yes
13779 fi
13780 else
13781 lt_cv_prog_compiler__b=yes
13782 fi
13783 fi
13784 $RM -r conftest*
13785 LDFLAGS="$save_LDFLAGS"
13786
13787fi
13788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13789$as_echo "$lt_cv_prog_compiler__b" >&6; }
13790
13791if test x"$lt_cv_prog_compiler__b" = xyes; then
13792 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13793else
13794 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13795fi
13796
cristy3ed852e2009-09-05 21:47:34 +000013797 ;;
13798 esac
13799 fi
13800 if test "$with_gnu_ld" = no; then
13801 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13802 hardcode_libdir_separator=:
13803
13804 case $host_cpu in
13805 hppa*64*|ia64*)
13806 hardcode_direct=no
13807 hardcode_shlibpath_var=no
13808 ;;
13809 *)
13810 hardcode_direct=yes
13811 hardcode_direct_absolute=yes
13812 export_dynamic_flag_spec='${wl}-E'
13813
13814 # hardcode_minus_L: Not really in the search PATH,
13815 # but as the default location of the library.
13816 hardcode_minus_L=yes
13817 ;;
13818 esac
13819 fi
13820 ;;
13821
13822 irix5* | irix6* | nonstopux*)
13823 if test "$GCC" = yes; then
cristy232a9ab2010-06-26 01:02:54 +000013824 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 +000013825 # Try to use the -exported_symbol ld option, if it does not
13826 # work, assume that -exports_file does not work either and
13827 # implicitly export all symbols.
13828 save_LDFLAGS="$LDFLAGS"
13829 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000013830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13831/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000013832int foo(void) {}
13833_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013834if ac_fn_c_try_link "$LINENO"; then :
cristy232a9ab2010-06-26 01:02:54 +000013835 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 +000013836
cristy3ed852e2009-09-05 21:47:34 +000013837fi
cristy8b350f62009-11-15 23:12:43 +000013838rm -f core conftest.err conftest.$ac_objext \
13839 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013840 LDFLAGS="$save_LDFLAGS"
13841 else
cristy232a9ab2010-06-26 01:02:54 +000013842 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'
13843 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 +000013844 fi
13845 archive_cmds_need_lc='no'
13846 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13847 hardcode_libdir_separator=:
13848 inherit_rpath=yes
13849 link_all_deplibs=yes
13850 ;;
13851
13852 netbsd*)
13853 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13854 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13855 else
13856 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13857 fi
13858 hardcode_libdir_flag_spec='-R$libdir'
13859 hardcode_direct=yes
13860 hardcode_shlibpath_var=no
13861 ;;
13862
13863 newsos6)
13864 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13865 hardcode_direct=yes
13866 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13867 hardcode_libdir_separator=:
13868 hardcode_shlibpath_var=no
13869 ;;
13870
13871 *nto* | *qnx*)
13872 ;;
13873
13874 openbsd*)
13875 if test -f /usr/libexec/ld.so; then
13876 hardcode_direct=yes
13877 hardcode_shlibpath_var=no
13878 hardcode_direct_absolute=yes
13879 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13880 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13881 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13882 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13883 export_dynamic_flag_spec='${wl}-E'
13884 else
13885 case $host_os in
13886 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13887 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13888 hardcode_libdir_flag_spec='-R$libdir'
13889 ;;
13890 *)
13891 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13892 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13893 ;;
13894 esac
13895 fi
13896 else
13897 ld_shlibs=no
13898 fi
13899 ;;
13900
13901 os2*)
13902 hardcode_libdir_flag_spec='-L$libdir'
13903 hardcode_minus_L=yes
13904 allow_undefined_flag=unsupported
cristy232a9ab2010-06-26 01:02:54 +000013905 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 +000013906 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13907 ;;
13908
13909 osf3*)
13910 if test "$GCC" = yes; then
13911 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy232a9ab2010-06-26 01:02:54 +000013912 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 +000013913 else
13914 allow_undefined_flag=' -expect_unresolved \*'
cristy232a9ab2010-06-26 01:02:54 +000013915 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 +000013916 fi
13917 archive_cmds_need_lc='no'
13918 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13919 hardcode_libdir_separator=:
13920 ;;
13921
13922 osf4* | osf5*) # as osf3* with the addition of -msym flag
13923 if test "$GCC" = yes; then
13924 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy232a9ab2010-06-26 01:02:54 +000013925 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 +000013926 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13927 else
13928 allow_undefined_flag=' -expect_unresolved \*'
cristy232a9ab2010-06-26 01:02:54 +000013929 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 +000013930 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~
cristy232a9ab2010-06-26 01:02:54 +000013931 $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 +000013932
13933 # Both c and cxx compiler support -rpath directly
13934 hardcode_libdir_flag_spec='-rpath $libdir'
13935 fi
13936 archive_cmds_need_lc='no'
13937 hardcode_libdir_separator=:
13938 ;;
13939
13940 solaris*)
13941 no_undefined_flag=' -z defs'
13942 if test "$GCC" = yes; then
13943 wlarc='${wl}'
13944 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13945 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13946 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13947 else
13948 case `$CC -V 2>&1` in
13949 *"Compilers 5.0"*)
13950 wlarc=''
13951 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13952 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13953 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13954 ;;
13955 *)
13956 wlarc='${wl}'
13957 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13958 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13959 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13960 ;;
13961 esac
13962 fi
13963 hardcode_libdir_flag_spec='-R$libdir'
13964 hardcode_shlibpath_var=no
13965 case $host_os in
13966 solaris2.[0-5] | solaris2.[0-5].*) ;;
13967 *)
13968 # The compiler driver will combine and reorder linker options,
13969 # but understands `-z linker_flag'. GCC discards it without `$wl',
13970 # but is careful enough not to reorder.
13971 # Supported since Solaris 2.6 (maybe 2.5.1?)
13972 if test "$GCC" = yes; then
13973 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13974 else
13975 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13976 fi
13977 ;;
13978 esac
13979 link_all_deplibs=yes
13980 ;;
13981
13982 sunos4*)
13983 if test "x$host_vendor" = xsequent; then
13984 # Use $CC to link under sequent, because it throws in some extra .o
13985 # files that make .init and .fini sections work.
13986 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13987 else
13988 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13989 fi
13990 hardcode_libdir_flag_spec='-L$libdir'
13991 hardcode_direct=yes
13992 hardcode_minus_L=yes
13993 hardcode_shlibpath_var=no
13994 ;;
13995
13996 sysv4)
13997 case $host_vendor in
13998 sni)
13999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14000 hardcode_direct=yes # is this really true???
14001 ;;
14002 siemens)
14003 ## LD is ld it makes a PLAMLIB
14004 ## CC just makes a GrossModule.
14005 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14006 reload_cmds='$CC -r -o $output$reload_objs'
14007 hardcode_direct=no
14008 ;;
14009 motorola)
14010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14011 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14012 ;;
14013 esac
14014 runpath_var='LD_RUN_PATH'
14015 hardcode_shlibpath_var=no
14016 ;;
14017
14018 sysv4.3*)
14019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14020 hardcode_shlibpath_var=no
14021 export_dynamic_flag_spec='-Bexport'
14022 ;;
14023
14024 sysv4*MP*)
14025 if test -d /usr/nec; then
14026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14027 hardcode_shlibpath_var=no
14028 runpath_var=LD_RUN_PATH
14029 hardcode_runpath_var=yes
14030 ld_shlibs=yes
14031 fi
14032 ;;
14033
14034 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14035 no_undefined_flag='${wl}-z,text'
14036 archive_cmds_need_lc=no
14037 hardcode_shlibpath_var=no
14038 runpath_var='LD_RUN_PATH'
14039
14040 if test "$GCC" = yes; then
14041 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14042 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14043 else
14044 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14045 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14046 fi
14047 ;;
14048
14049 sysv5* | sco3.2v5* | sco5v6*)
14050 # Note: We can NOT use -z defs as we might desire, because we do not
14051 # link with -lc, and that would cause any symbols used from libc to
14052 # always be unresolved, which means just about no library would
14053 # ever link correctly. If we're not using GNU ld we use -z text
14054 # though, which does catch some bad symbols but isn't as heavy-handed
14055 # as -z defs.
14056 no_undefined_flag='${wl}-z,text'
14057 allow_undefined_flag='${wl}-z,nodefs'
14058 archive_cmds_need_lc=no
14059 hardcode_shlibpath_var=no
14060 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14061 hardcode_libdir_separator=':'
14062 link_all_deplibs=yes
14063 export_dynamic_flag_spec='${wl}-Bexport'
14064 runpath_var='LD_RUN_PATH'
14065
14066 if test "$GCC" = yes; then
14067 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14068 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14069 else
14070 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14071 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14072 fi
14073 ;;
14074
14075 uts4*)
14076 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14077 hardcode_libdir_flag_spec='-L$libdir'
14078 hardcode_shlibpath_var=no
14079 ;;
14080
14081 *)
14082 ld_shlibs=no
14083 ;;
14084 esac
14085
14086 if test x$host_vendor = xsni; then
14087 case $host in
14088 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14089 export_dynamic_flag_spec='${wl}-Blargedynsym'
14090 ;;
14091 esac
14092 fi
14093 fi
14094
cristy8b350f62009-11-15 23:12:43 +000014095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014096$as_echo "$ld_shlibs" >&6; }
14097test "$ld_shlibs" = no && can_build_shared=no
14098
14099with_gnu_ld=$with_gnu_ld
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115#
14116# Do we need to explicitly link libc?
14117#
14118case "x$archive_cmds_need_lc" in
14119x|xyes)
14120 # Assume -lc should be added
14121 archive_cmds_need_lc=yes
14122
14123 if test "$enable_shared" = yes && test "$GCC" = yes; then
14124 case $archive_cmds in
14125 *'~'*)
14126 # FIXME: we may have to deal with multi-command sequences.
14127 ;;
14128 '$CC '*)
14129 # Test whether the compiler implicitly links with -lc since on some
14130 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14131 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000014132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000014133$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy232a9ab2010-06-26 01:02:54 +000014134if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
14135 $as_echo_n "(cached) " >&6
14136else
14137 $RM conftest*
14138 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014139
cristy232a9ab2010-06-26 01:02:54 +000014140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014141 (eval $ac_compile) 2>&5
14142 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14144 test $ac_status = 0; } 2>conftest.err; then
cristy232a9ab2010-06-26 01:02:54 +000014145 soname=conftest
14146 lib=conftest
14147 libobjs=conftest.$ac_objext
14148 deplibs=
14149 wl=$lt_prog_compiler_wl
14150 pic_flag=$lt_prog_compiler_pic
14151 compiler_flags=-v
14152 linker_flags=-v
14153 verstring=
14154 output_objdir=.
14155 libname=conftest
14156 lt_save_allow_undefined_flag=$allow_undefined_flag
14157 allow_undefined_flag=
14158 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 +000014159 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14160 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14162 test $ac_status = 0; }
cristy232a9ab2010-06-26 01:02:54 +000014163 then
14164 lt_cv_archive_cmds_need_lc=no
14165 else
14166 lt_cv_archive_cmds_need_lc=yes
14167 fi
14168 allow_undefined_flag=$lt_save_allow_undefined_flag
14169 else
14170 cat conftest.err 1>&5
14171 fi
14172 $RM conftest*
14173
14174fi
14175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14176$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14177 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy3ed852e2009-09-05 21:47:34 +000014178 ;;
14179 esac
14180 fi
14181 ;;
14182esac
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
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
cristy8b350f62009-11-15 23:12:43 +000014340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000014341$as_echo_n "checking dynamic linker characteristics... " >&6; }
14342
14343if test "$GCC" = yes; then
14344 case $host_os in
14345 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14346 *) lt_awk_arg="/^libraries:/" ;;
14347 esac
cristy232a9ab2010-06-26 01:02:54 +000014348 case $host_os in
14349 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14350 *) lt_sed_strip_eq="s,=/,/,g" ;;
14351 esac
14352 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14353 case $lt_search_path_spec in
14354 *\;*)
cristy3ed852e2009-09-05 21:47:34 +000014355 # if the path contains ";" then we assume it to be the separator
14356 # otherwise default to the standard path separator (i.e. ":") - it is
14357 # assumed that no part of a normal pathname contains ";" but that should
14358 # okay in the real world where ";" in dirpaths is itself problematic.
cristy232a9ab2010-06-26 01:02:54 +000014359 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14360 ;;
14361 *)
14362 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14363 ;;
14364 esac
cristy3ed852e2009-09-05 21:47:34 +000014365 # Ok, now we have the path, separated by spaces, we can step through it
14366 # and add multilib dir if necessary.
14367 lt_tmp_lt_search_path_spec=
14368 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14369 for lt_sys_path in $lt_search_path_spec; do
14370 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14371 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14372 else
14373 test -d "$lt_sys_path" && \
14374 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14375 fi
14376 done
cristy232a9ab2010-06-26 01:02:54 +000014377 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy3ed852e2009-09-05 21:47:34 +000014378BEGIN {RS=" "; FS="/|\n";} {
14379 lt_foo="";
14380 lt_count=0;
14381 for (lt_i = NF; lt_i > 0; lt_i--) {
14382 if ($lt_i != "" && $lt_i != ".") {
14383 if ($lt_i == "..") {
14384 lt_count++;
14385 } else {
14386 if (lt_count == 0) {
14387 lt_foo="/" $lt_i lt_foo;
14388 } else {
14389 lt_count--;
14390 }
14391 }
14392 }
14393 }
14394 if (lt_foo != "") { lt_freq[lt_foo]++; }
14395 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14396}'`
cristy232a9ab2010-06-26 01:02:54 +000014397 # AWK program above erroneously prepends '/' to C:/dos/paths
14398 # for these hosts.
14399 case $host_os in
14400 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14401 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14402 esac
14403 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy3ed852e2009-09-05 21:47:34 +000014404else
14405 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14406fi
14407library_names_spec=
14408libname_spec='lib$name'
14409soname_spec=
14410shrext_cmds=".so"
14411postinstall_cmds=
14412postuninstall_cmds=
14413finish_cmds=
14414finish_eval=
14415shlibpath_var=
14416shlibpath_overrides_runpath=unknown
14417version_type=none
14418dynamic_linker="$host_os ld.so"
14419sys_lib_dlsearch_path_spec="/lib /usr/lib"
14420need_lib_prefix=unknown
14421hardcode_into_libs=no
14422
14423# when you set need_version to no, make sure it does not cause -set_version
14424# flags to be left without arguments
14425need_version=unknown
14426
14427case $host_os in
14428aix3*)
14429 version_type=linux
14430 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14431 shlibpath_var=LIBPATH
14432
14433 # AIX 3 has no versioning support, so we append a major version to the name.
14434 soname_spec='${libname}${release}${shared_ext}$major'
14435 ;;
14436
14437aix[4-9]*)
14438 version_type=linux
14439 need_lib_prefix=no
14440 need_version=no
14441 hardcode_into_libs=yes
14442 if test "$host_cpu" = ia64; then
14443 # AIX 5 supports IA64
14444 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14445 shlibpath_var=LD_LIBRARY_PATH
14446 else
14447 # With GCC up to 2.95.x, collect2 would create an import file
14448 # for dependence libraries. The import file would start with
14449 # the line `#! .'. This would cause the generated library to
14450 # depend on `.', always an invalid library. This was fixed in
14451 # development snapshots of GCC prior to 3.0.
14452 case $host_os in
14453 aix4 | aix4.[01] | aix4.[01].*)
14454 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14455 echo ' yes '
14456 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14457 :
14458 else
14459 can_build_shared=no
14460 fi
14461 ;;
14462 esac
14463 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14464 # soname into executable. Probably we can add versioning support to
14465 # collect2, so additional links can be useful in future.
14466 if test "$aix_use_runtimelinking" = yes; then
14467 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14468 # instead of lib<name>.a to let people know that these are not
14469 # typical AIX shared libraries.
14470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14471 else
14472 # We preserve .a as extension for shared libraries through AIX4.2
14473 # and later when we are not doing run time linking.
14474 library_names_spec='${libname}${release}.a $libname.a'
14475 soname_spec='${libname}${release}${shared_ext}$major'
14476 fi
14477 shlibpath_var=LIBPATH
14478 fi
14479 ;;
14480
14481amigaos*)
14482 case $host_cpu in
14483 powerpc)
14484 # Since July 2007 AmigaOS4 officially supports .so libraries.
14485 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14487 ;;
14488 m68k)
14489 library_names_spec='$libname.ixlibrary $libname.a'
14490 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy232a9ab2010-06-26 01:02:54 +000014491 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 +000014492 ;;
14493 esac
14494 ;;
14495
14496beos*)
14497 library_names_spec='${libname}${shared_ext}'
14498 dynamic_linker="$host_os ld.so"
14499 shlibpath_var=LIBRARY_PATH
14500 ;;
14501
14502bsdi[45]*)
14503 version_type=linux
14504 need_version=no
14505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14506 soname_spec='${libname}${release}${shared_ext}$major'
14507 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14508 shlibpath_var=LD_LIBRARY_PATH
14509 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14510 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14511 # the default ld.so.conf also contains /usr/contrib/lib and
14512 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14513 # libtool to hard-code these into programs
14514 ;;
14515
14516cygwin* | mingw* | pw32* | cegcc*)
14517 version_type=windows
14518 shrext_cmds=".dll"
14519 need_version=no
14520 need_lib_prefix=no
14521
14522 case $GCC,$host_os in
14523 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14524 library_names_spec='$libname.dll.a'
14525 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14526 postinstall_cmds='base_file=`basename \${file}`~
14527 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14528 dldir=$destdir/`dirname \$dlpath`~
14529 test -d \$dldir || mkdir -p \$dldir~
14530 $install_prog $dir/$dlname \$dldir/$dlname~
14531 chmod a+x \$dldir/$dlname~
14532 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14533 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14534 fi'
14535 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14536 dlpath=$dir/\$dldll~
14537 $RM \$dlpath'
14538 shlibpath_overrides_runpath=yes
14539
14540 case $host_os in
14541 cygwin*)
14542 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14543 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy232a9ab2010-06-26 01:02:54 +000014544
14545 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy3ed852e2009-09-05 21:47:34 +000014546 ;;
14547 mingw* | cegcc*)
14548 # MinGW DLLs use traditional 'lib' prefix
14549 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy3ed852e2009-09-05 21:47:34 +000014550 ;;
14551 pw32*)
14552 # pw32 DLLs use 'pw' prefix rather than 'lib'
14553 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14554 ;;
14555 esac
14556 ;;
14557
14558 *)
14559 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14560 ;;
14561 esac
14562 dynamic_linker='Win32 ld.exe'
14563 # FIXME: first we should search . and the directory the executable is in
14564 shlibpath_var=PATH
14565 ;;
14566
14567darwin* | rhapsody*)
14568 dynamic_linker="$host_os dyld"
14569 version_type=darwin
14570 need_lib_prefix=no
14571 need_version=no
14572 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14573 soname_spec='${libname}${release}${major}$shared_ext'
14574 shlibpath_overrides_runpath=yes
14575 shlibpath_var=DYLD_LIBRARY_PATH
14576 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14577
14578 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14579 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14580 ;;
14581
14582dgux*)
14583 version_type=linux
14584 need_lib_prefix=no
14585 need_version=no
14586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14587 soname_spec='${libname}${release}${shared_ext}$major'
14588 shlibpath_var=LD_LIBRARY_PATH
14589 ;;
14590
14591freebsd1*)
14592 dynamic_linker=no
14593 ;;
14594
14595freebsd* | dragonfly*)
14596 # DragonFly does not have aout. When/if they implement a new
14597 # versioning mechanism, adjust this.
14598 if test -x /usr/bin/objformat; then
14599 objformat=`/usr/bin/objformat`
14600 else
14601 case $host_os in
14602 freebsd[123]*) objformat=aout ;;
14603 *) objformat=elf ;;
14604 esac
14605 fi
14606 version_type=freebsd-$objformat
14607 case $version_type in
14608 freebsd-elf*)
14609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14610 need_version=no
14611 need_lib_prefix=no
14612 ;;
14613 freebsd-*)
14614 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14615 need_version=yes
14616 ;;
14617 esac
14618 shlibpath_var=LD_LIBRARY_PATH
14619 case $host_os in
14620 freebsd2*)
14621 shlibpath_overrides_runpath=yes
14622 ;;
14623 freebsd3.[01]* | freebsdelf3.[01]*)
14624 shlibpath_overrides_runpath=yes
14625 hardcode_into_libs=yes
14626 ;;
14627 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14628 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14629 shlibpath_overrides_runpath=no
14630 hardcode_into_libs=yes
14631 ;;
14632 *) # from 4.6 on, and DragonFly
14633 shlibpath_overrides_runpath=yes
14634 hardcode_into_libs=yes
14635 ;;
14636 esac
14637 ;;
14638
14639gnu*)
14640 version_type=linux
14641 need_lib_prefix=no
14642 need_version=no
14643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14644 soname_spec='${libname}${release}${shared_ext}$major'
14645 shlibpath_var=LD_LIBRARY_PATH
14646 hardcode_into_libs=yes
14647 ;;
14648
cristy232a9ab2010-06-26 01:02:54 +000014649haiku*)
14650 version_type=linux
14651 need_lib_prefix=no
14652 need_version=no
14653 dynamic_linker="$host_os runtime_loader"
14654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14655 soname_spec='${libname}${release}${shared_ext}$major'
14656 shlibpath_var=LIBRARY_PATH
14657 shlibpath_overrides_runpath=yes
14658 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14659 hardcode_into_libs=yes
14660 ;;
14661
cristy3ed852e2009-09-05 21:47:34 +000014662hpux9* | hpux10* | hpux11*)
14663 # Give a soname corresponding to the major version so that dld.sl refuses to
14664 # link against other versions.
14665 version_type=sunos
14666 need_lib_prefix=no
14667 need_version=no
14668 case $host_cpu in
14669 ia64*)
14670 shrext_cmds='.so'
14671 hardcode_into_libs=yes
14672 dynamic_linker="$host_os dld.so"
14673 shlibpath_var=LD_LIBRARY_PATH
14674 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14676 soname_spec='${libname}${release}${shared_ext}$major'
14677 if test "X$HPUX_IA64_MODE" = X32; then
14678 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14679 else
14680 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14681 fi
14682 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14683 ;;
14684 hppa*64*)
14685 shrext_cmds='.sl'
14686 hardcode_into_libs=yes
14687 dynamic_linker="$host_os dld.sl"
14688 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14689 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14691 soname_spec='${libname}${release}${shared_ext}$major'
14692 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14693 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14694 ;;
14695 *)
14696 shrext_cmds='.sl'
14697 dynamic_linker="$host_os dld.sl"
14698 shlibpath_var=SHLIB_PATH
14699 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
14703 esac
cristy232a9ab2010-06-26 01:02:54 +000014704 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy3ed852e2009-09-05 21:47:34 +000014705 postinstall_cmds='chmod 555 $lib'
cristy232a9ab2010-06-26 01:02:54 +000014706 # or fails outright, so override atomically:
14707 install_override_mode=555
cristy3ed852e2009-09-05 21:47:34 +000014708 ;;
14709
14710interix[3-9]*)
14711 version_type=linux
14712 need_lib_prefix=no
14713 need_version=no
14714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14715 soname_spec='${libname}${release}${shared_ext}$major'
14716 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14717 shlibpath_var=LD_LIBRARY_PATH
14718 shlibpath_overrides_runpath=no
14719 hardcode_into_libs=yes
14720 ;;
14721
14722irix5* | irix6* | nonstopux*)
14723 case $host_os in
14724 nonstopux*) version_type=nonstopux ;;
14725 *)
14726 if test "$lt_cv_prog_gnu_ld" = yes; then
14727 version_type=linux
14728 else
14729 version_type=irix
14730 fi ;;
14731 esac
14732 need_lib_prefix=no
14733 need_version=no
14734 soname_spec='${libname}${release}${shared_ext}$major'
14735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14736 case $host_os in
14737 irix5* | nonstopux*)
14738 libsuff= shlibsuff=
14739 ;;
14740 *)
14741 case $LD in # libtool.m4 will add one of these switches to LD
14742 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14743 libsuff= shlibsuff= libmagic=32-bit;;
14744 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14745 libsuff=32 shlibsuff=N32 libmagic=N32;;
14746 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14747 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14748 *) libsuff= shlibsuff= libmagic=never-match;;
14749 esac
14750 ;;
14751 esac
14752 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14753 shlibpath_overrides_runpath=no
14754 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14755 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14756 hardcode_into_libs=yes
14757 ;;
14758
14759# No shared lib support for Linux oldld, aout, or coff.
14760linux*oldld* | linux*aout* | linux*coff*)
14761 dynamic_linker=no
14762 ;;
14763
14764# This must be Linux ELF.
cristy232a9ab2010-06-26 01:02:54 +000014765linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000014766 version_type=linux
14767 need_lib_prefix=no
14768 need_version=no
14769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14770 soname_spec='${libname}${release}${shared_ext}$major'
14771 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14772 shlibpath_var=LD_LIBRARY_PATH
14773 shlibpath_overrides_runpath=no
cristy232a9ab2010-06-26 01:02:54 +000014774
cristy3ed852e2009-09-05 21:47:34 +000014775 # Some binutils ld are patched to set DT_RUNPATH
cristy232a9ab2010-06-26 01:02:54 +000014776 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14777 $as_echo_n "(cached) " >&6
14778else
14779 lt_cv_shlibpath_overrides_runpath=no
14780 save_LDFLAGS=$LDFLAGS
14781 save_libdir=$libdir
14782 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14783 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014785/* end confdefs.h. */
14786
14787int
14788main ()
14789{
14790
14791 ;
14792 return 0;
14793}
14794_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014795if ac_fn_c_try_link "$LINENO"; then :
14796 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy232a9ab2010-06-26 01:02:54 +000014797 lt_cv_shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000014798fi
cristy3ed852e2009-09-05 21:47:34 +000014799fi
cristy8b350f62009-11-15 23:12:43 +000014800rm -f core conftest.err conftest.$ac_objext \
14801 conftest$ac_exeext conftest.$ac_ext
cristy232a9ab2010-06-26 01:02:54 +000014802 LDFLAGS=$save_LDFLAGS
14803 libdir=$save_libdir
14804
14805fi
14806
14807 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy3ed852e2009-09-05 21:47:34 +000014808
14809 # This implies no fast_install, which is unacceptable.
14810 # Some rework will be needed to allow for fast_install
14811 # before this can be enabled.
14812 hardcode_into_libs=yes
14813
cristy679ed8e2009-12-05 02:37:41 +000014814 # Add ABI-specific directories to the system library path.
14815 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14816
cristy3ed852e2009-09-05 21:47:34 +000014817 # Append ld.so.conf contents to the search path
14818 if test -f /etc/ld.so.conf; then
cristy232a9ab2010-06-26 01:02:54 +000014819 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 +000014820 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy232a9ab2010-06-26 01:02:54 +000014821
cristy3ed852e2009-09-05 21:47:34 +000014822 fi
14823
14824 # We used to test for /lib/ld.so.1 and disable shared libraries on
14825 # powerpc, because MkLinux only supported shared libraries with the
14826 # GNU dynamic linker. Since this was broken with cross compilers,
14827 # most powerpc-linux boxes support dynamic linking these days and
14828 # people can always --disable-shared, the test was removed, and we
14829 # assume the GNU/Linux dynamic linker is in use.
14830 dynamic_linker='GNU/Linux ld.so'
14831 ;;
14832
14833netbsd*)
14834 version_type=sunos
14835 need_lib_prefix=no
14836 need_version=no
14837 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14839 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14840 dynamic_linker='NetBSD (a.out) ld.so'
14841 else
14842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14843 soname_spec='${libname}${release}${shared_ext}$major'
14844 dynamic_linker='NetBSD ld.elf_so'
14845 fi
14846 shlibpath_var=LD_LIBRARY_PATH
14847 shlibpath_overrides_runpath=yes
14848 hardcode_into_libs=yes
14849 ;;
14850
14851newsos6)
14852 version_type=linux
14853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14854 shlibpath_var=LD_LIBRARY_PATH
14855 shlibpath_overrides_runpath=yes
14856 ;;
14857
14858*nto* | *qnx*)
14859 version_type=qnx
14860 need_lib_prefix=no
14861 need_version=no
14862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14863 soname_spec='${libname}${release}${shared_ext}$major'
14864 shlibpath_var=LD_LIBRARY_PATH
14865 shlibpath_overrides_runpath=no
14866 hardcode_into_libs=yes
14867 dynamic_linker='ldqnx.so'
14868 ;;
14869
14870openbsd*)
14871 version_type=sunos
14872 sys_lib_dlsearch_path_spec="/usr/lib"
14873 need_lib_prefix=no
14874 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14875 case $host_os in
14876 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14877 *) need_version=no ;;
14878 esac
14879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14881 shlibpath_var=LD_LIBRARY_PATH
14882 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14883 case $host_os in
14884 openbsd2.[89] | openbsd2.[89].*)
14885 shlibpath_overrides_runpath=no
14886 ;;
14887 *)
14888 shlibpath_overrides_runpath=yes
14889 ;;
14890 esac
14891 else
14892 shlibpath_overrides_runpath=yes
14893 fi
14894 ;;
14895
14896os2*)
14897 libname_spec='$name'
14898 shrext_cmds=".dll"
14899 need_lib_prefix=no
14900 library_names_spec='$libname${shared_ext} $libname.a'
14901 dynamic_linker='OS/2 ld.exe'
14902 shlibpath_var=LIBPATH
14903 ;;
14904
14905osf3* | osf4* | osf5*)
14906 version_type=osf
14907 need_lib_prefix=no
14908 need_version=no
14909 soname_spec='${libname}${release}${shared_ext}$major'
14910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14911 shlibpath_var=LD_LIBRARY_PATH
14912 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14913 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14914 ;;
14915
14916rdos*)
14917 dynamic_linker=no
14918 ;;
14919
14920solaris*)
14921 version_type=linux
14922 need_lib_prefix=no
14923 need_version=no
14924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14925 soname_spec='${libname}${release}${shared_ext}$major'
14926 shlibpath_var=LD_LIBRARY_PATH
14927 shlibpath_overrides_runpath=yes
14928 hardcode_into_libs=yes
14929 # ldd complains unless libraries are executable
14930 postinstall_cmds='chmod +x $lib'
14931 ;;
14932
14933sunos4*)
14934 version_type=sunos
14935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14936 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14937 shlibpath_var=LD_LIBRARY_PATH
14938 shlibpath_overrides_runpath=yes
14939 if test "$with_gnu_ld" = yes; then
14940 need_lib_prefix=no
14941 fi
14942 need_version=yes
14943 ;;
14944
14945sysv4 | sysv4.3*)
14946 version_type=linux
14947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14948 soname_spec='${libname}${release}${shared_ext}$major'
14949 shlibpath_var=LD_LIBRARY_PATH
14950 case $host_vendor in
14951 sni)
14952 shlibpath_overrides_runpath=no
14953 need_lib_prefix=no
14954 runpath_var=LD_RUN_PATH
14955 ;;
14956 siemens)
14957 need_lib_prefix=no
14958 ;;
14959 motorola)
14960 need_lib_prefix=no
14961 need_version=no
14962 shlibpath_overrides_runpath=no
14963 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14964 ;;
14965 esac
14966 ;;
14967
14968sysv4*MP*)
14969 if test -d /usr/nec ;then
14970 version_type=linux
14971 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14972 soname_spec='$libname${shared_ext}.$major'
14973 shlibpath_var=LD_LIBRARY_PATH
14974 fi
14975 ;;
14976
14977sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14978 version_type=freebsd-elf
14979 need_lib_prefix=no
14980 need_version=no
14981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14982 soname_spec='${libname}${release}${shared_ext}$major'
14983 shlibpath_var=LD_LIBRARY_PATH
14984 shlibpath_overrides_runpath=yes
14985 hardcode_into_libs=yes
14986 if test "$with_gnu_ld" = yes; then
14987 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14988 else
14989 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14990 case $host_os in
14991 sco3.2v5*)
14992 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14993 ;;
14994 esac
14995 fi
14996 sys_lib_dlsearch_path_spec='/usr/lib'
14997 ;;
14998
14999tpf*)
15000 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15001 version_type=linux
15002 need_lib_prefix=no
15003 need_version=no
15004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15005 shlibpath_var=LD_LIBRARY_PATH
15006 shlibpath_overrides_runpath=no
15007 hardcode_into_libs=yes
15008 ;;
15009
15010uts4*)
15011 version_type=linux
15012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15013 soname_spec='${libname}${release}${shared_ext}$major'
15014 shlibpath_var=LD_LIBRARY_PATH
15015 ;;
15016
15017*)
15018 dynamic_linker=no
15019 ;;
15020esac
cristy8b350f62009-11-15 23:12:43 +000015021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000015022$as_echo "$dynamic_linker" >&6; }
15023test "$dynamic_linker" = no && can_build_shared=no
15024
15025variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15026if test "$GCC" = yes; then
15027 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15028fi
15029
15030if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15031 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15032fi
15033if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15034 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15035fi
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
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
cristy232a9ab2010-06-26 01:02:54 +000015123
15124
15125
15126
15127
cristy8b350f62009-11-15 23:12:43 +000015128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000015129$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15130hardcode_action=
15131if test -n "$hardcode_libdir_flag_spec" ||
15132 test -n "$runpath_var" ||
15133 test "X$hardcode_automatic" = "Xyes" ; then
15134
15135 # We can hardcode non-existent directories.
15136 if test "$hardcode_direct" != no &&
15137 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15138 # have to relink, otherwise we might link with an installed library
15139 # when we should be linking with a yet-to-be-installed one
15140 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15141 test "$hardcode_minus_L" != no; then
15142 # Linking always hardcodes the temporary library directory.
15143 hardcode_action=relink
15144 else
15145 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15146 hardcode_action=immediate
15147 fi
15148else
15149 # We cannot hardcode anything, or else we can only hardcode existing
15150 # directories.
15151 hardcode_action=unsupported
15152fi
cristy8b350f62009-11-15 23:12:43 +000015153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000015154$as_echo "$hardcode_action" >&6; }
15155
15156if test "$hardcode_action" = relink ||
15157 test "$inherit_rpath" = yes; then
15158 # Fast installation is not supported
15159 enable_fast_install=no
15160elif test "$shlibpath_overrides_runpath" = yes ||
15161 test "$enable_shared" = no; then
15162 # Fast installation is not necessary
15163 enable_fast_install=needless
15164fi
15165
15166
15167
15168
15169
15170
15171 if test "x$enable_dlopen" != xyes; then
15172 enable_dlopen=unknown
15173 enable_dlopen_self=unknown
15174 enable_dlopen_self_static=unknown
15175else
15176 lt_cv_dlopen=no
15177 lt_cv_dlopen_libs=
15178
15179 case $host_os in
15180 beos*)
15181 lt_cv_dlopen="load_add_on"
15182 lt_cv_dlopen_libs=
15183 lt_cv_dlopen_self=yes
15184 ;;
15185
15186 mingw* | pw32* | cegcc*)
15187 lt_cv_dlopen="LoadLibrary"
15188 lt_cv_dlopen_libs=
15189 ;;
15190
15191 cygwin*)
15192 lt_cv_dlopen="dlopen"
15193 lt_cv_dlopen_libs=
15194 ;;
15195
15196 darwin*)
15197 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000015198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015199$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015200if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015201 $as_echo_n "(cached) " >&6
15202else
15203 ac_check_lib_save_LIBS=$LIBS
15204LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015206/* end confdefs.h. */
15207
15208/* Override any GCC internal prototype to avoid an error.
15209 Use char because int might match the return type of a GCC
15210 builtin and then its argument prototype would still apply. */
15211#ifdef __cplusplus
15212extern "C"
15213#endif
15214char dlopen ();
15215int
15216main ()
15217{
15218return dlopen ();
15219 ;
15220 return 0;
15221}
15222_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015223if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015224 ac_cv_lib_dl_dlopen=yes
15225else
cristy8b350f62009-11-15 23:12:43 +000015226 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015227fi
cristy8b350f62009-11-15 23:12:43 +000015228rm -f core conftest.err conftest.$ac_objext \
15229 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015230LIBS=$ac_check_lib_save_LIBS
15231fi
cristy8b350f62009-11-15 23:12:43 +000015232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015233$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015234if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015235 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15236else
15237
15238 lt_cv_dlopen="dyld"
15239 lt_cv_dlopen_libs=
15240 lt_cv_dlopen_self=yes
15241
15242fi
15243
15244 ;;
15245
15246 *)
cristy8b350f62009-11-15 23:12:43 +000015247 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15248if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015249 lt_cv_dlopen="shl_load"
15250else
cristy8b350f62009-11-15 23:12:43 +000015251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015252$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015253if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015254 $as_echo_n "(cached) " >&6
15255else
15256 ac_check_lib_save_LIBS=$LIBS
15257LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015259/* end confdefs.h. */
15260
15261/* Override any GCC internal prototype to avoid an error.
15262 Use char because int might match the return type of a GCC
15263 builtin and then its argument prototype would still apply. */
15264#ifdef __cplusplus
15265extern "C"
15266#endif
15267char shl_load ();
15268int
15269main ()
15270{
15271return shl_load ();
15272 ;
15273 return 0;
15274}
15275_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015276if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015277 ac_cv_lib_dld_shl_load=yes
15278else
cristy8b350f62009-11-15 23:12:43 +000015279 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000015280fi
cristy8b350f62009-11-15 23:12:43 +000015281rm -f core conftest.err conftest.$ac_objext \
15282 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015283LIBS=$ac_check_lib_save_LIBS
15284fi
cristy8b350f62009-11-15 23:12:43 +000015285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000015286$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015287if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015288 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15289else
cristy8b350f62009-11-15 23:12:43 +000015290 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15291if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015292 lt_cv_dlopen="dlopen"
15293else
cristy8b350f62009-11-15 23:12:43 +000015294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015295$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015296if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015297 $as_echo_n "(cached) " >&6
15298else
15299 ac_check_lib_save_LIBS=$LIBS
15300LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015302/* end confdefs.h. */
15303
15304/* Override any GCC internal prototype to avoid an error.
15305 Use char because int might match the return type of a GCC
15306 builtin and then its argument prototype would still apply. */
15307#ifdef __cplusplus
15308extern "C"
15309#endif
15310char dlopen ();
15311int
15312main ()
15313{
15314return dlopen ();
15315 ;
15316 return 0;
15317}
15318_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015319if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015320 ac_cv_lib_dl_dlopen=yes
15321else
cristy8b350f62009-11-15 23:12:43 +000015322 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015323fi
cristy8b350f62009-11-15 23:12:43 +000015324rm -f core conftest.err conftest.$ac_objext \
15325 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015326LIBS=$ac_check_lib_save_LIBS
15327fi
cristy8b350f62009-11-15 23:12:43 +000015328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015329$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015330if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015331 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15332else
cristy8b350f62009-11-15 23:12:43 +000015333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015334$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015335if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015336 $as_echo_n "(cached) " >&6
15337else
15338 ac_check_lib_save_LIBS=$LIBS
15339LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015341/* end confdefs.h. */
15342
15343/* Override any GCC internal prototype to avoid an error.
15344 Use char because int might match the return type of a GCC
15345 builtin and then its argument prototype would still apply. */
15346#ifdef __cplusplus
15347extern "C"
15348#endif
15349char dlopen ();
15350int
15351main ()
15352{
15353return dlopen ();
15354 ;
15355 return 0;
15356}
15357_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015358if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015359 ac_cv_lib_svld_dlopen=yes
15360else
cristy8b350f62009-11-15 23:12:43 +000015361 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015362fi
cristy8b350f62009-11-15 23:12:43 +000015363rm -f core conftest.err conftest.$ac_objext \
15364 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015365LIBS=$ac_check_lib_save_LIBS
15366fi
cristy8b350f62009-11-15 23:12:43 +000015367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015368$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015369if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015370 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15371else
cristy8b350f62009-11-15 23:12:43 +000015372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015373$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015374if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015375 $as_echo_n "(cached) " >&6
15376else
15377 ac_check_lib_save_LIBS=$LIBS
15378LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015380/* end confdefs.h. */
15381
15382/* Override any GCC internal prototype to avoid an error.
15383 Use char because int might match the return type of a GCC
15384 builtin and then its argument prototype would still apply. */
15385#ifdef __cplusplus
15386extern "C"
15387#endif
15388char dld_link ();
15389int
15390main ()
15391{
15392return dld_link ();
15393 ;
15394 return 0;
15395}
15396_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015397if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015398 ac_cv_lib_dld_dld_link=yes
15399else
cristy8b350f62009-11-15 23:12:43 +000015400 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000015401fi
cristy8b350f62009-11-15 23:12:43 +000015402rm -f core conftest.err conftest.$ac_objext \
15403 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015404LIBS=$ac_check_lib_save_LIBS
15405fi
cristy8b350f62009-11-15 23:12:43 +000015406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000015407$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015408if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015409 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15410fi
15411
15412
15413fi
15414
15415
15416fi
15417
15418
15419fi
15420
15421
15422fi
15423
15424
15425fi
15426
15427 ;;
15428 esac
15429
15430 if test "x$lt_cv_dlopen" != xno; then
15431 enable_dlopen=yes
15432 else
15433 enable_dlopen=no
15434 fi
15435
15436 case $lt_cv_dlopen in
15437 dlopen)
15438 save_CPPFLAGS="$CPPFLAGS"
15439 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15440
15441 save_LDFLAGS="$LDFLAGS"
15442 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15443
15444 save_LIBS="$LIBS"
15445 LIBS="$lt_cv_dlopen_libs $LIBS"
15446
cristy8b350f62009-11-15 23:12:43 +000015447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015448$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015449if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015450 $as_echo_n "(cached) " >&6
15451else
15452 if test "$cross_compiling" = yes; then :
15453 lt_cv_dlopen_self=cross
15454else
15455 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15456 lt_status=$lt_dlunknown
15457 cat > conftest.$ac_ext <<_LT_EOF
cristy232a9ab2010-06-26 01:02:54 +000015458#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000015459#include "confdefs.h"
15460
15461#if HAVE_DLFCN_H
15462#include <dlfcn.h>
15463#endif
15464
15465#include <stdio.h>
15466
15467#ifdef RTLD_GLOBAL
15468# define LT_DLGLOBAL RTLD_GLOBAL
15469#else
15470# ifdef DL_GLOBAL
15471# define LT_DLGLOBAL DL_GLOBAL
15472# else
15473# define LT_DLGLOBAL 0
15474# endif
15475#endif
15476
15477/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15478 find out it does not work in some platform. */
15479#ifndef LT_DLLAZY_OR_NOW
15480# ifdef RTLD_LAZY
15481# define LT_DLLAZY_OR_NOW RTLD_LAZY
15482# else
15483# ifdef DL_LAZY
15484# define LT_DLLAZY_OR_NOW DL_LAZY
15485# else
15486# ifdef RTLD_NOW
15487# define LT_DLLAZY_OR_NOW RTLD_NOW
15488# else
15489# ifdef DL_NOW
15490# define LT_DLLAZY_OR_NOW DL_NOW
15491# else
15492# define LT_DLLAZY_OR_NOW 0
15493# endif
15494# endif
15495# endif
15496# endif
15497#endif
15498
cristy232a9ab2010-06-26 01:02:54 +000015499/* When -fvisbility=hidden is used, assume the code has been annotated
15500 correspondingly for the symbols needed. */
15501#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15502void fnord () __attribute__((visibility("default")));
15503#endif
15504
15505void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000015506int main ()
15507{
15508 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15509 int status = $lt_dlunknown;
15510
15511 if (self)
15512 {
15513 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy232a9ab2010-06-26 01:02:54 +000015514 else
15515 {
15516 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15517 else puts (dlerror ());
15518 }
cristy3ed852e2009-09-05 21:47:34 +000015519 /* dlclose (self); */
15520 }
15521 else
15522 puts (dlerror ());
15523
15524 return status;
15525}
15526_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015528 (eval $ac_link) 2>&5
15529 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15531 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015532 (./conftest; exit; ) >&5 2>/dev/null
15533 lt_status=$?
15534 case x$lt_status in
15535 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15536 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15537 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15538 esac
15539 else :
15540 # compilation failed
15541 lt_cv_dlopen_self=no
15542 fi
15543fi
15544rm -fr conftest*
15545
15546
15547fi
cristy8b350f62009-11-15 23:12:43 +000015548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000015549$as_echo "$lt_cv_dlopen_self" >&6; }
15550
15551 if test "x$lt_cv_dlopen_self" = xyes; then
15552 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000015553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015554$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015555if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015556 $as_echo_n "(cached) " >&6
15557else
15558 if test "$cross_compiling" = yes; then :
15559 lt_cv_dlopen_self_static=cross
15560else
15561 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15562 lt_status=$lt_dlunknown
15563 cat > conftest.$ac_ext <<_LT_EOF
cristy232a9ab2010-06-26 01:02:54 +000015564#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000015565#include "confdefs.h"
15566
15567#if HAVE_DLFCN_H
15568#include <dlfcn.h>
15569#endif
15570
15571#include <stdio.h>
15572
15573#ifdef RTLD_GLOBAL
15574# define LT_DLGLOBAL RTLD_GLOBAL
15575#else
15576# ifdef DL_GLOBAL
15577# define LT_DLGLOBAL DL_GLOBAL
15578# else
15579# define LT_DLGLOBAL 0
15580# endif
15581#endif
15582
15583/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15584 find out it does not work in some platform. */
15585#ifndef LT_DLLAZY_OR_NOW
15586# ifdef RTLD_LAZY
15587# define LT_DLLAZY_OR_NOW RTLD_LAZY
15588# else
15589# ifdef DL_LAZY
15590# define LT_DLLAZY_OR_NOW DL_LAZY
15591# else
15592# ifdef RTLD_NOW
15593# define LT_DLLAZY_OR_NOW RTLD_NOW
15594# else
15595# ifdef DL_NOW
15596# define LT_DLLAZY_OR_NOW DL_NOW
15597# else
15598# define LT_DLLAZY_OR_NOW 0
15599# endif
15600# endif
15601# endif
15602# endif
15603#endif
15604
cristy232a9ab2010-06-26 01:02:54 +000015605/* When -fvisbility=hidden is used, assume the code has been annotated
15606 correspondingly for the symbols needed. */
15607#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15608void fnord () __attribute__((visibility("default")));
15609#endif
15610
15611void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000015612int main ()
15613{
15614 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15615 int status = $lt_dlunknown;
15616
15617 if (self)
15618 {
15619 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy232a9ab2010-06-26 01:02:54 +000015620 else
15621 {
15622 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15623 else puts (dlerror ());
15624 }
cristy3ed852e2009-09-05 21:47:34 +000015625 /* dlclose (self); */
15626 }
15627 else
15628 puts (dlerror ());
15629
15630 return status;
15631}
15632_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015634 (eval $ac_link) 2>&5
15635 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15637 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015638 (./conftest; exit; ) >&5 2>/dev/null
15639 lt_status=$?
15640 case x$lt_status in
15641 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15642 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15643 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15644 esac
15645 else :
15646 # compilation failed
15647 lt_cv_dlopen_self_static=no
15648 fi
15649fi
15650rm -fr conftest*
15651
15652
15653fi
cristy8b350f62009-11-15 23:12:43 +000015654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015655$as_echo "$lt_cv_dlopen_self_static" >&6; }
15656 fi
15657
15658 CPPFLAGS="$save_CPPFLAGS"
15659 LDFLAGS="$save_LDFLAGS"
15660 LIBS="$save_LIBS"
15661 ;;
15662 esac
15663
15664 case $lt_cv_dlopen_self in
15665 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15666 *) enable_dlopen_self=unknown ;;
15667 esac
15668
15669 case $lt_cv_dlopen_self_static in
15670 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15671 *) enable_dlopen_self_static=unknown ;;
15672 esac
15673fi
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691striplib=
15692old_striplib=
cristy8b350f62009-11-15 23:12:43 +000015693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000015694$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15695if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15696 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15697 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000015698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015699$as_echo "yes" >&6; }
15700else
15701# FIXME - insert some real tests, host_os isn't really good enough
15702 case $host_os in
15703 darwin*)
15704 if test -n "$STRIP" ; then
15705 striplib="$STRIP -x"
15706 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000015707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015708$as_echo "yes" >&6; }
15709 else
cristy8b350f62009-11-15 23:12:43 +000015710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015711$as_echo "no" >&6; }
15712 fi
15713 ;;
15714 *)
cristy8b350f62009-11-15 23:12:43 +000015715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015716$as_echo "no" >&6; }
15717 ;;
15718 esac
15719fi
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000015733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015734$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015736$as_echo "$can_build_shared" >&6; }
15737
cristy8b350f62009-11-15 23:12:43 +000015738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015739$as_echo_n "checking whether to build shared libraries... " >&6; }
15740 test "$can_build_shared" = "no" && enable_shared=no
15741
15742 # On AIX, shared libraries and static libraries use the same namespace, and
15743 # are all built from PIC.
15744 case $host_os in
15745 aix3*)
15746 test "$enable_shared" = yes && enable_static=no
15747 if test -n "$RANLIB"; then
15748 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15749 postinstall_cmds='$RANLIB $lib'
15750 fi
15751 ;;
15752
15753 aix[4-9]*)
15754 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15755 test "$enable_shared" = yes && enable_static=no
15756 fi
15757 ;;
15758 esac
cristy8b350f62009-11-15 23:12:43 +000015759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015760$as_echo "$enable_shared" >&6; }
15761
cristy8b350f62009-11-15 23:12:43 +000015762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015763$as_echo_n "checking whether to build static libraries... " >&6; }
15764 # Make sure either enable_shared or enable_static is yes.
15765 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000015766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015767$as_echo "$enable_static" >&6; }
15768
15769
15770
15771
15772fi
15773ac_ext=c
15774ac_cpp='$CPP $CPPFLAGS'
15775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15777ac_compiler_gnu=$ac_cv_c_compiler_gnu
15778
15779CC="$lt_save_CC"
15780
cristy232a9ab2010-06-26 01:02:54 +000015781 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15782 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15783 (test "X$CXX" != "Xg++"))) ; then
15784 ac_ext=cpp
15785ac_cpp='$CXXCPP $CPPFLAGS'
15786ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15787ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15788ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15790$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15791if test -z "$CXXCPP"; then
15792 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
15793 $as_echo_n "(cached) " >&6
15794else
15795 # Double quotes because CXXCPP needs to be expanded
15796 for CXXCPP in "$CXX -E" "/lib/cpp"
15797 do
15798 ac_preproc_ok=false
15799for ac_cxx_preproc_warn_flag in '' yes
15800do
15801 # Use a header file that comes with gcc, so configuring glibc
15802 # with a fresh cross-compiler works.
15803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15804 # <limits.h> exists even on freestanding compilers.
15805 # On the NeXT, cc -E runs the code through the compiler's parser,
15806 # not just through cpp. "Syntax error" is here to catch this case.
15807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15808/* end confdefs.h. */
15809#ifdef __STDC__
15810# include <limits.h>
15811#else
15812# include <assert.h>
15813#endif
15814 Syntax error
15815_ACEOF
15816if ac_fn_cxx_try_cpp "$LINENO"; then :
15817
15818else
15819 # Broken: fails on valid input.
15820continue
15821fi
15822rm -f conftest.err conftest.$ac_ext
15823
15824 # OK, works on sane cases. Now check whether nonexistent headers
15825 # can be detected and how.
15826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15827/* end confdefs.h. */
15828#include <ac_nonexistent.h>
15829_ACEOF
15830if ac_fn_cxx_try_cpp "$LINENO"; then :
15831 # Broken: success on invalid input.
15832continue
15833else
15834 # Passes both tests.
15835ac_preproc_ok=:
15836break
15837fi
15838rm -f conftest.err conftest.$ac_ext
15839
15840done
15841# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15842rm -f conftest.err conftest.$ac_ext
15843if $ac_preproc_ok; then :
15844 break
15845fi
15846
15847 done
15848 ac_cv_prog_CXXCPP=$CXXCPP
15849
15850fi
15851 CXXCPP=$ac_cv_prog_CXXCPP
15852else
15853 ac_cv_prog_CXXCPP=$CXXCPP
15854fi
15855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15856$as_echo "$CXXCPP" >&6; }
15857ac_preproc_ok=false
15858for ac_cxx_preproc_warn_flag in '' yes
15859do
15860 # Use a header file that comes with gcc, so configuring glibc
15861 # with a fresh cross-compiler works.
15862 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15863 # <limits.h> exists even on freestanding compilers.
15864 # On the NeXT, cc -E runs the code through the compiler's parser,
15865 # not just through cpp. "Syntax error" is here to catch this case.
15866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15867/* end confdefs.h. */
15868#ifdef __STDC__
15869# include <limits.h>
15870#else
15871# include <assert.h>
15872#endif
15873 Syntax error
15874_ACEOF
15875if ac_fn_cxx_try_cpp "$LINENO"; then :
15876
15877else
15878 # Broken: fails on valid input.
15879continue
15880fi
15881rm -f conftest.err conftest.$ac_ext
15882
15883 # OK, works on sane cases. Now check whether nonexistent headers
15884 # can be detected and how.
15885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15886/* end confdefs.h. */
15887#include <ac_nonexistent.h>
15888_ACEOF
15889if ac_fn_cxx_try_cpp "$LINENO"; then :
15890 # Broken: success on invalid input.
15891continue
15892else
15893 # Passes both tests.
15894ac_preproc_ok=:
15895break
15896fi
15897rm -f conftest.err conftest.$ac_ext
15898
15899done
15900# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15901rm -f conftest.err conftest.$ac_ext
15902if $ac_preproc_ok; then :
15903
15904else
15905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15906$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +000015907as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15908See \`config.log' for more details" "$LINENO" 5; }
cristy232a9ab2010-06-26 01:02:54 +000015909fi
15910
15911ac_ext=c
15912ac_cpp='$CPP $CPPFLAGS'
15913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15915ac_compiler_gnu=$ac_cv_c_compiler_gnu
15916
15917else
15918 _lt_caught_CXX_error=yes
15919fi
cristy3ed852e2009-09-05 21:47:34 +000015920
15921ac_ext=cpp
15922ac_cpp='$CXXCPP $CPPFLAGS'
15923ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15924ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15925ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15926
15927archive_cmds_need_lc_CXX=no
15928allow_undefined_flag_CXX=
15929always_export_symbols_CXX=no
15930archive_expsym_cmds_CXX=
15931compiler_needs_object_CXX=no
15932export_dynamic_flag_spec_CXX=
15933hardcode_direct_CXX=no
15934hardcode_direct_absolute_CXX=no
15935hardcode_libdir_flag_spec_CXX=
15936hardcode_libdir_flag_spec_ld_CXX=
15937hardcode_libdir_separator_CXX=
15938hardcode_minus_L_CXX=no
15939hardcode_shlibpath_var_CXX=unsupported
15940hardcode_automatic_CXX=no
15941inherit_rpath_CXX=no
15942module_cmds_CXX=
15943module_expsym_cmds_CXX=
15944link_all_deplibs_CXX=unknown
15945old_archive_cmds_CXX=$old_archive_cmds
cristy232a9ab2010-06-26 01:02:54 +000015946reload_flag_CXX=$reload_flag
15947reload_cmds_CXX=$reload_cmds
cristy3ed852e2009-09-05 21:47:34 +000015948no_undefined_flag_CXX=
15949whole_archive_flag_spec_CXX=
15950enable_shared_with_static_runtimes_CXX=no
15951
15952# Source file extension for C++ test sources.
15953ac_ext=cpp
15954
15955# Object file extension for compiled C++ test sources.
15956objext=o
15957objext_CXX=$objext
15958
15959# No sense in running all these tests if we already determined that
15960# the CXX compiler isn't working. Some variables (like enable_shared)
15961# are currently assumed to apply to all compilers on this platform,
15962# and will be corrupted by setting them based on a non-working compiler.
15963if test "$_lt_caught_CXX_error" != yes; then
15964 # Code to be used in simple compile tests
15965 lt_simple_compile_test_code="int some_variable = 0;"
15966
15967 # Code to be used in simple link tests
15968 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15969
15970 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15971
15972
15973
15974
15975
15976
15977# If no C compiler was specified, use CC.
15978LTCC=${LTCC-"$CC"}
15979
15980# If no C compiler flags were specified, use CFLAGS.
15981LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15982
15983# Allow CC to be a program name with arguments.
15984compiler=$CC
15985
15986
15987 # save warnings/boilerplate of simple test code
15988 ac_outfile=conftest.$ac_objext
15989echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15990eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15991_lt_compiler_boilerplate=`cat conftest.err`
15992$RM conftest*
15993
15994 ac_outfile=conftest.$ac_objext
15995echo "$lt_simple_link_test_code" >conftest.$ac_ext
15996eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15997_lt_linker_boilerplate=`cat conftest.err`
15998$RM -r conftest*
15999
16000
16001 # Allow CC to be a program name with arguments.
16002 lt_save_CC=$CC
16003 lt_save_LD=$LD
16004 lt_save_GCC=$GCC
16005 GCC=$GXX
16006 lt_save_with_gnu_ld=$with_gnu_ld
16007 lt_save_path_LD=$lt_cv_path_LD
16008 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16009 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16010 else
16011 $as_unset lt_cv_prog_gnu_ld
16012 fi
16013 if test -n "${lt_cv_path_LDCXX+set}"; then
16014 lt_cv_path_LD=$lt_cv_path_LDCXX
16015 else
16016 $as_unset lt_cv_path_LD
16017 fi
16018 test -z "${LDCXX+set}" || LD=$LDCXX
16019 CC=${CXX-"c++"}
16020 compiler=$CC
16021 compiler_CXX=$CC
16022 for cc_temp in $compiler""; do
16023 case $cc_temp in
16024 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16025 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16026 \-*) ;;
16027 *) break;;
16028 esac
16029done
cristy232a9ab2010-06-26 01:02:54 +000016030cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000016031
16032
16033 if test -n "$compiler"; then
16034 # We don't want -fno-exception when compiling C++ code, so set the
16035 # no_builtin_flag separately
16036 if test "$GXX" = yes; then
16037 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16038 else
16039 lt_prog_compiler_no_builtin_flag_CXX=
16040 fi
16041
16042 if test "$GXX" = yes; then
16043 # Set up default GNU C++ configuration
16044
16045
16046
16047# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000016048if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016049 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16050else
16051 with_gnu_ld=no
16052fi
16053
16054ac_prog=ld
16055if test "$GCC" = yes; then
16056 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000016057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000016058$as_echo_n "checking for ld used by $CC... " >&6; }
16059 case $host in
16060 *-*-mingw*)
16061 # gcc leaves a trailing carriage return which upsets mingw
16062 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16063 *)
16064 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16065 esac
16066 case $ac_prog in
16067 # Accept absolute paths.
16068 [\\/]* | ?:[\\/]*)
16069 re_direlt='/[^/][^/]*/\.\./'
16070 # Canonicalize the pathname of ld
16071 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16072 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16073 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16074 done
16075 test -z "$LD" && LD="$ac_prog"
16076 ;;
16077 "")
16078 # If it fails, then pretend we aren't using GCC.
16079 ac_prog=ld
16080 ;;
16081 *)
16082 # If it is relative, then search for the first ld in PATH.
16083 with_gnu_ld=unknown
16084 ;;
16085 esac
16086elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000016087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016088$as_echo_n "checking for GNU ld... " >&6; }
16089else
cristy8b350f62009-11-15 23:12:43 +000016090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016091$as_echo_n "checking for non-GNU ld... " >&6; }
16092fi
cristy8b350f62009-11-15 23:12:43 +000016093if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016094 $as_echo_n "(cached) " >&6
16095else
16096 if test -z "$LD"; then
16097 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16098 for ac_dir in $PATH; do
16099 IFS="$lt_save_ifs"
16100 test -z "$ac_dir" && ac_dir=.
16101 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16102 lt_cv_path_LD="$ac_dir/$ac_prog"
16103 # Check to see if the program is GNU ld. I'd rather use --version,
16104 # but apparently some variants of GNU ld only accept -v.
16105 # Break only if it was the GNU/non-GNU ld that we prefer.
16106 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16107 *GNU* | *'with BFD'*)
16108 test "$with_gnu_ld" != no && break
16109 ;;
16110 *)
16111 test "$with_gnu_ld" != yes && break
16112 ;;
16113 esac
16114 fi
16115 done
16116 IFS="$lt_save_ifs"
16117else
16118 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16119fi
16120fi
16121
16122LD="$lt_cv_path_LD"
16123if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000016124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000016125$as_echo "$LD" >&6; }
16126else
cristy8b350f62009-11-15 23:12:43 +000016127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016128$as_echo "no" >&6; }
16129fi
cristy0684af42010-07-09 00:00:05 +000016130test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy8b350f62009-11-15 23:12:43 +000016131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016132$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016133if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016134 $as_echo_n "(cached) " >&6
16135else
16136 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16137case `$LD -v 2>&1 </dev/null` in
16138*GNU* | *'with BFD'*)
16139 lt_cv_prog_gnu_ld=yes
16140 ;;
16141*)
16142 lt_cv_prog_gnu_ld=no
16143 ;;
16144esac
16145fi
cristy8b350f62009-11-15 23:12:43 +000016146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016147$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16148with_gnu_ld=$lt_cv_prog_gnu_ld
16149
16150
16151
16152
16153
16154
16155
16156 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16157 # archiving commands below assume that GNU ld is being used.
16158 if test "$with_gnu_ld" = yes; then
16159 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16160 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'
16161
16162 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16163 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16164
16165 # If archive_cmds runs LD, not CC, wlarc should be empty
16166 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16167 # investigate it a little bit more. (MM)
16168 wlarc='${wl}'
16169
16170 # ancient GNU ld didn't support --whole-archive et. al.
16171 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16172 $GREP 'no-whole-archive' > /dev/null; then
16173 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16174 else
16175 whole_archive_flag_spec_CXX=
16176 fi
16177 else
16178 with_gnu_ld=no
16179 wlarc=
16180
16181 # A generic and very simple default shared library creation
16182 # command for GNU C++ for the case where it uses the native
16183 # linker, instead of GNU ld. If possible, this setting should
16184 # overridden to take advantage of the native linker features on
16185 # the platform it is being used on.
16186 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16187 fi
16188
16189 # Commands to make compiler produce verbose output that lists
16190 # what "hidden" libraries, object files and flags are used when
16191 # linking a shared library.
cristy232a9ab2010-06-26 01:02:54 +000016192 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016193
16194 else
16195 GXX=no
16196 with_gnu_ld=no
16197 wlarc=
16198 fi
16199
16200 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000016201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016202$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16203 ld_shlibs_CXX=yes
16204 case $host_os in
16205 aix3*)
16206 # FIXME: insert proper C++ library support
16207 ld_shlibs_CXX=no
16208 ;;
16209 aix[4-9]*)
16210 if test "$host_cpu" = ia64; then
16211 # On IA64, the linker does run time linking by default, so we don't
16212 # have to do anything special.
16213 aix_use_runtimelinking=no
16214 exp_sym_flag='-Bexport'
16215 no_entry_flag=""
16216 else
16217 aix_use_runtimelinking=no
16218
16219 # Test if we are trying to use run time linking or normal
16220 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16221 # need to do runtime linking.
16222 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16223 for ld_flag in $LDFLAGS; do
16224 case $ld_flag in
16225 *-brtl*)
16226 aix_use_runtimelinking=yes
16227 break
16228 ;;
16229 esac
16230 done
16231 ;;
16232 esac
16233
16234 exp_sym_flag='-bexport'
16235 no_entry_flag='-bnoentry'
16236 fi
16237
16238 # When large executables or shared objects are built, AIX ld can
16239 # have problems creating the table of contents. If linking a library
16240 # or program results in "error TOC overflow" add -mminimal-toc to
16241 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16242 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16243
16244 archive_cmds_CXX=''
16245 hardcode_direct_CXX=yes
16246 hardcode_direct_absolute_CXX=yes
16247 hardcode_libdir_separator_CXX=':'
16248 link_all_deplibs_CXX=yes
16249 file_list_spec_CXX='${wl}-f,'
16250
16251 if test "$GXX" = yes; then
16252 case $host_os in aix4.[012]|aix4.[012].*)
16253 # We only want to do this on AIX 4.2 and lower, the check
16254 # below for broken collect2 doesn't work under 4.3+
16255 collect2name=`${CC} -print-prog-name=collect2`
16256 if test -f "$collect2name" &&
16257 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16258 then
16259 # We have reworked collect2
16260 :
16261 else
16262 # We have old collect2
16263 hardcode_direct_CXX=unsupported
16264 # It fails to find uninstalled libraries when the uninstalled
16265 # path is not listed in the libpath. Setting hardcode_minus_L
16266 # to unsupported forces relinking
16267 hardcode_minus_L_CXX=yes
16268 hardcode_libdir_flag_spec_CXX='-L$libdir'
16269 hardcode_libdir_separator_CXX=
16270 fi
16271 esac
16272 shared_flag='-shared'
16273 if test "$aix_use_runtimelinking" = yes; then
16274 shared_flag="$shared_flag "'${wl}-G'
16275 fi
16276 else
16277 # not using gcc
16278 if test "$host_cpu" = ia64; then
16279 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16280 # chokes on -Wl,-G. The following line is correct:
16281 shared_flag='-G'
16282 else
16283 if test "$aix_use_runtimelinking" = yes; then
16284 shared_flag='${wl}-G'
16285 else
16286 shared_flag='${wl}-bM:SRE'
16287 fi
16288 fi
16289 fi
16290
16291 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16292 # It seems that -bexpall does not export symbols beginning with
16293 # underscore (_), so it is better to generate a list of symbols to
16294 # export.
16295 always_export_symbols_CXX=yes
16296 if test "$aix_use_runtimelinking" = yes; then
16297 # Warning - without using the other runtime loading flags (-brtl),
16298 # -berok will link without error, but may produce a broken library.
16299 allow_undefined_flag_CXX='-berok'
16300 # Determine the default libpath from the value encoded in an empty
16301 # executable.
cristy8b350f62009-11-15 23:12:43 +000016302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016303/* end confdefs.h. */
16304
16305int
16306main ()
16307{
16308
16309 ;
16310 return 0;
16311}
16312_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016313if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016314
16315lt_aix_libpath_sed='
16316 /Import File Strings/,/^$/ {
16317 /^0/ {
16318 s/^0 *\(.*\)$/\1/
16319 p
16320 }
16321 }'
16322aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16323# Check for a 64-bit object if we didn't find anything.
16324if test -z "$aix_libpath"; then
16325 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16326fi
cristy3ed852e2009-09-05 21:47:34 +000016327fi
cristy8b350f62009-11-15 23:12:43 +000016328rm -f core conftest.err conftest.$ac_objext \
16329 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016330if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16331
16332 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16333
cristy232a9ab2010-06-26 01:02:54 +000016334 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 +000016335 else
16336 if test "$host_cpu" = ia64; then
16337 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16338 allow_undefined_flag_CXX="-z nodefs"
16339 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"
16340 else
16341 # Determine the default libpath from the value encoded in an
16342 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000016343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016344/* end confdefs.h. */
16345
16346int
16347main ()
16348{
16349
16350 ;
16351 return 0;
16352}
16353_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016354if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016355
16356lt_aix_libpath_sed='
16357 /Import File Strings/,/^$/ {
16358 /^0/ {
16359 s/^0 *\(.*\)$/\1/
16360 p
16361 }
16362 }'
16363aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16364# Check for a 64-bit object if we didn't find anything.
16365if test -z "$aix_libpath"; then
16366 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16367fi
cristy3ed852e2009-09-05 21:47:34 +000016368fi
cristy8b350f62009-11-15 23:12:43 +000016369rm -f core conftest.err conftest.$ac_objext \
16370 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016371if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16372
16373 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16374 # Warning - without using the other run time loading flags,
16375 # -berok will link without error, but may produce a broken library.
16376 no_undefined_flag_CXX=' ${wl}-bernotok'
16377 allow_undefined_flag_CXX=' ${wl}-berok'
cristy232a9ab2010-06-26 01:02:54 +000016378 if test "$with_gnu_ld" = yes; then
16379 # We only use this code for GNU lds that support --whole-archive.
16380 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16381 else
16382 # Exported symbols can be pulled into shared objects from archives
16383 whole_archive_flag_spec_CXX='$convenience'
16384 fi
cristy3ed852e2009-09-05 21:47:34 +000016385 archive_cmds_need_lc_CXX=yes
16386 # This is similar to how AIX traditionally builds its shared
16387 # libraries.
16388 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'
16389 fi
16390 fi
16391 ;;
16392
16393 beos*)
16394 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16395 allow_undefined_flag_CXX=unsupported
16396 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16397 # support --undefined. This deserves some investigation. FIXME
16398 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16399 else
16400 ld_shlibs_CXX=no
16401 fi
16402 ;;
16403
16404 chorus*)
16405 case $cc_basename in
16406 *)
16407 # FIXME: insert proper C++ library support
16408 ld_shlibs_CXX=no
16409 ;;
16410 esac
16411 ;;
16412
16413 cygwin* | mingw* | pw32* | cegcc*)
16414 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16415 # as there is no search path for DLLs.
16416 hardcode_libdir_flag_spec_CXX='-L$libdir'
cristy232a9ab2010-06-26 01:02:54 +000016417 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
cristy3ed852e2009-09-05 21:47:34 +000016418 allow_undefined_flag_CXX=unsupported
16419 always_export_symbols_CXX=no
16420 enable_shared_with_static_runtimes_CXX=yes
16421
16422 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16423 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'
16424 # If the export-symbols file already is a .def file (1st line
16425 # is EXPORTS), use it as is; otherwise, prepend...
16426 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16427 cp $export_symbols $output_objdir/$soname.def;
16428 else
16429 echo EXPORTS > $output_objdir/$soname.def;
16430 cat $export_symbols >> $output_objdir/$soname.def;
16431 fi~
16432 $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'
16433 else
16434 ld_shlibs_CXX=no
16435 fi
16436 ;;
16437 darwin* | rhapsody*)
16438
16439
16440 archive_cmds_need_lc_CXX=no
16441 hardcode_direct_CXX=no
16442 hardcode_automatic_CXX=yes
16443 hardcode_shlibpath_var_CXX=unsupported
cristy232a9ab2010-06-26 01:02:54 +000016444 if test "$lt_cv_ld_force_load" = "yes"; then
16445 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\"`'
16446 else
16447 whole_archive_flag_spec_CXX=''
16448 fi
cristy3ed852e2009-09-05 21:47:34 +000016449 link_all_deplibs_CXX=yes
16450 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16451 case $cc_basename in
16452 ifort*) _lt_dar_can_shared=yes ;;
16453 *) _lt_dar_can_shared=$GCC ;;
16454 esac
16455 if test "$_lt_dar_can_shared" = "yes"; then
cristy232a9ab2010-06-26 01:02:54 +000016456 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000016457 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}"
16458 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16459 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}"
16460 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}"
16461 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16462 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}"
16463 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}"
16464 fi
16465
16466 else
16467 ld_shlibs_CXX=no
16468 fi
16469
16470 ;;
16471
16472 dgux*)
16473 case $cc_basename in
16474 ec++*)
16475 # FIXME: insert proper C++ library support
16476 ld_shlibs_CXX=no
16477 ;;
16478 ghcx*)
16479 # Green Hills C++ Compiler
16480 # FIXME: insert proper C++ library support
16481 ld_shlibs_CXX=no
16482 ;;
16483 *)
16484 # FIXME: insert proper C++ library support
16485 ld_shlibs_CXX=no
16486 ;;
16487 esac
16488 ;;
16489
16490 freebsd[12]*)
16491 # C++ shared libraries reported to be fairly broken before
16492 # switch to ELF
16493 ld_shlibs_CXX=no
16494 ;;
16495
16496 freebsd-elf*)
16497 archive_cmds_need_lc_CXX=no
16498 ;;
16499
16500 freebsd* | dragonfly*)
16501 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16502 # conventions
16503 ld_shlibs_CXX=yes
16504 ;;
16505
16506 gnu*)
16507 ;;
16508
cristy232a9ab2010-06-26 01:02:54 +000016509 haiku*)
16510 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16511 link_all_deplibs_CXX=yes
16512 ;;
16513
cristy3ed852e2009-09-05 21:47:34 +000016514 hpux9*)
16515 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16516 hardcode_libdir_separator_CXX=:
16517 export_dynamic_flag_spec_CXX='${wl}-E'
16518 hardcode_direct_CXX=yes
16519 hardcode_minus_L_CXX=yes # Not in the search PATH,
16520 # but as the default
16521 # location of the library.
16522
16523 case $cc_basename in
16524 CC*)
16525 # FIXME: insert proper C++ library support
16526 ld_shlibs_CXX=no
16527 ;;
16528 aCC*)
16529 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'
16530 # Commands to make compiler produce verbose output that lists
16531 # what "hidden" libraries, object files and flags are used when
16532 # linking a shared library.
16533 #
16534 # There doesn't appear to be a way to prevent this compiler from
16535 # explicitly linking system object files so we need to strip them
16536 # from the output so that they don't get included in the library
16537 # dependencies.
cristy232a9ab2010-06-26 01:02:54 +000016538 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 +000016539 ;;
16540 *)
16541 if test "$GXX" = yes; then
16542 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'
16543 else
16544 # FIXME: insert proper C++ library support
16545 ld_shlibs_CXX=no
16546 fi
16547 ;;
16548 esac
16549 ;;
16550
16551 hpux10*|hpux11*)
16552 if test $with_gnu_ld = no; then
16553 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16554 hardcode_libdir_separator_CXX=:
16555
16556 case $host_cpu in
16557 hppa*64*|ia64*)
16558 ;;
16559 *)
16560 export_dynamic_flag_spec_CXX='${wl}-E'
16561 ;;
16562 esac
16563 fi
16564 case $host_cpu in
16565 hppa*64*|ia64*)
16566 hardcode_direct_CXX=no
16567 hardcode_shlibpath_var_CXX=no
16568 ;;
16569 *)
16570 hardcode_direct_CXX=yes
16571 hardcode_direct_absolute_CXX=yes
16572 hardcode_minus_L_CXX=yes # Not in the search PATH,
16573 # but as the default
16574 # location of the library.
16575 ;;
16576 esac
16577
16578 case $cc_basename in
16579 CC*)
16580 # FIXME: insert proper C++ library support
16581 ld_shlibs_CXX=no
16582 ;;
16583 aCC*)
16584 case $host_cpu in
16585 hppa*64*)
16586 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16587 ;;
16588 ia64*)
16589 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16590 ;;
16591 *)
16592 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16593 ;;
16594 esac
16595 # Commands to make compiler produce verbose output that lists
16596 # what "hidden" libraries, object files and flags are used when
16597 # linking a shared library.
16598 #
16599 # There doesn't appear to be a way to prevent this compiler from
16600 # explicitly linking system object files so we need to strip them
16601 # from the output so that they don't get included in the library
16602 # dependencies.
cristy232a9ab2010-06-26 01:02:54 +000016603 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 +000016604 ;;
16605 *)
16606 if test "$GXX" = yes; then
16607 if test $with_gnu_ld = no; then
16608 case $host_cpu in
16609 hppa*64*)
16610 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16611 ;;
16612 ia64*)
16613 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16614 ;;
16615 *)
16616 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'
16617 ;;
16618 esac
16619 fi
16620 else
16621 # FIXME: insert proper C++ library support
16622 ld_shlibs_CXX=no
16623 fi
16624 ;;
16625 esac
16626 ;;
16627
16628 interix[3-9]*)
16629 hardcode_direct_CXX=no
16630 hardcode_shlibpath_var_CXX=no
16631 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16632 export_dynamic_flag_spec_CXX='${wl}-E'
16633 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16634 # Instead, shared libraries are loaded at an image base (0x10000000 by
16635 # default) and relocated if they conflict, which is a slow very memory
16636 # consuming and fragmenting process. To avoid this, we pick a random,
16637 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16638 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16639 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'
16640 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'
16641 ;;
16642 irix5* | irix6*)
16643 case $cc_basename in
16644 CC*)
16645 # SGI C++
cristy232a9ab2010-06-26 01:02:54 +000016646 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 +000016647
16648 # Archives containing C++ object files must be created using
16649 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16650 # necessary to make sure instantiated templates are included
16651 # in the archive.
16652 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16653 ;;
16654 *)
16655 if test "$GXX" = yes; then
16656 if test "$with_gnu_ld" = no; then
cristy232a9ab2010-06-26 01:02:54 +000016657 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 +000016658 else
cristy232a9ab2010-06-26 01:02:54 +000016659 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 +000016660 fi
16661 fi
16662 link_all_deplibs_CXX=yes
16663 ;;
16664 esac
16665 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16666 hardcode_libdir_separator_CXX=:
16667 inherit_rpath_CXX=yes
16668 ;;
16669
cristy232a9ab2010-06-26 01:02:54 +000016670 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016671 case $cc_basename in
16672 KCC*)
16673 # Kuck and Associates, Inc. (KAI) C++ Compiler
16674
16675 # KCC will only create a shared library if the output file
16676 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16677 # to its proper name (with version) after linking.
16678 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'
16679 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'
16680 # Commands to make compiler produce verbose output that lists
16681 # what "hidden" libraries, object files and flags are used when
16682 # linking a shared library.
16683 #
16684 # There doesn't appear to be a way to prevent this compiler from
16685 # explicitly linking system object files so we need to strip them
16686 # from the output so that they don't get included in the library
16687 # dependencies.
cristy232a9ab2010-06-26 01:02:54 +000016688 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 +000016689
16690 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16691 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16692
16693 # Archives containing C++ object files must be created using
16694 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16695 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16696 ;;
16697 icpc* | ecpc* )
16698 # Intel C++
16699 with_gnu_ld=yes
16700 # version 8.0 and above of icpc choke on multiply defined symbols
16701 # if we add $predep_objects and $postdep_objects, however 7.1 and
16702 # earlier do not add the objects themselves.
16703 case `$CC -V 2>&1` in
16704 *"Version 7."*)
16705 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16706 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'
16707 ;;
16708 *) # Version 8.0 or newer
16709 tmp_idyn=
16710 case $host_cpu in
16711 ia64*) tmp_idyn=' -i_dynamic';;
16712 esac
16713 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16714 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'
16715 ;;
16716 esac
16717 archive_cmds_need_lc_CXX=no
16718 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16719 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16720 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16721 ;;
16722 pgCC* | pgcpp*)
16723 # Portland Group C++ compiler
16724 case `$CC -V` in
cristy232a9ab2010-06-26 01:02:54 +000016725 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy3ed852e2009-09-05 21:47:34 +000016726 prelink_cmds_CXX='tpldir=Template.dir~
16727 rm -rf $tpldir~
16728 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy232a9ab2010-06-26 01:02:54 +000016729 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy3ed852e2009-09-05 21:47:34 +000016730 old_archive_cmds_CXX='tpldir=Template.dir~
16731 rm -rf $tpldir~
16732 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy232a9ab2010-06-26 01:02:54 +000016733 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy3ed852e2009-09-05 21:47:34 +000016734 $RANLIB $oldlib'
16735 archive_cmds_CXX='tpldir=Template.dir~
16736 rm -rf $tpldir~
16737 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy232a9ab2010-06-26 01:02:54 +000016738 $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 +000016739 archive_expsym_cmds_CXX='tpldir=Template.dir~
16740 rm -rf $tpldir~
16741 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy232a9ab2010-06-26 01:02:54 +000016742 $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 +000016743 ;;
cristy232a9ab2010-06-26 01:02:54 +000016744 *) # Version 6 and above use weak symbols
cristy3ed852e2009-09-05 21:47:34 +000016745 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16746 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'
16747 ;;
16748 esac
16749
16750 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16751 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy232a9ab2010-06-26 01:02:54 +000016752 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 +000016753 ;;
16754 cxx*)
16755 # Compaq C++
16756 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16757 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'
16758
16759 runpath_var=LD_RUN_PATH
16760 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16761 hardcode_libdir_separator_CXX=:
16762
16763 # Commands to make compiler produce verbose output that lists
16764 # what "hidden" libraries, object files and flags are used when
16765 # linking a shared library.
16766 #
16767 # There doesn't appear to be a way to prevent this compiler from
16768 # explicitly linking system object files so we need to strip them
16769 # from the output so that they don't get included in the library
16770 # dependencies.
cristy232a9ab2010-06-26 01:02:54 +000016771 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 +000016772 ;;
cristy232a9ab2010-06-26 01:02:54 +000016773 xl* | mpixl* | bgxl*)
cristy3ed852e2009-09-05 21:47:34 +000016774 # IBM XL 8.0 on PPC, with GNU ld
16775 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16776 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16777 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16778 if test "x$supports_anon_versioning" = xyes; then
16779 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16780 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16781 echo "local: *; };" >> $output_objdir/$libname.ver~
16782 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16783 fi
16784 ;;
16785 *)
16786 case `$CC -V 2>&1 | sed 5q` in
16787 *Sun\ C*)
16788 # Sun C++ 5.9
16789 no_undefined_flag_CXX=' -zdefs'
16790 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16791 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'
16792 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy232a9ab2010-06-26 01:02:54 +000016793 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 +000016794 compiler_needs_object_CXX=yes
16795
16796 # Not sure whether something based on
16797 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16798 # would be better.
cristy232a9ab2010-06-26 01:02:54 +000016799 output_verbose_link_cmd='func_echo_all'
cristy3ed852e2009-09-05 21:47:34 +000016800
16801 # Archives containing C++ object files must be created using
16802 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16803 # necessary to make sure instantiated templates are included
16804 # in the archive.
16805 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16806 ;;
16807 esac
16808 ;;
16809 esac
16810 ;;
16811
16812 lynxos*)
16813 # FIXME: insert proper C++ library support
16814 ld_shlibs_CXX=no
16815 ;;
16816
16817 m88k*)
16818 # FIXME: insert proper C++ library support
16819 ld_shlibs_CXX=no
16820 ;;
16821
16822 mvs*)
16823 case $cc_basename in
16824 cxx*)
16825 # FIXME: insert proper C++ library support
16826 ld_shlibs_CXX=no
16827 ;;
16828 *)
16829 # FIXME: insert proper C++ library support
16830 ld_shlibs_CXX=no
16831 ;;
16832 esac
16833 ;;
16834
16835 netbsd*)
16836 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16837 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16838 wlarc=
16839 hardcode_libdir_flag_spec_CXX='-R$libdir'
16840 hardcode_direct_CXX=yes
16841 hardcode_shlibpath_var_CXX=no
16842 fi
16843 # Workaround some broken pre-1.5 toolchains
16844 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16845 ;;
16846
16847 *nto* | *qnx*)
16848 ld_shlibs_CXX=yes
16849 ;;
16850
16851 openbsd2*)
16852 # C++ shared libraries are fairly broken
16853 ld_shlibs_CXX=no
16854 ;;
16855
16856 openbsd*)
16857 if test -f /usr/libexec/ld.so; then
16858 hardcode_direct_CXX=yes
16859 hardcode_shlibpath_var_CXX=no
16860 hardcode_direct_absolute_CXX=yes
16861 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16862 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16863 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16864 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16865 export_dynamic_flag_spec_CXX='${wl}-E'
16866 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16867 fi
cristy232a9ab2010-06-26 01:02:54 +000016868 output_verbose_link_cmd=func_echo_all
cristy3ed852e2009-09-05 21:47:34 +000016869 else
16870 ld_shlibs_CXX=no
16871 fi
16872 ;;
16873
16874 osf3* | osf4* | osf5*)
16875 case $cc_basename in
16876 KCC*)
16877 # Kuck and Associates, Inc. (KAI) C++ Compiler
16878
16879 # KCC will only create a shared library if the output file
16880 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16881 # to its proper name (with version) after linking.
16882 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'
16883
16884 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16885 hardcode_libdir_separator_CXX=:
16886
16887 # Archives containing C++ object files must be created using
16888 # the KAI C++ compiler.
16889 case $host in
16890 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16891 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16892 esac
16893 ;;
16894 RCC*)
16895 # Rational C++ 2.4.1
16896 # FIXME: insert proper C++ library support
16897 ld_shlibs_CXX=no
16898 ;;
16899 cxx*)
16900 case $host in
16901 osf3*)
16902 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy232a9ab2010-06-26 01:02:54 +000016903 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 +000016904 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16905 ;;
16906 *)
16907 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy232a9ab2010-06-26 01:02:54 +000016908 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 +000016909 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16910 echo "-hidden">> $lib.exp~
cristy232a9ab2010-06-26 01:02:54 +000016911 $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 +000016912 $RM $lib.exp'
16913 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16914 ;;
16915 esac
16916
16917 hardcode_libdir_separator_CXX=:
16918
16919 # Commands to make compiler produce verbose output that lists
16920 # what "hidden" libraries, object files and flags are used when
16921 # linking a shared library.
16922 #
16923 # There doesn't appear to be a way to prevent this compiler from
16924 # explicitly linking system object files so we need to strip them
16925 # from the output so that they don't get included in the library
16926 # dependencies.
cristy232a9ab2010-06-26 01:02:54 +000016927 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 +000016928 ;;
16929 *)
16930 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16931 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16932 case $host in
16933 osf3*)
cristy232a9ab2010-06-26 01:02:54 +000016934 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 +000016935 ;;
16936 *)
cristy232a9ab2010-06-26 01:02:54 +000016937 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 +000016938 ;;
16939 esac
16940
16941 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16942 hardcode_libdir_separator_CXX=:
16943
16944 # Commands to make compiler produce verbose output that lists
16945 # what "hidden" libraries, object files and flags are used when
16946 # linking a shared library.
cristy232a9ab2010-06-26 01:02:54 +000016947 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016948
16949 else
16950 # FIXME: insert proper C++ library support
16951 ld_shlibs_CXX=no
16952 fi
16953 ;;
16954 esac
16955 ;;
16956
16957 psos*)
16958 # FIXME: insert proper C++ library support
16959 ld_shlibs_CXX=no
16960 ;;
16961
16962 sunos4*)
16963 case $cc_basename in
16964 CC*)
16965 # Sun C++ 4.x
16966 # FIXME: insert proper C++ library support
16967 ld_shlibs_CXX=no
16968 ;;
16969 lcc*)
16970 # Lucid
16971 # FIXME: insert proper C++ library support
16972 ld_shlibs_CXX=no
16973 ;;
16974 *)
16975 # FIXME: insert proper C++ library support
16976 ld_shlibs_CXX=no
16977 ;;
16978 esac
16979 ;;
16980
16981 solaris*)
16982 case $cc_basename in
cristy232a9ab2010-06-26 01:02:54 +000016983 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000016984 # Sun C++ 4.2, 5.x and Centerline C++
16985 archive_cmds_need_lc_CXX=yes
16986 no_undefined_flag_CXX=' -zdefs'
16987 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16988 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16989 $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'
16990
16991 hardcode_libdir_flag_spec_CXX='-R$libdir'
16992 hardcode_shlibpath_var_CXX=no
16993 case $host_os in
16994 solaris2.[0-5] | solaris2.[0-5].*) ;;
16995 *)
16996 # The compiler driver will combine and reorder linker options,
16997 # but understands `-z linker_flag'.
16998 # Supported since Solaris 2.6 (maybe 2.5.1?)
16999 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17000 ;;
17001 esac
17002 link_all_deplibs_CXX=yes
17003
cristy232a9ab2010-06-26 01:02:54 +000017004 output_verbose_link_cmd='func_echo_all'
cristy3ed852e2009-09-05 21:47:34 +000017005
17006 # Archives containing C++ object files must be created using
17007 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17008 # necessary to make sure instantiated templates are included
17009 # in the archive.
17010 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17011 ;;
17012 gcx*)
17013 # Green Hills C++ Compiler
17014 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17015
17016 # The C++ compiler must be used to create the archive.
17017 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17018 ;;
17019 *)
17020 # GNU C++ compiler with Solaris linker
17021 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17022 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17023 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17024 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17025 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17026 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17027
17028 # Commands to make compiler produce verbose output that lists
17029 # what "hidden" libraries, object files and flags are used when
17030 # linking a shared library.
cristy232a9ab2010-06-26 01:02:54 +000017031 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017032 else
17033 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17034 # platform.
17035 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17036 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17037 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17038
17039 # Commands to make compiler produce verbose output that lists
17040 # what "hidden" libraries, object files and flags are used when
17041 # linking a shared library.
cristy232a9ab2010-06-26 01:02:54 +000017042 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017043 fi
17044
17045 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17046 case $host_os in
17047 solaris2.[0-5] | solaris2.[0-5].*) ;;
17048 *)
17049 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17050 ;;
17051 esac
17052 fi
17053 ;;
17054 esac
17055 ;;
17056
17057 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17058 no_undefined_flag_CXX='${wl}-z,text'
17059 archive_cmds_need_lc_CXX=no
17060 hardcode_shlibpath_var_CXX=no
17061 runpath_var='LD_RUN_PATH'
17062
17063 case $cc_basename in
17064 CC*)
17065 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17066 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17067 ;;
17068 *)
17069 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17070 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17071 ;;
17072 esac
17073 ;;
17074
17075 sysv5* | sco3.2v5* | sco5v6*)
17076 # Note: We can NOT use -z defs as we might desire, because we do not
17077 # link with -lc, and that would cause any symbols used from libc to
17078 # always be unresolved, which means just about no library would
17079 # ever link correctly. If we're not using GNU ld we use -z text
17080 # though, which does catch some bad symbols but isn't as heavy-handed
17081 # as -z defs.
17082 no_undefined_flag_CXX='${wl}-z,text'
17083 allow_undefined_flag_CXX='${wl}-z,nodefs'
17084 archive_cmds_need_lc_CXX=no
17085 hardcode_shlibpath_var_CXX=no
17086 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17087 hardcode_libdir_separator_CXX=':'
17088 link_all_deplibs_CXX=yes
17089 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17090 runpath_var='LD_RUN_PATH'
17091
17092 case $cc_basename in
17093 CC*)
17094 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17095 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy232a9ab2010-06-26 01:02:54 +000017096 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17097 '"$old_archive_cmds_CXX"
17098 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17099 '"$reload_cmds_CXX"
cristy3ed852e2009-09-05 21:47:34 +000017100 ;;
17101 *)
17102 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17103 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17104 ;;
17105 esac
17106 ;;
17107
17108 tandem*)
17109 case $cc_basename in
17110 NCC*)
17111 # NonStop-UX NCC 3.20
17112 # FIXME: insert proper C++ library support
17113 ld_shlibs_CXX=no
17114 ;;
17115 *)
17116 # FIXME: insert proper C++ library support
17117 ld_shlibs_CXX=no
17118 ;;
17119 esac
17120 ;;
17121
17122 vxworks*)
17123 # FIXME: insert proper C++ library support
17124 ld_shlibs_CXX=no
17125 ;;
17126
17127 *)
17128 # FIXME: insert proper C++ library support
17129 ld_shlibs_CXX=no
17130 ;;
17131 esac
17132
cristy8b350f62009-11-15 23:12:43 +000017133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017134$as_echo "$ld_shlibs_CXX" >&6; }
17135 test "$ld_shlibs_CXX" = no && can_build_shared=no
17136
17137 GCC_CXX="$GXX"
17138 LD_CXX="$LD"
17139
17140 ## CAVEAT EMPTOR:
17141 ## There is no encapsulation within the following macros, do not change
17142 ## the running order or otherwise move them around unless you know exactly
17143 ## what you are doing...
17144 # Dependencies to place before and after the object being linked:
17145predep_objects_CXX=
17146postdep_objects_CXX=
17147predeps_CXX=
17148postdeps_CXX=
17149compiler_lib_search_path_CXX=
17150
17151cat > conftest.$ac_ext <<_LT_EOF
17152class Foo
17153{
17154public:
17155 Foo (void) { a = 0; }
17156private:
17157 int a;
17158};
17159_LT_EOF
17160
cristy8b350f62009-11-15 23:12:43 +000017161if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017162 (eval $ac_compile) 2>&5
17163 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17165 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000017166 # Parse the compiler output and extract the necessary
17167 # objects, libraries and library flags.
17168
17169 # Sentinel used to keep track of whether or not we are before
17170 # the conftest object file.
17171 pre_test_object_deps_done=no
17172
17173 for p in `eval "$output_verbose_link_cmd"`; do
17174 case $p in
17175
17176 -L* | -R* | -l*)
17177 # Some compilers place space between "-{L,R}" and the path.
17178 # Remove the space.
17179 if test $p = "-L" ||
17180 test $p = "-R"; then
17181 prev=$p
17182 continue
17183 else
17184 prev=
17185 fi
17186
17187 if test "$pre_test_object_deps_done" = no; then
17188 case $p in
17189 -L* | -R*)
17190 # Internal compiler library paths should come after those
17191 # provided the user. The postdeps already come after the
17192 # user supplied libs so there is no need to process them.
17193 if test -z "$compiler_lib_search_path_CXX"; then
17194 compiler_lib_search_path_CXX="${prev}${p}"
17195 else
17196 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17197 fi
17198 ;;
17199 # The "-l" case would never come before the object being
17200 # linked, so don't bother handling this case.
17201 esac
17202 else
17203 if test -z "$postdeps_CXX"; then
17204 postdeps_CXX="${prev}${p}"
17205 else
17206 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17207 fi
17208 fi
17209 ;;
17210
17211 *.$objext)
17212 # This assumes that the test object file only shows up
17213 # once in the compiler output.
17214 if test "$p" = "conftest.$objext"; then
17215 pre_test_object_deps_done=yes
17216 continue
17217 fi
17218
17219 if test "$pre_test_object_deps_done" = no; then
17220 if test -z "$predep_objects_CXX"; then
17221 predep_objects_CXX="$p"
17222 else
17223 predep_objects_CXX="$predep_objects_CXX $p"
17224 fi
17225 else
17226 if test -z "$postdep_objects_CXX"; then
17227 postdep_objects_CXX="$p"
17228 else
17229 postdep_objects_CXX="$postdep_objects_CXX $p"
17230 fi
17231 fi
17232 ;;
17233
17234 *) ;; # Ignore the rest.
17235
17236 esac
17237 done
17238
17239 # Clean up.
17240 rm -f a.out a.exe
17241else
17242 echo "libtool.m4: error: problem compiling CXX test program"
17243fi
17244
17245$RM -f confest.$objext
17246
17247# PORTME: override above test on systems where it is broken
17248case $host_os in
17249interix[3-9]*)
17250 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17251 # hack all around it, let's just trust "g++" to DTRT.
17252 predep_objects_CXX=
17253 postdep_objects_CXX=
17254 postdeps_CXX=
17255 ;;
17256
17257linux*)
17258 case `$CC -V 2>&1 | sed 5q` in
17259 *Sun\ C*)
17260 # Sun C++ 5.9
17261
17262 # The more standards-conforming stlport4 library is
17263 # incompatible with the Cstd library. Avoid specifying
17264 # it if it's in CXXFLAGS. Ignore libCrun as
17265 # -library=stlport4 depends on it.
17266 case " $CXX $CXXFLAGS " in
17267 *" -library=stlport4 "*)
17268 solaris_use_stlport4=yes
17269 ;;
17270 esac
17271
17272 if test "$solaris_use_stlport4" != yes; then
17273 postdeps_CXX='-library=Cstd -library=Crun'
17274 fi
17275 ;;
17276 esac
17277 ;;
17278
17279solaris*)
17280 case $cc_basename in
cristy232a9ab2010-06-26 01:02:54 +000017281 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000017282 # The more standards-conforming stlport4 library is
17283 # incompatible with the Cstd library. Avoid specifying
17284 # it if it's in CXXFLAGS. Ignore libCrun as
17285 # -library=stlport4 depends on it.
17286 case " $CXX $CXXFLAGS " in
17287 *" -library=stlport4 "*)
17288 solaris_use_stlport4=yes
17289 ;;
17290 esac
17291
17292 # Adding this requires a known-good setup of shared libraries for
17293 # Sun compiler versions before 5.6, else PIC objects from an old
17294 # archive will be linked into the output, leading to subtle bugs.
17295 if test "$solaris_use_stlport4" != yes; then
17296 postdeps_CXX='-library=Cstd -library=Crun'
17297 fi
17298 ;;
17299 esac
17300 ;;
17301esac
17302
17303
17304case " $postdeps_CXX " in
17305*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17306esac
17307 compiler_lib_search_dirs_CXX=
17308if test -n "${compiler_lib_search_path_CXX}"; then
17309 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17310fi
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342 lt_prog_compiler_wl_CXX=
17343lt_prog_compiler_pic_CXX=
17344lt_prog_compiler_static_CXX=
17345
cristy8b350f62009-11-15 23:12:43 +000017346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000017347$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17348
17349 # C++ specific cases for pic, static, wl, etc.
17350 if test "$GXX" = yes; then
17351 lt_prog_compiler_wl_CXX='-Wl,'
17352 lt_prog_compiler_static_CXX='-static'
17353
17354 case $host_os in
17355 aix*)
17356 # All AIX code is PIC.
17357 if test "$host_cpu" = ia64; then
17358 # AIX 5 now supports IA64 processor
17359 lt_prog_compiler_static_CXX='-Bstatic'
17360 fi
17361 ;;
17362
17363 amigaos*)
17364 case $host_cpu in
17365 powerpc)
17366 # see comment about AmigaOS4 .so support
17367 lt_prog_compiler_pic_CXX='-fPIC'
17368 ;;
17369 m68k)
17370 # FIXME: we need at least 68020 code to build shared libraries, but
17371 # adding the `-m68020' flag to GCC prevents building anything better,
17372 # like `-m68040'.
17373 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17374 ;;
17375 esac
17376 ;;
17377
17378 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17379 # PIC is the default for these OSes.
17380 ;;
17381 mingw* | cygwin* | os2* | pw32* | cegcc*)
17382 # This hack is so that the source file can tell whether it is being
17383 # built for inclusion in a dll (and should export symbols for example).
17384 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17385 # (--disable-auto-import) libraries
17386 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17387 ;;
17388 darwin* | rhapsody*)
17389 # PIC is the default on this platform
17390 # Common symbols not allowed in MH_DYLIB files
17391 lt_prog_compiler_pic_CXX='-fno-common'
17392 ;;
17393 *djgpp*)
17394 # DJGPP does not support shared libraries at all
17395 lt_prog_compiler_pic_CXX=
17396 ;;
cristy232a9ab2010-06-26 01:02:54 +000017397 haiku*)
17398 # PIC is the default for Haiku.
17399 # The "-static" flag exists, but is broken.
17400 lt_prog_compiler_static_CXX=
17401 ;;
cristy3ed852e2009-09-05 21:47:34 +000017402 interix[3-9]*)
17403 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17404 # Instead, we relocate shared libraries at runtime.
17405 ;;
17406 sysv4*MP*)
17407 if test -d /usr/nec; then
17408 lt_prog_compiler_pic_CXX=-Kconform_pic
17409 fi
17410 ;;
17411 hpux*)
17412 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17413 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17414 # sets the default TLS model and affects inlining.
17415 case $host_cpu in
17416 hppa*64*)
17417 ;;
17418 *)
17419 lt_prog_compiler_pic_CXX='-fPIC'
17420 ;;
17421 esac
17422 ;;
17423 *qnx* | *nto*)
17424 # QNX uses GNU C++, but need to define -shared option too, otherwise
17425 # it will coredump.
17426 lt_prog_compiler_pic_CXX='-fPIC -shared'
17427 ;;
17428 *)
17429 lt_prog_compiler_pic_CXX='-fPIC'
17430 ;;
17431 esac
17432 else
17433 case $host_os in
17434 aix[4-9]*)
17435 # All AIX code is PIC.
17436 if test "$host_cpu" = ia64; then
17437 # AIX 5 now supports IA64 processor
17438 lt_prog_compiler_static_CXX='-Bstatic'
17439 else
17440 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17441 fi
17442 ;;
17443 chorus*)
17444 case $cc_basename in
17445 cxch68*)
17446 # Green Hills C++ Compiler
17447 # _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"
17448 ;;
17449 esac
17450 ;;
17451 dgux*)
17452 case $cc_basename in
17453 ec++*)
17454 lt_prog_compiler_pic_CXX='-KPIC'
17455 ;;
17456 ghcx*)
17457 # Green Hills C++ Compiler
17458 lt_prog_compiler_pic_CXX='-pic'
17459 ;;
17460 *)
17461 ;;
17462 esac
17463 ;;
17464 freebsd* | dragonfly*)
17465 # FreeBSD uses GNU C++
17466 ;;
17467 hpux9* | hpux10* | hpux11*)
17468 case $cc_basename in
17469 CC*)
17470 lt_prog_compiler_wl_CXX='-Wl,'
17471 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17472 if test "$host_cpu" != ia64; then
17473 lt_prog_compiler_pic_CXX='+Z'
17474 fi
17475 ;;
17476 aCC*)
17477 lt_prog_compiler_wl_CXX='-Wl,'
17478 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17479 case $host_cpu in
17480 hppa*64*|ia64*)
17481 # +Z the default
17482 ;;
17483 *)
17484 lt_prog_compiler_pic_CXX='+Z'
17485 ;;
17486 esac
17487 ;;
17488 *)
17489 ;;
17490 esac
17491 ;;
17492 interix*)
17493 # This is c89, which is MS Visual C++ (no shared libs)
17494 # Anyone wants to do a port?
17495 ;;
17496 irix5* | irix6* | nonstopux*)
17497 case $cc_basename in
17498 CC*)
17499 lt_prog_compiler_wl_CXX='-Wl,'
17500 lt_prog_compiler_static_CXX='-non_shared'
17501 # CC pic flag -KPIC is the default.
17502 ;;
17503 *)
17504 ;;
17505 esac
17506 ;;
cristy232a9ab2010-06-26 01:02:54 +000017507 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017508 case $cc_basename in
17509 KCC*)
17510 # KAI C++ Compiler
17511 lt_prog_compiler_wl_CXX='--backend -Wl,'
17512 lt_prog_compiler_pic_CXX='-fPIC'
17513 ;;
17514 ecpc* )
17515 # old Intel C++ for x86_64 which still supported -KPIC.
17516 lt_prog_compiler_wl_CXX='-Wl,'
17517 lt_prog_compiler_pic_CXX='-KPIC'
17518 lt_prog_compiler_static_CXX='-static'
17519 ;;
17520 icpc* )
17521 # Intel C++, used to be incompatible with GCC.
17522 # ICC 10 doesn't accept -KPIC any more.
17523 lt_prog_compiler_wl_CXX='-Wl,'
17524 lt_prog_compiler_pic_CXX='-fPIC'
17525 lt_prog_compiler_static_CXX='-static'
17526 ;;
17527 pgCC* | pgcpp*)
17528 # Portland Group C++ compiler
17529 lt_prog_compiler_wl_CXX='-Wl,'
17530 lt_prog_compiler_pic_CXX='-fpic'
17531 lt_prog_compiler_static_CXX='-Bstatic'
17532 ;;
17533 cxx*)
17534 # Compaq C++
17535 # Make sure the PIC flag is empty. It appears that all Alpha
17536 # Linux and Compaq Tru64 Unix objects are PIC.
17537 lt_prog_compiler_pic_CXX=
17538 lt_prog_compiler_static_CXX='-non_shared'
17539 ;;
cristy232a9ab2010-06-26 01:02:54 +000017540 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17541 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy3ed852e2009-09-05 21:47:34 +000017542 lt_prog_compiler_wl_CXX='-Wl,'
17543 lt_prog_compiler_pic_CXX='-qpic'
17544 lt_prog_compiler_static_CXX='-qstaticlink'
17545 ;;
17546 *)
17547 case `$CC -V 2>&1 | sed 5q` in
17548 *Sun\ C*)
17549 # Sun C++ 5.9
17550 lt_prog_compiler_pic_CXX='-KPIC'
17551 lt_prog_compiler_static_CXX='-Bstatic'
17552 lt_prog_compiler_wl_CXX='-Qoption ld '
17553 ;;
17554 esac
17555 ;;
17556 esac
17557 ;;
17558 lynxos*)
17559 ;;
17560 m88k*)
17561 ;;
17562 mvs*)
17563 case $cc_basename in
17564 cxx*)
17565 lt_prog_compiler_pic_CXX='-W c,exportall'
17566 ;;
17567 *)
17568 ;;
17569 esac
17570 ;;
17571 netbsd*)
17572 ;;
17573 *qnx* | *nto*)
17574 # QNX uses GNU C++, but need to define -shared option too, otherwise
17575 # it will coredump.
17576 lt_prog_compiler_pic_CXX='-fPIC -shared'
17577 ;;
17578 osf3* | osf4* | osf5*)
17579 case $cc_basename in
17580 KCC*)
17581 lt_prog_compiler_wl_CXX='--backend -Wl,'
17582 ;;
17583 RCC*)
17584 # Rational C++ 2.4.1
17585 lt_prog_compiler_pic_CXX='-pic'
17586 ;;
17587 cxx*)
17588 # Digital/Compaq C++
17589 lt_prog_compiler_wl_CXX='-Wl,'
17590 # Make sure the PIC flag is empty. It appears that all Alpha
17591 # Linux and Compaq Tru64 Unix objects are PIC.
17592 lt_prog_compiler_pic_CXX=
17593 lt_prog_compiler_static_CXX='-non_shared'
17594 ;;
17595 *)
17596 ;;
17597 esac
17598 ;;
17599 psos*)
17600 ;;
17601 solaris*)
17602 case $cc_basename in
cristy232a9ab2010-06-26 01:02:54 +000017603 CC* | sunCC*)
cristy3ed852e2009-09-05 21:47:34 +000017604 # Sun C++ 4.2, 5.x and Centerline C++
17605 lt_prog_compiler_pic_CXX='-KPIC'
17606 lt_prog_compiler_static_CXX='-Bstatic'
17607 lt_prog_compiler_wl_CXX='-Qoption ld '
17608 ;;
17609 gcx*)
17610 # Green Hills C++ Compiler
17611 lt_prog_compiler_pic_CXX='-PIC'
17612 ;;
17613 *)
17614 ;;
17615 esac
17616 ;;
17617 sunos4*)
17618 case $cc_basename in
17619 CC*)
17620 # Sun C++ 4.x
17621 lt_prog_compiler_pic_CXX='-pic'
17622 lt_prog_compiler_static_CXX='-Bstatic'
17623 ;;
17624 lcc*)
17625 # Lucid
17626 lt_prog_compiler_pic_CXX='-pic'
17627 ;;
17628 *)
17629 ;;
17630 esac
17631 ;;
17632 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17633 case $cc_basename in
17634 CC*)
17635 lt_prog_compiler_wl_CXX='-Wl,'
17636 lt_prog_compiler_pic_CXX='-KPIC'
17637 lt_prog_compiler_static_CXX='-Bstatic'
17638 ;;
17639 esac
17640 ;;
17641 tandem*)
17642 case $cc_basename in
17643 NCC*)
17644 # NonStop-UX NCC 3.20
17645 lt_prog_compiler_pic_CXX='-KPIC'
17646 ;;
17647 *)
17648 ;;
17649 esac
17650 ;;
17651 vxworks*)
17652 ;;
17653 *)
17654 lt_prog_compiler_can_build_shared_CXX=no
17655 ;;
17656 esac
17657 fi
17658
17659case $host_os in
17660 # For platforms which do not support PIC, -DPIC is meaningless:
17661 *djgpp*)
17662 lt_prog_compiler_pic_CXX=
17663 ;;
17664 *)
17665 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17666 ;;
17667esac
cristy8b350f62009-11-15 23:12:43 +000017668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017669$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17670
17671
17672
17673#
17674# Check to make sure the PIC flag actually works.
17675#
17676if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000017677 { $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 +000017678$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017679if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017680 $as_echo_n "(cached) " >&6
17681else
17682 lt_cv_prog_compiler_pic_works_CXX=no
17683 ac_outfile=conftest.$ac_objext
17684 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17685 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17686 # Insert the option either (1) after the last *FLAGS variable, or
17687 # (2) before a word containing "conftest.", or (3) at the end.
17688 # Note that $ac_compile itself does not contain backslashes and begins
17689 # with a dollar sign (not a hyphen), so the echo should work correctly.
17690 # The option is referenced via a variable to avoid confusing sed.
17691 lt_compile=`echo "$ac_compile" | $SED \
17692 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17693 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17694 -e 's:$: $lt_compiler_flag:'`
cristy232a9ab2010-06-26 01:02:54 +000017695 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017696 (eval "$lt_compile" 2>conftest.err)
17697 ac_status=$?
17698 cat conftest.err >&5
cristy232a9ab2010-06-26 01:02:54 +000017699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017700 if (exit $ac_status) && test -s "$ac_outfile"; then
17701 # The compiler can only warn and ignore the option if not recognized
17702 # So say no if there are warnings other than the usual output.
cristy232a9ab2010-06-26 01:02:54 +000017703 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17705 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17706 lt_cv_prog_compiler_pic_works_CXX=yes
17707 fi
17708 fi
17709 $RM conftest*
17710
17711fi
cristy8b350f62009-11-15 23:12:43 +000017712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017713$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17714
17715if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17716 case $lt_prog_compiler_pic_CXX in
17717 "" | " "*) ;;
17718 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17719 esac
17720else
17721 lt_prog_compiler_pic_CXX=
17722 lt_prog_compiler_can_build_shared_CXX=no
17723fi
17724
17725fi
17726
17727
17728
17729#
17730# Check to make sure the static flag actually works.
17731#
17732wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000017733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000017734$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017735if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017736 $as_echo_n "(cached) " >&6
17737else
17738 lt_cv_prog_compiler_static_works_CXX=no
17739 save_LDFLAGS="$LDFLAGS"
17740 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17741 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17742 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17743 # The linker can only warn and ignore the option if not recognized
17744 # So say no if there are warnings
17745 if test -s conftest.err; then
17746 # Append any errors to the config.log.
17747 cat conftest.err 1>&5
cristy232a9ab2010-06-26 01:02:54 +000017748 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017749 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17750 if diff conftest.exp conftest.er2 >/dev/null; then
17751 lt_cv_prog_compiler_static_works_CXX=yes
17752 fi
17753 else
17754 lt_cv_prog_compiler_static_works_CXX=yes
17755 fi
17756 fi
17757 $RM -r conftest*
17758 LDFLAGS="$save_LDFLAGS"
17759
17760fi
cristy8b350f62009-11-15 23:12:43 +000017761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017762$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17763
17764if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17765 :
17766else
17767 lt_prog_compiler_static_CXX=
17768fi
17769
17770
17771
17772
cristy8b350f62009-11-15 23:12:43 +000017773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017774$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017775if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017776 $as_echo_n "(cached) " >&6
17777else
17778 lt_cv_prog_compiler_c_o_CXX=no
17779 $RM -r conftest 2>/dev/null
17780 mkdir conftest
17781 cd conftest
17782 mkdir out
17783 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17784
17785 lt_compiler_flag="-o out/conftest2.$ac_objext"
17786 # Insert the option either (1) after the last *FLAGS variable, or
17787 # (2) before a word containing "conftest.", or (3) at the end.
17788 # Note that $ac_compile itself does not contain backslashes and begins
17789 # with a dollar sign (not a hyphen), so the echo should work correctly.
17790 lt_compile=`echo "$ac_compile" | $SED \
17791 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17792 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17793 -e 's:$: $lt_compiler_flag:'`
cristy232a9ab2010-06-26 01:02:54 +000017794 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017795 (eval "$lt_compile" 2>out/conftest.err)
17796 ac_status=$?
17797 cat out/conftest.err >&5
cristy232a9ab2010-06-26 01:02:54 +000017798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017799 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17800 then
17801 # The compiler can only warn and ignore the option if not recognized
17802 # So say no if there are warnings
cristy232a9ab2010-06-26 01:02:54 +000017803 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017804 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17805 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17806 lt_cv_prog_compiler_c_o_CXX=yes
17807 fi
17808 fi
17809 chmod u+w . 2>&5
17810 $RM conftest*
17811 # SGI C++ compiler will create directory out/ii_files/ for
17812 # template instantiation
17813 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17814 $RM out/* && rmdir out
17815 cd ..
17816 $RM -r conftest
17817 $RM conftest*
17818
17819fi
cristy8b350f62009-11-15 23:12:43 +000017820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017821$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17822
17823
17824
cristy8b350f62009-11-15 23:12:43 +000017825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017826$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017827if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017828 $as_echo_n "(cached) " >&6
17829else
17830 lt_cv_prog_compiler_c_o_CXX=no
17831 $RM -r conftest 2>/dev/null
17832 mkdir conftest
17833 cd conftest
17834 mkdir out
17835 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17836
17837 lt_compiler_flag="-o out/conftest2.$ac_objext"
17838 # Insert the option either (1) after the last *FLAGS variable, or
17839 # (2) before a word containing "conftest.", or (3) at the end.
17840 # Note that $ac_compile itself does not contain backslashes and begins
17841 # with a dollar sign (not a hyphen), so the echo should work correctly.
17842 lt_compile=`echo "$ac_compile" | $SED \
17843 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17844 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17845 -e 's:$: $lt_compiler_flag:'`
cristy232a9ab2010-06-26 01:02:54 +000017846 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017847 (eval "$lt_compile" 2>out/conftest.err)
17848 ac_status=$?
17849 cat out/conftest.err >&5
cristy232a9ab2010-06-26 01:02:54 +000017850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017851 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17852 then
17853 # The compiler can only warn and ignore the option if not recognized
17854 # So say no if there are warnings
cristy232a9ab2010-06-26 01:02:54 +000017855 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017856 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17857 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17858 lt_cv_prog_compiler_c_o_CXX=yes
17859 fi
17860 fi
17861 chmod u+w . 2>&5
17862 $RM conftest*
17863 # SGI C++ compiler will create directory out/ii_files/ for
17864 # template instantiation
17865 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17866 $RM out/* && rmdir out
17867 cd ..
17868 $RM -r conftest
17869 $RM conftest*
17870
17871fi
cristy8b350f62009-11-15 23:12:43 +000017872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017873$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17874
17875
17876
17877
17878hard_links="nottested"
17879if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17880 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000017881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017882$as_echo_n "checking if we can lock with hard links... " >&6; }
17883 hard_links=yes
17884 $RM conftest*
17885 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17886 touch conftest.a
17887 ln conftest.a conftest.b 2>&5 || hard_links=no
17888 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000017889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017890$as_echo "$hard_links" >&6; }
17891 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000017892 { $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 +000017893$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17894 need_locks=warn
17895 fi
17896else
17897 need_locks=no
17898fi
17899
17900
17901
cristy8b350f62009-11-15 23:12:43 +000017902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000017903$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17904
17905 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17906 case $host_os in
17907 aix[4-9]*)
17908 # If we're using GNU nm, then we don't want the "-C" option.
17909 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy232a9ab2010-06-26 01:02:54 +000017910 # Also, AIX nm treats weak defined symbols like other global defined
17911 # symbols, whereas GNU nm marks them as "W".
cristy3ed852e2009-09-05 21:47:34 +000017912 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy232a9ab2010-06-26 01:02:54 +000017913 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 +000017914 else
17915 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'
17916 fi
17917 ;;
17918 pw32*)
17919 export_symbols_cmds_CXX="$ltdll_cmds"
17920 ;;
17921 cygwin* | mingw* | cegcc*)
17922 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'
17923 ;;
17924 *)
17925 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17926 ;;
17927 esac
17928 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17929
cristy8b350f62009-11-15 23:12:43 +000017930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017931$as_echo "$ld_shlibs_CXX" >&6; }
17932test "$ld_shlibs_CXX" = no && can_build_shared=no
17933
17934with_gnu_ld_CXX=$with_gnu_ld
17935
17936
17937
17938
17939
17940
17941#
17942# Do we need to explicitly link libc?
17943#
17944case "x$archive_cmds_need_lc_CXX" in
17945x|xyes)
17946 # Assume -lc should be added
17947 archive_cmds_need_lc_CXX=yes
17948
17949 if test "$enable_shared" = yes && test "$GCC" = yes; then
17950 case $archive_cmds_CXX in
17951 *'~'*)
17952 # FIXME: we may have to deal with multi-command sequences.
17953 ;;
17954 '$CC '*)
17955 # Test whether the compiler implicitly links with -lc since on some
17956 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17957 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000017958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000017959$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy232a9ab2010-06-26 01:02:54 +000017960if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
17961 $as_echo_n "(cached) " >&6
17962else
17963 $RM conftest*
17964 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017965
cristy232a9ab2010-06-26 01:02:54 +000017966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017967 (eval $ac_compile) 2>&5
17968 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17970 test $ac_status = 0; } 2>conftest.err; then
cristy232a9ab2010-06-26 01:02:54 +000017971 soname=conftest
17972 lib=conftest
17973 libobjs=conftest.$ac_objext
17974 deplibs=
17975 wl=$lt_prog_compiler_wl_CXX
17976 pic_flag=$lt_prog_compiler_pic_CXX
17977 compiler_flags=-v
17978 linker_flags=-v
17979 verstring=
17980 output_objdir=.
17981 libname=conftest
17982 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17983 allow_undefined_flag_CXX=
17984 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 +000017985 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17986 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17988 test $ac_status = 0; }
cristy232a9ab2010-06-26 01:02:54 +000017989 then
17990 lt_cv_archive_cmds_need_lc_CXX=no
17991 else
17992 lt_cv_archive_cmds_need_lc_CXX=yes
17993 fi
17994 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17995 else
17996 cat conftest.err 1>&5
17997 fi
17998 $RM conftest*
17999
18000fi
18001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18002$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18003 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy3ed852e2009-09-05 21:47:34 +000018004 ;;
18005 esac
18006 fi
18007 ;;
18008esac
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
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
cristy8b350f62009-11-15 23:12:43 +000018073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000018074$as_echo_n "checking dynamic linker characteristics... " >&6; }
18075
18076library_names_spec=
18077libname_spec='lib$name'
18078soname_spec=
18079shrext_cmds=".so"
18080postinstall_cmds=
18081postuninstall_cmds=
18082finish_cmds=
18083finish_eval=
18084shlibpath_var=
18085shlibpath_overrides_runpath=unknown
18086version_type=none
18087dynamic_linker="$host_os ld.so"
18088sys_lib_dlsearch_path_spec="/lib /usr/lib"
18089need_lib_prefix=unknown
18090hardcode_into_libs=no
18091
18092# when you set need_version to no, make sure it does not cause -set_version
18093# flags to be left without arguments
18094need_version=unknown
18095
18096case $host_os in
18097aix3*)
18098 version_type=linux
18099 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18100 shlibpath_var=LIBPATH
18101
18102 # AIX 3 has no versioning support, so we append a major version to the name.
18103 soname_spec='${libname}${release}${shared_ext}$major'
18104 ;;
18105
18106aix[4-9]*)
18107 version_type=linux
18108 need_lib_prefix=no
18109 need_version=no
18110 hardcode_into_libs=yes
18111 if test "$host_cpu" = ia64; then
18112 # AIX 5 supports IA64
18113 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18114 shlibpath_var=LD_LIBRARY_PATH
18115 else
18116 # With GCC up to 2.95.x, collect2 would create an import file
18117 # for dependence libraries. The import file would start with
18118 # the line `#! .'. This would cause the generated library to
18119 # depend on `.', always an invalid library. This was fixed in
18120 # development snapshots of GCC prior to 3.0.
18121 case $host_os in
18122 aix4 | aix4.[01] | aix4.[01].*)
18123 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18124 echo ' yes '
18125 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18126 :
18127 else
18128 can_build_shared=no
18129 fi
18130 ;;
18131 esac
18132 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18133 # soname into executable. Probably we can add versioning support to
18134 # collect2, so additional links can be useful in future.
18135 if test "$aix_use_runtimelinking" = yes; then
18136 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18137 # instead of lib<name>.a to let people know that these are not
18138 # typical AIX shared libraries.
18139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18140 else
18141 # We preserve .a as extension for shared libraries through AIX4.2
18142 # and later when we are not doing run time linking.
18143 library_names_spec='${libname}${release}.a $libname.a'
18144 soname_spec='${libname}${release}${shared_ext}$major'
18145 fi
18146 shlibpath_var=LIBPATH
18147 fi
18148 ;;
18149
18150amigaos*)
18151 case $host_cpu in
18152 powerpc)
18153 # Since July 2007 AmigaOS4 officially supports .so libraries.
18154 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18156 ;;
18157 m68k)
18158 library_names_spec='$libname.ixlibrary $libname.a'
18159 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy232a9ab2010-06-26 01:02:54 +000018160 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 +000018161 ;;
18162 esac
18163 ;;
18164
18165beos*)
18166 library_names_spec='${libname}${shared_ext}'
18167 dynamic_linker="$host_os ld.so"
18168 shlibpath_var=LIBRARY_PATH
18169 ;;
18170
18171bsdi[45]*)
18172 version_type=linux
18173 need_version=no
18174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18175 soname_spec='${libname}${release}${shared_ext}$major'
18176 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18177 shlibpath_var=LD_LIBRARY_PATH
18178 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18179 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18180 # the default ld.so.conf also contains /usr/contrib/lib and
18181 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18182 # libtool to hard-code these into programs
18183 ;;
18184
18185cygwin* | mingw* | pw32* | cegcc*)
18186 version_type=windows
18187 shrext_cmds=".dll"
18188 need_version=no
18189 need_lib_prefix=no
18190
18191 case $GCC,$host_os in
18192 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18193 library_names_spec='$libname.dll.a'
18194 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18195 postinstall_cmds='base_file=`basename \${file}`~
18196 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18197 dldir=$destdir/`dirname \$dlpath`~
18198 test -d \$dldir || mkdir -p \$dldir~
18199 $install_prog $dir/$dlname \$dldir/$dlname~
18200 chmod a+x \$dldir/$dlname~
18201 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18202 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18203 fi'
18204 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18205 dlpath=$dir/\$dldll~
18206 $RM \$dlpath'
18207 shlibpath_overrides_runpath=yes
18208
18209 case $host_os in
18210 cygwin*)
18211 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18212 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy232a9ab2010-06-26 01:02:54 +000018213
cristy3ed852e2009-09-05 21:47:34 +000018214 ;;
18215 mingw* | cegcc*)
18216 # MinGW DLLs use traditional 'lib' prefix
18217 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy3ed852e2009-09-05 21:47:34 +000018218 ;;
18219 pw32*)
18220 # pw32 DLLs use 'pw' prefix rather than 'lib'
18221 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18222 ;;
18223 esac
18224 ;;
18225
18226 *)
18227 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18228 ;;
18229 esac
18230 dynamic_linker='Win32 ld.exe'
18231 # FIXME: first we should search . and the directory the executable is in
18232 shlibpath_var=PATH
18233 ;;
18234
18235darwin* | rhapsody*)
18236 dynamic_linker="$host_os dyld"
18237 version_type=darwin
18238 need_lib_prefix=no
18239 need_version=no
18240 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18241 soname_spec='${libname}${release}${major}$shared_ext'
18242 shlibpath_overrides_runpath=yes
18243 shlibpath_var=DYLD_LIBRARY_PATH
18244 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18245
18246 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18247 ;;
18248
18249dgux*)
18250 version_type=linux
18251 need_lib_prefix=no
18252 need_version=no
18253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18254 soname_spec='${libname}${release}${shared_ext}$major'
18255 shlibpath_var=LD_LIBRARY_PATH
18256 ;;
18257
18258freebsd1*)
18259 dynamic_linker=no
18260 ;;
18261
18262freebsd* | dragonfly*)
18263 # DragonFly does not have aout. When/if they implement a new
18264 # versioning mechanism, adjust this.
18265 if test -x /usr/bin/objformat; then
18266 objformat=`/usr/bin/objformat`
18267 else
18268 case $host_os in
18269 freebsd[123]*) objformat=aout ;;
18270 *) objformat=elf ;;
18271 esac
18272 fi
18273 version_type=freebsd-$objformat
18274 case $version_type in
18275 freebsd-elf*)
18276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18277 need_version=no
18278 need_lib_prefix=no
18279 ;;
18280 freebsd-*)
18281 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18282 need_version=yes
18283 ;;
18284 esac
18285 shlibpath_var=LD_LIBRARY_PATH
18286 case $host_os in
18287 freebsd2*)
18288 shlibpath_overrides_runpath=yes
18289 ;;
18290 freebsd3.[01]* | freebsdelf3.[01]*)
18291 shlibpath_overrides_runpath=yes
18292 hardcode_into_libs=yes
18293 ;;
18294 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18295 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18296 shlibpath_overrides_runpath=no
18297 hardcode_into_libs=yes
18298 ;;
18299 *) # from 4.6 on, and DragonFly
18300 shlibpath_overrides_runpath=yes
18301 hardcode_into_libs=yes
18302 ;;
18303 esac
18304 ;;
18305
18306gnu*)
18307 version_type=linux
18308 need_lib_prefix=no
18309 need_version=no
18310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18311 soname_spec='${libname}${release}${shared_ext}$major'
18312 shlibpath_var=LD_LIBRARY_PATH
18313 hardcode_into_libs=yes
18314 ;;
18315
cristy232a9ab2010-06-26 01:02:54 +000018316haiku*)
18317 version_type=linux
18318 need_lib_prefix=no
18319 need_version=no
18320 dynamic_linker="$host_os runtime_loader"
18321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18322 soname_spec='${libname}${release}${shared_ext}$major'
18323 shlibpath_var=LIBRARY_PATH
18324 shlibpath_overrides_runpath=yes
18325 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18326 hardcode_into_libs=yes
18327 ;;
18328
cristy3ed852e2009-09-05 21:47:34 +000018329hpux9* | hpux10* | hpux11*)
18330 # Give a soname corresponding to the major version so that dld.sl refuses to
18331 # link against other versions.
18332 version_type=sunos
18333 need_lib_prefix=no
18334 need_version=no
18335 case $host_cpu in
18336 ia64*)
18337 shrext_cmds='.so'
18338 hardcode_into_libs=yes
18339 dynamic_linker="$host_os dld.so"
18340 shlibpath_var=LD_LIBRARY_PATH
18341 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18343 soname_spec='${libname}${release}${shared_ext}$major'
18344 if test "X$HPUX_IA64_MODE" = X32; then
18345 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18346 else
18347 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18348 fi
18349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18350 ;;
18351 hppa*64*)
18352 shrext_cmds='.sl'
18353 hardcode_into_libs=yes
18354 dynamic_linker="$host_os dld.sl"
18355 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18356 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18358 soname_spec='${libname}${release}${shared_ext}$major'
18359 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18361 ;;
18362 *)
18363 shrext_cmds='.sl'
18364 dynamic_linker="$host_os dld.sl"
18365 shlibpath_var=SHLIB_PATH
18366 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
18370 esac
cristy232a9ab2010-06-26 01:02:54 +000018371 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy3ed852e2009-09-05 21:47:34 +000018372 postinstall_cmds='chmod 555 $lib'
cristy232a9ab2010-06-26 01:02:54 +000018373 # or fails outright, so override atomically:
18374 install_override_mode=555
cristy3ed852e2009-09-05 21:47:34 +000018375 ;;
18376
18377interix[3-9]*)
18378 version_type=linux
18379 need_lib_prefix=no
18380 need_version=no
18381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18382 soname_spec='${libname}${release}${shared_ext}$major'
18383 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18384 shlibpath_var=LD_LIBRARY_PATH
18385 shlibpath_overrides_runpath=no
18386 hardcode_into_libs=yes
18387 ;;
18388
18389irix5* | irix6* | nonstopux*)
18390 case $host_os in
18391 nonstopux*) version_type=nonstopux ;;
18392 *)
18393 if test "$lt_cv_prog_gnu_ld" = yes; then
18394 version_type=linux
18395 else
18396 version_type=irix
18397 fi ;;
18398 esac
18399 need_lib_prefix=no
18400 need_version=no
18401 soname_spec='${libname}${release}${shared_ext}$major'
18402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18403 case $host_os in
18404 irix5* | nonstopux*)
18405 libsuff= shlibsuff=
18406 ;;
18407 *)
18408 case $LD in # libtool.m4 will add one of these switches to LD
18409 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18410 libsuff= shlibsuff= libmagic=32-bit;;
18411 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18412 libsuff=32 shlibsuff=N32 libmagic=N32;;
18413 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18414 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18415 *) libsuff= shlibsuff= libmagic=never-match;;
18416 esac
18417 ;;
18418 esac
18419 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18420 shlibpath_overrides_runpath=no
18421 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18422 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18423 hardcode_into_libs=yes
18424 ;;
18425
18426# No shared lib support for Linux oldld, aout, or coff.
18427linux*oldld* | linux*aout* | linux*coff*)
18428 dynamic_linker=no
18429 ;;
18430
18431# This must be Linux ELF.
cristy232a9ab2010-06-26 01:02:54 +000018432linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018433 version_type=linux
18434 need_lib_prefix=no
18435 need_version=no
18436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18437 soname_spec='${libname}${release}${shared_ext}$major'
18438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18439 shlibpath_var=LD_LIBRARY_PATH
18440 shlibpath_overrides_runpath=no
cristy232a9ab2010-06-26 01:02:54 +000018441
cristy3ed852e2009-09-05 21:47:34 +000018442 # Some binutils ld are patched to set DT_RUNPATH
cristy232a9ab2010-06-26 01:02:54 +000018443 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
18444 $as_echo_n "(cached) " >&6
18445else
18446 lt_cv_shlibpath_overrides_runpath=no
18447 save_LDFLAGS=$LDFLAGS
18448 save_libdir=$libdir
18449 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18450 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018452/* end confdefs.h. */
18453
18454int
18455main ()
18456{
18457
18458 ;
18459 return 0;
18460}
18461_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018462if ac_fn_cxx_try_link "$LINENO"; then :
18463 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy232a9ab2010-06-26 01:02:54 +000018464 lt_cv_shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000018465fi
cristy3ed852e2009-09-05 21:47:34 +000018466fi
cristy8b350f62009-11-15 23:12:43 +000018467rm -f core conftest.err conftest.$ac_objext \
18468 conftest$ac_exeext conftest.$ac_ext
cristy232a9ab2010-06-26 01:02:54 +000018469 LDFLAGS=$save_LDFLAGS
18470 libdir=$save_libdir
18471
18472fi
18473
18474 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy3ed852e2009-09-05 21:47:34 +000018475
18476 # This implies no fast_install, which is unacceptable.
18477 # Some rework will be needed to allow for fast_install
18478 # before this can be enabled.
18479 hardcode_into_libs=yes
18480
cristy679ed8e2009-12-05 02:37:41 +000018481 # Add ABI-specific directories to the system library path.
18482 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18483
cristy3ed852e2009-09-05 21:47:34 +000018484 # Append ld.so.conf contents to the search path
18485 if test -f /etc/ld.so.conf; then
cristy232a9ab2010-06-26 01:02:54 +000018486 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 +000018487 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy232a9ab2010-06-26 01:02:54 +000018488
cristy3ed852e2009-09-05 21:47:34 +000018489 fi
18490
18491 # We used to test for /lib/ld.so.1 and disable shared libraries on
18492 # powerpc, because MkLinux only supported shared libraries with the
18493 # GNU dynamic linker. Since this was broken with cross compilers,
18494 # most powerpc-linux boxes support dynamic linking these days and
18495 # people can always --disable-shared, the test was removed, and we
18496 # assume the GNU/Linux dynamic linker is in use.
18497 dynamic_linker='GNU/Linux ld.so'
18498 ;;
18499
18500netbsd*)
18501 version_type=sunos
18502 need_lib_prefix=no
18503 need_version=no
18504 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18506 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18507 dynamic_linker='NetBSD (a.out) ld.so'
18508 else
18509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18510 soname_spec='${libname}${release}${shared_ext}$major'
18511 dynamic_linker='NetBSD ld.elf_so'
18512 fi
18513 shlibpath_var=LD_LIBRARY_PATH
18514 shlibpath_overrides_runpath=yes
18515 hardcode_into_libs=yes
18516 ;;
18517
18518newsos6)
18519 version_type=linux
18520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18521 shlibpath_var=LD_LIBRARY_PATH
18522 shlibpath_overrides_runpath=yes
18523 ;;
18524
18525*nto* | *qnx*)
18526 version_type=qnx
18527 need_lib_prefix=no
18528 need_version=no
18529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18530 soname_spec='${libname}${release}${shared_ext}$major'
18531 shlibpath_var=LD_LIBRARY_PATH
18532 shlibpath_overrides_runpath=no
18533 hardcode_into_libs=yes
18534 dynamic_linker='ldqnx.so'
18535 ;;
18536
18537openbsd*)
18538 version_type=sunos
18539 sys_lib_dlsearch_path_spec="/usr/lib"
18540 need_lib_prefix=no
18541 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18542 case $host_os in
18543 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18544 *) need_version=no ;;
18545 esac
18546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18548 shlibpath_var=LD_LIBRARY_PATH
18549 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18550 case $host_os in
18551 openbsd2.[89] | openbsd2.[89].*)
18552 shlibpath_overrides_runpath=no
18553 ;;
18554 *)
18555 shlibpath_overrides_runpath=yes
18556 ;;
18557 esac
18558 else
18559 shlibpath_overrides_runpath=yes
18560 fi
18561 ;;
18562
18563os2*)
18564 libname_spec='$name'
18565 shrext_cmds=".dll"
18566 need_lib_prefix=no
18567 library_names_spec='$libname${shared_ext} $libname.a'
18568 dynamic_linker='OS/2 ld.exe'
18569 shlibpath_var=LIBPATH
18570 ;;
18571
18572osf3* | osf4* | osf5*)
18573 version_type=osf
18574 need_lib_prefix=no
18575 need_version=no
18576 soname_spec='${libname}${release}${shared_ext}$major'
18577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18578 shlibpath_var=LD_LIBRARY_PATH
18579 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18580 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18581 ;;
18582
18583rdos*)
18584 dynamic_linker=no
18585 ;;
18586
18587solaris*)
18588 version_type=linux
18589 need_lib_prefix=no
18590 need_version=no
18591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18592 soname_spec='${libname}${release}${shared_ext}$major'
18593 shlibpath_var=LD_LIBRARY_PATH
18594 shlibpath_overrides_runpath=yes
18595 hardcode_into_libs=yes
18596 # ldd complains unless libraries are executable
18597 postinstall_cmds='chmod +x $lib'
18598 ;;
18599
18600sunos4*)
18601 version_type=sunos
18602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18603 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18604 shlibpath_var=LD_LIBRARY_PATH
18605 shlibpath_overrides_runpath=yes
18606 if test "$with_gnu_ld" = yes; then
18607 need_lib_prefix=no
18608 fi
18609 need_version=yes
18610 ;;
18611
18612sysv4 | sysv4.3*)
18613 version_type=linux
18614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18615 soname_spec='${libname}${release}${shared_ext}$major'
18616 shlibpath_var=LD_LIBRARY_PATH
18617 case $host_vendor in
18618 sni)
18619 shlibpath_overrides_runpath=no
18620 need_lib_prefix=no
18621 runpath_var=LD_RUN_PATH
18622 ;;
18623 siemens)
18624 need_lib_prefix=no
18625 ;;
18626 motorola)
18627 need_lib_prefix=no
18628 need_version=no
18629 shlibpath_overrides_runpath=no
18630 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18631 ;;
18632 esac
18633 ;;
18634
18635sysv4*MP*)
18636 if test -d /usr/nec ;then
18637 version_type=linux
18638 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18639 soname_spec='$libname${shared_ext}.$major'
18640 shlibpath_var=LD_LIBRARY_PATH
18641 fi
18642 ;;
18643
18644sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18645 version_type=freebsd-elf
18646 need_lib_prefix=no
18647 need_version=no
18648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18649 soname_spec='${libname}${release}${shared_ext}$major'
18650 shlibpath_var=LD_LIBRARY_PATH
18651 shlibpath_overrides_runpath=yes
18652 hardcode_into_libs=yes
18653 if test "$with_gnu_ld" = yes; then
18654 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18655 else
18656 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18657 case $host_os in
18658 sco3.2v5*)
18659 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18660 ;;
18661 esac
18662 fi
18663 sys_lib_dlsearch_path_spec='/usr/lib'
18664 ;;
18665
18666tpf*)
18667 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18668 version_type=linux
18669 need_lib_prefix=no
18670 need_version=no
18671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18672 shlibpath_var=LD_LIBRARY_PATH
18673 shlibpath_overrides_runpath=no
18674 hardcode_into_libs=yes
18675 ;;
18676
18677uts4*)
18678 version_type=linux
18679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18680 soname_spec='${libname}${release}${shared_ext}$major'
18681 shlibpath_var=LD_LIBRARY_PATH
18682 ;;
18683
18684*)
18685 dynamic_linker=no
18686 ;;
18687esac
cristy8b350f62009-11-15 23:12:43 +000018688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000018689$as_echo "$dynamic_linker" >&6; }
18690test "$dynamic_linker" = no && can_build_shared=no
18691
18692variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18693if test "$GCC" = yes; then
18694 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18695fi
18696
18697if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18698 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18699fi
18700if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18701 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18702fi
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
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
cristy232a9ab2010-06-26 01:02:54 +000018739
18740
cristy8b350f62009-11-15 23:12:43 +000018741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018742$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18743hardcode_action_CXX=
18744if test -n "$hardcode_libdir_flag_spec_CXX" ||
18745 test -n "$runpath_var_CXX" ||
18746 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18747
18748 # We can hardcode non-existent directories.
18749 if test "$hardcode_direct_CXX" != no &&
18750 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18751 # have to relink, otherwise we might link with an installed library
18752 # when we should be linking with a yet-to-be-installed one
18753 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18754 test "$hardcode_minus_L_CXX" != no; then
18755 # Linking always hardcodes the temporary library directory.
18756 hardcode_action_CXX=relink
18757 else
18758 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18759 hardcode_action_CXX=immediate
18760 fi
18761else
18762 # We cannot hardcode anything, or else we can only hardcode existing
18763 # directories.
18764 hardcode_action_CXX=unsupported
18765fi
cristy8b350f62009-11-15 23:12:43 +000018766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018767$as_echo "$hardcode_action_CXX" >&6; }
18768
18769if test "$hardcode_action_CXX" = relink ||
18770 test "$inherit_rpath_CXX" = yes; then
18771 # Fast installation is not supported
18772 enable_fast_install=no
18773elif test "$shlibpath_overrides_runpath" = yes ||
18774 test "$enable_shared" = no; then
18775 # Fast installation is not necessary
18776 enable_fast_install=needless
18777fi
18778
18779
18780
18781
18782
18783
18784
18785 fi # test -n "$compiler"
18786
18787 CC=$lt_save_CC
18788 LDCXX=$LD
18789 LD=$lt_save_LD
18790 GCC=$lt_save_GCC
18791 with_gnu_ld=$lt_save_with_gnu_ld
18792 lt_cv_path_LDCXX=$lt_cv_path_LD
18793 lt_cv_path_LD=$lt_save_path_LD
18794 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18795 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18796fi # test "$_lt_caught_CXX_error" != yes
18797
18798ac_ext=c
18799ac_cpp='$CPP $CPPFLAGS'
18800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18802ac_compiler_gnu=$ac_cv_c_compiler_gnu
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816 ac_config_commands="$ac_config_commands libtool"
18817
18818
18819
18820
18821# Only expand once:
18822
18823
18824
18825
18826
18827# Configure libltdl
18828
18829
18830
18831
18832
18833
18834
cristy8b350f62009-11-15 23:12:43 +000018835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000018836$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018837if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018838 $as_echo_n "(cached) " >&6
18839else
18840
18841module=yes
18842eval libltdl_cv_shlibext=$shrext_cmds
18843
18844fi
cristy8b350f62009-11-15 23:12:43 +000018845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000018846$as_echo "$libltdl_cv_shlibext" >&6; }
18847if test -n "$libltdl_cv_shlibext"; then
18848
18849cat >>confdefs.h <<_ACEOF
18850#define LT_MODULE_EXT "$libltdl_cv_shlibext"
18851_ACEOF
18852
18853fi
18854
cristy8b350f62009-11-15 23:12:43 +000018855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018856$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018857if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018858 $as_echo_n "(cached) " >&6
18859else
18860 lt_cv_module_path_var="$shlibpath_var"
18861fi
cristy8b350f62009-11-15 23:12:43 +000018862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000018863$as_echo "$lt_cv_module_path_var" >&6; }
18864if test -n "$lt_cv_module_path_var"; then
18865
18866cat >>confdefs.h <<_ACEOF
18867#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18868_ACEOF
18869
18870fi
18871
cristy8b350f62009-11-15 23:12:43 +000018872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018873$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018874if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018875 $as_echo_n "(cached) " >&6
18876else
18877 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18878fi
cristy8b350f62009-11-15 23:12:43 +000018879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018880$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18881if test -n "$lt_cv_sys_dlsearch_path"; then
18882 sys_dlsearch_path=
18883 for dir in $lt_cv_sys_dlsearch_path; do
18884 if test -z "$sys_dlsearch_path"; then
18885 sys_dlsearch_path="$dir"
18886 else
18887 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18888 fi
18889 done
18890
18891cat >>confdefs.h <<_ACEOF
18892#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18893_ACEOF
18894
18895fi
18896
18897
18898LT_DLLOADERS=
18899
18900
18901ac_ext=c
18902ac_cpp='$CPP $CPPFLAGS'
18903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18905ac_compiler_gnu=$ac_cv_c_compiler_gnu
18906
18907
18908LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000018909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018910$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018911if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018912 $as_echo_n "(cached) " >&6
18913else
18914 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000018915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018916/* end confdefs.h. */
18917
18918/* Override any GCC internal prototype to avoid an error.
18919 Use char because int might match the return type of a GCC
18920 builtin and then its argument prototype would still apply. */
18921#ifdef __cplusplus
18922extern "C"
18923#endif
18924char dlopen ();
18925int
18926main ()
18927{
18928return dlopen ();
18929 ;
18930 return 0;
18931}
18932_ACEOF
18933for ac_lib in '' dl; do
18934 if test -z "$ac_lib"; then
18935 ac_res="none required"
18936 else
18937 ac_res=-l$ac_lib
18938 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18939 fi
cristy8b350f62009-11-15 23:12:43 +000018940 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018941 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000018942fi
cristy8b350f62009-11-15 23:12:43 +000018943rm -f core conftest.err conftest.$ac_objext \
18944 conftest$ac_exeext
18945 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018946 break
18947fi
18948done
cristy8b350f62009-11-15 23:12:43 +000018949if test "${ac_cv_search_dlopen+set}" = set; then :
18950
cristy3ed852e2009-09-05 21:47:34 +000018951else
18952 ac_cv_search_dlopen=no
18953fi
18954rm conftest.$ac_ext
18955LIBS=$ac_func_search_save_LIBS
18956fi
cristy8b350f62009-11-15 23:12:43 +000018957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018958$as_echo "$ac_cv_search_dlopen" >&6; }
18959ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000018960if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000018961 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18962
cristy8b350f62009-11-15 23:12:43 +000018963$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018964
18965 if test "$ac_cv_search_dlopen" != "none required" ; then
18966 LIBADD_DLOPEN="-ldl"
18967 fi
18968 libltdl_cv_lib_dl_dlopen="yes"
18969 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18970else
cristy8b350f62009-11-15 23:12:43 +000018971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018972/* end confdefs.h. */
18973#if HAVE_DLFCN_H
18974# include <dlfcn.h>
18975#endif
18976
18977int
18978main ()
18979{
18980dlopen(0, 0);
18981 ;
18982 return 0;
18983}
18984_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018985if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018986
cristy8b350f62009-11-15 23:12:43 +000018987$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018988
18989 libltdl_cv_func_dlopen="yes"
18990 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18991else
cristy8b350f62009-11-15 23:12:43 +000018992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000018993$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018994if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018995 $as_echo_n "(cached) " >&6
18996else
18997 ac_check_lib_save_LIBS=$LIBS
18998LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019000/* end confdefs.h. */
19001
19002/* Override any GCC internal prototype to avoid an error.
19003 Use char because int might match the return type of a GCC
19004 builtin and then its argument prototype would still apply. */
19005#ifdef __cplusplus
19006extern "C"
19007#endif
19008char dlopen ();
19009int
19010main ()
19011{
19012return dlopen ();
19013 ;
19014 return 0;
19015}
19016_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019017if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019018 ac_cv_lib_svld_dlopen=yes
19019else
cristy8b350f62009-11-15 23:12:43 +000019020 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000019021fi
cristy8b350f62009-11-15 23:12:43 +000019022rm -f core conftest.err conftest.$ac_objext \
19023 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019024LIBS=$ac_check_lib_save_LIBS
19025fi
cristy8b350f62009-11-15 23:12:43 +000019026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019027$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019028if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019029
cristy8b350f62009-11-15 23:12:43 +000019030$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019031
19032 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19033 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19034fi
19035
19036fi
cristy8b350f62009-11-15 23:12:43 +000019037rm -f core conftest.err conftest.$ac_objext \
19038 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019039fi
19040
19041if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19042then
19043 lt_save_LIBS="$LIBS"
19044 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000019045 for ac_func in dlerror
19046do :
19047 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19048if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019049 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019050#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000019051_ACEOF
19052
19053fi
19054done
19055
19056 LIBS="$lt_save_LIBS"
19057fi
19058
19059
19060LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000019061ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19062if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019063
cristy8b350f62009-11-15 23:12:43 +000019064$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019065
19066 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19067else
cristy8b350f62009-11-15 23:12:43 +000019068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019069$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019070if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019071 $as_echo_n "(cached) " >&6
19072else
19073 ac_check_lib_save_LIBS=$LIBS
19074LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019076/* end confdefs.h. */
19077
19078/* Override any GCC internal prototype to avoid an error.
19079 Use char because int might match the return type of a GCC
19080 builtin and then its argument prototype would still apply. */
19081#ifdef __cplusplus
19082extern "C"
19083#endif
19084char shl_load ();
19085int
19086main ()
19087{
19088return shl_load ();
19089 ;
19090 return 0;
19091}
19092_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019093if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019094 ac_cv_lib_dld_shl_load=yes
19095else
cristy8b350f62009-11-15 23:12:43 +000019096 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000019097fi
cristy8b350f62009-11-15 23:12:43 +000019098rm -f core conftest.err conftest.$ac_objext \
19099 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019100LIBS=$ac_check_lib_save_LIBS
19101fi
cristy8b350f62009-11-15 23:12:43 +000019102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000019103$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019104if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019105
cristy8b350f62009-11-15 23:12:43 +000019106$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019107
19108 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19109 LIBADD_SHL_LOAD="-ldld"
19110fi
19111
19112fi
19113
19114
19115
19116case $host_os in
19117darwin[1567].*)
19118# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000019119 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19120if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019121
cristy8b350f62009-11-15 23:12:43 +000019122$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019123
19124 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19125fi
19126
19127 ;;
19128beos*)
19129 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19130 ;;
19131cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000019132 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19133"
19134if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19135 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000019136else
cristy8b350f62009-11-15 23:12:43 +000019137 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000019138fi
19139
cristy3ed852e2009-09-05 21:47:34 +000019140cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019141#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000019142_ACEOF
19143
cristy3ed852e2009-09-05 21:47:34 +000019144 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19145 ;;
19146esac
19147
cristy8b350f62009-11-15 23:12:43 +000019148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019149$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019150if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019151 $as_echo_n "(cached) " >&6
19152else
19153 ac_check_lib_save_LIBS=$LIBS
19154LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019156/* end confdefs.h. */
19157
19158/* Override any GCC internal prototype to avoid an error.
19159 Use char because int might match the return type of a GCC
19160 builtin and then its argument prototype would still apply. */
19161#ifdef __cplusplus
19162extern "C"
19163#endif
19164char dld_link ();
19165int
19166main ()
19167{
19168return dld_link ();
19169 ;
19170 return 0;
19171}
19172_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019173if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019174 ac_cv_lib_dld_dld_link=yes
19175else
cristy8b350f62009-11-15 23:12:43 +000019176 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000019177fi
cristy8b350f62009-11-15 23:12:43 +000019178rm -f core conftest.err conftest.$ac_objext \
19179 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019180LIBS=$ac_check_lib_save_LIBS
19181fi
cristy8b350f62009-11-15 23:12:43 +000019182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000019183$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019184if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019185
cristy8b350f62009-11-15 23:12:43 +000019186$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019187
19188 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19189fi
19190
19191
19192
19193
19194LT_DLPREOPEN=
19195if test -n "$LT_DLLOADERS"
19196then
19197 for lt_loader in $LT_DLLOADERS; do
19198 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19199 done
19200
cristy8b350f62009-11-15 23:12:43 +000019201$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019202
19203fi
19204
19205
19206LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19207
19208
19209ac_ext=c
19210ac_cpp='$CPP $CPPFLAGS'
19211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19213ac_compiler_gnu=$ac_cv_c_compiler_gnu
19214
19215
cristy8b350f62009-11-15 23:12:43 +000019216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019217$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019218if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019219 $as_echo_n "(cached) " >&6
19220else
19221 lt_cv_sys_symbol_underscore=no
19222 cat > conftest.$ac_ext <<_LT_EOF
19223void nm_test_func(){}
19224int main(){nm_test_func;return 0;}
19225_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019227 (eval $ac_compile) 2>&5
19228 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19230 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000019231 # Now try to grab the symbols.
19232 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000019233 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 +000019234 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19235 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19237 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000019238 # See whether the symbols have a leading underscore.
19239 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19240 lt_cv_sys_symbol_underscore=yes
19241 else
19242 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19243 :
19244 else
19245 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19246 fi
19247 fi
19248 else
19249 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19250 fi
19251 else
19252 echo "configure: failed program was:" >&5
19253 cat conftest.c >&5
19254 fi
19255 rm -rf conftest*
19256
19257fi
cristy8b350f62009-11-15 23:12:43 +000019258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019259$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19260 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19261
19262
19263if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19264 if test x"$libltdl_cv_func_dlopen" = xyes ||
19265 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000019266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000019267$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019268if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019269 $as_echo_n "(cached) " >&6
19270else
19271 libltdl_cv_need_uscore=unknown
19272 save_LIBS="$LIBS"
19273 LIBS="$LIBS $LIBADD_DLOPEN"
19274 if test "$cross_compiling" = yes; then :
19275 libltdl_cv_need_uscore=cross
19276else
19277 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19278 lt_status=$lt_dlunknown
19279 cat > conftest.$ac_ext <<_LT_EOF
cristy232a9ab2010-06-26 01:02:54 +000019280#line $LINENO "configure"
cristy3ed852e2009-09-05 21:47:34 +000019281#include "confdefs.h"
19282
19283#if HAVE_DLFCN_H
19284#include <dlfcn.h>
19285#endif
19286
19287#include <stdio.h>
19288
19289#ifdef RTLD_GLOBAL
19290# define LT_DLGLOBAL RTLD_GLOBAL
19291#else
19292# ifdef DL_GLOBAL
19293# define LT_DLGLOBAL DL_GLOBAL
19294# else
19295# define LT_DLGLOBAL 0
19296# endif
19297#endif
19298
19299/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19300 find out it does not work in some platform. */
19301#ifndef LT_DLLAZY_OR_NOW
19302# ifdef RTLD_LAZY
19303# define LT_DLLAZY_OR_NOW RTLD_LAZY
19304# else
19305# ifdef DL_LAZY
19306# define LT_DLLAZY_OR_NOW DL_LAZY
19307# else
19308# ifdef RTLD_NOW
19309# define LT_DLLAZY_OR_NOW RTLD_NOW
19310# else
19311# ifdef DL_NOW
19312# define LT_DLLAZY_OR_NOW DL_NOW
19313# else
19314# define LT_DLLAZY_OR_NOW 0
19315# endif
19316# endif
19317# endif
19318# endif
19319#endif
19320
cristy232a9ab2010-06-26 01:02:54 +000019321/* When -fvisbility=hidden is used, assume the code has been annotated
19322 correspondingly for the symbols needed. */
19323#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19324void fnord () __attribute__((visibility("default")));
19325#endif
19326
19327void fnord () { int i=42; }
cristy3ed852e2009-09-05 21:47:34 +000019328int main ()
19329{
19330 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19331 int status = $lt_dlunknown;
19332
19333 if (self)
19334 {
19335 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy232a9ab2010-06-26 01:02:54 +000019336 else
19337 {
19338 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19339 else puts (dlerror ());
19340 }
cristy3ed852e2009-09-05 21:47:34 +000019341 /* dlclose (self); */
19342 }
19343 else
19344 puts (dlerror ());
19345
19346 return status;
19347}
19348_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019350 (eval $ac_link) 2>&5
19351 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19353 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000019354 (./conftest; exit; ) >&5 2>/dev/null
19355 lt_status=$?
19356 case x$lt_status in
19357 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19358 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19359 x$lt_dlunknown|x*) ;;
19360 esac
19361 else :
19362 # compilation failed
19363
19364 fi
19365fi
19366rm -fr conftest*
19367
19368 LIBS="$save_LIBS"
19369
19370fi
cristy8b350f62009-11-15 23:12:43 +000019371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019372$as_echo "$libltdl_cv_need_uscore" >&6; }
19373 fi
19374fi
19375
19376if test x"$libltdl_cv_need_uscore" = xyes; then
19377
cristy8b350f62009-11-15 23:12:43 +000019378$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019379
19380fi
19381
cristy8b350f62009-11-15 23:12:43 +000019382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019383$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019384if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019385 $as_echo_n "(cached) " >&6
19386else
19387 # PORTME does your system automatically load deplibs for dlopen?
19388 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19389 # For now, we just catch OSes we know something about -- in the
19390 # future, we'll try test this programmatically.
19391 lt_cv_sys_dlopen_deplibs=unknown
19392 case $host_os in
19393 aix3*|aix4.1.*|aix4.2.*)
19394 # Unknown whether this is true for these versions of AIX, but
19395 # we want this `case' here to explicitly catch those versions.
19396 lt_cv_sys_dlopen_deplibs=unknown
19397 ;;
19398 aix[4-9]*)
19399 lt_cv_sys_dlopen_deplibs=yes
19400 ;;
19401 amigaos*)
19402 case $host_cpu in
19403 powerpc)
19404 lt_cv_sys_dlopen_deplibs=no
19405 ;;
19406 esac
19407 ;;
19408 darwin*)
19409 # Assuming the user has installed a libdl from somewhere, this is true
19410 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19411 lt_cv_sys_dlopen_deplibs=yes
19412 ;;
19413 freebsd* | dragonfly*)
19414 lt_cv_sys_dlopen_deplibs=yes
19415 ;;
cristy232a9ab2010-06-26 01:02:54 +000019416 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000019417 # GNU and its variants, using gnu ld.so (Glibc)
19418 lt_cv_sys_dlopen_deplibs=yes
19419 ;;
19420 hpux10*|hpux11*)
19421 lt_cv_sys_dlopen_deplibs=yes
19422 ;;
19423 interix*)
19424 lt_cv_sys_dlopen_deplibs=yes
19425 ;;
19426 irix[12345]*|irix6.[01]*)
19427 # Catch all versions of IRIX before 6.2, and indicate that we don't
19428 # know how it worked for any of those versions.
19429 lt_cv_sys_dlopen_deplibs=unknown
19430 ;;
19431 irix*)
19432 # The case above catches anything before 6.2, and it's known that
19433 # at 6.2 and later dlopen does load deplibs.
19434 lt_cv_sys_dlopen_deplibs=yes
19435 ;;
19436 netbsd*)
19437 lt_cv_sys_dlopen_deplibs=yes
19438 ;;
19439 openbsd*)
19440 lt_cv_sys_dlopen_deplibs=yes
19441 ;;
19442 osf[1234]*)
19443 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19444 # it did *not* use an RPATH in a shared library to find objects the
19445 # library depends on, so we explicitly say `no'.
19446 lt_cv_sys_dlopen_deplibs=no
19447 ;;
19448 osf5.0|osf5.0a|osf5.1)
19449 # dlopen *does* load deplibs and with the right loader patch applied
19450 # it even uses RPATH in a shared library to search for shared objects
19451 # that the library depends on, but there's no easy way to know if that
19452 # patch is installed. Since this is the case, all we can really
19453 # say is unknown -- it depends on the patch being installed. If
19454 # it is, this changes to `yes'. Without it, it would be `no'.
19455 lt_cv_sys_dlopen_deplibs=unknown
19456 ;;
19457 osf*)
19458 # the two cases above should catch all versions of osf <= 5.1. Read
19459 # the comments above for what we know about them.
19460 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19461 # is used to find them so we can finally say `yes'.
19462 lt_cv_sys_dlopen_deplibs=yes
19463 ;;
19464 qnx*)
19465 lt_cv_sys_dlopen_deplibs=yes
19466 ;;
19467 solaris*)
19468 lt_cv_sys_dlopen_deplibs=yes
19469 ;;
19470 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19471 libltdl_cv_sys_dlopen_deplibs=yes
19472 ;;
19473 esac
19474
19475fi
cristy8b350f62009-11-15 23:12:43 +000019476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000019477$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19478if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19479
cristy8b350f62009-11-15 23:12:43 +000019480$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019481
19482fi
19483
19484:
19485
cristy3ed852e2009-09-05 21:47:34 +000019486for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000019487do :
19488 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19489"
19490if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019491 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019492#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000019493_ACEOF
19494
19495fi
19496
19497done
19498
19499
cristy8b350f62009-11-15 23:12:43 +000019500ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000019501# include <argz.h>
19502#endif
cristy8b350f62009-11-15 23:12:43 +000019503"
19504if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019505
19506cat >>confdefs.h <<_ACEOF
19507#define HAVE_ERROR_T 1
19508_ACEOF
19509
19510
19511else
19512
cristy8b350f62009-11-15 23:12:43 +000019513$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019514
19515
cristy8b350f62009-11-15 23:12:43 +000019516$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019517
19518fi
19519
19520
19521ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000019522for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19523 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000019524do :
19525 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19526ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy0684af42010-07-09 00:00:05 +000019527if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019528 cat >>confdefs.h <<_ACEOF
19529#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19530_ACEOF
19531
19532else
19533 ARGZ_H=argz.h;
19534
19535 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19536
19537fi
19538done
19539
19540
cristy8b350f62009-11-15 23:12:43 +000019541if test -z "$ARGZ_H"; then :
19542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019543$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019544if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019545 $as_echo_n "(cached) " >&6
19546else
19547 case $host_os in #(
19548 *cygwin*)
19549 lt_cv_sys_argz_works=no
19550 if test "$cross_compiling" != no; then
19551 lt_cv_sys_argz_works="guessing no"
19552 else
19553 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19554 save_IFS=$IFS
19555 IFS=-.
19556 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19557 IFS=$save_IFS
19558 lt_os_major=${2-0}
19559 lt_os_minor=${3-0}
19560 lt_os_micro=${4-0}
19561 if test "$lt_os_major" -gt 1 \
19562 || { test "$lt_os_major" -eq 1 \
19563 && { test "$lt_os_minor" -gt 5 \
19564 || { test "$lt_os_minor" -eq 5 \
19565 && test "$lt_os_micro" -gt 24; }; }; }; then
19566 lt_cv_sys_argz_works=yes
19567 fi
19568 fi
19569 ;; #(
19570 *) lt_cv_sys_argz_works=yes ;;
19571 esac
19572fi
cristy8b350f62009-11-15 23:12:43 +000019573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019574$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019575 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019576
cristy8b350f62009-11-15 23:12:43 +000019577$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019578
19579else
19580 ARGZ_H=argz.h
19581
19582
19583 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19584
19585fi
cristy3ed852e2009-09-05 21:47:34 +000019586fi
19587
19588
19589
cristy8b350f62009-11-15 23:12:43 +000019590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019591$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019592if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019593 $as_echo_n "(cached) " >&6
19594else
19595 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19596 libltdl_cv_preloaded_symbols=yes
19597 else
19598 libltdl_cv_preloaded_symbols=no
19599 fi
19600
19601fi
cristy8b350f62009-11-15 23:12:43 +000019602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019603$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19604if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19605
cristy8b350f62009-11-15 23:12:43 +000019606$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019607
19608fi
19609
19610# Set options
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000019623if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019624 withval=$with_included_ltdl;
19625fi
19626
19627
19628if test "x$with_included_ltdl" != xyes; then
19629 # We are not being forced to use the included libltdl sources, so
19630 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000019631 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000019632
cristy8b350f62009-11-15 23:12:43 +000019633"
19634if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19635 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 +000019636 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000019637"
19638if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000019640$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019641if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019642 $as_echo_n "(cached) " >&6
19643else
19644 ac_check_lib_save_LIBS=$LIBS
19645LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019647/* end confdefs.h. */
19648
19649/* Override any GCC internal prototype to avoid an error.
19650 Use char because int might match the return type of a GCC
19651 builtin and then its argument prototype would still apply. */
19652#ifdef __cplusplus
19653extern "C"
19654#endif
19655char lt_dladvise_preload ();
19656int
19657main ()
19658{
19659return lt_dladvise_preload ();
19660 ;
19661 return 0;
19662}
19663_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019664if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019665 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19666else
cristy8b350f62009-11-15 23:12:43 +000019667 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000019668fi
cristy8b350f62009-11-15 23:12:43 +000019669rm -f core conftest.err conftest.$ac_objext \
19670 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019671LIBS=$ac_check_lib_save_LIBS
19672fi
cristy8b350f62009-11-15 23:12:43 +000019673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000019674$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019675if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019676 with_included_ltdl=no
19677else
19678 with_included_ltdl=yes
19679fi
19680
19681else
19682 with_included_ltdl=yes
19683fi
19684
19685else
19686 with_included_ltdl=yes
19687fi
19688
19689
19690fi
19691
19692
19693
19694
19695# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000019696if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019697 withval=$with_ltdl_include;
19698fi
19699
19700
19701if test -n "$with_ltdl_include"; then
19702 if test -f "$with_ltdl_include/ltdl.h"; then :
19703 else
cristy0684af42010-07-09 00:00:05 +000019704 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019705 fi
19706else
19707 with_ltdl_include=no
19708fi
19709
19710
19711# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000019712if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019713 withval=$with_ltdl_lib;
19714fi
19715
19716
19717if test -n "$with_ltdl_lib"; then
19718 if test -f "$with_ltdl_lib/libltdl.la"; then :
19719 else
cristy0684af42010-07-09 00:00:05 +000019720 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019721 fi
19722else
19723 with_ltdl_lib=no
19724fi
19725
19726case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19727 ,yes,no,no,)
19728 case $enable_ltdl_convenience in
cristy0684af42010-07-09 00:00:05 +000019729 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000019730 "") enable_ltdl_convenience=yes
19731 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19732esac
19733LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19734LTDLDEPS=$LIBLTDL
19735LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19736
19737
19738
19739
19740
19741# For backwards non-gettext consistent compatibility...
19742INCLTDL="$LTDLINCL"
19743
19744
19745 ;;
19746 ,no,no,no,)
19747 # If the included ltdl is not to be used, then use the
19748 # preinstalled libltdl we found.
19749
cristy8b350f62009-11-15 23:12:43 +000019750$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019751
19752 LIBLTDL=-lltdl
19753 LTDLDEPS=
19754 LTDLINCL=
19755 ;;
19756 ,no*,no,*)
cristy0684af42010-07-09 00:00:05 +000019757 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019758 ;;
19759 *) with_included_ltdl=no
19760 LIBLTDL="-L$with_ltdl_lib -lltdl"
19761 LTDLDEPS=
19762 LTDLINCL="-I$with_ltdl_include"
19763 ;;
19764esac
19765INCLTDL="$LTDLINCL"
19766
19767# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000019768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000019769$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019771$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000019773$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019775$as_echo "$LIBLTDL" >&6; }
19776
19777
19778
19779# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000019780if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019781 enableval=$enable_ltdl_install;
19782fi
19783
19784
19785case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19786 *yes*) ;;
19787 *) enable_ltdl_convenience=yes ;;
19788esac
19789
19790 if test x"${enable_ltdl_install-no}" != xno; then
19791 INSTALL_LTDL_TRUE=
19792 INSTALL_LTDL_FALSE='#'
19793else
19794 INSTALL_LTDL_TRUE='#'
19795 INSTALL_LTDL_FALSE=
19796fi
19797
19798 if test x"${enable_ltdl_convenience-no}" != xno; then
19799 CONVENIENCE_LTDL_TRUE=
19800 CONVENIENCE_LTDL_FALSE='#'
19801else
19802 CONVENIENCE_LTDL_TRUE='#'
19803 CONVENIENCE_LTDL_FALSE=
19804fi
19805
19806
19807
19808
19809
19810
cristy3ed852e2009-09-05 21:47:34 +000019811# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19812# the user used. This is so that ltdl.h can pick up the parent projects
19813# config.h file, The first file in AC_CONFIG_HEADERS must contain the
19814# definitions required by ltdl.c.
19815# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
19816
19817
19818
cristy3ed852e2009-09-05 21:47:34 +000019819for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000019820do :
19821 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19822ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19823"
cristy0684af42010-07-09 00:00:05 +000019824if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019825 cat >>confdefs.h <<_ACEOF
19826#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19827_ACEOF
19828
19829fi
19830
19831done
19832
19833
cristy3ed852e2009-09-05 21:47:34 +000019834for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000019835do :
19836 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19837ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy0684af42010-07-09 00:00:05 +000019838if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019839 cat >>confdefs.h <<_ACEOF
19840#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19841_ACEOF
19842
19843else
19844
19845
19846 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
19847
19848fi
19849done
19850
cristy3ed852e2009-09-05 21:47:34 +000019851for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000019852do :
19853 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19854ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy0684af42010-07-09 00:00:05 +000019855if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000019856 cat >>confdefs.h <<_ACEOF
19857#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19858_ACEOF
19859
19860else
19861
19862
19863 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
19864
19865fi
19866done
19867
19868
19869
19870cat >>confdefs.h <<_ACEOF
19871#define LT_LIBEXT "$libext"
19872_ACEOF
19873
19874
19875name=ltdl
19876LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
19877
19878
19879
19880
19881
19882
19883
19884
19885# Only expand once:
19886
19887
19888
19889# Check to see if building shared libraries
19890libtool_build_shared_libs='no'
19891if test "$enable_shared" = 'yes'; then
19892 libtool_build_shared_libs='yes'
19893fi
19894
19895# Check to see if building static libraries
19896libtool_build_static_libs='no'
19897if test "$enable_static" = 'yes'; then
19898 libtool_build_static_libs='yes'
19899fi
19900
cristyfa112112010-01-04 17:48:07 +000019901 if test "${libtool_build_shared_libs}" = 'yes'; then
19902 WITH_SHARED_LIBS_TRUE=
19903 WITH_SHARED_LIBS_FALSE='#'
19904else
19905 WITH_SHARED_LIBS_TRUE='#'
19906 WITH_SHARED_LIBS_FALSE=
cristy3ed852e2009-09-05 21:47:34 +000019907fi
19908
19909#
19910# Enable support for building loadable modules
19911#
19912
19913# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000019914if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019915 withval=$with_modules; with_modules=$withval
19916else
cristy5a1cefd2010-01-06 20:42:35 +000019917 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000019918fi
19919
19920
19921# Only allow building loadable modules if we are building shared libraries
19922if test "$with_modules" != 'no' ; then
19923 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000019924 { $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 +000019925$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
19926 with_modules='no'
19927 fi
19928fi
19929if test "$with_modules" != 'no'; then
19930
cristy8b350f62009-11-15 23:12:43 +000019931$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019932
19933fi
19934 if test "$with_modules" != 'no'; then
19935 WITH_MODULES_TRUE=
19936 WITH_MODULES_FALSE='#'
19937else
19938 WITH_MODULES_TRUE='#'
19939 WITH_MODULES_FALSE=
19940fi
19941
19942
19943# Enable building/use of libltdl if we are building shared libraries regardless
19944# of whether modules are built or not.
19945with_ltdl='no'
19946if test "$libtool_build_shared_libs" != 'no'; then
19947 with_ltdl='yes'
19948fi
19949
19950 if test "$with_ltdl" != 'no'; then
19951 WITH_LTDL_TRUE=
19952 WITH_LTDL_FALSE='#'
19953else
19954 WITH_LTDL_TRUE='#'
19955 WITH_LTDL_FALSE=
19956fi
19957
19958if test "$with_ltdl" != 'no'; then
19959
cristy8b350f62009-11-15 23:12:43 +000019960$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019961
19962
19963 # Set DLLDFLAGS
19964 if test X"$enable_shared" = Xyes; then
19965 DLLDFLAGS=-export-dynamic
19966
19967 fi
19968fi
19969
19970# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000019971# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000019972# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000019973if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019974 enableval=$enable_delegate_build; enable_delegate_build=$enableval
19975else
19976 enable_delegate_build='no'
19977fi
19978
19979
19980# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000019981if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019982 enableval=$enable_deprecated; enable_deprecated=$enableval
19983else
19984 enable_deprecated='no'
19985fi
19986
19987
19988if test "$enable_deprecated" = 'yes'; then
19989
cristy8b350f62009-11-15 23:12:43 +000019990$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019991
19992else
19993 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
19994fi
19995
19996# Build a version of ImageMagick which operates uninstalled.
19997# Used to build distributions located via MAGICK_HOME / executable path
19998# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000019999if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020000 enableval=$enable_installed; enable_installed=$enableval
20001else
20002 enable_installed='yes'
20003fi
20004
20005
20006if test "$enable_installed" = 'yes'; then
20007
cristy8b350f62009-11-15 23:12:43 +000020008$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020009
20010else
20011 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20012fi
20013
20014# Permit enciphering and deciphering image pixels.
20015# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020016if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020017 enableval=$enable_cipher; enable_cipher=$enableval
20018else
20019 enable_cipher='yes'
20020fi
20021
20022
20023if test "$enable_cipher" = 'yes'; then
20024
cristy8b350f62009-11-15 23:12:43 +000020025$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020026
20027fi
20028
20029# Build an embeddable version of ImageMagick.
20030# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020031if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020032 enableval=$enable_embeddable; enable_embeddable=$enableval
20033else
20034 enable_embeddable='no'
20035fi
20036
20037
20038if test "$enable_embeddable" = 'yes'; then
20039
cristy8b350f62009-11-15 23:12:43 +000020040$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020041
20042fi
20043
20044# Build a high dynamic range version of ImageMagick.
20045# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020046if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020047 enableval=$enable_hdri; enable_hdri=$enableval
20048else
20049 enable_hdri='no'
20050fi
20051
20052
20053MAGICK_HDRI=""
20054if test "$enable_hdri" = 'yes'; then
20055 MAGICK_HDRI="HDRI"
20056
cristy8b350f62009-11-15 23:12:43 +000020057$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020058
20059fi
20060
cristy3ed852e2009-09-05 21:47:34 +000020061# Build a version of ImageMagick with assert statements.
20062# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020063if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020064 enableval=$enable_assert; enable_assert=$enableval
20065else
20066 enable_assert='yes'
20067fi
20068
20069
20070if test "$enable_assert" = 'no'; then
20071
cristy8b350f62009-11-15 23:12:43 +000020072$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020073
20074fi
20075
20076# Add configure option --enable-maintainer-mode which enables dependency
20077# checking and generation useful to package maintainers. This is made an
20078# option to avoid confusing end users.
20079
cristy8b350f62009-11-15 23:12:43 +000020080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000020081$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20082 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000020083if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020084 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20085else
20086 USE_MAINTAINER_MODE=no
20087fi
20088
cristy8b350f62009-11-15 23:12:43 +000020089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000020090$as_echo "$USE_MAINTAINER_MODE" >&6; }
20091 if test $USE_MAINTAINER_MODE = yes; then
20092 MAINTAINER_MODE_TRUE=
20093 MAINTAINER_MODE_FALSE='#'
20094else
20095 MAINTAINER_MODE_TRUE='#'
20096 MAINTAINER_MODE_FALSE=
20097fi
20098
20099 MAINT=$MAINTAINER_MODE_TRUE
20100
20101
20102
20103
20104# Enable ccmalloc memory debugging support
20105# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020106if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020107 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20108else
20109 enable_ccmalloc='no'
20110fi
20111
20112
20113# Enable Electric Fence memory debugging support
20114# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020115if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020116 enableval=$enable_efence; enable_efence=$enableval
20117else
20118 enable_efence='no'
20119fi
20120
20121
20122# Enable prof-based profiling support
20123# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020124if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020125 enableval=$enable_prof; enable_prof=$enableval
20126else
20127 enable_prof='no'
20128fi
20129
20130
20131# Enable gprof-based profiling support
20132# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020133if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020134 enableval=$enable_gprof; enable_gprof=$enableval
20135else
20136 enable_gprof='no'
20137fi
20138
20139
20140# Enable gcov-based profiling support
20141# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020142if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020143 enableval=$enable_gcov; enable_gcov=$enableval
20144else
20145 enable_gcov='no'
20146fi
20147
20148
20149enable_profiling='no'
20150if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20151 enable_profiling='yes'
20152 if test "$libtool_build_shared_libs" = 'yes'; then
20153 echo "Warning: Can not profile code using shared libraries"
20154 fi
20155fi
20156
20157# Magick API method prefix
20158
20159# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020160if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020161 withval=$with_method_prefix; with_method_prefix=$enableval
20162else
20163 with_method_prefix=''
20164fi
20165
20166
20167if test "$with_method_prefix" != ''; then
20168
20169cat >>confdefs.h <<_ACEOF
20170#define NAMESPACE_PREFIX $with_method_prefix
20171_ACEOF
20172
20173fi
20174
20175# Number of bits in a Quantum
20176
20177# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020178if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020179 withval=$with_quantum_depth; with_quantum_depth=$withval
20180else
20181 with_quantum_depth=16
20182fi
20183
20184
20185if test "$with_quantum_depth" != '8'; then
20186 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20187fi
20188
20189case "${with_quantum_depth}" in
20190 8 ) ;;
20191 16 ) ;;
20192 32 ) ;;
20193 64 ) ;;
cristy0684af42010-07-09 00:00:05 +000020194 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000020195esac
20196QUANTUM_DEPTH="$with_quantum_depth"
20197
20198cat >>confdefs.h <<_ACEOF
20199#define QUANTUM_DEPTH $QUANTUM_DEPTH
20200_ACEOF
20201
20202
20203# Set pixel cache threshold
20204
20205# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000020206if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020207 withval=$with_cache; with_cache=$withval
20208else
20209 with_cache=''
20210fi
20211
20212
20213if test "$with_cache" != ''; then
20214
20215cat >>confdefs.h <<_ACEOF
20216#define PixelCacheThreshold $with_cache
20217_ACEOF
20218
20219 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20220fi
20221
20222# Disable/Enable support for full delegate paths
20223
20224# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000020225if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020226 withval=$with_frozenpaths; with_frozenpaths=$withval
20227else
20228 with_frozenpaths='no'
20229fi
20230
20231
20232# Enable build/install of Magick++
20233
20234# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000020235if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020236 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20237else
20238 with_magick_plus_plus='yes'
20239fi
20240
20241
20242# Disable build/install of PerlMagick.
20243
20244# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000020245if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020246 withval=$with_perl; with_perl=$withval
20247else
cristyb5f4e2f2010-04-25 00:49:11 +000020248 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000020249fi
20250
20251
20252# Options to pass when configuring PerlMagick
20253
20254# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000020255if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000020256 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000020257fi
20258
20259
cristy3ed852e2009-09-05 21:47:34 +000020260
20261# Enable umem, object-caching memory allocation library.
20262
20263# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000020264if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020265 withval=$with_umem; with_umem=$withval
20266else
20267 with_umem='no'
20268fi
20269
20270if test "$with_umem" != 'yes' ; then
20271 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20272fi
20273
20274#
20275# Specify path to shared libstdc++ if not in normal location
20276#
20277
20278# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000020279if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020280 withval=$with_libstdc; with_libstdc=$withval
20281else
20282 with_libstdc=''
20283fi
20284
20285
20286if test "$with_libstdc" != ''; then
20287 if test -d "$with_libstdc"; then
20288 LIBSTDCLDFLAGS="-L$with_libstdc"
20289 fi
20290fi
20291
20292
20293# Does gcc required -traditional?
20294if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000020295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020296$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020297if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020298 $as_echo_n "(cached) " >&6
20299else
20300 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000020301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020302/* end confdefs.h. */
20303#include <sgtty.h>
20304Autoconf TIOCGETP
20305_ACEOF
20306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020307 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020308 ac_cv_prog_gcc_traditional=yes
20309else
20310 ac_cv_prog_gcc_traditional=no
20311fi
20312rm -f conftest*
20313
20314
20315 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000020316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020317/* end confdefs.h. */
20318#include <termio.h>
20319Autoconf TCGETA
20320_ACEOF
20321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020322 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020323 ac_cv_prog_gcc_traditional=yes
20324fi
20325rm -f conftest*
20326
20327 fi
20328fi
cristy8b350f62009-11-15 23:12:43 +000020329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020330$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20331 if test $ac_cv_prog_gcc_traditional = yes; then
20332 CC="$CC -traditional"
20333 fi
20334fi
20335
20336
20337########
20338#
20339# Set defines required to build DLLs and modules using MinGW
20340#
20341########
20342# These options are set for multi-thread DLL module build
20343# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20344# module: _DLL
20345# executable/Magick++: _DLL _MAGICKMOD_
20346MODULE_EXTRA_CPPFLAGS=''
20347LIBRARY_EXTRA_CPPFLAGS=''
20348if test "${native_win32_build}" = 'yes'; then
20349 if test "${libtool_build_shared_libs}" = 'yes'; then
20350 CPPFLAGS="$CPPFLAGS -D_DLL"
20351 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20352 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20353 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20354 if test "$with_modules" = 'yes'; then
20355 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20356 else
20357 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20358 fi
20359 else
20360 CPPFLAGS="$CPPFLAGS -D_LIB"
20361 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20362 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20363 fi
20364 if test "$with_threads" = 'yes'; then
20365 CPPFLAGS="$CPPFLAGS -D_MT"
20366 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20367 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20368 fi
20369fi
20370
20371
20372
20373# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000020374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000020375$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020376if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020377 $as_echo_n "(cached) " >&6
20378else
cristy8b350f62009-11-15 23:12:43 +000020379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020380/* end confdefs.h. */
20381#include <stdlib.h>
20382#include <stdarg.h>
20383#include <string.h>
20384#include <float.h>
20385
20386int
20387main ()
20388{
20389
20390 ;
20391 return 0;
20392}
20393_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020394if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020395 ac_cv_header_stdc=yes
20396else
cristy8b350f62009-11-15 23:12:43 +000020397 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020398fi
cristy3ed852e2009-09-05 21:47:34 +000020399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20400
20401if test $ac_cv_header_stdc = yes; then
20402 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020404/* end confdefs.h. */
20405#include <string.h>
20406
20407_ACEOF
20408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020409 $EGREP "memchr" >/dev/null 2>&1; then :
20410
cristy3ed852e2009-09-05 21:47:34 +000020411else
20412 ac_cv_header_stdc=no
20413fi
20414rm -f conftest*
20415
20416fi
20417
20418if test $ac_cv_header_stdc = yes; then
20419 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020421/* end confdefs.h. */
20422#include <stdlib.h>
20423
20424_ACEOF
20425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020426 $EGREP "free" >/dev/null 2>&1; then :
20427
cristy3ed852e2009-09-05 21:47:34 +000020428else
20429 ac_cv_header_stdc=no
20430fi
20431rm -f conftest*
20432
20433fi
20434
20435if test $ac_cv_header_stdc = yes; then
20436 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000020437 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020438 :
20439else
cristy8b350f62009-11-15 23:12:43 +000020440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020441/* end confdefs.h. */
20442#include <ctype.h>
20443#include <stdlib.h>
20444#if ((' ' & 0x0FF) == 0x020)
20445# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20446# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20447#else
20448# define ISLOWER(c) \
20449 (('a' <= (c) && (c) <= 'i') \
20450 || ('j' <= (c) && (c) <= 'r') \
20451 || ('s' <= (c) && (c) <= 'z'))
20452# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20453#endif
20454
20455#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20456int
20457main ()
20458{
20459 int i;
20460 for (i = 0; i < 256; i++)
20461 if (XOR (islower (i), ISLOWER (i))
20462 || toupper (i) != TOUPPER (i))
20463 return 2;
20464 return 0;
20465}
20466_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020467if ac_fn_c_try_run "$LINENO"; then :
20468
cristy3ed852e2009-09-05 21:47:34 +000020469else
cristy8b350f62009-11-15 23:12:43 +000020470 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020471fi
cristy8b350f62009-11-15 23:12:43 +000020472rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20473 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020474fi
20475
cristy3ed852e2009-09-05 21:47:34 +000020476fi
20477fi
cristy8b350f62009-11-15 23:12:43 +000020478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000020479$as_echo "$ac_cv_header_stdc" >&6; }
20480if test $ac_cv_header_stdc = yes; then
20481
cristy8b350f62009-11-15 23:12:43 +000020482$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020483
20484fi
20485
20486if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000020487 { $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 +000020488 header files. Compilation cannot proceed. Please install the ANSI C
20489 headers and rerun this script." >&5
20490$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20491 header files. Compilation cannot proceed. Please install the ANSI C
20492 headers and rerun this script." >&2;};
20493fi
cristya0b81c32010-01-22 02:54:33 +000020494
20495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20496$as_echo_n "checking whether to enable assertions... " >&6; }
20497 # Check whether --enable-assert was given.
20498if test "${enable_assert+set}" = set; then :
20499 enableval=$enable_assert; ac_enable_assert=$enableval
20500 if test "x$enableval" = xno; then :
20501
20502$as_echo "#define NDEBUG 1" >>confdefs.h
20503
20504elif test "x$enableval" != xyes; then :
20505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20506$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20507 ac_enable_assert=yes
20508fi
20509else
20510 ac_enable_assert=yes
20511fi
20512
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20514$as_echo "$ac_enable_assert" >&6; }
20515
cristy3ed852e2009-09-05 21:47:34 +000020516ac_header_dirent=no
20517for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20518 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020520$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy0684af42010-07-09 00:00:05 +000020521if eval "test \"\${$as_ac_Header+set}\"" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020522 $as_echo_n "(cached) " >&6
20523else
cristy8b350f62009-11-15 23:12:43 +000020524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020525/* end confdefs.h. */
20526#include <sys/types.h>
20527#include <$ac_hdr>
20528
20529int
20530main ()
20531{
20532if ((DIR *) 0)
20533return 0;
20534 ;
20535 return 0;
20536}
20537_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020538if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020539 eval "$as_ac_Header=yes"
20540else
cristy8b350f62009-11-15 23:12:43 +000020541 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020542fi
cristy3ed852e2009-09-05 21:47:34 +000020543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20544fi
cristy8b350f62009-11-15 23:12:43 +000020545eval ac_res=\$$as_ac_Header
20546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020547$as_echo "$ac_res" >&6; }
cristy0684af42010-07-09 00:00:05 +000020548if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000020549 cat >>confdefs.h <<_ACEOF
20550#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20551_ACEOF
20552
20553ac_header_dirent=$ac_hdr; break
20554fi
20555
20556done
20557# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20558if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020560$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020561if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020562 $as_echo_n "(cached) " >&6
20563else
20564 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020566/* end confdefs.h. */
20567
20568/* Override any GCC internal prototype to avoid an error.
20569 Use char because int might match the return type of a GCC
20570 builtin and then its argument prototype would still apply. */
20571#ifdef __cplusplus
20572extern "C"
20573#endif
20574char opendir ();
20575int
20576main ()
20577{
20578return opendir ();
20579 ;
20580 return 0;
20581}
20582_ACEOF
20583for ac_lib in '' dir; do
20584 if test -z "$ac_lib"; then
20585 ac_res="none required"
20586 else
20587 ac_res=-l$ac_lib
20588 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20589 fi
cristy8b350f62009-11-15 23:12:43 +000020590 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020591 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020592fi
cristy8b350f62009-11-15 23:12:43 +000020593rm -f core conftest.err conftest.$ac_objext \
20594 conftest$ac_exeext
20595 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020596 break
20597fi
20598done
cristy8b350f62009-11-15 23:12:43 +000020599if test "${ac_cv_search_opendir+set}" = set; then :
20600
cristy3ed852e2009-09-05 21:47:34 +000020601else
20602 ac_cv_search_opendir=no
20603fi
20604rm conftest.$ac_ext
20605LIBS=$ac_func_search_save_LIBS
20606fi
cristy8b350f62009-11-15 23:12:43 +000020607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020608$as_echo "$ac_cv_search_opendir" >&6; }
20609ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020610if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020611 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20612
20613fi
20614
20615else
cristy8b350f62009-11-15 23:12:43 +000020616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020617$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020618if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020619 $as_echo_n "(cached) " >&6
20620else
20621 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020623/* end confdefs.h. */
20624
20625/* Override any GCC internal prototype to avoid an error.
20626 Use char because int might match the return type of a GCC
20627 builtin and then its argument prototype would still apply. */
20628#ifdef __cplusplus
20629extern "C"
20630#endif
20631char opendir ();
20632int
20633main ()
20634{
20635return opendir ();
20636 ;
20637 return 0;
20638}
20639_ACEOF
20640for ac_lib in '' x; do
20641 if test -z "$ac_lib"; then
20642 ac_res="none required"
20643 else
20644 ac_res=-l$ac_lib
20645 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20646 fi
cristy8b350f62009-11-15 23:12:43 +000020647 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020648 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020649fi
cristy8b350f62009-11-15 23:12:43 +000020650rm -f core conftest.err conftest.$ac_objext \
20651 conftest$ac_exeext
20652 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020653 break
20654fi
20655done
cristy8b350f62009-11-15 23:12:43 +000020656if test "${ac_cv_search_opendir+set}" = set; then :
20657
cristy3ed852e2009-09-05 21:47:34 +000020658else
20659 ac_cv_search_opendir=no
20660fi
20661rm conftest.$ac_ext
20662LIBS=$ac_func_search_save_LIBS
20663fi
cristy8b350f62009-11-15 23:12:43 +000020664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020665$as_echo "$ac_cv_search_opendir" >&6; }
20666ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020667if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020668 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20669
20670fi
20671
20672fi
20673
20674
20675# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020676for 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 +000020677do :
20678 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20679ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy0684af42010-07-09 00:00:05 +000020680if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000020681 cat >>confdefs.h <<_ACEOF
20682#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20683_ACEOF
20684
20685fi
20686
20687done
20688
20689
20690########
20691#
20692# Checks for typedefs, structures, and compiler characteristics.
20693#
20694########
20695
cristy8b350f62009-11-15 23:12:43 +000020696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020697$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020698if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020699 $as_echo_n "(cached) " >&6
20700else
cristy8b350f62009-11-15 23:12:43 +000020701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020702/* end confdefs.h. */
20703
20704#include <stdbool.h>
20705#ifndef bool
20706 "error: bool is not defined"
20707#endif
20708#ifndef false
20709 "error: false is not defined"
20710#endif
20711#if false
20712 "error: false is not 0"
20713#endif
20714#ifndef true
20715 "error: true is not defined"
20716#endif
20717#if true != 1
20718 "error: true is not 1"
20719#endif
20720#ifndef __bool_true_false_are_defined
20721 "error: __bool_true_false_are_defined is not defined"
20722#endif
20723
20724 struct s { _Bool s: 1; _Bool t; } s;
20725
20726 char a[true == 1 ? 1 : -1];
20727 char b[false == 0 ? 1 : -1];
20728 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20729 char d[(bool) 0.5 == true ? 1 : -1];
20730 bool e = &s;
20731 char f[(_Bool) 0.0 == false ? 1 : -1];
20732 char g[true];
20733 char h[sizeof (_Bool)];
20734 char i[sizeof s.t];
20735 enum { j = false, k = true, l = false * true, m = true * 256 };
20736 /* The following fails for
20737 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20738 _Bool n[m];
20739 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20740 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20741# if defined __xlc__ || defined __GNUC__
20742 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20743 reported by James Lemley on 2005-10-05; see
20744 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20745 This test is not quite right, since xlc is allowed to
20746 reject this program, as the initializer for xlcbug is
20747 not one of the forms that C requires support for.
20748 However, doing the test right would require a runtime
20749 test, and that would make cross-compilation harder.
20750 Let us hope that IBM fixes the xlc bug, and also adds
20751 support for this kind of constant expression. In the
20752 meantime, this test will reject xlc, which is OK, since
20753 our stdbool.h substitute should suffice. We also test
20754 this with GCC, where it should work, to detect more
20755 quickly whether someone messes up the test in the
20756 future. */
20757 char digs[] = "0123456789";
20758 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20759# endif
20760 /* Catch a bug in an HP-UX C compiler. See
20761 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20762 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20763 */
20764 _Bool q = true;
20765 _Bool *pq = &q;
20766
20767int
20768main ()
20769{
20770
20771 *pq |= q;
20772 *pq |= ! q;
20773 /* Refer to every declared value, to avoid compiler optimizations. */
20774 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20775 + !m + !n + !o + !p + !q + !pq);
20776
20777 ;
20778 return 0;
20779}
20780_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020781if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020782 ac_cv_header_stdbool_h=yes
20783else
cristy8b350f62009-11-15 23:12:43 +000020784 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000020785fi
cristy3ed852e2009-09-05 21:47:34 +000020786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20787fi
cristy8b350f62009-11-15 23:12:43 +000020788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000020789$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020790ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20791if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020792
20793cat >>confdefs.h <<_ACEOF
20794#define HAVE__BOOL 1
20795_ACEOF
20796
20797
20798fi
20799
20800if test $ac_cv_header_stdbool_h = yes; then
20801
cristy8b350f62009-11-15 23:12:43 +000020802$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020803
20804fi
20805
cristy8b350f62009-11-15 23:12:43 +000020806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020807$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020808if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020809 $as_echo_n "(cached) " >&6
20810else
cristy8b350f62009-11-15 23:12:43 +000020811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020812/* end confdefs.h. */
20813
20814int
20815main ()
20816{
20817
20818volatile int x;
20819int * volatile y = (int *) 0;
20820return !x && !y;
20821 ;
20822 return 0;
20823}
20824_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020825if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020826 ac_cv_c_volatile=yes
20827else
cristy8b350f62009-11-15 23:12:43 +000020828 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000020829fi
cristy3ed852e2009-09-05 21:47:34 +000020830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20831fi
cristy8b350f62009-11-15 23:12:43 +000020832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020833$as_echo "$ac_cv_c_volatile" >&6; }
20834if test $ac_cv_c_volatile = no; then
20835
cristy8b350f62009-11-15 23:12:43 +000020836$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020837
20838fi
20839
cristy8b350f62009-11-15 23:12:43 +000020840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000020841$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020842if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020843 $as_echo_n "(cached) " >&6
20844else
cristy8b350f62009-11-15 23:12:43 +000020845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020846/* end confdefs.h. */
20847#define x(y) #y
20848
20849char *s = x(teststring);
20850_ACEOF
20851if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020852 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020853 ac_cv_c_stringize=no
20854else
20855 ac_cv_c_stringize=yes
20856fi
20857rm -f conftest*
20858
20859fi
cristy8b350f62009-11-15 23:12:43 +000020860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000020861$as_echo "$ac_cv_c_stringize" >&6; }
20862if test $ac_cv_c_stringize = yes; then
20863
cristy8b350f62009-11-15 23:12:43 +000020864$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020865
20866fi
20867
cristy8b350f62009-11-15 23:12:43 +000020868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020869$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020870if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020871 $as_echo_n "(cached) " >&6
20872else
cristy8b350f62009-11-15 23:12:43 +000020873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020874/* end confdefs.h. */
20875#include <sys/types.h>
20876#include <sys/stat.h>
20877
20878#if defined S_ISBLK && defined S_IFDIR
20879extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20880#endif
20881
20882#if defined S_ISBLK && defined S_IFCHR
20883extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20884#endif
20885
20886#if defined S_ISLNK && defined S_IFREG
20887extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20888#endif
20889
20890#if defined S_ISSOCK && defined S_IFREG
20891extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20892#endif
20893
20894_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020895if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020896 ac_cv_header_stat_broken=no
20897else
cristy8b350f62009-11-15 23:12:43 +000020898 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000020899fi
cristy3ed852e2009-09-05 21:47:34 +000020900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20901fi
cristy8b350f62009-11-15 23:12:43 +000020902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020903$as_echo "$ac_cv_header_stat_broken" >&6; }
20904if test $ac_cv_header_stat_broken = yes; then
20905
cristy8b350f62009-11-15 23:12:43 +000020906$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020907
20908fi
20909
cristy8b350f62009-11-15 23:12:43 +000020910{ $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 +000020911$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020912if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020913 $as_echo_n "(cached) " >&6
20914else
cristy8b350f62009-11-15 23:12:43 +000020915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020916/* end confdefs.h. */
20917#include <sys/types.h>
20918#include <sys/time.h>
20919#include <time.h>
20920
20921int
20922main ()
20923{
20924if ((struct tm *) 0)
20925return 0;
20926 ;
20927 return 0;
20928}
20929_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020930if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020931 ac_cv_header_time=yes
20932else
cristy8b350f62009-11-15 23:12:43 +000020933 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000020934fi
cristy3ed852e2009-09-05 21:47:34 +000020935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20936fi
cristy8b350f62009-11-15 23:12:43 +000020937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000020938$as_echo "$ac_cv_header_time" >&6; }
20939if test $ac_cv_header_time = yes; then
20940
cristy8b350f62009-11-15 23:12:43 +000020941$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020942
20943fi
20944
cristy8b350f62009-11-15 23:12:43 +000020945{ $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 +000020946$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020947if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020948 $as_echo_n "(cached) " >&6
20949else
cristy8b350f62009-11-15 23:12:43 +000020950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020951/* end confdefs.h. */
20952#include <sys/types.h>
20953#include <time.h>
20954
20955int
20956main ()
20957{
20958struct tm tm;
20959 int *p = &tm.tm_sec;
20960 return !p;
20961 ;
20962 return 0;
20963}
20964_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020965if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020966 ac_cv_struct_tm=time.h
20967else
cristy8b350f62009-11-15 23:12:43 +000020968 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000020969fi
cristy3ed852e2009-09-05 21:47:34 +000020970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20971fi
cristy8b350f62009-11-15 23:12:43 +000020972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000020973$as_echo "$ac_cv_struct_tm" >&6; }
20974if test $ac_cv_struct_tm = sys/time.h; then
20975
cristy8b350f62009-11-15 23:12:43 +000020976$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020977
20978fi
20979
cristy92703d82010-04-26 00:18:18 +000020980ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
20981#include <$ac_cv_struct_tm>
20982
20983"
20984if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
20985
20986cat >>confdefs.h <<_ACEOF
20987#define HAVE_STRUCT_TM_TM_ZONE 1
20988_ACEOF
20989
20990
20991fi
20992
20993if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20994
20995$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
20996
20997else
20998 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
20999"
21000if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21001 ac_have_decl=1
21002else
21003 ac_have_decl=0
21004fi
21005
21006cat >>confdefs.h <<_ACEOF
21007#define HAVE_DECL_TZNAME $ac_have_decl
21008_ACEOF
21009
21010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21011$as_echo_n "checking for tzname... " >&6; }
21012if test "${ac_cv_var_tzname+set}" = set; then :
21013 $as_echo_n "(cached) " >&6
21014else
21015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21016/* end confdefs.h. */
21017#include <time.h>
21018#if !HAVE_DECL_TZNAME
21019extern char *tzname[];
21020#endif
21021
21022int
21023main ()
21024{
21025return tzname[0][0];
21026 ;
21027 return 0;
21028}
21029_ACEOF
21030if ac_fn_c_try_link "$LINENO"; then :
21031 ac_cv_var_tzname=yes
21032else
21033 ac_cv_var_tzname=no
21034fi
21035rm -f core conftest.err conftest.$ac_objext \
21036 conftest$ac_exeext conftest.$ac_ext
21037fi
21038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21039$as_echo "$ac_cv_var_tzname" >&6; }
21040 if test $ac_cv_var_tzname = yes; then
21041
21042$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21043
21044 fi
21045fi
21046
cristy8b350f62009-11-15 23:12:43 +000021047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021048$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021049if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021050 $as_echo_n "(cached) " >&6
21051else
21052 echo '#! /bin/cat
21053exit 69
21054' >conftest
21055chmod u+x conftest
21056(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21057if test $? -ne 69; then
21058 ac_cv_sys_interpreter=yes
21059else
21060 ac_cv_sys_interpreter=no
21061fi
21062rm -f conftest
21063fi
cristy8b350f62009-11-15 23:12:43 +000021064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021065$as_echo "$ac_cv_sys_interpreter" >&6; }
21066interpval=$ac_cv_sys_interpreter
21067
21068
cristy3ed852e2009-09-05 21:47:34 +000021069# If the C compiler supports the keyword inline, do nothing. Otherwise
21070# define inline to __inline__ or __inline if it accepts one of those,
21071# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021073$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021074if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021075 $as_echo_n "(cached) " >&6
21076else
21077 ac_cv_c_inline=no
21078for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021080/* end confdefs.h. */
21081#ifndef __cplusplus
21082typedef int foo_t;
21083static $ac_kw foo_t static_foo () {return 0; }
21084$ac_kw foo_t foo () {return 0; }
21085#endif
21086
21087_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021088if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021089 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021090fi
cristy3ed852e2009-09-05 21:47:34 +000021091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21092 test "$ac_cv_c_inline" != no && break
21093done
21094
21095fi
cristy8b350f62009-11-15 23:12:43 +000021096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021097$as_echo "$ac_cv_c_inline" >&6; }
21098
cristy3ed852e2009-09-05 21:47:34 +000021099case $ac_cv_c_inline in
21100 inline | yes) ;;
21101 *)
21102 case $ac_cv_c_inline in
21103 no) ac_val=;;
21104 *) ac_val=$ac_cv_c_inline;;
21105 esac
21106 cat >>confdefs.h <<_ACEOF
21107#ifndef __cplusplus
21108#define inline $ac_val
21109#endif
21110_ACEOF
21111 ;;
21112esac
21113
21114
21115# If the C compiler supports the keyword restrict, do nothing. Otherwise
21116# define restrict to __restrict__ or __restrict if it accepts one of those,
21117# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021119$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021120if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021121 $as_echo_n "(cached) " >&6
21122else
21123 ac_cv_c_restrict=no
21124 # The order here caters to the fact that C++ does not require restrict.
21125 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021127/* end confdefs.h. */
21128typedef int * int_ptr;
21129 int foo (int_ptr $ac_kw ip) {
21130 return ip[0];
21131 }
21132int
21133main ()
21134{
21135int s[1];
21136 int * $ac_kw t = s;
21137 t[0] = 0;
21138 return foo(t)
21139 ;
21140 return 0;
21141}
21142_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021143if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021144 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021145fi
cristy3ed852e2009-09-05 21:47:34 +000021146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21147 test "$ac_cv_c_restrict" != no && break
21148 done
21149
21150fi
cristy8b350f62009-11-15 23:12:43 +000021151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021152$as_echo "$ac_cv_c_restrict" >&6; }
21153
cristy3ed852e2009-09-05 21:47:34 +000021154 case $ac_cv_c_restrict in
21155 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021156 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021157 ;;
21158 *) cat >>confdefs.h <<_ACEOF
21159#define restrict $ac_cv_c_restrict
21160_ACEOF
21161 ;;
21162 esac
21163
21164
21165# If words are stored with the most significant byte first (like
21166# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021168$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021169if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021170 $as_echo_n "(cached) " >&6
21171else
21172 ac_cv_c_bigendian=unknown
21173 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021175/* end confdefs.h. */
21176#ifndef __APPLE_CC__
21177 not a universal capable compiler
21178 #endif
21179 typedef int dummy;
21180
21181_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021182if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021183
21184 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021185 # there are at least two -arch flags with different values.
21186 ac_arch=
21187 ac_prev=
21188 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21189 if test -n "$ac_prev"; then
21190 case $ac_word in
21191 i?86 | x86_64 | ppc | ppc64)
21192 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21193 ac_arch=$ac_word
21194 else
21195 ac_cv_c_bigendian=universal
21196 break
21197 fi
21198 ;;
21199 esac
21200 ac_prev=
21201 elif test "x$ac_word" = "x-arch"; then
21202 ac_prev=arch
21203 fi
21204 done
cristy3ed852e2009-09-05 21:47:34 +000021205fi
cristy3ed852e2009-09-05 21:47:34 +000021206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21207 if test $ac_cv_c_bigendian = unknown; then
21208 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000021209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021210/* end confdefs.h. */
21211#include <sys/types.h>
21212 #include <sys/param.h>
21213
21214int
21215main ()
21216{
21217#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21218 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21219 && LITTLE_ENDIAN)
21220 bogus endian macros
21221 #endif
21222
21223 ;
21224 return 0;
21225}
21226_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021227if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021228 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021230/* end confdefs.h. */
21231#include <sys/types.h>
21232 #include <sys/param.h>
21233
21234int
21235main ()
21236{
21237#if BYTE_ORDER != BIG_ENDIAN
21238 not big endian
21239 #endif
21240
21241 ;
21242 return 0;
21243}
21244_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021245if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021246 ac_cv_c_bigendian=yes
21247else
cristy8b350f62009-11-15 23:12:43 +000021248 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021249fi
cristy3ed852e2009-09-05 21:47:34 +000021250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021251fi
cristy3ed852e2009-09-05 21:47:34 +000021252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21253 fi
21254 if test $ac_cv_c_bigendian = unknown; then
21255 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000021256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021257/* end confdefs.h. */
21258#include <limits.h>
21259
21260int
21261main ()
21262{
21263#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21264 bogus endian macros
21265 #endif
21266
21267 ;
21268 return 0;
21269}
21270_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021271if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021272 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021274/* end confdefs.h. */
21275#include <limits.h>
21276
21277int
21278main ()
21279{
21280#ifndef _BIG_ENDIAN
21281 not big endian
21282 #endif
21283
21284 ;
21285 return 0;
21286}
21287_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021288if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021289 ac_cv_c_bigendian=yes
21290else
cristy8b350f62009-11-15 23:12:43 +000021291 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021292fi
cristy3ed852e2009-09-05 21:47:34 +000021293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021294fi
cristy3ed852e2009-09-05 21:47:34 +000021295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21296 fi
21297 if test $ac_cv_c_bigendian = unknown; then
21298 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000021299 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021300 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000021301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021302/* end confdefs.h. */
21303short int ascii_mm[] =
21304 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21305 short int ascii_ii[] =
21306 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21307 int use_ascii (int i) {
21308 return ascii_mm[i] + ascii_ii[i];
21309 }
21310 short int ebcdic_ii[] =
21311 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21312 short int ebcdic_mm[] =
21313 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21314 int use_ebcdic (int i) {
21315 return ebcdic_mm[i] + ebcdic_ii[i];
21316 }
21317 extern int foo;
21318
21319int
21320main ()
21321{
21322return use_ascii (foo) == use_ebcdic (foo);
21323 ;
21324 return 0;
21325}
21326_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021327if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021328 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21329 ac_cv_c_bigendian=yes
21330 fi
21331 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21332 if test "$ac_cv_c_bigendian" = unknown; then
21333 ac_cv_c_bigendian=no
21334 else
21335 # finding both strings is unlikely to happen, but who knows?
21336 ac_cv_c_bigendian=unknown
21337 fi
21338 fi
cristy3ed852e2009-09-05 21:47:34 +000021339fi
cristy3ed852e2009-09-05 21:47:34 +000021340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21341else
cristy8b350f62009-11-15 23:12:43 +000021342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021343/* end confdefs.h. */
21344$ac_includes_default
21345int
21346main ()
21347{
21348
21349 /* Are we little or big endian? From Harbison&Steele. */
21350 union
21351 {
21352 long int l;
21353 char c[sizeof (long int)];
21354 } u;
21355 u.l = 1;
21356 return u.c[sizeof (long int) - 1] == 1;
21357
21358 ;
21359 return 0;
21360}
21361_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021362if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021363 ac_cv_c_bigendian=no
21364else
cristy8b350f62009-11-15 23:12:43 +000021365 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000021366fi
cristy8b350f62009-11-15 23:12:43 +000021367rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21368 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021369fi
21370
cristy3ed852e2009-09-05 21:47:34 +000021371 fi
21372fi
cristy8b350f62009-11-15 23:12:43 +000021373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021374$as_echo "$ac_cv_c_bigendian" >&6; }
21375 case $ac_cv_c_bigendian in #(
21376 yes)
cristy8b350f62009-11-15 23:12:43 +000021377 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021378;; #(
21379 no)
21380 ;; #(
21381 universal)
21382
cristy8b350f62009-11-15 23:12:43 +000021383$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021384
21385 ;; #(
21386 *)
cristy0684af42010-07-09 00:00:05 +000021387 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000021388 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021389 esac
21390
21391
21392# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021393ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21394if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021395
cristy3ed852e2009-09-05 21:47:34 +000021396else
21397
21398cat >>confdefs.h <<_ACEOF
21399#define mode_t int
21400_ACEOF
21401
21402fi
21403
21404
21405# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021406ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21407if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021408
cristy3ed852e2009-09-05 21:47:34 +000021409else
21410
21411cat >>confdefs.h <<_ACEOF
21412#define off_t long int
21413_ACEOF
21414
21415fi
21416
21417
21418# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021419ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21420if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021421
cristy3ed852e2009-09-05 21:47:34 +000021422else
21423
21424cat >>confdefs.h <<_ACEOF
21425#define pid_t int
21426_ACEOF
21427
21428fi
21429
21430
21431# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021432ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21433if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021434
cristy3ed852e2009-09-05 21:47:34 +000021435else
21436
21437cat >>confdefs.h <<_ACEOF
21438#define size_t unsigned int
21439_ACEOF
21440
21441fi
21442
21443
21444# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021445ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21446if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021447
cristy3ed852e2009-09-05 21:47:34 +000021448else
21449
21450cat >>confdefs.h <<_ACEOF
21451#define ssize_t int
21452_ACEOF
21453
21454fi
21455
21456
21457# If the C compiler supports a working long double type with more range
21458# or precision than the double type, define HAVE_LONG_DOUBLE.
21459
cristy8b350f62009-11-15 23:12:43 +000021460 { $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 +000021461$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021462if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021463 $as_echo_n "(cached) " >&6
21464else
cristy8b350f62009-11-15 23:12:43 +000021465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021466/* end confdefs.h. */
21467#include <float.h>
21468 long double const a[] =
21469 {
21470 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21471 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21472 };
21473 long double
21474 f (long double x)
21475 {
21476 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21477 + (x ? f (x) : 'c'));
21478 }
21479
21480int
21481main ()
21482{
21483static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21484 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21485 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21486 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21487 && (int) LDBL_EPSILON == 0
21488 )];
21489test_array [0] = 0
21490
21491 ;
21492 return 0;
21493}
21494_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021495if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021496 ac_cv_type_long_double_wider=yes
21497else
cristy8b350f62009-11-15 23:12:43 +000021498 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000021499fi
cristy3ed852e2009-09-05 21:47:34 +000021500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21501fi
cristy8b350f62009-11-15 23:12:43 +000021502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000021503$as_echo "$ac_cv_type_long_double_wider" >&6; }
21504 if test $ac_cv_type_long_double_wider = yes; then
21505
cristy8b350f62009-11-15 23:12:43 +000021506$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021507
21508 fi
21509
21510
21511# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21512# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000021513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021514$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021515if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021516 $as_echo_n "(cached) " >&6
21517else
cristy8b350f62009-11-15 23:12:43 +000021518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021519/* end confdefs.h. */
21520$ac_includes_default
21521int
21522main ()
21523{
21524static int test_array [1 - 2 * !(((char) -1) < 0)];
21525test_array [0] = 0
21526
21527 ;
21528 return 0;
21529}
21530_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021531if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021532 ac_cv_c_char_unsigned=no
21533else
cristy8b350f62009-11-15 23:12:43 +000021534 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000021535fi
cristy3ed852e2009-09-05 21:47:34 +000021536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21537fi
cristy8b350f62009-11-15 23:12:43 +000021538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021539$as_echo "$ac_cv_c_char_unsigned" >&6; }
21540if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000021541 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021542
21543fi
21544
21545
21546# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21547# The cast to long int works around a bug in the HP C Compiler
21548# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21549# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21550# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021552$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021553if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021554 $as_echo_n "(cached) " >&6
21555else
cristy8b350f62009-11-15 23:12:43 +000021556 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 +000021557
cristy3ed852e2009-09-05 21:47:34 +000021558else
cristy8b350f62009-11-15 23:12:43 +000021559 if test "$ac_cv_type_signed_short" = yes; then
21560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +000021562as_fn_error 77 "cannot compute sizeof (signed short)
21563See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021564 else
21565 ac_cv_sizeof_signed_short=0
21566 fi
21567fi
cristy8b350f62009-11-15 23:12:43 +000021568
cristy3ed852e2009-09-05 21:47:34 +000021569fi
cristy8b350f62009-11-15 23:12:43 +000021570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021571$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21572
21573
21574
21575cat >>confdefs.h <<_ACEOF
21576#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21577_ACEOF
21578
21579
21580
21581# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21582# The cast to long int works around a bug in the HP C Compiler
21583# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21584# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21585# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021587$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021588if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021589 $as_echo_n "(cached) " >&6
21590else
cristy8b350f62009-11-15 23:12:43 +000021591 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 +000021592
cristy3ed852e2009-09-05 21:47:34 +000021593else
cristy8b350f62009-11-15 23:12:43 +000021594 if test "$ac_cv_type_unsigned_short" = yes; then
21595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +000021597as_fn_error 77 "cannot compute sizeof (unsigned short)
21598See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021599 else
21600 ac_cv_sizeof_unsigned_short=0
21601 fi
21602fi
cristy8b350f62009-11-15 23:12:43 +000021603
cristy3ed852e2009-09-05 21:47:34 +000021604fi
cristy8b350f62009-11-15 23:12:43 +000021605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021606$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21607
21608
21609
21610cat >>confdefs.h <<_ACEOF
21611#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21612_ACEOF
21613
21614
21615
21616# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21617# The cast to long int works around a bug in the HP C Compiler
21618# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21619# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21620# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021622$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021623if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021624 $as_echo_n "(cached) " >&6
21625else
cristy8b350f62009-11-15 23:12:43 +000021626 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 +000021627
cristy3ed852e2009-09-05 21:47:34 +000021628else
cristy8b350f62009-11-15 23:12:43 +000021629 if test "$ac_cv_type_signed_int" = yes; then
21630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +000021632as_fn_error 77 "cannot compute sizeof (signed int)
21633See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021634 else
21635 ac_cv_sizeof_signed_int=0
21636 fi
21637fi
cristy8b350f62009-11-15 23:12:43 +000021638
cristy3ed852e2009-09-05 21:47:34 +000021639fi
cristy8b350f62009-11-15 23:12:43 +000021640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021641$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21642
21643
21644
21645cat >>confdefs.h <<_ACEOF
21646#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21647_ACEOF
21648
21649
21650
21651# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21652# The cast to long int works around a bug in the HP C Compiler
21653# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21654# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21655# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021657$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021658if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021659 $as_echo_n "(cached) " >&6
21660else
cristy8b350f62009-11-15 23:12:43 +000021661 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 +000021662
cristy3ed852e2009-09-05 21:47:34 +000021663else
cristy8b350f62009-11-15 23:12:43 +000021664 if test "$ac_cv_type_unsigned_int" = yes; then
21665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021666$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +000021667as_fn_error 77 "cannot compute sizeof (unsigned int)
21668See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021669 else
21670 ac_cv_sizeof_unsigned_int=0
21671 fi
21672fi
cristy8b350f62009-11-15 23:12:43 +000021673
cristy3ed852e2009-09-05 21:47:34 +000021674fi
cristy8b350f62009-11-15 23:12:43 +000021675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021676$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21677
21678
21679
21680cat >>confdefs.h <<_ACEOF
21681#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21682_ACEOF
21683
21684
21685
21686# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21687# The cast to long int works around a bug in the HP C Compiler
21688# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21689# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21690# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021692$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021693if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021694 $as_echo_n "(cached) " >&6
21695else
cristy8b350f62009-11-15 23:12:43 +000021696 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 +000021697
cristy3ed852e2009-09-05 21:47:34 +000021698else
cristy8b350f62009-11-15 23:12:43 +000021699 if test "$ac_cv_type_signed_long" = yes; then
21700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021701$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +000021702as_fn_error 77 "cannot compute sizeof (signed long)
21703See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021704 else
21705 ac_cv_sizeof_signed_long=0
21706 fi
21707fi
cristy8b350f62009-11-15 23:12:43 +000021708
cristy3ed852e2009-09-05 21:47:34 +000021709fi
cristy8b350f62009-11-15 23:12:43 +000021710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021711$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21712
21713
21714
21715cat >>confdefs.h <<_ACEOF
21716#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21717_ACEOF
21718
21719
21720
21721# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21722# The cast to long int works around a bug in the HP C Compiler
21723# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21724# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21725# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021727$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021728if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021729 $as_echo_n "(cached) " >&6
21730else
cristy8b350f62009-11-15 23:12:43 +000021731 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 +000021732
cristy3ed852e2009-09-05 21:47:34 +000021733else
cristy8b350f62009-11-15 23:12:43 +000021734 if test "$ac_cv_type_unsigned_long" = yes; then
21735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021736$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +000021737as_fn_error 77 "cannot compute sizeof (unsigned long)
21738See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021739 else
21740 ac_cv_sizeof_unsigned_long=0
21741 fi
21742fi
cristy8b350f62009-11-15 23:12:43 +000021743
cristy3ed852e2009-09-05 21:47:34 +000021744fi
cristy8b350f62009-11-15 23:12:43 +000021745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021746$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21747
21748
21749
21750cat >>confdefs.h <<_ACEOF
21751#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21752_ACEOF
21753
21754
21755
21756# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21757# 'signed long long' is not supported then the value defined is zero.
21758# The cast to long int works around a bug in the HP C Compiler
21759# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21760# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21761# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021763$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021764if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021765 $as_echo_n "(cached) " >&6
21766else
cristy8b350f62009-11-15 23:12:43 +000021767 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 +000021768
cristy3ed852e2009-09-05 21:47:34 +000021769else
cristy8b350f62009-11-15 23:12:43 +000021770 if test "$ac_cv_type_signed_long_long" = yes; then
21771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021772$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +000021773as_fn_error 77 "cannot compute sizeof (signed long long)
21774See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021775 else
21776 ac_cv_sizeof_signed_long_long=0
21777 fi
21778fi
cristy8b350f62009-11-15 23:12:43 +000021779
cristy3ed852e2009-09-05 21:47:34 +000021780fi
cristy8b350f62009-11-15 23:12:43 +000021781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021782$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21783
21784
21785
21786cat >>confdefs.h <<_ACEOF
21787#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21788_ACEOF
21789
21790
21791
21792# Obtain size of a 'unsigned long long' and define as
21793# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
21794# supported then the value defined is zero.
21795# The cast to long int works around a bug in the HP C Compiler
21796# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21797# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21798# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021800$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021801if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021802 $as_echo_n "(cached) " >&6
21803else
cristy8b350f62009-11-15 23:12:43 +000021804 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 +000021805
cristy3ed852e2009-09-05 21:47:34 +000021806else
cristy8b350f62009-11-15 23:12:43 +000021807 if test "$ac_cv_type_unsigned_long_long" = yes; then
21808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021809$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +000021810as_fn_error 77 "cannot compute sizeof (unsigned long long)
21811See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021812 else
21813 ac_cv_sizeof_unsigned_long_long=0
21814 fi
21815fi
cristy8b350f62009-11-15 23:12:43 +000021816
cristy3ed852e2009-09-05 21:47:34 +000021817fi
cristy8b350f62009-11-15 23:12:43 +000021818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021819$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
21820
21821
21822
21823cat >>confdefs.h <<_ACEOF
21824#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21825_ACEOF
21826
21827
21828
21829# Obtain size of off_t and define as SIZEOF_OFF_T
21830# The cast to long int works around a bug in the HP C Compiler
21831# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21832# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21833# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021835$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021836if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021837 $as_echo_n "(cached) " >&6
21838else
cristy8b350f62009-11-15 23:12:43 +000021839 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 +000021840
cristy3ed852e2009-09-05 21:47:34 +000021841else
cristy8b350f62009-11-15 23:12:43 +000021842 if test "$ac_cv_type_off_t" = yes; then
21843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021844$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +000021845as_fn_error 77 "cannot compute sizeof (off_t)
21846See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021847 else
21848 ac_cv_sizeof_off_t=0
21849 fi
21850fi
cristy8b350f62009-11-15 23:12:43 +000021851
cristy3ed852e2009-09-05 21:47:34 +000021852fi
cristy8b350f62009-11-15 23:12:43 +000021853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021854$as_echo "$ac_cv_sizeof_off_t" >&6; }
21855
21856
21857
21858cat >>confdefs.h <<_ACEOF
21859#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21860_ACEOF
21861
21862
21863
21864# Obtain size of size_t and define as SIZEOF_SIZE_T
21865# The cast to long int works around a bug in the HP C Compiler
21866# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21867# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21868# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021870$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021871if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021872 $as_echo_n "(cached) " >&6
21873else
cristy8b350f62009-11-15 23:12:43 +000021874 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 +000021875
cristy3ed852e2009-09-05 21:47:34 +000021876else
cristy8b350f62009-11-15 23:12:43 +000021877 if test "$ac_cv_type_size_t" = yes; then
21878 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021879$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +000021880as_fn_error 77 "cannot compute sizeof (size_t)
21881See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021882 else
21883 ac_cv_sizeof_size_t=0
21884 fi
21885fi
cristy8b350f62009-11-15 23:12:43 +000021886
cristy3ed852e2009-09-05 21:47:34 +000021887fi
cristy8b350f62009-11-15 23:12:43 +000021888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021889$as_echo "$ac_cv_sizeof_size_t" >&6; }
21890
21891
21892
21893cat >>confdefs.h <<_ACEOF
21894#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21895_ACEOF
21896
21897
21898
cristy330e9352010-06-01 18:42:49 +000021899# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
21900# The cast to long int works around a bug in the HP C Compiler
21901# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21902# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21903# This bug is HP SR number 8606223364.
21904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
21905$as_echo_n "checking size of ssize_t... " >&6; }
21906if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
21907 $as_echo_n "(cached) " >&6
21908else
21909 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
21910
21911else
21912 if test "$ac_cv_type_ssize_t" = yes; then
21913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21914$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +000021915as_fn_error 77 "cannot compute sizeof (ssize_t)
21916See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000021917 else
21918 ac_cv_sizeof_ssize_t=0
21919 fi
21920fi
21921
21922fi
21923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
21924$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
21925
21926
21927
21928cat >>confdefs.h <<_ACEOF
21929#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
21930_ACEOF
21931
21932
21933
cristy3ed852e2009-09-05 21:47:34 +000021934# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
21935# The cast to long int works around a bug in the HP C Compiler
21936# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21937# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21938# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000021940$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021941if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021942 $as_echo_n "(cached) " >&6
21943else
cristy8b350f62009-11-15 23:12:43 +000021944 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 +000021945
cristy3ed852e2009-09-05 21:47:34 +000021946else
cristy8b350f62009-11-15 23:12:43 +000021947 if test "$ac_cv_type_unsigned_intp" = yes; then
21948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021949$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy0684af42010-07-09 00:00:05 +000021950as_fn_error 77 "cannot compute sizeof (unsigned int*)
21951See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021952 else
21953 ac_cv_sizeof_unsigned_intp=0
21954 fi
21955fi
cristy8b350f62009-11-15 23:12:43 +000021956
cristy3ed852e2009-09-05 21:47:34 +000021957fi
cristy8b350f62009-11-15 23:12:43 +000021958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021959$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
21960
21961
21962
21963cat >>confdefs.h <<_ACEOF
21964#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
21965_ACEOF
21966
21967
21968
21969#
21970# Compute sized types for current CPU and compiler options.
21971#
21972
cristy8b350f62009-11-15 23:12:43 +000021973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021974$as_echo_n "checking for signed 8-bit type... " >&6; }
21975INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000021976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021977$as_echo "$INT8_T" >&6; }
21978
21979
cristy8b350f62009-11-15 23:12:43 +000021980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021981$as_echo_n "checking for unsigned 8-bit type... " >&6; }
21982UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000021983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021984$as_echo "$UINT8_T" >&6; }
21985
21986
cristy8b350f62009-11-15 23:12:43 +000021987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021988$as_echo_n "checking for signed 16-bit type... " >&6; }
21989INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000021990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021991$as_echo "$INT16_T" >&6; }
21992
21993
cristy8b350f62009-11-15 23:12:43 +000021994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021995$as_echo_n "checking for unsigned 16-bit type... " >&6; }
21996UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000021997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021998$as_echo "$UINT16_T" >&6; }
21999
22000
cristy8b350f62009-11-15 23:12:43 +000022001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022002$as_echo_n "checking for signed 32-bit type... " >&6; }
22003INT32_T='none'
22004if test $ac_cv_sizeof_signed_int -eq 4; then
22005 INT32_T='signed int'
22006elif test $ac_cv_sizeof_signed_long -eq 4; then
22007 INT32_T='signed long'
22008fi
cristy8b350f62009-11-15 23:12:43 +000022009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022010$as_echo "$INT32_T" >&6; }
22011
22012
cristy8b350f62009-11-15 23:12:43 +000022013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022014$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22015UINT32_T='none'
22016if test $ac_cv_sizeof_unsigned_int -eq 4; then
22017 UINT32_T='unsigned int'
22018elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22019 UINT32_T='unsigned long'
22020fi
cristy8b350f62009-11-15 23:12:43 +000022021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022022$as_echo "$UINT32_T" >&6; }
22023
22024
cristy8b350f62009-11-15 23:12:43 +000022025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022026$as_echo_n "checking for signed 64-bit type... " >&6; }
22027INT64_T='none'
22028if test $ac_cv_sizeof_signed_long -eq 8; then
22029 INT64_T='signed long'
22030elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22031 INT64_T='signed long long'
22032fi
cristy8b350f62009-11-15 23:12:43 +000022033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022034$as_echo "$INT64_T" >&6; }
22035
22036
cristy8b350f62009-11-15 23:12:43 +000022037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022038$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22039UINT64_T='none'
22040if test $ac_cv_sizeof_unsigned_long -eq 8; then
22041 UINT64_T='unsigned long'
22042elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22043 UINT64_T='unsigned long long'
22044fi
cristy8b350f62009-11-15 23:12:43 +000022045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022046$as_echo "$UINT64_T" >&6; }
22047
22048
cristy8b350f62009-11-15 23:12:43 +000022049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022050$as_echo_n "checking for unsigned maximum type... " >&6; }
22051UINTMAX_T='none'
22052if test "$UINT64_T" != 'none'; then
22053 UINTMAX_T=$UINT64_T
22054elif test "$UINT32_T" != 'none'; then
22055 UINTMAX_T=$UINT32_T
22056fi
cristy8b350f62009-11-15 23:12:43 +000022057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022058$as_echo "$UINTMAX_T" >&6; }
22059
22060
cristy8b350f62009-11-15 23:12:43 +000022061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022062$as_echo_n "checking for pointer difference type... " >&6; }
22063UINTPTR_T='none'
22064if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22065 UINTPTR_T='unsigned long'
22066elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22067 UINTPTR_T='unsigned long long'
22068fi
cristy8b350f62009-11-15 23:12:43 +000022069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022070$as_echo "$UINTPTR_T" >&6; }
22071
22072
cristy8b350f62009-11-15 23:12:43 +000022073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022074$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022076/* end confdefs.h. */
22077
22078int
22079main ()
22080{
22081{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22082 ;
22083 return 0;
22084}
22085_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022086if ac_fn_c_try_compile "$LINENO"; then :
22087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022088$as_echo "yes" >&6; }
22089else
cristy8b350f62009-11-15 23:12:43 +000022090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022091$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022093$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022095/* end confdefs.h. */
22096
22097int
22098main ()
22099{
22100{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22101 ;
22102 return 0;
22103}
22104_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022105if ac_fn_c_try_compile "$LINENO"; then :
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022107$as_echo "yes" >&6; }
22108
cristy8b350f62009-11-15 23:12:43 +000022109$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022110
22111else
cristy8b350f62009-11-15 23:12:43 +000022112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022113$as_echo "no" >&6; }
22114
cristy8b350f62009-11-15 23:12:43 +000022115$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022116
22117fi
cristy3ed852e2009-09-05 21:47:34 +000022118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22119fi
cristy3ed852e2009-09-05 21:47:34 +000022120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22121
22122########
22123#
22124# Check for functions
22125#
22126########
cristy3ed852e2009-09-05 21:47:34 +000022127for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000022128do :
22129 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22130ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy0684af42010-07-09 00:00:05 +000022131if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022132 cat >>confdefs.h <<_ACEOF
22133#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22134_ACEOF
22135
22136fi
22137
22138done
22139
cristy3ed852e2009-09-05 21:47:34 +000022140for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022141do :
22142 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22143if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022144 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022145#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022146_ACEOF
22147
22148fi
22149done
22150
cristy8b350f62009-11-15 23:12:43 +000022151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000022152$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022153if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022154 $as_echo_n "(cached) " >&6
22155else
cristy8b350f62009-11-15 23:12:43 +000022156 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022157 magick_cv_func_mmap_fileio=no
22158else
cristy8b350f62009-11-15 23:12:43 +000022159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022160/* end confdefs.h. */
22161$ac_includes_default
22162/* malloc might have been renamed as rpl_malloc. */
22163#undef malloc
22164
22165/*
22166 This test is derived from GNU Autoconf's similar macro.
22167 The purpose of this test is to verify that files may be memory
22168 mapped, and that memory mapping and file I/O are coherent.
22169
22170 The test creates a test file, memory maps the file, updates
22171 the file using the memory map, and then reads the file using
22172 file I/O to verify that the file contains the updates.
22173*/
22174
22175#include <fcntl.h>
22176#include <sys/mman.h>
22177
22178#if !STDC_HEADERS && !HAVE_STDLIB_H
22179char *malloc ();
22180#endif
22181
22182/* This mess was copied from the GNU getpagesize.h. */
22183#if !HAVE_GETPAGESIZE
22184/* Assume that all systems that can run configure have sys/param.h. */
22185# if !HAVE_SYS_PARAM_H
22186# define HAVE_SYS_PARAM_H 1
22187# endif
22188
22189# ifdef _SC_PAGESIZE
22190# define getpagesize() sysconf(_SC_PAGESIZE)
22191# else /* no _SC_PAGESIZE */
22192# if HAVE_SYS_PARAM_H
22193# include <sys/param.h>
22194# ifdef EXEC_PAGESIZE
22195# define getpagesize() EXEC_PAGESIZE
22196# else /* no EXEC_PAGESIZE */
22197# ifdef NBPG
22198# define getpagesize() NBPG * CLSIZE
22199# ifndef CLSIZE
22200# define CLSIZE 1
22201# endif /* no CLSIZE */
22202# else /* no NBPG */
22203# ifdef NBPC
22204# define getpagesize() NBPC
22205# else /* no NBPC */
22206# ifdef PAGESIZE
22207# define getpagesize() PAGESIZE
22208# endif /* PAGESIZE */
22209# endif /* no NBPC */
22210# endif /* no NBPG */
22211# endif /* no EXEC_PAGESIZE */
22212# else /* no HAVE_SYS_PARAM_H */
22213# define getpagesize() 8192 /* punt totally */
22214# endif /* no HAVE_SYS_PARAM_H */
22215# endif /* no _SC_PAGESIZE */
22216
22217#endif /* no HAVE_GETPAGESIZE */
22218
22219int
22220main ()
22221{
22222 char *data, *data2, *data3;
22223 int i, pagesize;
22224 int fd;
22225
22226 pagesize = getpagesize ();
22227
22228 /* First, make a file with some known garbage in it. */
22229 data = (char *) malloc (pagesize);
22230 if (!data)
22231 exit (1);
22232 for (i = 0; i < pagesize; ++i)
22233 *(data + i) = rand ();
22234 umask (0);
22235 fd = creat ("conftest.mmap", 0600);
22236 if (fd < 0)
22237 exit (1);
22238 if (write (fd, data, pagesize) != pagesize)
22239 exit (1);
22240 close (fd);
22241
22242 /* Mmap the file as read/write/shared and verify that we see the
22243 same garbage. */
22244 fd = open ("conftest.mmap", O_RDWR);
22245 if (fd < 0)
22246 exit (1);
22247 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22248 if (data2 == 0)
22249 exit (1);
22250 for (i = 0; i < pagesize; ++i)
22251 if (*(data + i) != *(data2 + i))
22252 exit (1);
22253
22254 /* Finally, make sure that changes to the mapped area
22255 percolate back to the file as seen by read(). */
22256 for (i = 0; i < pagesize; ++i)
22257 *(data2 + i) = *(data2 + i) + 1;
22258 data3 = (char *) malloc (pagesize);
22259 if (!data3)
22260 exit (1);
22261 if (read (fd, data3, pagesize) != pagesize)
22262 exit (1);
22263 for (i = 0; i < pagesize; ++i)
22264 if (*(data2 + i) != *(data3 + i))
22265 exit (1);
22266 close (fd);
22267 exit (0);
22268}
22269_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022270if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022271 magick_cv_func_mmap_fileio=yes
22272else
cristy8b350f62009-11-15 23:12:43 +000022273 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000022274fi
cristy8b350f62009-11-15 23:12:43 +000022275rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22276 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022277fi
22278
cristy3ed852e2009-09-05 21:47:34 +000022279fi
cristy8b350f62009-11-15 23:12:43 +000022280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000022281$as_echo "$magick_cv_func_mmap_fileio" >&6; }
22282if test $magick_cv_func_mmap_fileio = yes; then
22283
cristy8b350f62009-11-15 23:12:43 +000022284$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022285
22286fi
22287rm -f conftest.mmap
22288
cristy8b350f62009-11-15 23:12:43 +000022289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022290$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022291if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022292 $as_echo_n "(cached) " >&6
22293else
cristy8b350f62009-11-15 23:12:43 +000022294 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022295 ac_cv_func_closedir_void=yes
22296else
cristy8b350f62009-11-15 23:12:43 +000022297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022298/* end confdefs.h. */
22299$ac_includes_default
22300#include <$ac_header_dirent>
22301#ifndef __cplusplus
22302int closedir ();
22303#endif
22304
22305int
22306main ()
22307{
22308return closedir (opendir (".")) != 0;
22309 ;
22310 return 0;
22311}
22312_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022313if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022314 ac_cv_func_closedir_void=no
22315else
cristy8b350f62009-11-15 23:12:43 +000022316 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000022317fi
cristy8b350f62009-11-15 23:12:43 +000022318rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22319 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022320fi
22321
cristy3ed852e2009-09-05 21:47:34 +000022322fi
cristy8b350f62009-11-15 23:12:43 +000022323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022324$as_echo "$ac_cv_func_closedir_void" >&6; }
22325if test $ac_cv_func_closedir_void = yes; then
22326
cristy8b350f62009-11-15 23:12:43 +000022327$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022328
22329fi
22330
cristycd4c5312009-11-22 01:19:08 +000022331
22332
22333
22334 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000022335do :
22336 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000022337ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22338"
cristy0684af42010-07-09 00:00:05 +000022339if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022340 cat >>confdefs.h <<_ACEOF
22341#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22342_ACEOF
22343
22344fi
22345
22346done
22347
cristycd4c5312009-11-22 01:19:08 +000022348
22349
22350
22351
22352
22353
22354
cristy3ed852e2009-09-05 21:47:34 +000022355for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022356do :
22357 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22358if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022359 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022360#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022361_ACEOF
22362
22363fi
22364done
22365
cristy8b350f62009-11-15 23:12:43 +000022366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000022367$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022368if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022369 $as_echo_n "(cached) " >&6
22370else
cristy8b350f62009-11-15 23:12:43 +000022371 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022372 ac_cv_func_mmap_fixed_mapped=no
22373else
cristy8b350f62009-11-15 23:12:43 +000022374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022375/* end confdefs.h. */
22376$ac_includes_default
22377/* malloc might have been renamed as rpl_malloc. */
22378#undef malloc
22379
22380/* Thanks to Mike Haertel and Jim Avera for this test.
22381 Here is a matrix of mmap possibilities:
22382 mmap private not fixed
22383 mmap private fixed at somewhere currently unmapped
22384 mmap private fixed at somewhere already mapped
22385 mmap shared not fixed
22386 mmap shared fixed at somewhere currently unmapped
22387 mmap shared fixed at somewhere already mapped
22388 For private mappings, we should verify that changes cannot be read()
22389 back from the file, nor mmap's back from the file at a different
22390 address. (There have been systems where private was not correctly
22391 implemented like the infamous i386 svr4.0, and systems where the
22392 VM page cache was not coherent with the file system buffer cache
22393 like early versions of FreeBSD and possibly contemporary NetBSD.)
22394 For shared mappings, we should conversely verify that changes get
22395 propagated back to all the places they're supposed to be.
22396
22397 Grep wants private fixed already mapped.
22398 The main things grep needs to know about mmap are:
22399 * does it exist and is it safe to write into the mmap'd area
22400 * how to use it (BSD variants) */
22401
22402#include <fcntl.h>
22403#include <sys/mman.h>
22404
22405#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22406char *malloc ();
22407#endif
22408
22409/* This mess was copied from the GNU getpagesize.h. */
22410#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000022411# ifdef _SC_PAGESIZE
22412# define getpagesize() sysconf(_SC_PAGESIZE)
22413# else /* no _SC_PAGESIZE */
22414# ifdef HAVE_SYS_PARAM_H
22415# include <sys/param.h>
22416# ifdef EXEC_PAGESIZE
22417# define getpagesize() EXEC_PAGESIZE
22418# else /* no EXEC_PAGESIZE */
22419# ifdef NBPG
22420# define getpagesize() NBPG * CLSIZE
22421# ifndef CLSIZE
22422# define CLSIZE 1
22423# endif /* no CLSIZE */
22424# else /* no NBPG */
22425# ifdef NBPC
22426# define getpagesize() NBPC
22427# else /* no NBPC */
22428# ifdef PAGESIZE
22429# define getpagesize() PAGESIZE
22430# endif /* PAGESIZE */
22431# endif /* no NBPC */
22432# endif /* no NBPG */
22433# endif /* no EXEC_PAGESIZE */
22434# else /* no HAVE_SYS_PARAM_H */
22435# define getpagesize() 8192 /* punt totally */
22436# endif /* no HAVE_SYS_PARAM_H */
22437# endif /* no _SC_PAGESIZE */
22438
22439#endif /* no HAVE_GETPAGESIZE */
22440
22441int
22442main ()
22443{
22444 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000022445 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000022446 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000022447 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000022448
22449 pagesize = getpagesize ();
22450
22451 /* First, make a file with some known garbage in it. */
22452 data = (char *) malloc (pagesize);
22453 if (!data)
22454 return 1;
22455 for (i = 0; i < pagesize; ++i)
22456 *(data + i) = rand ();
22457 umask (0);
22458 fd = creat ("conftest.mmap", 0600);
22459 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022460 return 2;
cristy3ed852e2009-09-05 21:47:34 +000022461 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022462 return 3;
cristy3ed852e2009-09-05 21:47:34 +000022463 close (fd);
22464
cristycd4c5312009-11-22 01:19:08 +000022465 /* Next, check that the tail of a page is zero-filled. File must have
22466 non-zero length, otherwise we risk SIGBUS for entire page. */
22467 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22468 if (fd2 < 0)
22469 return 4;
cristyc54f5d42009-11-27 21:36:31 +000022470 cdata2 = "";
22471 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000022472 return 5;
cristyc54f5d42009-11-27 21:36:31 +000022473 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000022474 if (data2 == MAP_FAILED)
22475 return 6;
22476 for (i = 0; i < pagesize; ++i)
22477 if (*(data2 + i))
22478 return 7;
22479 close (fd2);
22480 if (munmap (data2, pagesize))
22481 return 8;
22482
cristy3ed852e2009-09-05 21:47:34 +000022483 /* Next, try to mmap the file at a fixed address which already has
22484 something else allocated at it. If we can, also make sure that
22485 we see the same garbage. */
22486 fd = open ("conftest.mmap", O_RDWR);
22487 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022488 return 9;
cristy3ed852e2009-09-05 21:47:34 +000022489 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22490 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000022491 return 10;
cristy3ed852e2009-09-05 21:47:34 +000022492 for (i = 0; i < pagesize; ++i)
22493 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000022494 return 11;
cristy3ed852e2009-09-05 21:47:34 +000022495
22496 /* Finally, make sure that changes to the mapped area do not
22497 percolate back to the file as seen by read(). (This is a bug on
22498 some variants of i386 svr4.0.) */
22499 for (i = 0; i < pagesize; ++i)
22500 *(data2 + i) = *(data2 + i) + 1;
22501 data3 = (char *) malloc (pagesize);
22502 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000022503 return 12;
cristy3ed852e2009-09-05 21:47:34 +000022504 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022505 return 13;
cristy3ed852e2009-09-05 21:47:34 +000022506 for (i = 0; i < pagesize; ++i)
22507 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000022508 return 14;
cristy3ed852e2009-09-05 21:47:34 +000022509 close (fd);
22510 return 0;
22511}
22512_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022513if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022514 ac_cv_func_mmap_fixed_mapped=yes
22515else
cristy8b350f62009-11-15 23:12:43 +000022516 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000022517fi
cristy8b350f62009-11-15 23:12:43 +000022518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22519 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022520fi
22521
cristy3ed852e2009-09-05 21:47:34 +000022522fi
cristy8b350f62009-11-15 23:12:43 +000022523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000022524$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22525if test $ac_cv_func_mmap_fixed_mapped = yes; then
22526
cristy8b350f62009-11-15 23:12:43 +000022527$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022528
22529fi
cristycd4c5312009-11-22 01:19:08 +000022530rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000022531
cristy3ed852e2009-09-05 21:47:34 +000022532for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000022533do :
22534 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22535if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022536 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022537#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000022538_ACEOF
22539
22540fi
22541
22542done
22543
cristy3ed852e2009-09-05 21:47:34 +000022544for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000022545do :
22546 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22547ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy0684af42010-07-09 00:00:05 +000022548if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022549 cat >>confdefs.h <<_ACEOF
22550#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22551_ACEOF
22552
22553fi
22554done
22555
22556if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022558$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022559if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022560 $as_echo_n "(cached) " >&6
22561else
cristy8b350f62009-11-15 23:12:43 +000022562 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022563 ac_cv_func_fork_works=cross
22564else
cristy8b350f62009-11-15 23:12:43 +000022565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022566/* end confdefs.h. */
22567$ac_includes_default
22568int
22569main ()
22570{
22571
22572 /* By Ruediger Kuhlmann. */
22573 return fork () < 0;
22574
22575 ;
22576 return 0;
22577}
22578_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022579if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022580 ac_cv_func_fork_works=yes
22581else
cristy8b350f62009-11-15 23:12:43 +000022582 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022583fi
cristy8b350f62009-11-15 23:12:43 +000022584rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22585 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022586fi
22587
cristy3ed852e2009-09-05 21:47:34 +000022588fi
cristy8b350f62009-11-15 23:12:43 +000022589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022590$as_echo "$ac_cv_func_fork_works" >&6; }
22591
22592else
22593 ac_cv_func_fork_works=$ac_cv_func_fork
22594fi
22595if test "x$ac_cv_func_fork_works" = xcross; then
22596 case $host in
22597 *-*-amigaos* | *-*-msdosdjgpp*)
22598 # Override, as these systems have only a dummy fork() stub
22599 ac_cv_func_fork_works=no
22600 ;;
22601 *)
22602 ac_cv_func_fork_works=yes
22603 ;;
22604 esac
cristy8b350f62009-11-15 23:12:43 +000022605 { $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 +000022606$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22607fi
22608ac_cv_func_vfork_works=$ac_cv_func_vfork
22609if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022611$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022612if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022613 $as_echo_n "(cached) " >&6
22614else
cristy8b350f62009-11-15 23:12:43 +000022615 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022616 ac_cv_func_vfork_works=cross
22617else
cristy8b350f62009-11-15 23:12:43 +000022618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022619/* end confdefs.h. */
22620/* Thanks to Paul Eggert for this test. */
22621$ac_includes_default
22622#include <sys/wait.h>
22623#ifdef HAVE_VFORK_H
22624# include <vfork.h>
22625#endif
22626/* On some sparc systems, changes by the child to local and incoming
22627 argument registers are propagated back to the parent. The compiler
22628 is told about this with #include <vfork.h>, but some compilers
22629 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22630 static variable whose address is put into a register that is
22631 clobbered by the vfork. */
22632static void
22633#ifdef __cplusplus
22634sparc_address_test (int arg)
22635# else
22636sparc_address_test (arg) int arg;
22637#endif
22638{
22639 static pid_t child;
22640 if (!child) {
22641 child = vfork ();
22642 if (child < 0) {
22643 perror ("vfork");
22644 _exit(2);
22645 }
22646 if (!child) {
22647 arg = getpid();
22648 write(-1, "", 0);
22649 _exit (arg);
22650 }
22651 }
22652}
22653
22654int
22655main ()
22656{
22657 pid_t parent = getpid ();
22658 pid_t child;
22659
22660 sparc_address_test (0);
22661
22662 child = vfork ();
22663
22664 if (child == 0) {
22665 /* Here is another test for sparc vfork register problems. This
22666 test uses lots of local variables, at least as many local
22667 variables as main has allocated so far including compiler
22668 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22669 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22670 reuse the register of parent for one of the local variables,
22671 since it will think that parent can't possibly be used any more
22672 in this routine. Assigning to the local variable will thus
22673 munge parent in the parent process. */
22674 pid_t
22675 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22676 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22677 /* Convince the compiler that p..p7 are live; otherwise, it might
22678 use the same hardware register for all 8 local variables. */
22679 if (p != p1 || p != p2 || p != p3 || p != p4
22680 || p != p5 || p != p6 || p != p7)
22681 _exit(1);
22682
22683 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22684 from child file descriptors. If the child closes a descriptor
22685 before it execs or exits, this munges the parent's descriptor
22686 as well. Test for this by closing stdout in the child. */
22687 _exit(close(fileno(stdout)) != 0);
22688 } else {
22689 int status;
22690 struct stat st;
22691
22692 while (wait(&status) != child)
22693 ;
22694 return (
22695 /* Was there some problem with vforking? */
22696 child < 0
22697
22698 /* Did the child fail? (This shouldn't happen.) */
22699 || status
22700
22701 /* Did the vfork/compiler bug occur? */
22702 || parent != getpid()
22703
22704 /* Did the file descriptor bug occur? */
22705 || fstat(fileno(stdout), &st) != 0
22706 );
22707 }
22708}
22709_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022710if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022711 ac_cv_func_vfork_works=yes
22712else
cristy8b350f62009-11-15 23:12:43 +000022713 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022714fi
cristy8b350f62009-11-15 23:12:43 +000022715rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22716 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022717fi
22718
cristy3ed852e2009-09-05 21:47:34 +000022719fi
cristy8b350f62009-11-15 23:12:43 +000022720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022721$as_echo "$ac_cv_func_vfork_works" >&6; }
22722
22723fi;
22724if test "x$ac_cv_func_fork_works" = xcross; then
22725 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022726 { $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 +000022727$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22728fi
22729
22730if test "x$ac_cv_func_vfork_works" = xyes; then
22731
cristy8b350f62009-11-15 23:12:43 +000022732$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022733
22734else
22735
cristy8b350f62009-11-15 23:12:43 +000022736$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022737
22738fi
22739if test "x$ac_cv_func_fork_works" = xyes; then
22740
cristy8b350f62009-11-15 23:12:43 +000022741$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022742
22743fi
22744
cristy8b350f62009-11-15 23:12:43 +000022745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022746$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022747if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022748 $as_echo_n "(cached) " >&6
22749else
cristy8b350f62009-11-15 23:12:43 +000022750 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022751 ac_cv_func_memcmp_working=no
22752else
cristy8b350f62009-11-15 23:12:43 +000022753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022754/* end confdefs.h. */
22755$ac_includes_default
22756int
22757main ()
22758{
22759
22760 /* Some versions of memcmp are not 8-bit clean. */
22761 char c0 = '\100', c1 = '\200', c2 = '\201';
22762 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22763 return 1;
22764
22765 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22766 or more and with at least one buffer not starting on a 4-byte boundary.
22767 William Lewis provided this test program. */
22768 {
22769 char foo[21];
22770 char bar[21];
22771 int i;
22772 for (i = 0; i < 4; i++)
22773 {
22774 char *a = foo + i;
22775 char *b = bar + i;
22776 strcpy (a, "--------01111111");
22777 strcpy (b, "--------10000000");
22778 if (memcmp (a, b, 16) >= 0)
22779 return 1;
22780 }
22781 return 0;
22782 }
22783
22784 ;
22785 return 0;
22786}
22787_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022788if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022789 ac_cv_func_memcmp_working=yes
22790else
cristy8b350f62009-11-15 23:12:43 +000022791 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000022792fi
cristy8b350f62009-11-15 23:12:43 +000022793rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22794 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022795fi
22796
cristy3ed852e2009-09-05 21:47:34 +000022797fi
cristy8b350f62009-11-15 23:12:43 +000022798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000022799$as_echo "$ac_cv_func_memcmp_working" >&6; }
22800test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22801 *" memcmp.$ac_objext "* ) ;;
22802 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22803 ;;
22804esac
22805
22806
cristy3ed852e2009-09-05 21:47:34 +000022807for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000022808do :
22809 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22810ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy0684af42010-07-09 00:00:05 +000022811if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022812 cat >>confdefs.h <<_ACEOF
22813#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22814_ACEOF
22815
22816fi
22817
22818done
22819
cristy8b350f62009-11-15 23:12:43 +000022820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000022821$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022822if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022823 $as_echo_n "(cached) " >&6
22824else
22825 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22826 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22827 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000022828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022829/* end confdefs.h. */
22830$ac_includes_default
22831#ifdef HAVE_SYS_SELECT_H
22832# include <sys/select.h>
22833#endif
22834#ifdef HAVE_SYS_SOCKET_H
22835# include <sys/socket.h>
22836#endif
22837
22838int
22839main ()
22840{
22841extern int select ($ac_arg1,
22842 $ac_arg234, $ac_arg234, $ac_arg234,
22843 $ac_arg5);
22844 ;
22845 return 0;
22846}
22847_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022848if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022849 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000022850fi
cristy3ed852e2009-09-05 21:47:34 +000022851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22852 done
22853 done
22854done
22855# Provide a safe default value.
22856: ${ac_cv_func_select_args='int,int *,struct timeval *'}
22857
22858fi
cristy8b350f62009-11-15 23:12:43 +000022859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000022860$as_echo "$ac_cv_func_select_args" >&6; }
22861ac_save_IFS=$IFS; IFS=','
22862set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22863IFS=$ac_save_IFS
22864shift
22865
22866cat >>confdefs.h <<_ACEOF
22867#define SELECT_TYPE_ARG1 $1
22868_ACEOF
22869
22870
22871cat >>confdefs.h <<_ACEOF
22872#define SELECT_TYPE_ARG234 ($2)
22873_ACEOF
22874
22875
22876cat >>confdefs.h <<_ACEOF
22877#define SELECT_TYPE_ARG5 ($3)
22878_ACEOF
22879
22880rm -f conftest*
22881
cristy8b350f62009-11-15 23:12:43 +000022882if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022883 $as_echo_n "(cached) " >&6
22884else
22885 ac_cv_func_setvbuf_reversed=no
22886fi
22887
22888
cristy8b350f62009-11-15 23:12:43 +000022889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000022890$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022891if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022892 $as_echo_n "(cached) " >&6
22893else
cristy8b350f62009-11-15 23:12:43 +000022894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022895/* end confdefs.h. */
22896#include <sys/types.h>
22897#include <signal.h>
22898
22899int
22900main ()
22901{
22902return *(signal (0, 0)) (0) == 1;
22903 ;
22904 return 0;
22905}
22906_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022907if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022908 ac_cv_type_signal=int
22909else
cristy8b350f62009-11-15 23:12:43 +000022910 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000022911fi
cristy3ed852e2009-09-05 21:47:34 +000022912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22913fi
cristy8b350f62009-11-15 23:12:43 +000022914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000022915$as_echo "$ac_cv_type_signal" >&6; }
22916
22917cat >>confdefs.h <<_ACEOF
22918#define RETSIGTYPE $ac_cv_type_signal
22919_ACEOF
22920
22921
cristy8b350f62009-11-15 23:12:43 +000022922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022923$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022924if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022925 $as_echo_n "(cached) " >&6
22926else
cristy8b350f62009-11-15 23:12:43 +000022927 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022928 ac_cv_func_strtod=no
22929else
cristy8b350f62009-11-15 23:12:43 +000022930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022931/* end confdefs.h. */
22932
22933$ac_includes_default
22934#ifndef strtod
22935double strtod ();
22936#endif
22937int
22938main()
22939{
22940 {
22941 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
22942 char *string = " +69";
22943 char *term;
22944 double value;
22945 value = strtod (string, &term);
22946 if (value != 69 || term != (string + 4))
22947 return 1;
22948 }
22949
22950 {
22951 /* Under Solaris 2.4, strtod returns the wrong value for the
22952 terminating character under some conditions. */
22953 char *string = "NaN";
22954 char *term;
22955 strtod (string, &term);
22956 if (term != string && *(term - 1) == 0)
22957 return 1;
22958 }
22959 return 0;
22960}
22961
22962_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022963if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022964 ac_cv_func_strtod=yes
22965else
cristy8b350f62009-11-15 23:12:43 +000022966 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000022967fi
cristy8b350f62009-11-15 23:12:43 +000022968rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22969 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022970fi
22971
cristy3ed852e2009-09-05 21:47:34 +000022972fi
cristy8b350f62009-11-15 23:12:43 +000022973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022974$as_echo "$ac_cv_func_strtod" >&6; }
22975if test $ac_cv_func_strtod = no; then
22976 case " $LIBOBJS " in
22977 *" strtod.$ac_objext "* ) ;;
22978 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
22979 ;;
22980esac
22981
cristy8b350f62009-11-15 23:12:43 +000022982ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
22983if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022984
cristy3ed852e2009-09-05 21:47:34 +000022985fi
22986
cristy3ed852e2009-09-05 21:47:34 +000022987if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000022988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022989$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022990if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022991 $as_echo_n "(cached) " >&6
22992else
22993 ac_check_lib_save_LIBS=$LIBS
22994LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022996/* end confdefs.h. */
22997
22998/* Override any GCC internal prototype to avoid an error.
22999 Use char because int might match the return type of a GCC
23000 builtin and then its argument prototype would still apply. */
23001#ifdef __cplusplus
23002extern "C"
23003#endif
23004char pow ();
23005int
23006main ()
23007{
23008return pow ();
23009 ;
23010 return 0;
23011}
23012_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023013if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023014 ac_cv_lib_m_pow=yes
23015else
cristy8b350f62009-11-15 23:12:43 +000023016 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023017fi
cristy8b350f62009-11-15 23:12:43 +000023018rm -f core conftest.err conftest.$ac_objext \
23019 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023020LIBS=$ac_check_lib_save_LIBS
23021fi
cristy8b350f62009-11-15 23:12:43 +000023022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023023$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023024if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023025 POW_LIB=-lm
23026else
cristy8b350f62009-11-15 23:12:43 +000023027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023028$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23029fi
23030
23031fi
23032
23033fi
23034
cristy3ed852e2009-09-05 21:47:34 +000023035for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023036do :
23037 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23038if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023039 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023040#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023041_ACEOF
23042
cristy8b350f62009-11-15 23:12:43 +000023043ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23044if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023045
cristy8b350f62009-11-15 23:12:43 +000023046$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023047
23048fi
23049
23050fi
23051done
23052
23053
23054
cristy161b9262010-03-20 19:34:32 +000023055#
23056# Find math library
23057#
23058MATH_LIBS=''
23059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23060$as_echo_n "checking for sqrt in -lm... " >&6; }
23061if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23062 $as_echo_n "(cached) " >&6
23063else
23064 ac_check_lib_save_LIBS=$LIBS
23065LIBS="-lm $LIBS"
23066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23067/* end confdefs.h. */
23068
23069/* Override any GCC internal prototype to avoid an error.
23070 Use char because int might match the return type of a GCC
23071 builtin and then its argument prototype would still apply. */
23072#ifdef __cplusplus
23073extern "C"
23074#endif
23075char sqrt ();
23076int
23077main ()
23078{
23079return sqrt ();
23080 ;
23081 return 0;
23082}
23083_ACEOF
23084if ac_fn_c_try_link "$LINENO"; then :
23085 ac_cv_lib_m_sqrt=yes
23086else
23087 ac_cv_lib_m_sqrt=no
23088fi
23089rm -f core conftest.err conftest.$ac_objext \
23090 conftest$ac_exeext conftest.$ac_ext
23091LIBS=$ac_check_lib_save_LIBS
23092fi
23093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23094$as_echo "$ac_cv_lib_m_sqrt" >&6; }
23095if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23096 MATH_LIBS="-lm"
23097fi
23098
23099LIBS="$MATH_LIBS $LIBS"
23100
23101
cristyc6c08ab2010-07-24 23:50:09 +000023102for ac_func in _exit atexit cimag clock directio execvp fchmod floor fork ftime ftruncate getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 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 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 usleep utime vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000023103do :
23104 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23105ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy0684af42010-07-09 00:00:05 +000023106if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023107 cat >>confdefs.h <<_ACEOF
23108#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23109_ACEOF
23110
23111fi
23112done
23113
23114
cristye43a45e2009-09-28 14:49:00 +000023115#
23116# Check for clock_gettime().
23117#
cristy8b350f62009-11-15 23:12:43 +000023118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023119$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023120if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023121 $as_echo_n "(cached) " >&6
23122else
23123 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023125/* end confdefs.h. */
23126
23127/* Override any GCC internal prototype to avoid an error.
23128 Use char because int might match the return type of a GCC
23129 builtin and then its argument prototype would still apply. */
23130#ifdef __cplusplus
23131extern "C"
23132#endif
23133char clock_gettime ();
23134int
23135main ()
23136{
23137return clock_gettime ();
23138 ;
23139 return 0;
23140}
23141_ACEOF
23142for ac_lib in '' rt; do
23143 if test -z "$ac_lib"; then
23144 ac_res="none required"
23145 else
23146 ac_res=-l$ac_lib
23147 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23148 fi
cristy8b350f62009-11-15 23:12:43 +000023149 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023150 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000023151fi
cristy8b350f62009-11-15 23:12:43 +000023152rm -f core conftest.err conftest.$ac_objext \
23153 conftest$ac_exeext
23154 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023155 break
23156fi
23157done
cristy8b350f62009-11-15 23:12:43 +000023158if test "${ac_cv_search_clock_gettime+set}" = set; then :
23159
cristye43a45e2009-09-28 14:49:00 +000023160else
23161 ac_cv_search_clock_gettime=no
23162fi
23163rm conftest.$ac_ext
23164LIBS=$ac_func_search_save_LIBS
23165fi
cristy8b350f62009-11-15 23:12:43 +000023166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023167$as_echo "$ac_cv_search_clock_gettime" >&6; }
23168ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000023169if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000023170 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23171
23172
cristy8b350f62009-11-15 23:12:43 +000023173$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023174
cristy8b350f62009-11-15 23:12:43 +000023175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000023176$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023178/* end confdefs.h. */
23179#include <time.h>
23180int
23181main ()
23182{
23183clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000023184 ;
23185 return 0;
23186}
23187_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023188if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023189
cristy8b350f62009-11-15 23:12:43 +000023190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000023191$as_echo "yes" >&6; }
23192
cristy8b350f62009-11-15 23:12:43 +000023193$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023194
23195
23196else
cristy8b350f62009-11-15 23:12:43 +000023197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000023198$as_echo "no" >&6; }
23199
23200fi
cristye43a45e2009-09-28 14:49:00 +000023201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23202
23203else
23204
cristy8b350f62009-11-15 23:12:43 +000023205 for ac_func in gettimeofday ftime
23206do :
23207 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23208ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy0684af42010-07-09 00:00:05 +000023209if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000023210 cat >>confdefs.h <<_ACEOF
23211#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23212_ACEOF
23213 break
23214fi
23215done
23216
23217
23218
23219fi
23220
23221
cristy3ed852e2009-09-05 21:47:34 +000023222########
23223#
23224# Check for function prototypes
23225#
23226########
23227
cristy8b350f62009-11-15 23:12:43 +000023228ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000023229#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023230"
23231if test "x$ac_cv_have_decl_pread" = x""yes; then :
23232 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023233else
cristy8b350f62009-11-15 23:12:43 +000023234 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023235fi
23236
cristy3ed852e2009-09-05 21:47:34 +000023237cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023238#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023239_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023240ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000023241#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023242"
23243if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23244 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023245else
cristy8b350f62009-11-15 23:12:43 +000023246 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023247fi
23248
cristy3ed852e2009-09-05 21:47:34 +000023249cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023250#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023251_ACEOF
23252
23253
cristy8b350f62009-11-15 23:12:43 +000023254ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000023255#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000023256"
23257if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23258 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023259else
cristy8b350f62009-11-15 23:12:43 +000023260 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023261fi
23262
cristy3ed852e2009-09-05 21:47:34 +000023263cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023264#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023265_ACEOF
23266
23267
cristy8b350f62009-11-15 23:12:43 +000023268ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000023269#include <stdio.h>
23270#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000023271"
23272if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23273 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023274else
cristy8b350f62009-11-15 23:12:43 +000023275 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023276fi
23277
cristy3ed852e2009-09-05 21:47:34 +000023278cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023279#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023280_ACEOF
23281
23282
cristy3ed852e2009-09-05 21:47:34 +000023283########
23284#
23285# C++ Support Tests (For Magick++)
23286#
23287########
23288have_magick_plus_plus='no'
23289if test "$with_magick_plus_plus" = 'yes'; then
23290 OLIBS="$LIBS"
23291 LIBS=''
23292 ac_ext=cpp
23293ac_cpp='$CXXCPP $CPPFLAGS'
23294ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23295ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23296ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23297
23298
23299 # Full set of headers used...
23300 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23301 # functional iomanip iosfwd iostream iterator list string strstream utility
23302 ac_ext=cpp
23303ac_cpp='$CXXCPP $CPPFLAGS'
23304ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23305ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23306ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23307
23308 ac_ext=cpp
23309ac_cpp='$CXXCPP $CPPFLAGS'
23310ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23311ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23312ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23313if test -z "$CXX"; then
23314 if test -n "$CCC"; then
23315 CXX=$CCC
23316 else
23317 if test -n "$ac_tool_prefix"; then
23318 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23319 do
23320 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23321set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023323$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023324if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023325 $as_echo_n "(cached) " >&6
23326else
23327 if test -n "$CXX"; then
23328 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23329else
23330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23331for as_dir in $PATH
23332do
23333 IFS=$as_save_IFS
23334 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023335 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23337 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023339 break 2
23340 fi
23341done
cristy8b350f62009-11-15 23:12:43 +000023342 done
cristy3ed852e2009-09-05 21:47:34 +000023343IFS=$as_save_IFS
23344
23345fi
23346fi
23347CXX=$ac_cv_prog_CXX
23348if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023350$as_echo "$CXX" >&6; }
23351else
cristy8b350f62009-11-15 23:12:43 +000023352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023353$as_echo "no" >&6; }
23354fi
23355
23356
23357 test -n "$CXX" && break
23358 done
23359fi
23360if test -z "$CXX"; then
23361 ac_ct_CXX=$CXX
23362 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23363do
23364 # Extract the first word of "$ac_prog", so it can be a program name with args.
23365set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023367$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023368if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023369 $as_echo_n "(cached) " >&6
23370else
23371 if test -n "$ac_ct_CXX"; then
23372 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23373else
23374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23375for as_dir in $PATH
23376do
23377 IFS=$as_save_IFS
23378 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023379 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23381 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023383 break 2
23384 fi
23385done
cristy8b350f62009-11-15 23:12:43 +000023386 done
cristy3ed852e2009-09-05 21:47:34 +000023387IFS=$as_save_IFS
23388
23389fi
23390fi
23391ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23392if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023394$as_echo "$ac_ct_CXX" >&6; }
23395else
cristy8b350f62009-11-15 23:12:43 +000023396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023397$as_echo "no" >&6; }
23398fi
23399
23400
23401 test -n "$ac_ct_CXX" && break
23402done
23403
23404 if test "x$ac_ct_CXX" = x; then
23405 CXX="g++"
23406 else
23407 case $cross_compiling:$ac_tool_warned in
23408yes:)
cristy8b350f62009-11-15 23:12:43 +000023409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23411ac_tool_warned=yes ;;
23412esac
23413 CXX=$ac_ct_CXX
23414 fi
23415fi
23416
23417 fi
23418fi
23419# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000023420$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000023421set X $ac_compile
23422ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000023423for ac_option in --version -v -V -qversion; do
23424 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000023425case "(($ac_try" in
23426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23427 *) ac_try_echo=$ac_try;;
23428esac
cristy8b350f62009-11-15 23:12:43 +000023429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23430$as_echo "$ac_try_echo"; } >&5
23431 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000023432 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000023433 if test -s conftest.err; then
23434 sed '10a\
23435... rest of stderr output deleted ...
23436 10q' conftest.err >conftest.er1
23437 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000023438 fi
cristycd4c5312009-11-22 01:19:08 +000023439 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000023440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23441 test $ac_status = 0; }
23442done
cristy3ed852e2009-09-05 21:47:34 +000023443
cristy8b350f62009-11-15 23:12:43 +000023444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000023445$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023446if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023447 $as_echo_n "(cached) " >&6
23448else
cristy8b350f62009-11-15 23:12:43 +000023449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023450/* end confdefs.h. */
23451
23452int
23453main ()
23454{
23455#ifndef __GNUC__
23456 choke me
23457#endif
23458
23459 ;
23460 return 0;
23461}
23462_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023463if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023464 ac_compiler_gnu=yes
23465else
cristy8b350f62009-11-15 23:12:43 +000023466 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000023467fi
cristy3ed852e2009-09-05 21:47:34 +000023468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23469ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23470
23471fi
cristy8b350f62009-11-15 23:12:43 +000023472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000023473$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23474if test $ac_compiler_gnu = yes; then
23475 GXX=yes
23476else
23477 GXX=
23478fi
23479ac_test_CXXFLAGS=${CXXFLAGS+set}
23480ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000023481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023482$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023483if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023484 $as_echo_n "(cached) " >&6
23485else
23486 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23487 ac_cxx_werror_flag=yes
23488 ac_cv_prog_cxx_g=no
23489 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023491/* end confdefs.h. */
23492
23493int
23494main ()
23495{
23496
23497 ;
23498 return 0;
23499}
23500_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023501if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023502 ac_cv_prog_cxx_g=yes
23503else
cristy8b350f62009-11-15 23:12:43 +000023504 CXXFLAGS=""
23505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023506/* end confdefs.h. */
23507
23508int
23509main ()
23510{
23511
23512 ;
23513 return 0;
23514}
23515_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023516if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023517
cristy8b350f62009-11-15 23:12:43 +000023518else
23519 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000023520 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023522/* end confdefs.h. */
23523
23524int
23525main ()
23526{
23527
23528 ;
23529 return 0;
23530}
23531_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023532if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023533 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000023534fi
cristy3ed852e2009-09-05 21:47:34 +000023535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23536fi
cristy3ed852e2009-09-05 21:47:34 +000023537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23538fi
cristy3ed852e2009-09-05 21:47:34 +000023539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23540 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23541fi
cristy8b350f62009-11-15 23:12:43 +000023542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023543$as_echo "$ac_cv_prog_cxx_g" >&6; }
23544if test "$ac_test_CXXFLAGS" = set; then
23545 CXXFLAGS=$ac_save_CXXFLAGS
23546elif test $ac_cv_prog_cxx_g = yes; then
23547 if test "$GXX" = yes; then
23548 CXXFLAGS="-g -O2"
23549 else
23550 CXXFLAGS="-g"
23551 fi
23552else
23553 if test "$GXX" = yes; then
23554 CXXFLAGS="-O2"
23555 else
23556 CXXFLAGS=
23557 fi
23558fi
23559ac_ext=cpp
23560ac_cpp='$CXXCPP $CPPFLAGS'
23561ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23562ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23563ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23564
23565depcc="$CXX" am_compiler_list=
23566
cristy8b350f62009-11-15 23:12:43 +000023567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023568$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023569if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023570 $as_echo_n "(cached) " >&6
23571else
23572 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23573 # We make a subdir and do the tests there. Otherwise we can end up
23574 # making bogus files that we don't know about and never remove. For
23575 # instance it was reported that on HP-UX the gcc test will end up
23576 # making a dummy file named `D' -- because `-MD' means `put the output
23577 # in D'.
23578 mkdir conftest.dir
23579 # Copy depcomp to subdir because otherwise we won't find it if we're
23580 # using a relative directory.
23581 cp "$am_depcomp" conftest.dir
23582 cd conftest.dir
23583 # We will build objects and dependencies in a subdirectory because
23584 # it helps to detect inapplicable dependency modes. For instance
23585 # both Tru64's cc and ICC support -MD to output dependencies as a
23586 # side effect of compilation, but ICC will put the dependencies in
23587 # the current directory while Tru64 will put them in the object
23588 # directory.
23589 mkdir sub
23590
23591 am_cv_CXX_dependencies_compiler_type=none
23592 if test "$am_compiler_list" = ""; then
23593 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23594 fi
23595 am__universal=false
23596 case " $depcc " in #(
23597 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23598 esac
23599
23600 for depmode in $am_compiler_list; do
23601 # Setup a source with many dependencies, because some compilers
23602 # like to wrap large dependency lists on column 80 (with \), and
23603 # we should not choose a depcomp mode which is confused by this.
23604 #
23605 # We need to recreate these files for each test, as the compiler may
23606 # overwrite some of them when testing with obscure command lines.
23607 # This happens at least with the AIX C compiler.
23608 : > sub/conftest.c
23609 for i in 1 2 3 4 5 6; do
23610 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23611 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23612 # Solaris 8's {/usr,}/bin/sh.
23613 touch sub/conftst$i.h
23614 done
23615 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23616
23617 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23618 # mode. It turns out that the SunPro C++ compiler does not properly
23619 # handle `-M -o', and we need to detect this. Also, some Intel
23620 # versions had trouble with output in subdirs
23621 am__obj=sub/conftest.${OBJEXT-o}
23622 am__minus_obj="-o $am__obj"
23623 case $depmode in
23624 gcc)
23625 # This depmode causes a compiler race in universal mode.
23626 test "$am__universal" = false || continue
23627 ;;
23628 nosideeffect)
23629 # after this tag, mechanisms are not by side-effect, so they'll
23630 # only be used when explicitly requested
23631 if test "x$enable_dependency_tracking" = xyes; then
23632 continue
23633 else
23634 break
23635 fi
23636 ;;
23637 msvisualcpp | msvcmsys)
23638 # This compiler won't grok `-c -o', but also, the minuso test has
23639 # not run yet. These depmodes are late enough in the game, and
23640 # so weak that their functioning should not be impacted.
23641 am__obj=conftest.${OBJEXT-o}
23642 am__minus_obj=
23643 ;;
23644 none) break ;;
23645 esac
23646 if depmode=$depmode \
23647 source=sub/conftest.c object=$am__obj \
23648 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23649 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23650 >/dev/null 2>conftest.err &&
23651 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23652 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23653 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23654 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23655 # icc doesn't choke on unknown options, it will just issue warnings
23656 # or remarks (even with -Werror). So we grep stderr for any message
23657 # that says an option was ignored or not supported.
23658 # When given -MP, icc 7.0 and 7.1 complain thusly:
23659 # icc: Command line warning: ignoring option '-M'; no argument required
23660 # The diagnosis changed in icc 8.0:
23661 # icc: Command line remark: option '-MP' not supported
23662 if (grep 'ignoring option' conftest.err ||
23663 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23664 am_cv_CXX_dependencies_compiler_type=$depmode
23665 break
23666 fi
23667 fi
23668 done
23669
23670 cd ..
23671 rm -rf conftest.dir
23672else
23673 am_cv_CXX_dependencies_compiler_type=none
23674fi
23675
23676fi
cristy8b350f62009-11-15 23:12:43 +000023677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023678$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23679CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23680
23681 if
23682 test "x$enable_dependency_tracking" != xno \
23683 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23684 am__fastdepCXX_TRUE=
23685 am__fastdepCXX_FALSE='#'
23686else
23687 am__fastdepCXX_TRUE='#'
23688 am__fastdepCXX_FALSE=
23689fi
23690
23691
cristy8b350f62009-11-15 23:12:43 +000023692 { $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 +000023693$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023694if test "${ax_cv_cxx_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023695 $as_echo_n "(cached) " >&6
23696else
23697
23698 ac_ext=cpp
23699ac_cpp='$CXXCPP $CPPFLAGS'
23700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23703
cristy8b350f62009-11-15 23:12:43 +000023704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023705/* end confdefs.h. */
23706
23707int f(int x){return 1;}
23708int f(char x){return 1;}
23709int f(bool x){return 1;}
23710
23711int
23712main ()
23713{
23714bool b = true; return f(b);
23715 ;
23716 return 0;
23717}
23718_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023719if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023720 ax_cv_cxx_bool=yes
cristy3ed852e2009-09-05 21:47:34 +000023721else
cristy964cb7f2010-04-25 23:18:00 +000023722 ax_cv_cxx_bool=no
cristy3ed852e2009-09-05 21:47:34 +000023723fi
cristy3ed852e2009-09-05 21:47:34 +000023724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23725 ac_ext=cpp
23726ac_cpp='$CXXCPP $CPPFLAGS'
23727ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23728ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23729ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23730
23731
23732fi
cristy964cb7f2010-04-25 23:18:00 +000023733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23734$as_echo "$ax_cv_cxx_bool" >&6; }
23735if test "$ax_cv_cxx_bool" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023736
cristy8b350f62009-11-15 23:12:43 +000023737$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023738
23739fi
23740
cristy8b350f62009-11-15 23:12:43 +000023741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023742$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023743if test "${ax_cv_cxx_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023744 $as_echo_n "(cached) " >&6
23745else
23746
23747 ac_ext=cpp
23748ac_cpp='$CXXCPP $CPPFLAGS'
23749ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23750ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23751ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23752
cristy8b350f62009-11-15 23:12:43 +000023753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023754/* end confdefs.h. */
23755namespace Outer { namespace Inner { int i = 0; }}
23756int
23757main ()
23758{
23759using namespace Outer::Inner; return i;
23760 ;
23761 return 0;
23762}
23763_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023764if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023765 ax_cv_cxx_namespaces=yes
cristy3ed852e2009-09-05 21:47:34 +000023766else
cristy964cb7f2010-04-25 23:18:00 +000023767 ax_cv_cxx_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000023768fi
cristy3ed852e2009-09-05 21:47:34 +000023769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23770 ac_ext=cpp
23771ac_cpp='$CXXCPP $CPPFLAGS'
23772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23775
23776
23777fi
cristy964cb7f2010-04-25 23:18:00 +000023778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23779$as_echo "$ax_cv_cxx_namespaces" >&6; }
23780if test "$ax_cv_cxx_namespaces" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023781
cristy8b350f62009-11-15 23:12:43 +000023782$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023783
23784fi
23785
cristy964cb7f2010-04-25 23:18:00 +000023786
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
23788$as_echo_n "checking if g++ supports namespace std... " >&6; }
23789if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023790 $as_echo_n "(cached) " >&6
23791else
23792
cristy964cb7f2010-04-25 23:18:00 +000023793 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000023794ac_cpp='$CXXCPP $CPPFLAGS'
23795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23798
cristy964cb7f2010-04-25 23:18:00 +000023799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023800/* end confdefs.h. */
23801#include <iostream>
cristy964cb7f2010-04-25 23:18:00 +000023802 std::istream& is = std::cin;
cristy3ed852e2009-09-05 21:47:34 +000023803int
23804main ()
23805{
cristy964cb7f2010-04-25 23:18:00 +000023806
cristy3ed852e2009-09-05 21:47:34 +000023807 ;
23808 return 0;
23809}
23810_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023811if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023812 ax_cv_cxx_have_std_namespace=yes
cristy3ed852e2009-09-05 21:47:34 +000023813else
cristy964cb7f2010-04-25 23:18:00 +000023814 ax_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000023815fi
cristy3ed852e2009-09-05 21:47:34 +000023816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +000023817 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000023818ac_cpp='$CXXCPP $CPPFLAGS'
23819ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23820ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23821ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23822
23823
23824fi
cristy964cb7f2010-04-25 23:18:00 +000023825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
23826$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
23827 if test "$ax_cv_cxx_have_std_namespace" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023828
cristy964cb7f2010-04-25 23:18:00 +000023829$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023830
cristy964cb7f2010-04-25 23:18:00 +000023831 fi
cristy3ed852e2009-09-05 21:47:34 +000023832
cristy8b350f62009-11-15 23:12:43 +000023833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000023834$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023835if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023836 $as_echo_n "(cached) " >&6
23837else
23838
23839
23840 ac_ext=cpp
23841ac_cpp='$CXXCPP $CPPFLAGS'
23842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23845
cristy8b350f62009-11-15 23:12:43 +000023846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023847/* end confdefs.h. */
23848#include <iostream>
23849#include <map>
23850#include <iomanip>
23851#include <cmath>
23852#ifdef HAVE_NAMESPACES
23853using namespace std;
23854#endif
23855int
23856main ()
23857{
23858return 0;
23859 ;
23860 return 0;
23861}
23862_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023863if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023864 ac_cv_cxx_have_std_libs=yes
23865else
cristy8b350f62009-11-15 23:12:43 +000023866 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000023867fi
cristy3ed852e2009-09-05 21:47:34 +000023868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23869 ac_ext=cpp
23870ac_cpp='$CXXCPP $CPPFLAGS'
23871ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23872ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23873ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23874
23875
23876fi
cristy8b350f62009-11-15 23:12:43 +000023877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000023878$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
23879if test "$ac_cv_cxx_have_std_libs" = yes; then
23880
cristy8b350f62009-11-15 23:12:43 +000023881$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023882
23883fi
23884
cristy8b350f62009-11-15 23:12:43 +000023885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000023886$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023887if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023888 $as_echo_n "(cached) " >&6
23889else
23890
23891 ac_ext=cpp
23892ac_cpp='$CXXCPP $CPPFLAGS'
23893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23896
cristy8b350f62009-11-15 23:12:43 +000023897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023898/* end confdefs.h. */
23899const wchar_t* s=L"wide string";
23900_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023901if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023902 ac_cv_cxx_have_lstring=yes
23903else
cristy8b350f62009-11-15 23:12:43 +000023904 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000023905fi
cristy3ed852e2009-09-05 21:47:34 +000023906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23907 ac_ext=cpp
23908ac_cpp='$CXXCPP $CPPFLAGS'
23909ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23910ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23911ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23912
23913
23914fi
cristy8b350f62009-11-15 23:12:43 +000023915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000023916$as_echo "$ac_cv_cxx_have_lstring" >&6; }
23917if test "$ac_cv_cxx_have_lstring" = yes; then
23918
cristy8b350f62009-11-15 23:12:43 +000023919$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023920
23921fi
23922
23923
23924 OPENMP_CXXFLAGS=
23925 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000023926if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023927 enableval=$enable_openmp;
23928fi
23929
23930 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000023931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
23932$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023933if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023934 $as_echo_n "(cached) " >&6
23935else
cristy8b350f62009-11-15 23:12:43 +000023936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23937/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023938
23939#ifndef _OPENMP
23940 choke me
23941#endif
23942#include <omp.h>
23943int main () { return omp_get_num_threads (); }
23944
23945_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023946if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023947 ac_cv_prog_cxx_openmp='none needed'
23948else
cristy8b350f62009-11-15 23:12:43 +000023949 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000023950 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
23951 ac_save_CXXFLAGS=$CXXFLAGS
23952 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000023953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23954/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023955
23956#ifndef _OPENMP
23957 choke me
23958#endif
23959#include <omp.h>
23960int main () { return omp_get_num_threads (); }
23961
23962_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023963if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023964 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000023965fi
cristy8b350f62009-11-15 23:12:43 +000023966rm -f core conftest.err conftest.$ac_objext \
23967 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023968 CXXFLAGS=$ac_save_CXXFLAGS
23969 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
23970 break
23971 fi
23972 done
23973fi
cristy8b350f62009-11-15 23:12:43 +000023974rm -f core conftest.err conftest.$ac_objext \
23975 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023976fi
cristy8b350f62009-11-15 23:12:43 +000023977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023978$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
23979 case $ac_cv_prog_cxx_openmp in #(
23980 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000023981 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000023982 *)
cristy8b350f62009-11-15 23:12:43 +000023983 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000023984 esac
23985 fi
23986
23987
23988 ac_ext=c
23989ac_cpp='$CPP $CPPFLAGS'
23990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23992ac_compiler_gnu=$ac_cv_c_compiler_gnu
23993
23994
cristy8b350f62009-11-15 23:12:43 +000023995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000023996$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
23997 if \
cristy964cb7f2010-04-25 23:18:00 +000023998 test $ax_cv_cxx_bool = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000023999 test $ac_cv_cxx_have_lstring = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024000 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024001 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024002 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024003 have_magick_plus_plus='yes'
24004 else
24005 have_magick_plus_plus='no (failed tests)'
24006 fi
cristy8b350f62009-11-15 23:12:43 +000024007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024008$as_echo "$have_magick_plus_plus" >&6; }
24009 LIBS="$OLIBS"
24010fi
24011 if test "$have_magick_plus_plus" = 'yes'; then
24012 WITH_MAGICK_PLUS_PLUS_TRUE=
24013 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24014else
24015 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24016 WITH_MAGICK_PLUS_PLUS_FALSE=
24017fi
24018
24019
24020# Only check for delegate libraries in subdirectories if requested.
24021if test "$enable_delegate_build" != 'no'; then
24022 # Check for delegate sub-directories and add -I & -L options as required.
24023 # This presumes that delegates are installed as detailed in the ImageMagick
24024 # README. If delegates are installed in a standard location where the
24025 # compiler will automatically find them then these options should not be
24026 # required.
24027
24028 #
24029 # Most delegates have includes in the same directory as the library, but not all...
24030 #
24031 # Includes
cristy5850e4b2010-01-08 14:28:24 +000024032 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 +000024033 if test -d "$builddir/$dir"; then
24034 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24035 else
24036 if test -d "$srcdirfull/$dir"; then
24037 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24038 fi
24039 fi
24040 done
24041
24042 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000024043 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 +000024044 if test -d "$builddir/$dir/.libs"; then
24045 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24046 else
24047 if test -d "$srcdirfull/$dir/.libs"; then
24048 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24049 fi
24050 fi
24051 if test -d "$builddir/$dir"; then
24052 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24053 else
24054 if test -d "$srcdirfull/$dir"; then
24055 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24056 fi
24057 fi
24058 done
24059fi
24060
24061# Assume that delegate headers reside under same directory as ImageMagick
24062# installation prefix.
24063MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24064
24065#
24066# Find the X11 RGB database
24067#
cristy8b350f62009-11-15 23:12:43 +000024068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024069$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024070if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024071 $as_echo_n "(cached) " >&6
24072else
24073 # Look for the header file in a standard set of common directories.
24074# Check X11 before X11Rn because it is often a symlink to the current release.
24075 for ac_dir in \
24076 /lib/usr/lib/X11 \
24077 /usr/X11/lib \
24078 /usr/X11R4/lib \
24079 /usr/X11R5/lib \
24080 /usr/X11R6/lib \
24081 /usr/X11R7/lib \
24082 /usr/X386/lib \
24083 /usr/XFree86/lib/X11 \
24084 /usr/athena/lib \
24085 /usr/lib \
24086 /usr/lib/X11 \
24087 /usr/lib/X11R4 \
24088 /usr/lib/X11R5 \
24089 /usr/lib/X11R6 \
24090 /usr/lib/X11R7 \
24091 /usr/local/X11/lib \
24092 /usr/local/X11R4/lib \
24093 /usr/local/X11R5/lib \
24094 /usr/local/X11R6/lib \
24095 /usr/local/lib \
24096 /usr/local/lib/X11 \
24097 /usr/local/lib/X11R4 \
24098 /usr/local/lib/X11R5 \
24099 /usr/local/lib/X11R6 \
24100 /usr/local/lib/X11R7 \
24101 /usr/local/x11r5/lib \
24102 /usr/lpp/Xamples/lib \
24103 /usr/openwin/lib \
24104 /usr/openwin/share/lib \
24105 /usr/unsupported/lib \
24106 /usr/x386/lib \
24107 ; do
24108 if test -f "$ac_dir/X11/rgb.txt"; then
24109 im_cv_x_configure="$ac_dir/X11/"
24110 break
24111 elif test -f "$ac_dir/rgb.txt"; then
24112 im_cv_x_configure="$ac_dir/"
24113 break
24114 fi
24115
24116 done
24117fi
cristy8b350f62009-11-15 23:12:43 +000024118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024119$as_echo "$im_cv_x_configure" >&6; }
24120X11_CONFIGURE_PATH="$im_cv_x_configure"
24121case "${build_os}" in
24122 mingw* )
24123 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24124 ;;
24125esac
24126
24127cat >>confdefs.h <<_ACEOF
24128#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24129_ACEOF
24130
24131
24132#
24133# Find OpenMP library
24134#
24135GOMP_LIBS=''
24136if test "$enable_openmp" != 'no'; then
24137 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024139$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024140if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024141 $as_echo_n "(cached) " >&6
24142else
24143 ac_check_lib_save_LIBS=$LIBS
24144LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024146/* end confdefs.h. */
24147
24148/* Override any GCC internal prototype to avoid an error.
24149 Use char because int might match the return type of a GCC
24150 builtin and then its argument prototype would still apply. */
24151#ifdef __cplusplus
24152extern "C"
24153#endif
24154char GOMP_parallel_start ();
24155int
24156main ()
24157{
24158return GOMP_parallel_start ();
24159 ;
24160 return 0;
24161}
24162_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024163if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024164 ac_cv_lib_gomp_GOMP_parallel_start=yes
24165else
cristy8b350f62009-11-15 23:12:43 +000024166 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024167fi
cristy8b350f62009-11-15 23:12:43 +000024168rm -f core conftest.err conftest.$ac_objext \
24169 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024170LIBS=$ac_check_lib_save_LIBS
24171fi
cristy8b350f62009-11-15 23:12:43 +000024172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000024173$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024174if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024175 GOMP_LIBS="-lgomp"
24176fi
24177 # gcc
24178 else
cristy8b350f62009-11-15 23:12:43 +000024179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000024180$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024181if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024182 $as_echo_n "(cached) " >&6
24183else
24184 ac_check_lib_save_LIBS=$LIBS
24185LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024187/* end confdefs.h. */
24188
24189/* Override any GCC internal prototype to avoid an error.
24190 Use char because int might match the return type of a GCC
24191 builtin and then its argument prototype would still apply. */
24192#ifdef __cplusplus
24193extern "C"
24194#endif
24195char sunw_mp_register_warn ();
24196int
24197main ()
24198{
24199return sunw_mp_register_warn ();
24200 ;
24201 return 0;
24202}
24203_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024204if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024205 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24206else
cristy8b350f62009-11-15 23:12:43 +000024207 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000024208fi
cristy8b350f62009-11-15 23:12:43 +000024209rm -f core conftest.err conftest.$ac_objext \
24210 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024211LIBS=$ac_check_lib_save_LIBS
24212fi
cristy8b350f62009-11-15 23:12:43 +000024213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000024214$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024215if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024216 GOMP_LIBS="-lmtsk"
24217fi
24218 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000024219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024220$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024221if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024222 $as_echo_n "(cached) " >&6
24223else
24224 ac_check_lib_save_LIBS=$LIBS
24225LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024227/* end confdefs.h. */
24228
24229/* Override any GCC internal prototype to avoid an error.
24230 Use char because int might match the return type of a GCC
24231 builtin and then its argument prototype would still apply. */
24232#ifdef __cplusplus
24233extern "C"
24234#endif
24235char _xlsmpFlush ();
24236int
24237main ()
24238{
24239return _xlsmpFlush ();
24240 ;
24241 return 0;
24242}
24243_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024244if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024245 ac_cv_lib_xlsmp__xlsmpFlush=yes
24246else
cristy8b350f62009-11-15 23:12:43 +000024247 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000024248fi
cristy8b350f62009-11-15 23:12:43 +000024249rm -f core conftest.err conftest.$ac_objext \
24250 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024251LIBS=$ac_check_lib_save_LIBS
24252fi
cristy8b350f62009-11-15 23:12:43 +000024253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000024254$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024255if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024256 GOMP_LIBS="-lxlsmp"
24257fi
24258 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000024259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024260$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024261if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024262 $as_echo_n "(cached) " >&6
24263else
24264 ac_check_lib_save_LIBS=$LIBS
24265LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024267/* end confdefs.h. */
24268
24269/* Override any GCC internal prototype to avoid an error.
24270 Use char because int might match the return type of a GCC
24271 builtin and then its argument prototype would still apply. */
24272#ifdef __cplusplus
24273extern "C"
24274#endif
24275char mp_destroy ();
24276int
24277main ()
24278{
24279return mp_destroy ();
24280 ;
24281 return 0;
24282}
24283_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024284if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024285 ac_cv_lib_mp_mp_destroy=yes
24286else
cristy8b350f62009-11-15 23:12:43 +000024287 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000024288fi
cristy8b350f62009-11-15 23:12:43 +000024289rm -f core conftest.err conftest.$ac_objext \
24290 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024291LIBS=$ac_check_lib_save_LIBS
24292fi
cristy8b350f62009-11-15 23:12:43 +000024293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000024294$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024295if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024296 GOMP_LIBS="-lmp"
24297fi
24298 # SGI IRIX 6.5 MIPSpro C/C++
24299 fi
24300 LIBS="$GOMP_LIBS $LIBS"
24301fi
24302
24303
24304#
24305# Find Posix threads library
24306#
24307THREAD_LIBS=''
24308if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24309
24310 if test "x$PTHREAD_LIBS" = "x"; then
24311 case "${host_cpu}-${host_os}" in
24312 *-freebsd*)
24313
24314
24315
24316ac_ext=c
24317ac_cpp='$CPP $CPPFLAGS'
24318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24320ac_compiler_gnu=$ac_cv_c_compiler_gnu
24321
24322magick_pthread_lib_ok=no
24323
24324LIB=-lc_r
24325save_LIBS="$LIBS"
24326LIBS="$LIBS $LIB"
24327
cristy8b350f62009-11-15 23:12:43 +000024328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024329$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024331/* end confdefs.h. */
24332#include <pthread.h>
24333int
24334main ()
24335{
24336 pthread_t th;
24337 pthread_join(th, 0);
24338 pthread_attr_init(0);
24339 pthread_cleanup_push(0, 0);
24340 pthread_create(0,0,0,0);
24341 pthread_cleanup_pop(0);
24342 ;
24343 return 0;
24344}
24345_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024346if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024347 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024348fi
cristy8b350f62009-11-15 23:12:43 +000024349rm -f core conftest.err conftest.$ac_objext \
24350 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024351
cristy8b350f62009-11-15 23:12:43 +000024352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024353$as_echo "${magick_pthread_lib_ok}" >&6; }
24354if test "$magick_pthread_lib_ok" = yes
24355then
24356 PTHREAD_LIBS=-lc_r
24357 :
24358else
24359
24360 :
24361fi
24362
24363LIBS="$save_LIBS"
24364
24365ac_ext=c
24366ac_cpp='$CPP $CPPFLAGS'
24367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24369ac_compiler_gnu=$ac_cv_c_compiler_gnu
24370
24371 ;;
24372 esac
24373 fi
24374
24375 for lib in pthread pthreads; do
24376 if test "x$PTHREAD_LIBS" = "x"; then
24377
24378
24379
24380ac_ext=c
24381ac_cpp='$CPP $CPPFLAGS'
24382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24384ac_compiler_gnu=$ac_cv_c_compiler_gnu
24385
24386magick_pthread_lib_ok=no
24387
24388LIB=-l$lib
24389save_LIBS="$LIBS"
24390LIBS="$LIBS $LIB"
24391
cristy8b350f62009-11-15 23:12:43 +000024392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024393$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024395/* end confdefs.h. */
24396#include <pthread.h>
24397int
24398main ()
24399{
24400 pthread_t th;
24401 pthread_join(th, 0);
24402 pthread_attr_init(0);
24403 pthread_cleanup_push(0, 0);
24404 pthread_create(0,0,0,0);
24405 pthread_cleanup_pop(0);
24406 ;
24407 return 0;
24408}
24409_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024410if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024411 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024412fi
cristy8b350f62009-11-15 23:12:43 +000024413rm -f core conftest.err conftest.$ac_objext \
24414 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024415
cristy8b350f62009-11-15 23:12:43 +000024416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024417$as_echo "${magick_pthread_lib_ok}" >&6; }
24418if test "$magick_pthread_lib_ok" = yes
24419then
24420 PTHREAD_LIBS=-l$lib
24421 :
24422else
24423
24424 :
24425fi
24426
24427LIBS="$save_LIBS"
24428
24429ac_ext=c
24430ac_cpp='$CPP $CPPFLAGS'
24431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24433ac_compiler_gnu=$ac_cv_c_compiler_gnu
24434
24435
24436 fi
24437 done
24438
24439 THREAD_LIBS="$PTHREAD_LIBS"
24440 LIBS="$LIBS $THREAD_LIBS"
24441fi
24442
24443
24444#
24445# Check for umem.
24446#
24447have_umem='no'
24448UMEM_LIBS=''
24449if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000024451$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024453$as_echo "" >&6; }
24454 failed=0
24455 passed=0
cristy8b350f62009-11-15 23:12:43 +000024456 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24457if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024458 passed=`expr $passed + 1`
24459else
24460 failed=`expr $failed + 1`
24461fi
24462
24463
cristy8b350f62009-11-15 23:12:43 +000024464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024465$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024466if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024467 $as_echo_n "(cached) " >&6
24468else
24469 ac_check_lib_save_LIBS=$LIBS
24470LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024472/* end confdefs.h. */
24473
24474/* Override any GCC internal prototype to avoid an error.
24475 Use char because int might match the return type of a GCC
24476 builtin and then its argument prototype would still apply. */
24477#ifdef __cplusplus
24478extern "C"
24479#endif
24480char umem_alloc ();
24481int
24482main ()
24483{
24484return umem_alloc ();
24485 ;
24486 return 0;
24487}
24488_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024489if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024490 ac_cv_lib_umem_umem_alloc=yes
24491else
cristy8b350f62009-11-15 23:12:43 +000024492 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000024493fi
cristy8b350f62009-11-15 23:12:43 +000024494rm -f core conftest.err conftest.$ac_objext \
24495 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024496LIBS=$ac_check_lib_save_LIBS
24497fi
cristy8b350f62009-11-15 23:12:43 +000024498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024499$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024500if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024501 passed=`expr $passed + 1`
24502else
24503 failed=`expr $failed + 1`
24504fi
24505
cristy8b350f62009-11-15 23:12:43 +000024506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024507$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024508if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024509 $as_echo_n "(cached) " >&6
24510else
24511 ac_check_lib_save_LIBS=$LIBS
24512LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024514/* end confdefs.h. */
24515
24516/* Override any GCC internal prototype to avoid an error.
24517 Use char because int might match the return type of a GCC
24518 builtin and then its argument prototype would still apply. */
24519#ifdef __cplusplus
24520extern "C"
24521#endif
24522char umem_free ();
24523int
24524main ()
24525{
24526return umem_free ();
24527 ;
24528 return 0;
24529}
24530_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024531if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024532 ac_cv_lib_umem_umem_free=yes
24533else
cristy8b350f62009-11-15 23:12:43 +000024534 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000024535fi
cristy8b350f62009-11-15 23:12:43 +000024536rm -f core conftest.err conftest.$ac_objext \
24537 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024538LIBS=$ac_check_lib_save_LIBS
24539fi
cristy8b350f62009-11-15 23:12:43 +000024540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000024541$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024542if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024543 passed=`expr $passed + 1`
24544else
24545 failed=`expr $failed + 1`
24546fi
24547
cristy8b350f62009-11-15 23:12:43 +000024548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024549$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24550 if test $passed -gt 0; then
24551 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024553$as_echo "no -- some components failed test" >&6; }
24554 have_umem='no (failed tests)'
24555 else
24556 UMEM_LIBS='-lumem'
24557 LIBS="$UMEM_LIBS $LIBS"
24558
cristy8b350f62009-11-15 23:12:43 +000024559$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024560
cristy8b350f62009-11-15 23:12:43 +000024561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024562$as_echo "yes" >&6; }
24563 have_umem='yes'
24564 fi
24565 else
cristy8b350f62009-11-15 23:12:43 +000024566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024567$as_echo "no" >&6; }
24568 fi
24569fi
24570 if test "$have_umem" = 'yes'; then
24571 HasUMEM_TRUE=
24572 HasUMEM_FALSE='#'
24573else
24574 HasUMEM_TRUE='#'
24575 HasUMEM_FALSE=
24576fi
24577
24578
24579
24580#
24581# Add support for ccmalloc memory debugging library if requested
24582#
24583have_ccmalloc='no'
24584CCMALLOC_LIBS=''
24585if test "$enable_ccmalloc" = 'yes'; then
24586 # Extract the first word of "ccmalloc", so it can be a program name with args.
24587set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024589$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024590if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024591 $as_echo_n "(cached) " >&6
24592else
24593 case $CCMALLOCDelegate in
24594 [\\/]* | ?:[\\/]*)
24595 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24596 ;;
24597 *)
24598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24599for as_dir in $PATH
24600do
24601 IFS=$as_save_IFS
24602 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024603 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24605 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000024606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024607 break 2
24608 fi
24609done
cristy8b350f62009-11-15 23:12:43 +000024610 done
cristy3ed852e2009-09-05 21:47:34 +000024611IFS=$as_save_IFS
24612
24613 ;;
24614esac
24615fi
24616CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24617if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000024618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024619$as_echo "$CCMALLOCDelegate" >&6; }
24620else
cristy8b350f62009-11-15 23:12:43 +000024621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024622$as_echo "no" >&6; }
24623fi
24624
24625
24626 if test -n "$CCMALLOCDelegate"; then
24627 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24628 OLIBS="$LIBS"
24629 # Assume that gcc is used with ccmalloc.
24630 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000024631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024632$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024633if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024634 $as_echo_n "(cached) " >&6
24635else
24636 ac_check_lib_save_LIBS=$LIBS
24637LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024639/* end confdefs.h. */
24640
24641/* Override any GCC internal prototype to avoid an error.
24642 Use char because int might match the return type of a GCC
24643 builtin and then its argument prototype would still apply. */
24644#ifdef __cplusplus
24645extern "C"
24646#endif
24647char ccmalloc_malloc ();
24648int
24649main ()
24650{
24651return ccmalloc_malloc ();
24652 ;
24653 return 0;
24654}
24655_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024656if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024657 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24658else
cristy8b350f62009-11-15 23:12:43 +000024659 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024660fi
cristy8b350f62009-11-15 23:12:43 +000024661rm -f core conftest.err conftest.$ac_objext \
24662 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024663LIBS=$ac_check_lib_save_LIBS
24664fi
cristy8b350f62009-11-15 23:12:43 +000024665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024666$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024667if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024668 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24669fi
24670
24671 if test -n "$CCMALLOC_LIBS"; then
24672 LIBS="$OLIBS"
24673 LIBS="$LIBS $CCMALLOC_LIBS"
24674 have_ccmalloc='yes'
24675 else
24676 LIBS="$OLIBS"
24677 fi
24678 fi
24679fi
24680
24681#
24682# Add support for efence memory debugging library if requested
24683#
24684if test "$enable_efence" = 'yes'; then
24685 EFENCE_LIBS='-lefence'
24686 LIBS="$EFENCE_LIBS $LIBS"
24687fi
24688
cristy3ed852e2009-09-05 21:47:34 +000024689
24690#
24691# Check for BZLIB
24692#
24693
24694
24695# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024696if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024697 withval=$with_bzlib; with_bzlib=$withval
24698else
24699 with_bzlib='yes'
24700fi
24701
24702
24703if test "$with_bzlib" != 'yes'; then
24704 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24705fi
24706
24707have_bzlib='no'
24708if test "$with_bzlib" != 'no'; then
24709 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024711$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024713$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024715$as_echo "" >&6; }
24716 failed=0
24717 passed=0
24718 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024719 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24720if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024721 passed=`expr $passed + 1`
24722else
24723 failed=`expr $failed + 1`
24724fi
24725
24726
cristy8b350f62009-11-15 23:12:43 +000024727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024728$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024729if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024730 $as_echo_n "(cached) " >&6
24731else
24732 ac_check_lib_save_LIBS=$LIBS
24733LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024735/* end confdefs.h. */
24736
24737/* Override any GCC internal prototype to avoid an error.
24738 Use char because int might match the return type of a GCC
24739 builtin and then its argument prototype would still apply. */
24740#ifdef __cplusplus
24741extern "C"
24742#endif
24743char BZ2_bzDecompress ();
24744int
24745main ()
24746{
24747return BZ2_bzDecompress ();
24748 ;
24749 return 0;
24750}
24751_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024752if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024753 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24754else
cristy8b350f62009-11-15 23:12:43 +000024755 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024756fi
cristy8b350f62009-11-15 23:12:43 +000024757rm -f core conftest.err conftest.$ac_objext \
24758 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024759LIBS=$ac_check_lib_save_LIBS
24760fi
cristy8b350f62009-11-15 23:12:43 +000024761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024762$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024763if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024764 found_libbz=`expr $found_libbz + 1`
24765fi
24766
24767 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024769$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024770if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024771 $as_echo_n "(cached) " >&6
24772else
24773 ac_check_lib_save_LIBS=$LIBS
24774LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024776/* end confdefs.h. */
24777
24778/* Override any GCC internal prototype to avoid an error.
24779 Use char because int might match the return type of a GCC
24780 builtin and then its argument prototype would still apply. */
24781#ifdef __cplusplus
24782extern "C"
24783#endif
24784char _imp__BZ2_decompress ();
24785int
24786main ()
24787{
24788return _imp__BZ2_decompress ();
24789 ;
24790 return 0;
24791}
24792_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024793if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024794 ac_cv_lib_bz2__imp__BZ2_decompress=yes
24795else
cristy8b350f62009-11-15 23:12:43 +000024796 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000024797fi
cristy8b350f62009-11-15 23:12:43 +000024798rm -f core conftest.err conftest.$ac_objext \
24799 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024800LIBS=$ac_check_lib_save_LIBS
24801fi
cristy8b350f62009-11-15 23:12:43 +000024802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024803$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024804if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024805 found_libbz=`expr $found_libbz + 1`
24806fi
24807
24808 fi
24809 if test $found_libbz -gt 0; then
24810 passed=`expr $passed + 1`
24811 else
24812 failed=`expr $failed + 1`
24813 fi
cristy8b350f62009-11-15 23:12:43 +000024814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024815$as_echo_n "checking if BZLIB package is complete... " >&6; }
24816 if test $passed -gt 0; then
24817 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024819$as_echo "no -- some components failed test" >&6; }
24820 have_bzlib='no (failed tests)'
24821 else
24822 BZLIB_LIBS='-lbz2'
24823 LIBS="$BZLIB_LIBS $LIBS"
24824
cristy8b350f62009-11-15 23:12:43 +000024825$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024826
cristy8b350f62009-11-15 23:12:43 +000024827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024828$as_echo "yes" >&6; }
24829 have_bzlib='yes'
24830 fi
24831 else
cristy8b350f62009-11-15 23:12:43 +000024832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024833$as_echo "no" >&6; }
24834 fi
24835fi
24836 if test "$have_bzlib" = 'yes'; then
24837 BZLIB_DELEGATE_TRUE=
24838 BZLIB_DELEGATE_FALSE='#'
24839else
24840 BZLIB_DELEGATE_TRUE='#'
24841 BZLIB_DELEGATE_FALSE=
24842fi
24843
24844
24845
24846#
24847# Find the X11 include and library directories.
24848#
24849IPC_LIBS=''
24850X11_LIBS=''
24851XEXT_LIBS=''
24852XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000024854$as_echo_n "checking for X... " >&6; }
24855
24856
24857# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000024858if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024859 withval=$with_x;
24860fi
24861
24862# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24863if test "x$with_x" = xno; then
24864 # The user explicitly disabled X.
24865 have_x=disabled
24866else
24867 case $x_includes,$x_libraries in #(
cristy0684af42010-07-09 00:00:05 +000024868 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristy8b350f62009-11-15 23:12:43 +000024869 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024870 $as_echo_n "(cached) " >&6
24871else
24872 # One or both of the vars are not set, and there is no cached value.
24873ac_x_includes=no ac_x_libraries=no
24874rm -f -r conftest.dir
24875if mkdir conftest.dir; then
24876 cd conftest.dir
24877 cat >Imakefile <<'_ACEOF'
24878incroot:
24879 @echo incroot='${INCROOT}'
24880usrlibdir:
24881 @echo usrlibdir='${USRLIBDIR}'
24882libdir:
24883 @echo libdir='${LIBDIR}'
24884_ACEOF
24885 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy0684af42010-07-09 00:00:05 +000024886 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000024887 for ac_var in incroot usrlibdir libdir; do
24888 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24889 done
24890 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24891 for ac_extension in a so sl dylib la dll; do
24892 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24893 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24894 ac_im_usrlibdir=$ac_im_libdir; break
24895 fi
24896 done
24897 # Screen out bogus values from the imake configuration. They are
24898 # bogus both because they are the default anyway, and because
24899 # using them would break gcc on systems where it needs fixed includes.
24900 case $ac_im_incroot in
24901 /usr/include) ac_x_includes= ;;
24902 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24903 esac
24904 case $ac_im_usrlibdir in
24905 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24906 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24907 esac
24908 fi
24909 cd ..
24910 rm -f -r conftest.dir
24911fi
24912
24913# Standard set of common directories for X headers.
24914# Check X11 before X11Rn because it is often a symlink to the current release.
24915ac_x_header_dirs='
24916/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000024917/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024918/usr/X11R6/include
24919/usr/X11R5/include
24920/usr/X11R4/include
24921
24922/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000024923/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024924/usr/include/X11R6
24925/usr/include/X11R5
24926/usr/include/X11R4
24927
24928/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000024929/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024930/usr/local/X11R6/include
24931/usr/local/X11R5/include
24932/usr/local/X11R4/include
24933
24934/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000024935/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024936/usr/local/include/X11R6
24937/usr/local/include/X11R5
24938/usr/local/include/X11R4
24939
24940/usr/X386/include
24941/usr/x386/include
24942/usr/XFree86/include/X11
24943
24944/usr/include
24945/usr/local/include
24946/usr/unsupported/include
24947/usr/athena/include
24948/usr/local/x11r5/include
24949/usr/lpp/Xamples/include
24950
24951/usr/openwin/include
24952/usr/openwin/share/include'
24953
24954if test "$ac_x_includes" = no; then
24955 # Guess where to find include files, by looking for Xlib.h.
24956 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000024957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024958/* end confdefs.h. */
24959#include <X11/Xlib.h>
24960_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024961if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000024962 # We can compile using X headers with no special include directory.
24963ac_x_includes=
24964else
cristyc7083c12009-10-14 03:16:55 +000024965 for ac_dir in $ac_x_header_dirs; do
24966 if test -r "$ac_dir/X11/Xlib.h"; then
24967 ac_x_includes=$ac_dir
24968 break
24969 fi
24970done
24971fi
cristyc7083c12009-10-14 03:16:55 +000024972rm -f conftest.err conftest.$ac_ext
24973fi # $ac_x_includes = no
24974
24975if test "$ac_x_libraries" = no; then
24976 # Check for the libraries.
24977 # See if we find them without any special options.
24978 # Don't add to $LIBS permanently.
24979 ac_save_LIBS=$LIBS
24980 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024982/* end confdefs.h. */
24983#include <X11/Xlib.h>
24984int
24985main ()
24986{
24987XrmInitialize ()
24988 ;
24989 return 0;
24990}
24991_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024992if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000024993 LIBS=$ac_save_LIBS
24994# We can link X programs with no special library path.
24995ac_x_libraries=
24996else
cristy8b350f62009-11-15 23:12:43 +000024997 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000024998for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24999do
25000 # Don't even attempt the hair of trying to link an X program!
25001 for ac_extension in a so sl dylib la dll; do
25002 if test -r "$ac_dir/libX11.$ac_extension"; then
25003 ac_x_libraries=$ac_dir
25004 break 2
25005 fi
25006 done
25007done
25008fi
cristy8b350f62009-11-15 23:12:43 +000025009rm -f core conftest.err conftest.$ac_objext \
25010 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025011fi # $ac_x_libraries = no
25012
25013case $ac_x_includes,$ac_x_libraries in #(
25014 no,* | *,no | *\'*)
25015 # Didn't find X, or a directory has "'" in its name.
25016 ac_cv_have_x="have_x=no";; #(
25017 *)
25018 # Record where we found X for the cache.
25019 ac_cv_have_x="have_x=yes\
25020 ac_x_includes='$ac_x_includes'\
25021 ac_x_libraries='$ac_x_libraries'"
25022esac
25023fi
25024;; #(
25025 *) have_x=yes;;
25026 esac
25027 eval "$ac_cv_have_x"
25028fi # $with_x != no
25029
25030if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025032$as_echo "$have_x" >&6; }
25033 no_x=yes
25034else
25035 # If each of the values was on the command line, it overrides each guess.
25036 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25037 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25038 # Update the cache value to reflect the command line values.
25039 ac_cv_have_x="have_x=yes\
25040 ac_x_includes='$x_includes'\
25041 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025043$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25044fi
25045
cristy3ed852e2009-09-05 21:47:34 +000025046if test "$no_x" = yes; then
25047 # Not all programs may use this symbol, but it does not hurt to define it.
25048
cristy8b350f62009-11-15 23:12:43 +000025049$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025050
25051 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25052else
25053 if test -n "$x_includes"; then
25054 X_CFLAGS="$X_CFLAGS -I$x_includes"
25055 fi
25056
25057 # It would also be nice to do this for all -L options, not just this one.
25058 if test -n "$x_libraries"; then
25059 X_LIBS="$X_LIBS -L$x_libraries"
25060 # For Solaris; some versions of Sun CC require a space after -R and
25061 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025063$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25064 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25065 ac_xsave_c_werror_flag=$ac_c_werror_flag
25066 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025068/* end confdefs.h. */
25069
25070int
25071main ()
25072{
25073
25074 ;
25075 return 0;
25076}
25077_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025078if ac_fn_c_try_link "$LINENO"; then :
25079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025080$as_echo "no" >&6; }
25081 X_LIBS="$X_LIBS -R$x_libraries"
25082else
cristy8b350f62009-11-15 23:12:43 +000025083 LIBS="$ac_xsave_LIBS -R $x_libraries"
25084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025085/* end confdefs.h. */
25086
25087int
25088main ()
25089{
25090
25091 ;
25092 return 0;
25093}
25094_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025095if ac_fn_c_try_link "$LINENO"; then :
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025097$as_echo "yes" >&6; }
25098 X_LIBS="$X_LIBS -R $x_libraries"
25099else
cristy8b350f62009-11-15 23:12:43 +000025100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025101$as_echo "neither works" >&6; }
25102fi
cristy8b350f62009-11-15 23:12:43 +000025103rm -f core conftest.err conftest.$ac_objext \
25104 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025105fi
cristy8b350f62009-11-15 23:12:43 +000025106rm -f core conftest.err conftest.$ac_objext \
25107 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025108 ac_c_werror_flag=$ac_xsave_c_werror_flag
25109 LIBS=$ac_xsave_LIBS
25110 fi
25111
25112 # Check for system-dependent libraries X programs must link with.
25113 # Do this before checking for the system-independent R6 libraries
25114 # (-lICE), since we may need -lsocket or whatever for X linking.
25115
25116 if test "$ISC" = yes; then
25117 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25118 else
25119 # Martyn Johnson says this is needed for Ultrix, if the X
25120 # libraries were built with DECnet support. And Karl Berry says
25121 # the Alpha needs dnet_stub (dnet does not exist).
25122 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025124/* end confdefs.h. */
25125
25126/* Override any GCC internal prototype to avoid an error.
25127 Use char because int might match the return type of a GCC
25128 builtin and then its argument prototype would still apply. */
25129#ifdef __cplusplus
25130extern "C"
25131#endif
25132char XOpenDisplay ();
25133int
25134main ()
25135{
25136return XOpenDisplay ();
25137 ;
25138 return 0;
25139}
25140_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025141if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025142
cristy8b350f62009-11-15 23:12:43 +000025143else
25144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025145$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025146if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025147 $as_echo_n "(cached) " >&6
25148else
25149 ac_check_lib_save_LIBS=$LIBS
25150LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025152/* end confdefs.h. */
25153
25154/* Override any GCC internal prototype to avoid an error.
25155 Use char because int might match the return type of a GCC
25156 builtin and then its argument prototype would still apply. */
25157#ifdef __cplusplus
25158extern "C"
25159#endif
25160char dnet_ntoa ();
25161int
25162main ()
25163{
25164return dnet_ntoa ();
25165 ;
25166 return 0;
25167}
25168_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025169if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025170 ac_cv_lib_dnet_dnet_ntoa=yes
25171else
cristy8b350f62009-11-15 23:12:43 +000025172 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025173fi
cristy8b350f62009-11-15 23:12:43 +000025174rm -f core conftest.err conftest.$ac_objext \
25175 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025176LIBS=$ac_check_lib_save_LIBS
25177fi
cristy8b350f62009-11-15 23:12:43 +000025178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025179$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025180if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025181 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25182fi
25183
25184 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000025185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000025186$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025187if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025188 $as_echo_n "(cached) " >&6
25189else
25190 ac_check_lib_save_LIBS=$LIBS
25191LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025193/* end confdefs.h. */
25194
25195/* Override any GCC internal prototype to avoid an error.
25196 Use char because int might match the return type of a GCC
25197 builtin and then its argument prototype would still apply. */
25198#ifdef __cplusplus
25199extern "C"
25200#endif
25201char dnet_ntoa ();
25202int
25203main ()
25204{
25205return dnet_ntoa ();
25206 ;
25207 return 0;
25208}
25209_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025210if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025211 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25212else
cristy8b350f62009-11-15 23:12:43 +000025213 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025214fi
cristy8b350f62009-11-15 23:12:43 +000025215rm -f core conftest.err conftest.$ac_objext \
25216 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025217LIBS=$ac_check_lib_save_LIBS
25218fi
cristy8b350f62009-11-15 23:12:43 +000025219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025220$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025221if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025222 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25223fi
25224
25225 fi
25226fi
cristy8b350f62009-11-15 23:12:43 +000025227rm -f core conftest.err conftest.$ac_objext \
25228 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025229 LIBS="$ac_xsave_LIBS"
25230
25231 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25232 # to get the SysV transport functions.
25233 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25234 # needs -lnsl.
25235 # The nsl library prevents programs from opening the X display
25236 # on Irix 5.2, according to T.E. Dickey.
25237 # The functions gethostbyname, getservbyname, and inet_addr are
25238 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000025239 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25240if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025241
cristy3ed852e2009-09-05 21:47:34 +000025242fi
25243
cristy3ed852e2009-09-05 21:47:34 +000025244 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025246$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025247if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025248 $as_echo_n "(cached) " >&6
25249else
25250 ac_check_lib_save_LIBS=$LIBS
25251LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025253/* end confdefs.h. */
25254
25255/* Override any GCC internal prototype to avoid an error.
25256 Use char because int might match the return type of a GCC
25257 builtin and then its argument prototype would still apply. */
25258#ifdef __cplusplus
25259extern "C"
25260#endif
25261char gethostbyname ();
25262int
25263main ()
25264{
25265return gethostbyname ();
25266 ;
25267 return 0;
25268}
25269_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025270if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025271 ac_cv_lib_nsl_gethostbyname=yes
25272else
cristy8b350f62009-11-15 23:12:43 +000025273 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025274fi
cristy8b350f62009-11-15 23:12:43 +000025275rm -f core conftest.err conftest.$ac_objext \
25276 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025277LIBS=$ac_check_lib_save_LIBS
25278fi
cristy8b350f62009-11-15 23:12:43 +000025279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025280$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025281if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025282 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25283fi
25284
25285 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000025287$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025288if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025289 $as_echo_n "(cached) " >&6
25290else
25291 ac_check_lib_save_LIBS=$LIBS
25292LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025294/* end confdefs.h. */
25295
25296/* Override any GCC internal prototype to avoid an error.
25297 Use char because int might match the return type of a GCC
25298 builtin and then its argument prototype would still apply. */
25299#ifdef __cplusplus
25300extern "C"
25301#endif
25302char gethostbyname ();
25303int
25304main ()
25305{
25306return gethostbyname ();
25307 ;
25308 return 0;
25309}
25310_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025311if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025312 ac_cv_lib_bsd_gethostbyname=yes
25313else
cristy8b350f62009-11-15 23:12:43 +000025314 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025315fi
cristy8b350f62009-11-15 23:12:43 +000025316rm -f core conftest.err conftest.$ac_objext \
25317 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025318LIBS=$ac_check_lib_save_LIBS
25319fi
cristy8b350f62009-11-15 23:12:43 +000025320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025321$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025322if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025323 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25324fi
25325
25326 fi
25327 fi
25328
25329 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25330 # socket/setsockopt and other routines are undefined under SCO ODT
25331 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25332 # on later versions), says Simon Leinen: it contains gethostby*
25333 # variants that don't use the name server (or something). -lsocket
25334 # must be given before -lnsl if both are needed. We assume that
25335 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000025336 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25337if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025338
cristy3ed852e2009-09-05 21:47:34 +000025339fi
25340
cristy3ed852e2009-09-05 21:47:34 +000025341 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000025342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000025343$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025344if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025345 $as_echo_n "(cached) " >&6
25346else
25347 ac_check_lib_save_LIBS=$LIBS
25348LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025350/* end confdefs.h. */
25351
25352/* Override any GCC internal prototype to avoid an error.
25353 Use char because int might match the return type of a GCC
25354 builtin and then its argument prototype would still apply. */
25355#ifdef __cplusplus
25356extern "C"
25357#endif
25358char connect ();
25359int
25360main ()
25361{
25362return connect ();
25363 ;
25364 return 0;
25365}
25366_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025367if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025368 ac_cv_lib_socket_connect=yes
25369else
cristy8b350f62009-11-15 23:12:43 +000025370 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000025371fi
cristy8b350f62009-11-15 23:12:43 +000025372rm -f core conftest.err conftest.$ac_objext \
25373 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025374LIBS=$ac_check_lib_save_LIBS
25375fi
cristy8b350f62009-11-15 23:12:43 +000025376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000025377$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025378if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025379 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25380fi
25381
25382 fi
25383
25384 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000025385 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25386if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025387
cristy3ed852e2009-09-05 21:47:34 +000025388fi
25389
cristy3ed852e2009-09-05 21:47:34 +000025390 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000025391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000025392$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025393if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025394 $as_echo_n "(cached) " >&6
25395else
25396 ac_check_lib_save_LIBS=$LIBS
25397LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025399/* end confdefs.h. */
25400
25401/* Override any GCC internal prototype to avoid an error.
25402 Use char because int might match the return type of a GCC
25403 builtin and then its argument prototype would still apply. */
25404#ifdef __cplusplus
25405extern "C"
25406#endif
25407char remove ();
25408int
25409main ()
25410{
25411return remove ();
25412 ;
25413 return 0;
25414}
25415_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025416if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025417 ac_cv_lib_posix_remove=yes
25418else
cristy8b350f62009-11-15 23:12:43 +000025419 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000025420fi
cristy8b350f62009-11-15 23:12:43 +000025421rm -f core conftest.err conftest.$ac_objext \
25422 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025423LIBS=$ac_check_lib_save_LIBS
25424fi
cristy8b350f62009-11-15 23:12:43 +000025425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000025426$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025427if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025428 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25429fi
25430
25431 fi
25432
25433 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000025434 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25435if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025436
cristy3ed852e2009-09-05 21:47:34 +000025437fi
25438
cristy3ed852e2009-09-05 21:47:34 +000025439 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000025440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025441$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025442if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025443 $as_echo_n "(cached) " >&6
25444else
25445 ac_check_lib_save_LIBS=$LIBS
25446LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025448/* end confdefs.h. */
25449
25450/* Override any GCC internal prototype to avoid an error.
25451 Use char because int might match the return type of a GCC
25452 builtin and then its argument prototype would still apply. */
25453#ifdef __cplusplus
25454extern "C"
25455#endif
25456char shmat ();
25457int
25458main ()
25459{
25460return shmat ();
25461 ;
25462 return 0;
25463}
25464_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025465if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025466 ac_cv_lib_ipc_shmat=yes
25467else
cristy8b350f62009-11-15 23:12:43 +000025468 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000025469fi
cristy8b350f62009-11-15 23:12:43 +000025470rm -f core conftest.err conftest.$ac_objext \
25471 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025472LIBS=$ac_check_lib_save_LIBS
25473fi
cristy8b350f62009-11-15 23:12:43 +000025474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000025475$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025476if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025477 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25478fi
25479
25480 fi
25481 fi
25482
25483 # Check for libraries that X11R6 Xt/Xaw programs need.
25484 ac_save_LDFLAGS=$LDFLAGS
25485 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25486 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25487 # check for ICE first), but we must link in the order -lSM -lICE or
25488 # we get undefined symbols. So assume we have SM if we have ICE.
25489 # These have to be linked with before -lX11, unlike the other
25490 # libraries we check for below, so use a different variable.
25491 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000025492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025493$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025494if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025495 $as_echo_n "(cached) " >&6
25496else
25497 ac_check_lib_save_LIBS=$LIBS
25498LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025500/* end confdefs.h. */
25501
25502/* Override any GCC internal prototype to avoid an error.
25503 Use char because int might match the return type of a GCC
25504 builtin and then its argument prototype would still apply. */
25505#ifdef __cplusplus
25506extern "C"
25507#endif
25508char IceConnectionNumber ();
25509int
25510main ()
25511{
25512return IceConnectionNumber ();
25513 ;
25514 return 0;
25515}
25516_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025517if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025518 ac_cv_lib_ICE_IceConnectionNumber=yes
25519else
cristy8b350f62009-11-15 23:12:43 +000025520 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000025521fi
cristy8b350f62009-11-15 23:12:43 +000025522rm -f core conftest.err conftest.$ac_objext \
25523 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025524LIBS=$ac_check_lib_save_LIBS
25525fi
cristy8b350f62009-11-15 23:12:43 +000025526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000025527$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025528if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025529 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25530fi
25531
25532 LDFLAGS=$ac_save_LDFLAGS
25533
25534fi
25535
25536if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025538$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000025540$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025542$as_echo "" >&6; }
25543 LDFLAGS="$LDFLAGS $X_LIBS"
25544 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25545 LIBS="$X11_LIBS $LIBS"
25546 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25547
25548
cristy8b350f62009-11-15 23:12:43 +000025549$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025550
25551 #
25552 # Check for X11 shared memory extension
25553 #
25554 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000025555 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25556if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025557 have_shmctl='yes'
25558fi
25559
25560 if test "$have_shmctl" != 'yes'; then
25561 PERSIST_LIBS=$LIBS
25562 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000025563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025564/* end confdefs.h. */
25565
25566/* Override any GCC internal prototype to avoid an error.
25567 Use char because int might match the return type of a GCC
25568 builtin and then its argument prototype would still apply. */
25569#ifdef __cplusplus
25570extern "C"
25571#endif
25572char shmctl ();
25573int
25574main ()
25575{
25576return shmctl ();
25577 ;
25578 return 0;
25579}
25580_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025581if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025582 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000025583fi
cristy8b350f62009-11-15 23:12:43 +000025584rm -f core conftest.err conftest.$ac_objext \
25585 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025586 LIBS=$PERSIST_LIBS
25587 fi
25588
25589 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025591$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025592if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025593 $as_echo_n "(cached) " >&6
25594else
25595 ac_check_lib_save_LIBS=$LIBS
25596LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025598/* end confdefs.h. */
25599
25600/* Override any GCC internal prototype to avoid an error.
25601 Use char because int might match the return type of a GCC
25602 builtin and then its argument prototype would still apply. */
25603#ifdef __cplusplus
25604extern "C"
25605#endif
25606char XShmAttach ();
25607int
25608main ()
25609{
25610return XShmAttach ();
25611 ;
25612 return 0;
25613}
25614_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025615if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025616 ac_cv_lib_Xext_XShmAttach=yes
25617else
cristy8b350f62009-11-15 23:12:43 +000025618 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025619fi
cristy8b350f62009-11-15 23:12:43 +000025620rm -f core conftest.err conftest.$ac_objext \
25621 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025622LIBS=$ac_check_lib_save_LIBS
25623fi
cristy8b350f62009-11-15 23:12:43 +000025624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025625$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025626if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025627 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025628$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025629
25630fi
25631
25632 fi
25633
25634 #
25635 # Check for X11 shape extension
25636 #
cristy8b350f62009-11-15 23:12:43 +000025637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025638$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025639if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025640 $as_echo_n "(cached) " >&6
25641else
25642 ac_check_lib_save_LIBS=$LIBS
25643LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025645/* end confdefs.h. */
25646
25647/* Override any GCC internal prototype to avoid an error.
25648 Use char because int might match the return type of a GCC
25649 builtin and then its argument prototype would still apply. */
25650#ifdef __cplusplus
25651extern "C"
25652#endif
25653char XShapeCombineMask ();
25654int
25655main ()
25656{
25657return XShapeCombineMask ();
25658 ;
25659 return 0;
25660}
25661_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025662if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025663 ac_cv_lib_Xext_XShapeCombineMask=yes
25664else
cristy8b350f62009-11-15 23:12:43 +000025665 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025666fi
cristy8b350f62009-11-15 23:12:43 +000025667rm -f core conftest.err conftest.$ac_objext \
25668 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025669LIBS=$ac_check_lib_save_LIBS
25670fi
cristy8b350f62009-11-15 23:12:43 +000025671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025672$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025673if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025674 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025675$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025676
25677fi
25678
cristy8b350f62009-11-15 23:12:43 +000025679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025680$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025681if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025682 $as_echo_n "(cached) " >&6
25683else
25684 ac_check_lib_save_LIBS=$LIBS
25685LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025687/* end confdefs.h. */
25688
25689/* Override any GCC internal prototype to avoid an error.
25690 Use char because int might match the return type of a GCC
25691 builtin and then its argument prototype would still apply. */
25692#ifdef __cplusplus
25693extern "C"
25694#endif
25695char XtSetEventDispatcher ();
25696int
25697main ()
25698{
25699return XtSetEventDispatcher ();
25700 ;
25701 return 0;
25702}
25703_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025704if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025705 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25706else
cristy8b350f62009-11-15 23:12:43 +000025707 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025708fi
cristy8b350f62009-11-15 23:12:43 +000025709rm -f core conftest.err conftest.$ac_objext \
25710 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025711LIBS=$ac_check_lib_save_LIBS
25712fi
cristy8b350f62009-11-15 23:12:43 +000025713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025714$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025715if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025716 XT_LIBS='-lXt'
25717fi
25718
25719 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25720fi
25721if test "$no_x" != 'yes'; then
25722 have_x='yes'
25723else
25724 have_x='no'
25725fi
25726 if test "$have_x" = 'yes'; then
25727 X11_DELEGATE_TRUE=
25728 X11_DELEGATE_FALSE='#'
25729else
25730 X11_DELEGATE_TRUE='#'
25731 X11_DELEGATE_FALSE=
25732fi
25733
25734
25735
25736
25737
25738#
25739# Check for ZLIB
25740#
25741
25742# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025743if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025744 withval=$with_zlib; with_zlib=$withval
25745else
25746 with_zlib='yes'
25747fi
25748
25749
25750if test "$with_zlib" != 'yes'; then
25751 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25752fi
25753
25754have_zlib='no'
25755ZLIB_LIBS=''
25756if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025758$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025760$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025762$as_echo "" >&6; }
25763 ZLIB_LIBS=''
25764 failed=0
25765 passed=0
cristy8b350f62009-11-15 23:12:43 +000025766 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25767if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025768 passed=`expr $passed + 1`
25769else
25770 failed=`expr $failed + 1`
25771fi
25772
25773
cristy8b350f62009-11-15 23:12:43 +000025774 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25775if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025776 passed=`expr $passed + 1`
25777else
25778 failed=`expr $failed + 1`
25779fi
25780
25781
cristy8b350f62009-11-15 23:12:43 +000025782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025783$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025784if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025785 $as_echo_n "(cached) " >&6
25786else
25787 ac_check_lib_save_LIBS=$LIBS
25788LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025790/* end confdefs.h. */
25791
25792/* Override any GCC internal prototype to avoid an error.
25793 Use char because int might match the return type of a GCC
25794 builtin and then its argument prototype would still apply. */
25795#ifdef __cplusplus
25796extern "C"
25797#endif
25798char compress ();
25799int
25800main ()
25801{
25802return compress ();
25803 ;
25804 return 0;
25805}
25806_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025807if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025808 ac_cv_lib_z_compress=yes
25809else
cristy8b350f62009-11-15 23:12:43 +000025810 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000025811fi
cristy8b350f62009-11-15 23:12:43 +000025812rm -f core conftest.err conftest.$ac_objext \
25813 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025814LIBS=$ac_check_lib_save_LIBS
25815fi
cristy8b350f62009-11-15 23:12:43 +000025816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025817$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025818if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025819 passed=`expr $passed + 1`
25820else
25821 failed=`expr $failed + 1`
25822fi
25823
cristy8b350f62009-11-15 23:12:43 +000025824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025825$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025826if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025827 $as_echo_n "(cached) " >&6
25828else
25829 ac_check_lib_save_LIBS=$LIBS
25830LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025832/* end confdefs.h. */
25833
25834/* Override any GCC internal prototype to avoid an error.
25835 Use char because int might match the return type of a GCC
25836 builtin and then its argument prototype would still apply. */
25837#ifdef __cplusplus
25838extern "C"
25839#endif
25840char uncompress ();
25841int
25842main ()
25843{
25844return uncompress ();
25845 ;
25846 return 0;
25847}
25848_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025849if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025850 ac_cv_lib_z_uncompress=yes
25851else
cristy8b350f62009-11-15 23:12:43 +000025852 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000025853fi
cristy8b350f62009-11-15 23:12:43 +000025854rm -f core conftest.err conftest.$ac_objext \
25855 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025856LIBS=$ac_check_lib_save_LIBS
25857fi
cristy8b350f62009-11-15 23:12:43 +000025858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025859$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025860if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025861 passed=`expr $passed + 1`
25862else
25863 failed=`expr $failed + 1`
25864fi
25865
cristy8b350f62009-11-15 23:12:43 +000025866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025867$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025868if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025869 $as_echo_n "(cached) " >&6
25870else
25871 ac_check_lib_save_LIBS=$LIBS
25872LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025874/* end confdefs.h. */
25875
25876/* Override any GCC internal prototype to avoid an error.
25877 Use char because int might match the return type of a GCC
25878 builtin and then its argument prototype would still apply. */
25879#ifdef __cplusplus
25880extern "C"
25881#endif
25882char deflate ();
25883int
25884main ()
25885{
25886return deflate ();
25887 ;
25888 return 0;
25889}
25890_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025891if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025892 ac_cv_lib_z_deflate=yes
25893else
cristy8b350f62009-11-15 23:12:43 +000025894 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000025895fi
cristy8b350f62009-11-15 23:12:43 +000025896rm -f core conftest.err conftest.$ac_objext \
25897 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025898LIBS=$ac_check_lib_save_LIBS
25899fi
cristy8b350f62009-11-15 23:12:43 +000025900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025901$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025902if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025903 passed=`expr $passed + 1`
25904else
25905 failed=`expr $failed + 1`
25906fi
25907
cristy8b350f62009-11-15 23:12:43 +000025908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025909$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025910if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025911 $as_echo_n "(cached) " >&6
25912else
25913 ac_check_lib_save_LIBS=$LIBS
25914LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025916/* end confdefs.h. */
25917
25918/* Override any GCC internal prototype to avoid an error.
25919 Use char because int might match the return type of a GCC
25920 builtin and then its argument prototype would still apply. */
25921#ifdef __cplusplus
25922extern "C"
25923#endif
25924char inflate ();
25925int
25926main ()
25927{
25928return inflate ();
25929 ;
25930 return 0;
25931}
25932_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025933if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025934 ac_cv_lib_z_inflate=yes
25935else
cristy8b350f62009-11-15 23:12:43 +000025936 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000025937fi
cristy8b350f62009-11-15 23:12:43 +000025938rm -f core conftest.err conftest.$ac_objext \
25939 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025940LIBS=$ac_check_lib_save_LIBS
25941fi
cristy8b350f62009-11-15 23:12:43 +000025942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025943$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025944if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025945 passed=`expr $passed + 1`
25946else
25947 failed=`expr $failed + 1`
25948fi
25949
cristy8b350f62009-11-15 23:12:43 +000025950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025951$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025952if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025953 $as_echo_n "(cached) " >&6
25954else
25955 ac_check_lib_save_LIBS=$LIBS
25956LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025958/* end confdefs.h. */
25959
25960/* Override any GCC internal prototype to avoid an error.
25961 Use char because int might match the return type of a GCC
25962 builtin and then its argument prototype would still apply. */
25963#ifdef __cplusplus
25964extern "C"
25965#endif
25966char gzseek ();
25967int
25968main ()
25969{
25970return gzseek ();
25971 ;
25972 return 0;
25973}
25974_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025975if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025976 ac_cv_lib_z_gzseek=yes
25977else
cristy8b350f62009-11-15 23:12:43 +000025978 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000025979fi
cristy8b350f62009-11-15 23:12:43 +000025980rm -f core conftest.err conftest.$ac_objext \
25981 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025982LIBS=$ac_check_lib_save_LIBS
25983fi
cristy8b350f62009-11-15 23:12:43 +000025984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000025985$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025986if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025987 passed=`expr $passed + 1`
25988else
25989 failed=`expr $failed + 1`
25990fi
25991
cristy8b350f62009-11-15 23:12:43 +000025992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025993$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025994if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025995 $as_echo_n "(cached) " >&6
25996else
25997 ac_check_lib_save_LIBS=$LIBS
25998LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026000/* end confdefs.h. */
26001
26002/* Override any GCC internal prototype to avoid an error.
26003 Use char because int might match the return type of a GCC
26004 builtin and then its argument prototype would still apply. */
26005#ifdef __cplusplus
26006extern "C"
26007#endif
26008char gztell ();
26009int
26010main ()
26011{
26012return gztell ();
26013 ;
26014 return 0;
26015}
26016_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026017if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026018 ac_cv_lib_z_gztell=yes
26019else
cristy8b350f62009-11-15 23:12:43 +000026020 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026021fi
cristy8b350f62009-11-15 23:12:43 +000026022rm -f core conftest.err conftest.$ac_objext \
26023 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026024LIBS=$ac_check_lib_save_LIBS
26025fi
cristy8b350f62009-11-15 23:12:43 +000026026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026027$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026028if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026029 passed=`expr $passed + 1`
26030else
26031 failed=`expr $failed + 1`
26032fi
26033
cristy8b350f62009-11-15 23:12:43 +000026034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026035$as_echo_n "checking if ZLIB package is complete... " >&6; }
26036 if test $passed -gt 0; then
26037 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026039$as_echo "no -- some components failed test" >&6; }
26040 have_zlib='no (failed tests)'
26041 else
26042 ZLIB_LIBS='-lz'
26043 LIBS="$ZLIB_LIBS $LIBS"
26044
cristy8b350f62009-11-15 23:12:43 +000026045$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026046
cristy8b350f62009-11-15 23:12:43 +000026047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026048$as_echo "yes" >&6; }
26049 have_zlib='yes'
26050 fi
26051 else
cristy8b350f62009-11-15 23:12:43 +000026052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026053$as_echo "no" >&6; }
26054 fi
26055fi
26056 if test "$have_zlib" = 'yes'; then
26057 ZLIB_DELEGATE_TRUE=
26058 ZLIB_DELEGATE_FALSE='#'
26059else
26060 ZLIB_DELEGATE_TRUE='#'
26061 ZLIB_DELEGATE_FALSE=
26062fi
26063
26064
26065
26066#
26067# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26068#
26069LIB_DL=''
26070if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026072$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026073if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026074 $as_echo_n "(cached) " >&6
26075else
26076 ac_check_lib_save_LIBS=$LIBS
26077LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026079/* end confdefs.h. */
26080
26081/* Override any GCC internal prototype to avoid an error.
26082 Use char because int might match the return type of a GCC
26083 builtin and then its argument prototype would still apply. */
26084#ifdef __cplusplus
26085extern "C"
26086#endif
26087char dlopen ();
26088int
26089main ()
26090{
26091return dlopen ();
26092 ;
26093 return 0;
26094}
26095_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026096if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026097 ac_cv_lib_dl_dlopen=yes
26098else
cristy8b350f62009-11-15 23:12:43 +000026099 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026100fi
cristy8b350f62009-11-15 23:12:43 +000026101rm -f core conftest.err conftest.$ac_objext \
26102 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026103LIBS=$ac_check_lib_save_LIBS
26104fi
cristy8b350f62009-11-15 23:12:43 +000026105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026106$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026107if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026108 LIB_DL='-ldl'
26109fi
26110
26111 LIBS="$LIB_DL $LIBS"
26112fi
26113
26114
26115
26116#
26117# Check for Autotrace delegate library.
26118#
26119
26120# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026121if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026122 withval=$with_autotrace; with_autotrace=$withval
26123else
26124 with_autotrace='no'
26125fi
26126
26127
26128if test "$with_autotrace" != 'yes'; then
26129 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26130fi
26131
26132have_autotrace='no'
26133AUTOTRACE_CFLAGS=""
26134AUTOTRACE_LIBS=""
26135AUTOTRACE_PKG=""
26136if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026138$as_echo "-------------------------------------------------------------" >&6; }
26139
26140pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000026142$as_echo_n "checking for AUTOTRACE... " >&6; }
26143
26144if test -n "$AUTOTRACE_CFLAGS"; then
26145 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26146 elif test -n "$PKG_CONFIG"; then
26147 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026148 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026149 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26150 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26152 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026153 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26154else
26155 pkg_failed=yes
26156fi
26157 else
26158 pkg_failed=untried
26159fi
26160if test -n "$AUTOTRACE_LIBS"; then
26161 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26162 elif test -n "$PKG_CONFIG"; then
26163 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026164 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026165 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26166 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26168 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026169 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26170else
26171 pkg_failed=yes
26172fi
26173 else
26174 pkg_failed=untried
26175fi
26176
26177
26178
26179if test $pkg_failed = yes; then
26180
26181if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26182 _pkg_short_errors_supported=yes
26183else
26184 _pkg_short_errors_supported=no
26185fi
26186 if test $_pkg_short_errors_supported = yes; then
26187 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26188 else
26189 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26190 fi
26191 # Put the nasty error message in config.log where it belongs
26192 echo "$AUTOTRACE_PKG_ERRORS" >&5
26193
cristy8b350f62009-11-15 23:12:43 +000026194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026195$as_echo "no" >&6; }
26196 have_autotrace=no
26197elif test $pkg_failed = untried; then
26198 have_autotrace=no
26199else
26200 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26201 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000026202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026203$as_echo "yes" >&6; }
26204 have_autotrace=yes
26205fi
cristy8b350f62009-11-15 23:12:43 +000026206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026207$as_echo "" >&6; }
26208fi
26209
26210if test "$have_autotrace" = 'yes'; then
26211 failed=0
26212
cristy8b350f62009-11-15 23:12:43 +000026213$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026214
26215 if test "$with_modules" = 'no'; then
26216 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26217 fi
26218fi
26219
26220 if test "$have_autotrace" = 'yes'; then
26221 AUTOTRACE_DELEGATE_TRUE=
26222 AUTOTRACE_DELEGATE_FALSE='#'
26223else
26224 AUTOTRACE_DELEGATE_TRUE='#'
26225 AUTOTRACE_DELEGATE_FALSE=
26226fi
26227
26228
26229
26230
26231
26232#
26233# Check for Display Postscript delegate library.
26234#
26235
26236# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000026237if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026238 withval=$with_dps; with_dps=$withval
26239else
26240 with_dps='yes'
26241fi
26242
26243
26244if test "$with_dps" != 'yes'; then
26245 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26246fi
26247
26248have_dps='no'
26249DPS_LIBS=''
26250if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026252$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026254$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026256$as_echo "" >&6; }
26257 failed=0
26258 passed=0
26259 PERSIST_CPPFLAGS="$CPPFLAGS"
26260 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000026261 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26262if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026263 passed=`expr $passed + 1`
26264else
26265 failed=`expr $failed + 1`
26266fi
26267
26268
26269 # DPS issues:
26270 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26271 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26272 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26273 # ImageMagick itself doesn't use -lXt.
26274 have_libdps='no'
26275 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000026276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026277$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026278if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026279 $as_echo_n "(cached) " >&6
26280else
26281 ac_check_lib_save_LIBS=$LIBS
26282LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026284/* end confdefs.h. */
26285
26286/* Override any GCC internal prototype to avoid an error.
26287 Use char because int might match the return type of a GCC
26288 builtin and then its argument prototype would still apply. */
26289#ifdef __cplusplus
26290extern "C"
26291#endif
26292char DPSInitialize ();
26293int
26294main ()
26295{
26296return DPSInitialize ();
26297 ;
26298 return 0;
26299}
26300_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026301if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026302 ac_cv_lib_dps_DPSInitialize=yes
26303else
cristy8b350f62009-11-15 23:12:43 +000026304 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026305fi
cristy8b350f62009-11-15 23:12:43 +000026306rm -f core conftest.err conftest.$ac_objext \
26307 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026308LIBS=$ac_check_lib_save_LIBS
26309fi
cristy8b350f62009-11-15 23:12:43 +000026310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026311$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026312if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026313 have_libdps='yes'
26314else
26315 have_libdps='no'
26316fi
26317
26318 if test "$have_libdps" != 'yes'; then
26319 # Unset cache variable so we can try again.
26320 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000026321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026322$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026323if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026324 $as_echo_n "(cached) " >&6
26325else
26326 ac_check_lib_save_LIBS=$LIBS
26327LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026329/* end confdefs.h. */
26330
26331/* Override any GCC internal prototype to avoid an error.
26332 Use char because int might match the return type of a GCC
26333 builtin and then its argument prototype would still apply. */
26334#ifdef __cplusplus
26335extern "C"
26336#endif
26337char DPSInitialize ();
26338int
26339main ()
26340{
26341return DPSInitialize ();
26342 ;
26343 return 0;
26344}
26345_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026346if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026347 ac_cv_lib_dps_DPSInitialize=yes
26348else
cristy8b350f62009-11-15 23:12:43 +000026349 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026350fi
cristy8b350f62009-11-15 23:12:43 +000026351rm -f core conftest.err conftest.$ac_objext \
26352 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026353LIBS=$ac_check_lib_save_LIBS
26354fi
cristy8b350f62009-11-15 23:12:43 +000026355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026356$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026357if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026358 have_libdps='yes'
26359else
26360 have_libdps='no'
26361fi
26362
26363 if test "$have_libdps" = 'yes'; then
26364 LIBDPS_XT='-lXt'
26365 fi
26366 fi
26367 if test "$have_libdps" = 'yes'; then
26368 passed=`expr $passed + 1`
26369 else
26370 failed=`expr $failed + 1`
26371 fi
cristy8b350f62009-11-15 23:12:43 +000026372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026373$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026374if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026375 $as_echo_n "(cached) " >&6
26376else
26377 ac_check_lib_save_LIBS=$LIBS
26378LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026380/* end confdefs.h. */
26381
26382/* Override any GCC internal prototype to avoid an error.
26383 Use char because int might match the return type of a GCC
26384 builtin and then its argument prototype would still apply. */
26385#ifdef __cplusplus
26386extern "C"
26387#endif
26388char XDPSPixelsPerPoint ();
26389int
26390main ()
26391{
26392return XDPSPixelsPerPoint ();
26393 ;
26394 return 0;
26395}
26396_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026397if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026398 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26399else
cristy8b350f62009-11-15 23:12:43 +000026400 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000026401fi
cristy8b350f62009-11-15 23:12:43 +000026402rm -f core conftest.err conftest.$ac_objext \
26403 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026404LIBS=$ac_check_lib_save_LIBS
26405fi
cristy8b350f62009-11-15 23:12:43 +000026406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000026407$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026408if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026409 passed=`expr $passed + 1`
26410else
26411 failed=`expr $failed + 1`
26412fi
26413
cristy8b350f62009-11-15 23:12:43 +000026414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026415$as_echo_n "checking if DPS package is complete... " >&6; }
26416 if test $passed -gt 0; then
26417 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026419$as_echo "no -- some components failed test" >&6; }
26420 have_dps='no (failed tests)'
26421 CPPFLAGS="$PERSIST_CPPFLAGS"
26422 else
26423 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26424 LIBS="$DPS_LIBS $LIBS"
26425
cristy8b350f62009-11-15 23:12:43 +000026426$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026427
cristy8b350f62009-11-15 23:12:43 +000026428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026429$as_echo "yes" >&6; }
26430 have_dps='yes'
26431 fi
26432 else
cristy8b350f62009-11-15 23:12:43 +000026433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026434$as_echo "no" >&6; }
26435 CPPFLAGS=$PERSIST_CPPFLAGS
26436 fi
26437fi
26438 if test "$have_dps" = 'yes'; then
26439 DPS_DELEGATE_TRUE=
26440 DPS_DELEGATE_FALSE='#'
26441else
26442 DPS_DELEGATE_TRUE='#'
26443 DPS_DELEGATE_FALSE=
26444fi
26445
26446
26447
26448
26449#
26450# Check for DJVU delegate library.
26451#
26452
26453# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000026454if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026455 withval=$with_djvu; with_djvu=$withval
26456else
26457 with_djvu='yes'
26458fi
26459
26460
26461if test "$with_djvu" != 'yes'; then
26462 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26463fi
26464
26465have_djvu='no'
26466DJVU_LIBS=''
26467if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026469$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000026471$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026473$as_echo "" >&6; }
26474 failed=0
26475 passed=0
cristy8b350f62009-11-15 23:12:43 +000026476 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26477if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026478 passed=`expr $passed + 1`
26479else
26480 failed=`expr $failed + 1`
26481fi
26482
26483
cristy8b350f62009-11-15 23:12:43 +000026484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000026485$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026486if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026487 $as_echo_n "(cached) " >&6
26488else
26489 ac_check_lib_save_LIBS=$LIBS
26490LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026492/* end confdefs.h. */
26493
26494/* Override any GCC internal prototype to avoid an error.
26495 Use char because int might match the return type of a GCC
26496 builtin and then its argument prototype would still apply. */
26497#ifdef __cplusplus
26498extern "C"
26499#endif
26500char ddjvu_context_create ();
26501int
26502main ()
26503{
26504return ddjvu_context_create ();
26505 ;
26506 return 0;
26507}
26508_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026509if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026510 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26511else
cristy8b350f62009-11-15 23:12:43 +000026512 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000026513fi
cristy8b350f62009-11-15 23:12:43 +000026514rm -f core conftest.err conftest.$ac_objext \
26515 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026516LIBS=$ac_check_lib_save_LIBS
26517fi
cristy8b350f62009-11-15 23:12:43 +000026518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000026519$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026520if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026521 passed=`expr $passed + 1`
26522else
26523 failed=`expr $failed + 1`
26524fi
26525
cristy8b350f62009-11-15 23:12:43 +000026526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026527$as_echo_n "checking if DJVU package is complete... " >&6; }
26528 if test $passed -gt 0; then
26529 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026531$as_echo "no -- some components failed test" >&6; }
26532 have_djvu='no (failed tests)'
26533 else
26534 DJVU_LIBS='-ldjvulibre'
26535 LIBS="$DJVU_LIBS $LIBS"
26536
cristy8b350f62009-11-15 23:12:43 +000026537$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026538
cristy8b350f62009-11-15 23:12:43 +000026539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026540$as_echo "yes" >&6; }
26541 have_djvu='yes'
26542 fi
26543 else
cristy8b350f62009-11-15 23:12:43 +000026544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026545$as_echo "no" >&6; }
26546 fi
26547fi
26548 if test "$have_djvu" = 'yes'; then
26549 DJVU_DELEGATE_TRUE=
26550 DJVU_DELEGATE_FALSE='#'
26551else
26552 DJVU_DELEGATE_TRUE='#'
26553 DJVU_DELEGATE_FALSE=
26554fi
26555
26556
26557
26558
26559#
cristy430a7312010-01-21 20:44:04 +000026560# Set DejaVu font directory.
26561#
26562
26563# Check whether --with-dejavu-font-dir was given.
26564if test "${with_dejavu_font_dir+set}" = set; then :
26565 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26566else
26567 with_dejavu_font_dir='default'
26568fi
26569
26570
26571if test "$with_dejavu_font_dir" != 'default'; then
26572 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26573fi
26574
26575
26576#
cristy3ed852e2009-09-05 21:47:34 +000026577# Check for FFTW delegate library.
26578#
26579
26580# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000026581if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026582 withval=$with_fftw; with_fftw=$withval
26583else
26584 with_fftw='yes'
26585fi
26586
26587
26588if test "$with_fftw" != 'yes'; then
26589 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26590fi
26591
26592have_fftw='no'
26593FFTW_LIBS=''
26594if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026596$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026598$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026600$as_echo "" >&6; }
26601 failed=0
26602 passed=0
cristy8b350f62009-11-15 23:12:43 +000026603 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26604if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026605 passed=`expr $passed + 1`
26606else
26607 failed=`expr $failed + 1`
26608fi
26609
26610
cristy8b350f62009-11-15 23:12:43 +000026611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026612$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026613if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026614 $as_echo_n "(cached) " >&6
26615else
26616 ac_check_lib_save_LIBS=$LIBS
26617LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026619/* end confdefs.h. */
26620
26621/* Override any GCC internal prototype to avoid an error.
26622 Use char because int might match the return type of a GCC
26623 builtin and then its argument prototype would still apply. */
26624#ifdef __cplusplus
26625extern "C"
26626#endif
26627char fftw_execute ();
26628int
26629main ()
26630{
26631return fftw_execute ();
26632 ;
26633 return 0;
26634}
26635_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026636if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026637 ac_cv_lib_fftw3_fftw_execute=yes
26638else
cristy8b350f62009-11-15 23:12:43 +000026639 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026640fi
cristy8b350f62009-11-15 23:12:43 +000026641rm -f core conftest.err conftest.$ac_objext \
26642 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026643LIBS=$ac_check_lib_save_LIBS
26644fi
cristy8b350f62009-11-15 23:12:43 +000026645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026646$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026647if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026648 passed=`expr $passed + 1`
26649else
26650 failed=`expr $failed + 1`
26651fi
26652
cristy8b350f62009-11-15 23:12:43 +000026653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026654$as_echo_n "checking if FFTW package is complete... " >&6; }
26655 if test $passed -gt 0; then
26656 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026658$as_echo "no -- some components failed test" >&6; }
26659 have_fftw='no (failed tests)'
26660 else
26661 FFTW_LIBS='-lfftw3'
26662 LIBS="$FFTW_LIBS $LIBS"
26663
cristy8b350f62009-11-15 23:12:43 +000026664$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026665
cristy8b350f62009-11-15 23:12:43 +000026666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026667$as_echo "yes" >&6; }
26668 have_fftw='yes'
26669 fi
26670 else
cristy8b350f62009-11-15 23:12:43 +000026671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026672$as_echo "no" >&6; }
26673 fi
26674fi
26675 if test "$have_fftw" = 'yes'; then
26676 FFTW_DELEGATE_TRUE=
26677 FFTW_DELEGATE_FALSE='#'
26678else
26679 FFTW_DELEGATE_TRUE='#'
26680 FFTW_DELEGATE_FALSE=
26681fi
26682
26683
26684
26685
26686#
26687# Check for FlashPIX delegate library.
26688#
26689
26690# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026691if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026692 withval=$with_fpx; with_fpx=$withval
26693else
26694 with_fpx='yes'
26695fi
26696
26697
26698if test "$with_fpx" != 'yes'; then
26699 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26700fi
26701
26702have_fpx='no'
26703FPX_LIBS=''
26704if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026706$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026708$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026710$as_echo "" >&6; }
26711 failed=0
26712 passed=0
26713 ac_ext=cpp
26714ac_cpp='$CXXCPP $CPPFLAGS'
26715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26718
26719
cristy8b350f62009-11-15 23:12:43 +000026720ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26721if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026722 passed=`expr $passed + 1`
26723else
26724 failed=`expr $failed + 1`
26725fi
26726
26727
cristy8b350f62009-11-15 23:12:43 +000026728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026729$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026730if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026731 $as_echo_n "(cached) " >&6
26732else
26733 ac_check_lib_save_LIBS=$LIBS
26734LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026736/* end confdefs.h. */
26737
26738/* Override any GCC internal prototype to avoid an error.
26739 Use char because int might match the return type of a GCC
26740 builtin and then its argument prototype would still apply. */
26741#ifdef __cplusplus
26742extern "C"
26743#endif
26744char FPX_OpenImageByFilename ();
26745int
26746main ()
26747{
26748return FPX_OpenImageByFilename ();
26749 ;
26750 return 0;
26751}
26752_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026753if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026754 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26755else
cristy8b350f62009-11-15 23:12:43 +000026756 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026757fi
cristy8b350f62009-11-15 23:12:43 +000026758rm -f core conftest.err conftest.$ac_objext \
26759 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026760LIBS=$ac_check_lib_save_LIBS
26761fi
cristy8b350f62009-11-15 23:12:43 +000026762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000026763$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026764if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026765 passed=`expr $passed + 1`
26766else
26767 failed=`expr $failed + 1`
26768fi
26769
26770 ac_ext=c
26771ac_cpp='$CPP $CPPFLAGS'
26772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26774ac_compiler_gnu=$ac_cv_c_compiler_gnu
26775
cristy8b350f62009-11-15 23:12:43 +000026776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026777$as_echo_n "checking if FlashPIX package is complete... " >&6; }
26778 if test $passed -gt 0; then
26779 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026781$as_echo "no -- some components failed test" >&6; }
26782 have_fpx='no (failed tests)'
26783 else
26784 FPX_LIBS='-lfpx'
26785
cristy8b350f62009-11-15 23:12:43 +000026786$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026787
cristy8b350f62009-11-15 23:12:43 +000026788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026789$as_echo "yes" >&6; }
26790 have_fpx='yes'
26791 PERLMAINCC="$CXX"
26792 fi
26793 else
cristy8b350f62009-11-15 23:12:43 +000026794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026795$as_echo "no" >&6; }
26796 fi
26797fi
26798 if test "$have_fpx" = 'yes'; then
26799 FPX_DELEGATE_TRUE=
26800 FPX_DELEGATE_FALSE='#'
26801else
26802 FPX_DELEGATE_TRUE='#'
26803 FPX_DELEGATE_FALSE=
26804fi
26805
26806
26807
26808
26809#
26810# Check for fontconfig delegate library.
26811#
26812
26813# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000026814if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026815 withval=$with_fontconfig; with_fontconfig=$withval
26816else
26817 with_fontconfig=$have_x
26818fi
26819
26820
26821if test "$with_fontconfig" != 'yes'; then
26822 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
26823fi
26824
26825have_fontconfig='no'
26826FONTCONFIG_CFLAGS=""
26827FONTCONFIG_LIBS=""
26828FONTCONFIG_PKG=""
26829if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026831$as_echo "-------------------------------------------------------------" >&6; }
26832
26833pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026835$as_echo_n "checking for FONTCONFIG... " >&6; }
26836
26837if test -n "$FONTCONFIG_CFLAGS"; then
26838 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
26839 elif test -n "$PKG_CONFIG"; then
26840 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026841 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026842 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26843 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26845 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026846 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
26847else
26848 pkg_failed=yes
26849fi
26850 else
26851 pkg_failed=untried
26852fi
26853if test -n "$FONTCONFIG_LIBS"; then
26854 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
26855 elif test -n "$PKG_CONFIG"; then
26856 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026857 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026858 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26859 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26861 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026862 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
26863else
26864 pkg_failed=yes
26865fi
26866 else
26867 pkg_failed=untried
26868fi
26869
26870
26871
26872if test $pkg_failed = yes; then
26873
26874if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26875 _pkg_short_errors_supported=yes
26876else
26877 _pkg_short_errors_supported=no
26878fi
26879 if test $_pkg_short_errors_supported = yes; then
26880 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
26881 else
26882 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
26883 fi
26884 # Put the nasty error message in config.log where it belongs
26885 echo "$FONTCONFIG_PKG_ERRORS" >&5
26886
cristy8b350f62009-11-15 23:12:43 +000026887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026888$as_echo "no" >&6; }
26889 have_fontconfig=no
26890elif test $pkg_failed = untried; then
26891 have_fontconfig=no
26892else
26893 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
26894 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000026895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026896$as_echo "yes" >&6; }
26897 have_fontconfig=yes
26898fi
cristy8b350f62009-11-15 23:12:43 +000026899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026900$as_echo "" >&6; }
26901fi
26902
26903if test "$have_fontconfig" = 'yes'; then
26904
cristy8b350f62009-11-15 23:12:43 +000026905$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026906
cristyd09bcf92010-03-25 03:04:45 +000026907 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000026908 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000026909 fi
cristy3ed852e2009-09-05 21:47:34 +000026910fi
26911
26912 if test "$have_fontconfig" = 'yes'; then
26913 FONTCONFIG_DELEGATE_TRUE=
26914 FONTCONFIG_DELEGATE_FALSE='#'
26915else
26916 FONTCONFIG_DELEGATE_TRUE='#'
26917 FONTCONFIG_DELEGATE_FALSE=
26918fi
26919
26920
26921
26922
26923
26924#
26925# Check for freetype delegate library.
26926#
26927
26928# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000026929if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026930 withval=$with_freetype; with_freetype=$withval
26931else
26932 with_freetype='yes'
26933fi
26934
26935
26936
26937if test "$with_freetype" != 'yes'; then
26938 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
26939fi
26940
26941have_freetype='no'
26942FREETYPE_LIBS=''
26943if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026945$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000026947$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026949$as_echo "" >&6; }
26950 failed=0
26951 passed=0
cristy66291112009-10-03 22:44:36 +000026952 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000026953 PERSIST_CPPFLAGS="$CPPFLAGS"
26954 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
26955 :
26956 else
26957 freetype_config=''
26958 for ac_prog in freetype-config
26959do
26960 # Extract the first word of "$ac_prog", so it can be a program name with args.
26961set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026963$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026964if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026965 $as_echo_n "(cached) " >&6
26966else
26967 if test -n "$freetype_config"; then
26968 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
26969else
26970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26971for as_dir in $PATH
26972do
26973 IFS=$as_save_IFS
26974 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026975 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26977 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026979 break 2
26980 fi
26981done
cristy8b350f62009-11-15 23:12:43 +000026982 done
cristy3ed852e2009-09-05 21:47:34 +000026983IFS=$as_save_IFS
26984
26985fi
26986fi
26987freetype_config=$ac_cv_prog_freetype_config
26988if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000026989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000026990$as_echo "$freetype_config" >&6; }
26991else
cristy8b350f62009-11-15 23:12:43 +000026992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026993$as_echo "no" >&6; }
26994fi
26995
26996
26997 test -n "$freetype_config" && break
26998done
26999 if test -n "$freetype_config"; then
27000 freetype_cflags=`$freetype_config --cflags`
27001 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027002 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027003 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27004 fi
27005 fi
27006
27007 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027009$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027010if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027011 $as_echo_n "(cached) " >&6
27012else
27013 ac_check_lib_save_LIBS=$LIBS
27014LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027016/* end confdefs.h. */
27017
27018/* Override any GCC internal prototype to avoid an error.
27019 Use char because int might match the return type of a GCC
27020 builtin and then its argument prototype would still apply. */
27021#ifdef __cplusplus
27022extern "C"
27023#endif
27024char FT_Init_FreeType ();
27025int
27026main ()
27027{
27028return FT_Init_FreeType ();
27029 ;
27030 return 0;
27031}
27032_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027033if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027034 ac_cv_lib_freetype_FT_Init_FreeType=yes
27035else
cristy8b350f62009-11-15 23:12:43 +000027036 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027037fi
cristy8b350f62009-11-15 23:12:43 +000027038rm -f core conftest.err conftest.$ac_objext \
27039 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027040LIBS=$ac_check_lib_save_LIBS
27041fi
cristy8b350f62009-11-15 23:12:43 +000027042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027043$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027044if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027045 FREETYPE_LIBS='-lfreetype'
27046fi
27047
27048 if test "$FREETYPE_LIBS" != ''; then
27049 passed=`expr $passed + 1`
27050 else
27051 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027052 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027053 fi
27054 fi
27055
cristy8b350f62009-11-15 23:12:43 +000027056 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27057if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027058 FT2BUILD_H='#include <ft2build.h>'
27059else
27060 ft2build=''
27061fi
27062
27063
cristy8b350f62009-11-15 23:12:43 +000027064 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27065"
27066if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027067 have_freetype_h='yes'
27068else
27069 have_freetype_h='no'
27070fi
27071
27072
27073 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27074 passed=`expr $passed + 1`
27075 else
27076 failed=`expr $failed + 1`
27077 CPPFLAGS="$PERSIST_CPPFLAGS"
27078 fi
27079
cristy8b350f62009-11-15 23:12:43 +000027080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027081$as_echo_n "checking if FreeType package is complete... " >&6; }
27082 if test $passed -gt 0; then
27083 if test $failed -gt 0; then
27084 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027086$as_echo "no -- some components failed test" >&6; }
27087 have_freetype='no (failed tests)'
27088 else
27089 LIBS="$FREETYPE_LIBS $LIBS"
27090
cristy8b350f62009-11-15 23:12:43 +000027091$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027092
27093 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27094
cristy8b350f62009-11-15 23:12:43 +000027095$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027096
27097 fi
cristy8b350f62009-11-15 23:12:43 +000027098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027099$as_echo "yes" >&6; }
27100 have_freetype='yes'
27101 fi
27102 else
cristy8b350f62009-11-15 23:12:43 +000027103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027104$as_echo "no" >&6; }
27105 fi
27106fi
27107 if test "$have_freetype" = 'yes'; then
27108 FREETYPE_DELEGATE_TRUE=
27109 FREETYPE_DELEGATE_FALSE='#'
27110else
27111 FREETYPE_DELEGATE_TRUE='#'
27112 FREETYPE_DELEGATE_FALSE=
27113fi
27114
27115
27116
27117
27118
27119#
27120# Check for Ghostscript library or framework.
27121#
27122# Test for iapi.h & test for gsapi_new_instance in -lgs
27123# or -framework Ghostscript
27124
27125
27126# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027127if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027128 withval=$with_gslib; with_gslib=$withval
27129else
27130 with_gslib='no'
27131fi
27132
27133
cristyb7931f12009-09-25 10:22:21 +000027134gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027135if test "$with_gslib" != 'yes'; then
27136 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27137fi
27138
27139have_gslib='no'
27140GS_LIBS=''
27141if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027143$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027145$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027147$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027148 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027149 failed=0
27150 passed=0
cristy8b350f62009-11-15 23:12:43 +000027151 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27152if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027153 passed=`expr $passed + 1`
27154else
27155 failed=`expr $failed + 1`
27156fi
27157
27158
cristy8b350f62009-11-15 23:12:43 +000027159 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27160if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027161 passed=`expr $passed + 1`
27162else
27163 failed=`expr $failed + 1`
27164fi
27165
27166
cristy8b350f62009-11-15 23:12:43 +000027167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000027168$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027169if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027170 $as_echo_n "(cached) " >&6
27171else
27172 ac_check_framework_save_LIBS=$LIBS
27173LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027175/* end confdefs.h. */
27176
27177/* Override any GCC internal prototype to avoid an error.
27178 Use char because int might match the return type of a GCC
27179 builtin and then its argument prototype would still apply. */
27180#ifdef __cplusplus
27181extern "C"
27182#endif
27183char gsapi_new_instance ();
27184int
27185main ()
27186{
27187return gsapi_new_instance ();
27188 ;
27189 return 0;
27190}
27191_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027192if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027193 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27194else
cristy8b350f62009-11-15 23:12:43 +000027195 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027196fi
cristy8b350f62009-11-15 23:12:43 +000027197rm -f core conftest.err conftest.$ac_objext \
27198 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027199LIBS=$ac_check_framework_save_LIBS
27200fi
cristy8b350f62009-11-15 23:12:43 +000027201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027202$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027203if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027204 framework=`expr $framework + 1`
27205else
cristy8b350f62009-11-15 23:12:43 +000027206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000027207$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027208if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027209 $as_echo_n "(cached) " >&6
27210else
27211 ac_check_lib_save_LIBS=$LIBS
27212LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027214/* end confdefs.h. */
27215
27216/* Override any GCC internal prototype to avoid an error.
27217 Use char because int might match the return type of a GCC
27218 builtin and then its argument prototype would still apply. */
27219#ifdef __cplusplus
27220extern "C"
27221#endif
27222char gsapi_new_instance ();
27223int
27224main ()
27225{
27226return gsapi_new_instance ();
27227 ;
27228 return 0;
27229}
27230_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027231if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027232 ac_cv_lib_gs_gsapi_new_instance=yes
27233else
cristy8b350f62009-11-15 23:12:43 +000027234 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027235fi
cristy8b350f62009-11-15 23:12:43 +000027236rm -f core conftest.err conftest.$ac_objext \
27237 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027238LIBS=$ac_check_lib_save_LIBS
27239fi
cristy8b350f62009-11-15 23:12:43 +000027240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027241$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027242if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027243 passed=`expr $passed + 1`
27244else
27245 failed=`expr $failed + 1`
27246fi
27247
27248fi
cristy8b350f62009-11-15 23:12:43 +000027249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027250$as_echo_n "checking if Ghostscript package is complete... " >&6; }
27251 if test $passed -gt 0; then
27252 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027254$as_echo "no -- some components failed test" >&6; }
27255 have_gslib='no (failed tests)'
27256 else
27257 if test $framework -gt 0; then
27258 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000027259 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000027260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000027261$as_echo "yes, using framework." >&6; }
27262 else
cristy8b350f62009-11-15 23:12:43 +000027263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000027264$as_echo "yes, using library." >&6; }
27265 GS_LIBS='-lgs'
27266 fi
27267 LIBS="$GS_LIBS $LIBS"
27268
cristy8b350f62009-11-15 23:12:43 +000027269$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027270
27271 have_gslib='yes'
27272 fi
27273 else
cristy8b350f62009-11-15 23:12:43 +000027274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027275$as_echo "no" >&6; }
27276 fi
27277fi
27278 if test "$have_gslib" = 'yes'; then
27279 GS_DELEGATE_TRUE=
27280 GS_DELEGATE_FALSE='#'
27281else
27282 GS_DELEGATE_TRUE='#'
27283 GS_DELEGATE_FALSE=
27284fi
27285
27286
27287
27288# Set default font search path
27289
27290# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000027291if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027292 withval=$with_fontpath; with_fontpath=$withval
27293else
27294 with_fontpath=''
27295fi
27296
27297
27298if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27299 with_fontpath=''
27300else
27301
27302cat >>confdefs.h <<_ACEOF
27303#define MAGICK_FONT_PATH "$with_fontpath"
27304_ACEOF
27305
27306fi
27307if test "$with_fontpath=" != ''; then
27308 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27309fi
27310
27311# Set Ghostscript font directory
27312
27313# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027314if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027315 withval=$with_gs_font_dir; with_gs_font_dir=$withval
27316else
27317 with_gs_font_dir='default'
27318fi
27319
27320
27321if test "$with_gs_font_dir" != 'default'; then
27322 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27323fi
27324
27325
27326#
27327# Check for GVC delegate library.
27328#
27329
27330# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000027331if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027332 withval=$with_gvc; with_gvc=$withval
27333else
27334 with_gvc='yes'
27335fi
27336
27337
27338if test "$with_gvc" != 'yes'; then
27339 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27340fi
27341
27342GVC_PKG=""
27343if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027345$as_echo "-------------------------------------------------------------" >&6; }
27346
27347pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000027349$as_echo_n "checking for GVC... " >&6; }
27350
27351if test -n "$GVC_CFLAGS"; then
27352 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27353 elif test -n "$PKG_CONFIG"; then
27354 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027355 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027356 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27357 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27359 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027360 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27361else
27362 pkg_failed=yes
27363fi
27364 else
27365 pkg_failed=untried
27366fi
27367if test -n "$GVC_LIBS"; then
27368 pkg_cv_GVC_LIBS="$GVC_LIBS"
27369 elif test -n "$PKG_CONFIG"; then
27370 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027371 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027372 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27373 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27375 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027376 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27377else
27378 pkg_failed=yes
27379fi
27380 else
27381 pkg_failed=untried
27382fi
27383
27384
27385
27386if test $pkg_failed = yes; then
27387
27388if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27389 _pkg_short_errors_supported=yes
27390else
27391 _pkg_short_errors_supported=no
27392fi
27393 if test $_pkg_short_errors_supported = yes; then
27394 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27395 else
27396 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27397 fi
27398 # Put the nasty error message in config.log where it belongs
27399 echo "$GVC_PKG_ERRORS" >&5
27400
cristy8b350f62009-11-15 23:12:43 +000027401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027402$as_echo "no" >&6; }
27403 have_gvc=no
27404elif test $pkg_failed = untried; then
27405 have_gvc=no
27406else
27407 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27408 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000027409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027410$as_echo "yes" >&6; }
27411 have_gvc=yes
27412fi
cristy8b350f62009-11-15 23:12:43 +000027413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027414$as_echo "" >&6; }
27415fi
27416
27417if test "$have_gvc" = 'yes'; then
27418
cristy8b350f62009-11-15 23:12:43 +000027419$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027420
27421 if test "$with_modules" = 'no'; then
27422 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27423 fi
27424fi
27425
27426 if test "$have_gvc" = 'yes'; then
27427 GVC_DELEGATE_TRUE=
27428 GVC_DELEGATE_FALSE='#'
27429else
27430 GVC_DELEGATE_TRUE='#'
27431 GVC_DELEGATE_FALSE=
27432fi
27433
27434
27435
27436
27437
27438#
27439# Check for JBIG delegate library.
27440#
27441
27442
27443# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000027444if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027445 withval=$with_jbig; with_jbig=$withval
27446else
27447 with_jbig='yes'
27448fi
27449
27450
27451have_jbig='no'
27452JBIG_LIBS=''
27453if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027455$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027457$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027459$as_echo "" >&6; }
27460 failed=0
27461 passed=0
cristy8b350f62009-11-15 23:12:43 +000027462 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27463if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027464 passed=`expr $passed + 1`
27465else
27466 failed=`expr $failed + 1`
27467fi
27468
27469
cristy8b350f62009-11-15 23:12:43 +000027470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000027471$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027472if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027473 $as_echo_n "(cached) " >&6
27474else
27475 ac_check_lib_save_LIBS=$LIBS
27476LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027478/* end confdefs.h. */
27479
27480/* Override any GCC internal prototype to avoid an error.
27481 Use char because int might match the return type of a GCC
27482 builtin and then its argument prototype would still apply. */
27483#ifdef __cplusplus
27484extern "C"
27485#endif
27486char jbg_dec_init ();
27487int
27488main ()
27489{
27490return jbg_dec_init ();
27491 ;
27492 return 0;
27493}
27494_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027495if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027496 ac_cv_lib_jbig_jbg_dec_init=yes
27497else
cristy8b350f62009-11-15 23:12:43 +000027498 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000027499fi
cristy8b350f62009-11-15 23:12:43 +000027500rm -f core conftest.err conftest.$ac_objext \
27501 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027502LIBS=$ac_check_lib_save_LIBS
27503fi
cristy8b350f62009-11-15 23:12:43 +000027504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000027505$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027506if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027507 passed=`expr $passed + 1`
27508else
27509 failed=`expr $failed + 1`
27510fi
27511
cristy8b350f62009-11-15 23:12:43 +000027512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027513$as_echo_n "checking if JBIG package is complete... " >&6; }
27514 if test $passed -gt 0; then
27515 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027517$as_echo "no -- some components failed test" >&6; }
27518 have_jbig='no (failed tests)'
27519 else
27520 JBIG_LIBS='-ljbig'
27521 LIBS="$JBIG_LIBS $LIBS"
27522
cristy8b350f62009-11-15 23:12:43 +000027523$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027524
cristy8b350f62009-11-15 23:12:43 +000027525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027526$as_echo "yes" >&6; }
27527 have_jbig='yes'
27528 fi
27529 else
cristy8b350f62009-11-15 23:12:43 +000027530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027531$as_echo "no" >&6; }
27532 fi
27533fi
27534 if test "$have_jbig" = 'yes'; then
27535 JBIG_DELEGATE_TRUE=
27536 JBIG_DELEGATE_FALSE='#'
27537else
27538 JBIG_DELEGATE_TRUE='#'
27539 JBIG_DELEGATE_FALSE=
27540fi
27541
27542
27543
27544
27545#
27546# Check for JPEG delegate library.
27547#
27548
27549# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000027550if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027551 withval=$with_jpeg; with_jpeg=$withval
27552else
27553 with_jpeg='yes'
27554fi
27555
27556
27557if test "$with_jpeg" != 'yes'; then
27558 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27559fi
27560
27561have_jpeg='no'
27562JPEG_LIBS=''
27563if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027565$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027567$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027569$as_echo "" >&6; }
27570 failed=0
27571 passed=0
cristy8b350f62009-11-15 23:12:43 +000027572 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27573if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027574 passed=`expr $passed + 1`
27575else
27576 failed=`expr $failed + 1`
27577fi
27578
27579
cristy8b350f62009-11-15 23:12:43 +000027580 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27581if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027582 passed=`expr $passed + 1`
27583else
27584 failed=`expr $failed + 1`
27585fi
27586
27587
cristy8b350f62009-11-15 23:12:43 +000027588 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27589if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027590 passed=`expr $passed + 1`
27591else
27592 failed=`expr $failed + 1`
27593fi
27594
27595
cristy8b350f62009-11-15 23:12:43 +000027596 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27597if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027598 passed=`expr $passed + 1`
27599else
27600 failed=`expr $failed + 1`
27601fi
27602
27603
cristy8b350f62009-11-15 23:12:43 +000027604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027605$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027606if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027607 $as_echo_n "(cached) " >&6
27608else
27609 ac_check_lib_save_LIBS=$LIBS
27610LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027612/* end confdefs.h. */
27613
27614/* Override any GCC internal prototype to avoid an error.
27615 Use char because int might match the return type of a GCC
27616 builtin and then its argument prototype would still apply. */
27617#ifdef __cplusplus
27618extern "C"
27619#endif
27620char jpeg_read_header ();
27621int
27622main ()
27623{
27624return jpeg_read_header ();
27625 ;
27626 return 0;
27627}
27628_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027629if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027630 ac_cv_lib_jpeg_jpeg_read_header=yes
27631else
cristy8b350f62009-11-15 23:12:43 +000027632 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027633fi
cristy8b350f62009-11-15 23:12:43 +000027634rm -f core conftest.err conftest.$ac_objext \
27635 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027636LIBS=$ac_check_lib_save_LIBS
27637fi
cristy8b350f62009-11-15 23:12:43 +000027638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027639$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027640if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027641 passed=`expr $passed + 1`
27642else
27643 failed=`expr $failed + 1`
27644fi
27645
27646
27647# Test for compatible JPEG library
27648if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027650$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027651if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027652 $as_echo_n "(cached) " >&6
27653else
cristy8b350f62009-11-15 23:12:43 +000027654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027655/* end confdefs.h. */
27656#include <stdio.h>
27657#include <stdlib.h>
27658#include <jpeglib.h>
27659
27660int
27661main ()
27662{
27663
27664#if JPEG_LIB_VERSION < 62
27665#error IJG JPEG library must be version 6b or newer!
27666#endif
27667return 0;
27668
27669 ;
27670 return 0;
27671}
27672_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027673if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027674 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27675else
cristy8b350f62009-11-15 23:12:43 +000027676 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027677fi
cristy3ed852e2009-09-05 21:47:34 +000027678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27679fi
cristy8b350f62009-11-15 23:12:43 +000027680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027681$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27682fi
cristy8b350f62009-11-15 23:12:43 +000027683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027684$as_echo_n "checking if JPEG package is complete... " >&6; }
27685 if test $passed -gt 0; then
27686 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027688$as_echo "no -- some components failed test" >&6; }
27689 have_jpeg='no (failed tests)'
27690 else
27691 JPEG_LIBS='-ljpeg'
27692 LIBS="$JPEG_LIBS $LIBS"
27693
cristy8b350f62009-11-15 23:12:43 +000027694$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027695
cristy8b350f62009-11-15 23:12:43 +000027696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027697$as_echo "yes" >&6; }
27698 have_jpeg='yes'
27699 fi
27700 else
cristy8b350f62009-11-15 23:12:43 +000027701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027702$as_echo "no" >&6; }
27703 fi
27704fi
27705 if test "$have_jpeg" = 'yes'; then
27706 JPEG_DELEGATE_TRUE=
27707 JPEG_DELEGATE_FALSE='#'
27708else
27709 JPEG_DELEGATE_TRUE='#'
27710 JPEG_DELEGATE_FALSE=
27711fi
27712
27713
27714
27715
27716#
27717# Check for JPEG Version 2 delegate library.
27718#
27719
27720# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027721if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027722 withval=$with_jp2; with_jp2=$withval
27723else
27724 with_jp2='yes'
27725fi
27726
27727
27728if test "$with_jp2" != 'yes'; then
27729 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27730fi
27731
27732have_jp2='no'
27733JP2_LIBS=''
27734if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027736$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027738$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027740$as_echo "" >&6; }
27741 failed=0
27742 passed=0
cristy8b350f62009-11-15 23:12:43 +000027743 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27744if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027745 passed=`expr $passed + 1`
27746else
27747 failed=`expr $failed + 1`
27748fi
27749
27750
cristy8b350f62009-11-15 23:12:43 +000027751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027752$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027753if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027754 $as_echo_n "(cached) " >&6
27755else
27756 ac_check_lib_save_LIBS=$LIBS
27757LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027759/* end confdefs.h. */
27760
27761/* Override any GCC internal prototype to avoid an error.
27762 Use char because int might match the return type of a GCC
27763 builtin and then its argument prototype would still apply. */
27764#ifdef __cplusplus
27765extern "C"
27766#endif
27767char jas_stream_fopen ();
27768int
27769main ()
27770{
27771return jas_stream_fopen ();
27772 ;
27773 return 0;
27774}
27775_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027776if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027777 ac_cv_lib_jasper_jas_stream_fopen=yes
27778else
cristy8b350f62009-11-15 23:12:43 +000027779 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000027780fi
cristy8b350f62009-11-15 23:12:43 +000027781rm -f core conftest.err conftest.$ac_objext \
27782 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027783LIBS=$ac_check_lib_save_LIBS
27784fi
cristy8b350f62009-11-15 23:12:43 +000027785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027786$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027787if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027788 passed=`expr $passed + 1`
27789else
27790 failed=`expr $failed + 1`
27791fi
27792
cristy8b350f62009-11-15 23:12:43 +000027793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027794$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27795 if test $passed -gt 0; then
27796 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027798$as_echo "no -- some components failed test" >&6; }
27799 have_jp2='no (failed tests)'
27800 else
27801 JP2_LIBS='-ljasper'
27802 LIBS="$JP2_LIBS $LIBS"
27803
cristy8b350f62009-11-15 23:12:43 +000027804$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027805
cristy8b350f62009-11-15 23:12:43 +000027806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027807$as_echo "yes" >&6; }
27808 have_jp2='yes'
27809 fi
27810 else
cristy8b350f62009-11-15 23:12:43 +000027811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027812$as_echo "no" >&6; }
27813 fi
27814fi
27815 if test "$have_jp2" = 'yes'; then
27816 JP2_DELEGATE_TRUE=
27817 JP2_DELEGATE_FALSE='#'
27818else
27819 JP2_DELEGATE_TRUE='#'
27820 JP2_DELEGATE_FALSE=
27821fi
27822
27823
27824
27825
27826#
27827# Check for LCMS delegate library.
27828#
cristy71203402010-06-18 13:12:03 +000027829# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000027830
27831# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000027832if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027833 withval=$with_lcms; with_lcms=$withval
27834else
27835 with_lcms='yes'
27836fi
27837
cristy71203402010-06-18 13:12:03 +000027838if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000027839 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
27840fi
27841
cristy71203402010-06-18 13:12:03 +000027842# Disable LCMS2.
27843
27844# Check whether --with-lcms2 was given.
27845if test "${with_lcms2+set}" = set; then :
27846 withval=$with_lcms2; with_lcms2=$withval
27847else
27848 with_lcms2='yes'
27849fi
27850
27851if test "$with_lcms2" != 'yes' ; then
27852 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
27853fi
27854
27855have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000027856LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000027857if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027859$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000027860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
27861$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027863$as_echo "" >&6; }
27864 failed=0
27865 passed=0
27866 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000027867
27868 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000027869 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
27870if test "x$ac_cv_header_lcms2_h" = x""yes; then :
27871 have_lcms_header='yes'
27872fi
27873
27874
27875 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000027876
27877$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
27878
cristy71203402010-06-18 13:12:03 +000027879 passed=`expr $passed + 1`
27880 fi
27881
27882 # Check for <lcms2/lcms2.h)
27883 if test "$have_lcms_header" != 'yes'; then
27884 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
27885if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000027886 have_lcms_header='yes'
27887fi
27888
27889
cristy71203402010-06-18 13:12:03 +000027890 if test "$have_lcms_header" = 'yes'; then
27891 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000027892
cristy71203402010-06-18 13:12:03 +000027893$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000027894
cristy71203402010-06-18 13:12:03 +000027895 fi
cristyd09bcf92010-03-25 03:04:45 +000027896 fi
cristy71203402010-06-18 13:12:03 +000027897
27898 # Failed to find lcms header?
27899 if test "$have_lcms_header" != 'yes'; then
27900 failed=`expr $failed + 1`
27901 fi
27902
27903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
27904$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
27905if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
cristyd09bcf92010-03-25 03:04:45 +000027906 $as_echo_n "(cached) " >&6
27907else
27908 ac_check_lib_save_LIBS=$LIBS
27909LIBS="-llcms2 $LIBS"
27910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27911/* end confdefs.h. */
27912
27913/* Override any GCC internal prototype to avoid an error.
27914 Use char because int might match the return type of a GCC
27915 builtin and then its argument prototype would still apply. */
27916#ifdef __cplusplus
27917extern "C"
27918#endif
cristy71203402010-06-18 13:12:03 +000027919char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000027920int
27921main ()
27922{
cristy71203402010-06-18 13:12:03 +000027923return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000027924 ;
27925 return 0;
27926}
27927_ACEOF
27928if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000027929 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000027930else
cristy71203402010-06-18 13:12:03 +000027931 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000027932fi
27933rm -f core conftest.err conftest.$ac_objext \
27934 conftest$ac_exeext conftest.$ac_ext
27935LIBS=$ac_check_lib_save_LIBS
27936fi
cristy71203402010-06-18 13:12:03 +000027937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
27938$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
27939if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000027940 passed=`expr $passed + 1`
27941else
27942 failed=`expr $failed + 1`
27943fi
27944
cristy71203402010-06-18 13:12:03 +000027945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
27946$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000027947 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000027948 if test $failed -gt 0; then
27949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000027950$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000027951 have_lcms2='no (failed tests)'
27952 else
27953 LCMS_LIBS='-llcms2'
27954 LIBS="$LCMS_LIBS $LIBS"
27955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000027956$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000027957 have_lcms2='yes'
27958 fi
cristyd09bcf92010-03-25 03:04:45 +000027959 else
cristy71203402010-06-18 13:12:03 +000027960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000027961$as_echo "no" >&6; }
27962 fi
27963fi
27964
cristy71203402010-06-18 13:12:03 +000027965#
27966# Check for LCMS v1 (1.11 or later)
27967#
27968if test $have_lcms2 = 'yes'; then
27969 with_lcms='no'
27970fi
27971
27972have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000027973if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000027974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27975$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000027976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
27977$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000027978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27979$as_echo "" >&6; }
27980 failed=0
27981 passed=0
27982 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000027983
27984 # Check for <lcms.h>
27985 if test "$have_lcms_header" != 'yes'; then
27986 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristy8b350f62009-11-15 23:12:43 +000027987if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027988 have_lcms_header='yes'
27989fi
27990
27991
cristy71203402010-06-18 13:12:03 +000027992 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000027993 passed=`expr $passed + 1`
27994
cristy8b350f62009-11-15 23:12:43 +000027995$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027996
cristy71203402010-06-18 13:12:03 +000027997 fi
27998 fi
27999
28000 # Check for <lcms/lcms.h>
28001 if test "$have_lcms_header" != 'yes'; then
28002 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 +000028003if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028004 have_lcms_header='yes'
28005fi
28006
28007
cristy71203402010-06-18 13:12:03 +000028008 if test "$have_lcms_header" = 'yes'; then
28009 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028010
cristy8b350f62009-11-15 23:12:43 +000028011$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028012
cristy71203402010-06-18 13:12:03 +000028013 fi
cristy3ed852e2009-09-05 21:47:34 +000028014 fi
cristy71203402010-06-18 13:12:03 +000028015
28016 # Failed to find lcms header?
28017 if test "$have_lcms_header" != 'yes'; then
28018 failed=`expr $failed + 1`
28019 fi
28020
28021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28022$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28023if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028024 $as_echo_n "(cached) " >&6
28025else
28026 ac_check_lib_save_LIBS=$LIBS
28027LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028029/* end confdefs.h. */
28030
28031/* Override any GCC internal prototype to avoid an error.
28032 Use char because int might match the return type of a GCC
28033 builtin and then its argument prototype would still apply. */
28034#ifdef __cplusplus
28035extern "C"
28036#endif
cristy71203402010-06-18 13:12:03 +000028037char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028038int
28039main ()
28040{
cristy71203402010-06-18 13:12:03 +000028041return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028042 ;
28043 return 0;
28044}
28045_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028046if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028047 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000028048else
cristy71203402010-06-18 13:12:03 +000028049 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000028050fi
cristy8b350f62009-11-15 23:12:43 +000028051rm -f core conftest.err conftest.$ac_objext \
28052 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028053LIBS=$ac_check_lib_save_LIBS
28054fi
cristy71203402010-06-18 13:12:03 +000028055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28056$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28057if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028058 passed=`expr $passed + 1`
28059else
28060 failed=`expr $failed + 1`
28061fi
28062
cristy8b350f62009-11-15 23:12:43 +000028063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028064$as_echo_n "checking if LCMS package is complete... " >&6; }
28065 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028066 if test $failed -gt 0; then
28067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028068$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028069 have_lcms='no (failed tests)'
28070 else
28071 LCMS_LIBS='-llcms'
28072 LIBS="$LCMS_LIBS $LIBS"
28073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028074$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028075 have_lcms='yes'
28076 fi
cristy3ed852e2009-09-05 21:47:34 +000028077 else
cristy71203402010-06-18 13:12:03 +000028078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028079$as_echo "no" >&6; }
28080 fi
28081fi
cristy71203402010-06-18 13:12:03 +000028082
28083 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028084 LCMS_DELEGATE_TRUE=
28085 LCMS_DELEGATE_FALSE='#'
28086else
28087 LCMS_DELEGATE_TRUE='#'
28088 LCMS_DELEGATE_FALSE=
28089fi
28090
cristy71203402010-06-18 13:12:03 +000028091if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28092
28093$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28094
28095fi
28096
cristy3ed852e2009-09-05 21:47:34 +000028097
28098
28099
28100#
28101# Check for the LQR (Liquid Rescale) delegate library.
28102#
28103
28104# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028105if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028106 withval=$with_lqr; with_lqr=$withval
28107else
28108 with_lqr='yes'
28109fi
28110
28111
28112if test "$with_lqr" != 'yes'; then
28113 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28114fi
28115
28116have_lqr='no'
28117LQR_CFLAGS=""
28118LQR_LIBS=""
28119LQR_PKG=""
28120if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028122$as_echo "-------------------------------------------------------------" >&6; }
28123
28124pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028126$as_echo_n "checking for LQR... " >&6; }
28127
28128if test -n "$LQR_CFLAGS"; then
28129 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28130 elif test -n "$PKG_CONFIG"; then
28131 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028132 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028133 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28134 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28136 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028137 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28138else
28139 pkg_failed=yes
28140fi
28141 else
28142 pkg_failed=untried
28143fi
28144if test -n "$LQR_LIBS"; then
28145 pkg_cv_LQR_LIBS="$LQR_LIBS"
28146 elif test -n "$PKG_CONFIG"; then
28147 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028148 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028149 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28150 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28152 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028153 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28154else
28155 pkg_failed=yes
28156fi
28157 else
28158 pkg_failed=untried
28159fi
28160
28161
28162
28163if test $pkg_failed = yes; then
28164
28165if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28166 _pkg_short_errors_supported=yes
28167else
28168 _pkg_short_errors_supported=no
28169fi
28170 if test $_pkg_short_errors_supported = yes; then
28171 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28172 else
28173 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28174 fi
28175 # Put the nasty error message in config.log where it belongs
28176 echo "$LQR_PKG_ERRORS" >&5
28177
cristy8b350f62009-11-15 23:12:43 +000028178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028179$as_echo "no" >&6; }
28180 have_lqr=no
28181elif test $pkg_failed = untried; then
28182 have_lqr=no
28183else
28184 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28185 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028187$as_echo "yes" >&6; }
28188 have_lqr=yes
28189fi
cristy8b350f62009-11-15 23:12:43 +000028190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028191$as_echo "" >&6; }
28192fi
28193
28194if test "$have_lqr" = 'yes'; then
28195
cristy8b350f62009-11-15 23:12:43 +000028196$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028197
28198 CFLAGS="$LQR_CFLAGS $CFLAGS"
28199fi
28200
28201 if test "$have_lqr" = 'yes'; then
28202 LQR_DELEGATE_TRUE=
28203 LQR_DELEGATE_FALSE='#'
28204else
28205 LQR_DELEGATE_TRUE='#'
28206 LQR_DELEGATE_FALSE=
28207fi
28208
28209
28210
28211
28212
28213#
28214# Check for the OpenEXR delegate library.
28215#
28216
28217# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000028218if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028219 withval=$with_openexr; with_openexr=$withval
28220else
28221 with_openexr='yes'
28222fi
28223
28224
28225if test "$with_openexr" != 'yes'; then
28226 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28227fi
28228
28229have_openexr='no'
28230OPENEXR_CFLAGS=""
28231OPENEXR_LIBS=""
28232OPENEXR_PKG=""
28233if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028235$as_echo "-------------------------------------------------------------" >&6; }
28236
28237pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028239$as_echo_n "checking for OPENEXR... " >&6; }
28240
28241if test -n "$OPENEXR_CFLAGS"; then
28242 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28243 elif test -n "$PKG_CONFIG"; then
28244 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028245 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028246 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28247 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28249 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028250 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28251else
28252 pkg_failed=yes
28253fi
28254 else
28255 pkg_failed=untried
28256fi
28257if test -n "$OPENEXR_LIBS"; then
28258 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28259 elif test -n "$PKG_CONFIG"; then
28260 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028261 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028262 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28263 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28265 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028266 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28267else
28268 pkg_failed=yes
28269fi
28270 else
28271 pkg_failed=untried
28272fi
28273
28274
28275
28276if test $pkg_failed = yes; then
28277
28278if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28279 _pkg_short_errors_supported=yes
28280else
28281 _pkg_short_errors_supported=no
28282fi
28283 if test $_pkg_short_errors_supported = yes; then
28284 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28285 else
28286 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28287 fi
28288 # Put the nasty error message in config.log where it belongs
28289 echo "$OPENEXR_PKG_ERRORS" >&5
28290
cristy8b350f62009-11-15 23:12:43 +000028291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028292$as_echo "no" >&6; }
28293 have_openexr=no
28294elif test $pkg_failed = untried; then
28295 have_openexr=no
28296else
28297 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28298 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028300$as_echo "yes" >&6; }
28301 have_openexr=yes
28302fi
cristy8b350f62009-11-15 23:12:43 +000028303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028304$as_echo "" >&6; }
28305fi
28306
28307if test "$have_openexr" = 'yes'; then
28308
cristy8b350f62009-11-15 23:12:43 +000028309$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028310
28311 if test "$with_modules" = 'no'; then
28312 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28313 fi
28314fi
28315
28316 if test "$have_openexr" = 'yes'; then
28317 OPENEXR_DELEGATE_TRUE=
28318 OPENEXR_DELEGATE_FALSE='#'
28319else
28320 OPENEXR_DELEGATE_TRUE='#'
28321 OPENEXR_DELEGATE_FALSE=
28322fi
28323
28324
28325
28326
28327
28328#
28329# Check for PNG delegate library.
28330#
28331
28332# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000028333if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028334 withval=$with_png; with_png=$withval
28335else
28336 with_png='yes'
28337fi
28338
28339
28340if test "$with_png" != 'yes'; then
28341 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28342fi
28343
28344have_png='no'
28345PNG_LIBS=''
28346if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028348$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028350$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028352$as_echo "" >&6; }
28353 failed=0
28354 passed=0
cristy8b350f62009-11-15 23:12:43 +000028355 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28356if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028357 passed=`expr $passed + 1`
28358else
28359 failed=`expr $failed + 1`
28360fi
28361
28362
cristy8b350f62009-11-15 23:12:43 +000028363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000028364$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028365if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028366 $as_echo_n "(cached) " >&6
28367else
28368 ac_check_lib_save_LIBS=$LIBS
28369LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028371/* end confdefs.h. */
28372
28373/* Override any GCC internal prototype to avoid an error.
28374 Use char because int might match the return type of a GCC
28375 builtin and then its argument prototype would still apply. */
28376#ifdef __cplusplus
28377extern "C"
28378#endif
28379char png_get_io_ptr ();
28380int
28381main ()
28382{
28383return png_get_io_ptr ();
28384 ;
28385 return 0;
28386}
28387_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028388if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028389 ac_cv_lib_png_png_get_io_ptr=yes
28390else
cristy8b350f62009-11-15 23:12:43 +000028391 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000028392fi
cristy8b350f62009-11-15 23:12:43 +000028393rm -f core conftest.err conftest.$ac_objext \
28394 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028395LIBS=$ac_check_lib_save_LIBS
28396fi
cristy8b350f62009-11-15 23:12:43 +000028397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000028398$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028399if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028400 passed=`expr $passed + 1`
28401else
28402 failed=`expr $failed + 1`
28403fi
28404
cristy8b350f62009-11-15 23:12:43 +000028405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028406$as_echo_n "checking if PNG package is complete... " >&6; }
28407 if test $passed -gt 0; then
28408 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028410$as_echo "no -- some components failed test" >&6; }
28411 have_png='no (failed tests)'
28412 else
28413 PNG_LIBS='-lpng'
28414 LIBS="$PNG_LIBS $LIBS"
28415
cristy8b350f62009-11-15 23:12:43 +000028416$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028417
cristy8b350f62009-11-15 23:12:43 +000028418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028419$as_echo "yes" >&6; }
28420 have_png='yes'
28421 fi
28422 else
cristy8b350f62009-11-15 23:12:43 +000028423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028424$as_echo "no" >&6; }
28425 fi
28426fi
28427 if test "$have_png" = 'yes'; then
28428 PNG_DELEGATE_TRUE=
28429 PNG_DELEGATE_FALSE='#'
28430else
28431 PNG_DELEGATE_TRUE='#'
28432 PNG_DELEGATE_FALSE=
28433fi
28434
28435
28436
28437
28438#
28439# Check for RSVG delegate library.
28440#
28441
28442# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000028443if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028444 withval=$with_rsvg; with_rsvg=$withval
28445else
28446 with_rsvg=$have_x
28447fi
28448
28449
28450if test "$with_rsvg" != 'yes'; then
28451 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28452fi
28453
28454have_rsvg='no'
28455have_cairo='no'
28456RSVG_CFLAGS=""
28457RSVG_LIBS=""
28458RSVG_PKG=""
28459if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028461$as_echo "-------------------------------------------------------------" >&6; }
28462
28463pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028465$as_echo_n "checking for RSVG... " >&6; }
28466
28467if test -n "$RSVG_CFLAGS"; then
28468 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28469 elif test -n "$PKG_CONFIG"; then
28470 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028471 { { $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 +000028472 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28473 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28475 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028476 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28477else
28478 pkg_failed=yes
28479fi
28480 else
28481 pkg_failed=untried
28482fi
28483if test -n "$RSVG_LIBS"; then
28484 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28485 elif test -n "$PKG_CONFIG"; then
28486 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028487 { { $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 +000028488 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28489 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28491 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028492 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28493else
28494 pkg_failed=yes
28495fi
28496 else
28497 pkg_failed=untried
28498fi
28499
28500
28501
28502if test $pkg_failed = yes; then
28503
28504if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28505 _pkg_short_errors_supported=yes
28506else
28507 _pkg_short_errors_supported=no
28508fi
28509 if test $_pkg_short_errors_supported = yes; then
28510 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28511 else
28512 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28513 fi
28514 # Put the nasty error message in config.log where it belongs
28515 echo "$RSVG_PKG_ERRORS" >&5
28516
cristy8b350f62009-11-15 23:12:43 +000028517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028518$as_echo "no" >&6; }
28519 have_rsvg=no
28520elif test $pkg_failed = untried; then
28521 have_rsvg=no
28522else
28523 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28524 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028526$as_echo "yes" >&6; }
28527 have_rsvg=yes
28528fi
cristy8b350f62009-11-15 23:12:43 +000028529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028530$as_echo "" >&6; }
28531
28532pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028534$as_echo_n "checking for CAIRO_SVG... " >&6; }
28535
28536if test -n "$CAIRO_SVG_CFLAGS"; then
28537 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28538 elif test -n "$PKG_CONFIG"; then
28539 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028540 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028541 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28542 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28544 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028545 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28546else
28547 pkg_failed=yes
28548fi
28549 else
28550 pkg_failed=untried
28551fi
28552if test -n "$CAIRO_SVG_LIBS"; then
28553 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28554 elif test -n "$PKG_CONFIG"; then
28555 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028556 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028557 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28558 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28560 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028561 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28562else
28563 pkg_failed=yes
28564fi
28565 else
28566 pkg_failed=untried
28567fi
28568
28569
28570
28571if test $pkg_failed = yes; then
28572
28573if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28574 _pkg_short_errors_supported=yes
28575else
28576 _pkg_short_errors_supported=no
28577fi
28578 if test $_pkg_short_errors_supported = yes; then
28579 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28580 else
28581 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28582 fi
28583 # Put the nasty error message in config.log where it belongs
28584 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28585
cristy8b350f62009-11-15 23:12:43 +000028586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028587$as_echo "no" >&6; }
28588 have_cairo=no
28589elif test $pkg_failed = untried; then
28590 have_cairo=no
28591else
28592 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28593 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028595$as_echo "yes" >&6; }
28596 have_cairo=yes
28597fi
cristy8b350f62009-11-15 23:12:43 +000028598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028599$as_echo "" >&6; }
28600fi
28601
28602if test "$have_rsvg" = 'yes'; then
28603
cristy8b350f62009-11-15 23:12:43 +000028604$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028605
28606 if test "$with_modules" = 'no'; then
28607 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28608 fi
28609fi
28610
28611if test "$have_cairo" = 'yes'; then
28612
cristy8b350f62009-11-15 23:12:43 +000028613$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028614
28615 if test "$with_modules" = 'no'; then
28616 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28617 fi
28618fi
28619
28620 if test "$have_rsvg" = 'yes'; then
28621 RSVG_DELEGATE_TRUE=
28622 RSVG_DELEGATE_FALSE='#'
28623else
28624 RSVG_DELEGATE_TRUE='#'
28625 RSVG_DELEGATE_FALSE=
28626fi
28627
28628 if test "$have_cairo" = 'yes'; then
28629 CAIRO_DELEGATE_TRUE=
28630 CAIRO_DELEGATE_FALSE='#'
28631else
28632 CAIRO_DELEGATE_TRUE='#'
28633 CAIRO_DELEGATE_FALSE=
28634fi
28635
28636
28637
28638
28639
28640#
28641# Check for TIFF delegate library.
28642#
28643
28644# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000028645if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028646 withval=$with_tiff; with_tiff=$withval
28647else
28648 with_tiff='yes'
28649fi
28650
28651
28652if test "$with_tiff" != 'yes'; then
28653 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28654fi
28655
28656have_tiff='no'
28657TIFF_LIBS=''
28658if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028660$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028662$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028664$as_echo "" >&6; }
28665 failed=0
28666 passed=0
cristy8b350f62009-11-15 23:12:43 +000028667 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28668if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028669 passed=`expr $passed + 1`
28670else
28671 failed=`expr $failed + 1`
28672fi
28673
28674
cristy8b350f62009-11-15 23:12:43 +000028675 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28676if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028677 passed=`expr $passed + 1`
28678else
28679 failed=`expr $failed + 1`
28680fi
28681
28682
cristy8b350f62009-11-15 23:12:43 +000028683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028684$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028685if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028686 $as_echo_n "(cached) " >&6
28687else
28688 ac_check_lib_save_LIBS=$LIBS
28689LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028691/* end confdefs.h. */
28692
28693/* Override any GCC internal prototype to avoid an error.
28694 Use char because int might match the return type of a GCC
28695 builtin and then its argument prototype would still apply. */
28696#ifdef __cplusplus
28697extern "C"
28698#endif
28699char TIFFOpen ();
28700int
28701main ()
28702{
28703return TIFFOpen ();
28704 ;
28705 return 0;
28706}
28707_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028708if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028709 ac_cv_lib_tiff_TIFFOpen=yes
28710else
cristy8b350f62009-11-15 23:12:43 +000028711 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028712fi
cristy8b350f62009-11-15 23:12:43 +000028713rm -f core conftest.err conftest.$ac_objext \
28714 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028715LIBS=$ac_check_lib_save_LIBS
28716fi
cristy8b350f62009-11-15 23:12:43 +000028717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028718$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028719if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028720 passed=`expr $passed + 1`
28721else
28722 failed=`expr $failed + 1`
28723fi
28724
cristy8b350f62009-11-15 23:12:43 +000028725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028726$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028727if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028728 $as_echo_n "(cached) " >&6
28729else
28730 ac_check_lib_save_LIBS=$LIBS
28731LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028733/* end confdefs.h. */
28734
28735/* Override any GCC internal prototype to avoid an error.
28736 Use char because int might match the return type of a GCC
28737 builtin and then its argument prototype would still apply. */
28738#ifdef __cplusplus
28739extern "C"
28740#endif
28741char TIFFClientOpen ();
28742int
28743main ()
28744{
28745return TIFFClientOpen ();
28746 ;
28747 return 0;
28748}
28749_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028750if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028751 ac_cv_lib_tiff_TIFFClientOpen=yes
28752else
cristy8b350f62009-11-15 23:12:43 +000028753 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028754fi
cristy8b350f62009-11-15 23:12:43 +000028755rm -f core conftest.err conftest.$ac_objext \
28756 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028757LIBS=$ac_check_lib_save_LIBS
28758fi
cristy8b350f62009-11-15 23:12:43 +000028759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028760$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028761if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028762 passed=`expr $passed + 1`
28763else
28764 failed=`expr $failed + 1`
28765fi
28766
cristyb97f1002010-07-26 14:02:57 +000028767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
28768$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
28769if test "${ac_cv_lib_tiff_TIFFIsBigEndian+set}" = set; then :
28770 $as_echo_n "(cached) " >&6
28771else
28772 ac_check_lib_save_LIBS=$LIBS
28773LIBS="-ltiff $LIBS"
28774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28775/* end confdefs.h. */
28776
28777/* Override any GCC internal prototype to avoid an error.
28778 Use char because int might match the return type of a GCC
28779 builtin and then its argument prototype would still apply. */
28780#ifdef __cplusplus
28781extern "C"
28782#endif
28783char TIFFIsBigEndian ();
28784int
28785main ()
28786{
28787return TIFFIsBigEndian ();
28788 ;
28789 return 0;
28790}
28791_ACEOF
28792if ac_fn_c_try_link "$LINENO"; then :
28793 ac_cv_lib_tiff_TIFFIsBigEndian=yes
28794else
28795 ac_cv_lib_tiff_TIFFIsBigEndian=no
28796fi
28797rm -f core conftest.err conftest.$ac_objext \
28798 conftest$ac_exeext conftest.$ac_ext
28799LIBS=$ac_check_lib_save_LIBS
28800fi
28801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
28802$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
28803if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = x""yes; then :
28804 passed=`expr $passed + 1`
28805else
28806 failed=`expr $failed + 1`
28807fi
28808
cristy8b350f62009-11-15 23:12:43 +000028809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028810$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028811if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028812 $as_echo_n "(cached) " >&6
28813else
28814 ac_check_lib_save_LIBS=$LIBS
28815LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028817/* end confdefs.h. */
28818
28819/* Override any GCC internal prototype to avoid an error.
28820 Use char because int might match the return type of a GCC
28821 builtin and then its argument prototype would still apply. */
28822#ifdef __cplusplus
28823extern "C"
28824#endif
28825char TIFFIsByteSwapped ();
28826int
28827main ()
28828{
28829return TIFFIsByteSwapped ();
28830 ;
28831 return 0;
28832}
28833_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028834if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028835 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28836else
cristy8b350f62009-11-15 23:12:43 +000028837 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000028838fi
cristy8b350f62009-11-15 23:12:43 +000028839rm -f core conftest.err conftest.$ac_objext \
28840 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028841LIBS=$ac_check_lib_save_LIBS
28842fi
cristy8b350f62009-11-15 23:12:43 +000028843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000028844$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028845if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028846 passed=`expr $passed + 1`
28847else
28848 failed=`expr $failed + 1`
28849fi
28850
cristy8b350f62009-11-15 23:12:43 +000028851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028852$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028853if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028854 $as_echo_n "(cached) " >&6
28855else
28856 ac_check_lib_save_LIBS=$LIBS
28857LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028859/* end confdefs.h. */
28860
28861/* Override any GCC internal prototype to avoid an error.
28862 Use char because int might match the return type of a GCC
28863 builtin and then its argument prototype would still apply. */
28864#ifdef __cplusplus
28865extern "C"
28866#endif
28867char TIFFReadRGBATile ();
28868int
28869main ()
28870{
28871return TIFFReadRGBATile ();
28872 ;
28873 return 0;
28874}
28875_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028876if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028877 ac_cv_lib_tiff_TIFFReadRGBATile=yes
28878else
cristy8b350f62009-11-15 23:12:43 +000028879 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000028880fi
cristy8b350f62009-11-15 23:12:43 +000028881rm -f core conftest.err conftest.$ac_objext \
28882 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028883LIBS=$ac_check_lib_save_LIBS
28884fi
cristy8b350f62009-11-15 23:12:43 +000028885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000028886$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028887if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028888 passed=`expr $passed + 1`
28889else
28890 failed=`expr $failed + 1`
28891fi
28892
cristy8b350f62009-11-15 23:12:43 +000028893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028894$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028895if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028896 $as_echo_n "(cached) " >&6
28897else
28898 ac_check_lib_save_LIBS=$LIBS
28899LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028901/* end confdefs.h. */
28902
28903/* Override any GCC internal prototype to avoid an error.
28904 Use char because int might match the return type of a GCC
28905 builtin and then its argument prototype would still apply. */
28906#ifdef __cplusplus
28907extern "C"
28908#endif
28909char TIFFReadRGBAStrip ();
28910int
28911main ()
28912{
28913return TIFFReadRGBAStrip ();
28914 ;
28915 return 0;
28916}
28917_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028918if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028919 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
28920else
cristy8b350f62009-11-15 23:12:43 +000028921 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000028922fi
cristy8b350f62009-11-15 23:12:43 +000028923rm -f core conftest.err conftest.$ac_objext \
28924 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028925LIBS=$ac_check_lib_save_LIBS
28926fi
cristy8b350f62009-11-15 23:12:43 +000028927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000028928$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028929if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028930 passed=`expr $passed + 1`
28931else
28932 failed=`expr $failed + 1`
28933fi
28934
cristy8b350f62009-11-15 23:12:43 +000028935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028936$as_echo_n "checking if TIFF package is complete... " >&6; }
28937 if test $passed -gt 0; then
28938 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028940$as_echo "no -- some components failed test" >&6; }
28941 have_tiff='no (failed tests)'
28942 else
28943 TIFF_LIBS='-ltiff'
28944 LIBS="$TIFF_LIBS $LIBS"
28945
cristy8b350f62009-11-15 23:12:43 +000028946$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028947
cristy8b350f62009-11-15 23:12:43 +000028948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028949$as_echo "yes" >&6; }
28950 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000028951 for ac_header in tiffconf.h
28952do :
28953 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
28954if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028955 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028956#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000028957_ACEOF
28958
28959fi
28960
28961done
28962
cristy8b350f62009-11-15 23:12:43 +000028963 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000028964 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
28965 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000028966do :
28967 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28968ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy0684af42010-07-09 00:00:05 +000028969if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000028970 cat >>confdefs.h <<_ACEOF
28971#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28972_ACEOF
28973
28974fi
28975done
28976
28977 fi
28978 else
cristy8b350f62009-11-15 23:12:43 +000028979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028980$as_echo "no" >&6; }
28981 fi
28982fi
28983 if test "$have_tiff" = 'yes'; then
28984 TIFF_DELEGATE_TRUE=
28985 TIFF_DELEGATE_FALSE='#'
28986else
28987 TIFF_DELEGATE_TRUE='#'
28988 TIFF_DELEGATE_FALSE=
28989fi
28990
28991
28992
28993
28994#
28995# Set Windows font directory.
28996#
28997
28998# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000028999if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029000 withval=$with_windows_font_dir; with_windows_font_dir=$withval
29001else
29002 with_windows_font_dir=''
29003fi
29004
29005if test "$with_windows_font_dir" != '' ; then
29006 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29007fi
29008
29009
29010#
29011# Check for WMF delegate library.
29012#
29013
29014# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000029015if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029016 withval=$with_wmf; with_wmf=$withval
29017else
cristy8d63d1d2010-01-06 20:38:37 +000029018 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000029019fi
29020
29021
29022if test "$with_wmf" != 'yes'; then
29023 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29024fi
29025
29026have_wmf='no'
29027WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000029028if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029030$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029032$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029034$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000029035 failed=0
29036 passed=0
29037 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29038if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29039 passed=`expr $passed + 1`
29040else
29041 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029042fi
29043
29044
cristy735e8942010-04-02 20:32:57 +000029045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29046$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29047if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029048 $as_echo_n "(cached) " >&6
29049else
29050 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000029051LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029053/* end confdefs.h. */
29054
29055/* Override any GCC internal prototype to avoid an error.
29056 Use char because int might match the return type of a GCC
29057 builtin and then its argument prototype would still apply. */
29058#ifdef __cplusplus
29059extern "C"
29060#endif
cristy735e8942010-04-02 20:32:57 +000029061char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029062int
29063main ()
29064{
cristy735e8942010-04-02 20:32:57 +000029065return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029066 ;
29067 return 0;
29068}
29069_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029070if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000029071 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000029072else
cristy735e8942010-04-02 20:32:57 +000029073 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000029074fi
cristy8b350f62009-11-15 23:12:43 +000029075rm -f core conftest.err conftest.$ac_objext \
29076 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029077LIBS=$ac_check_lib_save_LIBS
29078fi
cristy735e8942010-04-02 20:32:57 +000029079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29080$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29081if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29082 passed=`expr $passed + 1`
29083else
29084 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029085fi
29086
cristy735e8942010-04-02 20:32:57 +000029087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29088$as_echo_n "checking if WMF package is complete... " >&6; }
29089 if test $passed -gt 0; then
29090 if test $failed -gt 0; then
29091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29092$as_echo "no -- some components failed test" >&6; }
29093 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000029094 else
cristy735e8942010-04-02 20:32:57 +000029095 WMF_LIBS='-lwmf -lwmflite'
29096 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029097
cristy8b350f62009-11-15 23:12:43 +000029098$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029099
cristy735e8942010-04-02 20:32:57 +000029100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029101$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000029102 have_wmf='yes'
29103 fi
cristy3ed852e2009-09-05 21:47:34 +000029104 else
cristy8b350f62009-11-15 23:12:43 +000029105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029106$as_echo "no" >&6; }
29107 fi
29108fi
29109 if test "$have_wmf" = 'yes'; then
29110 WMF_DELEGATE_TRUE=
29111 WMF_DELEGATE_FALSE='#'
29112else
29113 WMF_DELEGATE_TRUE='#'
29114 WMF_DELEGATE_FALSE=
29115fi
29116
29117
29118
29119
29120
cristy735e8942010-04-02 20:32:57 +000029121
cristy3ed852e2009-09-05 21:47:34 +000029122#
29123# Check for XML delegate library.
29124#
29125
29126# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000029127if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029128 withval=$with_xml; with_xml=$withval
29129else
29130 with_xml=$have_x
29131fi
29132
29133
29134if test "$with_xml" != 'yes' ; then
29135 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29136fi
29137
29138have_xml='no'
29139XML_LIBS=''
29140if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029142$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000029144$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029146$as_echo "" >&6; }
29147 PERSIST_LDFLAGS=$LDFLAGS
29148 PERSIST_CPPFLAGS=$CPPFLAGS
29149 xml2_config=''
29150 for ac_prog in xml2-config
29151do
29152 # Extract the first word of "$ac_prog", so it can be a program name with args.
29153set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029155$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029156if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029157 $as_echo_n "(cached) " >&6
29158else
29159 if test -n "$xml2_config"; then
29160 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29161else
29162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29163for as_dir in $PATH
29164do
29165 IFS=$as_save_IFS
29166 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029167 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29169 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029171 break 2
29172 fi
29173done
cristy8b350f62009-11-15 23:12:43 +000029174 done
cristy3ed852e2009-09-05 21:47:34 +000029175IFS=$as_save_IFS
29176
29177fi
29178fi
29179xml2_config=$ac_cv_prog_xml2_config
29180if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000029181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000029182$as_echo "$xml2_config" >&6; }
29183else
cristy8b350f62009-11-15 23:12:43 +000029184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029185$as_echo "no" >&6; }
29186fi
29187
29188
29189 test -n "$xml2_config" && break
29190done
29191 if test -n "$xml2_config"; then
29192 # Debian installs libxml headers under /usr/include/libxml2/libxml with
29193 # the shared library installed under /usr/lib, whereas the package
29194 # installs itself under $prefix/libxml and $prefix/lib.
29195 xml2_prefix=`xml2-config --prefix`
29196 if test -d "${xml2_prefix}/include/libxml2"; then
29197 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29198 fi
29199 if test "${xml2_prefix}" != '/usr'; then
29200 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29201 fi
29202 fi
29203 failed=0
29204 passed=0
cristy8b350f62009-11-15 23:12:43 +000029205 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29206if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029207 passed=`expr $passed + 1`
29208else
29209 failed=`expr $failed + 1`
29210fi
29211
29212
cristy8b350f62009-11-15 23:12:43 +000029213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029214$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029215if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029216 $as_echo_n "(cached) " >&6
29217else
29218 ac_check_lib_save_LIBS=$LIBS
29219LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029221/* end confdefs.h. */
29222
29223/* Override any GCC internal prototype to avoid an error.
29224 Use char because int might match the return type of a GCC
29225 builtin and then its argument prototype would still apply. */
29226#ifdef __cplusplus
29227extern "C"
29228#endif
29229char xmlParseExternalEntity ();
29230int
29231main ()
29232{
29233return xmlParseExternalEntity ();
29234 ;
29235 return 0;
29236}
29237_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029238if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029239 ac_cv_lib_xml2_xmlParseExternalEntity=yes
29240else
cristy8b350f62009-11-15 23:12:43 +000029241 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000029242fi
cristy8b350f62009-11-15 23:12:43 +000029243rm -f core conftest.err conftest.$ac_objext \
29244 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029245LIBS=$ac_check_lib_save_LIBS
29246fi
cristy8b350f62009-11-15 23:12:43 +000029247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000029248$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029249if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029250 passed=`expr $passed + 1`
29251else
29252 failed=`expr $failed + 1`
29253fi
29254
cristy8b350f62009-11-15 23:12:43 +000029255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029256$as_echo_n "checking if XML package is complete... " >&6; }
29257 if test $passed -gt 0; then
29258 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029260$as_echo "no -- some components failed test" >&6; }
29261 have_xml='no (failed tests)'
29262 LDFLAGS="$PERSIST_LDFLAGS"
29263 CPPFLAGS="$PERSIST_CPPFLAGS"
29264 else
29265 XML_LIBS='-lxml2'
29266 LIBS="$XML_LIBS $LIBS"
29267
cristy8b350f62009-11-15 23:12:43 +000029268$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029269
cristy8b350f62009-11-15 23:12:43 +000029270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029271$as_echo "yes" >&6; }
29272 have_xml='yes'
29273 fi
29274 else
cristy8b350f62009-11-15 23:12:43 +000029275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029276$as_echo "no" >&6; }
29277 fi
29278fi
29279 if test "$have_xml" = 'yes'; then
29280 XML_DELEGATE_TRUE=
29281 XML_DELEGATE_FALSE='#'
29282else
29283 XML_DELEGATE_TRUE='#'
29284 XML_DELEGATE_FALSE=
29285fi
29286
29287
29288
29289
29290# Substitute compiler name to build/link PerlMagick
29291#
29292
29293
29294#
29295# Configure install Paths
29296#
29297
29298# Subdirectory under lib to place ImageMagick lib files
29299LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29300
29301cat >>confdefs.h <<_ACEOF
29302#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29303_ACEOF
29304
29305
29306# Path to ImageMagick bin directory
29307EXECUTABLE_PATH="${BIN_DIR}"
29308DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29309case "${build_os}" in
29310 mingw* )
29311 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29312 ;;
29313esac
29314
29315cat >>confdefs.h <<_ACEOF
29316#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29317_ACEOF
29318
29319
29320
29321# Path to ImageMagick lib
29322LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29323DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29324case "${build_os}" in
29325 mingw* )
29326 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29327 ;;
29328esac
29329
29330cat >>confdefs.h <<_ACEOF
29331#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29332_ACEOF
29333
29334
29335
29336# Subdirectory under lib to place ImageMagick configuration files
29337CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29338
29339cat >>confdefs.h <<_ACEOF
29340#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29341_ACEOF
29342
29343CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29344DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29345case "${build_os}" in
29346 mingw* )
29347 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29348 ;;
29349esac
29350
29351cat >>confdefs.h <<_ACEOF
29352#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29353_ACEOF
29354
29355
29356
29357#
29358# Subdirectory under lib to place ImageMagick coder module files
29359CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29360
29361cat >>confdefs.h <<_ACEOF
29362#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29363_ACEOF
29364
29365CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29366DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29367case "${build_os}" in
29368 mingw* )
29369 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29370 ;;
29371esac
29372
29373cat >>confdefs.h <<_ACEOF
29374#define CODER_PATH "$DEFINE_CODER_PATH"
29375_ACEOF
29376
29377
29378
29379#
29380# Subdirectory under lib to place ImageMagick filter module files
29381FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29382
29383cat >>confdefs.h <<_ACEOF
29384#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29385_ACEOF
29386
29387FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29388DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29389case "${build_os}" in
29390 mingw* )
29391 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29392 ;;
29393esac
29394
29395cat >>confdefs.h <<_ACEOF
29396#define FILTER_PATH "$DEFINE_FILTER_PATH"
29397_ACEOF
29398
29399
29400
29401#
29402# Path to ImageMagick documentation files
29403DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29404DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29405DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29406case "${build_os}" in
29407 mingw* )
29408 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29409 ;;
29410esac
29411
29412cat >>confdefs.h <<_ACEOF
29413#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29414_ACEOF
29415
29416
29417
29418#
29419# Path to ImageMagick share files
29420SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29421SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29422DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29423case "${build_os}" in
29424 mingw* )
29425 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29426 ;;
29427esac
29428
29429cat >>confdefs.h <<_ACEOF
29430#define SHARE_PATH "$DEFINE_SHARE_PATH"
29431_ACEOF
29432
29433
29434
29435# Subdirectory under share to place ImageMagick configuration files
29436SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29437
29438cat >>confdefs.h <<_ACEOF
29439#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29440_ACEOF
29441
29442SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29443DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29444case "${build_os}" in
29445 mingw* )
29446 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29447 ;;
29448esac
29449
29450cat >>confdefs.h <<_ACEOF
29451#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29452_ACEOF
29453
29454
29455
29456#
29457# program_transform_name is formed for use in a Makefile, so create a
29458# modified version for use in a shell script.
29459configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29460
29461# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000029462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029463$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029465$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029467$as_echo "" >&6; }
29468AutotraceDecodeDelegateDefault='autotrace'
29469AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000029470BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000029471BZIPDelegateDefault='bzip2'
29472BrowseDelegateDefault='xdg-open'
29473CGMDecodeDelegateDefault='ralcgm'
29474CatDelegateDefault='cat'
29475DNGDecodeDelegateDefault='ufraw-batch'
29476GVCDecodeDelegateDefault='dot'
29477DVIDecodeDelegateDefault='dvips'
29478EchoDelegateDefault='echo'
29479EditorDelegateDefault='xterm'
29480FIGDecodeDelegateDefault='fig2dev'
29481ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29482DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29483MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29484GnuplotDecodeDelegateDefault='gnuplot'
29485HDRDecodeDelegateDefault='ra_pfm'
29486HPGLDecodeDelegateDefault='hp2xx'
29487HTMLDecodeDelegateDefault='html2ps'
29488ILBMDecodeDelegateDefault='ilbmtoppm'
29489ILBMEncodeDelegateDefault='ppmtoilbm'
29490LPDelegateDefault='lp'
29491LPRDelegateDefault='lpr'
29492LZWDecodeDelegateDefault='uncompress'
29493LZWEncodeDelegateDefault='compress'
29494LaunchDelegateDefault='gimp'
29495MANDelegateDefault='groff'
29496MPEGDecodeDelegateDefault='ffmpeg'
29497MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000029498MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000029499MVDelegateDefault='mv'
29500PCLDelegateDefault='pcl6'
29501PGPDecodeDelegateDefault='pgpv'
29502POVDelegateDefault='povray'
29503if test "$native_win32_build" = 'yes'; then
29504 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000029505elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029506 PSDelegateDefault='gsc'
29507else
29508 PSDelegateDefault='gs'
29509fi
29510RLEEncodeDelegateDefault='rawtorle'
29511RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000029512RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000029513SCANDecodeDelegateDefault='scanimage'
29514TXTDelegateDefault='enscript'
cristy5ac9ac82010-07-29 13:24:24 +000029515UniconverterDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000029516WMFDecodeDelegateDefault='wmf2eps'
29517WWWDecodeDelegateDefault='curl'
29518XPSDelegateDefault='gxps'
29519ZipDelegateDefault='gzip'
29520
29521# Search for delegates
29522# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29523set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029525$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029526if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029527 $as_echo_n "(cached) " >&6
29528else
29529 case $AutotraceDecodeDelegate in
29530 [\\/]* | ?:[\\/]*)
29531 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29532 ;;
29533 *)
29534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29535for as_dir in $PATH
29536do
29537 IFS=$as_save_IFS
29538 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029539 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29541 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029543 break 2
29544 fi
29545done
cristy8b350f62009-11-15 23:12:43 +000029546 done
cristy3ed852e2009-09-05 21:47:34 +000029547IFS=$as_save_IFS
29548
29549 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29550 ;;
29551esac
29552fi
29553AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29554if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029556$as_echo "$AutotraceDecodeDelegate" >&6; }
29557else
cristy8b350f62009-11-15 23:12:43 +000029558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029559$as_echo "no" >&6; }
29560fi
29561
29562
29563# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29564set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029566$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029567if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029568 $as_echo_n "(cached) " >&6
29569else
29570 case $AVIDecodeDelegate in
29571 [\\/]* | ?:[\\/]*)
29572 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29573 ;;
29574 *)
29575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29576for as_dir in $PATH
29577do
29578 IFS=$as_save_IFS
29579 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029580 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29582 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029584 break 2
29585 fi
29586done
cristy8b350f62009-11-15 23:12:43 +000029587 done
cristy3ed852e2009-09-05 21:47:34 +000029588IFS=$as_save_IFS
29589
29590 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29591 ;;
29592esac
29593fi
29594AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29595if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029597$as_echo "$AVIDecodeDelegate" >&6; }
29598else
cristy8b350f62009-11-15 23:12:43 +000029599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029600$as_echo "no" >&6; }
29601fi
29602
29603
29604# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29605set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029607$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029608if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029609 $as_echo_n "(cached) " >&6
29610else
29611 case $BlenderDecodeDelegate in
29612 [\\/]* | ?:[\\/]*)
29613 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29614 ;;
29615 *)
29616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29617for as_dir in $PATH
29618do
29619 IFS=$as_save_IFS
29620 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029621 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29623 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029625 break 2
29626 fi
29627done
cristy8b350f62009-11-15 23:12:43 +000029628 done
cristy3ed852e2009-09-05 21:47:34 +000029629IFS=$as_save_IFS
29630
29631 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29632 ;;
29633esac
29634fi
29635BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29636if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029638$as_echo "$BlenderDecodeDelegate" >&6; }
29639else
cristy8b350f62009-11-15 23:12:43 +000029640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029641$as_echo "no" >&6; }
29642fi
29643
29644
29645# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29646set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029648$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029649if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029650 $as_echo_n "(cached) " >&6
29651else
29652 case $BZIPDelegate in
29653 [\\/]* | ?:[\\/]*)
29654 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29655 ;;
29656 *)
29657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29658for as_dir in $PATH
29659do
29660 IFS=$as_save_IFS
29661 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029662 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29664 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029666 break 2
29667 fi
29668done
cristy8b350f62009-11-15 23:12:43 +000029669 done
cristy3ed852e2009-09-05 21:47:34 +000029670IFS=$as_save_IFS
29671
29672 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29673 ;;
29674esac
29675fi
29676BZIPDelegate=$ac_cv_path_BZIPDelegate
29677if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029679$as_echo "$BZIPDelegate" >&6; }
29680else
cristy8b350f62009-11-15 23:12:43 +000029681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029682$as_echo "no" >&6; }
29683fi
29684
29685
29686# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29687set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029689$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029690if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029691 $as_echo_n "(cached) " >&6
29692else
29693 case $BrowseDelegate in
29694 [\\/]* | ?:[\\/]*)
29695 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29696 ;;
29697 *)
29698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29699for as_dir in $PATH
29700do
29701 IFS=$as_save_IFS
29702 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029703 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29705 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029707 break 2
29708 fi
29709done
cristy8b350f62009-11-15 23:12:43 +000029710 done
cristy3ed852e2009-09-05 21:47:34 +000029711IFS=$as_save_IFS
29712
29713 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29714 ;;
29715esac
29716fi
29717BrowseDelegate=$ac_cv_path_BrowseDelegate
29718if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029720$as_echo "$BrowseDelegate" >&6; }
29721else
cristy8b350f62009-11-15 23:12:43 +000029722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029723$as_echo "no" >&6; }
29724fi
29725
29726
29727# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29728set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029730$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029731if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029732 $as_echo_n "(cached) " >&6
29733else
29734 case $CGMDecodeDelegate in
29735 [\\/]* | ?:[\\/]*)
29736 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29737 ;;
29738 *)
29739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29740for as_dir in $PATH
29741do
29742 IFS=$as_save_IFS
29743 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029744 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29746 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029748 break 2
29749 fi
29750done
cristy8b350f62009-11-15 23:12:43 +000029751 done
cristy3ed852e2009-09-05 21:47:34 +000029752IFS=$as_save_IFS
29753
29754 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29755 ;;
29756esac
29757fi
29758CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29759if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029761$as_echo "$CGMDecodeDelegate" >&6; }
29762else
cristy8b350f62009-11-15 23:12:43 +000029763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029764$as_echo "no" >&6; }
29765fi
29766
29767
29768# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29769set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029771$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029772if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029773 $as_echo_n "(cached) " >&6
29774else
29775 case $CatDelegate in
29776 [\\/]* | ?:[\\/]*)
29777 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29778 ;;
29779 *)
29780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29781for as_dir in $PATH
29782do
29783 IFS=$as_save_IFS
29784 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029785 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29787 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029789 break 2
29790 fi
29791done
cristy8b350f62009-11-15 23:12:43 +000029792 done
cristy3ed852e2009-09-05 21:47:34 +000029793IFS=$as_save_IFS
29794
29795 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29796 ;;
29797esac
29798fi
29799CatDelegate=$ac_cv_path_CatDelegate
29800if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029802$as_echo "$CatDelegate" >&6; }
29803else
cristy8b350f62009-11-15 23:12:43 +000029804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029805$as_echo "no" >&6; }
29806fi
29807
29808
29809# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29810set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029812$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029813if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029814 $as_echo_n "(cached) " >&6
29815else
29816 case $DNGDecodeDelegate in
29817 [\\/]* | ?:[\\/]*)
29818 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29819 ;;
29820 *)
29821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29822for as_dir in $PATH
29823do
29824 IFS=$as_save_IFS
29825 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029826 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29828 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029830 break 2
29831 fi
29832done
cristy8b350f62009-11-15 23:12:43 +000029833 done
cristy3ed852e2009-09-05 21:47:34 +000029834IFS=$as_save_IFS
29835
29836 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29837 ;;
29838esac
29839fi
29840DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29841if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029843$as_echo "$DNGDecodeDelegate" >&6; }
29844else
cristy8b350f62009-11-15 23:12:43 +000029845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029846$as_echo "no" >&6; }
29847fi
29848
29849
29850# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29851set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029853$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029854if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029855 $as_echo_n "(cached) " >&6
29856else
29857 case $GVCDecodeDelegate in
29858 [\\/]* | ?:[\\/]*)
29859 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29860 ;;
29861 *)
29862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29863for as_dir in $PATH
29864do
29865 IFS=$as_save_IFS
29866 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029867 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29869 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029871 break 2
29872 fi
29873done
cristy8b350f62009-11-15 23:12:43 +000029874 done
cristy3ed852e2009-09-05 21:47:34 +000029875IFS=$as_save_IFS
29876
29877 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29878 ;;
29879esac
29880fi
29881GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29882if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029884$as_echo "$GVCDecodeDelegate" >&6; }
29885else
cristy8b350f62009-11-15 23:12:43 +000029886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029887$as_echo "no" >&6; }
29888fi
29889
29890
29891# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29892set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029894$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029895if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029896 $as_echo_n "(cached) " >&6
29897else
29898 case $DVIDecodeDelegate in
29899 [\\/]* | ?:[\\/]*)
29900 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
29901 ;;
29902 *)
29903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29904for as_dir in $PATH
29905do
29906 IFS=$as_save_IFS
29907 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029908 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29910 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029912 break 2
29913 fi
29914done
cristy8b350f62009-11-15 23:12:43 +000029915 done
cristy3ed852e2009-09-05 21:47:34 +000029916IFS=$as_save_IFS
29917
29918 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
29919 ;;
29920esac
29921fi
29922DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
29923if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029925$as_echo "$DVIDecodeDelegate" >&6; }
29926else
cristy8b350f62009-11-15 23:12:43 +000029927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029928$as_echo "no" >&6; }
29929fi
29930
29931
29932# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
29933set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029935$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029936if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029937 $as_echo_n "(cached) " >&6
29938else
29939 case $EchoDelegate in
29940 [\\/]* | ?:[\\/]*)
29941 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
29942 ;;
29943 *)
29944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29945for as_dir in $PATH
29946do
29947 IFS=$as_save_IFS
29948 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029949 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29951 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029953 break 2
29954 fi
29955done
cristy8b350f62009-11-15 23:12:43 +000029956 done
cristy3ed852e2009-09-05 21:47:34 +000029957IFS=$as_save_IFS
29958
29959 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
29960 ;;
29961esac
29962fi
29963EchoDelegate=$ac_cv_path_EchoDelegate
29964if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029966$as_echo "$EchoDelegate" >&6; }
29967else
cristy8b350f62009-11-15 23:12:43 +000029968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029969$as_echo "no" >&6; }
29970fi
29971
29972
29973# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
29974set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029976$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029977if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029978 $as_echo_n "(cached) " >&6
29979else
29980 case $EditorDelegate in
29981 [\\/]* | ?:[\\/]*)
29982 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
29983 ;;
29984 *)
29985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29986for as_dir in $PATH
29987do
29988 IFS=$as_save_IFS
29989 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029990 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29992 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029994 break 2
29995 fi
29996done
cristy8b350f62009-11-15 23:12:43 +000029997 done
cristy3ed852e2009-09-05 21:47:34 +000029998IFS=$as_save_IFS
29999
30000 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30001 ;;
30002esac
30003fi
30004EditorDelegate=$ac_cv_path_EditorDelegate
30005if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030007$as_echo "$EditorDelegate" >&6; }
30008else
cristy8b350f62009-11-15 23:12:43 +000030009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030010$as_echo "no" >&6; }
30011fi
30012
30013
30014# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30015set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030017$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030018if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030019 $as_echo_n "(cached) " >&6
30020else
30021 case $FIGDecodeDelegate in
30022 [\\/]* | ?:[\\/]*)
30023 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30024 ;;
30025 *)
30026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30027for as_dir in $PATH
30028do
30029 IFS=$as_save_IFS
30030 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030031 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30033 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030035 break 2
30036 fi
30037done
cristy8b350f62009-11-15 23:12:43 +000030038 done
cristy3ed852e2009-09-05 21:47:34 +000030039IFS=$as_save_IFS
30040
30041 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30042 ;;
30043esac
30044fi
30045FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30046if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030048$as_echo "$FIGDecodeDelegate" >&6; }
30049else
cristy8b350f62009-11-15 23:12:43 +000030050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030051$as_echo "no" >&6; }
30052fi
30053
30054
30055# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30056set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030058$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030059if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030060 $as_echo_n "(cached) " >&6
30061else
30062 case $ConvertDelegate in
30063 [\\/]* | ?:[\\/]*)
30064 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30065 ;;
30066 *)
30067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30068for as_dir in $PATH
30069do
30070 IFS=$as_save_IFS
30071 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030072 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30074 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030076 break 2
30077 fi
30078done
cristy8b350f62009-11-15 23:12:43 +000030079 done
cristy3ed852e2009-09-05 21:47:34 +000030080IFS=$as_save_IFS
30081
30082 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30083 ;;
30084esac
30085fi
30086ConvertDelegate=$ac_cv_path_ConvertDelegate
30087if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030089$as_echo "$ConvertDelegate" >&6; }
30090else
cristy8b350f62009-11-15 23:12:43 +000030091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030092$as_echo "no" >&6; }
30093fi
30094
30095
30096# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30097set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030099$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030100if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030101 $as_echo_n "(cached) " >&6
30102else
30103 case $DisplayDelegate in
30104 [\\/]* | ?:[\\/]*)
30105 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30106 ;;
30107 *)
30108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30109for as_dir in $PATH
30110do
30111 IFS=$as_save_IFS
30112 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030113 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30115 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030117 break 2
30118 fi
30119done
cristy8b350f62009-11-15 23:12:43 +000030120 done
cristy3ed852e2009-09-05 21:47:34 +000030121IFS=$as_save_IFS
30122
30123 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30124 ;;
30125esac
30126fi
30127DisplayDelegate=$ac_cv_path_DisplayDelegate
30128if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030130$as_echo "$DisplayDelegate" >&6; }
30131else
cristy8b350f62009-11-15 23:12:43 +000030132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030133$as_echo "no" >&6; }
30134fi
30135
30136
30137# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30138set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030140$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030141if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030142 $as_echo_n "(cached) " >&6
30143else
30144 case $MogrifyDelegate in
30145 [\\/]* | ?:[\\/]*)
30146 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30147 ;;
30148 *)
30149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30150for as_dir in $PATH
30151do
30152 IFS=$as_save_IFS
30153 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030154 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30156 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030158 break 2
30159 fi
30160done
cristy8b350f62009-11-15 23:12:43 +000030161 done
cristy3ed852e2009-09-05 21:47:34 +000030162IFS=$as_save_IFS
30163
30164 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30165 ;;
30166esac
30167fi
30168MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30169if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030171$as_echo "$MogrifyDelegate" >&6; }
30172else
cristy8b350f62009-11-15 23:12:43 +000030173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030174$as_echo "no" >&6; }
30175fi
30176
30177
30178# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30179set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030181$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030182if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030183 $as_echo_n "(cached) " >&6
30184else
30185 case $GnuplotDecodeDelegate in
30186 [\\/]* | ?:[\\/]*)
30187 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30188 ;;
30189 *)
30190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30191for as_dir in $PATH
30192do
30193 IFS=$as_save_IFS
30194 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030195 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30197 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030199 break 2
30200 fi
30201done
cristy8b350f62009-11-15 23:12:43 +000030202 done
cristy3ed852e2009-09-05 21:47:34 +000030203IFS=$as_save_IFS
30204
30205 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30206 ;;
30207esac
30208fi
30209GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30210if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030212$as_echo "$GnuplotDecodeDelegate" >&6; }
30213else
cristy8b350f62009-11-15 23:12:43 +000030214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030215$as_echo "no" >&6; }
30216fi
30217
30218
30219# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30220set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030222$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030223if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030224 $as_echo_n "(cached) " >&6
30225else
30226 case $HDRDecodeDelegate in
30227 [\\/]* | ?:[\\/]*)
30228 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30229 ;;
30230 *)
30231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30232for as_dir in $PATH
30233do
30234 IFS=$as_save_IFS
30235 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030236 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30238 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030240 break 2
30241 fi
30242done
cristy8b350f62009-11-15 23:12:43 +000030243 done
cristy3ed852e2009-09-05 21:47:34 +000030244IFS=$as_save_IFS
30245
30246 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30247 ;;
30248esac
30249fi
30250HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30251if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030253$as_echo "$HDRDecodeDelegate" >&6; }
30254else
cristy8b350f62009-11-15 23:12:43 +000030255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030256$as_echo "no" >&6; }
30257fi
30258
30259
30260# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30261set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030263$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030264if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030265 $as_echo_n "(cached) " >&6
30266else
30267 case $HPGLDecodeDelegate in
30268 [\\/]* | ?:[\\/]*)
30269 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30270 ;;
30271 *)
30272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30273for as_dir in $PATH
30274do
30275 IFS=$as_save_IFS
30276 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030277 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30279 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030281 break 2
30282 fi
30283done
cristy8b350f62009-11-15 23:12:43 +000030284 done
cristy3ed852e2009-09-05 21:47:34 +000030285IFS=$as_save_IFS
30286
30287 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30288 ;;
30289esac
30290fi
30291HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30292if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030294$as_echo "$HPGLDecodeDelegate" >&6; }
30295else
cristy8b350f62009-11-15 23:12:43 +000030296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030297$as_echo "no" >&6; }
30298fi
30299
30300
30301# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30302set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030304$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030305if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030306 $as_echo_n "(cached) " >&6
30307else
30308 case $HTMLDecodeDelegate in
30309 [\\/]* | ?:[\\/]*)
30310 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30311 ;;
30312 *)
30313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30314for as_dir in $PATH
30315do
30316 IFS=$as_save_IFS
30317 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030318 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30320 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030322 break 2
30323 fi
30324done
cristy8b350f62009-11-15 23:12:43 +000030325 done
cristy3ed852e2009-09-05 21:47:34 +000030326IFS=$as_save_IFS
30327
30328 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30329 ;;
30330esac
30331fi
30332HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30333if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030335$as_echo "$HTMLDecodeDelegate" >&6; }
30336else
cristy8b350f62009-11-15 23:12:43 +000030337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030338$as_echo "no" >&6; }
30339fi
30340
30341
30342# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30343set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030345$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030346if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030347 $as_echo_n "(cached) " >&6
30348else
30349 case $ILBMDecodeDelegate in
30350 [\\/]* | ?:[\\/]*)
30351 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30352 ;;
30353 *)
30354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30355for as_dir in $PATH
30356do
30357 IFS=$as_save_IFS
30358 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030359 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30361 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030363 break 2
30364 fi
30365done
cristy8b350f62009-11-15 23:12:43 +000030366 done
cristy3ed852e2009-09-05 21:47:34 +000030367IFS=$as_save_IFS
30368
30369 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30370 ;;
30371esac
30372fi
30373ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30374if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030376$as_echo "$ILBMDecodeDelegate" >&6; }
30377else
cristy8b350f62009-11-15 23:12:43 +000030378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030379$as_echo "no" >&6; }
30380fi
30381
30382
30383# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30384set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030386$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030387if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030388 $as_echo_n "(cached) " >&6
30389else
30390 case $ILBMEncodeDelegate in
30391 [\\/]* | ?:[\\/]*)
30392 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30393 ;;
30394 *)
30395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30396for as_dir in $PATH
30397do
30398 IFS=$as_save_IFS
30399 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030400 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30402 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030404 break 2
30405 fi
30406done
cristy8b350f62009-11-15 23:12:43 +000030407 done
cristy3ed852e2009-09-05 21:47:34 +000030408IFS=$as_save_IFS
30409
30410 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30411 ;;
30412esac
30413fi
30414ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30415if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030417$as_echo "$ILBMEncodeDelegate" >&6; }
30418else
cristy8b350f62009-11-15 23:12:43 +000030419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030420$as_echo "no" >&6; }
30421fi
30422
30423
30424# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30425set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030427$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030428if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030429 $as_echo_n "(cached) " >&6
30430else
30431 case $LPDelegate in
30432 [\\/]* | ?:[\\/]*)
30433 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30434 ;;
30435 *)
30436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30437for as_dir in $PATH
30438do
30439 IFS=$as_save_IFS
30440 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030441 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30443 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030445 break 2
30446 fi
30447done
cristy8b350f62009-11-15 23:12:43 +000030448 done
cristy3ed852e2009-09-05 21:47:34 +000030449IFS=$as_save_IFS
30450
30451 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30452 ;;
30453esac
30454fi
30455LPDelegate=$ac_cv_path_LPDelegate
30456if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030458$as_echo "$LPDelegate" >&6; }
30459else
cristy8b350f62009-11-15 23:12:43 +000030460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030461$as_echo "no" >&6; }
30462fi
30463
30464
30465# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30466set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030468$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030469if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030470 $as_echo_n "(cached) " >&6
30471else
30472 case $LPRDelegate in
30473 [\\/]* | ?:[\\/]*)
30474 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30475 ;;
30476 *)
30477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30478for as_dir in $PATH
30479do
30480 IFS=$as_save_IFS
30481 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030482 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30484 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030486 break 2
30487 fi
30488done
cristy8b350f62009-11-15 23:12:43 +000030489 done
cristy3ed852e2009-09-05 21:47:34 +000030490IFS=$as_save_IFS
30491
30492 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30493 ;;
30494esac
30495fi
30496LPRDelegate=$ac_cv_path_LPRDelegate
30497if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030499$as_echo "$LPRDelegate" >&6; }
30500else
cristy8b350f62009-11-15 23:12:43 +000030501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030502$as_echo "no" >&6; }
30503fi
30504
30505
30506# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30507set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030509$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030510if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030511 $as_echo_n "(cached) " >&6
30512else
30513 case $LZWDecodeDelegate in
30514 [\\/]* | ?:[\\/]*)
30515 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30516 ;;
30517 *)
30518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30519for as_dir in $PATH
30520do
30521 IFS=$as_save_IFS
30522 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030523 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30525 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030527 break 2
30528 fi
30529done
cristy8b350f62009-11-15 23:12:43 +000030530 done
cristy3ed852e2009-09-05 21:47:34 +000030531IFS=$as_save_IFS
30532
30533 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30534 ;;
30535esac
30536fi
30537LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30538if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030540$as_echo "$LZWDecodeDelegate" >&6; }
30541else
cristy8b350f62009-11-15 23:12:43 +000030542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030543$as_echo "no" >&6; }
30544fi
30545
30546
30547# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30548set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030550$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030551if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030552 $as_echo_n "(cached) " >&6
30553else
30554 case $LZWEncodeDelegate in
30555 [\\/]* | ?:[\\/]*)
30556 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30557 ;;
30558 *)
30559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30560for as_dir in $PATH
30561do
30562 IFS=$as_save_IFS
30563 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030564 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30566 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030568 break 2
30569 fi
30570done
cristy8b350f62009-11-15 23:12:43 +000030571 done
cristy3ed852e2009-09-05 21:47:34 +000030572IFS=$as_save_IFS
30573
30574 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30575 ;;
30576esac
30577fi
30578LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30579if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030581$as_echo "$LZWEncodeDelegate" >&6; }
30582else
cristy8b350f62009-11-15 23:12:43 +000030583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030584$as_echo "no" >&6; }
30585fi
30586
30587
30588# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30589set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030591$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030592if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030593 $as_echo_n "(cached) " >&6
30594else
30595 case $LaunchDelegate in
30596 [\\/]* | ?:[\\/]*)
30597 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30598 ;;
30599 *)
30600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30601for as_dir in $PATH
30602do
30603 IFS=$as_save_IFS
30604 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030605 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30607 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030609 break 2
30610 fi
30611done
cristy8b350f62009-11-15 23:12:43 +000030612 done
cristy3ed852e2009-09-05 21:47:34 +000030613IFS=$as_save_IFS
30614
30615 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30616 ;;
30617esac
30618fi
30619LaunchDelegate=$ac_cv_path_LaunchDelegate
30620if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030622$as_echo "$LaunchDelegate" >&6; }
30623else
cristy8b350f62009-11-15 23:12:43 +000030624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030625$as_echo "no" >&6; }
30626fi
30627
30628
30629# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30630set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030632$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030633if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030634 $as_echo_n "(cached) " >&6
30635else
30636 case $MANDelegate in
30637 [\\/]* | ?:[\\/]*)
30638 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30639 ;;
30640 *)
30641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30642for as_dir in $PATH
30643do
30644 IFS=$as_save_IFS
30645 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030646 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30648 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030650 break 2
30651 fi
30652done
cristy8b350f62009-11-15 23:12:43 +000030653 done
cristy3ed852e2009-09-05 21:47:34 +000030654IFS=$as_save_IFS
30655
30656 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30657 ;;
30658esac
30659fi
30660MANDelegate=$ac_cv_path_MANDelegate
30661if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030663$as_echo "$MANDelegate" >&6; }
30664else
cristy8b350f62009-11-15 23:12:43 +000030665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030666$as_echo "no" >&6; }
30667fi
30668
30669
30670# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30671set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030673$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030674if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030675 $as_echo_n "(cached) " >&6
30676else
30677 case $MPEGDecodeDelegate in
30678 [\\/]* | ?:[\\/]*)
30679 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30680 ;;
30681 *)
30682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30683for as_dir in $PATH
30684do
30685 IFS=$as_save_IFS
30686 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030687 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30689 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030691 break 2
30692 fi
30693done
cristy8b350f62009-11-15 23:12:43 +000030694 done
cristy3ed852e2009-09-05 21:47:34 +000030695IFS=$as_save_IFS
30696
30697 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30698 ;;
30699esac
30700fi
30701MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30702if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030704$as_echo "$MPEGDecodeDelegate" >&6; }
30705else
cristy8b350f62009-11-15 23:12:43 +000030706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030707$as_echo "no" >&6; }
30708fi
30709
30710
30711# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30712set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030714$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030715if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030716 $as_echo_n "(cached) " >&6
30717else
30718 case $MPEGEncodeDelegate in
30719 [\\/]* | ?:[\\/]*)
30720 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30721 ;;
30722 *)
30723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30724for as_dir in $PATH
30725do
30726 IFS=$as_save_IFS
30727 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030728 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30730 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030732 break 2
30733 fi
30734done
cristy8b350f62009-11-15 23:12:43 +000030735 done
cristy3ed852e2009-09-05 21:47:34 +000030736IFS=$as_save_IFS
30737
30738 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30739 ;;
30740esac
30741fi
30742MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30743if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030745$as_echo "$MPEGEncodeDelegate" >&6; }
30746else
cristy8b350f62009-11-15 23:12:43 +000030747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030748$as_echo "no" >&6; }
30749fi
30750
30751
cristy935c86e2010-06-05 23:50:07 +000030752# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30753set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30755$as_echo_n "checking for $ac_word... " >&6; }
30756if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30757 $as_echo_n "(cached) " >&6
30758else
30759 case $MrSIDDecodeDelegate in
30760 [\\/]* | ?:[\\/]*)
30761 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
30762 ;;
30763 *)
30764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30765for as_dir in $PATH
30766do
30767 IFS=$as_save_IFS
30768 test -z "$as_dir" && as_dir=.
30769 for ac_exec_ext in '' $ac_executable_extensions; do
30770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30771 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30773 break 2
30774 fi
30775done
30776 done
30777IFS=$as_save_IFS
30778
30779 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
30780 ;;
30781esac
30782fi
30783MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
30784if test -n "$MrSIDDecodeDelegate"; then
30785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
30786$as_echo "$MrSIDDecodeDelegate" >&6; }
30787else
30788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30789$as_echo "no" >&6; }
30790fi
30791
30792
cristy3ed852e2009-09-05 21:47:34 +000030793# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30794set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030796$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030797if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030798 $as_echo_n "(cached) " >&6
30799else
30800 case $MVDelegate in
30801 [\\/]* | ?:[\\/]*)
30802 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30803 ;;
30804 *)
30805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30806for as_dir in $PATH
30807do
30808 IFS=$as_save_IFS
30809 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030810 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30812 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030814 break 2
30815 fi
30816done
cristy8b350f62009-11-15 23:12:43 +000030817 done
cristy3ed852e2009-09-05 21:47:34 +000030818IFS=$as_save_IFS
30819
30820 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30821 ;;
30822esac
30823fi
30824MVDelegate=$ac_cv_path_MVDelegate
30825if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030827$as_echo "$MVDelegate" >&6; }
30828else
cristy8b350f62009-11-15 23:12:43 +000030829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030830$as_echo "no" >&6; }
30831fi
30832
30833
30834# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30835set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030837$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030838if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030839 $as_echo_n "(cached) " >&6
30840else
30841 case $PCLDelegate in
30842 [\\/]* | ?:[\\/]*)
30843 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30844 ;;
30845 *)
30846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30847for as_dir in $PATH
30848do
30849 IFS=$as_save_IFS
30850 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030851 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30853 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030855 break 2
30856 fi
30857done
cristy8b350f62009-11-15 23:12:43 +000030858 done
cristy3ed852e2009-09-05 21:47:34 +000030859IFS=$as_save_IFS
30860
30861 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30862 ;;
30863esac
30864fi
30865PCLDelegate=$ac_cv_path_PCLDelegate
30866if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030868$as_echo "$PCLDelegate" >&6; }
30869else
cristy8b350f62009-11-15 23:12:43 +000030870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030871$as_echo "no" >&6; }
30872fi
30873
30874
30875# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30876set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030878$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030879if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030880 $as_echo_n "(cached) " >&6
30881else
30882 case $PGPDecodeDelegate in
30883 [\\/]* | ?:[\\/]*)
30884 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30885 ;;
30886 *)
30887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30888for as_dir in $PATH
30889do
30890 IFS=$as_save_IFS
30891 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030892 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30894 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030896 break 2
30897 fi
30898done
cristy8b350f62009-11-15 23:12:43 +000030899 done
cristy3ed852e2009-09-05 21:47:34 +000030900IFS=$as_save_IFS
30901
30902 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30903 ;;
30904esac
30905fi
30906PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30907if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030909$as_echo "$PGPDecodeDelegate" >&6; }
30910else
cristy8b350f62009-11-15 23:12:43 +000030911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030912$as_echo "no" >&6; }
30913fi
30914
30915
30916# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
30917set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030919$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030920if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030921 $as_echo_n "(cached) " >&6
30922else
30923 case $POVDelegate in
30924 [\\/]* | ?:[\\/]*)
30925 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
30926 ;;
30927 *)
30928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30929for as_dir in $PATH
30930do
30931 IFS=$as_save_IFS
30932 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030933 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30935 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030937 break 2
30938 fi
30939done
cristy8b350f62009-11-15 23:12:43 +000030940 done
cristy3ed852e2009-09-05 21:47:34 +000030941IFS=$as_save_IFS
30942
30943 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
30944 ;;
30945esac
30946fi
30947POVDelegate=$ac_cv_path_POVDelegate
30948if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030950$as_echo "$POVDelegate" >&6; }
30951else
cristy8b350f62009-11-15 23:12:43 +000030952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030953$as_echo "no" >&6; }
30954fi
30955
30956
30957for ac_prog in gsx gsc "$PSDelegateDefault"
30958do
30959 # Extract the first word of "$ac_prog", so it can be a program name with args.
30960set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030962$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030963if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030964 $as_echo_n "(cached) " >&6
30965else
30966 case $PSDelegate in
30967 [\\/]* | ?:[\\/]*)
30968 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
30969 ;;
30970 *)
30971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30972for as_dir in $PATH
30973do
30974 IFS=$as_save_IFS
30975 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030976 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30978 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030980 break 2
30981 fi
30982done
cristy8b350f62009-11-15 23:12:43 +000030983 done
cristy3ed852e2009-09-05 21:47:34 +000030984IFS=$as_save_IFS
30985
30986 ;;
30987esac
30988fi
30989PSDelegate=$ac_cv_path_PSDelegate
30990if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030992$as_echo "$PSDelegate" >&6; }
30993else
cristy8b350f62009-11-15 23:12:43 +000030994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030995$as_echo "no" >&6; }
30996fi
30997
30998
30999 test -n "$PSDelegate" && break
31000done
31001test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31002
31003# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31004set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031006$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031007if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031008 $as_echo_n "(cached) " >&6
31009else
31010 case $RLEEncodeDelegate in
31011 [\\/]* | ?:[\\/]*)
31012 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31013 ;;
31014 *)
31015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31016for as_dir in $PATH
31017do
31018 IFS=$as_save_IFS
31019 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031020 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31022 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031024 break 2
31025 fi
31026done
cristy8b350f62009-11-15 23:12:43 +000031027 done
cristy3ed852e2009-09-05 21:47:34 +000031028IFS=$as_save_IFS
31029
31030 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31031 ;;
31032esac
31033fi
31034RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31035if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031037$as_echo "$RLEEncodeDelegate" >&6; }
31038else
cristy8b350f62009-11-15 23:12:43 +000031039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031040$as_echo "no" >&6; }
31041fi
31042
31043
31044# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31045set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031047$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031048if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031049 $as_echo_n "(cached) " >&6
31050else
31051 case $RMDelegate in
31052 [\\/]* | ?:[\\/]*)
31053 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31054 ;;
31055 *)
31056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31057for as_dir in $PATH
31058do
31059 IFS=$as_save_IFS
31060 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031061 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31063 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031065 break 2
31066 fi
31067done
cristy8b350f62009-11-15 23:12:43 +000031068 done
cristy3ed852e2009-09-05 21:47:34 +000031069IFS=$as_save_IFS
31070
31071 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31072 ;;
31073esac
31074fi
31075RMDelegate=$ac_cv_path_RMDelegate
31076if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031078$as_echo "$RMDelegate" >&6; }
31079else
cristy8b350f62009-11-15 23:12:43 +000031080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031081$as_echo "no" >&6; }
31082fi
31083
31084
cristy4689cf02010-02-17 21:15:45 +000031085# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31086set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31088$as_echo_n "checking for $ac_word... " >&6; }
31089if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31090 $as_echo_n "(cached) " >&6
31091else
31092 case $RSVGDecodeDelegate in
31093 [\\/]* | ?:[\\/]*)
31094 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31095 ;;
31096 *)
31097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31098for as_dir in $PATH
31099do
31100 IFS=$as_save_IFS
31101 test -z "$as_dir" && as_dir=.
31102 for ac_exec_ext in '' $ac_executable_extensions; do
31103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31104 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31106 break 2
31107 fi
31108done
31109 done
31110IFS=$as_save_IFS
31111
31112 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31113 ;;
31114esac
31115fi
31116RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31117if test -n "$RSVGDecodeDelegate"; then
31118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31119$as_echo "$RSVGDecodeDelegate" >&6; }
31120else
31121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31122$as_echo "no" >&6; }
31123fi
31124
31125
cristy3ed852e2009-09-05 21:47:34 +000031126# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31127set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031129$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031130if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031131 $as_echo_n "(cached) " >&6
31132else
31133 case $SCANDecodeDelegate in
31134 [\\/]* | ?:[\\/]*)
31135 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31136 ;;
31137 *)
31138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31139for as_dir in $PATH
31140do
31141 IFS=$as_save_IFS
31142 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031143 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31145 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031147 break 2
31148 fi
31149done
cristy8b350f62009-11-15 23:12:43 +000031150 done
cristy3ed852e2009-09-05 21:47:34 +000031151IFS=$as_save_IFS
31152
31153 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31154 ;;
31155esac
31156fi
31157SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31158if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031160$as_echo "$SCANDecodeDelegate" >&6; }
31161else
cristy8b350f62009-11-15 23:12:43 +000031162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031163$as_echo "no" >&6; }
31164fi
31165
31166
31167# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31168set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031170$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031171if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031172 $as_echo_n "(cached) " >&6
31173else
31174 case $TXTDelegate in
31175 [\\/]* | ?:[\\/]*)
31176 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31177 ;;
31178 *)
31179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31180for as_dir in $PATH
31181do
31182 IFS=$as_save_IFS
31183 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031184 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31186 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031188 break 2
31189 fi
31190done
cristy8b350f62009-11-15 23:12:43 +000031191 done
cristy3ed852e2009-09-05 21:47:34 +000031192IFS=$as_save_IFS
31193
31194 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31195 ;;
31196esac
31197fi
31198TXTDelegate=$ac_cv_path_TXTDelegate
31199if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031201$as_echo "$TXTDelegate" >&6; }
31202else
cristy8b350f62009-11-15 23:12:43 +000031203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031204$as_echo "no" >&6; }
31205fi
31206
31207
cristy5ac9ac82010-07-29 13:24:24 +000031208# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
31209set dummy "$UniconvertorDelegateDefault"; ac_word=$2
31210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31211$as_echo_n "checking for $ac_word... " >&6; }
31212if test "${ac_cv_path_UniconvertorDelegate+set}" = set; then :
31213 $as_echo_n "(cached) " >&6
31214else
31215 case $UniconvertorDelegate in
31216 [\\/]* | ?:[\\/]*)
31217 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
31218 ;;
31219 *)
31220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31221for as_dir in $PATH
31222do
31223 IFS=$as_save_IFS
31224 test -z "$as_dir" && as_dir=.
31225 for ac_exec_ext in '' $ac_executable_extensions; do
31226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31227 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
31228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31229 break 2
31230 fi
31231done
31232 done
31233IFS=$as_save_IFS
31234
31235 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
31236 ;;
31237esac
31238fi
31239UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
31240if test -n "$UniconvertorDelegate"; then
31241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
31242$as_echo "$UniconvertorDelegate" >&6; }
31243else
31244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31245$as_echo "no" >&6; }
31246fi
31247
31248
cristy3ed852e2009-09-05 21:47:34 +000031249# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31250set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031252$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031253if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031254 $as_echo_n "(cached) " >&6
31255else
31256 case $WMFDecodeDelegate in
31257 [\\/]* | ?:[\\/]*)
31258 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31259 ;;
31260 *)
31261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31262for as_dir in $PATH
31263do
31264 IFS=$as_save_IFS
31265 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031266 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31268 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031270 break 2
31271 fi
31272done
cristy8b350f62009-11-15 23:12:43 +000031273 done
cristy3ed852e2009-09-05 21:47:34 +000031274IFS=$as_save_IFS
31275
31276 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31277 ;;
31278esac
31279fi
31280WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31281if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031283$as_echo "$WMFDecodeDelegate" >&6; }
31284else
cristy8b350f62009-11-15 23:12:43 +000031285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031286$as_echo "no" >&6; }
31287fi
31288
31289
31290# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31291set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031293$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031294if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031295 $as_echo_n "(cached) " >&6
31296else
31297 case $WWWDecodeDelegate in
31298 [\\/]* | ?:[\\/]*)
31299 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31300 ;;
31301 *)
31302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31303for as_dir in $PATH
31304do
31305 IFS=$as_save_IFS
31306 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031307 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31309 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031311 break 2
31312 fi
31313done
cristy8b350f62009-11-15 23:12:43 +000031314 done
cristy3ed852e2009-09-05 21:47:34 +000031315IFS=$as_save_IFS
31316
31317 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31318 ;;
31319esac
31320fi
31321WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31322if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031324$as_echo "$WWWDecodeDelegate" >&6; }
31325else
cristy8b350f62009-11-15 23:12:43 +000031326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031327$as_echo "no" >&6; }
31328fi
31329
31330
31331# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31332set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031334$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031335if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031336 $as_echo_n "(cached) " >&6
31337else
31338 case $XPSDelegate in
31339 [\\/]* | ?:[\\/]*)
31340 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31341 ;;
31342 *)
31343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31344for as_dir in $PATH
31345do
31346 IFS=$as_save_IFS
31347 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031348 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31350 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031352 break 2
31353 fi
31354done
cristy8b350f62009-11-15 23:12:43 +000031355 done
cristy3ed852e2009-09-05 21:47:34 +000031356IFS=$as_save_IFS
31357
31358 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31359 ;;
31360esac
31361fi
31362XPSDelegate=$ac_cv_path_XPSDelegate
31363if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031365$as_echo "$XPSDelegate" >&6; }
31366else
cristy8b350f62009-11-15 23:12:43 +000031367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031368$as_echo "no" >&6; }
31369fi
31370
31371
31372# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31373set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031375$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031376if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031377 $as_echo_n "(cached) " >&6
31378else
31379 case $ZipDelegate in
31380 [\\/]* | ?:[\\/]*)
31381 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31382 ;;
31383 *)
31384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31385for as_dir in $PATH
31386do
31387 IFS=$as_save_IFS
31388 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031389 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31391 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031393 break 2
31394 fi
31395done
cristy8b350f62009-11-15 23:12:43 +000031396 done
cristy3ed852e2009-09-05 21:47:34 +000031397IFS=$as_save_IFS
31398
31399 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31400 ;;
31401esac
31402fi
31403ZipDelegate=$ac_cv_path_ZipDelegate
31404if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031406$as_echo "$ZipDelegate" >&6; }
31407else
cristy8b350f62009-11-15 23:12:43 +000031408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031409$as_echo "no" >&6; }
31410fi
31411
31412
31413
31414# Prefer lpr to lp; lp needs options tacked on.
31415if test "$LPRDelegate" != no; then
31416 PrintDelegate="$LPRDelegate"
31417else
31418 PrintDelegate="$LPDelegate -c -s"
31419fi
31420
31421
31422# Installed ImageMagick utiltity paths
31423ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31424DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31425MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31426
31427# Set delegate booleans
31428have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31429have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31430have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31431have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31432have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31433have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000031434have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000031435have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31436have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31437have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31438have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31439have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31440
31441#
31442# Test for font directories
31443#
31444type_include_files=''
31445
cristy430a7312010-01-21 20:44:04 +000031446# Dejavu fonts.
31447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31448$as_echo_n "checking for Dejavu fonts directory... " >&6; }
31449dejavu_font_dir=''
31450if test "${with_dejavu_font_dir}" != 'default'; then
31451 dejavu_font_dir="${with_dejavu_font_dir}/"
31452else
31453 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31454 if test -f "${font_dir}DejaVuSerif.ttf"; then
31455 dejavu_font_dir="${font_dir}"
31456 break 1
31457 fi
31458 done
31459fi
31460if test "${dejavu_font_dir}x" != 'x'; then
31461 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31463$as_echo "$dejavu_font_dir" >&6; }
31464else
31465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31466$as_echo "not found!" >&6; };
31467fi
31468
31469
cristy3ed852e2009-09-05 21:47:34 +000031470# Windows
31471windows_font_dir=''
31472if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31473 windows_font_dir="${with_windows_font_dir}/"
31474fi
cristy430a7312010-01-21 20:44:04 +000031475if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031476 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31477 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31478 fi
31479 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31480 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31481 fi
31482 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31483 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31484 fi
31485fi
cristy430a7312010-01-21 20:44:04 +000031486if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031487 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31488fi
31489
31490
31491# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000031492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000031493$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31494ghostscript_font_dir=''
31495if test "${with_gs_font_dir}" != 'default'; then
31496 ghostscript_font_dir="${with_gs_font_dir}/"
31497else
31498 if test "${native_win32_build}" = 'yes'; then
31499 # Native Windows Build
31500 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31501 if test -f "${font_dir}a010013l.pfb"; then
31502 ghostscript_font_dir="$font_dir"
31503 break 1
31504 fi
31505 done
31506 if test "${PSDelegate}" != 'gswin32c'; then
31507 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31508 fi
31509 else
31510 # Linux / Mac OS X / Unix Build
31511 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
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 "${ghostscript_font_dir}x" = 'x'; then
31518 if test "$PSDelegate" != 'gs'; then
31519 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31520 fi
31521 fi
31522 fi
31523fi
31524if test "${ghostscript_font_dir}x" != 'x'; then
31525 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000031526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000031527$as_echo "$ghostscript_font_dir" >&6; }
31528else
cristy8b350f62009-11-15 23:12:43 +000031529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000031530$as_echo "not found!" >&6; };
31531fi
31532
31533case "${build_os}" in
31534 mingw* )
31535 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31536 ;;
31537esac
31538
31539
31540
31541#
31542# Handle case where user doesn't want frozen paths
31543#
31544if test "$with_frozenpaths" != 'yes'; then
31545 # Re-set delegate definitions to default (no paths)
31546 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31547 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31548 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31549 BZIPDelegate="$BZIPDelegateDefault"
31550 BrowseDelegate="$BrowseDelegateDefault"
31551 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31552 CatDelegate="$CatDelegateDefault"
31553 ConvertDelegate="$ConvertDelegateDefault"
31554 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31555 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31556 EchoDelegate="$EchoDelegateDefault"
31557 EditorDelegate="$EditorDelegateDefault"
31558 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31559 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31560 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31561 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31562 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31563 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31564 LPDelegate="$LPDelegateDefault"
31565 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31566 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31567 LaunchDelegate="$LaunchDelegateDefault"
31568 MANDelegate="$MANDelegateDefault"
31569 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31570 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031571 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000031572 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31573 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031574 PCLDelegate="$PCLDelegateDefault"
31575 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31576 POVDelegate="$POVDelegateDefault"
31577 PSDelegate="$PSDelegateDefault"
31578 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31579 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31580 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000031581 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031582 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31583 ShowImageDelegate="$ShowImageDelegateDefault"
31584 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000031585 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031586 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31587 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31588 XPSDelegate="$XPSDelegateDefault"
31589 ZipDelegate="$ZipDelegateDefault"
31590fi
31591
31592# Delegate substitutions
31593
31594
31595
31596
31597
31598
31599
31600
31601
31602
31603
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
cristy935c86e2010-06-05 23:50:07 +000031635
cristy5ac9ac82010-07-29 13:24:24 +000031636
cristy3ed852e2009-09-05 21:47:34 +000031637#
31638# RPM support.
31639#
31640RPM=''
31641for ac_prog in gnutar gtar tar
31642do
31643 # Extract the first word of "$ac_prog", so it can be a program name with args.
31644set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031646$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031647if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031648 $as_echo_n "(cached) " >&6
31649else
31650 if test -n "$TAR"; then
31651 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31652else
31653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31654for as_dir in $PATH
31655do
31656 IFS=$as_save_IFS
31657 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031658 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31660 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031662 break 2
31663 fi
31664done
cristy8b350f62009-11-15 23:12:43 +000031665 done
cristy3ed852e2009-09-05 21:47:34 +000031666IFS=$as_save_IFS
31667
31668fi
31669fi
31670TAR=$ac_cv_prog_TAR
31671if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000031672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000031673$as_echo "$TAR" >&6; }
31674else
cristy8b350f62009-11-15 23:12:43 +000031675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031676$as_echo "no" >&6; }
31677fi
31678
31679
31680 test -n "$TAR" && break
31681done
31682
31683for ac_prog in perl
31684do
31685 # Extract the first word of "$ac_prog", so it can be a program name with args.
31686set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031688$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031689if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031690 $as_echo_n "(cached) " >&6
31691else
31692 if test -n "$PERL"; then
31693 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31694else
31695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31696for as_dir in $PATH
31697do
31698 IFS=$as_save_IFS
31699 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031700 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31702 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031704 break 2
31705 fi
31706done
cristy8b350f62009-11-15 23:12:43 +000031707 done
cristy3ed852e2009-09-05 21:47:34 +000031708IFS=$as_save_IFS
31709
31710fi
31711fi
31712PERL=$ac_cv_prog_PERL
31713if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031715$as_echo "$PERL" >&6; }
31716else
cristy8b350f62009-11-15 23:12:43 +000031717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031718$as_echo "no" >&6; }
31719fi
31720
31721
31722 test -n "$PERL" && break
31723done
31724
31725for ac_prog in rpmbuild rpm
31726do
31727 # Extract the first word of "$ac_prog", so it can be a program name with args.
31728set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031730$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031731if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031732 $as_echo_n "(cached) " >&6
31733else
31734 if test -n "$RPM"; then
31735 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31736else
31737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31738for as_dir in $PATH
31739do
31740 IFS=$as_save_IFS
31741 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031742 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31744 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031746 break 2
31747 fi
31748done
cristy8b350f62009-11-15 23:12:43 +000031749 done
cristy3ed852e2009-09-05 21:47:34 +000031750IFS=$as_save_IFS
31751
31752fi
31753fi
31754RPM=$ac_cv_prog_RPM
31755if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000031756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000031757$as_echo "$RPM" >&6; }
31758else
cristy8b350f62009-11-15 23:12:43 +000031759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031760$as_echo "no" >&6; }
31761fi
31762
31763
31764 test -n "$RPM" && break
31765done
31766
31767
31768ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31769
31770
31771AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31772
31773
31774AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31775
31776
31777AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31778
31779
31780 if test "x$RPM" != "x" ; then
31781 RPM_DELEGATE_TRUE=
31782 RPM_DELEGATE_FALSE='#'
31783else
31784 RPM_DELEGATE_TRUE='#'
31785 RPM_DELEGATE_FALSE=
31786fi
31787
31788
31789#
31790# 7ZIP support (http://p7zip.sourceforge.net/)
31791#
31792P7ZIP=''
31793for ac_prog in 7za
31794do
31795 # Extract the first word of "$ac_prog", so it can be a program name with args.
31796set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031798$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031799if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031800 $as_echo_n "(cached) " >&6
31801else
31802 if test -n "$P7ZIP"; then
31803 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31804else
31805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31806for as_dir in $PATH
31807do
31808 IFS=$as_save_IFS
31809 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031810 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31812 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031814 break 2
31815 fi
31816done
cristy8b350f62009-11-15 23:12:43 +000031817 done
cristy3ed852e2009-09-05 21:47:34 +000031818IFS=$as_save_IFS
31819
31820fi
31821fi
31822P7ZIP=$ac_cv_prog_P7ZIP
31823if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031825$as_echo "$P7ZIP" >&6; }
31826else
cristy8b350f62009-11-15 23:12:43 +000031827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031828$as_echo "no" >&6; }
31829fi
31830
31831
31832 test -n "$P7ZIP" && break
31833done
31834
31835
31836 if test "x$P7ZIP" != "x" ; then
31837 P7ZIP_DELEGATE_TRUE=
31838 P7ZIP_DELEGATE_FALSE='#'
31839else
31840 P7ZIP_DELEGATE_TRUE='#'
31841 P7ZIP_DELEGATE_FALSE=
31842fi
31843
31844
31845#
31846# ZIP support (http://www.info-zip.org/Zip.html)
31847#
31848ZIP=''
31849for ac_prog in zip
31850do
31851 # Extract the first word of "$ac_prog", so it can be a program name with args.
31852set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031854$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031855if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031856 $as_echo_n "(cached) " >&6
31857else
31858 if test -n "$ZIP"; then
31859 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31860else
31861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31862for as_dir in $PATH
31863do
31864 IFS=$as_save_IFS
31865 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031866 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31868 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031870 break 2
31871 fi
31872done
cristy8b350f62009-11-15 23:12:43 +000031873 done
cristy3ed852e2009-09-05 21:47:34 +000031874IFS=$as_save_IFS
31875
31876fi
31877fi
31878ZIP=$ac_cv_prog_ZIP
31879if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031881$as_echo "$ZIP" >&6; }
31882else
cristy8b350f62009-11-15 23:12:43 +000031883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031884$as_echo "no" >&6; }
31885fi
31886
31887
31888 test -n "$ZIP" && break
31889done
31890
31891
31892 if test "x$ZIP" != "x" ; then
31893 ZIP_DELEGATE_TRUE=
31894 ZIP_DELEGATE_FALSE='#'
31895else
31896 ZIP_DELEGATE_TRUE='#'
31897 ZIP_DELEGATE_FALSE=
31898fi
31899
31900
31901#
31902# GhostPCL related configuration.
31903#
31904PCLColorDevice=ppmraw
31905PCLCMYKDevice=bmpsep8
31906PCLMonoDevice=pbmraw
31907if test -z "$PCLVersion"; then
31908 PCLVersion='unknown'
31909fi
31910if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031912$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031914$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031916$as_echo "" >&6; }
31917 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000031918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031919$as_echo_n "checking for pcl color device... " >&6; }
31920 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31921 :
31922 else
31923 PCLColorDevice=ppmraw
31924 fi
cristy8b350f62009-11-15 23:12:43 +000031925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031926$as_echo "$PCLColorDevice" >&6; }
31927
31928 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031930$as_echo_n "checking for pcl CMYK device... " >&6; }
31931 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31932 :
31933 else
31934 PCLCMYKDevice=$PCLColorDevice
31935 fi
cristy8b350f62009-11-15 23:12:43 +000031936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031937$as_echo "$PCLCMYKDevice" >&6; }
31938
31939 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031941$as_echo_n "checking for pcl mono device... " >&6; }
31942 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31943 :
31944 else
31945 PCLMonoDevice=$PCLColorDevice
31946 fi
cristy8b350f62009-11-15 23:12:43 +000031947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031948$as_echo "$PCLMonoDevice" >&6; }
31949fi
31950
31951
31952
31953
31954
31955
31956#
31957# GhostXPS related configuration.
31958#
31959XPSColorDevice=ppmraw
31960XPSCMYKDevice=bmpsep8
31961XPSMonoDevice=pbmraw
31962if test -z "$XPSVersion"; then
31963 XPSVersion='unknown'
31964fi
31965if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031967$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000031969$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031971$as_echo "" >&6; }
31972 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000031973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031974$as_echo_n "checking for xps color device... " >&6; }
31975 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31976 :
31977 else
31978 XPSColorDevice=ppmraw
31979 fi
cristy8b350f62009-11-15 23:12:43 +000031980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031981$as_echo "$XPSColorDevice" >&6; }
31982
31983 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031985$as_echo_n "checking for xps CMYK device... " >&6; }
31986 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31987 :
31988 else
31989 XPSCMYKDevice=$XPSColorDevice
31990 fi
cristy8b350f62009-11-15 23:12:43 +000031991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031992$as_echo "$XPSCMYKDevice" >&6; }
31993
31994 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031996$as_echo_n "checking for xps mono device... " >&6; }
31997 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31998 :
31999 else
32000 XPSMonoDevice=$XPSColorDevice
32001 fi
cristy8b350f62009-11-15 23:12:43 +000032002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032003$as_echo "$XPSMonoDevice" >&6; }
32004fi
32005
32006
32007
32008
32009
32010
32011#
32012# Ghostscript related configuration.
32013#
32014if test "$have_png" = 'yes'; then
32015 GSAlphaDevice=pngalpha
32016else
32017 GSAlphaDevice=pnmraw
32018fi
32019GSColorDevice=pnmraw
32020GSCMYKDevice=pam
32021GSMonoDevice=pbmraw
32022GSPDFDevice=pdfwrite
32023GSPSDevice=pswrite
32024GSEPSDevice=epswrite
32025GSVersion='unknown'
32026if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032028$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000032030$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032032$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000032034$as_echo_n "checking for Ghostscript version... " >&6; }
32035 if GSVersion=`$PSDelegate --version`; then
32036 :
32037 else
32038 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32039 fi
cristy8b350f62009-11-15 23:12:43 +000032040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000032041$as_echo "$GSVersion" >&6; }
32042
32043 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000032044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032045$as_echo_n "checking for gs alpha device... " >&6; }
32046 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32047 :
32048 else
32049 GSAlphaDevice=pnmraw
32050 fi
cristy8b350f62009-11-15 23:12:43 +000032051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032052$as_echo "$GSAlphaDevice" >&6; }
32053
32054 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032056$as_echo_n "checking for gs color device... " >&6; }
32057 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32058 :
32059 else
32060 GSColorDevice=pnmraw
32061 fi
cristy8b350f62009-11-15 23:12:43 +000032062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032063$as_echo "$GSColorDevice" >&6; }
32064
32065 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032067$as_echo_n "checking for gs CMYK device... " >&6; }
32068 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32069 :
32070 else
32071 GSCMYKDevice=bmpsep8
32072 fi
cristy8b350f62009-11-15 23:12:43 +000032073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032074$as_echo "$GSCMYKDevice" >&6; }
32075
32076 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032078$as_echo_n "checking for gs mono device... " >&6; }
32079 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32080 :
32081 else
32082 GSMonoDevice=$GSColorDevice
32083 fi
cristy8b350f62009-11-15 23:12:43 +000032084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032085$as_echo "$GSMonoDevice" >&6; }
32086
32087 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000032088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032089$as_echo_n "checking for gs PDF writing device... " >&6; }
32090 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32091 :
32092 else
32093 GSPDFDevice=nodevice
32094 fi
cristy8b350f62009-11-15 23:12:43 +000032095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032096$as_echo "$GSPDFDevice" >&6; }
32097
32098 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000032099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032100$as_echo_n "checking for gs PS writing device... " >&6; }
32101 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32102 :
32103 else
32104 GSPSDevice=nodevice
32105 fi
cristy8b350f62009-11-15 23:12:43 +000032106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032107$as_echo "$GSPSDevice" >&6; }
32108
32109 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000032110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032111$as_echo_n "checking for gs EPS writing device... " >&6; }
32112 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32113 :
32114 else
32115 GSEPSDevice=nodevice
32116 fi
cristy8b350f62009-11-15 23:12:43 +000032117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032118$as_echo "$GSEPSDevice" >&6; }
32119fi
32120
32121
32122
32123
32124
32125
32126
32127
32128
32129
32130#
32131# PerlMagick-related configuration
32132#
32133
32134# Look for PERL if PerlMagick requested
32135# If name/path of desired PERL interpreter is specified, look for that one first
32136have_perl='no'
32137if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000032138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032139$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032141$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032143$as_echo "" >&6; }
32144 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032146$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032147if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032148 $as_echo_n "(cached) " >&6
32149else
32150 ac_cv_path_PERL="$with_perl"
32151fi
cristy8b350f62009-11-15 23:12:43 +000032152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032153$as_echo "$ac_cv_path_PERL" >&6; };
32154 PERL=$ac_cv_path_PERL
32155 have_perl="$ac_cv_path_PERL"
32156 else
32157 for ac_prog in perl perl5
32158do
32159 # Extract the first word of "$ac_prog", so it can be a program name with args.
32160set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032162$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032163if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032164 $as_echo_n "(cached) " >&6
32165else
32166 case $PERL in
32167 [\\/]* | ?:[\\/]*)
32168 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32169 ;;
32170 *)
32171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32172for as_dir in $PATH
32173do
32174 IFS=$as_save_IFS
32175 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032176 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32178 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032180 break 2
32181 fi
32182done
cristy8b350f62009-11-15 23:12:43 +000032183 done
cristy3ed852e2009-09-05 21:47:34 +000032184IFS=$as_save_IFS
32185
32186 ;;
32187esac
32188fi
32189PERL=$ac_cv_path_PERL
32190if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032192$as_echo "$PERL" >&6; }
32193else
cristy8b350f62009-11-15 23:12:43 +000032194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032195$as_echo "no" >&6; }
32196fi
32197
32198
32199 test -n "$PERL" && break
32200done
32201 if test "$ac_cv_path_PERL"; then
32202 have_perl="$ac_cv_path_PERL"
32203 fi
32204 fi
32205fi
32206
cristy949301e2010-01-06 01:38:40 +000032207if test "$with_perl" != 'yes' ; then
32208 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32209fi
32210
32211PERL_SUPPORTS_DESTDIR='no'
32212
cristy3ed852e2009-09-05 21:47:34 +000032213with_perl_static='no'
32214with_perl_dynamic='no'
32215if test "$have_perl" != 'no'; then
32216 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32217 with_perl_static='yes'
32218 fi
32219 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32220 with_perl_dynamic='yes'
32221 fi
32222 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy964cb7f2010-04-25 23:18:00 +000032223
32224
32225
32226
32227 if test -n "$PERL"; then :
32228
32229 ax_perl_version="5.8.1"
32230
32231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32232$as_echo_n "checking for perl version... " >&6; }
32233
32234 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32235
32236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32237$as_echo "$perl_version" >&6; }
32238
32239 PERL_VERSION=$perl_version
32240
32241
32242
32243
32244
32245 # Used to indicate true or false condition
32246 ax_compare_version=false
32247
32248 # Convert the two version strings to be compared into a format that
32249 # allows a simple string comparison. The end result is that a version
32250 # string of the form 1.12.5-r617 will be converted to the form
32251 # 0001001200050617. In other words, each number is zero padded to four
32252 # digits, and non digits are removed.
32253
32254 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32255 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32256 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32257 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32258 -e 's/[^0-9]//g'`
32259
32260
32261 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32262 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32263 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32264 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32265 -e 's/[^0-9]//g'`
32266
32267
32268 ax_compare_version=`echo "x$ax_compare_version_A
32269x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32270
32271
32272
32273 if test "$ax_compare_version" = "true" ; then
32274
32275 :
32276 PERL_SUPPORTS_DESTDIR='yes'
32277
32278 else
32279 :
32280 PERL_SUPPORTS_DESTDIR='no'
32281
cristy3ed852e2009-09-05 21:47:34 +000032282 fi
cristy3ed852e2009-09-05 21:47:34 +000032283
cristy964cb7f2010-04-25 23:18:00 +000032284
cristy3ed852e2009-09-05 21:47:34 +000032285else
cristy3ed852e2009-09-05 21:47:34 +000032286
cristy964cb7f2010-04-25 23:18:00 +000032287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32288$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32289 PERL_SUPPORTS_DESTDIR='no'
cristy3ed852e2009-09-05 21:47:34 +000032290
32291fi
32292
cristy3ed852e2009-09-05 21:47:34 +000032293fi
32294 if test "$have_perl" != 'no'; then
32295 WITH_PERL_TRUE=
32296 WITH_PERL_FALSE='#'
32297else
32298 WITH_PERL_TRUE='#'
32299 WITH_PERL_FALSE=
32300fi
32301
32302 if test $with_perl_static = 'yes'; then
32303 WITH_PERL_STATIC_TRUE=
32304 WITH_PERL_STATIC_FALSE='#'
32305else
32306 WITH_PERL_STATIC_TRUE='#'
32307 WITH_PERL_STATIC_FALSE=
32308fi
32309
32310 if test $with_perl_dynamic = 'yes'; then
32311 WITH_PERL_DYNAMIC_TRUE=
32312 WITH_PERL_DYNAMIC_FALSE='#'
32313else
32314 WITH_PERL_DYNAMIC_TRUE='#'
32315 WITH_PERL_DYNAMIC_FALSE=
32316fi
32317
32318
32319
32320# Determine path to pick up MagickCore library from for use with building PerlMagick
32321MAGICKCORE_PATH="${LIB_DIR}"
32322if test $with_perl_static = 'yes'; then
32323 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32324 libtool_objdir=$objdir
32325
32326 # Linker search path to library, followed by -lMagickCore
32327 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32328fi
32329
32330
32331# Create a simple string containing format names for all delegate libraries
32332DELEGATES=''
32333if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32334if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32335if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32336if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32337if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32338if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32339if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32340if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32341if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32342if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32343if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32344if test "$have_jpeg" = 'yes'; then
32345 DELEGATES="$DELEGATES jpeg";
32346 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32347fi
32348if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000032349if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000032350if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32351if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32352if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32353if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32354if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32355if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32356if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32357if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32358if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32359if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32360if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32361
32362
32363
32364#
32365# Handle special compiler flags
32366#
32367
32368# Add '-p' if prof source profiling support enabled
32369if test "$enable_prof" = 'yes'; then
32370 CFLAGS="-p $CFLAGS"
32371 CXXFLAGS="-p $CXXFLAGS"
32372 LDFLAGS="-p $LDFLAGS"
32373fi
32374
32375# Add '-pg' if gprof source profiling support enabled
32376if test "$enable_gprof" = 'yes'; then
32377 CFLAGS="-pg $CFLAGS"
32378 CXXFLAGS="-pg $CXXFLAGS"
32379 LDFLAGS="-pg $LDFLAGS"
32380fi
32381
32382# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32383# This is a gcc-specific feature
32384if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032386$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032387if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032388 $as_echo_n "(cached) " >&6
32389else
32390 ac_check_lib_save_LIBS=$LIBS
32391LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032393/* end confdefs.h. */
32394
32395/* Override any GCC internal prototype to avoid an error.
32396 Use char because int might match the return type of a GCC
32397 builtin and then its argument prototype would still apply. */
32398#ifdef __cplusplus
32399extern "C"
32400#endif
32401char _gcov_init ();
32402int
32403main ()
32404{
32405return _gcov_init ();
32406 ;
32407 return 0;
32408}
32409_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032410if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032411 ac_cv_lib_gcov__gcov_init=yes
32412else
cristy8b350f62009-11-15 23:12:43 +000032413 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032414fi
cristy8b350f62009-11-15 23:12:43 +000032415rm -f core conftest.err conftest.$ac_objext \
32416 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032417LIBS=$ac_check_lib_save_LIBS
32418fi
cristy8b350f62009-11-15 23:12:43 +000032419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032420$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032421if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032422 cat >>confdefs.h <<_ACEOF
32423#define HAVE_LIBGCOV 1
32424_ACEOF
32425
32426 LIBS="-lgcov $LIBS"
32427
32428fi
32429
cristy8b350f62009-11-15 23:12:43 +000032430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032431$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032432if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032433 $as_echo_n "(cached) " >&6
32434else
32435 ac_check_lib_save_LIBS=$LIBS
32436LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032438/* end confdefs.h. */
32439
32440/* Override any GCC internal prototype to avoid an error.
32441 Use char because int might match the return type of a GCC
32442 builtin and then its argument prototype would still apply. */
32443#ifdef __cplusplus
32444extern "C"
32445#endif
32446char __gcov_init ();
32447int
32448main ()
32449{
32450return __gcov_init ();
32451 ;
32452 return 0;
32453}
32454_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032455if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032456 ac_cv_lib_gcov___gcov_init=yes
32457else
cristy8b350f62009-11-15 23:12:43 +000032458 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032459fi
cristy8b350f62009-11-15 23:12:43 +000032460rm -f core conftest.err conftest.$ac_objext \
32461 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032462LIBS=$ac_check_lib_save_LIBS
32463fi
cristy8b350f62009-11-15 23:12:43 +000032464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032465$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032466if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032467 cat >>confdefs.h <<_ACEOF
32468#define HAVE_LIBGCOV 1
32469_ACEOF
32470
32471 LIBS="-lgcov $LIBS"
32472
32473fi
32474
32475 case "$target_os" in
32476 darwin*)
32477 OSX_GCOV_LDFLAG="-Wl,-single_module"
32478 ;;
32479 *)
32480 OSX_GCOV_LDFLAG=""
32481 ;;
32482 esac
32483
32484 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32485 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32486 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32487fi
32488
32489#
32490# Build library dependency list for libMagickCore
32491#
32492
32493MAGICK_LIBLTDL='' # Libltdl for build
32494MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32495MAGICK_LTDLDEPS='' # extra libltdl dependencies
32496if test "$with_ltdl" != 'no'
32497then
32498 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32499 MAGICK_API_LIBLTDL='-lltdl'
32500 fi
32501 MAGICK_LIBLTDL=${LIBLTDL}
32502 MAGICK_LTDLDEPS=${LTDLDEPS}
32503fi
32504
32505
32506
32507if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000032508 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 +000032509else
cristy2e8b51d2009-10-17 18:26:15 +000032510 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 +000032511fi
32512
32513
32514#
32515# Remove extraneous spaces from output variables (asthetic)
32516#
32517X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32518X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32519X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32520X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32521
32522CC=`echo $CC | sed -e 's/ */ /g'`
32523CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32524CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32525CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32526DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32527DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32528LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32529TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32530MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32531#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32532
32533# Pass only user-provided LIBS as "global" libraries
32534LIBS=$USER_LIBS
32535
32536#AC_SUBST(CPPFLAGS)
32537
32538#AC_SUBST(LDFLAGS)
32539#AC_SUBST(X_PRE_LIBS)
32540#AC_SUBST(X_LIBS)
32541#AC_SUBST(X_EXTRA_LIBS)
32542
32543MAGICK_CFLAGS=$CFLAGS
32544MAGICK_CXXFLAGS="$CXXFLAGS"
32545MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32546MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32547MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32548MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32549
32550
32551
32552
32553
32554
32555
32556
32557# Set configured scripts to executable.
32558ac_config_commands="$ac_config_commands default"
32559
32560ac_config_commands="$ac_config_commands MagickCore-config.in"
32561
32562ac_config_commands="$ac_config_commands Magick-config.in"
32563
32564ac_config_commands="$ac_config_commands MagickWand-config.in"
32565
32566ac_config_commands="$ac_config_commands Wand-config.in"
32567
32568ac_config_commands="$ac_config_commands Magick++-config.in"
32569
32570ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32571
32572
cristy8b350f62009-11-15 23:12:43 +000032573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032574$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000032576$as_echo "Update ImageMagick configuration" >&6; }
32577cat >confcache <<\_ACEOF
32578# This file is a shell script that caches the results of configure
32579# tests run on this system so they can be shared between configure
32580# scripts and configure runs, see configure's option --config-cache.
32581# It is not useful on other systems. If it contains results you don't
32582# want to keep, you may remove or edit it.
32583#
32584# config.status only pays attention to the cache file if you give it
32585# the --recheck option to rerun configure.
32586#
32587# `ac_cv_env_foo' variables (set or unset) will be overridden when
32588# loading this file, other *unset* `ac_cv_foo' will be assigned the
32589# following values.
32590
32591_ACEOF
32592
32593# The following way of writing the cache mishandles newlines in values,
32594# but we know of no workaround that is simple, portable, and efficient.
32595# So, we kill variables containing newlines.
32596# Ultrix sh set writes to stderr and can't be redirected directly,
32597# and sets the high bit in the cache file unless we assign to the vars.
32598(
32599 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32600 eval ac_val=\$$ac_var
32601 case $ac_val in #(
32602 *${as_nl}*)
32603 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000032604 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000032605$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32606 esac
32607 case $ac_var in #(
32608 _ | IFS | as_nl) ;; #(
32609 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000032610 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000032611 esac ;;
32612 esac
32613 done
32614
32615 (set) 2>&1 |
32616 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32617 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000032618 # `set' does not quote correctly, so add quotes: double-quote
32619 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000032620 sed -n \
32621 "s/'/'\\\\''/g;
32622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32623 ;; #(
32624 *)
32625 # `set' quotes correctly as required by POSIX, so do not add quotes.
32626 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32627 ;;
32628 esac |
32629 sort
32630) |
32631 sed '
32632 /^ac_cv_env_/b end
32633 t clear
32634 :clear
32635 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32636 t end
32637 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32638 :end' >>confcache
32639if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32640 if test -w "$cache_file"; then
32641 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000032642 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032643$as_echo "$as_me: updating cache $cache_file" >&6;}
32644 cat confcache >$cache_file
32645 else
cristy8b350f62009-11-15 23:12:43 +000032646 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032647$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32648 fi
32649fi
32650rm -f confcache
32651
32652test "x$prefix" = xNONE && prefix=$ac_default_prefix
32653# Let make expand exec_prefix.
32654test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32655
32656DEFS=-DHAVE_CONFIG_H
32657
32658ac_libobjs=
32659ac_ltlibobjs=
cristy0684af42010-07-09 00:00:05 +000032660U=
cristy3ed852e2009-09-05 21:47:34 +000032661for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32662 # 1. Remove the extension, and $U if already installed.
32663 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32664 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32665 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32666 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000032667 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32668 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000032669done
32670LIBOBJS=$ac_libobjs
32671
32672LTLIBOBJS=$ac_ltlibobjs
32673
32674
32675 if test -n "$EXEEXT"; then
32676 am__EXEEXT_TRUE=
32677 am__EXEEXT_FALSE='#'
32678else
32679 am__EXEEXT_TRUE='#'
32680 am__EXEEXT_FALSE=
32681fi
32682
32683if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032684 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032685Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032686fi
32687if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032688 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032689Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032690fi
cristya0b81c32010-01-22 02:54:33 +000032691if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032692 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristya0b81c32010-01-22 02:54:33 +000032693Usually this means the macro was only invoked conditionally." "$LINENO" 5
32694fi
cristy3ed852e2009-09-05 21:47:34 +000032695if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032696 as_fn_error $? "conditional \"am__fastdepCXX\" 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 "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032700 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032701Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032702fi
32703if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032704 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032705Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032706fi
32707if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032708 as_fn_error $? "conditional \"CYGWIN_BUILD\" 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 "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032712 as_fn_error $? "conditional \"USING_CL\" 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
cristy3ed852e2009-09-05 21:47:34 +000032715if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032716 as_fn_error $? "conditional \"INSTALL_LTDL\" 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 "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032720 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" 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
32723LT_CONFIG_H=config/config.h
32724
32725 _ltdl_libobjs=
32726 _ltdl_ltlibobjs=
32727 if test -n "$_LT_LIBOBJS"; then
32728 # Remove the extension.
32729 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32730 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32731 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32732 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32733 done
32734 fi
32735 ltdl_LIBOBJS=$_ltdl_libobjs
32736
32737 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32738
32739
cristyfa112112010-01-04 17:48:07 +000032740if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032741 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristyfa112112010-01-04 17:48:07 +000032742Usually this means the macro was only invoked conditionally." "$LINENO" 5
32743fi
cristy3ed852e2009-09-05 21:47:34 +000032744if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032745 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032746Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032747fi
32748if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032749 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032750Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032751fi
32752if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032753 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032754Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032755fi
32756
32757if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032758 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032759Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032760fi
32761if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032762 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032763Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032764fi
32765if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032766 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032767Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032768fi
32769if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032770 as_fn_error $? "conditional \"BZLIB_DELEGATE\" 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 "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032774 as_fn_error $? "conditional \"X11_DELEGATE\" 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 "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032778 as_fn_error $? "conditional \"ZLIB_DELEGATE\" 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 "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032782 as_fn_error $? "conditional \"AUTOTRACE_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 "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032786 as_fn_error $? "conditional \"DPS_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 "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032790 as_fn_error $? "conditional \"DJVU_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 "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032794 as_fn_error $? "conditional \"FFTW_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 "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032798 as_fn_error $? "conditional \"FPX_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 "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032802 as_fn_error $? "conditional \"FONTCONFIG_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 "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032806 as_fn_error $? "conditional \"FREETYPE_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 "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032810 as_fn_error $? "conditional \"GS_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 "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032814 as_fn_error $? "conditional \"GVC_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 "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032818 as_fn_error $? "conditional \"JBIG_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 "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032822 as_fn_error $? "conditional \"JPEG_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 "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032826 as_fn_error $? "conditional \"JP2_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 "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032830 as_fn_error $? "conditional \"LCMS_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 "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032834 as_fn_error $? "conditional \"LQR_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 "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032838 as_fn_error $? "conditional \"OPENEXR_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 "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032842 as_fn_error $? "conditional \"PNG_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 "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032846 as_fn_error $? "conditional \"RSVG_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 "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032850 as_fn_error $? "conditional \"CAIRO_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 "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032854 as_fn_error $? "conditional \"TIFF_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 "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032858 as_fn_error $? "conditional \"WMF_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 "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032862 as_fn_error $? "conditional \"XML_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 "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032866 as_fn_error $? "conditional \"RPM_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 "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032870 as_fn_error $? "conditional \"P7ZIP_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 "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032874 as_fn_error $? "conditional \"ZIP_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 "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032878 as_fn_error $? "conditional \"WITH_PERL\" 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 "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032882 as_fn_error $? "conditional \"WITH_PERL_STATIC\" 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 "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy0684af42010-07-09 00:00:05 +000032886 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" 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
32889
32890: ${CONFIG_STATUS=./config.status}
32891ac_write_fail=0
32892ac_clean_files_save=$ac_clean_files
32893ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000032894{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032895$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032896as_write_fail=0
32897cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032898#! $SHELL
32899# Generated by $as_me.
32900# Run this file to recreate the current configuration.
32901# Compiler output produced by configure, useful for debugging
32902# configure, is in config.log if it exists.
32903
32904debug=false
32905ac_cs_recheck=false
32906ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000032907
cristy8b350f62009-11-15 23:12:43 +000032908SHELL=\${CONFIG_SHELL-$SHELL}
32909export SHELL
32910_ASEOF
32911cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32912## -------------------- ##
32913## M4sh Initialization. ##
32914## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000032915
32916# Be more Bourne compatible
32917DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000032918if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000032919 emulate sh
32920 NULLCMD=:
32921 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32922 # is contrary to our usage. Disable this feature.
32923 alias -g '${1+"$@"}'='"$@"'
32924 setopt NO_GLOB_SUBST
32925else
cristy8b350f62009-11-15 23:12:43 +000032926 case `(set -o) 2>/dev/null` in #(
32927 *posix*) :
32928 set -o posix ;; #(
32929 *) :
32930 ;;
cristy3ed852e2009-09-05 21:47:34 +000032931esac
cristy3ed852e2009-09-05 21:47:34 +000032932fi
32933
32934
cristy3ed852e2009-09-05 21:47:34 +000032935as_nl='
32936'
32937export as_nl
32938# Printing a long string crashes Solaris 7 /usr/bin/printf.
32939as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32940as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32941as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000032942# Prefer a ksh shell builtin over an external printf program on Solaris,
32943# but without wasting forks for bash or zsh.
32944if test -z "$BASH_VERSION$ZSH_VERSION" \
32945 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32946 as_echo='print -r --'
32947 as_echo_n='print -rn --'
32948elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000032949 as_echo='printf %s\n'
32950 as_echo_n='printf %s'
32951else
32952 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32953 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32954 as_echo_n='/usr/ucb/echo -n'
32955 else
32956 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32957 as_echo_n_body='eval
32958 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000032959 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000032960 *"$as_nl"*)
32961 expr "X$arg" : "X\\(.*\\)$as_nl";
32962 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32963 esac;
32964 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32965 '
32966 export as_echo_n_body
32967 as_echo_n='sh -c $as_echo_n_body as_echo'
32968 fi
32969 export as_echo_body
32970 as_echo='sh -c $as_echo_body as_echo'
32971fi
32972
32973# The user is always right.
32974if test "${PATH_SEPARATOR+set}" != set; then
32975 PATH_SEPARATOR=:
32976 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32977 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32978 PATH_SEPARATOR=';'
32979 }
32980fi
32981
cristy3ed852e2009-09-05 21:47:34 +000032982
32983# IFS
32984# We need space, tab and new line, in precisely that order. Quoting is
32985# there to prevent editors from complaining about space-tab.
32986# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32987# splitting by setting IFS to empty value.)
32988IFS=" "" $as_nl"
32989
32990# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000032991case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000032992 *[\\/]* ) as_myself=$0 ;;
32993 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32994for as_dir in $PATH
32995do
32996 IFS=$as_save_IFS
32997 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032998 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32999 done
cristy3ed852e2009-09-05 21:47:34 +000033000IFS=$as_save_IFS
33001
33002 ;;
33003esac
33004# We did not find ourselves, most probably we were run as `sh COMMAND'
33005# in which case we are not to be found in the path.
33006if test "x$as_myself" = x; then
33007 as_myself=$0
33008fi
33009if test ! -f "$as_myself"; then
33010 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000033011 exit 1
cristy3ed852e2009-09-05 21:47:34 +000033012fi
33013
cristy8b350f62009-11-15 23:12:43 +000033014# Unset variables that we do not need and which cause bugs (e.g. in
33015# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33016# suppresses any "Segmentation fault" message there. '((' could
33017# trigger a bug in pdksh 5.2.14.
33018for as_var in BASH_ENV ENV MAIL MAILPATH
33019do eval test x\${$as_var+set} = xset \
33020 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000033021done
33022PS1='$ '
33023PS2='> '
33024PS4='+ '
33025
33026# NLS nuisances.
33027LC_ALL=C
33028export LC_ALL
33029LANGUAGE=C
33030export LANGUAGE
33031
cristy8b350f62009-11-15 23:12:43 +000033032# CDPATH.
33033(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33034
33035
cristy0684af42010-07-09 00:00:05 +000033036# as_fn_error STATUS ERROR [LINENO LOG_FD]
33037# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000033038# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33039# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy0684af42010-07-09 00:00:05 +000033040# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000033041as_fn_error ()
33042{
cristy0684af42010-07-09 00:00:05 +000033043 as_status=$1; test $as_status -eq 0 && as_status=1
33044 if test "$4"; then
33045 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33046 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000033047 fi
cristy0684af42010-07-09 00:00:05 +000033048 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000033049 as_fn_exit $as_status
33050} # as_fn_error
33051
33052
33053# as_fn_set_status STATUS
33054# -----------------------
33055# Set $? to STATUS, without forking.
33056as_fn_set_status ()
33057{
33058 return $1
33059} # as_fn_set_status
33060
33061# as_fn_exit STATUS
33062# -----------------
33063# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33064as_fn_exit ()
33065{
33066 set +e
33067 as_fn_set_status $1
33068 exit $1
33069} # as_fn_exit
33070
33071# as_fn_unset VAR
33072# ---------------
33073# Portably unset VAR.
33074as_fn_unset ()
33075{
33076 { eval $1=; unset $1;}
33077}
33078as_unset=as_fn_unset
33079# as_fn_append VAR VALUE
33080# ----------------------
33081# Append the text in VALUE to the end of the definition contained in VAR. Take
33082# advantage of any shell optimizations that allow amortized linear growth over
33083# repeated appends, instead of the typical quadratic growth present in naive
33084# implementations.
33085if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33086 eval 'as_fn_append ()
33087 {
33088 eval $1+=\$2
33089 }'
33090else
33091 as_fn_append ()
33092 {
33093 eval $1=\$$1\$2
33094 }
33095fi # as_fn_append
33096
33097# as_fn_arith ARG...
33098# ------------------
33099# Perform arithmetic evaluation on the ARGs, and store the result in the
33100# global $as_val. Take advantage of shells that can avoid forks. The arguments
33101# must be portable across $(()) and expr.
33102if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33103 eval 'as_fn_arith ()
33104 {
33105 as_val=$(( $* ))
33106 }'
33107else
33108 as_fn_arith ()
33109 {
33110 as_val=`expr "$@" || test $? -eq 1`
33111 }
33112fi # as_fn_arith
33113
33114
cristy3ed852e2009-09-05 21:47:34 +000033115if expr a : '\(a\)' >/dev/null 2>&1 &&
33116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33117 as_expr=expr
33118else
33119 as_expr=false
33120fi
33121
33122if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33123 as_basename=basename
33124else
33125 as_basename=false
33126fi
33127
cristy8b350f62009-11-15 23:12:43 +000033128if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33129 as_dirname=dirname
33130else
33131 as_dirname=false
33132fi
cristy3ed852e2009-09-05 21:47:34 +000033133
cristy3ed852e2009-09-05 21:47:34 +000033134as_me=`$as_basename -- "$0" ||
33135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33136 X"$0" : 'X\(//\)$' \| \
33137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33138$as_echo X/"$0" |
33139 sed '/^.*\/\([^/][^/]*\)\/*$/{
33140 s//\1/
33141 q
33142 }
33143 /^X\/\(\/\/\)$/{
33144 s//\1/
33145 q
33146 }
33147 /^X\/\(\/\).*/{
33148 s//\1/
33149 q
33150 }
33151 s/.*/./; q'`
33152
cristy8b350f62009-11-15 23:12:43 +000033153# Avoid depending upon Character Ranges.
33154as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33155as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33156as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33157as_cr_digits='0123456789'
33158as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000033159
33160ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000033161case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000033162-n*)
cristy8b350f62009-11-15 23:12:43 +000033163 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000033164 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000033165 xy) ECHO_C='\c';;
33166 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33167 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000033168 esac;;
33169*)
33170 ECHO_N='-n';;
33171esac
cristy3ed852e2009-09-05 21:47:34 +000033172
33173rm -f conf$$ conf$$.exe conf$$.file
33174if test -d conf$$.dir; then
33175 rm -f conf$$.dir/conf$$.file
33176else
33177 rm -f conf$$.dir
33178 mkdir conf$$.dir 2>/dev/null
33179fi
33180if (echo >conf$$.file) 2>/dev/null; then
33181 if ln -s conf$$.file conf$$ 2>/dev/null; then
33182 as_ln_s='ln -s'
33183 # ... but there are two gotchas:
33184 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33185 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33186 # In both cases, we have to default to `cp -p'.
33187 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33188 as_ln_s='cp -p'
33189 elif ln conf$$.file conf$$ 2>/dev/null; then
33190 as_ln_s=ln
33191 else
33192 as_ln_s='cp -p'
33193 fi
33194else
33195 as_ln_s='cp -p'
33196fi
33197rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33198rmdir conf$$.dir 2>/dev/null
33199
cristy8b350f62009-11-15 23:12:43 +000033200
33201# as_fn_mkdir_p
33202# -------------
33203# Create "$as_dir" as a directory, including parents if necessary.
33204as_fn_mkdir_p ()
33205{
33206
33207 case $as_dir in #(
33208 -*) as_dir=./$as_dir;;
33209 esac
33210 test -d "$as_dir" || eval $as_mkdir_p || {
33211 as_dirs=
33212 while :; do
33213 case $as_dir in #(
33214 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33215 *) as_qdir=$as_dir;;
33216 esac
33217 as_dirs="'$as_qdir' $as_dirs"
33218 as_dir=`$as_dirname -- "$as_dir" ||
33219$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33220 X"$as_dir" : 'X\(//\)[^/]' \| \
33221 X"$as_dir" : 'X\(//\)$' \| \
33222 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33223$as_echo X"$as_dir" |
33224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33225 s//\1/
33226 q
33227 }
33228 /^X\(\/\/\)[^/].*/{
33229 s//\1/
33230 q
33231 }
33232 /^X\(\/\/\)$/{
33233 s//\1/
33234 q
33235 }
33236 /^X\(\/\).*/{
33237 s//\1/
33238 q
33239 }
33240 s/.*/./; q'`
33241 test -d "$as_dir" && break
33242 done
33243 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy0684af42010-07-09 00:00:05 +000033244 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000033245
33246
33247} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033248if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000033249 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000033250else
33251 test -d ./-p && rmdir ./-p
33252 as_mkdir_p=false
33253fi
33254
33255if test -x / >/dev/null 2>&1; then
33256 as_test_x='test -x'
33257else
33258 if ls -dL / >/dev/null 2>&1; then
33259 as_ls_L_option=L
33260 else
33261 as_ls_L_option=
33262 fi
33263 as_test_x='
33264 eval sh -c '\''
33265 if test -d "$1"; then
33266 test -d "$1/.";
33267 else
cristy8b350f62009-11-15 23:12:43 +000033268 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000033269 -*)set "./$1";;
33270 esac;
cristy8b350f62009-11-15 23:12:43 +000033271 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000033272 ???[sx]*):;;*)false;;esac;fi
33273 '\'' sh
33274 '
33275fi
33276as_executable_p=$as_test_x
33277
33278# Sed expression to map a string onto a valid CPP name.
33279as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33280
33281# Sed expression to map a string onto a valid variable name.
33282as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33283
33284
33285exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000033286## ----------------------------------- ##
33287## Main body of $CONFIG_STATUS script. ##
33288## ----------------------------------- ##
33289_ASEOF
33290test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033291
cristy8b350f62009-11-15 23:12:43 +000033292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33293# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000033294# report actual input values of CONFIG_FILES etc. instead of their
33295# values after options handling.
33296ac_log="
cristyfbb4a972010-06-30 17:42:22 +000033297This file was extended by ImageMagick $as_me 6.6.3, which was
cristy0684af42010-07-09 00:00:05 +000033298generated by GNU Autoconf 2.66. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000033299
33300 CONFIG_FILES = $CONFIG_FILES
33301 CONFIG_HEADERS = $CONFIG_HEADERS
33302 CONFIG_LINKS = $CONFIG_LINKS
33303 CONFIG_COMMANDS = $CONFIG_COMMANDS
33304 $ $0 $@
33305
33306on `(hostname || uname -n) 2>/dev/null | sed 1q`
33307"
33308
33309_ACEOF
33310
33311case $ac_config_files in *"
33312"*) set x $ac_config_files; shift; ac_config_files=$*;;
33313esac
33314
33315case $ac_config_headers in *"
33316"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33317esac
33318
33319
33320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33321# Files that config.status was made for.
33322config_files="$ac_config_files"
33323config_headers="$ac_config_headers"
33324config_commands="$ac_config_commands"
33325
33326_ACEOF
33327
33328cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33329ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000033330\`$as_me' instantiates files and other configuration actions
33331from templates according to the current configuration. Unless the files
33332and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000033333
cristy8b350f62009-11-15 23:12:43 +000033334Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000033335
33336 -h, --help print this help, then exit
33337 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000033338 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000033339 -q, --quiet, --silent
33340 do not print progress messages
33341 -d, --debug don't remove temporary files
33342 --recheck update $as_me by reconfiguring in the same conditions
33343 --file=FILE[:TEMPLATE]
33344 instantiate the configuration file FILE
33345 --header=FILE[:TEMPLATE]
33346 instantiate the configuration header FILE
33347
33348Configuration files:
33349$config_files
33350
33351Configuration headers:
33352$config_headers
33353
33354Configuration commands:
33355$config_commands
33356
cristy8b350f62009-11-15 23:12:43 +000033357Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000033358
33359_ACEOF
33360cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000033361ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000033362ac_cs_version="\\
cristyfbb4a972010-06-30 17:42:22 +000033363ImageMagick config.status 6.6.3
cristy0684af42010-07-09 00:00:05 +000033364configured by $0, generated by GNU Autoconf 2.66,
cristycd4c5312009-11-22 01:19:08 +000033365 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000033366
cristy0684af42010-07-09 00:00:05 +000033367Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033368This config.status script is free software; the Free Software Foundation
33369gives unlimited permission to copy, distribute and modify it."
33370
33371ac_pwd='$ac_pwd'
33372srcdir='$srcdir'
33373INSTALL='$INSTALL'
33374MKDIR_P='$MKDIR_P'
33375AWK='$AWK'
33376test -n "\$AWK" || AWK=awk
33377_ACEOF
33378
33379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33380# The default lists apply if the user does not specify any file.
33381ac_need_defaults=:
33382while test $# != 0
33383do
33384 case $1 in
33385 --*=*)
33386 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33387 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33388 ac_shift=:
33389 ;;
33390 *)
33391 ac_option=$1
33392 ac_optarg=$2
33393 ac_shift=shift
33394 ;;
33395 esac
33396
33397 case $ac_option in
33398 # Handling of the options.
33399 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33400 ac_cs_recheck=: ;;
33401 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33402 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000033403 --config | --confi | --conf | --con | --co | --c )
33404 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000033405 --debug | --debu | --deb | --de | --d | -d )
33406 debug=: ;;
33407 --file | --fil | --fi | --f )
33408 $ac_shift
33409 case $ac_optarg in
33410 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33411 esac
cristy8b350f62009-11-15 23:12:43 +000033412 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033413 ac_need_defaults=false;;
33414 --header | --heade | --head | --hea )
33415 $ac_shift
33416 case $ac_optarg in
33417 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33418 esac
cristy8b350f62009-11-15 23:12:43 +000033419 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033420 ac_need_defaults=false;;
33421 --he | --h)
33422 # Conflict between --help and --header
cristy0684af42010-07-09 00:00:05 +000033423 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033424Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000033425 --help | --hel | -h )
33426 $as_echo "$ac_cs_usage"; exit ;;
33427 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33428 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33429 ac_cs_silent=: ;;
33430
33431 # This is an error.
cristy0684af42010-07-09 00:00:05 +000033432 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033433Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000033434
cristy8b350f62009-11-15 23:12:43 +000033435 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000033436 ac_need_defaults=false ;;
33437
33438 esac
33439 shift
33440done
33441
33442ac_configure_extra_args=
33443
33444if $ac_cs_silent; then
33445 exec 6>/dev/null
33446 ac_configure_extra_args="$ac_configure_extra_args --silent"
33447fi
33448
33449_ACEOF
33450cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33451if \$ac_cs_recheck; then
33452 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33453 shift
33454 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33455 CONFIG_SHELL='$SHELL'
33456 export CONFIG_SHELL
33457 exec "\$@"
33458fi
33459
33460_ACEOF
33461cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33462exec 5>>config.log
33463{
33464 echo
33465 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33466## Running $as_me. ##
33467_ASBOX
33468 $as_echo "$ac_log"
33469} >&5
33470
33471_ACEOF
33472cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33473#
33474# INIT-COMMANDS
33475#
33476PACKAGE="$PACKAGE"
33477AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33478
33479
33480# The HP-UX ksh and POSIX shell print the target directory to stdout
33481# if CDPATH is set.
33482(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33483
33484sed_quote_subst='$sed_quote_subst'
33485double_quote_subst='$double_quote_subst'
33486delay_variable_subst='$delay_variable_subst'
cristy232a9ab2010-06-26 01:02:54 +000033487SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33488Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33489GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
33490EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
33491FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
33492SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33493ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33494LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
33495macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33496macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33497AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
33498DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33499OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33500enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33501enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33502pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33503enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33504host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33505host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33506host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33507build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33508build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33509build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33510NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
33511LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
33512max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
33513ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
33514exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33515lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33516lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33517lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33518reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33519reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33520deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33521file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33522AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33523AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33524STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33525RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33526old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33527old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33528old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
33529lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
33530CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
33531CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
33532compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
33533GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
33534lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
33535lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
33536lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
33537lt_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"`'
33538objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
33539MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
33540lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
33541lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33542lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
33543lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
33544lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
33545need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
33546DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
33547NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
33548LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
33549OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
33550OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
33551libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
33552shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
33553extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33554archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
33555enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
33556export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
33557whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
33558compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
33559old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
33560old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33561archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
33562archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33563module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
33564module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33565with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
33566allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
33567no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
33568hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
33569hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
33570hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
33571hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
33572hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
33573hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
33574hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
33575hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
33576inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
33577link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
33578fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
33579always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
33580export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
33581exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
33582include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
33583prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
33584file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
33585variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
33586need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
33587need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
33588version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
33589runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
33590shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
33591shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
33592libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
33593library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
33594soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
33595install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
33596postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33597postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33598finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
33599finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
33600hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
33601sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
33602sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
33603hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
33604enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
33605enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
33606enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
33607old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
33608striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
33609compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
33610predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
33611postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
33612predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
33613postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
33614compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
33615LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
33616reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
33617reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33618old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33619compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
33620GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
33621lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
33622lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
33623lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
33624lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
33625lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
33626archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
33627enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
33628export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33629whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33630compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
33631old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33632old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33633archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33634archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33635module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33636module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33637with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
33638allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33639no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33640hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33641hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
33642hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
33643hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
33644hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
33645hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
33646hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
33647hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
33648inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
33649link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
33650fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
33651always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
33652export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33653exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33654include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33655prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33656file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
33657hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
33658compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
33659predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33660postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33661predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
33662postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
33663compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000033664
33665LTCC='$LTCC'
33666LTCFLAGS='$LTCFLAGS'
33667compiler='$compiler_DEFAULT'
33668
cristy232a9ab2010-06-26 01:02:54 +000033669# A function that is used when there is no print builtin or printf.
33670func_fallback_echo ()
33671{
33672 eval 'cat <<_LTECHO_EOF
33673\$1
33674_LTECHO_EOF'
33675}
33676
cristy3ed852e2009-09-05 21:47:34 +000033677# Quote evaled strings.
33678for var in SED \
33679GREP \
33680EGREP \
33681FGREP \
cristy232a9ab2010-06-26 01:02:54 +000033682SHELL \
33683ECHO \
cristy3ed852e2009-09-05 21:47:34 +000033684LD \
cristy232a9ab2010-06-26 01:02:54 +000033685AS \
33686DLLTOOL \
33687OBJDUMP \
cristy3ed852e2009-09-05 21:47:34 +000033688NM \
33689LN_S \
33690lt_SP2NL \
33691lt_NL2SP \
33692reload_flag \
33693deplibs_check_method \
33694file_magic_cmd \
33695AR \
33696AR_FLAGS \
33697STRIP \
33698RANLIB \
33699CC \
33700CFLAGS \
33701compiler \
33702lt_cv_sys_global_symbol_pipe \
33703lt_cv_sys_global_symbol_to_cdecl \
33704lt_cv_sys_global_symbol_to_c_name_address \
33705lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy3ed852e2009-09-05 21:47:34 +000033706lt_prog_compiler_no_builtin_flag \
33707lt_prog_compiler_wl \
33708lt_prog_compiler_pic \
33709lt_prog_compiler_static \
33710lt_cv_prog_compiler_c_o \
33711need_locks \
33712DSYMUTIL \
33713NMEDIT \
33714LIPO \
33715OTOOL \
33716OTOOL64 \
33717shrext_cmds \
33718export_dynamic_flag_spec \
33719whole_archive_flag_spec \
33720compiler_needs_object \
33721with_gnu_ld \
33722allow_undefined_flag \
33723no_undefined_flag \
33724hardcode_libdir_flag_spec \
33725hardcode_libdir_flag_spec_ld \
33726hardcode_libdir_separator \
33727fix_srcfile_path \
33728exclude_expsyms \
33729include_expsyms \
33730file_list_spec \
33731variables_saved_for_relink \
33732libname_spec \
33733library_names_spec \
33734soname_spec \
cristy232a9ab2010-06-26 01:02:54 +000033735install_override_mode \
cristy3ed852e2009-09-05 21:47:34 +000033736finish_eval \
33737old_striplib \
33738striplib \
33739compiler_lib_search_dirs \
33740predep_objects \
33741postdep_objects \
33742predeps \
33743postdeps \
33744compiler_lib_search_path \
33745LD_CXX \
cristy232a9ab2010-06-26 01:02:54 +000033746reload_flag_CXX \
cristy3ed852e2009-09-05 21:47:34 +000033747compiler_CXX \
33748lt_prog_compiler_no_builtin_flag_CXX \
33749lt_prog_compiler_wl_CXX \
33750lt_prog_compiler_pic_CXX \
33751lt_prog_compiler_static_CXX \
33752lt_cv_prog_compiler_c_o_CXX \
33753export_dynamic_flag_spec_CXX \
33754whole_archive_flag_spec_CXX \
33755compiler_needs_object_CXX \
33756with_gnu_ld_CXX \
33757allow_undefined_flag_CXX \
33758no_undefined_flag_CXX \
33759hardcode_libdir_flag_spec_CXX \
33760hardcode_libdir_flag_spec_ld_CXX \
33761hardcode_libdir_separator_CXX \
33762fix_srcfile_path_CXX \
33763exclude_expsyms_CXX \
33764include_expsyms_CXX \
33765file_list_spec_CXX \
33766compiler_lib_search_dirs_CXX \
33767predep_objects_CXX \
33768postdep_objects_CXX \
33769predeps_CXX \
33770postdeps_CXX \
33771compiler_lib_search_path_CXX; do
cristy232a9ab2010-06-26 01:02:54 +000033772 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy3ed852e2009-09-05 21:47:34 +000033773 *[\\\\\\\`\\"\\\$]*)
cristy232a9ab2010-06-26 01:02:54 +000033774 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033775 ;;
33776 *)
33777 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33778 ;;
33779 esac
33780done
33781
33782# Double-quote double-evaled strings.
33783for var in reload_cmds \
33784old_postinstall_cmds \
33785old_postuninstall_cmds \
33786old_archive_cmds \
33787extract_expsyms_cmds \
33788old_archive_from_new_cmds \
33789old_archive_from_expsyms_cmds \
33790archive_cmds \
33791archive_expsym_cmds \
33792module_cmds \
33793module_expsym_cmds \
33794export_symbols_cmds \
33795prelink_cmds \
33796postinstall_cmds \
33797postuninstall_cmds \
33798finish_cmds \
33799sys_lib_search_path_spec \
33800sys_lib_dlsearch_path_spec \
cristy232a9ab2010-06-26 01:02:54 +000033801reload_cmds_CXX \
cristy3ed852e2009-09-05 21:47:34 +000033802old_archive_cmds_CXX \
33803old_archive_from_new_cmds_CXX \
33804old_archive_from_expsyms_cmds_CXX \
33805archive_cmds_CXX \
33806archive_expsym_cmds_CXX \
33807module_cmds_CXX \
33808module_expsym_cmds_CXX \
33809export_symbols_cmds_CXX \
33810prelink_cmds_CXX; do
cristy232a9ab2010-06-26 01:02:54 +000033811 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy3ed852e2009-09-05 21:47:34 +000033812 *[\\\\\\\`\\"\\\$]*)
cristy232a9ab2010-06-26 01:02:54 +000033813 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033814 ;;
33815 *)
33816 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33817 ;;
33818 esac
33819done
33820
cristy3ed852e2009-09-05 21:47:34 +000033821ac_aux_dir='$ac_aux_dir'
33822xsi_shell='$xsi_shell'
33823lt_shell_append='$lt_shell_append'
33824
33825# See if we are running on zsh, and set the options which allow our
33826# commands through without removal of \ escapes INIT.
33827if test -n "\${ZSH_VERSION+set}" ; then
33828 setopt NO_GLOB_SUBST
33829fi
33830
33831
33832 PACKAGE='$PACKAGE'
33833 VERSION='$VERSION'
33834 TIMESTAMP='$TIMESTAMP'
33835 RM='$RM'
33836 ofile='$ofile'
33837
33838
33839
33840
33841
33842
33843_ACEOF
33844
33845cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33846
33847# Handling of arguments.
33848for ac_config_target in $ac_config_targets
33849do
33850 case $ac_config_target in
33851 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33852 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33853 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33854 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33855 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33856 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33857 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000033858 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000033859 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33860 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33861 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33862 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33863 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33864 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33865 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33866 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33867 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33868 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33869 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33870 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33871 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33872 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33873 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33874 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33875 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33876 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33877 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33878 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33879 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33880 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33881 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33882 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33883 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33884 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33885 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33886 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33887 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33888 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33889 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33890 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33891 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
33892 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33893 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33894 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33895 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33896 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33897 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33898 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33899 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33900 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33901
cristy0684af42010-07-09 00:00:05 +000033902 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033903 esac
33904done
33905
33906
33907# If the user did not use the arguments to specify the items to instantiate,
33908# then the envvar interface is used. Set only those that are not.
33909# We use the long form for the default assignment because of an extremely
33910# bizarre bug on SunOS 4.1.3.
33911if $ac_need_defaults; then
33912 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33913 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33914 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33915fi
33916
33917# Have a temporary directory for convenience. Make it in the build tree
33918# simply because there is no reason against having it here, and in addition,
33919# creating and moving files from /tmp can sometimes cause problems.
33920# Hook for its removal unless debugging.
33921# Note that there is a small window in which the directory will not be cleaned:
33922# after its creation but before its name has been assigned to `$tmp'.
33923$debug ||
33924{
33925 tmp=
33926 trap 'exit_status=$?
33927 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33928' 0
cristy8b350f62009-11-15 23:12:43 +000033929 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000033930}
33931# Create a (secure) tmp directory for tmp files.
33932
33933{
33934 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33935 test -n "$tmp" && test -d "$tmp"
33936} ||
33937{
33938 tmp=./conf$$-$RANDOM
33939 (umask 077 && mkdir "$tmp")
cristy0684af42010-07-09 00:00:05 +000033940} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033941
33942# Set up the scripts for CONFIG_FILES section.
33943# No need to generate them if there are no CONFIG_FILES.
33944# This happens for instance with `./config.status config.h'.
33945if test -n "$CONFIG_FILES"; then
33946
33947
cristy8b350f62009-11-15 23:12:43 +000033948ac_cr=`echo X | tr X '\015'`
33949# On cygwin, bash can eat \r inside `` if the user requested igncr.
33950# But we know of no other shell where ac_cr would be empty at this
33951# point, so we can use a bashism as a fallback.
33952if test "x$ac_cr" = x; then
33953 eval ac_cr=\$\'\\r\'
33954fi
cristy3ed852e2009-09-05 21:47:34 +000033955ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33956if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy0684af42010-07-09 00:00:05 +000033957 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000033958else
33959 ac_cs_awk_cr=$ac_cr
33960fi
33961
33962echo 'BEGIN {' >"$tmp/subs1.awk" &&
33963_ACEOF
33964
33965
33966{
33967 echo "cat >conf$$subs.awk <<_ACEOF" &&
33968 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33969 echo "_ACEOF"
33970} >conf$$subs.sh ||
cristy0684af42010-07-09 00:00:05 +000033971 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33972ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000033973ac_delim='%!_!# '
33974for ac_last_try in false false false false false :; do
33975 . ./conf$$subs.sh ||
cristy0684af42010-07-09 00:00:05 +000033976 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033977
33978 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33979 if test $ac_delim_n = $ac_delim_num; then
33980 break
33981 elif $ac_last_try; then
cristy0684af42010-07-09 00:00:05 +000033982 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033983 else
33984 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33985 fi
33986done
33987rm -f conf$$subs.sh
33988
33989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33990cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
33991_ACEOF
33992sed -n '
33993h
33994s/^/S["/; s/!.*/"]=/
33995p
33996g
33997s/^[^!]*!//
33998:repl
33999t repl
34000s/'"$ac_delim"'$//
34001t delim
34002:nl
34003h
cristycd4c5312009-11-22 01:19:08 +000034004s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034005t more1
34006s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34007p
34008n
34009b repl
34010:more1
34011s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34012p
34013g
34014s/.\{148\}//
34015t nl
34016:delim
34017h
cristycd4c5312009-11-22 01:19:08 +000034018s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034019t more2
34020s/["\\]/\\&/g; s/^/"/; s/$/"/
34021p
34022b
34023:more2
34024s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34025p
34026g
34027s/.\{148\}//
34028t delim
34029' <conf$$subs.awk | sed '
34030/^[^""]/{
34031 N
34032 s/\n//
34033}
34034' >>$CONFIG_STATUS || ac_write_fail=1
34035rm -f conf$$subs.awk
34036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34037_ACAWK
34038cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34039 for (key in S) S_is_set[key] = 1
34040 FS = ""
34041
34042}
34043{
34044 line = $ 0
34045 nfields = split(line, field, "@")
34046 substed = 0
34047 len = length(field[1])
34048 for (i = 2; i < nfields; i++) {
34049 key = field[i]
34050 keylen = length(key)
34051 if (S_is_set[key]) {
34052 value = S[key]
34053 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34054 len += length(value) + length(field[++i])
34055 substed = 1
34056 } else
34057 len += 1 + keylen
34058 }
34059
34060 print line
34061}
34062
34063_ACAWK
34064_ACEOF
34065cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34066if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34067 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34068else
34069 cat
34070fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy0684af42010-07-09 00:00:05 +000034071 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034072_ACEOF
34073
cristy0684af42010-07-09 00:00:05 +000034074# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34075# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000034076# trailing colons and then remove the whole line if VPATH becomes empty
34077# (actually we leave an empty line to preserve line numbers).
34078if test "x$srcdir" = x.; then
cristy0684af42010-07-09 00:00:05 +000034079 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
34080h
34081s///
34082s/^/:/
34083s/[ ]*$/:/
34084s/:\$(srcdir):/:/g
34085s/:\${srcdir}:/:/g
34086s/:@srcdir@:/:/g
34087s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000034088s/:*$//
cristy0684af42010-07-09 00:00:05 +000034089x
34090s/\(=[ ]*\).*/\1/
34091G
34092s/\n//
cristy3ed852e2009-09-05 21:47:34 +000034093s/^[^=]*=[ ]*$//
34094}'
34095fi
34096
34097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34098fi # test -n "$CONFIG_FILES"
34099
34100# Set up the scripts for CONFIG_HEADERS section.
34101# No need to generate them if there are no CONFIG_HEADERS.
34102# This happens for instance with `./config.status Makefile'.
34103if test -n "$CONFIG_HEADERS"; then
34104cat >"$tmp/defines.awk" <<\_ACAWK ||
34105BEGIN {
34106_ACEOF
34107
34108# Transform confdefs.h into an awk script `defines.awk', embedded as
34109# here-document in config.status, that substitutes the proper values into
34110# config.h.in to produce config.h.
34111
34112# Create a delimiter string that does not exist in confdefs.h, to ease
34113# handling of long lines.
34114ac_delim='%!_!# '
34115for ac_last_try in false false :; do
34116 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34117 if test -z "$ac_t"; then
34118 break
34119 elif $ac_last_try; then
cristy0684af42010-07-09 00:00:05 +000034120 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034121 else
34122 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34123 fi
34124done
34125
34126# For the awk script, D is an array of macro values keyed by name,
34127# likewise P contains macro parameters if any. Preserve backslash
34128# newline sequences.
34129
34130ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34131sed -n '
34132s/.\{148\}/&'"$ac_delim"'/g
34133t rset
34134:rset
34135s/^[ ]*#[ ]*define[ ][ ]*/ /
34136t def
34137d
34138:def
34139s/\\$//
34140t bsnl
34141s/["\\]/\\&/g
34142s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34143D["\1"]=" \3"/p
34144s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34145d
34146:bsnl
34147s/["\\]/\\&/g
34148s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34149D["\1"]=" \3\\\\\\n"\\/p
34150t cont
34151s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34152t cont
34153d
34154:cont
34155n
34156s/.\{148\}/&'"$ac_delim"'/g
34157t clear
34158:clear
34159s/\\$//
34160t bsnlc
34161s/["\\]/\\&/g; s/^/"/; s/$/"/p
34162d
34163:bsnlc
34164s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34165b cont
34166' <confdefs.h | sed '
34167s/'"$ac_delim"'/"\\\
34168"/g' >>$CONFIG_STATUS || ac_write_fail=1
34169
34170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34171 for (key in D) D_is_set[key] = 1
34172 FS = ""
34173}
34174/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34175 line = \$ 0
34176 split(line, arg, " ")
34177 if (arg[1] == "#") {
34178 defundef = arg[2]
34179 mac1 = arg[3]
34180 } else {
34181 defundef = substr(arg[1], 2)
34182 mac1 = arg[2]
34183 }
34184 split(mac1, mac2, "(") #)
34185 macro = mac2[1]
34186 prefix = substr(line, 1, index(line, defundef) - 1)
34187 if (D_is_set[macro]) {
34188 # Preserve the white space surrounding the "#".
34189 print prefix "define", macro P[macro] D[macro]
34190 next
34191 } else {
34192 # Replace #undef with comments. This is necessary, for example,
34193 # in the case of _POSIX_SOURCE, which is predefined and required
34194 # on some systems where configure will not decide to define it.
34195 if (defundef == "undef") {
34196 print "/*", prefix defundef, macro, "*/"
34197 next
34198 }
34199 }
34200}
34201{ print }
34202_ACAWK
34203_ACEOF
34204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy0684af42010-07-09 00:00:05 +000034205 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034206fi # test -n "$CONFIG_HEADERS"
34207
34208
34209eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34210shift
34211for ac_tag
34212do
34213 case $ac_tag in
34214 :[FHLC]) ac_mode=$ac_tag; continue;;
34215 esac
34216 case $ac_mode$ac_tag in
34217 :[FHL]*:*);;
cristy0684af42010-07-09 00:00:05 +000034218 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034219 :[FH]-) ac_tag=-:-;;
34220 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34221 esac
34222 ac_save_IFS=$IFS
34223 IFS=:
34224 set x $ac_tag
34225 IFS=$ac_save_IFS
34226 shift
34227 ac_file=$1
34228 shift
34229
34230 case $ac_mode in
34231 :L) ac_source=$1;;
34232 :[FH])
34233 ac_file_inputs=
34234 for ac_f
34235 do
34236 case $ac_f in
34237 -) ac_f="$tmp/stdin";;
34238 *) # Look for the file first in the build tree, then in the source tree
34239 # (if the path is not absolute). The absolute path cannot be DOS-style,
34240 # because $ac_f cannot contain `:'.
34241 test -f "$ac_f" ||
34242 case $ac_f in
34243 [\\/$]*) false;;
34244 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34245 esac ||
cristy0684af42010-07-09 00:00:05 +000034246 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034247 esac
34248 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000034249 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000034250 done
34251
34252 # Let's still pretend it is `configure' which instantiates (i.e., don't
34253 # use $as_me), people would be surprised to read:
34254 # /* config.h. Generated by config.status. */
34255 configure_input='Generated from '`
34256 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34257 `' by configure.'
34258 if test x"$ac_file" != x-; then
34259 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000034260 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034261$as_echo "$as_me: creating $ac_file" >&6;}
34262 fi
34263 # Neutralize special characters interpreted by sed in replacement strings.
34264 case $configure_input in #(
34265 *\&* | *\|* | *\\* )
34266 ac_sed_conf_input=`$as_echo "$configure_input" |
34267 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34268 *) ac_sed_conf_input=$configure_input;;
34269 esac
34270
34271 case $ac_tag in
34272 *:-:* | *:-) cat >"$tmp/stdin" \
cristy0684af42010-07-09 00:00:05 +000034273 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000034274 esac
34275 ;;
34276 esac
34277
34278 ac_dir=`$as_dirname -- "$ac_file" ||
34279$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34280 X"$ac_file" : 'X\(//\)[^/]' \| \
34281 X"$ac_file" : 'X\(//\)$' \| \
34282 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34283$as_echo X"$ac_file" |
34284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34285 s//\1/
34286 q
34287 }
34288 /^X\(\/\/\)[^/].*/{
34289 s//\1/
34290 q
34291 }
34292 /^X\(\/\/\)$/{
34293 s//\1/
34294 q
34295 }
34296 /^X\(\/\).*/{
34297 s//\1/
34298 q
34299 }
34300 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034301 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034302 ac_builddir=.
34303
34304case "$ac_dir" in
34305.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34306*)
34307 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34308 # A ".." for each directory in $ac_dir_suffix.
34309 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34310 case $ac_top_builddir_sub in
34311 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34312 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34313 esac ;;
34314esac
34315ac_abs_top_builddir=$ac_pwd
34316ac_abs_builddir=$ac_pwd$ac_dir_suffix
34317# for backward compatibility:
34318ac_top_builddir=$ac_top_build_prefix
34319
34320case $srcdir in
34321 .) # We are building in place.
34322 ac_srcdir=.
34323 ac_top_srcdir=$ac_top_builddir_sub
34324 ac_abs_top_srcdir=$ac_pwd ;;
34325 [\\/]* | ?:[\\/]* ) # Absolute name.
34326 ac_srcdir=$srcdir$ac_dir_suffix;
34327 ac_top_srcdir=$srcdir
34328 ac_abs_top_srcdir=$srcdir ;;
34329 *) # Relative name.
34330 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34331 ac_top_srcdir=$ac_top_build_prefix$srcdir
34332 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34333esac
34334ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34335
34336
34337 case $ac_mode in
34338 :F)
34339 #
34340 # CONFIG_FILE
34341 #
34342
34343 case $INSTALL in
34344 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34345 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34346 esac
34347 ac_MKDIR_P=$MKDIR_P
34348 case $MKDIR_P in
34349 [\\/$]* | ?:[\\/]* ) ;;
34350 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34351 esac
34352_ACEOF
34353
34354cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34355# If the template does not know about datarootdir, expand it.
34356# FIXME: This hack should be removed a few years after 2.60.
34357ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000034358ac_sed_dataroot='
34359/datarootdir/ {
34360 p
34361 q
34362}
34363/@datadir@/p
34364/@docdir@/p
34365/@infodir@/p
34366/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000034367/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000034368case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34369*datarootdir*) ac_datarootdir_seen=yes;;
34370*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000034371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000034372$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34373_ACEOF
34374cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34375 ac_datarootdir_hack='
34376 s&@datadir@&$datadir&g
34377 s&@docdir@&$docdir&g
34378 s&@infodir@&$infodir&g
34379 s&@localedir@&$localedir&g
34380 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000034381 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000034382esac
34383_ACEOF
34384
34385# Neutralize VPATH when `$srcdir' = `.'.
34386# Shell code in configure.ac might set extrasub.
34387# FIXME: do we really want to maintain this feature?
34388cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34389ac_sed_extra="$ac_vpsub
34390$extrasub
34391_ACEOF
34392cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34393:t
34394/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34395s|@configure_input@|$ac_sed_conf_input|;t t
34396s&@top_builddir@&$ac_top_builddir_sub&;t t
34397s&@top_build_prefix@&$ac_top_build_prefix&;t t
34398s&@srcdir@&$ac_srcdir&;t t
34399s&@abs_srcdir@&$ac_abs_srcdir&;t t
34400s&@top_srcdir@&$ac_top_srcdir&;t t
34401s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34402s&@builddir@&$ac_builddir&;t t
34403s&@abs_builddir@&$ac_abs_builddir&;t t
34404s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34405s&@INSTALL@&$ac_INSTALL&;t t
34406s&@MKDIR_P@&$ac_MKDIR_P&;t t
34407$ac_datarootdir_hack
34408"
34409eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy0684af42010-07-09 00:00:05 +000034410 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034411
34412test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34413 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34414 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000034415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy0684af42010-07-09 00:00:05 +000034416which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000034417$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy0684af42010-07-09 00:00:05 +000034418which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000034419
34420 rm -f "$tmp/stdin"
34421 case $ac_file in
34422 -) cat "$tmp/out" && rm -f "$tmp/out";;
34423 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34424 esac \
cristy0684af42010-07-09 00:00:05 +000034425 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034426 ;;
34427 :H)
34428 #
34429 # CONFIG_HEADER
34430 #
34431 if test x"$ac_file" != x-; then
34432 {
34433 $as_echo "/* $configure_input */" \
34434 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34435 } >"$tmp/config.h" \
cristy0684af42010-07-09 00:00:05 +000034436 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034437 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000034438 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034439$as_echo "$as_me: $ac_file is unchanged" >&6;}
34440 else
34441 rm -f "$ac_file"
34442 mv "$tmp/config.h" "$ac_file" \
cristy0684af42010-07-09 00:00:05 +000034443 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034444 fi
34445 else
34446 $as_echo "/* $configure_input */" \
34447 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy0684af42010-07-09 00:00:05 +000034448 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034449 fi
34450# Compute "$ac_file"'s index in $config_headers.
34451_am_arg="$ac_file"
34452_am_stamp_count=1
34453for _am_header in $config_headers :; do
34454 case $_am_header in
34455 $_am_arg | $_am_arg:* )
34456 break ;;
34457 * )
34458 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34459 esac
34460done
34461echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34462$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34463 X"$_am_arg" : 'X\(//\)[^/]' \| \
34464 X"$_am_arg" : 'X\(//\)$' \| \
34465 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34466$as_echo X"$_am_arg" |
34467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34468 s//\1/
34469 q
34470 }
34471 /^X\(\/\/\)[^/].*/{
34472 s//\1/
34473 q
34474 }
34475 /^X\(\/\/\)$/{
34476 s//\1/
34477 q
34478 }
34479 /^X\(\/\).*/{
34480 s//\1/
34481 q
34482 }
34483 s/.*/./; q'`/stamp-h$_am_stamp_count
34484 ;;
34485
cristy8b350f62009-11-15 23:12:43 +000034486 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000034487$as_echo "$as_me: executing $ac_file commands" >&6;}
34488 ;;
34489 esac
34490
34491
34492 case $ac_file$ac_mode in
34493 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34494ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34495ac_prefix_conf_PKG=`echo MagickCore`
34496ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34497ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34498ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34499if test ".$ac_prefix_conf_INP" = "."; then
34500 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34501 case "$ac_file" in
34502 *.h) ac_prefix_conf_INP=$ac_file ;;
34503 *)
34504 esac
34505 test ".$ac_prefix_conf_INP" != "." && break
34506 done
34507fi
34508if test ".$ac_prefix_conf_INP" = "."; then
34509 case "$ac_prefix_conf_OUT" in
34510 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34511 ;;
34512 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34513 ;;
34514 *) ac_prefix_conf_INP=config.h
34515 ;;
34516 esac
34517fi
34518if test -z "$ac_prefix_conf_PKG" ; then
cristy0684af42010-07-09 00:00:05 +000034519 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034520else
34521 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34522 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34523 fi fi
cristy8b350f62009-11-15 23:12:43 +000034524 { $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 +000034525$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34526 if test -f $ac_prefix_conf_INP ; then
34527 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34528 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034529 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34530 echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034531 echo "#endif/" >>conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034532 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34533 echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034534 echo "#endif/" >> conftest.prefix
34535 # now executing _script on _DEF input to create _OUT output file
34536 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34537 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34538 echo ' ' >>$tmp/pconfig.h
34539 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34540
34541 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34542 echo ' ' >>$tmp/pconfig.h
34543 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34544 echo "#endif" >>$tmp/pconfig.h
34545 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034546 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034547$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34548 else
34549 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34550$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34551 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34552 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34553 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34554$as_echo X"$ac_prefix_conf_OUT" |
34555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34556 s//\1/
34557 q
34558 }
34559 /^X\(\/\/\)[^/].*/{
34560 s//\1/
34561 q
34562 }
34563 /^X\(\/\/\)$/{
34564 s//\1/
34565 q
34566 }
34567 /^X\(\/\).*/{
34568 s//\1/
34569 q
34570 }
34571 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034572 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034573 rm -f "$ac_prefix_conf_OUT"
34574 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34575 fi
34576 cp conftest.prefix _configs.sed
34577 else
cristy0684af42010-07-09 00:00:05 +000034578 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 +000034579 fi
34580 rm -f conftest.*
34581fi
34582 ;;
34583 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34584 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34585 # are listed without --file. Let's play safe and only enable the eval
34586 # if we detect the quoting.
34587 case $CONFIG_FILES in
34588 *\'*) eval set x "$CONFIG_FILES" ;;
34589 *) set x $CONFIG_FILES ;;
34590 esac
34591 shift
34592 for mf
34593 do
34594 # Strip MF so we end up with the name of the file.
34595 mf=`echo "$mf" | sed -e 's/:.*$//'`
34596 # Check whether this is an Automake generated Makefile or not.
34597 # We used to match only the files named `Makefile.in', but
34598 # some people rename them; so instead we look at the file content.
34599 # Grep'ing the first line is not enough: some people post-process
34600 # each Makefile.in and add a new line on top of each file to say so.
34601 # Grep'ing the whole file is not good either: AIX grep has a line
34602 # limit of 2048, but all sed's we know have understand at least 4000.
34603 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34604 dirpart=`$as_dirname -- "$mf" ||
34605$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34606 X"$mf" : 'X\(//\)[^/]' \| \
34607 X"$mf" : 'X\(//\)$' \| \
34608 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34609$as_echo X"$mf" |
34610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34611 s//\1/
34612 q
34613 }
34614 /^X\(\/\/\)[^/].*/{
34615 s//\1/
34616 q
34617 }
34618 /^X\(\/\/\)$/{
34619 s//\1/
34620 q
34621 }
34622 /^X\(\/\).*/{
34623 s//\1/
34624 q
34625 }
34626 s/.*/./; q'`
34627 else
34628 continue
34629 fi
34630 # Extract the definition of DEPDIR, am__include, and am__quote
34631 # from the Makefile without running `make'.
34632 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34633 test -z "$DEPDIR" && continue
34634 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34635 test -z "am__include" && continue
34636 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34637 # When using ansi2knr, U may be empty or an underscore; expand it
34638 U=`sed -n 's/^U = //p' < "$mf"`
34639 # Find all dependency output files, they are included files with
34640 # $(DEPDIR) in their names. We invoke sed twice because it is the
34641 # simplest approach to changing $(DEPDIR) to its actual value in the
34642 # expansion.
34643 for file in `sed -n "
34644 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34645 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34646 # Make sure the directory exists.
34647 test -f "$dirpart/$file" && continue
34648 fdir=`$as_dirname -- "$file" ||
34649$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34650 X"$file" : 'X\(//\)[^/]' \| \
34651 X"$file" : 'X\(//\)$' \| \
34652 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34653$as_echo X"$file" |
34654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34655 s//\1/
34656 q
34657 }
34658 /^X\(\/\/\)[^/].*/{
34659 s//\1/
34660 q
34661 }
34662 /^X\(\/\/\)$/{
34663 s//\1/
34664 q
34665 }
34666 /^X\(\/\).*/{
34667 s//\1/
34668 q
34669 }
34670 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034671 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034672 # echo "creating $dirpart/$file"
34673 echo '# dummy' > "$dirpart/$file"
34674 done
34675 done
34676}
34677 ;;
34678 "libtool":C)
34679
34680 # See if we are running on zsh, and set the options which allow our
34681 # commands through without removal of \ escapes.
34682 if test -n "${ZSH_VERSION+set}" ; then
34683 setopt NO_GLOB_SUBST
34684 fi
34685
34686 cfgfile="${ofile}T"
34687 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34688 $RM "$cfgfile"
34689
34690 cat <<_LT_EOF >> "$cfgfile"
34691#! $SHELL
34692
34693# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34694# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34695# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34696# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34697#
34698# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy232a9ab2010-06-26 01:02:54 +000034699# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
34700# Inc.
cristy3ed852e2009-09-05 21:47:34 +000034701# Written by Gordon Matzigkeit, 1996
34702#
34703# This file is part of GNU Libtool.
34704#
34705# GNU Libtool is free software; you can redistribute it and/or
34706# modify it under the terms of the GNU General Public License as
34707# published by the Free Software Foundation; either version 2 of
34708# the License, or (at your option) any later version.
34709#
34710# As a special exception to the GNU General Public License,
34711# if you distribute this file as part of a program or library that
34712# is built using GNU Libtool, you may include this file under the
34713# same distribution terms that you use for the rest of that program.
34714#
34715# GNU Libtool is distributed in the hope that it will be useful,
34716# but WITHOUT ANY WARRANTY; without even the implied warranty of
34717# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34718# GNU General Public License for more details.
34719#
34720# You should have received a copy of the GNU General Public License
34721# along with GNU Libtool; see the file COPYING. If not, a copy
34722# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34723# obtained by writing to the Free Software Foundation, Inc.,
34724# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34725
34726
34727# The names of the tagged configurations supported by this script.
34728available_tags="CXX "
34729
34730# ### BEGIN LIBTOOL CONFIG
34731
34732# A sed program that does not truncate output.
34733SED=$lt_SED
34734
34735# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34736Xsed="\$SED -e 1s/^X//"
34737
34738# A grep program that handles long lines.
34739GREP=$lt_GREP
34740
34741# An ERE matcher.
34742EGREP=$lt_EGREP
34743
34744# A literal string matcher.
34745FGREP=$lt_FGREP
34746
cristy232a9ab2010-06-26 01:02:54 +000034747# Shell to use when invoking shell scripts.
34748SHELL=$lt_SHELL
34749
34750# An echo program that protects backslashes.
34751ECHO=$lt_ECHO
34752
cristy3ed852e2009-09-05 21:47:34 +000034753# Which release of libtool.m4 was used?
34754macro_version=$macro_version
34755macro_revision=$macro_revision
34756
34757# Assembler program.
cristy232a9ab2010-06-26 01:02:54 +000034758AS=$lt_AS
cristy3ed852e2009-09-05 21:47:34 +000034759
34760# DLL creation program.
cristy232a9ab2010-06-26 01:02:54 +000034761DLLTOOL=$lt_DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000034762
34763# Object dumper program.
cristy232a9ab2010-06-26 01:02:54 +000034764OBJDUMP=$lt_OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000034765
34766# Whether or not to build shared libraries.
34767build_libtool_libs=$enable_shared
34768
34769# Whether or not to build static libraries.
34770build_old_libs=$enable_static
34771
34772# What type of objects to build.
34773pic_mode=$pic_mode
34774
34775# Whether or not to optimize for fast installation.
34776fast_install=$enable_fast_install
34777
34778# The host system.
34779host_alias=$host_alias
34780host=$host
34781host_os=$host_os
34782
34783# The build system.
34784build_alias=$build_alias
34785build=$build
34786build_os=$build_os
34787
34788# A BSD- or MS-compatible name lister.
34789NM=$lt_NM
34790
34791# Whether we need soft or hard links.
34792LN_S=$lt_LN_S
34793
34794# What is the maximum length of a command?
34795max_cmd_len=$max_cmd_len
34796
34797# Object file suffix (normally "o").
34798objext=$ac_objext
34799
34800# Executable file suffix (normally "").
34801exeext=$exeext
34802
34803# whether the shell understands "unset".
34804lt_unset=$lt_unset
34805
34806# turn spaces into newlines.
34807SP2NL=$lt_lt_SP2NL
34808
34809# turn newlines into spaces.
34810NL2SP=$lt_lt_NL2SP
34811
cristy3ed852e2009-09-05 21:47:34 +000034812# Method to check whether dependent libraries are shared objects.
34813deplibs_check_method=$lt_deplibs_check_method
34814
34815# Command to use when deplibs_check_method == "file_magic".
34816file_magic_cmd=$lt_file_magic_cmd
34817
34818# The archiver.
34819AR=$lt_AR
34820AR_FLAGS=$lt_AR_FLAGS
34821
34822# A symbol stripping program.
34823STRIP=$lt_STRIP
34824
34825# Commands used to install an old-style archive.
34826RANLIB=$lt_RANLIB
34827old_postinstall_cmds=$lt_old_postinstall_cmds
34828old_postuninstall_cmds=$lt_old_postuninstall_cmds
34829
cristy232a9ab2010-06-26 01:02:54 +000034830# Whether to use a lock for old archive extraction.
34831lock_old_archive_extraction=$lock_old_archive_extraction
34832
cristy3ed852e2009-09-05 21:47:34 +000034833# A C compiler.
34834LTCC=$lt_CC
34835
34836# LTCC compiler flags.
34837LTCFLAGS=$lt_CFLAGS
34838
34839# Take the output of nm and produce a listing of raw symbols and C names.
34840global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34841
34842# Transform the output of nm in a proper C declaration.
34843global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34844
34845# Transform the output of nm in a C name address pair.
34846global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34847
34848# Transform the output of nm in a C name address pair when lib prefix is needed.
34849global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34850
34851# The name of the directory that contains temporary libtool files.
34852objdir=$objdir
34853
cristy3ed852e2009-09-05 21:47:34 +000034854# Used to examine libraries when file_magic_cmd begins with "file".
34855MAGIC_CMD=$MAGIC_CMD
34856
34857# Must we lock files when doing compilation?
34858need_locks=$lt_need_locks
34859
34860# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34861DSYMUTIL=$lt_DSYMUTIL
34862
34863# Tool to change global to local symbols on Mac OS X.
34864NMEDIT=$lt_NMEDIT
34865
34866# Tool to manipulate fat objects and archives on Mac OS X.
34867LIPO=$lt_LIPO
34868
34869# ldd/readelf like tool for Mach-O binaries on Mac OS X.
34870OTOOL=$lt_OTOOL
34871
34872# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34873OTOOL64=$lt_OTOOL64
34874
34875# Old archive suffix (normally "a").
34876libext=$libext
34877
34878# Shared library suffix (normally ".so").
34879shrext_cmds=$lt_shrext_cmds
34880
34881# The commands to extract the exported symbol list from a shared archive.
34882extract_expsyms_cmds=$lt_extract_expsyms_cmds
34883
34884# Variables whose values should be saved in libtool wrapper scripts and
34885# restored at link time.
34886variables_saved_for_relink=$lt_variables_saved_for_relink
34887
34888# Do we need the "lib" prefix for modules?
34889need_lib_prefix=$need_lib_prefix
34890
34891# Do we need a version for libraries?
34892need_version=$need_version
34893
34894# Library versioning type.
34895version_type=$version_type
34896
34897# Shared library runtime path variable.
34898runpath_var=$runpath_var
34899
34900# Shared library path variable.
34901shlibpath_var=$shlibpath_var
34902
34903# Is shlibpath searched before the hard-coded library search path?
34904shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34905
34906# Format of library name prefix.
34907libname_spec=$lt_libname_spec
34908
34909# List of archive names. First name is the real one, the rest are links.
34910# The last name is the one that the linker finds with -lNAME
34911library_names_spec=$lt_library_names_spec
34912
34913# The coded name of the library, if different from the real name.
34914soname_spec=$lt_soname_spec
34915
cristy232a9ab2010-06-26 01:02:54 +000034916# Permission mode override for installation of shared libraries.
34917install_override_mode=$lt_install_override_mode
34918
cristy3ed852e2009-09-05 21:47:34 +000034919# Command to use after installation of a shared archive.
34920postinstall_cmds=$lt_postinstall_cmds
34921
34922# Command to use after uninstallation of a shared archive.
34923postuninstall_cmds=$lt_postuninstall_cmds
34924
34925# Commands used to finish a libtool library installation in a directory.
34926finish_cmds=$lt_finish_cmds
34927
34928# As "finish_cmds", except a single script fragment to be evaled but
34929# not shown.
34930finish_eval=$lt_finish_eval
34931
34932# Whether we should hardcode library paths into libraries.
34933hardcode_into_libs=$hardcode_into_libs
34934
34935# Compile-time system search path for libraries.
34936sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34937
34938# Run-time system search path for libraries.
34939sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34940
34941# Whether dlopen is supported.
34942dlopen_support=$enable_dlopen
34943
34944# Whether dlopen of programs is supported.
34945dlopen_self=$enable_dlopen_self
34946
34947# Whether dlopen of statically linked programs is supported.
34948dlopen_self_static=$enable_dlopen_self_static
34949
34950# Commands to strip libraries.
34951old_striplib=$lt_old_striplib
34952striplib=$lt_striplib
34953
34954
34955# The linker used to build libraries.
34956LD=$lt_LD
34957
cristy232a9ab2010-06-26 01:02:54 +000034958# How to create reloadable object files.
34959reload_flag=$lt_reload_flag
34960reload_cmds=$lt_reload_cmds
34961
cristy3ed852e2009-09-05 21:47:34 +000034962# Commands used to build an old-style archive.
34963old_archive_cmds=$lt_old_archive_cmds
34964
34965# A language specific compiler.
34966CC=$lt_compiler
34967
34968# Is the compiler the GNU compiler?
34969with_gcc=$GCC
34970
34971# Compiler flag to turn off builtin functions.
34972no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34973
34974# How to pass a linker flag through the compiler.
34975wl=$lt_lt_prog_compiler_wl
34976
34977# Additional compiler flags for building library objects.
34978pic_flag=$lt_lt_prog_compiler_pic
34979
34980# Compiler flag to prevent dynamic linking.
34981link_static_flag=$lt_lt_prog_compiler_static
34982
34983# Does compiler simultaneously support -c and -o options?
34984compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34985
34986# Whether or not to add -lc for building shared libraries.
34987build_libtool_need_lc=$archive_cmds_need_lc
34988
34989# Whether or not to disallow shared libs when runtime libs are static.
34990allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34991
34992# Compiler flag to allow reflexive dlopens.
34993export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34994
34995# Compiler flag to generate shared objects directly from archives.
34996whole_archive_flag_spec=$lt_whole_archive_flag_spec
34997
34998# Whether the compiler copes with passing no objects directly.
34999compiler_needs_object=$lt_compiler_needs_object
35000
35001# Create an old-style archive from a shared archive.
35002old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35003
35004# Create a temporary old-style archive to link instead of a shared archive.
35005old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35006
35007# Commands used to build a shared archive.
35008archive_cmds=$lt_archive_cmds
35009archive_expsym_cmds=$lt_archive_expsym_cmds
35010
35011# Commands used to build a loadable module if different from building
35012# a shared archive.
35013module_cmds=$lt_module_cmds
35014module_expsym_cmds=$lt_module_expsym_cmds
35015
35016# Whether we are building with GNU ld or not.
35017with_gnu_ld=$lt_with_gnu_ld
35018
35019# Flag that allows shared libraries with undefined symbols to be built.
35020allow_undefined_flag=$lt_allow_undefined_flag
35021
35022# Flag that enforces no undefined symbols.
35023no_undefined_flag=$lt_no_undefined_flag
35024
35025# Flag to hardcode \$libdir into a binary during linking.
35026# This must work even if \$libdir does not exist
35027hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35028
35029# If ld is used when linking, flag to hardcode \$libdir into a binary
35030# during linking. This must work even if \$libdir does not exist.
35031hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35032
35033# Whether we need a single "-rpath" flag with a separated argument.
35034hardcode_libdir_separator=$lt_hardcode_libdir_separator
35035
35036# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35037# DIR into the resulting binary.
35038hardcode_direct=$hardcode_direct
35039
35040# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35041# DIR into the resulting binary and the resulting library dependency is
35042# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35043# library is relocated.
35044hardcode_direct_absolute=$hardcode_direct_absolute
35045
35046# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35047# into the resulting binary.
35048hardcode_minus_L=$hardcode_minus_L
35049
35050# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35051# into the resulting binary.
35052hardcode_shlibpath_var=$hardcode_shlibpath_var
35053
35054# Set to "yes" if building a shared library automatically hardcodes DIR
35055# into the library and all subsequent libraries and executables linked
35056# against it.
35057hardcode_automatic=$hardcode_automatic
35058
35059# Set to yes if linker adds runtime paths of dependent libraries
35060# to runtime path list.
35061inherit_rpath=$inherit_rpath
35062
35063# Whether libtool must link a program against all its dependency libraries.
35064link_all_deplibs=$link_all_deplibs
35065
35066# Fix the shell variable \$srcfile for the compiler.
35067fix_srcfile_path=$lt_fix_srcfile_path
35068
35069# Set to "yes" if exported symbols are required.
35070always_export_symbols=$always_export_symbols
35071
35072# The commands to list exported symbols.
35073export_symbols_cmds=$lt_export_symbols_cmds
35074
35075# Symbols that should not be listed in the preloaded symbols.
35076exclude_expsyms=$lt_exclude_expsyms
35077
35078# Symbols that must always be exported.
35079include_expsyms=$lt_include_expsyms
35080
35081# Commands necessary for linking programs (against libraries) with templates.
35082prelink_cmds=$lt_prelink_cmds
35083
35084# Specify filename containing input files.
35085file_list_spec=$lt_file_list_spec
35086
35087# How to hardcode a shared library path into an executable.
35088hardcode_action=$hardcode_action
35089
35090# The directories searched by this compiler when creating a shared library.
35091compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35092
35093# Dependencies to place before and after the objects being linked to
35094# create a shared library.
35095predep_objects=$lt_predep_objects
35096postdep_objects=$lt_postdep_objects
35097predeps=$lt_predeps
35098postdeps=$lt_postdeps
35099
35100# The library search path used internally by the compiler when linking
35101# a shared library.
35102compiler_lib_search_path=$lt_compiler_lib_search_path
35103
35104# ### END LIBTOOL CONFIG
35105
35106_LT_EOF
35107
35108 case $host_os in
35109 aix3*)
35110 cat <<\_LT_EOF >> "$cfgfile"
35111# AIX sometimes has problems with the GCC collect2 program. For some
35112# reason, if we set the COLLECT_NAMES environment variable, the problems
35113# vanish in a puff of smoke.
35114if test "X${COLLECT_NAMES+set}" != Xset; then
35115 COLLECT_NAMES=
35116 export COLLECT_NAMES
35117fi
35118_LT_EOF
35119 ;;
35120 esac
35121
35122
35123ltmain="$ac_aux_dir/ltmain.sh"
35124
35125
35126 # We use sed instead of cat because bash on DJGPP gets confused if
35127 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35128 # text mode, it properly converts lines to CR/LF. This bash problem
35129 # is reportedly fixed, but why not run on old versions too?
35130 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35131 || (rm -f "$cfgfile"; exit 1)
35132
35133 case $xsi_shell in
35134 yes)
35135 cat << \_LT_EOF >> "$cfgfile"
35136
35137# func_dirname file append nondir_replacement
35138# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35139# otherwise set result to NONDIR_REPLACEMENT.
35140func_dirname ()
35141{
35142 case ${1} in
35143 */*) func_dirname_result="${1%/*}${2}" ;;
35144 * ) func_dirname_result="${3}" ;;
35145 esac
35146}
35147
35148# func_basename file
35149func_basename ()
35150{
35151 func_basename_result="${1##*/}"
35152}
35153
35154# func_dirname_and_basename file append nondir_replacement
35155# perform func_basename and func_dirname in a single function
35156# call:
35157# dirname: Compute the dirname of FILE. If nonempty,
35158# add APPEND to the result, otherwise set result
35159# to NONDIR_REPLACEMENT.
35160# value returned in "$func_dirname_result"
35161# basename: Compute filename of FILE.
35162# value retuned in "$func_basename_result"
35163# Implementation must be kept synchronized with func_dirname
35164# and func_basename. For efficiency, we do not delegate to
35165# those functions but instead duplicate the functionality here.
35166func_dirname_and_basename ()
35167{
35168 case ${1} in
35169 */*) func_dirname_result="${1%/*}${2}" ;;
35170 * ) func_dirname_result="${3}" ;;
35171 esac
35172 func_basename_result="${1##*/}"
35173}
35174
35175# func_stripname prefix suffix name
35176# strip PREFIX and SUFFIX off of NAME.
35177# PREFIX and SUFFIX must not contain globbing or regex special
35178# characters, hashes, percent signs, but SUFFIX may contain a leading
35179# dot (in which case that matches only a dot).
35180func_stripname ()
35181{
35182 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35183 # positional parameters, so assign one to ordinary parameter first.
35184 func_stripname_result=${3}
35185 func_stripname_result=${func_stripname_result#"${1}"}
35186 func_stripname_result=${func_stripname_result%"${2}"}
35187}
35188
35189# func_opt_split
35190func_opt_split ()
35191{
35192 func_opt_split_opt=${1%%=*}
35193 func_opt_split_arg=${1#*=}
35194}
35195
35196# func_lo2o object
35197func_lo2o ()
35198{
35199 case ${1} in
35200 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35201 *) func_lo2o_result=${1} ;;
35202 esac
35203}
35204
35205# func_xform libobj-or-source
35206func_xform ()
35207{
35208 func_xform_result=${1%.*}.lo
35209}
35210
35211# func_arith arithmetic-term...
35212func_arith ()
35213{
35214 func_arith_result=$(( $* ))
35215}
35216
35217# func_len string
35218# STRING may not start with a hyphen.
35219func_len ()
35220{
35221 func_len_result=${#1}
35222}
35223
35224_LT_EOF
35225 ;;
35226 *) # Bourne compatible functions.
35227 cat << \_LT_EOF >> "$cfgfile"
35228
35229# func_dirname file append nondir_replacement
35230# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35231# otherwise set result to NONDIR_REPLACEMENT.
35232func_dirname ()
35233{
35234 # Extract subdirectory from the argument.
cristy232a9ab2010-06-26 01:02:54 +000035235 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000035236 if test "X$func_dirname_result" = "X${1}"; then
35237 func_dirname_result="${3}"
35238 else
35239 func_dirname_result="$func_dirname_result${2}"
35240 fi
35241}
35242
35243# func_basename file
35244func_basename ()
35245{
cristy232a9ab2010-06-26 01:02:54 +000035246 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000035247}
35248
35249
35250# func_stripname prefix suffix name
35251# strip PREFIX and SUFFIX off of NAME.
35252# PREFIX and SUFFIX must not contain globbing or regex special
35253# characters, hashes, percent signs, but SUFFIX may contain a leading
35254# dot (in which case that matches only a dot).
35255# func_strip_suffix prefix name
35256func_stripname ()
35257{
35258 case ${2} in
cristy232a9ab2010-06-26 01:02:54 +000035259 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
35260 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000035261 esac
35262}
35263
35264# sed scripts:
35265my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35266my_sed_long_arg='1s/^-[^=]*=//'
35267
35268# func_opt_split
35269func_opt_split ()
35270{
cristy232a9ab2010-06-26 01:02:54 +000035271 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
35272 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000035273}
35274
35275# func_lo2o object
35276func_lo2o ()
35277{
cristy232a9ab2010-06-26 01:02:54 +000035278 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000035279}
35280
35281# func_xform libobj-or-source
35282func_xform ()
35283{
cristy232a9ab2010-06-26 01:02:54 +000035284 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000035285}
35286
35287# func_arith arithmetic-term...
35288func_arith ()
35289{
35290 func_arith_result=`expr "$@"`
35291}
35292
35293# func_len string
35294# STRING may not start with a hyphen.
35295func_len ()
35296{
35297 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35298}
35299
35300_LT_EOF
35301esac
35302
35303case $lt_shell_append in
35304 yes)
35305 cat << \_LT_EOF >> "$cfgfile"
35306
35307# func_append var value
35308# Append VALUE to the end of shell variable VAR.
35309func_append ()
35310{
35311 eval "$1+=\$2"
35312}
35313_LT_EOF
35314 ;;
35315 *)
35316 cat << \_LT_EOF >> "$cfgfile"
35317
35318# func_append var value
35319# Append VALUE to the end of shell variable VAR.
35320func_append ()
35321{
35322 eval "$1=\$$1\$2"
35323}
35324
35325_LT_EOF
35326 ;;
35327 esac
35328
35329
35330 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35331 || (rm -f "$cfgfile"; exit 1)
35332
35333 mv -f "$cfgfile" "$ofile" ||
35334 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35335 chmod +x "$ofile"
35336
35337
35338 cat <<_LT_EOF >> "$ofile"
35339
35340# ### BEGIN LIBTOOL TAG CONFIG: CXX
35341
35342# The linker used to build libraries.
35343LD=$lt_LD_CXX
35344
cristy232a9ab2010-06-26 01:02:54 +000035345# How to create reloadable object files.
35346reload_flag=$lt_reload_flag_CXX
35347reload_cmds=$lt_reload_cmds_CXX
35348
cristy3ed852e2009-09-05 21:47:34 +000035349# Commands used to build an old-style archive.
35350old_archive_cmds=$lt_old_archive_cmds_CXX
35351
35352# A language specific compiler.
35353CC=$lt_compiler_CXX
35354
35355# Is the compiler the GNU compiler?
35356with_gcc=$GCC_CXX
35357
35358# Compiler flag to turn off builtin functions.
35359no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35360
35361# How to pass a linker flag through the compiler.
35362wl=$lt_lt_prog_compiler_wl_CXX
35363
35364# Additional compiler flags for building library objects.
35365pic_flag=$lt_lt_prog_compiler_pic_CXX
35366
35367# Compiler flag to prevent dynamic linking.
35368link_static_flag=$lt_lt_prog_compiler_static_CXX
35369
35370# Does compiler simultaneously support -c and -o options?
35371compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35372
35373# Whether or not to add -lc for building shared libraries.
35374build_libtool_need_lc=$archive_cmds_need_lc_CXX
35375
35376# Whether or not to disallow shared libs when runtime libs are static.
35377allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35378
35379# Compiler flag to allow reflexive dlopens.
35380export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35381
35382# Compiler flag to generate shared objects directly from archives.
35383whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35384
35385# Whether the compiler copes with passing no objects directly.
35386compiler_needs_object=$lt_compiler_needs_object_CXX
35387
35388# Create an old-style archive from a shared archive.
35389old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35390
35391# Create a temporary old-style archive to link instead of a shared archive.
35392old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35393
35394# Commands used to build a shared archive.
35395archive_cmds=$lt_archive_cmds_CXX
35396archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35397
35398# Commands used to build a loadable module if different from building
35399# a shared archive.
35400module_cmds=$lt_module_cmds_CXX
35401module_expsym_cmds=$lt_module_expsym_cmds_CXX
35402
35403# Whether we are building with GNU ld or not.
35404with_gnu_ld=$lt_with_gnu_ld_CXX
35405
35406# Flag that allows shared libraries with undefined symbols to be built.
35407allow_undefined_flag=$lt_allow_undefined_flag_CXX
35408
35409# Flag that enforces no undefined symbols.
35410no_undefined_flag=$lt_no_undefined_flag_CXX
35411
35412# Flag to hardcode \$libdir into a binary during linking.
35413# This must work even if \$libdir does not exist
35414hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35415
35416# If ld is used when linking, flag to hardcode \$libdir into a binary
35417# during linking. This must work even if \$libdir does not exist.
35418hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35419
35420# Whether we need a single "-rpath" flag with a separated argument.
35421hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35422
35423# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35424# DIR into the resulting binary.
35425hardcode_direct=$hardcode_direct_CXX
35426
35427# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35428# DIR into the resulting binary and the resulting library dependency is
35429# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35430# library is relocated.
35431hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35432
35433# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35434# into the resulting binary.
35435hardcode_minus_L=$hardcode_minus_L_CXX
35436
35437# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35438# into the resulting binary.
35439hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35440
35441# Set to "yes" if building a shared library automatically hardcodes DIR
35442# into the library and all subsequent libraries and executables linked
35443# against it.
35444hardcode_automatic=$hardcode_automatic_CXX
35445
35446# Set to yes if linker adds runtime paths of dependent libraries
35447# to runtime path list.
35448inherit_rpath=$inherit_rpath_CXX
35449
35450# Whether libtool must link a program against all its dependency libraries.
35451link_all_deplibs=$link_all_deplibs_CXX
35452
35453# Fix the shell variable \$srcfile for the compiler.
35454fix_srcfile_path=$lt_fix_srcfile_path_CXX
35455
35456# Set to "yes" if exported symbols are required.
35457always_export_symbols=$always_export_symbols_CXX
35458
35459# The commands to list exported symbols.
35460export_symbols_cmds=$lt_export_symbols_cmds_CXX
35461
35462# Symbols that should not be listed in the preloaded symbols.
35463exclude_expsyms=$lt_exclude_expsyms_CXX
35464
35465# Symbols that must always be exported.
35466include_expsyms=$lt_include_expsyms_CXX
35467
35468# Commands necessary for linking programs (against libraries) with templates.
35469prelink_cmds=$lt_prelink_cmds_CXX
35470
35471# Specify filename containing input files.
35472file_list_spec=$lt_file_list_spec_CXX
35473
35474# How to hardcode a shared library path into an executable.
35475hardcode_action=$hardcode_action_CXX
35476
35477# The directories searched by this compiler when creating a shared library.
35478compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35479
35480# Dependencies to place before and after the objects being linked to
35481# create a shared library.
35482predep_objects=$lt_predep_objects_CXX
35483postdep_objects=$lt_postdep_objects_CXX
35484predeps=$lt_predeps_CXX
35485postdeps=$lt_postdeps_CXX
35486
35487# The library search path used internally by the compiler when linking
35488# a shared library.
35489compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35490
35491# ### END LIBTOOL TAG CONFIG: CXX
35492_LT_EOF
35493
35494 ;;
35495 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35496 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35497 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35498 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35499 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35500 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35501
35502 esac
35503done # for ac_tag
35504
35505
cristy8b350f62009-11-15 23:12:43 +000035506as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000035507_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000035508ac_clean_files=$ac_clean_files_save
35509
35510test $ac_write_fail = 0 ||
cristy0684af42010-07-09 00:00:05 +000035511 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035512
35513
35514# configure is writing to config.log, and then calls config.status.
35515# config.status does its own redirection, appending to config.log.
35516# Unfortunately, on DOS this fails, as config.log is still kept open
35517# by configure, so config.status won't be able to write to it; its
35518# output is simply discarded. So we exec the FD to /dev/null,
35519# effectively closing config.log, so it can be properly (re)opened and
35520# appended to by config.status. When coming back to configure, we
35521# need to make the FD available again.
35522if test "$no_create" != yes; then
35523 ac_cs_success=:
35524 ac_config_status_args=
35525 test "$silent" = yes &&
35526 ac_config_status_args="$ac_config_status_args --quiet"
35527 exec 5>/dev/null
35528 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35529 exec 5>>config.log
35530 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35531 # would make configure fail if this is the last instruction.
cristy0684af42010-07-09 00:00:05 +000035532 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000035533fi
35534if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000035535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000035536$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35537fi
35538
35539
35540rm -f magick-version
35541
cristy430a7312010-01-21 20:44:04 +000035542result_dejavu_font_dir='none'
35543if test "${dejavu_font_dir}x" != 'x'; then
35544 result_dejavu_font_dir=$dejavu_font_dir
35545fi
35546
cristy3ed852e2009-09-05 21:47:34 +000035547result_ghostscript_font_dir='none'
35548if test "${ghostscript_font_dir}x" != 'x'; then
35549 result_ghostscript_font_dir=$ghostscript_font_dir
35550fi
35551
35552result_windows_font_dir='none'
35553if test "${windows_font_dir}x" != 'x'; then
35554 result_windows_font_dir=${windows_font_dir}
35555fi
35556
cristy8b350f62009-11-15 23:12:43 +000035557{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000035558ImageMagick is configured as follows. Please verify that this configuration
35559matches your expectations.
35560
35561Host system type: $host
35562Build system type: $build
35563
35564 Option Value
35565-------------------------------------------------------------------------------
35566Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35567Static libraries --enable-static=$enable_static $libtool_build_static_libs
35568Module support --with-modules=$with_modules $with_modules
35569GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35570Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35571High Dynamic Range Imagery
35572 --enable-hdri=$enable_hdri $enable_hdri
35573
35574Delegate Configuration:
35575BZLIB --with-bzlib=$with_bzlib $have_bzlib
35576Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035577Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035578DJVU --with-djvu=$with_djvu $have_djvu
35579DPS --with-dps=$with_dps $have_dps
35580FFTW --with-fftw=$with_fftw $have_fftw
35581FlashPIX --with-fpx=$with_fpx $have_fpx
35582FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35583FreeType --with-freetype=$with_freetype $have_freetype
35584GhostPCL None $PCLDelegate ($PCLVersion)
35585GhostXPS None $XPSDelegate ($XPSVersion)
35586Ghostscript None $PSDelegate ($GSVersion)
35587Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35588Ghostscript lib --with-gslib=$with_gslib $have_gslib
35589Graphviz --with-gvc=$with_gvc $have_gvc
35590JBIG --with-jbig=$with_jbig $have_jbig
35591JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35592JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035593LCMS v1 --with-lcms=$with_lcms $have_lcms
35594LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035595LQR --with-lqr=$with_lqr $have_lqr
35596Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35597OpenEXR --with-openexr=$with_openexr $have_openexr
35598PERL --with-perl=$with_perl $have_perl
35599PNG --with-png=$with_png $have_png
35600RSVG --with-rsvg=$with_rsvg $have_rsvg
35601TIFF --with-tiff=$with_tiff $have_tiff
35602Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35603WMF --with-wmf=$with_wmf $have_wmf
35604X11 --with-x=$with_x $have_x
35605XML --with-xml=$with_xml $have_xml
35606ZLIB --with-zlib=$with_zlib $have_zlib
35607
35608X11 Configuration:
35609 X_CFLAGS = $X_CFLAGS
35610 X_PRE_LIBS = $X_PRE_LIBS
35611 X_LIBS = $X_LIBS
35612 X_EXTRA_LIBS = $X_EXTRA_LIBS
35613
35614Options used to compile and link:
35615 PREFIX = $PREFIX_DIR
35616 EXEC-PREFIX = $EXEC_PREFIX_DIR
35617 VERSION = $PACKAGE_VERSION
35618 CC = $CC
35619 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035620 CPPFLAGS = $MAGICK_CPPFLAGS
35621 PCFLAGS = $MAGICK_PCFLAGS
35622 DEFS = $DEFS
35623 LDFLAGS = $LDFLAGS
35624 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35625 LIBS = $MAGICK_LIBS
35626 CXX = $CXX
35627 CXXFLAGS = $CXXFLAGS
35628" >&5
35629$as_echo "
35630ImageMagick is configured as follows. Please verify that this configuration
35631matches your expectations.
35632
35633Host system type: $host
35634Build system type: $build
35635
35636 Option Value
35637-------------------------------------------------------------------------------
35638Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35639Static libraries --enable-static=$enable_static $libtool_build_static_libs
35640Module support --with-modules=$with_modules $with_modules
35641GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35642Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35643High Dynamic Range Imagery
35644 --enable-hdri=$enable_hdri $enable_hdri
35645
35646Delegate Configuration:
35647BZLIB --with-bzlib=$with_bzlib $have_bzlib
35648Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035649Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035650DJVU --with-djvu=$with_djvu $have_djvu
35651DPS --with-dps=$with_dps $have_dps
35652FFTW --with-fftw=$with_fftw $have_fftw
35653FlashPIX --with-fpx=$with_fpx $have_fpx
35654FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35655FreeType --with-freetype=$with_freetype $have_freetype
35656GhostPCL None $PCLDelegate ($PCLVersion)
35657GhostXPS None $XPSDelegate ($XPSVersion)
35658Ghostscript None $PSDelegate ($GSVersion)
35659Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35660Ghostscript lib --with-gslib=$with_gslib $have_gslib
35661Graphviz --with-gvc=$with_gvc $have_gvc
35662JBIG --with-jbig=$with_jbig $have_jbig
35663JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35664JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035665LCMS v1 --with-lcms=$with_lcms $have_lcms
35666LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035667LQR --with-lqr=$with_lqr $have_lqr
35668Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35669OpenEXR --with-openexr=$with_openexr $have_openexr
35670PERL --with-perl=$with_perl $have_perl
35671PNG --with-png=$with_png $have_png
35672RSVG --with-rsvg=$with_rsvg $have_rsvg
35673TIFF --with-tiff=$with_tiff $have_tiff
35674Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35675WMF --with-wmf=$with_wmf $have_wmf
35676X11 --with-x=$with_x $have_x
35677XML --with-xml=$with_xml $have_xml
35678ZLIB --with-zlib=$with_zlib $have_zlib
35679
35680X11 Configuration:
35681 X_CFLAGS = $X_CFLAGS
35682 X_PRE_LIBS = $X_PRE_LIBS
35683 X_LIBS = $X_LIBS
35684 X_EXTRA_LIBS = $X_EXTRA_LIBS
35685
35686Options used to compile and link:
35687 PREFIX = $PREFIX_DIR
35688 EXEC-PREFIX = $EXEC_PREFIX_DIR
35689 VERSION = $PACKAGE_VERSION
35690 CC = $CC
35691 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035692 CPPFLAGS = $MAGICK_CPPFLAGS
35693 PCFLAGS = $MAGICK_PCFLAGS
35694 DEFS = $DEFS
35695 LDFLAGS = $LDFLAGS
35696 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35697 LIBS = $MAGICK_LIBS
35698 CXX = $CXX
35699 CXXFLAGS = $CXXFLAGS
35700" >&6; }