blob: 93313b0f22785946537a1f750efdfedd3971a9d9 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy8adecc32010-11-21 22:08:49 +00003# Generated by GNU Autoconf 2.66 for ImageMagick 6.6.6.
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,
cristy98dddb52010-11-04 00:30:15 +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
cristy0c60a692010-11-04 01:09:47 +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"
cristy98dddb52010-11-04 00:30:15 +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
cristy98dddb52010-11-04 00:30:15 +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
cristy98dddb52010-11-04 00:30:15 +0000374# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000375as_fn_error ()
376{
cristy98dddb52010-11-04 00:30:15 +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
cristy98dddb52010-11-04 00:30:15 +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
cristy73bd4a52010-10-05 11:24:23 +0000539SHELL=${CONFIG_SHELL-/bin/sh}
540
cristy73bd4a52010-10-05 11:24:23 +0000541lt_ltdl_dir='ltdl'
542
543lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
544
cristy0c60a692010-11-04 01:09:47 +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.
cristy98dddb52010-11-04 00:30:15 +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'
cristy8adecc32010-11-21 22:08:49 +0000569PACKAGE_VERSION='6.6.6'
570PACKAGE_STRING='ImageMagick 6.6.6'
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=
cristy73bd4a52010-10-05 11:24:23 +0000613ac_subst_vars='ltdl_LTLIBOBJS
614ltdl_LIBOBJS
615am__EXEEXT_FALSE
616am__EXEEXT_TRUE
617LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000618MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000619MAGICK_LIBS
620MAGICK_LDFLAGS
621MAGICK_PCFLAGS
622MAGICK_CPPFLAGS
623MAGICK_CXXFLAGS
624MAGICK_CFLAGS
625MAGICK_DEP_LIBS
626MAGICK_LTDLDEPS
627MAGICK_LIBLTDL
628OSX_GCOV_LDFLAG
629DELEGATES
630MAGICKCORE_PATH
631PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000632WITH_PERL_DYNAMIC_FALSE
633WITH_PERL_DYNAMIC_TRUE
634WITH_PERL_STATIC_FALSE
635WITH_PERL_STATIC_TRUE
636WITH_PERL_FALSE
637WITH_PERL_TRUE
638PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000639GSVersion
640GSPSDevice
641GSPDFDevice
642GSMonoDevice
643GSEPSDevice
644GSColorDevice
645GSCMYKDevice
646GSAlphaDevice
647XPSVersion
648XPSCMYKDevice
649XPSColorDevice
650XPSMonoDevice
651PCLVersion
652PCLCMYKDevice
653PCLColorDevice
654PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000655ZIP_DELEGATE_FALSE
656ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000657ZIP
cristy73bd4a52010-10-05 11:24:23 +0000658P7ZIP_DELEGATE_FALSE
659P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000660P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000661RPM_DELEGATE_FALSE
662RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000663RPM
664PERL
665TAR
666ShowImageDelegate
667type_include_files
668ghostscript_font_dir
669windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000670dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000671PrintDelegate
672ZipDelegate
673XPSDelegate
674WWWDecodeDelegate
675WMFDecodeDelegate
cristy23f7a922010-10-11 00:27:48 +0000676WEBPDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000677UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000678TXTDelegate
679SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000680RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000681RMDelegate
682RLEEncodeDelegate
683PSDelegate
684POVDelegate
685PGPDecodeDelegate
686PCLDelegate
687MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000688MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000689MPEGEncodeDelegate
690MPEGDecodeDelegate
691MANDelegate
692LaunchDelegate
693LZWEncodeDelegate
694LZWDecodeDelegate
695LPRDelegate
696LPDelegate
697ILBMEncodeDelegate
698ILBMDecodeDelegate
699HTMLDecodeDelegate
700HPGLDecodeDelegate
701HDRDecodeDelegate
702GnuplotDecodeDelegate
703MogrifyDelegate
704DisplayDelegate
705ConvertDelegate
706FIGDecodeDelegate
707EditorDelegate
708EchoDelegate
709DVIDecodeDelegate
710GVCDecodeDelegate
711DNGDecodeDelegate
712CatDelegate
713CGMDecodeDelegate
714BrowseDelegate
715BZIPDelegate
716BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000717AutotraceDecodeDelegate
718SHARE_CONFIGURE_PATH
719SHARE_PATH
720DOCUMENTATION_PATH
721FILTER_PATH
722CODER_PATH
723CONFIGURE_PATH
724LIBRARY_PATH
725EXECUTABLE_PATH
726PERLMAINCC
727XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000728XML_DELEGATE_FALSE
729XML_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000730xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000731WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000732WMF_DELEGATE_FALSE
733WMF_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000734TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000735TIFF_DELEGATE_FALSE
736TIFF_DELEGATE_TRUE
737CAIRO_DELEGATE_FALSE
738CAIRO_DELEGATE_TRUE
739RSVG_DELEGATE_FALSE
740RSVG_DELEGATE_TRUE
741CAIRO_SVG_LIBS
742CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000743RSVG_LIBS
744RSVG_CFLAGS
745PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000746PNG_DELEGATE_FALSE
747PNG_DELEGATE_TRUE
748OPENEXR_DELEGATE_FALSE
749OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000750OPENEXR_LIBS
751OPENEXR_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000752LQR_DELEGATE_FALSE
753LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000754LQR_LIBS
755LQR_CFLAGS
756LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000757LCMS_DELEGATE_FALSE
758LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000759JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000760JP2_DELEGATE_FALSE
761JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000762JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000763JPEG_DELEGATE_FALSE
764JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000765JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000766JBIG_DELEGATE_FALSE
767JBIG_DELEGATE_TRUE
768GVC_DELEGATE_FALSE
769GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000770GVC_LIBS
771GVC_CFLAGS
772GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000773GS_DELEGATE_FALSE
774GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000775FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000776FREETYPE_DELEGATE_FALSE
777FREETYPE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000778freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000779FONTCONFIG_DELEGATE_FALSE
780FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000781FONTCONFIG_LIBS
782FONTCONFIG_CFLAGS
783FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000784FPX_DELEGATE_FALSE
785FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000786FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000787FFTW_DELEGATE_FALSE
788FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000789DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000790DJVU_DELEGATE_FALSE
791DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000792DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000793DPS_DELEGATE_FALSE
794DPS_DELEGATE_TRUE
795AUTOTRACE_DELEGATE_FALSE
796AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000797AUTOTRACE_LIBS
798AUTOTRACE_CFLAGS
799LIB_DL
800ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000801ZLIB_DELEGATE_FALSE
802ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000803XEXT_LIBS
804X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000805X11_DELEGATE_FALSE
806X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000807X_EXTRA_LIBS
808X_LIBS
809X_PRE_LIBS
810X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000811XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000812BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000813BZLIB_DELEGATE_FALSE
814BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000815CCMALLOCDelegate
816UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000817HasUMEM_FALSE
818HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000819THREAD_LIBS
820GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000821WITH_MAGICK_PLUS_PLUS_FALSE
822WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000823OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000824MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000825POW_LIB
826LIBOBJS
827UINTPTR_T
828UINTMAX_T
829UINT64_T
830INT64_T
831UINT32_T
832INT32_T
833UINT16_T
834INT16_T
835UINT8_T
836INT8_T
837LIBRARY_EXTRA_CPPFLAGS
838MODULE_EXTRA_CPPFLAGS
839LIBSTDCLDFLAGS
840PERL_MAKE_OPTIONS
841QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000842MAINT
843MAINTAINER_MODE_FALSE
844MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000845MAGICK_HDRI
846DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000847WITH_LTDL_FALSE
848WITH_LTDL_TRUE
849WITH_MODULES_FALSE
850WITH_MODULES_TRUE
851WITH_SHARED_LIBS_FALSE
852WITH_SHARED_LIBS_TRUE
853LTDLOPEN
854LT_CONFIG_H
855CONVENIENCE_LTDL_FALSE
856CONVENIENCE_LTDL_TRUE
857INSTALL_LTDL_FALSE
858INSTALL_LTDL_TRUE
859ARGZ_H
860sys_symbol_underscore
861LIBADD_DL
862LT_DLPREOPEN
863LIBADD_DLD_LINK
864LIBADD_SHL_LOAD
865LIBADD_DLOPEN
866LT_DLLOADERS
867INCLTDL
868LTDLINCL
869LTDLDEPS
870LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000871LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000872CXXCPP
873OTOOL64
874OTOOL
875LIPO
876NMEDIT
877DSYMUTIL
cristy73bd4a52010-10-05 11:24:23 +0000878RANLIB
879AR
880NM
881ac_ct_DUMPBIN
882DUMPBIN
883LIBTOOL
884OBJDUMP
885DLLTOOL
886AS
cristy3ed852e2009-09-05 21:47:34 +0000887LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000888CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000889CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000890OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000891PTHREAD_CFLAGS
892PTHREAD_LIBS
893PTHREAD_CC
894ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000895WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000896USING_CL_FALSE
897USING_CL_TRUE
898CYGWIN_BUILD_FALSE
899CYGWIN_BUILD_TRUE
900WIN32_NATIVE_BUILD_FALSE
901WIN32_NATIVE_BUILD_TRUE
902WINGDI32_DELEGATE_FALSE
903WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000904GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000905PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000906LN_S
cristy3ed852e2009-09-05 21:47:34 +0000907LD
cristy73bd4a52010-10-05 11:24:23 +0000908FGREP
909SED
910am__fastdepCXX_FALSE
911am__fastdepCXX_TRUE
912CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000913ac_ct_CXX
914CXXFLAGS
915CXX
cristya0b81c32010-01-22 02:54:33 +0000916EGREP
917GREP
918CPP
cristy73bd4a52010-10-05 11:24:23 +0000919am__fastdepCC_FALSE
920am__fastdepCC_TRUE
921CCDEPMODE
922AMDEPBACKSLASH
923AMDEP_FALSE
924AMDEP_TRUE
925am__quote
926am__include
927DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000928OBJEXT
929EXEEXT
930ac_ct_CC
931CPPFLAGS
932LDFLAGS
933CFLAGS
934CC
935DIRSEP
936MAGICK_FILTER_MODULE_PATH
937MAGICK_CONFIGURE_BUILD_PATH
938MAGICK_CONFIGURE_SRC_PATH
939MAGICK_CODER_MODULE_PATH
940MAN_DIR
941INFO_DIR
942PERSISTINCLUDE_DIR
943INCLUDE_DIR
944LIB_DIR
945LOCALSTATE_DIR
946SHAREDSTATE_DIR
947SYSCONF_DIR
948DATA_DIR
949LIBEXEC_DIR
950SBIN_DIR
951BIN_DIR
952EXEC_PREFIX_DIR
953PREFIX_DIR
954CONFIG_STATUS_DEPENDENCIES
955MAGICK_LIB_VERSION_NUMBER
956MAGICK_LIB_VERSION_TEXT
957MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000958AM_BACKSLASH
959AM_DEFAULT_VERBOSITY
960am__untar
961am__tar
962AMTAR
963am__leading_dot
964SET_MAKE
965AWK
966mkdir_p
967MKDIR_P
968INSTALL_STRIP_PROGRAM
969STRIP
970install_sh
971MAKEINFO
972AUTOHEADER
973AUTOMAKE
974AUTOCONF
975ACLOCAL
976VERSION
977PACKAGE
978CYGPATH_W
979am__isrc
980INSTALL_DATA
981INSTALL_SCRIPT
982INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +0000983PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +0000984PACKAGE_RELEASE_DATE
985PACKAGE_LIB_VERSION_NUMBER
986PACKAGE_LIB_VERSION
987PACKAGE_CHANGE_DATE
988PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +0000989MAGICK_LIBRARY_VERSION_INFO
990MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +0000991MAGICK_LIBRARY_AGE
992MAGICK_LIBRARY_REVISION
993MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +0000994MAGICK_TARGET_OS
995MAGICK_TARGET_VENDOR
996MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +0000997target_os
998target_vendor
999target_cpu
1000target
1001host_os
1002host_vendor
1003host_cpu
1004host
1005build_os
1006build_vendor
1007build_cpu
1008build
1009CONFIGURE_ARGS
1010DISTCHECK_CONFIG_FLAGS
1011target_alias
1012host_alias
1013build_alias
1014LIBS
1015ECHO_T
1016ECHO_N
1017ECHO_C
1018DEFS
1019mandir
1020localedir
1021libdir
1022psdir
1023pdfdir
1024dvidir
1025htmldir
1026infodir
1027docdir
1028oldincludedir
1029includedir
1030localstatedir
1031sharedstatedir
1032sysconfdir
1033datadir
1034datarootdir
1035libexecdir
1036sbindir
1037bindir
1038program_transform_name
1039prefix
1040exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001041PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001042PACKAGE_BUGREPORT
1043PACKAGE_STRING
1044PACKAGE_VERSION
1045PACKAGE_TARNAME
1046PACKAGE_NAME
1047PATH_SEPARATOR
1048SHELL'
1049ac_subst_files=''
1050ac_user_opts='
1051enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001052enable_silent_rules
1053enable_dependency_tracking
1054with_gnu_ld
1055with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001056enable_bounds_checking
1057enable_osx_universal_binary
1058with_threads
1059enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001060enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001061enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001062enable_shared
1063enable_static
1064with_pic
1065enable_fast_install
1066enable_libtool_lock
1067with_included_ltdl
1068with_ltdl_include
1069with_ltdl_lib
1070enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001071with_modules
1072enable_delegate_build
1073enable_deprecated
1074enable_installed
1075enable_cipher
1076enable_embeddable
1077enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001078enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001079enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001080enable_ccmalloc
1081enable_efence
1082enable_prof
1083enable_gprof
1084enable_gcov
1085with_method_prefix
1086with_quantum_depth
1087with_cache
1088with_frozenpaths
1089with_magick_plus_plus
1090with_perl
1091with_perl_options
1092with_umem
1093with_libstdc
1094with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001095with_x
cristy3ed852e2009-09-05 21:47:34 +00001096with_zlib
1097with_autotrace
1098with_dps
1099with_djvu
cristy430a7312010-01-21 20:44:04 +00001100with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001101with_fftw
1102with_fpx
1103with_fontconfig
1104with_freetype
1105with_gslib
1106with_fontpath
1107with_gs_font_dir
1108with_gvc
1109with_jbig
1110with_jpeg
1111with_jp2
1112with_lcms
cristy71203402010-06-18 13:12:03 +00001113with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001114with_lqr
1115with_openexr
1116with_png
1117with_rsvg
1118with_tiff
1119with_windows_font_dir
1120with_wmf
1121with_xml
1122'
1123 ac_precious_vars='build_alias
1124host_alias
1125target_alias
1126CC
1127CFLAGS
1128LDFLAGS
1129LIBS
1130CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001131CPP
cristy3ed852e2009-09-05 21:47:34 +00001132CXX
1133CXXFLAGS
1134CCC
cristy73bd4a52010-10-05 11:24:23 +00001135PKG_CONFIG
1136CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001137XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001138AUTOTRACE_CFLAGS
1139AUTOTRACE_LIBS
1140FONTCONFIG_CFLAGS
1141FONTCONFIG_LIBS
1142GVC_CFLAGS
1143GVC_LIBS
1144LQR_CFLAGS
1145LQR_LIBS
1146OPENEXR_CFLAGS
1147OPENEXR_LIBS
1148RSVG_CFLAGS
1149RSVG_LIBS
1150CAIRO_SVG_CFLAGS
1151CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001152
1153
1154# Initialize some variables set by options.
1155ac_init_help=
1156ac_init_version=false
1157ac_unrecognized_opts=
1158ac_unrecognized_sep=
1159# The variables have the same names as the options, with
1160# dashes changed to underlines.
1161cache_file=/dev/null
1162exec_prefix=NONE
1163no_create=
1164no_recursion=
1165prefix=NONE
1166program_prefix=NONE
1167program_suffix=NONE
1168program_transform_name=s,x,x,
1169silent=
1170site=
1171srcdir=
1172verbose=
1173x_includes=NONE
1174x_libraries=NONE
1175
1176# Installation directory options.
1177# These are left unexpanded so users can "make install exec_prefix=/foo"
1178# and all the variables that are supposed to be based on exec_prefix
1179# by default will actually change.
1180# Use braces instead of parens because sh, perl, etc. also accept them.
1181# (The list follows the same order as the GNU Coding Standards.)
1182bindir='${exec_prefix}/bin'
1183sbindir='${exec_prefix}/sbin'
1184libexecdir='${exec_prefix}/libexec'
1185datarootdir='${prefix}/share'
1186datadir='${datarootdir}'
1187sysconfdir='${prefix}/etc'
1188sharedstatedir='${prefix}/com'
1189localstatedir='${prefix}/var'
1190includedir='${prefix}/include'
1191oldincludedir='/usr/include'
1192docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1193infodir='${datarootdir}/info'
1194htmldir='${docdir}'
1195dvidir='${docdir}'
1196pdfdir='${docdir}'
1197psdir='${docdir}'
1198libdir='${exec_prefix}/lib'
1199localedir='${datarootdir}/locale'
1200mandir='${datarootdir}/man'
1201
1202ac_prev=
1203ac_dashdash=
1204for ac_option
1205do
1206 # If the previous option needs an argument, assign it.
1207 if test -n "$ac_prev"; then
1208 eval $ac_prev=\$ac_option
1209 ac_prev=
1210 continue
1211 fi
1212
1213 case $ac_option in
1214 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1215 *) ac_optarg=yes ;;
1216 esac
1217
1218 # Accept the important Cygnus configure options, so we can diagnose typos.
1219
1220 case $ac_dashdash$ac_option in
1221 --)
1222 ac_dashdash=yes ;;
1223
1224 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1225 ac_prev=bindir ;;
1226 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1227 bindir=$ac_optarg ;;
1228
1229 -build | --build | --buil | --bui | --bu)
1230 ac_prev=build_alias ;;
1231 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1232 build_alias=$ac_optarg ;;
1233
1234 -cache-file | --cache-file | --cache-fil | --cache-fi \
1235 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1236 ac_prev=cache_file ;;
1237 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1238 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1239 cache_file=$ac_optarg ;;
1240
1241 --config-cache | -C)
1242 cache_file=config.cache ;;
1243
1244 -datadir | --datadir | --datadi | --datad)
1245 ac_prev=datadir ;;
1246 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1247 datadir=$ac_optarg ;;
1248
1249 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1250 | --dataroo | --dataro | --datar)
1251 ac_prev=datarootdir ;;
1252 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1253 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1254 datarootdir=$ac_optarg ;;
1255
1256 -disable-* | --disable-*)
1257 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001260 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001261 ac_useropt_orig=$ac_useropt
1262 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263 case $ac_user_opts in
1264 *"
1265"enable_$ac_useropt"
1266"*) ;;
1267 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1268 ac_unrecognized_sep=', ';;
1269 esac
1270 eval enable_$ac_useropt=no ;;
1271
1272 -docdir | --docdir | --docdi | --doc | --do)
1273 ac_prev=docdir ;;
1274 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1275 docdir=$ac_optarg ;;
1276
1277 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1278 ac_prev=dvidir ;;
1279 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1280 dvidir=$ac_optarg ;;
1281
1282 -enable-* | --enable-*)
1283 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001286 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1290 *"
1291"enable_$ac_useropt"
1292"*) ;;
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1295 esac
1296 eval enable_$ac_useropt=\$ac_optarg ;;
1297
1298 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1299 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1300 | --exec | --exe | --ex)
1301 ac_prev=exec_prefix ;;
1302 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1303 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1304 | --exec=* | --exe=* | --ex=*)
1305 exec_prefix=$ac_optarg ;;
1306
1307 -gas | --gas | --ga | --g)
1308 # Obsolete; use --with-gas.
1309 with_gas=yes ;;
1310
1311 -help | --help | --hel | --he | -h)
1312 ac_init_help=long ;;
1313 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1314 ac_init_help=recursive ;;
1315 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1316 ac_init_help=short ;;
1317
1318 -host | --host | --hos | --ho)
1319 ac_prev=host_alias ;;
1320 -host=* | --host=* | --hos=* | --ho=*)
1321 host_alias=$ac_optarg ;;
1322
1323 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1324 ac_prev=htmldir ;;
1325 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1326 | --ht=*)
1327 htmldir=$ac_optarg ;;
1328
1329 -includedir | --includedir | --includedi | --included | --include \
1330 | --includ | --inclu | --incl | --inc)
1331 ac_prev=includedir ;;
1332 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1333 | --includ=* | --inclu=* | --incl=* | --inc=*)
1334 includedir=$ac_optarg ;;
1335
1336 -infodir | --infodir | --infodi | --infod | --info | --inf)
1337 ac_prev=infodir ;;
1338 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1339 infodir=$ac_optarg ;;
1340
1341 -libdir | --libdir | --libdi | --libd)
1342 ac_prev=libdir ;;
1343 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1344 libdir=$ac_optarg ;;
1345
1346 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1347 | --libexe | --libex | --libe)
1348 ac_prev=libexecdir ;;
1349 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1350 | --libexe=* | --libex=* | --libe=*)
1351 libexecdir=$ac_optarg ;;
1352
1353 -localedir | --localedir | --localedi | --localed | --locale)
1354 ac_prev=localedir ;;
1355 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1356 localedir=$ac_optarg ;;
1357
1358 -localstatedir | --localstatedir | --localstatedi | --localstated \
1359 | --localstate | --localstat | --localsta | --localst | --locals)
1360 ac_prev=localstatedir ;;
1361 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1362 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1363 localstatedir=$ac_optarg ;;
1364
1365 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1366 ac_prev=mandir ;;
1367 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1368 mandir=$ac_optarg ;;
1369
1370 -nfp | --nfp | --nf)
1371 # Obsolete; use --without-fp.
1372 with_fp=no ;;
1373
1374 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1375 | --no-cr | --no-c | -n)
1376 no_create=yes ;;
1377
1378 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1379 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1380 no_recursion=yes ;;
1381
1382 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1383 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1384 | --oldin | --oldi | --old | --ol | --o)
1385 ac_prev=oldincludedir ;;
1386 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1387 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1388 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1389 oldincludedir=$ac_optarg ;;
1390
1391 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1392 ac_prev=prefix ;;
1393 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1394 prefix=$ac_optarg ;;
1395
1396 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1397 | --program-pre | --program-pr | --program-p)
1398 ac_prev=program_prefix ;;
1399 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1400 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1401 program_prefix=$ac_optarg ;;
1402
1403 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1404 | --program-suf | --program-su | --program-s)
1405 ac_prev=program_suffix ;;
1406 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1407 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1408 program_suffix=$ac_optarg ;;
1409
1410 -program-transform-name | --program-transform-name \
1411 | --program-transform-nam | --program-transform-na \
1412 | --program-transform-n | --program-transform- \
1413 | --program-transform | --program-transfor \
1414 | --program-transfo | --program-transf \
1415 | --program-trans | --program-tran \
1416 | --progr-tra | --program-tr | --program-t)
1417 ac_prev=program_transform_name ;;
1418 -program-transform-name=* | --program-transform-name=* \
1419 | --program-transform-nam=* | --program-transform-na=* \
1420 | --program-transform-n=* | --program-transform-=* \
1421 | --program-transform=* | --program-transfor=* \
1422 | --program-transfo=* | --program-transf=* \
1423 | --program-trans=* | --program-tran=* \
1424 | --progr-tra=* | --program-tr=* | --program-t=*)
1425 program_transform_name=$ac_optarg ;;
1426
1427 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1428 ac_prev=pdfdir ;;
1429 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1430 pdfdir=$ac_optarg ;;
1431
1432 -psdir | --psdir | --psdi | --psd | --ps)
1433 ac_prev=psdir ;;
1434 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1435 psdir=$ac_optarg ;;
1436
1437 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1438 | -silent | --silent | --silen | --sile | --sil)
1439 silent=yes ;;
1440
1441 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1442 ac_prev=sbindir ;;
1443 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1444 | --sbi=* | --sb=*)
1445 sbindir=$ac_optarg ;;
1446
1447 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1448 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1449 | --sharedst | --shareds | --shared | --share | --shar \
1450 | --sha | --sh)
1451 ac_prev=sharedstatedir ;;
1452 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1453 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1454 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1455 | --sha=* | --sh=*)
1456 sharedstatedir=$ac_optarg ;;
1457
1458 -site | --site | --sit)
1459 ac_prev=site ;;
1460 -site=* | --site=* | --sit=*)
1461 site=$ac_optarg ;;
1462
1463 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1464 ac_prev=srcdir ;;
1465 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1466 srcdir=$ac_optarg ;;
1467
1468 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1469 | --syscon | --sysco | --sysc | --sys | --sy)
1470 ac_prev=sysconfdir ;;
1471 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1472 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1473 sysconfdir=$ac_optarg ;;
1474
1475 -target | --target | --targe | --targ | --tar | --ta | --t)
1476 ac_prev=target_alias ;;
1477 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1478 target_alias=$ac_optarg ;;
1479
1480 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1481 verbose=yes ;;
1482
1483 -version | --version | --versio | --versi | --vers | -V)
1484 ac_init_version=: ;;
1485
1486 -with-* | --with-*)
1487 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1488 # Reject names that are not valid shell variable names.
1489 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001490 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001491 ac_useropt_orig=$ac_useropt
1492 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1493 case $ac_user_opts in
1494 *"
1495"with_$ac_useropt"
1496"*) ;;
1497 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1498 ac_unrecognized_sep=', ';;
1499 esac
1500 eval with_$ac_useropt=\$ac_optarg ;;
1501
1502 -without-* | --without-*)
1503 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1504 # Reject names that are not valid shell variable names.
1505 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001506 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001507 ac_useropt_orig=$ac_useropt
1508 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1509 case $ac_user_opts in
1510 *"
1511"with_$ac_useropt"
1512"*) ;;
1513 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1514 ac_unrecognized_sep=', ';;
1515 esac
1516 eval with_$ac_useropt=no ;;
1517
1518 --x)
1519 # Obsolete; use --with-x.
1520 with_x=yes ;;
1521
1522 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1523 | --x-incl | --x-inc | --x-in | --x-i)
1524 ac_prev=x_includes ;;
1525 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1526 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1527 x_includes=$ac_optarg ;;
1528
1529 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1530 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1531 ac_prev=x_libraries ;;
1532 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1533 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1534 x_libraries=$ac_optarg ;;
1535
cristy98dddb52010-11-04 00:30:15 +00001536 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1537Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001538 ;;
1539
1540 *=*)
1541 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1542 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001543 case $ac_envvar in #(
1544 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001545 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001546 esac
cristy3ed852e2009-09-05 21:47:34 +00001547 eval $ac_envvar=\$ac_optarg
1548 export $ac_envvar ;;
1549
1550 *)
1551 # FIXME: should be removed in autoconf 3.0.
1552 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1553 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1554 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1555 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1556 ;;
1557
1558 esac
1559done
1560
1561if test -n "$ac_prev"; then
1562 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001563 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001564fi
1565
1566if test -n "$ac_unrecognized_opts"; then
1567 case $enable_option_checking in
1568 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001569 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001570 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1571 esac
1572fi
1573
1574# Check all directory arguments for consistency.
1575for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1576 datadir sysconfdir sharedstatedir localstatedir includedir \
1577 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1578 libdir localedir mandir
1579do
1580 eval ac_val=\$$ac_var
1581 # Remove trailing slashes.
1582 case $ac_val in
1583 */ )
1584 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1585 eval $ac_var=\$ac_val;;
1586 esac
1587 # Be sure to have absolute directory names.
1588 case $ac_val in
1589 [\\/$]* | ?:[\\/]* ) continue;;
1590 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1591 esac
cristy98dddb52010-11-04 00:30:15 +00001592 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001593done
1594
1595# There might be people who depend on the old broken behavior: `$host'
1596# used to hold the argument of --host etc.
1597# FIXME: To remove some day.
1598build=$build_alias
1599host=$host_alias
1600target=$target_alias
1601
1602# FIXME: To remove some day.
1603if test "x$host_alias" != x; then
1604 if test "x$build_alias" = x; then
1605 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001606 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1607 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001608 elif test "x$build_alias" != "x$host_alias"; then
1609 cross_compiling=yes
1610 fi
1611fi
1612
1613ac_tool_prefix=
1614test -n "$host_alias" && ac_tool_prefix=$host_alias-
1615
1616test "$silent" = yes && exec 6>/dev/null
1617
1618
1619ac_pwd=`pwd` && test -n "$ac_pwd" &&
1620ac_ls_di=`ls -di .` &&
1621ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001622 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001623test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001624 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001625
1626
1627# Find the source files, if location was not specified.
1628if test -z "$srcdir"; then
1629 ac_srcdir_defaulted=yes
1630 # Try the directory containing this script, then the parent directory.
1631 ac_confdir=`$as_dirname -- "$as_myself" ||
1632$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1633 X"$as_myself" : 'X\(//\)[^/]' \| \
1634 X"$as_myself" : 'X\(//\)$' \| \
1635 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1636$as_echo X"$as_myself" |
1637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1638 s//\1/
1639 q
1640 }
1641 /^X\(\/\/\)[^/].*/{
1642 s//\1/
1643 q
1644 }
1645 /^X\(\/\/\)$/{
1646 s//\1/
1647 q
1648 }
1649 /^X\(\/\).*/{
1650 s//\1/
1651 q
1652 }
1653 s/.*/./; q'`
1654 srcdir=$ac_confdir
1655 if test ! -r "$srcdir/$ac_unique_file"; then
1656 srcdir=..
1657 fi
1658else
1659 ac_srcdir_defaulted=no
1660fi
1661if test ! -r "$srcdir/$ac_unique_file"; then
1662 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001663 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001664fi
1665ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1666ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001667 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001668 pwd)`
1669# When building in place, set srcdir=.
1670if test "$ac_abs_confdir" = "$ac_pwd"; then
1671 srcdir=.
1672fi
1673# Remove unnecessary trailing slashes from srcdir.
1674# Double slashes in file names in object file debugging info
1675# mess up M-x gdb in Emacs.
1676case $srcdir in
1677*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1678esac
1679for ac_var in $ac_precious_vars; do
1680 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1681 eval ac_env_${ac_var}_value=\$${ac_var}
1682 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1683 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1684done
1685
1686#
1687# Report the --help message.
1688#
1689if test "$ac_init_help" = "long"; then
1690 # Omit some internal or obsolete options to make the list less imposing.
1691 # This message is too long to be a string in the A/UX 3.1 sh.
1692 cat <<_ACEOF
cristy8adecc32010-11-21 22:08:49 +00001693\`configure' configures ImageMagick 6.6.6 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001694
1695Usage: $0 [OPTION]... [VAR=VALUE]...
1696
1697To assign environment variables (e.g., CC, CFLAGS...), specify them as
1698VAR=VALUE. See below for descriptions of some of the useful variables.
1699
1700Defaults for the options are specified in brackets.
1701
1702Configuration:
1703 -h, --help display this help and exit
1704 --help=short display options specific to this package
1705 --help=recursive display the short help of all the included packages
1706 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001707 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001708 --cache-file=FILE cache test results in FILE [disabled]
1709 -C, --config-cache alias for \`--cache-file=config.cache'
1710 -n, --no-create do not create output files
1711 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1712
1713Installation directories:
1714 --prefix=PREFIX install architecture-independent files in PREFIX
1715 [$ac_default_prefix]
1716 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1717 [PREFIX]
1718
1719By default, \`make install' will install all the files in
1720\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1721an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1722for instance \`--prefix=\$HOME'.
1723
1724For better control, use the options below.
1725
1726Fine tuning of the installation directories:
1727 --bindir=DIR user executables [EPREFIX/bin]
1728 --sbindir=DIR system admin executables [EPREFIX/sbin]
1729 --libexecdir=DIR program executables [EPREFIX/libexec]
1730 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1731 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1732 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1733 --libdir=DIR object code libraries [EPREFIX/lib]
1734 --includedir=DIR C header files [PREFIX/include]
1735 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1736 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1737 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1738 --infodir=DIR info documentation [DATAROOTDIR/info]
1739 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1740 --mandir=DIR man documentation [DATAROOTDIR/man]
1741 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1742 --htmldir=DIR html documentation [DOCDIR]
1743 --dvidir=DIR dvi documentation [DOCDIR]
1744 --pdfdir=DIR pdf documentation [DOCDIR]
1745 --psdir=DIR ps documentation [DOCDIR]
1746_ACEOF
1747
1748 cat <<\_ACEOF
1749
cristy73bd4a52010-10-05 11:24:23 +00001750Program names:
1751 --program-prefix=PREFIX prepend PREFIX to installed program names
1752 --program-suffix=SUFFIX append SUFFIX to installed program names
1753 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1754
cristy3ed852e2009-09-05 21:47:34 +00001755X features:
1756 --x-includes=DIR X include files are in DIR
1757 --x-libraries=DIR X library files are in DIR
1758
1759System types:
1760 --build=BUILD configure for building on BUILD [guessed]
1761 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1762 --target=TARGET configure for building compilers for TARGET [HOST]
1763_ACEOF
1764fi
1765
1766if test -n "$ac_init_help"; then
1767 case $ac_init_help in
cristy8adecc32010-11-21 22:08:49 +00001768 short | recursive ) echo "Configuration of ImageMagick 6.6.6:";;
cristy3ed852e2009-09-05 21:47:34 +00001769 esac
1770 cat <<\_ACEOF
1771
1772Optional Features:
1773 --disable-option-checking ignore unrecognized --enable/--with options
1774 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1775 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001776 --enable-silent-rules less verbose build output (undo: `make V=1')
1777 --disable-silent-rules verbose build output (undo: `make V=0')
1778 --disable-dependency-tracking speeds up one-time build
1779 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001780 --bounds-checking enable run-time bounds-checking
1781 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001782 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001783 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001784 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001785 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001786 --enable-shared[=PKGS] build shared libraries [default=yes]
1787 --enable-static[=PKGS] build static libraries [default=yes]
1788 --enable-fast-install[=PKGS]
1789 optimize for fast installation [default=yes]
1790 --disable-libtool-lock avoid locking (might break parallel builds)
1791 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001792 --enable-delegate-build look for delegate libraries in build directory
1793 --disable-deprecated exclude deprecated methods in MagickCore and
1794 MagickWand API's
1795 --disable-installed Formally install ImageMagick under PREFIX
1796 --disable-cipher disable enciphering and deciphering image pixels
1797 --enable-embeddable enable self-contained, embeddable,
1798 zero-configuration ImageMagick
1799 --enable-hdri accurately represent the wide range of intensity
1800 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001801 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001802 --enable-maintainer-mode enable make rules and dependencies not useful
1803 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001804 --enable-ccmalloc enable 'ccmalloc' memory debug support
1805 --enable-efence enable 'efence' memory debug support
1806 --enable-prof enable 'prof' profiling support
1807 --enable-gprof enable 'gprof' profiling support
1808 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001809 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001810
1811Optional Packages:
1812 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1813 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001814 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1815 --with-dmalloc use dmalloc, as in
1816 http://www.dmalloc.com/dmalloc.tar.gz
cristy3ed852e2009-09-05 21:47:34 +00001817 --without-threads disable threads support
cristy73bd4a52010-10-05 11:24:23 +00001818 --with-pic try to use only PIC/non-PIC objects [default=use
1819 both]
1820 --with-included-ltdl use the GNU ltdl sources included here
1821 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1822 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001823 --with-modules enable building dynamically loadable modules
1824 --with-method-prefix=PREFIX
1825 prefix MagickCore API methods
1826 --with-quantum-depth=DEPTH
1827 number of bits in a pixel quantum (default 16)
1828 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1829 memory)
1830 --with-frozenpaths freeze delegate paths
1831 --without-magick-plus-plus
1832 disable build/install of Magick++
1833 --with-perl enable build/install of PerlMagick
1834 --with-perl-options=OPTIONS
1835 options to pass on command-line when generating
1836 PerlMagick's build file
1837 --with-umem enable umem memory allocation library support
1838 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1839 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001840 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001841 --without-zlib disable ZLIB support
1842 --with-autotrace enable autotrace support
1843 --without-dps disable Display Postscript support
1844 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001845 --with-dejavu-font-dir=DIR
1846 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001847 --without-fftw disable FFTW support
1848 --without-fpx disable FlashPIX support
1849 --without-fontconfig disable fontconfig support
1850 --without-freetype disable Freetype support
1851 --without-gslib enable Ghostscript library support
1852 --with-fontpath=DIR prepend to default font search path
1853 --with-gs-font-dir=DIR Ghostscript font directory
1854 --without-gvc disable GVC support
1855 --without-jbig disable JBIG support
1856 --without-jpeg disable JPEG support
1857 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001858 --without-lcms disable lcms (v1.1X) support
1859 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001860 --without-lqr disable Liquid Rescale support
cristy3ed852e2009-09-05 21:47:34 +00001861 --without-openexr disable OpenEXR support
1862 --without-png disable PNG support
1863 --without-rsvg disable RSVG support
1864 --without-tiff disable TIFF support
1865 --with-windows-font-dir=DIR
1866 directory containing MS-Windows fonts
1867 --without-wmf disable WMF support
1868 --without-xml disable XML support
1869
1870Some influential environment variables:
1871 CC C compiler command
1872 CFLAGS C compiler flags
1873 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1874 nonstandard directory <lib dir>
1875 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001876 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001877 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001878 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001879 CXX C++ compiler command
1880 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001881 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001882 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001883 XMKMF Path to xmkmf, Makefile generator for X Window System
1884 AUTOTRACE_CFLAGS
1885 C compiler flags for AUTOTRACE, overriding pkg-config
1886 AUTOTRACE_LIBS
1887 linker flags for AUTOTRACE, overriding pkg-config
1888 FONTCONFIG_CFLAGS
1889 C compiler flags for FONTCONFIG, overriding pkg-config
1890 FONTCONFIG_LIBS
1891 linker flags for FONTCONFIG, overriding pkg-config
1892 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1893 GVC_LIBS linker flags for GVC, overriding pkg-config
1894 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1895 LQR_LIBS linker flags for LQR, overriding pkg-config
1896 OPENEXR_CFLAGS
1897 C compiler flags for OPENEXR, overriding pkg-config
1898 OPENEXR_LIBS
1899 linker flags for OPENEXR, overriding pkg-config
1900 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1901 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1902 CAIRO_SVG_CFLAGS
1903 C compiler flags for CAIRO_SVG, overriding pkg-config
1904 CAIRO_SVG_LIBS
1905 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001906
1907Use these variables to override the choices made by `configure' or to help
1908it to find libraries and programs with nonstandard names/locations.
1909
1910Report bugs to <http://www.imagemagick.org>.
1911_ACEOF
1912ac_status=$?
1913fi
1914
1915if test "$ac_init_help" = "recursive"; then
1916 # If there are subdirs, report their specific --help.
1917 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1918 test -d "$ac_dir" ||
1919 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1920 continue
1921 ac_builddir=.
1922
1923case "$ac_dir" in
1924.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1925*)
1926 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1927 # A ".." for each directory in $ac_dir_suffix.
1928 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1929 case $ac_top_builddir_sub in
1930 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1931 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1932 esac ;;
1933esac
1934ac_abs_top_builddir=$ac_pwd
1935ac_abs_builddir=$ac_pwd$ac_dir_suffix
1936# for backward compatibility:
1937ac_top_builddir=$ac_top_build_prefix
1938
1939case $srcdir in
1940 .) # We are building in place.
1941 ac_srcdir=.
1942 ac_top_srcdir=$ac_top_builddir_sub
1943 ac_abs_top_srcdir=$ac_pwd ;;
1944 [\\/]* | ?:[\\/]* ) # Absolute name.
1945 ac_srcdir=$srcdir$ac_dir_suffix;
1946 ac_top_srcdir=$srcdir
1947 ac_abs_top_srcdir=$srcdir ;;
1948 *) # Relative name.
1949 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1950 ac_top_srcdir=$ac_top_build_prefix$srcdir
1951 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1952esac
1953ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1954
1955 cd "$ac_dir" || { ac_status=$?; continue; }
1956 # Check for guested configure.
1957 if test -f "$ac_srcdir/configure.gnu"; then
1958 echo &&
1959 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1960 elif test -f "$ac_srcdir/configure"; then
1961 echo &&
1962 $SHELL "$ac_srcdir/configure" --help=recursive
1963 else
1964 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1965 fi || ac_status=$?
1966 cd "$ac_pwd" || { ac_status=$?; break; }
1967 done
1968fi
1969
1970test -n "$ac_init_help" && exit $ac_status
1971if $ac_init_version; then
1972 cat <<\_ACEOF
cristy8adecc32010-11-21 22:08:49 +00001973ImageMagick configure 6.6.6
cristy98dddb52010-11-04 00:30:15 +00001974generated by GNU Autoconf 2.66
cristy3ed852e2009-09-05 21:47:34 +00001975
cristy98dddb52010-11-04 00:30:15 +00001976Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00001977This configure script is free software; the Free Software Foundation
1978gives unlimited permission to copy, distribute and modify it.
1979_ACEOF
1980 exit
1981fi
cristy8b350f62009-11-15 23:12:43 +00001982
1983## ------------------------ ##
1984## Autoconf initialization. ##
1985## ------------------------ ##
1986
1987# ac_fn_c_try_compile LINENO
1988# --------------------------
1989# Try to compile conftest.$ac_ext, and return whether this succeeded.
1990ac_fn_c_try_compile ()
1991{
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 rm -f conftest.$ac_objext
1994 if { { ac_try="$ac_compile"
1995case "(($ac_try" in
1996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997 *) ac_try_echo=$ac_try;;
1998esac
1999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000$as_echo "$ac_try_echo"; } >&5
2001 (eval "$ac_compile") 2>conftest.err
2002 ac_status=$?
2003 if test -s conftest.err; then
2004 grep -v '^ *+' conftest.err >conftest.er1
2005 cat conftest.er1 >&5
2006 mv -f conftest.er1 conftest.err
2007 fi
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; } && {
2010 test -z "$ac_c_werror_flag" ||
2011 test ! -s conftest.err
2012 } && test -s conftest.$ac_objext; then :
2013 ac_retval=0
2014else
2015 $as_echo "$as_me: failed program was:" >&5
2016sed 's/^/| /' conftest.$ac_ext >&5
2017
2018 ac_retval=1
2019fi
2020 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002021 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002022
2023} # ac_fn_c_try_compile
2024
cristy95646052009-11-28 23:05:30 +00002025# ac_fn_c_try_cpp LINENO
2026# ----------------------
2027# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2028ac_fn_c_try_cpp ()
2029{
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 if { { ac_try="$ac_cpp conftest.$ac_ext"
2032case "(($ac_try" in
2033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2034 *) ac_try_echo=$ac_try;;
2035esac
2036eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2037$as_echo "$ac_try_echo"; } >&5
2038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2039 ac_status=$?
2040 if test -s conftest.err; then
2041 grep -v '^ *+' conftest.err >conftest.er1
2042 cat conftest.er1 >&5
2043 mv -f conftest.er1 conftest.err
2044 fi
2045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2046 test $ac_status = 0; } >/dev/null && {
2047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2048 test ! -s conftest.err
2049 }; then :
2050 ac_retval=0
2051else
2052 $as_echo "$as_me: failed program was:" >&5
2053sed 's/^/| /' conftest.$ac_ext >&5
2054
2055 ac_retval=1
2056fi
2057 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2058 as_fn_set_status $ac_retval
2059
2060} # ac_fn_c_try_cpp
2061
cristy8b350f62009-11-15 23:12:43 +00002062# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2063# -------------------------------------------------------
2064# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2065# the include files in INCLUDES and setting the cache variable VAR
2066# accordingly.
2067ac_fn_c_check_header_mongrel ()
2068{
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002070 if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072$as_echo_n "checking for $2... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002073if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002074 $as_echo_n "(cached) " >&6
2075fi
2076eval ac_res=\$$3
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078$as_echo "$ac_res" >&6; }
2079else
2080 # Is the header compilable?
2081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2082$as_echo_n "checking $2 usability... " >&6; }
2083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084/* end confdefs.h. */
2085$4
2086#include <$2>
2087_ACEOF
2088if ac_fn_c_try_compile "$LINENO"; then :
2089 ac_header_compiler=yes
2090else
2091 ac_header_compiler=no
2092fi
2093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2095$as_echo "$ac_header_compiler" >&6; }
2096
2097# Is the header present?
2098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2099$as_echo_n "checking $2 presence... " >&6; }
2100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101/* end confdefs.h. */
2102#include <$2>
2103_ACEOF
2104if ac_fn_c_try_cpp "$LINENO"; then :
2105 ac_header_preproc=yes
2106else
2107 ac_header_preproc=no
2108fi
2109rm -f conftest.err conftest.$ac_ext
2110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2111$as_echo "$ac_header_preproc" >&6; }
2112
2113# So? What about this header?
2114case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2115 yes:no: )
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2117$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2119$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2120 ;;
2121 no:yes:* )
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2123$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2125$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2127$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2129$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2131$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002132( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002133## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002134## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002135 ) | sed "s/^/$as_me: WARNING: /" >&2
2136 ;;
2137esac
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139$as_echo_n "checking for $2... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002140if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002141 $as_echo_n "(cached) " >&6
2142else
2143 eval "$3=\$ac_header_compiler"
2144fi
2145eval ac_res=\$$3
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147$as_echo "$ac_res" >&6; }
2148fi
2149 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2150
2151} # ac_fn_c_check_header_mongrel
2152
2153# ac_fn_c_try_run LINENO
2154# ----------------------
2155# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2156# that executables *can* be run.
2157ac_fn_c_try_run ()
2158{
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160 if { { ac_try="$ac_link"
2161case "(($ac_try" in
2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163 *) ac_try_echo=$ac_try;;
2164esac
2165eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2166$as_echo "$ac_try_echo"; } >&5
2167 (eval "$ac_link") 2>&5
2168 ac_status=$?
2169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2171 { { case "(($ac_try" in
2172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2173 *) ac_try_echo=$ac_try;;
2174esac
2175eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2176$as_echo "$ac_try_echo"; } >&5
2177 (eval "$ac_try") 2>&5
2178 ac_status=$?
2179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2180 test $ac_status = 0; }; }; then :
2181 ac_retval=0
2182else
2183 $as_echo "$as_me: program exited with status $ac_status" >&5
2184 $as_echo "$as_me: failed program was:" >&5
2185sed 's/^/| /' conftest.$ac_ext >&5
2186
2187 ac_retval=$ac_status
2188fi
2189 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2190 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002191 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002192
2193} # ac_fn_c_try_run
2194
2195# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2196# -------------------------------------------------------
2197# Tests whether HEADER exists and can be compiled using the include files in
2198# INCLUDES, setting the cache variable VAR accordingly.
2199ac_fn_c_check_header_compile ()
2200{
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2203$as_echo_n "checking for $2... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002204if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002205 $as_echo_n "(cached) " >&6
2206else
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208/* end confdefs.h. */
2209$4
2210#include <$2>
2211_ACEOF
2212if ac_fn_c_try_compile "$LINENO"; then :
2213 eval "$3=yes"
2214else
2215 eval "$3=no"
2216fi
2217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218fi
2219eval ac_res=\$$3
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221$as_echo "$ac_res" >&6; }
2222 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2223
2224} # ac_fn_c_check_header_compile
2225
cristya0b81c32010-01-22 02:54:33 +00002226# ac_fn_cxx_try_compile LINENO
2227# ----------------------------
2228# Try to compile conftest.$ac_ext, and return whether this succeeded.
2229ac_fn_cxx_try_compile ()
2230{
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 rm -f conftest.$ac_objext
2233 if { { ac_try="$ac_compile"
2234case "(($ac_try" in
2235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2236 *) ac_try_echo=$ac_try;;
2237esac
2238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2239$as_echo "$ac_try_echo"; } >&5
2240 (eval "$ac_compile") 2>conftest.err
2241 ac_status=$?
2242 if test -s conftest.err; then
2243 grep -v '^ *+' conftest.err >conftest.er1
2244 cat conftest.er1 >&5
2245 mv -f conftest.er1 conftest.err
2246 fi
2247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2248 test $ac_status = 0; } && {
2249 test -z "$ac_cxx_werror_flag" ||
2250 test ! -s conftest.err
2251 } && test -s conftest.$ac_objext; then :
2252 ac_retval=0
2253else
2254 $as_echo "$as_me: failed program was:" >&5
2255sed 's/^/| /' conftest.$ac_ext >&5
2256
2257 ac_retval=1
2258fi
2259 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2260 as_fn_set_status $ac_retval
2261
2262} # ac_fn_cxx_try_compile
2263
cristy8b350f62009-11-15 23:12:43 +00002264# ac_fn_c_try_link LINENO
2265# -----------------------
2266# Try to link conftest.$ac_ext, and return whether this succeeded.
2267ac_fn_c_try_link ()
2268{
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 rm -f conftest.$ac_objext conftest$ac_exeext
2271 if { { ac_try="$ac_link"
2272case "(($ac_try" in
2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274 *) ac_try_echo=$ac_try;;
2275esac
2276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2277$as_echo "$ac_try_echo"; } >&5
2278 (eval "$ac_link") 2>conftest.err
2279 ac_status=$?
2280 if test -s conftest.err; then
2281 grep -v '^ *+' conftest.err >conftest.er1
2282 cat conftest.er1 >&5
2283 mv -f conftest.er1 conftest.err
2284 fi
2285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2286 test $ac_status = 0; } && {
2287 test -z "$ac_c_werror_flag" ||
2288 test ! -s conftest.err
2289 } && test -s conftest$ac_exeext && {
2290 test "$cross_compiling" = yes ||
2291 $as_test_x conftest$ac_exeext
2292 }; then :
2293 ac_retval=0
2294else
2295 $as_echo "$as_me: failed program was:" >&5
2296sed 's/^/| /' conftest.$ac_ext >&5
2297
2298 ac_retval=1
2299fi
2300 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2301 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2302 # interfere with the next link command; also delete a directory that is
2303 # left behind by Apple's compiler. We do this before executing the actions.
2304 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2305 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002306 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002307
2308} # ac_fn_c_try_link
2309
cristy73bd4a52010-10-05 11:24:23 +00002310# ac_fn_c_check_func LINENO FUNC VAR
2311# ----------------------------------
2312# Tests whether FUNC exists, setting the cache variable VAR accordingly
2313ac_fn_c_check_func ()
2314{
2315 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2317$as_echo_n "checking for $2... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002318if eval "test \"\${$3+set}\"" = set; then :
cristy73bd4a52010-10-05 11:24:23 +00002319 $as_echo_n "(cached) " >&6
2320else
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322/* end confdefs.h. */
2323/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2325#define $2 innocuous_$2
2326
2327/* System header to define __stub macros and hopefully few prototypes,
2328 which can conflict with char $2 (); below.
2329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2330 <limits.h> exists even on freestanding compilers. */
2331
2332#ifdef __STDC__
2333# include <limits.h>
2334#else
2335# include <assert.h>
2336#endif
2337
2338#undef $2
2339
2340/* Override any GCC internal prototype to avoid an error.
2341 Use char because int might match the return type of a GCC
2342 builtin and then its argument prototype would still apply. */
2343#ifdef __cplusplus
2344extern "C"
2345#endif
2346char $2 ();
2347/* The GNU C library defines this for functions which it implements
2348 to always fail with ENOSYS. Some functions are actually named
2349 something starting with __ and the normal name is an alias. */
2350#if defined __stub_$2 || defined __stub___$2
2351choke me
2352#endif
2353
2354int
2355main ()
2356{
2357return $2 ();
2358 ;
2359 return 0;
2360}
2361_ACEOF
2362if ac_fn_c_try_link "$LINENO"; then :
2363 eval "$3=yes"
2364else
2365 eval "$3=no"
2366fi
2367rm -f core conftest.err conftest.$ac_objext \
2368 conftest$ac_exeext conftest.$ac_ext
2369fi
2370eval ac_res=\$$3
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2372$as_echo "$ac_res" >&6; }
2373 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2374
2375} # ac_fn_c_check_func
2376
2377# ac_fn_cxx_try_cpp LINENO
2378# ------------------------
2379# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2380ac_fn_cxx_try_cpp ()
2381{
2382 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2383 if { { ac_try="$ac_cpp conftest.$ac_ext"
2384case "(($ac_try" in
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2387esac
2388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2389$as_echo "$ac_try_echo"; } >&5
2390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2391 ac_status=$?
2392 if test -s conftest.err; then
2393 grep -v '^ *+' conftest.err >conftest.er1
2394 cat conftest.er1 >&5
2395 mv -f conftest.er1 conftest.err
2396 fi
2397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2398 test $ac_status = 0; } >/dev/null && {
2399 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2400 test ! -s conftest.err
2401 }; then :
2402 ac_retval=0
2403else
2404 $as_echo "$as_me: failed program was:" >&5
2405sed 's/^/| /' conftest.$ac_ext >&5
2406
2407 ac_retval=1
2408fi
2409 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2410 as_fn_set_status $ac_retval
2411
2412} # ac_fn_cxx_try_cpp
2413
2414# ac_fn_cxx_try_link LINENO
2415# -------------------------
2416# Try to link conftest.$ac_ext, and return whether this succeeded.
2417ac_fn_cxx_try_link ()
2418{
2419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420 rm -f conftest.$ac_objext conftest$ac_exeext
2421 if { { ac_try="$ac_link"
2422case "(($ac_try" in
2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424 *) ac_try_echo=$ac_try;;
2425esac
2426eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2427$as_echo "$ac_try_echo"; } >&5
2428 (eval "$ac_link") 2>conftest.err
2429 ac_status=$?
2430 if test -s conftest.err; then
2431 grep -v '^ *+' conftest.err >conftest.er1
2432 cat conftest.er1 >&5
2433 mv -f conftest.er1 conftest.err
2434 fi
2435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2436 test $ac_status = 0; } && {
2437 test -z "$ac_cxx_werror_flag" ||
2438 test ! -s conftest.err
2439 } && test -s conftest$ac_exeext && {
2440 test "$cross_compiling" = yes ||
2441 $as_test_x conftest$ac_exeext
2442 }; then :
2443 ac_retval=0
2444else
2445 $as_echo "$as_me: failed program was:" >&5
2446sed 's/^/| /' conftest.$ac_ext >&5
2447
2448 ac_retval=1
2449fi
2450 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2451 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2452 # interfere with the next link command; also delete a directory that is
2453 # left behind by Apple's compiler. We do this before executing the actions.
2454 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2455 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2456 as_fn_set_status $ac_retval
2457
2458} # ac_fn_cxx_try_link
2459
cristy98dddb52010-11-04 00:30:15 +00002460# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2461# ---------------------------------------------
2462# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2463# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002464ac_fn_c_check_decl ()
2465{
2466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002467 as_decl_name=`echo $2|sed 's/ *(.*//'`
2468 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2470$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2471if eval "test \"\${$3+set}\"" = set; then :
cristy73bd4a52010-10-05 11:24:23 +00002472 $as_echo_n "(cached) " >&6
2473else
2474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475/* end confdefs.h. */
2476$4
2477int
2478main ()
2479{
cristy98dddb52010-11-04 00:30:15 +00002480#ifndef $as_decl_name
2481#ifdef __cplusplus
2482 (void) $as_decl_use;
2483#else
2484 (void) $as_decl_name;
2485#endif
cristy73bd4a52010-10-05 11:24:23 +00002486#endif
2487
2488 ;
2489 return 0;
2490}
2491_ACEOF
2492if ac_fn_c_try_compile "$LINENO"; then :
2493 eval "$3=yes"
2494else
2495 eval "$3=no"
2496fi
2497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2498fi
2499eval ac_res=\$$3
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2501$as_echo "$ac_res" >&6; }
2502 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2503
2504} # ac_fn_c_check_decl
2505
cristy8b350f62009-11-15 23:12:43 +00002506# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2507# -------------------------------------------
2508# Tests whether TYPE exists after having included INCLUDES, setting cache
2509# variable VAR accordingly.
2510ac_fn_c_check_type ()
2511{
2512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2514$as_echo_n "checking for $2... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002515if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002516 $as_echo_n "(cached) " >&6
2517else
2518 eval "$3=no"
2519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520/* end confdefs.h. */
2521$4
2522int
2523main ()
2524{
2525if (sizeof ($2))
2526 return 0;
2527 ;
2528 return 0;
2529}
2530_ACEOF
2531if ac_fn_c_try_compile "$LINENO"; then :
2532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2533/* end confdefs.h. */
2534$4
2535int
2536main ()
2537{
2538if (sizeof (($2)))
2539 return 0;
2540 ;
2541 return 0;
2542}
2543_ACEOF
2544if ac_fn_c_try_compile "$LINENO"; then :
2545
2546else
2547 eval "$3=yes"
2548fi
2549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2550fi
2551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2552fi
2553eval ac_res=\$$3
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2555$as_echo "$ac_res" >&6; }
2556 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2557
2558} # ac_fn_c_check_type
2559
cristy92703d82010-04-26 00:18:18 +00002560# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2561# ----------------------------------------------------
2562# Tries to find if the field MEMBER exists in type AGGR, after including
2563# INCLUDES, setting cache variable VAR accordingly.
2564ac_fn_c_check_member ()
2565{
2566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2568$as_echo_n "checking for $2.$3... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002569if eval "test \"\${$4+set}\"" = set; then :
cristy92703d82010-04-26 00:18:18 +00002570 $as_echo_n "(cached) " >&6
2571else
2572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573/* end confdefs.h. */
2574$5
2575int
2576main ()
2577{
2578static $2 ac_aggr;
2579if (ac_aggr.$3)
2580return 0;
2581 ;
2582 return 0;
2583}
2584_ACEOF
2585if ac_fn_c_try_compile "$LINENO"; then :
2586 eval "$4=yes"
2587else
2588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589/* end confdefs.h. */
2590$5
2591int
2592main ()
2593{
2594static $2 ac_aggr;
2595if (sizeof ac_aggr.$3)
2596return 0;
2597 ;
2598 return 0;
2599}
2600_ACEOF
2601if ac_fn_c_try_compile "$LINENO"; then :
2602 eval "$4=yes"
2603else
2604 eval "$4=no"
2605fi
2606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607fi
2608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609fi
2610eval ac_res=\$$4
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2612$as_echo "$ac_res" >&6; }
2613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2614
2615} # ac_fn_c_check_member
2616
cristy8b350f62009-11-15 23:12:43 +00002617# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2618# --------------------------------------------
2619# Tries to find the compile-time value of EXPR in a program that includes
2620# INCLUDES, setting VAR accordingly. Returns whether the value could be
2621# computed
2622ac_fn_c_compute_int ()
2623{
2624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2625 if test "$cross_compiling" = yes; then
2626 # Depending upon the size, compute the lo and hi bounds.
2627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2628/* end confdefs.h. */
2629$4
2630int
2631main ()
2632{
2633static int test_array [1 - 2 * !(($2) >= 0)];
2634test_array [0] = 0
2635
2636 ;
2637 return 0;
2638}
2639_ACEOF
2640if ac_fn_c_try_compile "$LINENO"; then :
2641 ac_lo=0 ac_mid=0
2642 while :; do
2643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2644/* end confdefs.h. */
2645$4
2646int
2647main ()
2648{
2649static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2650test_array [0] = 0
2651
2652 ;
2653 return 0;
2654}
2655_ACEOF
2656if ac_fn_c_try_compile "$LINENO"; then :
2657 ac_hi=$ac_mid; break
2658else
2659 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2660 if test $ac_lo -le $ac_mid; then
2661 ac_lo= ac_hi=
2662 break
2663 fi
2664 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2665fi
2666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2667 done
2668else
2669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2670/* end confdefs.h. */
2671$4
2672int
2673main ()
2674{
2675static int test_array [1 - 2 * !(($2) < 0)];
2676test_array [0] = 0
2677
2678 ;
2679 return 0;
2680}
2681_ACEOF
2682if ac_fn_c_try_compile "$LINENO"; then :
2683 ac_hi=-1 ac_mid=-1
2684 while :; do
2685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2686/* end confdefs.h. */
2687$4
2688int
2689main ()
2690{
2691static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2692test_array [0] = 0
2693
2694 ;
2695 return 0;
2696}
2697_ACEOF
2698if ac_fn_c_try_compile "$LINENO"; then :
2699 ac_lo=$ac_mid; break
2700else
2701 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2702 if test $ac_mid -le $ac_hi; then
2703 ac_lo= ac_hi=
2704 break
2705 fi
2706 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2707fi
2708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2709 done
2710else
2711 ac_lo= ac_hi=
2712fi
2713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2714fi
2715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2716# Binary search between lo and hi bounds.
2717while test "x$ac_lo" != "x$ac_hi"; do
2718 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720/* end confdefs.h. */
2721$4
2722int
2723main ()
2724{
2725static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2726test_array [0] = 0
2727
2728 ;
2729 return 0;
2730}
2731_ACEOF
2732if ac_fn_c_try_compile "$LINENO"; then :
2733 ac_hi=$ac_mid
2734else
2735 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2736fi
2737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738done
2739case $ac_lo in #((
2740?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2741'') ac_retval=1 ;;
2742esac
2743 else
2744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745/* end confdefs.h. */
2746$4
2747static long int longval () { return $2; }
2748static unsigned long int ulongval () { return $2; }
2749#include <stdio.h>
2750#include <stdlib.h>
2751int
2752main ()
2753{
2754
2755 FILE *f = fopen ("conftest.val", "w");
2756 if (! f)
2757 return 1;
2758 if (($2) < 0)
2759 {
2760 long int i = longval ();
2761 if (i != ($2))
2762 return 1;
2763 fprintf (f, "%ld", i);
2764 }
2765 else
2766 {
2767 unsigned long int i = ulongval ();
2768 if (i != ($2))
2769 return 1;
2770 fprintf (f, "%lu", i);
2771 }
2772 /* Do not output a trailing newline, as this causes \r\n confusion
2773 on some platforms. */
2774 return ferror (f) || fclose (f) != 0;
2775
2776 ;
2777 return 0;
2778}
2779_ACEOF
2780if ac_fn_c_try_run "$LINENO"; then :
2781 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2782else
2783 ac_retval=1
2784fi
2785rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2786 conftest.$ac_objext conftest.beam conftest.$ac_ext
2787rm -f conftest.val
2788
2789 fi
2790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002791 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002792
2793} # ac_fn_c_compute_int
2794
2795# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2796# ---------------------------------------------------------
2797# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2798# the include files in INCLUDES and setting the cache variable VAR
2799# accordingly.
2800ac_fn_cxx_check_header_mongrel ()
2801{
2802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002803 if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2805$as_echo_n "checking for $2... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002806if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002807 $as_echo_n "(cached) " >&6
2808fi
2809eval ac_res=\$$3
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2811$as_echo "$ac_res" >&6; }
2812else
2813 # Is the header compilable?
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2815$as_echo_n "checking $2 usability... " >&6; }
2816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817/* end confdefs.h. */
2818$4
2819#include <$2>
2820_ACEOF
2821if ac_fn_cxx_try_compile "$LINENO"; then :
2822 ac_header_compiler=yes
2823else
2824 ac_header_compiler=no
2825fi
2826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2828$as_echo "$ac_header_compiler" >&6; }
2829
2830# Is the header present?
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2832$as_echo_n "checking $2 presence... " >&6; }
2833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2834/* end confdefs.h. */
2835#include <$2>
2836_ACEOF
2837if ac_fn_cxx_try_cpp "$LINENO"; then :
2838 ac_header_preproc=yes
2839else
2840 ac_header_preproc=no
2841fi
2842rm -f conftest.err conftest.$ac_ext
2843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2844$as_echo "$ac_header_preproc" >&6; }
2845
2846# So? What about this header?
2847case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2848 yes:no: )
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2850$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2852$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2853 ;;
2854 no:yes:* )
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2856$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2858$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2860$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2862$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2864$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002865( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002866## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002867## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002868 ) | sed "s/^/$as_me: WARNING: /" >&2
2869 ;;
2870esac
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2872$as_echo_n "checking for $2... " >&6; }
cristy98dddb52010-11-04 00:30:15 +00002873if eval "test \"\${$3+set}\"" = set; then :
cristy8b350f62009-11-15 23:12:43 +00002874 $as_echo_n "(cached) " >&6
2875else
2876 eval "$3=\$ac_header_compiler"
2877fi
2878eval ac_res=\$$3
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2880$as_echo "$ac_res" >&6; }
2881fi
2882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2883
2884} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002885cat >config.log <<_ACEOF
2886This file contains any messages produced by compilers while
2887running configure, to aid debugging if configure makes a mistake.
2888
cristy8adecc32010-11-21 22:08:49 +00002889It was created by ImageMagick $as_me 6.6.6, which was
cristy98dddb52010-11-04 00:30:15 +00002890generated by GNU Autoconf 2.66. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002891
2892 $ $0 $@
2893
2894_ACEOF
2895exec 5>>config.log
2896{
2897cat <<_ASUNAME
2898## --------- ##
2899## Platform. ##
2900## --------- ##
2901
2902hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2903uname -m = `(uname -m) 2>/dev/null || echo unknown`
2904uname -r = `(uname -r) 2>/dev/null || echo unknown`
2905uname -s = `(uname -s) 2>/dev/null || echo unknown`
2906uname -v = `(uname -v) 2>/dev/null || echo unknown`
2907
2908/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2909/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2910
2911/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2912/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2913/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2914/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2915/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2916/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2917/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2918
2919_ASUNAME
2920
2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922for as_dir in $PATH
2923do
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002926 $as_echo "PATH: $as_dir"
2927 done
cristy3ed852e2009-09-05 21:47:34 +00002928IFS=$as_save_IFS
2929
2930} >&5
2931
2932cat >&5 <<_ACEOF
2933
2934
2935## ----------- ##
2936## Core tests. ##
2937## ----------- ##
2938
2939_ACEOF
2940
2941
2942# Keep a trace of the command line.
2943# Strip out --no-create and --no-recursion so they do not pile up.
2944# Strip out --silent because we don't want to record it for future runs.
2945# Also quote any args containing shell meta-characters.
2946# Make two passes to allow for proper duplicate-argument suppression.
2947ac_configure_args=
2948ac_configure_args0=
2949ac_configure_args1=
2950ac_must_keep_next=false
2951for ac_pass in 1 2
2952do
2953 for ac_arg
2954 do
2955 case $ac_arg in
2956 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2957 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2958 | -silent | --silent | --silen | --sile | --sil)
2959 continue ;;
2960 *\'*)
2961 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2962 esac
2963 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00002964 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00002965 2)
cristy8b350f62009-11-15 23:12:43 +00002966 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002967 if test $ac_must_keep_next = true; then
2968 ac_must_keep_next=false # Got value, back to normal.
2969 else
2970 case $ac_arg in
2971 *=* | --config-cache | -C | -disable-* | --disable-* \
2972 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2973 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2974 | -with-* | --with-* | -without-* | --without-* | --x)
2975 case "$ac_configure_args0 " in
2976 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2977 esac
2978 ;;
2979 -* ) ac_must_keep_next=true ;;
2980 esac
2981 fi
cristy8b350f62009-11-15 23:12:43 +00002982 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002983 ;;
2984 esac
2985 done
2986done
cristy8b350f62009-11-15 23:12:43 +00002987{ ac_configure_args0=; unset ac_configure_args0;}
2988{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00002989
2990# When interrupted or exit'd, cleanup temporary files, and complete
2991# config.log. We remove comments because anyway the quotes in there
2992# would cause problems or look ugly.
2993# WARNING: Use '\'' to represent an apostrophe within the trap.
2994# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2995trap 'exit_status=$?
2996 # Save into config.log some information that might help in debugging.
2997 {
2998 echo
2999
cristy98dddb52010-11-04 00:30:15 +00003000 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003001## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003002## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003003 echo
3004 # The following way of writing the cache mishandles newlines in values,
3005(
3006 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3007 eval ac_val=\$$ac_var
3008 case $ac_val in #(
3009 *${as_nl}*)
3010 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003011 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003012$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3013 esac
3014 case $ac_var in #(
3015 _ | IFS | as_nl) ;; #(
3016 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003017 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003018 esac ;;
3019 esac
3020 done
3021 (set) 2>&1 |
3022 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3023 *${as_nl}ac_space=\ *)
3024 sed -n \
3025 "s/'\''/'\''\\\\'\'''\''/g;
3026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3027 ;; #(
3028 *)
3029 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3030 ;;
3031 esac |
3032 sort
3033)
3034 echo
3035
cristy98dddb52010-11-04 00:30:15 +00003036 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003037## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003038## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003039 echo
3040 for ac_var in $ac_subst_vars
3041 do
3042 eval ac_val=\$$ac_var
3043 case $ac_val in
3044 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3045 esac
3046 $as_echo "$ac_var='\''$ac_val'\''"
3047 done | sort
3048 echo
3049
3050 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003051 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003052## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003053## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003054 echo
3055 for ac_var in $ac_subst_files
3056 do
3057 eval ac_val=\$$ac_var
3058 case $ac_val in
3059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3060 esac
3061 $as_echo "$ac_var='\''$ac_val'\''"
3062 done | sort
3063 echo
3064 fi
3065
3066 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003067 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003068## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003069## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003070 echo
3071 cat confdefs.h
3072 echo
3073 fi
3074 test "$ac_signal" != 0 &&
3075 $as_echo "$as_me: caught signal $ac_signal"
3076 $as_echo "$as_me: exit $exit_status"
3077 } >&5
3078 rm -f core *.core core.conftest.* &&
3079 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3080 exit $exit_status
3081' 0
3082for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003083 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003084done
3085ac_signal=0
3086
3087# confdefs.h avoids OS command line length limits that DEFS can exceed.
3088rm -f -r conftest* confdefs.h
3089
cristy8b350f62009-11-15 23:12:43 +00003090$as_echo "/* confdefs.h */" > confdefs.h
3091
cristy3ed852e2009-09-05 21:47:34 +00003092# Predefined preprocessor variables.
3093
3094cat >>confdefs.h <<_ACEOF
3095#define PACKAGE_NAME "$PACKAGE_NAME"
3096_ACEOF
3097
cristy3ed852e2009-09-05 21:47:34 +00003098cat >>confdefs.h <<_ACEOF
3099#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3100_ACEOF
3101
cristy3ed852e2009-09-05 21:47:34 +00003102cat >>confdefs.h <<_ACEOF
3103#define PACKAGE_VERSION "$PACKAGE_VERSION"
3104_ACEOF
3105
cristy3ed852e2009-09-05 21:47:34 +00003106cat >>confdefs.h <<_ACEOF
3107#define PACKAGE_STRING "$PACKAGE_STRING"
3108_ACEOF
3109
cristy3ed852e2009-09-05 21:47:34 +00003110cat >>confdefs.h <<_ACEOF
3111#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3112_ACEOF
3113
cristy8b350f62009-11-15 23:12:43 +00003114cat >>confdefs.h <<_ACEOF
3115#define PACKAGE_URL "$PACKAGE_URL"
3116_ACEOF
3117
cristy3ed852e2009-09-05 21:47:34 +00003118
3119# Let the site file select an alternate cache file if it wants to.
3120# Prefer an explicitly selected file to automatically selected ones.
3121ac_site_file1=NONE
3122ac_site_file2=NONE
3123if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003124 # We do not want a PATH search for config.site.
3125 case $CONFIG_SITE in #((
3126 -*) ac_site_file1=./$CONFIG_SITE;;
3127 */*) ac_site_file1=$CONFIG_SITE;;
3128 *) ac_site_file1=./$CONFIG_SITE;;
3129 esac
cristy3ed852e2009-09-05 21:47:34 +00003130elif test "x$prefix" != xNONE; then
3131 ac_site_file1=$prefix/share/config.site
3132 ac_site_file2=$prefix/etc/config.site
3133else
3134 ac_site_file1=$ac_default_prefix/share/config.site
3135 ac_site_file2=$ac_default_prefix/etc/config.site
3136fi
3137for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3138do
3139 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003140 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003141 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003142$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3143 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003144 . "$ac_site_file" \
3145 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3147as_fn_error $? "failed to load site script $ac_site_file
3148See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003149 fi
3150done
3151
3152if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003153 # Some versions of bash will fail to source /dev/null (special files
3154 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3155 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003156 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003157$as_echo "$as_me: loading cache $cache_file" >&6;}
3158 case $cache_file in
3159 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3160 *) . "./$cache_file";;
3161 esac
3162 fi
3163else
cristy8b350f62009-11-15 23:12:43 +00003164 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003165$as_echo "$as_me: creating cache $cache_file" >&6;}
3166 >$cache_file
3167fi
3168
cristycd4c5312009-11-22 01:19:08 +00003169as_fn_append ac_header_list " stdlib.h"
3170as_fn_append ac_header_list " unistd.h"
3171as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003172# Check that the precious variables saved in the cache have kept the same
3173# value.
3174ac_cache_corrupted=false
3175for ac_var in $ac_precious_vars; do
3176 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3177 eval ac_new_set=\$ac_env_${ac_var}_set
3178 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3179 eval ac_new_val=\$ac_env_${ac_var}_value
3180 case $ac_old_set,$ac_new_set in
3181 set,)
cristy8b350f62009-11-15 23:12:43 +00003182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003183$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3184 ac_cache_corrupted=: ;;
3185 ,set)
cristy8b350f62009-11-15 23:12:43 +00003186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003187$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3188 ac_cache_corrupted=: ;;
3189 ,);;
3190 *)
3191 if test "x$ac_old_val" != "x$ac_new_val"; then
3192 # differences in whitespace do not lead to failure.
3193 ac_old_val_w=`echo x $ac_old_val`
3194 ac_new_val_w=`echo x $ac_new_val`
3195 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003197$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3198 ac_cache_corrupted=:
3199 else
cristy8b350f62009-11-15 23:12:43 +00003200 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003201$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3202 eval $ac_var=\$ac_old_val
3203 fi
cristy8b350f62009-11-15 23:12:43 +00003204 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003205$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003206 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003207$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3208 fi;;
3209 esac
3210 # Pass precious variables to config.status.
3211 if test "$ac_new_set" = set; then
3212 case $ac_new_val in
3213 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3214 *) ac_arg=$ac_var=$ac_new_val ;;
3215 esac
3216 case " $ac_configure_args " in
3217 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003218 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003219 esac
3220 fi
3221done
3222if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003224$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003226$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003227 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003228fi
cristy8b350f62009-11-15 23:12:43 +00003229## -------------------- ##
3230## Main body of script. ##
3231## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003232
3233ac_ext=c
3234ac_cpp='$CPP $CPPFLAGS'
3235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238
3239
3240
3241ac_aux_dir=
3242for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003243 if test -f "$ac_dir/install-sh"; then
3244 ac_aux_dir=$ac_dir
3245 ac_install_sh="$ac_aux_dir/install-sh -c"
3246 break
3247 elif test -f "$ac_dir/install.sh"; then
3248 ac_aux_dir=$ac_dir
3249 ac_install_sh="$ac_aux_dir/install.sh -c"
3250 break
3251 elif test -f "$ac_dir/shtool"; then
3252 ac_aux_dir=$ac_dir
3253 ac_install_sh="$ac_aux_dir/shtool install -c"
3254 break
3255 fi
cristy3ed852e2009-09-05 21:47:34 +00003256done
3257if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003258 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003259fi
3260
3261# These three variables are undocumented and unsupported,
3262# and are intended to be withdrawn in a future Autoconf release.
3263# They can cause serious problems if a builder's source tree is in a directory
3264# whose full name contains unusual characters.
3265ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3266ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3267ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3268
3269
3270
3271
3272ac_config_headers="$ac_config_headers config/config.h"
3273
cristy24fc1fe2010-10-23 21:13:01 +00003274
cristy73bd4a52010-10-05 11:24:23 +00003275ac_config_commands="$ac_config_commands magick/magick-config.h"
3276
cristy430a7312010-01-21 20:44:04 +00003277ac_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 +00003278
3279
3280#
3281# Save initial user-tunable values
3282#
3283USER_LIBS=$LIBS
3284for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3285 eval isset=\${$var+set}
3286 if test "$isset" = 'set'; then
3287 eval val=$`echo $var`
3288 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3289 fi
3290done
3291
3292
3293CONFIGURE_ARGS="$0 ${ac_configure_args}"
3294
3295
3296# Source file containing package/library versioning information.
3297. ${srcdir}/version.sh
3298
cristy15a88782010-01-31 23:24:49 +00003299echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003300# Make sure we can run config.sub.
3301$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003302 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003303
cristy8b350f62009-11-15 23:12:43 +00003304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003305$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003306if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003307 $as_echo_n "(cached) " >&6
3308else
3309 ac_build_alias=$build_alias
3310test "x$ac_build_alias" = x &&
3311 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3312test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003313 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003314ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003315 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003316
3317fi
cristy8b350f62009-11-15 23:12:43 +00003318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003319$as_echo "$ac_cv_build" >&6; }
3320case $ac_cv_build in
3321*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003322*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003323esac
3324build=$ac_cv_build
3325ac_save_IFS=$IFS; IFS='-'
3326set x $ac_cv_build
3327shift
3328build_cpu=$1
3329build_vendor=$2
3330shift; shift
3331# Remember, the first character of IFS is used to create $*,
3332# except with old shells:
3333build_os=$*
3334IFS=$ac_save_IFS
3335case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3336
3337
cristy8b350f62009-11-15 23:12:43 +00003338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003339$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003340if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003341 $as_echo_n "(cached) " >&6
3342else
3343 if test "x$host_alias" = x; then
3344 ac_cv_host=$ac_cv_build
3345else
3346 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003347 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003348fi
3349
3350fi
cristy8b350f62009-11-15 23:12:43 +00003351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003352$as_echo "$ac_cv_host" >&6; }
3353case $ac_cv_host in
3354*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003355*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003356esac
3357host=$ac_cv_host
3358ac_save_IFS=$IFS; IFS='-'
3359set x $ac_cv_host
3360shift
3361host_cpu=$1
3362host_vendor=$2
3363shift; shift
3364# Remember, the first character of IFS is used to create $*,
3365# except with old shells:
3366host_os=$*
3367IFS=$ac_save_IFS
3368case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3369
3370
cristy8b350f62009-11-15 23:12:43 +00003371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003372$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003373if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003374 $as_echo_n "(cached) " >&6
3375else
3376 if test "x$target_alias" = x; then
3377 ac_cv_target=$ac_cv_host
3378else
3379 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003380 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003381fi
3382
3383fi
cristy8b350f62009-11-15 23:12:43 +00003384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003385$as_echo "$ac_cv_target" >&6; }
3386case $ac_cv_target in
3387*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003388*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003389esac
3390target=$ac_cv_target
3391ac_save_IFS=$IFS; IFS='-'
3392set x $ac_cv_target
3393shift
3394target_cpu=$1
3395target_vendor=$2
3396shift; shift
3397# Remember, the first character of IFS is used to create $*,
3398# except with old shells:
3399target_os=$*
3400IFS=$ac_save_IFS
3401case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3402
3403
3404# The aliases save the names the user supplied, while $host etc.
3405# will get canonicalized.
3406test -n "$target_alias" &&
3407 test "$program_prefix$program_suffix$program_transform_name" = \
3408 NONENONEs,x,x, &&
3409 program_prefix=${target_alias}-
3410
cristy837d6dc2010-02-27 01:16:57 +00003411
3412
3413
3414
cristy3225a072010-04-17 01:47:28 +00003415MAGICK_TARGET_CPU=$target_cpu
3416
3417
3418MAGICK_TARGET_VENDOR=$target_vendor
3419
3420
3421MAGICK_TARGET_OS=$target_os
3422
3423
cristy3ed852e2009-09-05 21:47:34 +00003424# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003425MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3426
3427MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3428
cristy3ed852e2009-09-05 21:47:34 +00003429
3430
3431# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3433$as_echo_n "checking whether build environment is sane... " >&6; }
3434# Just in case
3435sleep 1
3436echo timestamp > conftest.file
3437# Reject unsafe characters in $srcdir or the absolute working directory
3438# name. Accept space and tab only in the latter.
3439am_lf='
3440'
3441case `pwd` in
3442 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003443 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003444esac
3445case $srcdir in
3446 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003447 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003448esac
cristy3ed852e2009-09-05 21:47:34 +00003449
cristy73bd4a52010-10-05 11:24:23 +00003450# Do `set' in a subshell so we don't clobber the current shell's
3451# arguments. Must try -L first in case configure is actually a
3452# symlink; some systems play weird games with the mod time of symlinks
3453# (eg FreeBSD returns the mod time of the symlink's containing
3454# directory).
3455if (
3456 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3457 if test "$*" = "X"; then
3458 # -L didn't work.
3459 set X `ls -t "$srcdir/configure" conftest.file`
3460 fi
3461 rm -f conftest.file
3462 if test "$*" != "X $srcdir/configure conftest.file" \
3463 && test "$*" != "X conftest.file $srcdir/configure"; then
3464
3465 # If neither matched, then we have a broken ls. This can happen
3466 # if, for instance, CONFIG_SHELL is bash and it inherits a
3467 # broken ls alias from the environment. This has actually
3468 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003469 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003470alias in your environment" "$LINENO" 5
3471 fi
3472
3473 test "$2" = conftest.file
3474 )
3475then
3476 # Ok.
3477 :
3478else
cristy98dddb52010-11-04 00:30:15 +00003479 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003480Check your system clock" "$LINENO" 5
3481fi
3482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3483$as_echo "yes" >&6; }
3484
3485am__api_version='1.11'
3486
3487# Find a good install program. We prefer a C program (faster),
3488# so one script is as good as another. But avoid the broken or
3489# incompatible versions:
3490# SysV /etc/install, /usr/sbin/install
3491# SunOS /usr/etc/install
3492# IRIX /sbin/install
3493# AIX /bin/install
3494# AmigaOS /C/install, which installs bootblocks on floppy discs
3495# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3496# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3497# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3498# OS/2's system install, which has a completely different semantic
3499# ./install, which can be erroneously created by make from ./install.sh.
3500# Reject install programs that cannot install multiple files.
3501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3502$as_echo_n "checking for a BSD-compatible install... " >&6; }
3503if test -z "$INSTALL"; then
3504if test "${ac_cv_path_install+set}" = set; then :
3505 $as_echo_n "(cached) " >&6
3506else
3507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508for as_dir in $PATH
3509do
3510 IFS=$as_save_IFS
3511 test -z "$as_dir" && as_dir=.
3512 # Account for people who put trailing slashes in PATH elements.
3513case $as_dir/ in #((
3514 ./ | .// | /[cC]/* | \
3515 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3516 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3517 /usr/ucb/* ) ;;
3518 *)
3519 # OSF1 and SCO ODT 3.0 have their own names for install.
3520 # Don't use installbsd from OSF since it installs stuff as root
3521 # by default.
3522 for ac_prog in ginstall scoinst install; do
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3525 if test $ac_prog = install &&
3526 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3527 # AIX install. It has an incompatible calling convention.
3528 :
3529 elif test $ac_prog = install &&
3530 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3531 # program-specific install script used by HP pwplus--don't use.
3532 :
3533 else
3534 rm -rf conftest.one conftest.two conftest.dir
3535 echo one > conftest.one
3536 echo two > conftest.two
3537 mkdir conftest.dir
3538 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3539 test -s conftest.one && test -s conftest.two &&
3540 test -s conftest.dir/conftest.one &&
3541 test -s conftest.dir/conftest.two
3542 then
3543 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3544 break 3
3545 fi
3546 fi
3547 fi
3548 done
3549 done
3550 ;;
3551esac
3552
3553 done
3554IFS=$as_save_IFS
3555
3556rm -rf conftest.one conftest.two conftest.dir
3557
3558fi
3559 if test "${ac_cv_path_install+set}" = set; then
3560 INSTALL=$ac_cv_path_install
3561 else
3562 # As a last resort, use the slow shell script. Don't cache a
3563 # value for INSTALL within a source directory, because that will
3564 # break other packages using the cache if that directory is
3565 # removed, or if the value is a relative name.
3566 INSTALL=$ac_install_sh
3567 fi
3568fi
3569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3570$as_echo "$INSTALL" >&6; }
3571
3572# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3573# It thinks the first close brace ends the variable substitution.
3574test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3575
3576test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3577
3578test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3579
3580test "$program_prefix" != NONE &&
3581 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3582# Use a double $ so make ignores it.
3583test "$program_suffix" != NONE &&
3584 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3585# Double any \ or $.
3586# By default was `s,x,x', remove it if useless.
3587ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3588program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3589
3590# expand $ac_aux_dir to an absolute path
3591am_aux_dir=`cd $ac_aux_dir && pwd`
3592
3593if test x"${MISSING+set}" != xset; then
3594 case $am_aux_dir in
3595 *\ * | *\ *)
3596 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3597 *)
3598 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3599 esac
3600fi
3601# Use eval to expand $SHELL
3602if eval "$MISSING --run true"; then
3603 am_missing_run="$MISSING --run "
3604else
3605 am_missing_run=
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3607$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3608fi
3609
3610if test x"${install_sh}" != xset; then
3611 case $am_aux_dir in
3612 *\ * | *\ *)
3613 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3614 *)
3615 install_sh="\${SHELL} $am_aux_dir/install-sh"
3616 esac
3617fi
3618
3619# Installed binaries are usually stripped using `strip' when the user
3620# run `make install-strip'. However `strip' might not be the right
3621# tool to use in cross-compilation environments, therefore Automake
3622# will honor the `STRIP' environment variable to overrule this program.
3623if test "$cross_compiling" != no; then
3624 if test -n "$ac_tool_prefix"; then
3625 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3626set dummy ${ac_tool_prefix}strip; ac_word=$2
3627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3628$as_echo_n "checking for $ac_word... " >&6; }
3629if test "${ac_cv_prog_STRIP+set}" = set; then :
3630 $as_echo_n "(cached) " >&6
3631else
3632 if test -n "$STRIP"; then
3633 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3634else
3635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636for as_dir in $PATH
3637do
3638 IFS=$as_save_IFS
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3642 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3644 break 2
3645 fi
3646done
3647 done
3648IFS=$as_save_IFS
3649
3650fi
3651fi
3652STRIP=$ac_cv_prog_STRIP
3653if test -n "$STRIP"; then
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3655$as_echo "$STRIP" >&6; }
3656else
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3658$as_echo "no" >&6; }
3659fi
3660
3661
3662fi
3663if test -z "$ac_cv_prog_STRIP"; then
3664 ac_ct_STRIP=$STRIP
3665 # Extract the first word of "strip", so it can be a program name with args.
3666set dummy strip; ac_word=$2
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3668$as_echo_n "checking for $ac_word... " >&6; }
3669if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3670 $as_echo_n "(cached) " >&6
3671else
3672 if test -n "$ac_ct_STRIP"; then
3673 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3674else
3675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676for as_dir in $PATH
3677do
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3682 ac_cv_prog_ac_ct_STRIP="strip"
3683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 break 2
3685 fi
3686done
3687 done
3688IFS=$as_save_IFS
3689
3690fi
3691fi
3692ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3693if test -n "$ac_ct_STRIP"; then
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3695$as_echo "$ac_ct_STRIP" >&6; }
3696else
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698$as_echo "no" >&6; }
3699fi
3700
3701 if test "x$ac_ct_STRIP" = x; then
3702 STRIP=":"
3703 else
3704 case $cross_compiling:$ac_tool_warned in
3705yes:)
3706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3708ac_tool_warned=yes ;;
3709esac
3710 STRIP=$ac_ct_STRIP
3711 fi
3712else
3713 STRIP="$ac_cv_prog_STRIP"
3714fi
3715
3716fi
3717INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3718
3719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3720$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3721if test -z "$MKDIR_P"; then
3722 if test "${ac_cv_path_mkdir+set}" = set; then :
3723 $as_echo_n "(cached) " >&6
3724else
3725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3727do
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
3730 for ac_prog in mkdir gmkdir; do
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3733 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3734 'mkdir (GNU coreutils) '* | \
3735 'mkdir (coreutils) '* | \
3736 'mkdir (fileutils) '4.1*)
3737 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3738 break 3;;
3739 esac
3740 done
3741 done
3742 done
3743IFS=$as_save_IFS
3744
3745fi
3746
3747 test -d ./--version && rmdir ./--version
3748 if test "${ac_cv_path_mkdir+set}" = set; then
3749 MKDIR_P="$ac_cv_path_mkdir -p"
3750 else
3751 # As a last resort, use the slow shell script. Don't cache a
3752 # value for MKDIR_P within a source directory, because that will
3753 # break other packages using the cache if that directory is
3754 # removed, or if the value is a relative name.
3755 MKDIR_P="$ac_install_sh -d"
3756 fi
3757fi
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3759$as_echo "$MKDIR_P" >&6; }
3760
3761mkdir_p="$MKDIR_P"
3762case $mkdir_p in
3763 [\\/$]* | ?:[\\/]*) ;;
3764 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3765esac
3766
3767for ac_prog in gawk mawk nawk awk
3768do
3769 # Extract the first word of "$ac_prog", so it can be a program name with args.
3770set dummy $ac_prog; ac_word=$2
3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3772$as_echo_n "checking for $ac_word... " >&6; }
3773if test "${ac_cv_prog_AWK+set}" = set; then :
3774 $as_echo_n "(cached) " >&6
3775else
3776 if test -n "$AWK"; then
3777 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3778else
3779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780for as_dir in $PATH
3781do
3782 IFS=$as_save_IFS
3783 test -z "$as_dir" && as_dir=.
3784 for ac_exec_ext in '' $ac_executable_extensions; do
3785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3786 ac_cv_prog_AWK="$ac_prog"
3787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3788 break 2
3789 fi
3790done
3791 done
3792IFS=$as_save_IFS
3793
3794fi
3795fi
3796AWK=$ac_cv_prog_AWK
3797if test -n "$AWK"; then
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3799$as_echo "$AWK" >&6; }
3800else
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3802$as_echo "no" >&6; }
3803fi
3804
3805
3806 test -n "$AWK" && break
3807done
3808
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3810$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3811set x ${MAKE-make}
3812ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy98dddb52010-11-04 00:30:15 +00003813if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
cristy73bd4a52010-10-05 11:24:23 +00003814 $as_echo_n "(cached) " >&6
3815else
3816 cat >conftest.make <<\_ACEOF
3817SHELL = /bin/sh
3818all:
3819 @echo '@@@%%%=$(MAKE)=@@@%%%'
3820_ACEOF
cristy98dddb52010-11-04 00:30:15 +00003821# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00003822case `${MAKE-make} -f conftest.make 2>/dev/null` in
3823 *@@@%%%=?*=@@@%%%*)
3824 eval ac_cv_prog_make_${ac_make}_set=yes;;
3825 *)
3826 eval ac_cv_prog_make_${ac_make}_set=no;;
3827esac
3828rm -f conftest.make
3829fi
3830if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3832$as_echo "yes" >&6; }
3833 SET_MAKE=
3834else
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3836$as_echo "no" >&6; }
3837 SET_MAKE="MAKE=${MAKE-make}"
3838fi
3839
3840rm -rf .tst 2>/dev/null
3841mkdir .tst 2>/dev/null
3842if test -d .tst; then
3843 am__leading_dot=.
3844else
3845 am__leading_dot=_
3846fi
3847rmdir .tst 2>/dev/null
3848
3849if test "`cd $srcdir && pwd`" != "`pwd`"; then
3850 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3851 # is not polluted with repeated "-I."
3852 am__isrc=' -I$(srcdir)'
3853 # test to see if srcdir already configured
3854 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00003855 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00003856 fi
3857fi
3858
3859# test whether we have cygpath
3860if test -z "$CYGPATH_W"; then
3861 if (cygpath --version) >/dev/null 2>/dev/null; then
3862 CYGPATH_W='cygpath -w'
3863 else
3864 CYGPATH_W=echo
3865 fi
3866fi
3867
3868
3869# Define the identity of the package.
3870 PACKAGE=$PACKAGE_NAME
3871 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3872
3873
3874# Some tools Automake needs.
3875
3876ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3877
3878
3879AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3880
3881
3882AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3883
3884
3885AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3886
3887
3888MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3889
3890# We need awk for the "check" target. The system "awk" is bad on
3891# some platforms.
3892# Always define AMTAR for backward compatibility.
3893
3894AMTAR=${AMTAR-"${am_missing_run}tar"}
3895
3896am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3897
3898
3899
3900
3901
cristy3ed852e2009-09-05 21:47:34 +00003902
3903# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00003904# Check whether --enable-silent-rules was given.
3905if test "${enable_silent_rules+set}" = set; then :
3906 enableval=$enable_silent_rules;
3907fi
3908
3909case $enable_silent_rules in
3910yes) AM_DEFAULT_VERBOSITY=0;;
3911no) AM_DEFAULT_VERBOSITY=1;;
3912*) AM_DEFAULT_VERBOSITY=0;;
3913esac
3914AM_BACKSLASH='\'
3915
cristy3ed852e2009-09-05 21:47:34 +00003916
3917MAGICK_LIB_VERSION="0x"
3918if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3919 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3920fi
3921MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3922if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3923 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3924fi
3925MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3926if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3927 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3928fi
3929MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3930
3931
3932# Definition used to define MagickLibVersionText in version.h
3933MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3934
3935
3936# Definition used to define MagickLibVersionNumber in version.h
3937MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3938
3939
3940# Regenerate config.status if ChangeLog or version.sh is updated.
3941CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3942
3943
3944PERLMAINCC=$CC
3945
3946MAGICK_CFLAGS=''
3947MAGICK_CPPFLAGS=$CPPFLAGS_USER
3948MAGICK_PCFLAGS=$CPPFLAGS_USER
3949MAGICK_LDFLAGS=''
3950MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00003951MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00003952
3953#
3954# Evaluate shell variable equivalents to Makefile directory variables
3955#
3956if test "x$prefix" = xNONE; then
3957 prefix=$ac_default_prefix
3958fi
3959# Let make expand exec_prefix.
3960if test "x$exec_prefix" = xNONE; then
3961 exec_prefix='${prefix}'
3962fi
3963
3964#
3965eval "eval PREFIX_DIR=${prefix}"
3966
3967eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3968
3969eval "eval BIN_DIR=$bindir"
3970
3971eval "eval SBIN_DIR=$sbindir"
3972
3973eval "eval LIBEXEC_DIR=$libexecdir"
3974
3975eval "eval DATA_DIR=$datadir"
3976
3977eval "eval SYSCONF_DIR=$sysconfdir"
3978
3979eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3980
3981eval "eval LOCALSTATE_DIR=$localstatedir"
3982
3983eval "eval LIB_DIR=$libdir"
3984
3985eval "eval INCLUDE_DIR=$includedir"
3986
3987eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
3988
3989eval "eval INFO_DIR=$infodir"
3990
3991eval "eval MAN_DIR=$mandir"
3992
3993
3994# Get full paths to source and build directories
3995srcdirfull="`cd $srcdir && pwd`"
3996builddir="`pwd`"
3997
3998#
3999# Compute variables useful for running uninstalled software.
4000#
4001MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4002MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4003MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4004MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4005DIRSEP=':'
4006case "${build_os}" in
4007 mingw* )
4008 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4009 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4010 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4011 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4012 DIRSEP=';'
4013 ;;
4014esac
4015case "${host_os}" in
4016 mingw* )
4017 DIRSEP=';'
4018 ;;
4019esac
4020
4021
4022
4023
4024
4025
cristya0b81c32010-01-22 02:54:33 +00004026
4027#
4028# Enable OS features.
4029#
cristy73bd4a52010-10-05 11:24:23 +00004030DEPDIR="${am__leading_dot}deps"
4031
4032ac_config_commands="$ac_config_commands depfiles"
4033
4034
4035am_make=${MAKE-make}
4036cat > confinc << 'END'
4037am__doit:
4038 @echo this is the am__doit target
4039.PHONY: am__doit
4040END
4041# If we don't find an include directive, just comment out the code.
4042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4043$as_echo_n "checking for style of include used by $am_make... " >&6; }
4044am__include="#"
4045am__quote=
4046_am_result=none
4047# First try GNU make style include.
4048echo "include confinc" > confmf
4049# Ignore all kinds of additional output from `make'.
4050case `$am_make -s -f confmf 2> /dev/null` in #(
4051*the\ am__doit\ target*)
4052 am__include=include
4053 am__quote=
4054 _am_result=GNU
4055 ;;
4056esac
4057# Now try BSD make style include.
4058if test "$am__include" = "#"; then
4059 echo '.include "confinc"' > confmf
4060 case `$am_make -s -f confmf 2> /dev/null` in #(
4061 *the\ am__doit\ target*)
4062 am__include=.include
4063 am__quote="\""
4064 _am_result=BSD
4065 ;;
4066 esac
4067fi
4068
4069
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4071$as_echo "$_am_result" >&6; }
4072rm -f confinc confmf
4073
4074# Check whether --enable-dependency-tracking was given.
4075if test "${enable_dependency_tracking+set}" = set; then :
4076 enableval=$enable_dependency_tracking;
4077fi
4078
4079if test "x$enable_dependency_tracking" != xno; then
4080 am_depcomp="$ac_aux_dir/depcomp"
4081 AMDEPBACKSLASH='\'
4082fi
4083 if test "x$enable_dependency_tracking" != xno; then
4084 AMDEP_TRUE=
4085 AMDEP_FALSE='#'
4086else
4087 AMDEP_TRUE='#'
4088 AMDEP_FALSE=
4089fi
4090
4091
cristy3ed852e2009-09-05 21:47:34 +00004092ac_ext=c
4093ac_cpp='$CPP $CPPFLAGS'
4094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4096ac_compiler_gnu=$ac_cv_c_compiler_gnu
4097if test -n "$ac_tool_prefix"; then
4098 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4099set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004101$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004102if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004103 $as_echo_n "(cached) " >&6
4104else
4105 if test -n "$CC"; then
4106 ac_cv_prog_CC="$CC" # Let the user override the test.
4107else
4108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109for as_dir in $PATH
4110do
4111 IFS=$as_save_IFS
4112 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004113 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4115 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004117 break 2
4118 fi
4119done
cristy8b350f62009-11-15 23:12:43 +00004120 done
cristy3ed852e2009-09-05 21:47:34 +00004121IFS=$as_save_IFS
4122
4123fi
4124fi
4125CC=$ac_cv_prog_CC
4126if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004128$as_echo "$CC" >&6; }
4129else
cristy8b350f62009-11-15 23:12:43 +00004130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004131$as_echo "no" >&6; }
4132fi
4133
4134
4135fi
4136if test -z "$ac_cv_prog_CC"; then
4137 ac_ct_CC=$CC
4138 # Extract the first word of "gcc", so it can be a program name with args.
4139set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004141$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004142if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004143 $as_echo_n "(cached) " >&6
4144else
4145 if test -n "$ac_ct_CC"; then
4146 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4147else
4148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149for as_dir in $PATH
4150do
4151 IFS=$as_save_IFS
4152 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004153 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4155 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004157 break 2
4158 fi
4159done
cristy8b350f62009-11-15 23:12:43 +00004160 done
cristy3ed852e2009-09-05 21:47:34 +00004161IFS=$as_save_IFS
4162
4163fi
4164fi
4165ac_ct_CC=$ac_cv_prog_ac_ct_CC
4166if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004168$as_echo "$ac_ct_CC" >&6; }
4169else
cristy8b350f62009-11-15 23:12:43 +00004170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004171$as_echo "no" >&6; }
4172fi
4173
4174 if test "x$ac_ct_CC" = x; then
4175 CC=""
4176 else
4177 case $cross_compiling:$ac_tool_warned in
4178yes:)
cristy8b350f62009-11-15 23:12:43 +00004179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4181ac_tool_warned=yes ;;
4182esac
4183 CC=$ac_ct_CC
4184 fi
4185else
4186 CC="$ac_cv_prog_CC"
4187fi
4188
4189if test -z "$CC"; then
4190 if test -n "$ac_tool_prefix"; then
4191 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4192set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004194$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004195if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004196 $as_echo_n "(cached) " >&6
4197else
4198 if test -n "$CC"; then
4199 ac_cv_prog_CC="$CC" # Let the user override the test.
4200else
4201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202for as_dir in $PATH
4203do
4204 IFS=$as_save_IFS
4205 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004206 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4208 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004210 break 2
4211 fi
4212done
cristy8b350f62009-11-15 23:12:43 +00004213 done
cristy3ed852e2009-09-05 21:47:34 +00004214IFS=$as_save_IFS
4215
4216fi
4217fi
4218CC=$ac_cv_prog_CC
4219if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004221$as_echo "$CC" >&6; }
4222else
cristy8b350f62009-11-15 23:12:43 +00004223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004224$as_echo "no" >&6; }
4225fi
4226
4227
4228 fi
4229fi
4230if test -z "$CC"; then
4231 # Extract the first word of "cc", so it can be a program name with args.
4232set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004234$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004235if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004236 $as_echo_n "(cached) " >&6
4237else
4238 if test -n "$CC"; then
4239 ac_cv_prog_CC="$CC" # Let the user override the test.
4240else
4241 ac_prog_rejected=no
4242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243for as_dir in $PATH
4244do
4245 IFS=$as_save_IFS
4246 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004247 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4249 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4250 ac_prog_rejected=yes
4251 continue
4252 fi
4253 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004255 break 2
4256 fi
4257done
cristy8b350f62009-11-15 23:12:43 +00004258 done
cristy3ed852e2009-09-05 21:47:34 +00004259IFS=$as_save_IFS
4260
4261if test $ac_prog_rejected = yes; then
4262 # We found a bogon in the path, so make sure we never use it.
4263 set dummy $ac_cv_prog_CC
4264 shift
4265 if test $# != 0; then
4266 # We chose a different compiler from the bogus one.
4267 # However, it has the same basename, so the bogon will be chosen
4268 # first if we set CC to just the basename; use the full file name.
4269 shift
4270 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4271 fi
4272fi
4273fi
4274fi
4275CC=$ac_cv_prog_CC
4276if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004278$as_echo "$CC" >&6; }
4279else
cristy8b350f62009-11-15 23:12:43 +00004280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004281$as_echo "no" >&6; }
4282fi
4283
4284
4285fi
4286if test -z "$CC"; then
4287 if test -n "$ac_tool_prefix"; then
4288 for ac_prog in cl.exe
4289 do
4290 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4291set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004293$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004294if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004295 $as_echo_n "(cached) " >&6
4296else
4297 if test -n "$CC"; then
4298 ac_cv_prog_CC="$CC" # Let the user override the test.
4299else
4300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301for as_dir in $PATH
4302do
4303 IFS=$as_save_IFS
4304 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004305 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4307 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004309 break 2
4310 fi
4311done
cristy8b350f62009-11-15 23:12:43 +00004312 done
cristy3ed852e2009-09-05 21:47:34 +00004313IFS=$as_save_IFS
4314
4315fi
4316fi
4317CC=$ac_cv_prog_CC
4318if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004320$as_echo "$CC" >&6; }
4321else
cristy8b350f62009-11-15 23:12:43 +00004322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004323$as_echo "no" >&6; }
4324fi
4325
4326
4327 test -n "$CC" && break
4328 done
4329fi
4330if test -z "$CC"; then
4331 ac_ct_CC=$CC
4332 for ac_prog in cl.exe
4333do
4334 # Extract the first word of "$ac_prog", so it can be a program name with args.
4335set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004337$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004338if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004339 $as_echo_n "(cached) " >&6
4340else
4341 if test -n "$ac_ct_CC"; then
4342 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4343else
4344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345for as_dir in $PATH
4346do
4347 IFS=$as_save_IFS
4348 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004349 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4351 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004353 break 2
4354 fi
4355done
cristy8b350f62009-11-15 23:12:43 +00004356 done
cristy3ed852e2009-09-05 21:47:34 +00004357IFS=$as_save_IFS
4358
4359fi
4360fi
4361ac_ct_CC=$ac_cv_prog_ac_ct_CC
4362if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004364$as_echo "$ac_ct_CC" >&6; }
4365else
cristy8b350f62009-11-15 23:12:43 +00004366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004367$as_echo "no" >&6; }
4368fi
4369
4370
4371 test -n "$ac_ct_CC" && break
4372done
4373
4374 if test "x$ac_ct_CC" = x; then
4375 CC=""
4376 else
4377 case $cross_compiling:$ac_tool_warned in
4378yes:)
cristy8b350f62009-11-15 23:12:43 +00004379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4381ac_tool_warned=yes ;;
4382esac
4383 CC=$ac_ct_CC
4384 fi
4385fi
4386
4387fi
4388
4389
cristy8b350f62009-11-15 23:12:43 +00004390test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004392as_fn_error $? "no acceptable C compiler found in \$PATH
4393See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004394
4395# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004396$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004397set X $ac_compile
4398ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004399for ac_option in --version -v -V -qversion; do
4400 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004401case "(($ac_try" in
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4404esac
cristy8b350f62009-11-15 23:12:43 +00004405eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4406$as_echo "$ac_try_echo"; } >&5
4407 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004408 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004409 if test -s conftest.err; then
4410 sed '10a\
4411... rest of stderr output deleted ...
4412 10q' conftest.err >conftest.er1
4413 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004414 fi
cristycd4c5312009-11-22 01:19:08 +00004415 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4417 test $ac_status = 0; }
4418done
cristy3ed852e2009-09-05 21:47:34 +00004419
cristy8b350f62009-11-15 23:12:43 +00004420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004421/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004422
cristy3ed852e2009-09-05 21:47:34 +00004423int
4424main ()
4425{
4426
4427 ;
4428 return 0;
4429}
4430_ACEOF
4431ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004432ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004433# Try to create an executable without -o first, disregard a.out.
4434# It will help us diagnose broken compilers, and finding out an intuition
4435# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4437$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004438ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4439
4440# The possible output files:
4441ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4442
4443ac_rmfiles=
4444for ac_file in $ac_files
4445do
4446 case $ac_file in
4447 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4448 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4449 esac
4450done
4451rm -f $ac_rmfiles
4452
cristy8b350f62009-11-15 23:12:43 +00004453if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004454case "(($ac_try" in
4455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456 *) ac_try_echo=$ac_try;;
4457esac
cristy8b350f62009-11-15 23:12:43 +00004458eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4459$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004460 (eval "$ac_link_default") 2>&5
4461 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4463 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004464 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4465# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4466# in a Makefile. We should not override ac_cv_exeext if it was cached,
4467# so that the user can short-circuit this test for compilers unknown to
4468# Autoconf.
4469for ac_file in $ac_files ''
4470do
4471 test -f "$ac_file" || continue
4472 case $ac_file in
4473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4474 ;;
4475 [ab].out )
4476 # We found the default executable, but exeext='' is most
4477 # certainly right.
4478 break;;
4479 *.* )
cristy8b350f62009-11-15 23:12:43 +00004480 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004481 then :; else
4482 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4483 fi
4484 # We set ac_cv_exeext here because the later test for it is not
4485 # safe: cross compilers may not add the suffix if given an `-o'
4486 # argument, so we may need to know it at that point already.
4487 # Even if this section looks crufty: it has the advantage of
4488 # actually working.
4489 break;;
4490 * )
4491 break;;
4492 esac
4493done
4494test "$ac_cv_exeext" = no && ac_cv_exeext=
4495
4496else
4497 ac_file=''
4498fi
cristy8b350f62009-11-15 23:12:43 +00004499if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4501$as_echo "no" >&6; }
4502$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004503sed 's/^/| /' conftest.$ac_ext >&5
4504
cristy8b350f62009-11-15 23:12:43 +00004505{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004506$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004507as_fn_error 77 "C compiler cannot create executables
4508See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004509else
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4511$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004512fi
cristycd4c5312009-11-22 01:19:08 +00004513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4514$as_echo_n "checking for C compiler default output file name... " >&6; }
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4516$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004517ac_exeext=$ac_cv_exeext
4518
cristycd4c5312009-11-22 01:19:08 +00004519rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004520ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004522$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004523if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004524case "(($ac_try" in
4525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526 *) ac_try_echo=$ac_try;;
4527esac
cristy8b350f62009-11-15 23:12:43 +00004528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4529$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004530 (eval "$ac_link") 2>&5
4531 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4533 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004534 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4535# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4536# work properly (i.e., refer to `conftest.exe'), while it won't with
4537# `rm'.
4538for ac_file in conftest.exe conftest conftest.*; do
4539 test -f "$ac_file" || continue
4540 case $ac_file in
4541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4542 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4543 break;;
4544 * ) break;;
4545 esac
4546done
4547else
cristy8b350f62009-11-15 23:12:43 +00004548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004550as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4551See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004552fi
cristycd4c5312009-11-22 01:19:08 +00004553rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004555$as_echo "$ac_cv_exeext" >&6; }
4556
4557rm -f conftest.$ac_ext
4558EXEEXT=$ac_cv_exeext
4559ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561/* end confdefs.h. */
4562#include <stdio.h>
4563int
4564main ()
4565{
4566FILE *f = fopen ("conftest.out", "w");
4567 return ferror (f) || fclose (f) != 0;
4568
4569 ;
4570 return 0;
4571}
4572_ACEOF
4573ac_clean_files="$ac_clean_files conftest.out"
4574# Check that the compiler produces executables we can run. If not, either
4575# the compiler is broken, or we cross compile.
4576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4577$as_echo_n "checking whether we are cross compiling... " >&6; }
4578if test "$cross_compiling" != yes; then
4579 { { ac_try="$ac_link"
4580case "(($ac_try" in
4581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582 *) ac_try_echo=$ac_try;;
4583esac
4584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4585$as_echo "$ac_try_echo"; } >&5
4586 (eval "$ac_link") 2>&5
4587 ac_status=$?
4588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4589 test $ac_status = 0; }
4590 if { ac_try='./conftest$ac_cv_exeext'
4591 { { case "(($ac_try" in
4592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4593 *) ac_try_echo=$ac_try;;
4594esac
4595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4596$as_echo "$ac_try_echo"; } >&5
4597 (eval "$ac_try") 2>&5
4598 ac_status=$?
4599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4600 test $ac_status = 0; }; }; then
4601 cross_compiling=no
4602 else
4603 if test "$cross_compiling" = maybe; then
4604 cross_compiling=yes
4605 else
4606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004608as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004609If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004610See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004611 fi
4612 fi
4613fi
4614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4615$as_echo "$cross_compiling" >&6; }
4616
4617rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4618ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004620$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004621if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004622 $as_echo_n "(cached) " >&6
4623else
cristy8b350f62009-11-15 23:12:43 +00004624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004625/* end confdefs.h. */
4626
4627int
4628main ()
4629{
4630
4631 ;
4632 return 0;
4633}
4634_ACEOF
4635rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004636if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004637case "(($ac_try" in
4638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4640esac
cristy8b350f62009-11-15 23:12:43 +00004641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4642$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004643 (eval "$ac_compile") 2>&5
4644 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4646 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004647 for ac_file in conftest.o conftest.obj conftest.*; do
4648 test -f "$ac_file" || continue;
4649 case $ac_file in
4650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4651 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4652 break;;
4653 esac
4654done
4655else
4656 $as_echo "$as_me: failed program was:" >&5
4657sed 's/^/| /' conftest.$ac_ext >&5
4658
cristy8b350f62009-11-15 23:12:43 +00004659{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004661as_fn_error $? "cannot compute suffix of object files: cannot compile
4662See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004663fi
cristy3ed852e2009-09-05 21:47:34 +00004664rm -f conftest.$ac_cv_objext conftest.$ac_ext
4665fi
cristy8b350f62009-11-15 23:12:43 +00004666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004667$as_echo "$ac_cv_objext" >&6; }
4668OBJEXT=$ac_cv_objext
4669ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004671$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004672if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004673 $as_echo_n "(cached) " >&6
4674else
cristy8b350f62009-11-15 23:12:43 +00004675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004676/* end confdefs.h. */
4677
4678int
4679main ()
4680{
4681#ifndef __GNUC__
4682 choke me
4683#endif
4684
4685 ;
4686 return 0;
4687}
4688_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004689if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004690 ac_compiler_gnu=yes
4691else
cristy8b350f62009-11-15 23:12:43 +00004692 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004693fi
cristy3ed852e2009-09-05 21:47:34 +00004694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4695ac_cv_c_compiler_gnu=$ac_compiler_gnu
4696
4697fi
cristy8b350f62009-11-15 23:12:43 +00004698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004699$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4700if test $ac_compiler_gnu = yes; then
4701 GCC=yes
4702else
4703 GCC=
4704fi
4705ac_test_CFLAGS=${CFLAGS+set}
4706ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004708$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004709if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004710 $as_echo_n "(cached) " >&6
4711else
4712 ac_save_c_werror_flag=$ac_c_werror_flag
4713 ac_c_werror_flag=yes
4714 ac_cv_prog_cc_g=no
4715 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004717/* end confdefs.h. */
4718
4719int
4720main ()
4721{
4722
4723 ;
4724 return 0;
4725}
4726_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004727if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004728 ac_cv_prog_cc_g=yes
4729else
cristy8b350f62009-11-15 23:12:43 +00004730 CFLAGS=""
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004732/* end confdefs.h. */
4733
4734int
4735main ()
4736{
4737
4738 ;
4739 return 0;
4740}
4741_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004742if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004743
cristy8b350f62009-11-15 23:12:43 +00004744else
4745 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004746 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004748/* end confdefs.h. */
4749
4750int
4751main ()
4752{
4753
4754 ;
4755 return 0;
4756}
4757_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004758if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004759 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004760fi
cristy3ed852e2009-09-05 21:47:34 +00004761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762fi
cristy3ed852e2009-09-05 21:47:34 +00004763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764fi
cristy3ed852e2009-09-05 21:47:34 +00004765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766 ac_c_werror_flag=$ac_save_c_werror_flag
4767fi
cristy8b350f62009-11-15 23:12:43 +00004768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004769$as_echo "$ac_cv_prog_cc_g" >&6; }
4770if test "$ac_test_CFLAGS" = set; then
4771 CFLAGS=$ac_save_CFLAGS
4772elif test $ac_cv_prog_cc_g = yes; then
4773 if test "$GCC" = yes; then
4774 CFLAGS="-g -O2"
4775 else
4776 CFLAGS="-g"
4777 fi
4778else
4779 if test "$GCC" = yes; then
4780 CFLAGS="-O2"
4781 else
4782 CFLAGS=
4783 fi
4784fi
cristy8b350f62009-11-15 23:12:43 +00004785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004786$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004787if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004788 $as_echo_n "(cached) " >&6
4789else
4790 ac_cv_prog_cc_c89=no
4791ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004793/* end confdefs.h. */
4794#include <stdarg.h>
4795#include <stdio.h>
4796#include <sys/types.h>
4797#include <sys/stat.h>
4798/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4799struct buf { int x; };
4800FILE * (*rcsopen) (struct buf *, struct stat *, int);
4801static char *e (p, i)
4802 char **p;
4803 int i;
4804{
4805 return p[i];
4806}
4807static char *f (char * (*g) (char **, int), char **p, ...)
4808{
4809 char *s;
4810 va_list v;
4811 va_start (v,p);
4812 s = g (p, va_arg (v,int));
4813 va_end (v);
4814 return s;
4815}
4816
4817/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4818 function prototypes and stuff, but not '\xHH' hex character constants.
4819 These don't provoke an error unfortunately, instead are silently treated
4820 as 'x'. The following induces an error, until -std is added to get
4821 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4822 array size at least. It's necessary to write '\x00'==0 to get something
4823 that's true only with -std. */
4824int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4825
4826/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4827 inside strings and character constants. */
4828#define FOO(x) 'x'
4829int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4830
4831int test (int i, double x);
4832struct s1 {int (*f) (int a);};
4833struct s2 {int (*f) (double a);};
4834int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4835int argc;
4836char **argv;
4837int
4838main ()
4839{
4840return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4841 ;
4842 return 0;
4843}
4844_ACEOF
4845for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4846 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4847do
4848 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004849 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004850 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004851fi
cristy3ed852e2009-09-05 21:47:34 +00004852rm -f core conftest.err conftest.$ac_objext
4853 test "x$ac_cv_prog_cc_c89" != "xno" && break
4854done
4855rm -f conftest.$ac_ext
4856CC=$ac_save_CC
4857
4858fi
4859# AC_CACHE_VAL
4860case "x$ac_cv_prog_cc_c89" in
4861 x)
cristy8b350f62009-11-15 23:12:43 +00004862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004863$as_echo "none needed" >&6; } ;;
4864 xno)
cristy8b350f62009-11-15 23:12:43 +00004865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004866$as_echo "unsupported" >&6; } ;;
4867 *)
4868 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004870$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4871esac
cristy8b350f62009-11-15 23:12:43 +00004872if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004873
cristy8b350f62009-11-15 23:12:43 +00004874fi
cristy3ed852e2009-09-05 21:47:34 +00004875
4876ac_ext=c
4877ac_cpp='$CPP $CPPFLAGS'
4878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4880ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00004881
cristy73bd4a52010-10-05 11:24:23 +00004882depcc="$CC" am_compiler_list=
4883
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4885$as_echo_n "checking dependency style of $depcc... " >&6; }
4886if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4887 $as_echo_n "(cached) " >&6
4888else
4889 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4890 # We make a subdir and do the tests there. Otherwise we can end up
4891 # making bogus files that we don't know about and never remove. For
4892 # instance it was reported that on HP-UX the gcc test will end up
4893 # making a dummy file named `D' -- because `-MD' means `put the output
4894 # in D'.
4895 mkdir conftest.dir
4896 # Copy depcomp to subdir because otherwise we won't find it if we're
4897 # using a relative directory.
4898 cp "$am_depcomp" conftest.dir
4899 cd conftest.dir
4900 # We will build objects and dependencies in a subdirectory because
4901 # it helps to detect inapplicable dependency modes. For instance
4902 # both Tru64's cc and ICC support -MD to output dependencies as a
4903 # side effect of compilation, but ICC will put the dependencies in
4904 # the current directory while Tru64 will put them in the object
4905 # directory.
4906 mkdir sub
4907
4908 am_cv_CC_dependencies_compiler_type=none
4909 if test "$am_compiler_list" = ""; then
4910 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4911 fi
4912 am__universal=false
4913 case " $depcc " in #(
4914 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4915 esac
4916
4917 for depmode in $am_compiler_list; do
4918 # Setup a source with many dependencies, because some compilers
4919 # like to wrap large dependency lists on column 80 (with \), and
4920 # we should not choose a depcomp mode which is confused by this.
4921 #
4922 # We need to recreate these files for each test, as the compiler may
4923 # overwrite some of them when testing with obscure command lines.
4924 # This happens at least with the AIX C compiler.
4925 : > sub/conftest.c
4926 for i in 1 2 3 4 5 6; do
4927 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4928 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4929 # Solaris 8's {/usr,}/bin/sh.
4930 touch sub/conftst$i.h
4931 done
4932 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4933
4934 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4935 # mode. It turns out that the SunPro C++ compiler does not properly
4936 # handle `-M -o', and we need to detect this. Also, some Intel
4937 # versions had trouble with output in subdirs
4938 am__obj=sub/conftest.${OBJEXT-o}
4939 am__minus_obj="-o $am__obj"
4940 case $depmode in
4941 gcc)
4942 # This depmode causes a compiler race in universal mode.
4943 test "$am__universal" = false || continue
4944 ;;
4945 nosideeffect)
4946 # after this tag, mechanisms are not by side-effect, so they'll
4947 # only be used when explicitly requested
4948 if test "x$enable_dependency_tracking" = xyes; then
4949 continue
4950 else
4951 break
4952 fi
4953 ;;
4954 msvisualcpp | msvcmsys)
4955 # This compiler won't grok `-c -o', but also, the minuso test has
4956 # not run yet. These depmodes are late enough in the game, and
4957 # so weak that their functioning should not be impacted.
4958 am__obj=conftest.${OBJEXT-o}
4959 am__minus_obj=
4960 ;;
4961 none) break ;;
4962 esac
4963 if depmode=$depmode \
4964 source=sub/conftest.c object=$am__obj \
4965 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4966 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4967 >/dev/null 2>conftest.err &&
4968 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4969 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4970 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4971 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4972 # icc doesn't choke on unknown options, it will just issue warnings
4973 # or remarks (even with -Werror). So we grep stderr for any message
4974 # that says an option was ignored or not supported.
4975 # When given -MP, icc 7.0 and 7.1 complain thusly:
4976 # icc: Command line warning: ignoring option '-M'; no argument required
4977 # The diagnosis changed in icc 8.0:
4978 # icc: Command line remark: option '-MP' not supported
4979 if (grep 'ignoring option' conftest.err ||
4980 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4981 am_cv_CC_dependencies_compiler_type=$depmode
4982 break
4983 fi
4984 fi
4985 done
4986
4987 cd ..
4988 rm -rf conftest.dir
4989else
4990 am_cv_CC_dependencies_compiler_type=none
4991fi
4992
4993fi
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4995$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4996CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4997
4998 if
4999 test "x$enable_dependency_tracking" != xno \
5000 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5001 am__fastdepCC_TRUE=
5002 am__fastdepCC_FALSE='#'
5003else
5004 am__fastdepCC_TRUE='#'
5005 am__fastdepCC_FALSE=
5006fi
5007
5008
cristy3ed852e2009-09-05 21:47:34 +00005009
cristya0b81c32010-01-22 02:54:33 +00005010ac_ext=c
5011ac_cpp='$CPP $CPPFLAGS'
5012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5014ac_compiler_gnu=$ac_cv_c_compiler_gnu
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5016$as_echo_n "checking how to run the C preprocessor... " >&6; }
5017# On Suns, sometimes $CPP names a directory.
5018if test -n "$CPP" && test -d "$CPP"; then
5019 CPP=
5020fi
5021if test -z "$CPP"; then
5022 if test "${ac_cv_prog_CPP+set}" = set; then :
5023 $as_echo_n "(cached) " >&6
5024else
5025 # Double quotes because CPP needs to be expanded
5026 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5027 do
5028 ac_preproc_ok=false
5029for ac_c_preproc_warn_flag in '' yes
5030do
5031 # Use a header file that comes with gcc, so configuring glibc
5032 # with a fresh cross-compiler works.
5033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5034 # <limits.h> exists even on freestanding compilers.
5035 # On the NeXT, cc -E runs the code through the compiler's parser,
5036 # not just through cpp. "Syntax error" is here to catch this case.
5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038/* end confdefs.h. */
5039#ifdef __STDC__
5040# include <limits.h>
5041#else
5042# include <assert.h>
5043#endif
5044 Syntax error
5045_ACEOF
5046if ac_fn_c_try_cpp "$LINENO"; then :
5047
5048else
5049 # Broken: fails on valid input.
5050continue
5051fi
5052rm -f conftest.err conftest.$ac_ext
5053
5054 # OK, works on sane cases. Now check whether nonexistent headers
5055 # can be detected and how.
5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057/* end confdefs.h. */
5058#include <ac_nonexistent.h>
5059_ACEOF
5060if ac_fn_c_try_cpp "$LINENO"; then :
5061 # Broken: success on invalid input.
5062continue
5063else
5064 # Passes both tests.
5065ac_preproc_ok=:
5066break
5067fi
5068rm -f conftest.err conftest.$ac_ext
5069
5070done
5071# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5072rm -f conftest.err conftest.$ac_ext
5073if $ac_preproc_ok; then :
5074 break
5075fi
5076
5077 done
5078 ac_cv_prog_CPP=$CPP
5079
5080fi
5081 CPP=$ac_cv_prog_CPP
5082else
5083 ac_cv_prog_CPP=$CPP
5084fi
5085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5086$as_echo "$CPP" >&6; }
5087ac_preproc_ok=false
5088for ac_c_preproc_warn_flag in '' yes
5089do
5090 # Use a header file that comes with gcc, so configuring glibc
5091 # with a fresh cross-compiler works.
5092 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5093 # <limits.h> exists even on freestanding compilers.
5094 # On the NeXT, cc -E runs the code through the compiler's parser,
5095 # not just through cpp. "Syntax error" is here to catch this case.
5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097/* end confdefs.h. */
5098#ifdef __STDC__
5099# include <limits.h>
5100#else
5101# include <assert.h>
5102#endif
5103 Syntax error
5104_ACEOF
5105if ac_fn_c_try_cpp "$LINENO"; then :
5106
5107else
5108 # Broken: fails on valid input.
5109continue
5110fi
5111rm -f conftest.err conftest.$ac_ext
5112
5113 # OK, works on sane cases. Now check whether nonexistent headers
5114 # can be detected and how.
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116/* end confdefs.h. */
5117#include <ac_nonexistent.h>
5118_ACEOF
5119if ac_fn_c_try_cpp "$LINENO"; then :
5120 # Broken: success on invalid input.
5121continue
5122else
5123 # Passes both tests.
5124ac_preproc_ok=:
5125break
5126fi
5127rm -f conftest.err conftest.$ac_ext
5128
5129done
5130# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5131rm -f conftest.err conftest.$ac_ext
5132if $ac_preproc_ok; then :
5133
5134else
5135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005137as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5138See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005139fi
5140
5141ac_ext=c
5142ac_cpp='$CPP $CPPFLAGS'
5143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5145ac_compiler_gnu=$ac_cv_c_compiler_gnu
5146
5147
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5149$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5150if test "${ac_cv_path_GREP+set}" = set; then :
5151 $as_echo_n "(cached) " >&6
5152else
5153 if test -z "$GREP"; then
5154 ac_path_GREP_found=false
5155 # Loop through the user's path and test for each of PROGNAME-LIST
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5158do
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5161 for ac_prog in grep ggrep; do
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5164 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5165# Check for GNU ac_path_GREP and select it if it is found.
5166 # Check for GNU $ac_path_GREP
5167case `"$ac_path_GREP" --version 2>&1` in
5168*GNU*)
5169 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5170*)
5171 ac_count=0
5172 $as_echo_n 0123456789 >"conftest.in"
5173 while :
5174 do
5175 cat "conftest.in" "conftest.in" >"conftest.tmp"
5176 mv "conftest.tmp" "conftest.in"
5177 cp "conftest.in" "conftest.nl"
5178 $as_echo 'GREP' >> "conftest.nl"
5179 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5180 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5181 as_fn_arith $ac_count + 1 && ac_count=$as_val
5182 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5183 # Best one so far, save it but keep looking for a better one
5184 ac_cv_path_GREP="$ac_path_GREP"
5185 ac_path_GREP_max=$ac_count
5186 fi
5187 # 10*(2^10) chars as input seems more than enough
5188 test $ac_count -gt 10 && break
5189 done
5190 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5191esac
5192
5193 $ac_path_GREP_found && break 3
5194 done
5195 done
5196 done
5197IFS=$as_save_IFS
5198 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005199 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005200 fi
5201else
5202 ac_cv_path_GREP=$GREP
5203fi
5204
5205fi
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5207$as_echo "$ac_cv_path_GREP" >&6; }
5208 GREP="$ac_cv_path_GREP"
5209
5210
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5212$as_echo_n "checking for egrep... " >&6; }
5213if test "${ac_cv_path_EGREP+set}" = set; then :
5214 $as_echo_n "(cached) " >&6
5215else
5216 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5217 then ac_cv_path_EGREP="$GREP -E"
5218 else
5219 if test -z "$EGREP"; then
5220 ac_path_EGREP_found=false
5221 # Loop through the user's path and test for each of PROGNAME-LIST
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5224do
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 for ac_prog in egrep; do
5228 for ac_exec_ext in '' $ac_executable_extensions; do
5229 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5230 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5231# Check for GNU ac_path_EGREP and select it if it is found.
5232 # Check for GNU $ac_path_EGREP
5233case `"$ac_path_EGREP" --version 2>&1` in
5234*GNU*)
5235 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5236*)
5237 ac_count=0
5238 $as_echo_n 0123456789 >"conftest.in"
5239 while :
5240 do
5241 cat "conftest.in" "conftest.in" >"conftest.tmp"
5242 mv "conftest.tmp" "conftest.in"
5243 cp "conftest.in" "conftest.nl"
5244 $as_echo 'EGREP' >> "conftest.nl"
5245 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5246 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5247 as_fn_arith $ac_count + 1 && ac_count=$as_val
5248 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5249 # Best one so far, save it but keep looking for a better one
5250 ac_cv_path_EGREP="$ac_path_EGREP"
5251 ac_path_EGREP_max=$ac_count
5252 fi
5253 # 10*(2^10) chars as input seems more than enough
5254 test $ac_count -gt 10 && break
5255 done
5256 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5257esac
5258
5259 $ac_path_EGREP_found && break 3
5260 done
5261 done
5262 done
5263IFS=$as_save_IFS
5264 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005265 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005266 fi
5267else
5268 ac_cv_path_EGREP=$EGREP
5269fi
5270
5271 fi
5272fi
5273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5274$as_echo "$ac_cv_path_EGREP" >&6; }
5275 EGREP="$ac_cv_path_EGREP"
5276
5277
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5279$as_echo_n "checking for ANSI C header files... " >&6; }
5280if test "${ac_cv_header_stdc+set}" = set; then :
5281 $as_echo_n "(cached) " >&6
5282else
5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284/* end confdefs.h. */
5285#include <stdlib.h>
5286#include <stdarg.h>
5287#include <string.h>
5288#include <float.h>
5289
5290int
5291main ()
5292{
5293
5294 ;
5295 return 0;
5296}
5297_ACEOF
5298if ac_fn_c_try_compile "$LINENO"; then :
5299 ac_cv_header_stdc=yes
5300else
5301 ac_cv_header_stdc=no
5302fi
5303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5304
5305if test $ac_cv_header_stdc = yes; then
5306 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308/* end confdefs.h. */
5309#include <string.h>
5310
5311_ACEOF
5312if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5313 $EGREP "memchr" >/dev/null 2>&1; then :
5314
5315else
5316 ac_cv_header_stdc=no
5317fi
5318rm -f conftest*
5319
5320fi
5321
5322if test $ac_cv_header_stdc = yes; then
5323 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325/* end confdefs.h. */
5326#include <stdlib.h>
5327
5328_ACEOF
5329if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5330 $EGREP "free" >/dev/null 2>&1; then :
5331
5332else
5333 ac_cv_header_stdc=no
5334fi
5335rm -f conftest*
5336
5337fi
5338
5339if test $ac_cv_header_stdc = yes; then
5340 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5341 if test "$cross_compiling" = yes; then :
5342 :
5343else
5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345/* end confdefs.h. */
5346#include <ctype.h>
5347#include <stdlib.h>
5348#if ((' ' & 0x0FF) == 0x020)
5349# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5350# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5351#else
5352# define ISLOWER(c) \
5353 (('a' <= (c) && (c) <= 'i') \
5354 || ('j' <= (c) && (c) <= 'r') \
5355 || ('s' <= (c) && (c) <= 'z'))
5356# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5357#endif
5358
5359#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5360int
5361main ()
5362{
5363 int i;
5364 for (i = 0; i < 256; i++)
5365 if (XOR (islower (i), ISLOWER (i))
5366 || toupper (i) != TOUPPER (i))
5367 return 2;
5368 return 0;
5369}
5370_ACEOF
5371if ac_fn_c_try_run "$LINENO"; then :
5372
5373else
5374 ac_cv_header_stdc=no
5375fi
5376rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5377 conftest.$ac_objext conftest.beam conftest.$ac_ext
5378fi
5379
5380fi
5381fi
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5383$as_echo "$ac_cv_header_stdc" >&6; }
5384if test $ac_cv_header_stdc = yes; then
5385
5386$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5387
5388fi
5389
5390# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5391for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5392 inttypes.h stdint.h unistd.h
5393do :
5394 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5395ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5396"
cristy98dddb52010-11-04 00:30:15 +00005397if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005398 cat >>confdefs.h <<_ACEOF
5399#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5400_ACEOF
5401
5402fi
5403
5404done
5405
5406
5407
5408 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5409if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5410 MINIX=yes
5411else
5412 MINIX=
5413fi
5414
5415
5416 if test "$MINIX" = yes; then
5417
5418$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5419
5420
5421$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5422
5423
5424$as_echo "#define _MINIX 1" >>confdefs.h
5425
5426 fi
5427
5428
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5430$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5431if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5432 $as_echo_n "(cached) " >&6
5433else
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435/* end confdefs.h. */
5436
5437# define __EXTENSIONS__ 1
5438 $ac_includes_default
5439int
5440main ()
5441{
5442
5443 ;
5444 return 0;
5445}
5446_ACEOF
5447if ac_fn_c_try_compile "$LINENO"; then :
5448 ac_cv_safe_to_define___extensions__=yes
5449else
5450 ac_cv_safe_to_define___extensions__=no
5451fi
5452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5453fi
5454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5455$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5456 test $ac_cv_safe_to_define___extensions__ = yes &&
5457 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5458
5459 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5460
5461 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5462
5463 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5464
5465 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5466
5467
5468
5469# Check for programs
5470ac_ext=c
5471ac_cpp='$CPP $CPPFLAGS'
5472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474ac_compiler_gnu=$ac_cv_c_compiler_gnu
5475if test -n "$ac_tool_prefix"; then
5476 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5477set dummy ${ac_tool_prefix}gcc; ac_word=$2
5478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479$as_echo_n "checking for $ac_word... " >&6; }
5480if test "${ac_cv_prog_CC+set}" = set; then :
5481 $as_echo_n "(cached) " >&6
5482else
5483 if test -n "$CC"; then
5484 ac_cv_prog_CC="$CC" # Let the user override the test.
5485else
5486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487for as_dir in $PATH
5488do
5489 IFS=$as_save_IFS
5490 test -z "$as_dir" && as_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5493 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5495 break 2
5496 fi
5497done
5498 done
5499IFS=$as_save_IFS
5500
5501fi
5502fi
5503CC=$ac_cv_prog_CC
5504if test -n "$CC"; then
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5506$as_echo "$CC" >&6; }
5507else
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509$as_echo "no" >&6; }
5510fi
5511
5512
5513fi
5514if test -z "$ac_cv_prog_CC"; then
5515 ac_ct_CC=$CC
5516 # Extract the first word of "gcc", so it can be a program name with args.
5517set dummy gcc; ac_word=$2
5518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5519$as_echo_n "checking for $ac_word... " >&6; }
5520if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5521 $as_echo_n "(cached) " >&6
5522else
5523 if test -n "$ac_ct_CC"; then
5524 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5525else
5526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527for as_dir in $PATH
5528do
5529 IFS=$as_save_IFS
5530 test -z "$as_dir" && as_dir=.
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5533 ac_cv_prog_ac_ct_CC="gcc"
5534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5535 break 2
5536 fi
5537done
5538 done
5539IFS=$as_save_IFS
5540
5541fi
5542fi
5543ac_ct_CC=$ac_cv_prog_ac_ct_CC
5544if test -n "$ac_ct_CC"; then
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5546$as_echo "$ac_ct_CC" >&6; }
5547else
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549$as_echo "no" >&6; }
5550fi
5551
5552 if test "x$ac_ct_CC" = x; then
5553 CC=""
5554 else
5555 case $cross_compiling:$ac_tool_warned in
5556yes:)
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5558$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5559ac_tool_warned=yes ;;
5560esac
5561 CC=$ac_ct_CC
5562 fi
5563else
5564 CC="$ac_cv_prog_CC"
5565fi
5566
5567if test -z "$CC"; then
5568 if test -n "$ac_tool_prefix"; then
5569 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5570set dummy ${ac_tool_prefix}cc; ac_word=$2
5571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5572$as_echo_n "checking for $ac_word... " >&6; }
5573if test "${ac_cv_prog_CC+set}" = set; then :
5574 $as_echo_n "(cached) " >&6
5575else
5576 if test -n "$CC"; then
5577 ac_cv_prog_CC="$CC" # Let the user override the test.
5578else
5579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580for as_dir in $PATH
5581do
5582 IFS=$as_save_IFS
5583 test -z "$as_dir" && as_dir=.
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5586 ac_cv_prog_CC="${ac_tool_prefix}cc"
5587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5588 break 2
5589 fi
5590done
5591 done
5592IFS=$as_save_IFS
5593
5594fi
5595fi
5596CC=$ac_cv_prog_CC
5597if test -n "$CC"; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5599$as_echo "$CC" >&6; }
5600else
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602$as_echo "no" >&6; }
5603fi
5604
5605
5606 fi
5607fi
5608if test -z "$CC"; then
5609 # Extract the first word of "cc", so it can be a program name with args.
5610set dummy cc; ac_word=$2
5611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612$as_echo_n "checking for $ac_word... " >&6; }
5613if test "${ac_cv_prog_CC+set}" = set; then :
5614 $as_echo_n "(cached) " >&6
5615else
5616 if test -n "$CC"; then
5617 ac_cv_prog_CC="$CC" # Let the user override the test.
5618else
5619 ac_prog_rejected=no
5620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621for as_dir in $PATH
5622do
5623 IFS=$as_save_IFS
5624 test -z "$as_dir" && as_dir=.
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5627 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5628 ac_prog_rejected=yes
5629 continue
5630 fi
5631 ac_cv_prog_CC="cc"
5632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5633 break 2
5634 fi
5635done
5636 done
5637IFS=$as_save_IFS
5638
5639if test $ac_prog_rejected = yes; then
5640 # We found a bogon in the path, so make sure we never use it.
5641 set dummy $ac_cv_prog_CC
5642 shift
5643 if test $# != 0; then
5644 # We chose a different compiler from the bogus one.
5645 # However, it has the same basename, so the bogon will be chosen
5646 # first if we set CC to just the basename; use the full file name.
5647 shift
5648 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5649 fi
5650fi
5651fi
5652fi
5653CC=$ac_cv_prog_CC
5654if test -n "$CC"; then
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5656$as_echo "$CC" >&6; }
5657else
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5659$as_echo "no" >&6; }
5660fi
5661
5662
5663fi
5664if test -z "$CC"; then
5665 if test -n "$ac_tool_prefix"; then
5666 for ac_prog in cl.exe
5667 do
5668 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5669set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5671$as_echo_n "checking for $ac_word... " >&6; }
5672if test "${ac_cv_prog_CC+set}" = set; then :
5673 $as_echo_n "(cached) " >&6
5674else
5675 if test -n "$CC"; then
5676 ac_cv_prog_CC="$CC" # Let the user override the test.
5677else
5678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679for as_dir in $PATH
5680do
5681 IFS=$as_save_IFS
5682 test -z "$as_dir" && as_dir=.
5683 for ac_exec_ext in '' $ac_executable_extensions; do
5684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5685 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5687 break 2
5688 fi
5689done
5690 done
5691IFS=$as_save_IFS
5692
5693fi
5694fi
5695CC=$ac_cv_prog_CC
5696if test -n "$CC"; then
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5698$as_echo "$CC" >&6; }
5699else
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5701$as_echo "no" >&6; }
5702fi
5703
5704
5705 test -n "$CC" && break
5706 done
5707fi
5708if test -z "$CC"; then
5709 ac_ct_CC=$CC
5710 for ac_prog in cl.exe
5711do
5712 # Extract the first word of "$ac_prog", so it can be a program name with args.
5713set dummy $ac_prog; ac_word=$2
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715$as_echo_n "checking for $ac_word... " >&6; }
5716if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5717 $as_echo_n "(cached) " >&6
5718else
5719 if test -n "$ac_ct_CC"; then
5720 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5721else
5722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723for as_dir in $PATH
5724do
5725 IFS=$as_save_IFS
5726 test -z "$as_dir" && as_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5729 ac_cv_prog_ac_ct_CC="$ac_prog"
5730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5731 break 2
5732 fi
5733done
5734 done
5735IFS=$as_save_IFS
5736
5737fi
5738fi
5739ac_ct_CC=$ac_cv_prog_ac_ct_CC
5740if test -n "$ac_ct_CC"; then
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5742$as_echo "$ac_ct_CC" >&6; }
5743else
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745$as_echo "no" >&6; }
5746fi
5747
5748
5749 test -n "$ac_ct_CC" && break
5750done
5751
5752 if test "x$ac_ct_CC" = x; then
5753 CC=""
5754 else
5755 case $cross_compiling:$ac_tool_warned in
5756yes:)
5757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5759ac_tool_warned=yes ;;
5760esac
5761 CC=$ac_ct_CC
5762 fi
5763fi
5764
5765fi
5766
5767
5768test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5769$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005770as_fn_error $? "no acceptable C compiler found in \$PATH
5771See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005772
5773# Provide some information about the compiler.
5774$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5775set X $ac_compile
5776ac_compiler=$2
5777for ac_option in --version -v -V -qversion; do
5778 { { ac_try="$ac_compiler $ac_option >&5"
5779case "(($ac_try" in
5780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5781 *) ac_try_echo=$ac_try;;
5782esac
5783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5784$as_echo "$ac_try_echo"; } >&5
5785 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5786 ac_status=$?
5787 if test -s conftest.err; then
5788 sed '10a\
5789... rest of stderr output deleted ...
5790 10q' conftest.err >conftest.er1
5791 cat conftest.er1 >&5
5792 fi
5793 rm -f conftest.er1 conftest.err
5794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5795 test $ac_status = 0; }
5796done
5797
5798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5799$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5800if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5801 $as_echo_n "(cached) " >&6
5802else
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804/* end confdefs.h. */
5805
5806int
5807main ()
5808{
5809#ifndef __GNUC__
5810 choke me
5811#endif
5812
5813 ;
5814 return 0;
5815}
5816_ACEOF
5817if ac_fn_c_try_compile "$LINENO"; then :
5818 ac_compiler_gnu=yes
5819else
5820 ac_compiler_gnu=no
5821fi
5822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823ac_cv_c_compiler_gnu=$ac_compiler_gnu
5824
5825fi
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5827$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5828if test $ac_compiler_gnu = yes; then
5829 GCC=yes
5830else
5831 GCC=
5832fi
5833ac_test_CFLAGS=${CFLAGS+set}
5834ac_save_CFLAGS=$CFLAGS
5835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5836$as_echo_n "checking whether $CC accepts -g... " >&6; }
5837if test "${ac_cv_prog_cc_g+set}" = set; then :
5838 $as_echo_n "(cached) " >&6
5839else
5840 ac_save_c_werror_flag=$ac_c_werror_flag
5841 ac_c_werror_flag=yes
5842 ac_cv_prog_cc_g=no
5843 CFLAGS="-g"
5844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845/* end confdefs.h. */
5846
5847int
5848main ()
5849{
5850
5851 ;
5852 return 0;
5853}
5854_ACEOF
5855if ac_fn_c_try_compile "$LINENO"; then :
5856 ac_cv_prog_cc_g=yes
5857else
5858 CFLAGS=""
5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860/* end confdefs.h. */
5861
5862int
5863main ()
5864{
5865
5866 ;
5867 return 0;
5868}
5869_ACEOF
5870if ac_fn_c_try_compile "$LINENO"; then :
5871
5872else
5873 ac_c_werror_flag=$ac_save_c_werror_flag
5874 CFLAGS="-g"
5875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5876/* end confdefs.h. */
5877
5878int
5879main ()
5880{
5881
5882 ;
5883 return 0;
5884}
5885_ACEOF
5886if ac_fn_c_try_compile "$LINENO"; then :
5887 ac_cv_prog_cc_g=yes
5888fi
5889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5890fi
5891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892fi
5893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5894 ac_c_werror_flag=$ac_save_c_werror_flag
5895fi
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5897$as_echo "$ac_cv_prog_cc_g" >&6; }
5898if test "$ac_test_CFLAGS" = set; then
5899 CFLAGS=$ac_save_CFLAGS
5900elif test $ac_cv_prog_cc_g = yes; then
5901 if test "$GCC" = yes; then
5902 CFLAGS="-g -O2"
5903 else
5904 CFLAGS="-g"
5905 fi
5906else
5907 if test "$GCC" = yes; then
5908 CFLAGS="-O2"
5909 else
5910 CFLAGS=
5911 fi
5912fi
5913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5914$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5915if test "${ac_cv_prog_cc_c89+set}" = set; then :
5916 $as_echo_n "(cached) " >&6
5917else
5918 ac_cv_prog_cc_c89=no
5919ac_save_CC=$CC
5920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921/* end confdefs.h. */
5922#include <stdarg.h>
5923#include <stdio.h>
5924#include <sys/types.h>
5925#include <sys/stat.h>
5926/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5927struct buf { int x; };
5928FILE * (*rcsopen) (struct buf *, struct stat *, int);
5929static char *e (p, i)
5930 char **p;
5931 int i;
5932{
5933 return p[i];
5934}
5935static char *f (char * (*g) (char **, int), char **p, ...)
5936{
5937 char *s;
5938 va_list v;
5939 va_start (v,p);
5940 s = g (p, va_arg (v,int));
5941 va_end (v);
5942 return s;
5943}
5944
5945/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5946 function prototypes and stuff, but not '\xHH' hex character constants.
5947 These don't provoke an error unfortunately, instead are silently treated
5948 as 'x'. The following induces an error, until -std is added to get
5949 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5950 array size at least. It's necessary to write '\x00'==0 to get something
5951 that's true only with -std. */
5952int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5953
5954/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5955 inside strings and character constants. */
5956#define FOO(x) 'x'
5957int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5958
5959int test (int i, double x);
5960struct s1 {int (*f) (int a);};
5961struct s2 {int (*f) (double a);};
5962int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5963int argc;
5964char **argv;
5965int
5966main ()
5967{
5968return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5969 ;
5970 return 0;
5971}
5972_ACEOF
5973for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5974 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5975do
5976 CC="$ac_save_CC $ac_arg"
5977 if ac_fn_c_try_compile "$LINENO"; then :
5978 ac_cv_prog_cc_c89=$ac_arg
5979fi
5980rm -f core conftest.err conftest.$ac_objext
5981 test "x$ac_cv_prog_cc_c89" != "xno" && break
5982done
5983rm -f conftest.$ac_ext
5984CC=$ac_save_CC
5985
5986fi
5987# AC_CACHE_VAL
5988case "x$ac_cv_prog_cc_c89" in
5989 x)
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5991$as_echo "none needed" >&6; } ;;
5992 xno)
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5994$as_echo "unsupported" >&6; } ;;
5995 *)
5996 CC="$CC $ac_cv_prog_cc_c89"
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5998$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5999esac
6000if test "x$ac_cv_prog_cc_c89" != xno; then :
6001
6002fi
6003
6004ac_ext=c
6005ac_cpp='$CPP $CPPFLAGS'
6006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6008ac_compiler_gnu=$ac_cv_c_compiler_gnu
6009
cristy73bd4a52010-10-05 11:24:23 +00006010depcc="$CC" am_compiler_list=
6011
6012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6013$as_echo_n "checking dependency style of $depcc... " >&6; }
6014if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6015 $as_echo_n "(cached) " >&6
6016else
6017 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6018 # We make a subdir and do the tests there. Otherwise we can end up
6019 # making bogus files that we don't know about and never remove. For
6020 # instance it was reported that on HP-UX the gcc test will end up
6021 # making a dummy file named `D' -- because `-MD' means `put the output
6022 # in D'.
6023 mkdir conftest.dir
6024 # Copy depcomp to subdir because otherwise we won't find it if we're
6025 # using a relative directory.
6026 cp "$am_depcomp" conftest.dir
6027 cd conftest.dir
6028 # We will build objects and dependencies in a subdirectory because
6029 # it helps to detect inapplicable dependency modes. For instance
6030 # both Tru64's cc and ICC support -MD to output dependencies as a
6031 # side effect of compilation, but ICC will put the dependencies in
6032 # the current directory while Tru64 will put them in the object
6033 # directory.
6034 mkdir sub
6035
6036 am_cv_CC_dependencies_compiler_type=none
6037 if test "$am_compiler_list" = ""; then
6038 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6039 fi
6040 am__universal=false
6041 case " $depcc " in #(
6042 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6043 esac
6044
6045 for depmode in $am_compiler_list; do
6046 # Setup a source with many dependencies, because some compilers
6047 # like to wrap large dependency lists on column 80 (with \), and
6048 # we should not choose a depcomp mode which is confused by this.
6049 #
6050 # We need to recreate these files for each test, as the compiler may
6051 # overwrite some of them when testing with obscure command lines.
6052 # This happens at least with the AIX C compiler.
6053 : > sub/conftest.c
6054 for i in 1 2 3 4 5 6; do
6055 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6056 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6057 # Solaris 8's {/usr,}/bin/sh.
6058 touch sub/conftst$i.h
6059 done
6060 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6061
6062 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6063 # mode. It turns out that the SunPro C++ compiler does not properly
6064 # handle `-M -o', and we need to detect this. Also, some Intel
6065 # versions had trouble with output in subdirs
6066 am__obj=sub/conftest.${OBJEXT-o}
6067 am__minus_obj="-o $am__obj"
6068 case $depmode in
6069 gcc)
6070 # This depmode causes a compiler race in universal mode.
6071 test "$am__universal" = false || continue
6072 ;;
6073 nosideeffect)
6074 # after this tag, mechanisms are not by side-effect, so they'll
6075 # only be used when explicitly requested
6076 if test "x$enable_dependency_tracking" = xyes; then
6077 continue
6078 else
6079 break
6080 fi
6081 ;;
6082 msvisualcpp | msvcmsys)
6083 # This compiler won't grok `-c -o', but also, the minuso test has
6084 # not run yet. These depmodes are late enough in the game, and
6085 # so weak that their functioning should not be impacted.
6086 am__obj=conftest.${OBJEXT-o}
6087 am__minus_obj=
6088 ;;
6089 none) break ;;
6090 esac
6091 if depmode=$depmode \
6092 source=sub/conftest.c object=$am__obj \
6093 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6094 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6095 >/dev/null 2>conftest.err &&
6096 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6097 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6098 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6099 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6100 # icc doesn't choke on unknown options, it will just issue warnings
6101 # or remarks (even with -Werror). So we grep stderr for any message
6102 # that says an option was ignored or not supported.
6103 # When given -MP, icc 7.0 and 7.1 complain thusly:
6104 # icc: Command line warning: ignoring option '-M'; no argument required
6105 # The diagnosis changed in icc 8.0:
6106 # icc: Command line remark: option '-MP' not supported
6107 if (grep 'ignoring option' conftest.err ||
6108 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6109 am_cv_CC_dependencies_compiler_type=$depmode
6110 break
6111 fi
6112 fi
6113 done
6114
6115 cd ..
6116 rm -rf conftest.dir
6117else
6118 am_cv_CC_dependencies_compiler_type=none
6119fi
6120
6121fi
6122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6123$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6124CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6125
6126 if
6127 test "x$enable_dependency_tracking" != xno \
6128 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6129 am__fastdepCC_TRUE=
6130 am__fastdepCC_FALSE='#'
6131else
6132 am__fastdepCC_TRUE='#'
6133 am__fastdepCC_FALSE=
6134fi
6135
6136
cristy95646052009-11-28 23:05:30 +00006137ac_ext=cpp
6138ac_cpp='$CXXCPP $CPPFLAGS'
6139ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6140ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6141ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6142if test -z "$CXX"; then
6143 if test -n "$CCC"; then
6144 CXX=$CCC
6145 else
6146 if test -n "$ac_tool_prefix"; then
6147 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6148 do
6149 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6150set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6152$as_echo_n "checking for $ac_word... " >&6; }
6153if test "${ac_cv_prog_CXX+set}" = set; then :
6154 $as_echo_n "(cached) " >&6
6155else
6156 if test -n "$CXX"; then
6157 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6158else
6159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160for as_dir in $PATH
6161do
6162 IFS=$as_save_IFS
6163 test -z "$as_dir" && as_dir=.
6164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6166 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 break 2
6169 fi
6170done
6171 done
6172IFS=$as_save_IFS
6173
6174fi
6175fi
6176CXX=$ac_cv_prog_CXX
6177if test -n "$CXX"; then
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6179$as_echo "$CXX" >&6; }
6180else
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6182$as_echo "no" >&6; }
6183fi
6184
6185
6186 test -n "$CXX" && break
6187 done
6188fi
6189if test -z "$CXX"; then
6190 ac_ct_CXX=$CXX
6191 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6192do
6193 # Extract the first word of "$ac_prog", so it can be a program name with args.
6194set dummy $ac_prog; ac_word=$2
6195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6196$as_echo_n "checking for $ac_word... " >&6; }
6197if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6198 $as_echo_n "(cached) " >&6
6199else
6200 if test -n "$ac_ct_CXX"; then
6201 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6202else
6203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204for as_dir in $PATH
6205do
6206 IFS=$as_save_IFS
6207 test -z "$as_dir" && as_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6210 ac_cv_prog_ac_ct_CXX="$ac_prog"
6211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 break 2
6213 fi
6214done
6215 done
6216IFS=$as_save_IFS
6217
6218fi
6219fi
6220ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6221if test -n "$ac_ct_CXX"; then
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6223$as_echo "$ac_ct_CXX" >&6; }
6224else
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226$as_echo "no" >&6; }
6227fi
6228
6229
6230 test -n "$ac_ct_CXX" && break
6231done
6232
6233 if test "x$ac_ct_CXX" = x; then
6234 CXX="g++"
6235 else
6236 case $cross_compiling:$ac_tool_warned in
6237yes:)
6238{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6239$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6240ac_tool_warned=yes ;;
6241esac
6242 CXX=$ac_ct_CXX
6243 fi
6244fi
6245
6246 fi
6247fi
6248# Provide some information about the compiler.
6249$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6250set X $ac_compile
6251ac_compiler=$2
6252for ac_option in --version -v -V -qversion; do
6253 { { ac_try="$ac_compiler $ac_option >&5"
6254case "(($ac_try" in
6255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256 *) ac_try_echo=$ac_try;;
6257esac
6258eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6259$as_echo "$ac_try_echo"; } >&5
6260 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6261 ac_status=$?
6262 if test -s conftest.err; then
6263 sed '10a\
6264... rest of stderr output deleted ...
6265 10q' conftest.err >conftest.er1
6266 cat conftest.er1 >&5
6267 fi
6268 rm -f conftest.er1 conftest.err
6269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6270 test $ac_status = 0; }
6271done
6272
6273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6274$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6275if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6276 $as_echo_n "(cached) " >&6
6277else
6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279/* end confdefs.h. */
6280
6281int
6282main ()
6283{
6284#ifndef __GNUC__
6285 choke me
6286#endif
6287
6288 ;
6289 return 0;
6290}
6291_ACEOF
6292if ac_fn_cxx_try_compile "$LINENO"; then :
6293 ac_compiler_gnu=yes
6294else
6295 ac_compiler_gnu=no
6296fi
6297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6298ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6299
6300fi
6301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6302$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6303if test $ac_compiler_gnu = yes; then
6304 GXX=yes
6305else
6306 GXX=
6307fi
6308ac_test_CXXFLAGS=${CXXFLAGS+set}
6309ac_save_CXXFLAGS=$CXXFLAGS
6310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6311$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6312if test "${ac_cv_prog_cxx_g+set}" = set; then :
6313 $as_echo_n "(cached) " >&6
6314else
6315 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6316 ac_cxx_werror_flag=yes
6317 ac_cv_prog_cxx_g=no
6318 CXXFLAGS="-g"
6319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320/* end confdefs.h. */
6321
6322int
6323main ()
6324{
6325
6326 ;
6327 return 0;
6328}
6329_ACEOF
6330if ac_fn_cxx_try_compile "$LINENO"; then :
6331 ac_cv_prog_cxx_g=yes
6332else
6333 CXXFLAGS=""
6334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6335/* end confdefs.h. */
6336
6337int
6338main ()
6339{
6340
6341 ;
6342 return 0;
6343}
6344_ACEOF
6345if ac_fn_cxx_try_compile "$LINENO"; then :
6346
6347else
6348 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6349 CXXFLAGS="-g"
6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351/* end confdefs.h. */
6352
6353int
6354main ()
6355{
6356
6357 ;
6358 return 0;
6359}
6360_ACEOF
6361if ac_fn_cxx_try_compile "$LINENO"; then :
6362 ac_cv_prog_cxx_g=yes
6363fi
6364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6365fi
6366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6367fi
6368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6369 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6370fi
6371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6372$as_echo "$ac_cv_prog_cxx_g" >&6; }
6373if test "$ac_test_CXXFLAGS" = set; then
6374 CXXFLAGS=$ac_save_CXXFLAGS
6375elif test $ac_cv_prog_cxx_g = yes; then
6376 if test "$GXX" = yes; then
6377 CXXFLAGS="-g -O2"
6378 else
6379 CXXFLAGS="-g"
6380 fi
6381else
6382 if test "$GXX" = yes; then
6383 CXXFLAGS="-O2"
6384 else
6385 CXXFLAGS=
6386 fi
6387fi
6388ac_ext=c
6389ac_cpp='$CPP $CPPFLAGS'
6390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6392ac_compiler_gnu=$ac_cv_c_compiler_gnu
6393
cristy73bd4a52010-10-05 11:24:23 +00006394depcc="$CXX" am_compiler_list=
6395
6396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6397$as_echo_n "checking dependency style of $depcc... " >&6; }
6398if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6399 $as_echo_n "(cached) " >&6
6400else
6401 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6402 # We make a subdir and do the tests there. Otherwise we can end up
6403 # making bogus files that we don't know about and never remove. For
6404 # instance it was reported that on HP-UX the gcc test will end up
6405 # making a dummy file named `D' -- because `-MD' means `put the output
6406 # in D'.
6407 mkdir conftest.dir
6408 # Copy depcomp to subdir because otherwise we won't find it if we're
6409 # using a relative directory.
6410 cp "$am_depcomp" conftest.dir
6411 cd conftest.dir
6412 # We will build objects and dependencies in a subdirectory because
6413 # it helps to detect inapplicable dependency modes. For instance
6414 # both Tru64's cc and ICC support -MD to output dependencies as a
6415 # side effect of compilation, but ICC will put the dependencies in
6416 # the current directory while Tru64 will put them in the object
6417 # directory.
6418 mkdir sub
6419
6420 am_cv_CXX_dependencies_compiler_type=none
6421 if test "$am_compiler_list" = ""; then
6422 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6423 fi
6424 am__universal=false
6425 case " $depcc " in #(
6426 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6427 esac
6428
6429 for depmode in $am_compiler_list; do
6430 # Setup a source with many dependencies, because some compilers
6431 # like to wrap large dependency lists on column 80 (with \), and
6432 # we should not choose a depcomp mode which is confused by this.
6433 #
6434 # We need to recreate these files for each test, as the compiler may
6435 # overwrite some of them when testing with obscure command lines.
6436 # This happens at least with the AIX C compiler.
6437 : > sub/conftest.c
6438 for i in 1 2 3 4 5 6; do
6439 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6440 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6441 # Solaris 8's {/usr,}/bin/sh.
6442 touch sub/conftst$i.h
6443 done
6444 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6445
6446 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6447 # mode. It turns out that the SunPro C++ compiler does not properly
6448 # handle `-M -o', and we need to detect this. Also, some Intel
6449 # versions had trouble with output in subdirs
6450 am__obj=sub/conftest.${OBJEXT-o}
6451 am__minus_obj="-o $am__obj"
6452 case $depmode in
6453 gcc)
6454 # This depmode causes a compiler race in universal mode.
6455 test "$am__universal" = false || continue
6456 ;;
6457 nosideeffect)
6458 # after this tag, mechanisms are not by side-effect, so they'll
6459 # only be used when explicitly requested
6460 if test "x$enable_dependency_tracking" = xyes; then
6461 continue
6462 else
6463 break
6464 fi
6465 ;;
6466 msvisualcpp | msvcmsys)
6467 # This compiler won't grok `-c -o', but also, the minuso test has
6468 # not run yet. These depmodes are late enough in the game, and
6469 # so weak that their functioning should not be impacted.
6470 am__obj=conftest.${OBJEXT-o}
6471 am__minus_obj=
6472 ;;
6473 none) break ;;
6474 esac
6475 if depmode=$depmode \
6476 source=sub/conftest.c object=$am__obj \
6477 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6478 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6479 >/dev/null 2>conftest.err &&
6480 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6481 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6482 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6483 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6484 # icc doesn't choke on unknown options, it will just issue warnings
6485 # or remarks (even with -Werror). So we grep stderr for any message
6486 # that says an option was ignored or not supported.
6487 # When given -MP, icc 7.0 and 7.1 complain thusly:
6488 # icc: Command line warning: ignoring option '-M'; no argument required
6489 # The diagnosis changed in icc 8.0:
6490 # icc: Command line remark: option '-MP' not supported
6491 if (grep 'ignoring option' conftest.err ||
6492 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6493 am_cv_CXX_dependencies_compiler_type=$depmode
6494 break
6495 fi
6496 fi
6497 done
6498
6499 cd ..
6500 rm -rf conftest.dir
6501else
6502 am_cv_CXX_dependencies_compiler_type=none
6503fi
6504
6505fi
6506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6507$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6508CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6509
6510 if
6511 test "x$enable_dependency_tracking" != xno \
6512 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6513 am__fastdepCXX_TRUE=
6514 am__fastdepCXX_FALSE='#'
6515else
6516 am__fastdepCXX_TRUE='#'
6517 am__fastdepCXX_FALSE=
6518fi
6519
6520
cristy8b350f62009-11-15 23:12:43 +00006521 case $ac_cv_prog_cc_stdc in #(
6522 no) :
6523 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6524 *) :
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006526$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006527if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006528 $as_echo_n "(cached) " >&6
6529else
6530 ac_cv_prog_cc_c99=no
6531ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006533/* end confdefs.h. */
6534#include <stdarg.h>
6535#include <stdbool.h>
6536#include <stdlib.h>
6537#include <wchar.h>
6538#include <stdio.h>
6539
6540// Check varargs macros. These examples are taken from C99 6.10.3.5.
6541#define debug(...) fprintf (stderr, __VA_ARGS__)
6542#define showlist(...) puts (#__VA_ARGS__)
6543#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6544static void
6545test_varargs_macros (void)
6546{
6547 int x = 1234;
6548 int y = 5678;
6549 debug ("Flag");
6550 debug ("X = %d\n", x);
6551 showlist (The first, second, and third items.);
6552 report (x>y, "x is %d but y is %d", x, y);
6553}
6554
6555// Check long long types.
6556#define BIG64 18446744073709551615ull
6557#define BIG32 4294967295ul
6558#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6559#if !BIG_OK
6560 your preprocessor is broken;
6561#endif
6562#if BIG_OK
6563#else
6564 your preprocessor is broken;
6565#endif
6566static long long int bignum = -9223372036854775807LL;
6567static unsigned long long int ubignum = BIG64;
6568
6569struct incomplete_array
6570{
6571 int datasize;
6572 double data[];
6573};
6574
6575struct named_init {
6576 int number;
6577 const wchar_t *name;
6578 double average;
6579};
6580
6581typedef const char *ccp;
6582
6583static inline int
6584test_restrict (ccp restrict text)
6585{
6586 // See if C++-style comments work.
6587 // Iterate through items via the restricted pointer.
6588 // Also check for declarations in for loops.
6589 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6590 continue;
6591 return 0;
6592}
6593
6594// Check varargs and va_copy.
6595static void
6596test_varargs (const char *format, ...)
6597{
6598 va_list args;
6599 va_start (args, format);
6600 va_list args_copy;
6601 va_copy (args_copy, args);
6602
6603 const char *str;
6604 int number;
6605 float fnumber;
6606
6607 while (*format)
6608 {
6609 switch (*format++)
6610 {
6611 case 's': // string
6612 str = va_arg (args_copy, const char *);
6613 break;
6614 case 'd': // int
6615 number = va_arg (args_copy, int);
6616 break;
6617 case 'f': // float
6618 fnumber = va_arg (args_copy, double);
6619 break;
6620 default:
6621 break;
6622 }
6623 }
6624 va_end (args_copy);
6625 va_end (args);
6626}
6627
6628int
6629main ()
6630{
6631
6632 // Check bool.
6633 _Bool success = false;
6634
6635 // Check restrict.
6636 if (test_restrict ("String literal") == 0)
6637 success = true;
6638 char *restrict newvar = "Another string";
6639
6640 // Check varargs.
6641 test_varargs ("s, d' f .", "string", 65, 34.234);
6642 test_varargs_macros ();
6643
6644 // Check flexible array members.
6645 struct incomplete_array *ia =
6646 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6647 ia->datasize = 10;
6648 for (int i = 0; i < ia->datasize; ++i)
6649 ia->data[i] = i * 1.234;
6650
6651 // Check named initializers.
6652 struct named_init ni = {
6653 .number = 34,
6654 .name = L"Test wide string",
6655 .average = 543.34343,
6656 };
6657
6658 ni.number = 58;
6659
6660 int dynamic_array[ni.number];
6661 dynamic_array[ni.number - 1] = 543;
6662
6663 // work around unused variable warnings
6664 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6665 || dynamic_array[ni.number - 1] != 543);
6666
6667 ;
6668 return 0;
6669}
6670_ACEOF
6671for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6672do
6673 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006674 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006675 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006676fi
cristy3ed852e2009-09-05 21:47:34 +00006677rm -f core conftest.err conftest.$ac_objext
6678 test "x$ac_cv_prog_cc_c99" != "xno" && break
6679done
6680rm -f conftest.$ac_ext
6681CC=$ac_save_CC
6682
6683fi
6684# AC_CACHE_VAL
6685case "x$ac_cv_prog_cc_c99" in
6686 x)
cristy8b350f62009-11-15 23:12:43 +00006687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006688$as_echo "none needed" >&6; } ;;
6689 xno)
cristy8b350f62009-11-15 23:12:43 +00006690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006691$as_echo "unsupported" >&6; } ;;
6692 *)
6693 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006695$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6696esac
cristy8b350f62009-11-15 23:12:43 +00006697if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006698 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6699else
cristy8b350f62009-11-15 23:12:43 +00006700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006701$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006702if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006703 $as_echo_n "(cached) " >&6
6704else
6705 ac_cv_prog_cc_c89=no
6706ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006708/* end confdefs.h. */
6709#include <stdarg.h>
6710#include <stdio.h>
6711#include <sys/types.h>
6712#include <sys/stat.h>
6713/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6714struct buf { int x; };
6715FILE * (*rcsopen) (struct buf *, struct stat *, int);
6716static char *e (p, i)
6717 char **p;
6718 int i;
6719{
6720 return p[i];
6721}
6722static char *f (char * (*g) (char **, int), char **p, ...)
6723{
6724 char *s;
6725 va_list v;
6726 va_start (v,p);
6727 s = g (p, va_arg (v,int));
6728 va_end (v);
6729 return s;
6730}
6731
6732/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6733 function prototypes and stuff, but not '\xHH' hex character constants.
6734 These don't provoke an error unfortunately, instead are silently treated
6735 as 'x'. The following induces an error, until -std is added to get
6736 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6737 array size at least. It's necessary to write '\x00'==0 to get something
6738 that's true only with -std. */
6739int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6740
6741/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6742 inside strings and character constants. */
6743#define FOO(x) 'x'
6744int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6745
6746int test (int i, double x);
6747struct s1 {int (*f) (int a);};
6748struct s2 {int (*f) (double a);};
6749int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6750int argc;
6751char **argv;
6752int
6753main ()
6754{
6755return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6756 ;
6757 return 0;
6758}
6759_ACEOF
6760for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6761 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6762do
6763 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006764 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006765 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006766fi
cristy3ed852e2009-09-05 21:47:34 +00006767rm -f core conftest.err conftest.$ac_objext
6768 test "x$ac_cv_prog_cc_c89" != "xno" && break
6769done
6770rm -f conftest.$ac_ext
6771CC=$ac_save_CC
6772
6773fi
6774# AC_CACHE_VAL
6775case "x$ac_cv_prog_cc_c89" in
6776 x)
cristy8b350f62009-11-15 23:12:43 +00006777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006778$as_echo "none needed" >&6; } ;;
6779 xno)
cristy8b350f62009-11-15 23:12:43 +00006780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006781$as_echo "unsupported" >&6; } ;;
6782 *)
6783 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006785$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6786esac
cristy8b350f62009-11-15 23:12:43 +00006787if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006788 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6789else
6790 ac_cv_prog_cc_stdc=no
6791fi
6792
cristy3ed852e2009-09-05 21:47:34 +00006793fi
cristy3ed852e2009-09-05 21:47:34 +00006794 ;;
6795esac
cristy8b350f62009-11-15 23:12:43 +00006796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006797$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006798 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006799 $as_echo_n "(cached) " >&6
6800fi
6801
cristy8b350f62009-11-15 23:12:43 +00006802 case $ac_cv_prog_cc_stdc in #(
6803 no) :
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6805$as_echo "unsupported" >&6; } ;; #(
6806 '') :
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6808$as_echo "none needed" >&6; } ;; #(
6809 *) :
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006811$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6812esac
6813
cristy3ed852e2009-09-05 21:47:34 +00006814ac_ext=c
6815ac_cpp='$CPP $CPPFLAGS'
6816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6818ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006820$as_echo_n "checking how to run the C preprocessor... " >&6; }
6821# On Suns, sometimes $CPP names a directory.
6822if test -n "$CPP" && test -d "$CPP"; then
6823 CPP=
6824fi
6825if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00006826 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006827 $as_echo_n "(cached) " >&6
6828else
6829 # Double quotes because CPP needs to be expanded
6830 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6831 do
6832 ac_preproc_ok=false
6833for ac_c_preproc_warn_flag in '' yes
6834do
6835 # Use a header file that comes with gcc, so configuring glibc
6836 # with a fresh cross-compiler works.
6837 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6838 # <limits.h> exists even on freestanding compilers.
6839 # On the NeXT, cc -E runs the code through the compiler's parser,
6840 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006842/* end confdefs.h. */
6843#ifdef __STDC__
6844# include <limits.h>
6845#else
6846# include <assert.h>
6847#endif
6848 Syntax error
6849_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006850if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006851
cristy8b350f62009-11-15 23:12:43 +00006852else
cristy3ed852e2009-09-05 21:47:34 +00006853 # Broken: fails on valid input.
6854continue
6855fi
cristy3ed852e2009-09-05 21:47:34 +00006856rm -f conftest.err conftest.$ac_ext
6857
6858 # OK, works on sane cases. Now check whether nonexistent headers
6859 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006861/* end confdefs.h. */
6862#include <ac_nonexistent.h>
6863_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006864if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006865 # Broken: success on invalid input.
6866continue
6867else
cristy3ed852e2009-09-05 21:47:34 +00006868 # Passes both tests.
6869ac_preproc_ok=:
6870break
6871fi
cristy3ed852e2009-09-05 21:47:34 +00006872rm -f conftest.err conftest.$ac_ext
6873
6874done
6875# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6876rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006877if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00006878 break
6879fi
6880
6881 done
6882 ac_cv_prog_CPP=$CPP
6883
6884fi
6885 CPP=$ac_cv_prog_CPP
6886else
6887 ac_cv_prog_CPP=$CPP
6888fi
cristy8b350f62009-11-15 23:12:43 +00006889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006890$as_echo "$CPP" >&6; }
6891ac_preproc_ok=false
6892for ac_c_preproc_warn_flag in '' yes
6893do
6894 # Use a header file that comes with gcc, so configuring glibc
6895 # with a fresh cross-compiler works.
6896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6897 # <limits.h> exists even on freestanding compilers.
6898 # On the NeXT, cc -E runs the code through the compiler's parser,
6899 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006901/* end confdefs.h. */
6902#ifdef __STDC__
6903# include <limits.h>
6904#else
6905# include <assert.h>
6906#endif
6907 Syntax error
6908_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006909if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006910
cristy8b350f62009-11-15 23:12:43 +00006911else
cristy3ed852e2009-09-05 21:47:34 +00006912 # Broken: fails on valid input.
6913continue
6914fi
cristy3ed852e2009-09-05 21:47:34 +00006915rm -f conftest.err conftest.$ac_ext
6916
6917 # OK, works on sane cases. Now check whether nonexistent headers
6918 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006920/* end confdefs.h. */
6921#include <ac_nonexistent.h>
6922_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006923if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006924 # Broken: success on invalid input.
6925continue
6926else
cristy3ed852e2009-09-05 21:47:34 +00006927 # Passes both tests.
6928ac_preproc_ok=:
6929break
6930fi
cristy3ed852e2009-09-05 21:47:34 +00006931rm -f conftest.err conftest.$ac_ext
6932
6933done
6934# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6935rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006936if $ac_preproc_ok; then :
6937
cristy3ed852e2009-09-05 21:47:34 +00006938else
cristy8b350f62009-11-15 23:12:43 +00006939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00006940$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006941as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6942See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00006943fi
6944
6945ac_ext=c
6946ac_cpp='$CPP $CPPFLAGS'
6947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6949ac_compiler_gnu=$ac_cv_c_compiler_gnu
6950
cristy73bd4a52010-10-05 11:24:23 +00006951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6952$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6953if test "${ac_cv_path_SED+set}" = set; then :
6954 $as_echo_n "(cached) " >&6
6955else
6956 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6957 for ac_i in 1 2 3 4 5 6 7; do
6958 ac_script="$ac_script$as_nl$ac_script"
6959 done
6960 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6961 { ac_script=; unset ac_script;}
6962 if test -z "$SED"; then
6963 ac_path_SED_found=false
6964 # Loop through the user's path and test for each of PROGNAME-LIST
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966for as_dir in $PATH
6967do
6968 IFS=$as_save_IFS
6969 test -z "$as_dir" && as_dir=.
6970 for ac_prog in sed gsed; do
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6973 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6974# Check for GNU ac_path_SED and select it if it is found.
6975 # Check for GNU $ac_path_SED
6976case `"$ac_path_SED" --version 2>&1` in
6977*GNU*)
6978 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6979*)
6980 ac_count=0
6981 $as_echo_n 0123456789 >"conftest.in"
6982 while :
6983 do
6984 cat "conftest.in" "conftest.in" >"conftest.tmp"
6985 mv "conftest.tmp" "conftest.in"
6986 cp "conftest.in" "conftest.nl"
6987 $as_echo '' >> "conftest.nl"
6988 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6990 as_fn_arith $ac_count + 1 && ac_count=$as_val
6991 if test $ac_count -gt ${ac_path_SED_max-0}; then
6992 # Best one so far, save it but keep looking for a better one
6993 ac_cv_path_SED="$ac_path_SED"
6994 ac_path_SED_max=$ac_count
6995 fi
6996 # 10*(2^10) chars as input seems more than enough
6997 test $ac_count -gt 10 && break
6998 done
6999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7000esac
7001
7002 $ac_path_SED_found && break 3
7003 done
7004 done
7005 done
7006IFS=$as_save_IFS
7007 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007008 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007009 fi
7010else
7011 ac_cv_path_SED=$SED
7012fi
7013
7014fi
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7016$as_echo "$ac_cv_path_SED" >&6; }
7017 SED="$ac_cv_path_SED"
7018 rm -f conftest.sed
7019
7020test -z "$SED" && SED=sed
7021Xsed="$SED -e 1s/^X//"
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7034$as_echo_n "checking for fgrep... " >&6; }
7035if test "${ac_cv_path_FGREP+set}" = set; then :
7036 $as_echo_n "(cached) " >&6
7037else
7038 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7039 then ac_cv_path_FGREP="$GREP -F"
7040 else
7041 if test -z "$FGREP"; then
7042 ac_path_FGREP_found=false
7043 # Loop through the user's path and test for each of PROGNAME-LIST
7044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7046do
7047 IFS=$as_save_IFS
7048 test -z "$as_dir" && as_dir=.
7049 for ac_prog in fgrep; do
7050 for ac_exec_ext in '' $ac_executable_extensions; do
7051 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7052 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7053# Check for GNU ac_path_FGREP and select it if it is found.
7054 # Check for GNU $ac_path_FGREP
7055case `"$ac_path_FGREP" --version 2>&1` in
7056*GNU*)
7057 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7058*)
7059 ac_count=0
7060 $as_echo_n 0123456789 >"conftest.in"
7061 while :
7062 do
7063 cat "conftest.in" "conftest.in" >"conftest.tmp"
7064 mv "conftest.tmp" "conftest.in"
7065 cp "conftest.in" "conftest.nl"
7066 $as_echo 'FGREP' >> "conftest.nl"
7067 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7068 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7069 as_fn_arith $ac_count + 1 && ac_count=$as_val
7070 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7071 # Best one so far, save it but keep looking for a better one
7072 ac_cv_path_FGREP="$ac_path_FGREP"
7073 ac_path_FGREP_max=$ac_count
7074 fi
7075 # 10*(2^10) chars as input seems more than enough
7076 test $ac_count -gt 10 && break
7077 done
7078 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7079esac
7080
7081 $ac_path_FGREP_found && break 3
7082 done
7083 done
7084 done
7085IFS=$as_save_IFS
7086 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007087 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007088 fi
7089else
7090 ac_cv_path_FGREP=$FGREP
7091fi
7092
7093 fi
7094fi
7095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7096$as_echo "$ac_cv_path_FGREP" >&6; }
7097 FGREP="$ac_cv_path_FGREP"
7098
7099
7100test -z "$GREP" && GREP=grep
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
cristy0c60a692010-11-04 01:09:47 +00007118ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7119ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7120ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7121
7122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7123$as_echo_n "checking how to print strings... " >&6; }
7124# Test print first, because it will be a builtin if present.
7125if test "X`print -r -- -n 2>/dev/null`" = X-n && \
7126 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7127 ECHO='print -r --'
7128elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7129 ECHO='printf %s\n'
7130else
7131 # Use this function as a fallback that always works.
7132 func_fallback_echo ()
7133 {
7134 eval 'cat <<_LTECHO_EOF
7135$1
7136_LTECHO_EOF'
7137 }
7138 ECHO='func_fallback_echo'
7139fi
7140
7141# func_echo_all arg...
7142# Invoke $ECHO with all args, space-separated.
7143func_echo_all ()
7144{
7145 $ECHO ""
7146}
7147
7148case "$ECHO" in
7149 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7150$as_echo "printf" >&6; } ;;
7151 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7152$as_echo "print -r" >&6; } ;;
7153 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7154$as_echo "cat" >&6; } ;;
7155esac
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
cristy73bd4a52010-10-05 11:24:23 +00007170
7171
7172# Check whether --with-gnu-ld was given.
7173if test "${with_gnu_ld+set}" = set; then :
7174 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7175else
7176 with_gnu_ld=no
7177fi
7178
7179ac_prog=ld
7180if test "$GCC" = yes; then
7181 # Check if gcc -print-prog-name=ld gives a path.
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7183$as_echo_n "checking for ld used by $CC... " >&6; }
7184 case $host in
7185 *-*-mingw*)
7186 # gcc leaves a trailing carriage return which upsets mingw
7187 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7188 *)
7189 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7190 esac
7191 case $ac_prog in
7192 # Accept absolute paths.
7193 [\\/]* | ?:[\\/]*)
7194 re_direlt='/[^/][^/]*/\.\./'
7195 # Canonicalize the pathname of ld
7196 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7197 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7198 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7199 done
7200 test -z "$LD" && LD="$ac_prog"
7201 ;;
7202 "")
7203 # If it fails, then pretend we aren't using GCC.
7204 ac_prog=ld
7205 ;;
7206 *)
7207 # If it is relative, then search for the first ld in PATH.
7208 with_gnu_ld=unknown
7209 ;;
7210 esac
7211elif test "$with_gnu_ld" = yes; then
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7213$as_echo_n "checking for GNU ld... " >&6; }
7214else
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7216$as_echo_n "checking for non-GNU ld... " >&6; }
7217fi
7218if test "${lt_cv_path_LD+set}" = set; then :
7219 $as_echo_n "(cached) " >&6
7220else
7221 if test -z "$LD"; then
7222 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7223 for ac_dir in $PATH; do
7224 IFS="$lt_save_ifs"
7225 test -z "$ac_dir" && ac_dir=.
7226 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7227 lt_cv_path_LD="$ac_dir/$ac_prog"
7228 # Check to see if the program is GNU ld. I'd rather use --version,
7229 # but apparently some variants of GNU ld only accept -v.
7230 # Break only if it was the GNU/non-GNU ld that we prefer.
7231 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7232 *GNU* | *'with BFD'*)
7233 test "$with_gnu_ld" != no && break
7234 ;;
7235 *)
7236 test "$with_gnu_ld" != yes && break
7237 ;;
7238 esac
7239 fi
7240 done
7241 IFS="$lt_save_ifs"
7242else
7243 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7244fi
7245fi
7246
7247LD="$lt_cv_path_LD"
7248if test -n "$LD"; then
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7250$as_echo "$LD" >&6; }
7251else
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253$as_echo "no" >&6; }
7254fi
cristy98dddb52010-11-04 00:30:15 +00007255test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7257$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7258if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7259 $as_echo_n "(cached) " >&6
7260else
7261 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7262case `$LD -v 2>&1 </dev/null` in
7263*GNU* | *'with BFD'*)
7264 lt_cv_prog_gnu_ld=yes
7265 ;;
7266*)
7267 lt_cv_prog_gnu_ld=no
7268 ;;
7269esac
7270fi
7271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7272$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7273with_gnu_ld=$lt_cv_prog_gnu_ld
7274
7275
7276
7277
7278
7279
7280
7281
7282
cristy3ed852e2009-09-05 21:47:34 +00007283
cristy837d6dc2010-02-27 01:16:57 +00007284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7285$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7286if test "${ac_cv_prog_cc_c99+set}" = set; then :
7287 $as_echo_n "(cached) " >&6
7288else
7289 ac_cv_prog_cc_c99=no
7290ac_save_CC=$CC
7291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7292/* end confdefs.h. */
7293#include <stdarg.h>
7294#include <stdbool.h>
7295#include <stdlib.h>
7296#include <wchar.h>
7297#include <stdio.h>
7298
7299// Check varargs macros. These examples are taken from C99 6.10.3.5.
7300#define debug(...) fprintf (stderr, __VA_ARGS__)
7301#define showlist(...) puts (#__VA_ARGS__)
7302#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7303static void
7304test_varargs_macros (void)
7305{
7306 int x = 1234;
7307 int y = 5678;
7308 debug ("Flag");
7309 debug ("X = %d\n", x);
7310 showlist (The first, second, and third items.);
7311 report (x>y, "x is %d but y is %d", x, y);
7312}
7313
7314// Check long long types.
7315#define BIG64 18446744073709551615ull
7316#define BIG32 4294967295ul
7317#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7318#if !BIG_OK
7319 your preprocessor is broken;
7320#endif
7321#if BIG_OK
7322#else
7323 your preprocessor is broken;
7324#endif
7325static long long int bignum = -9223372036854775807LL;
7326static unsigned long long int ubignum = BIG64;
7327
7328struct incomplete_array
7329{
7330 int datasize;
7331 double data[];
7332};
7333
7334struct named_init {
7335 int number;
7336 const wchar_t *name;
7337 double average;
7338};
7339
7340typedef const char *ccp;
7341
7342static inline int
7343test_restrict (ccp restrict text)
7344{
7345 // See if C++-style comments work.
7346 // Iterate through items via the restricted pointer.
7347 // Also check for declarations in for loops.
7348 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7349 continue;
7350 return 0;
7351}
7352
7353// Check varargs and va_copy.
7354static void
7355test_varargs (const char *format, ...)
7356{
7357 va_list args;
7358 va_start (args, format);
7359 va_list args_copy;
7360 va_copy (args_copy, args);
7361
7362 const char *str;
7363 int number;
7364 float fnumber;
7365
7366 while (*format)
7367 {
7368 switch (*format++)
7369 {
7370 case 's': // string
7371 str = va_arg (args_copy, const char *);
7372 break;
7373 case 'd': // int
7374 number = va_arg (args_copy, int);
7375 break;
7376 case 'f': // float
7377 fnumber = va_arg (args_copy, double);
7378 break;
7379 default:
7380 break;
7381 }
7382 }
7383 va_end (args_copy);
7384 va_end (args);
7385}
7386
7387int
7388main ()
7389{
7390
7391 // Check bool.
7392 _Bool success = false;
7393
7394 // Check restrict.
7395 if (test_restrict ("String literal") == 0)
7396 success = true;
7397 char *restrict newvar = "Another string";
7398
7399 // Check varargs.
7400 test_varargs ("s, d' f .", "string", 65, 34.234);
7401 test_varargs_macros ();
7402
7403 // Check flexible array members.
7404 struct incomplete_array *ia =
7405 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7406 ia->datasize = 10;
7407 for (int i = 0; i < ia->datasize; ++i)
7408 ia->data[i] = i * 1.234;
7409
7410 // Check named initializers.
7411 struct named_init ni = {
7412 .number = 34,
7413 .name = L"Test wide string",
7414 .average = 543.34343,
7415 };
7416
7417 ni.number = 58;
7418
7419 int dynamic_array[ni.number];
7420 dynamic_array[ni.number - 1] = 543;
7421
7422 // work around unused variable warnings
7423 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7424 || dynamic_array[ni.number - 1] != 543);
7425
7426 ;
7427 return 0;
7428}
7429_ACEOF
7430for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7431do
7432 CC="$ac_save_CC $ac_arg"
7433 if ac_fn_c_try_compile "$LINENO"; then :
7434 ac_cv_prog_cc_c99=$ac_arg
7435fi
7436rm -f core conftest.err conftest.$ac_objext
7437 test "x$ac_cv_prog_cc_c99" != "xno" && break
7438done
7439rm -f conftest.$ac_ext
7440CC=$ac_save_CC
7441
7442fi
7443# AC_CACHE_VAL
7444case "x$ac_cv_prog_cc_c99" in
7445 x)
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7447$as_echo "none needed" >&6; } ;;
7448 xno)
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7450$as_echo "unsupported" >&6; } ;;
7451 *)
7452 CC="$CC $ac_cv_prog_cc_c99"
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7454$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7455esac
7456if test "x$ac_cv_prog_cc_c99" != xno; then :
7457
7458fi
7459
7460
cristy73bd4a52010-10-05 11:24:23 +00007461if test "x$CC" != xcc; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7463$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7464else
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7466$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7467fi
7468set dummy $CC; ac_cc=`$as_echo "$2" |
7469 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy98dddb52010-11-04 00:30:15 +00007470if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007471 $as_echo_n "(cached) " >&6
7472else
cristy73bd4a52010-10-05 11:24:23 +00007473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474/* end confdefs.h. */
7475
7476int
7477main ()
7478{
7479
7480 ;
7481 return 0;
7482}
7483_ACEOF
7484# Make sure it works both with $CC and with simple cc.
7485# We do the test twice because some compilers refuse to overwrite an
7486# existing .o file with -o, though they will create one.
7487ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7488rm -f conftest2.*
7489if { { case "(($ac_try" in
7490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7491 *) ac_try_echo=$ac_try;;
7492esac
7493eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7494$as_echo "$ac_try_echo"; } >&5
7495 (eval "$ac_try") 2>&5
7496 ac_status=$?
7497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7498 test $ac_status = 0; } &&
7499 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7501 *) ac_try_echo=$ac_try;;
7502esac
7503eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7504$as_echo "$ac_try_echo"; } >&5
7505 (eval "$ac_try") 2>&5
7506 ac_status=$?
7507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7508 test $ac_status = 0; };
7509then
7510 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7511 if test "x$CC" != xcc; then
7512 # Test first that cc exists at all.
7513 if { ac_try='cc -c conftest.$ac_ext >&5'
7514 { { case "(($ac_try" in
7515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7516 *) ac_try_echo=$ac_try;;
7517esac
7518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7519$as_echo "$ac_try_echo"; } >&5
7520 (eval "$ac_try") 2>&5
7521 ac_status=$?
7522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7523 test $ac_status = 0; }; }; then
7524 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7525 rm -f conftest2.*
7526 if { { case "(($ac_try" in
7527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7528 *) ac_try_echo=$ac_try;;
7529esac
7530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7531$as_echo "$ac_try_echo"; } >&5
7532 (eval "$ac_try") 2>&5
7533 ac_status=$?
7534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7535 test $ac_status = 0; } &&
7536 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7538 *) ac_try_echo=$ac_try;;
7539esac
7540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7541$as_echo "$ac_try_echo"; } >&5
7542 (eval "$ac_try") 2>&5
7543 ac_status=$?
7544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7545 test $ac_status = 0; };
7546 then
7547 # cc works too.
7548 :
7549 else
7550 # cc exists but doesn't like -o.
7551 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7552 fi
7553 fi
7554 fi
7555else
7556 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7557fi
7558rm -f core conftest*
7559
7560fi
7561if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7563$as_echo "yes" >&6; }
7564else
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566$as_echo "no" >&6; }
7567
7568$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7569
7570fi
7571
7572# FIXME: we rely on the cache variable name because
7573# there is no other way.
7574set dummy $CC
7575am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7576eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7577if test "$am_t" != yes; then
7578 # Losing compiler, so override with the script.
7579 # FIXME: It is wrong to rewrite CC.
7580 # But if we don't then we get into trouble of one sort or another.
7581 # A longer-term fix would be to have automake use am__CC in this case,
7582 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7583 CC="$am_aux_dir/compile $CC"
7584fi
7585
7586
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7588$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7589if test "${ac_cv_cflags_warn_all+set}" = set; then :
7590 $as_echo_n "(cached) " >&6
7591else
7592 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007593 ac_ext=c
7594ac_cpp='$CPP $CPPFLAGS'
7595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7597ac_compiler_gnu=$ac_cv_c_compiler_gnu
7598
7599 ac_save_CFLAGS="$CFLAGS"
7600for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
7601do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603/* end confdefs.h. */
7604
7605int
7606main ()
7607{
cristy24fc1fe2010-10-23 21:13:01 +00007608
cristy73bd4a52010-10-05 11:24:23 +00007609 ;
7610 return 0;
7611}
7612_ACEOF
7613if ac_fn_c_try_compile "$LINENO"; then :
7614 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7615fi
7616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617done
7618 CFLAGS="$ac_save_CFLAGS"
7619 ac_ext=c
7620ac_cpp='$CPP $CPPFLAGS'
7621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7623ac_compiler_gnu=$ac_cv_c_compiler_gnu
7624
7625
7626fi
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7628$as_echo "$ac_cv_cflags_warn_all" >&6; }
7629case ".$ac_cv_cflags_warn_all" in
7630 .ok|.ok,*) ;;
7631 .|.no|.no,*)
7632 ;;
7633 *)
7634 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7635 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7636 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7637 ac_status=$?
7638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7639 test $ac_status = 0; }
7640 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7641 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7642 ac_status=$?
7643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7644 test $ac_status = 0; }
7645 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7646 fi
7647 ;;
nicolas6237c462010-10-05 06:11:49 +00007648esac
cristy3ed852e2009-09-05 21:47:34 +00007649
cristya0b81c32010-01-22 02:54:33 +00007650
7651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7652$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7653set x ${MAKE-make}
7654ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy98dddb52010-11-04 00:30:15 +00007655if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
cristya0b81c32010-01-22 02:54:33 +00007656 $as_echo_n "(cached) " >&6
7657else
7658 cat >conftest.make <<\_ACEOF
7659SHELL = /bin/sh
7660all:
7661 @echo '@@@%%%=$(MAKE)=@@@%%%'
7662_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007663# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007664case `${MAKE-make} -f conftest.make 2>/dev/null` in
7665 *@@@%%%=?*=@@@%%%*)
7666 eval ac_cv_prog_make_${ac_make}_set=yes;;
7667 *)
7668 eval ac_cv_prog_make_${ac_make}_set=no;;
7669esac
7670rm -f conftest.make
7671fi
7672if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7674$as_echo "yes" >&6; }
7675 SET_MAKE=
7676else
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678$as_echo "no" >&6; }
7679 SET_MAKE="MAKE=${MAKE-make}"
7680fi
7681
cristy8b350f62009-11-15 23:12:43 +00007682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007683$as_echo_n "checking whether ln -s works... " >&6; }
7684LN_S=$as_ln_s
7685if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007687$as_echo "yes" >&6; }
7688else
cristy8b350f62009-11-15 23:12:43 +00007689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007690$as_echo "no, using $LN_S" >&6; }
7691fi
7692
cristy73bd4a52010-10-05 11:24:23 +00007693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7694$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7695
7696# Check whether --with-dmalloc was given.
7697if test "${with_dmalloc+set}" = set; then :
7698 withval=$with_dmalloc; if test "$withval" = yes; then
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7700$as_echo "yes" >&6; }
7701
7702$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7703
7704 LIBS="$LIBS -ldmalloc"
7705 LDFLAGS="$LDFLAGS -g"
7706else
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708$as_echo "no" >&6; }
7709fi
7710else
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712$as_echo "no" >&6; }
7713fi
7714
7715
7716
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7718$as_echo_n "checking for __attribute__... " >&6; }
7719if test "${ax_cv___attribute__+set}" = set; then :
7720 $as_echo_n "(cached) " >&6
7721else
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723/* end confdefs.h. */
7724#include <stdlib.h>
7725 static void foo(void) __attribute__ ((unused));
7726 static void
7727 foo(void) {
7728 exit(1);
7729 }
7730
7731int
7732main ()
7733{
7734
7735 ;
7736 return 0;
7737}
7738_ACEOF
7739if ac_fn_c_try_compile "$LINENO"; then :
7740 ax_cv___attribute__=yes
7741else
7742 ax_cv___attribute__=no
7743
7744fi
7745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7746
7747fi
7748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7749$as_echo "$ax_cv___attribute__" >&6; }
7750 if test "$ax_cv___attribute__" = "yes"; then
7751
7752$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7753
7754 fi
7755
7756
7757
7758if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7759 if test -n "$ac_tool_prefix"; then
7760 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7761set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7763$as_echo_n "checking for $ac_word... " >&6; }
7764if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7765 $as_echo_n "(cached) " >&6
7766else
7767 case $PKG_CONFIG in
7768 [\\/]* | ?:[\\/]*)
7769 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7770 ;;
7771 *)
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773for as_dir in $PATH
7774do
7775 IFS=$as_save_IFS
7776 test -z "$as_dir" && as_dir=.
7777 for ac_exec_ext in '' $ac_executable_extensions; do
7778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7779 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7781 break 2
7782 fi
7783done
7784 done
7785IFS=$as_save_IFS
7786
7787 ;;
7788esac
7789fi
7790PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7791if test -n "$PKG_CONFIG"; then
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7793$as_echo "$PKG_CONFIG" >&6; }
7794else
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796$as_echo "no" >&6; }
7797fi
7798
7799
7800fi
7801if test -z "$ac_cv_path_PKG_CONFIG"; then
7802 ac_pt_PKG_CONFIG=$PKG_CONFIG
7803 # Extract the first word of "pkg-config", so it can be a program name with args.
7804set dummy pkg-config; ac_word=$2
7805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7806$as_echo_n "checking for $ac_word... " >&6; }
7807if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7808 $as_echo_n "(cached) " >&6
7809else
7810 case $ac_pt_PKG_CONFIG in
7811 [\\/]* | ?:[\\/]*)
7812 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7813 ;;
7814 *)
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816for as_dir in $PATH
7817do
7818 IFS=$as_save_IFS
7819 test -z "$as_dir" && as_dir=.
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7822 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824 break 2
7825 fi
7826done
7827 done
7828IFS=$as_save_IFS
7829
7830 ;;
7831esac
7832fi
7833ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7834if test -n "$ac_pt_PKG_CONFIG"; then
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7836$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7837else
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839$as_echo "no" >&6; }
7840fi
7841
7842 if test "x$ac_pt_PKG_CONFIG" = x; then
7843 PKG_CONFIG=""
7844 else
7845 case $cross_compiling:$ac_tool_warned in
7846yes:)
7847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7849ac_tool_warned=yes ;;
7850esac
7851 PKG_CONFIG=$ac_pt_PKG_CONFIG
7852 fi
7853else
7854 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7855fi
7856
7857fi
7858if test -n "$PKG_CONFIG"; then
7859 _pkg_min_version=0.9.0
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7861$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7862 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7864$as_echo "yes" >&6; }
7865 else
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867$as_echo "no" >&6; }
7868 PKG_CONFIG=""
7869 fi
7870
7871fi
cristy3ed852e2009-09-05 21:47:34 +00007872
7873#
cristy3ed852e2009-09-05 21:47:34 +00007874# Enable run-time checking.
7875#
7876# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007877if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007878 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7879else
7880 enable_bounds_checking='no'
7881fi
7882
7883
7884if test "$enable_bounds_checking" = yes; then
7885
cristy8b350f62009-11-15 23:12:43 +00007886$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007887
7888fi
7889
7890#
7891# Tests for Windows
7892#
7893
7894
cristy73bd4a52010-10-05 11:24:23 +00007895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7896$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7897if test "${ax_cv_c_compiler_ms+set}" = set; then :
7898 $as_echo_n "(cached) " >&6
7899else
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901/* end confdefs.h. */
7902
7903int
7904main ()
7905{
7906#ifndef _MSC_VER
7907 choke me
7908#endif
7909
7910 ;
7911 return 0;
7912}
7913_ACEOF
7914if ac_fn_c_try_compile "$LINENO"; then :
7915 ax_compiler_ms=yes
7916else
7917 ax_compiler_ms=no
7918fi
7919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7920ax_cv_c_compiler_ms=$ax_compiler_ms
7921
7922fi
7923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7924$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00007925
7926GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00007927native_win32_build='no'
7928cygwin_build='no'
7929case "${host_os}" in
7930 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00007931 cygwin_build='yes'
7932 GDI32_LIBS='-lgdi32'
7933 ;;
7934 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00007935 native_win32_build='yes'
7936 GDI32_LIBS='-lgdi32'
7937 ;;
7938esac
7939if test "${GDI32_LIBS}x" != 'x'; then
7940
cristy8b350f62009-11-15 23:12:43 +00007941$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007942
7943fi
7944
cristy73bd4a52010-10-05 11:24:23 +00007945 if test "${GDI32_LIBS}x" != 'x' ; then
7946 WINGDI32_DELEGATE_TRUE=
7947 WINGDI32_DELEGATE_FALSE='#'
7948else
7949 WINGDI32_DELEGATE_TRUE='#'
7950 WINGDI32_DELEGATE_FALSE=
7951fi
7952
7953 if test "${native_win32_build}" = 'yes' ; then
7954 WIN32_NATIVE_BUILD_TRUE=
7955 WIN32_NATIVE_BUILD_FALSE='#'
7956else
7957 WIN32_NATIVE_BUILD_TRUE='#'
7958 WIN32_NATIVE_BUILD_FALSE=
7959fi
7960
7961 if test "${cygwin_build}" = 'yes' ; then
7962 CYGWIN_BUILD_TRUE=
7963 CYGWIN_BUILD_FALSE='#'
7964else
7965 CYGWIN_BUILD_TRUE='#'
7966 CYGWIN_BUILD_FALSE=
7967fi
7968
7969 if test "x${CC}" = 'xcl.exe' ; then
7970 USING_CL_TRUE=
7971 USING_CL_FALSE='#'
7972else
7973 USING_CL_TRUE='#'
7974 USING_CL_FALSE=
7975fi
7976
cristy3ed852e2009-09-05 21:47:34 +00007977
7978WinPathScript="${srcdirfull}/winpath.sh"
7979
7980
7981#
7982# Compiler flags tweaks
7983#
7984if test "${GCC}" != "yes"; then
7985 case "${host}" in
7986 *-*-hpux* )
7987 # aCC: HP ANSI C++ B3910B A.03.34
7988 CFLAGS="${CFLAGS} -Wp,-H30000"
7989 if test -n "${CXXFLAGS}"; then
7990 CXXFLAGS='-AA'
7991 else
7992 CXXFLAGS="${CXXFLAGS} -AA"
7993 fi
7994 ;;
7995 *-dec-osf5.* )
7996 # Compaq alphaev68-dec-osf5.1 compiler
7997 if test -n "${CXXFLAGS}"; then
7998 CXXFLAGS='-std strict_ansi -noimplicit_include'
7999 else
8000 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8001 fi
8002 esac
8003fi
8004
8005# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008007$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008008if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008009 $as_echo_n "(cached) " >&6
8010else
8011
8012im_cv_ld_lazyload='none'
8013case "${host}" in
8014 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8015 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8016 im_cv_ld_lazyload='-Wl,-zlazyload'
8017 fi
8018 ;;
8019esac
8020
8021fi
cristy8b350f62009-11-15 23:12:43 +00008022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008023$as_echo "$im_cv_ld_lazyload" >&6; }
8024if test "${im_cv_ld_lazyload}" != 'none' ; then
8025 if test -z "${LDFLAGS}" ; then
8026 LDFLAGS="${im_cv_ld_lazyload}"
8027 else
8028 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8029 fi
8030fi
8031
8032case "$host" in
8033*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008034 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008035if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008036 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8037else
8038 build_osxuniversal=no
8039fi
8040
8041
8042 if test "${build_osxuniversal}" != no ; then
8043 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008044 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008045Please re-run configure with these options:
8046 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008047 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008048 fi
8049 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8050 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8051 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8052 fi
8053 ;;
8054esac
8055
8056# Enable support for threads
8057
8058# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008059if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008060 withval=$with_threads; with_threads=$withval
8061else
8062 with_threads='yes'
8063fi
8064
8065
8066have_threads=no
8067if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008068
8069
8070
8071ac_ext=c
8072ac_cpp='$CPP $CPPFLAGS'
8073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8075ac_compiler_gnu=$ac_cv_c_compiler_gnu
8076
8077ax_pthread_ok=no
8078
8079# We used to check for pthread.h first, but this fails if pthread.h
8080# requires special compiler flags (e.g. on True64 or Sequent).
8081# It gets checked for in the link test anyway.
8082
8083# First of all, check if the user has set any of the PTHREAD_LIBS,
8084# etcetera environment variables, and if threads linking works using
8085# them:
8086if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8087 save_CFLAGS="$CFLAGS"
8088 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8089 save_LIBS="$LIBS"
8090 LIBS="$PTHREAD_LIBS $LIBS"
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8092$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094/* end confdefs.h. */
8095
8096/* Override any GCC internal prototype to avoid an error.
8097 Use char because int might match the return type of a GCC
8098 builtin and then its argument prototype would still apply. */
8099#ifdef __cplusplus
8100extern "C"
8101#endif
8102char pthread_join ();
8103int
8104main ()
8105{
8106return pthread_join ();
8107 ;
8108 return 0;
8109}
8110_ACEOF
8111if ac_fn_c_try_link "$LINENO"; then :
8112 ax_pthread_ok=yes
8113fi
8114rm -f core conftest.err conftest.$ac_objext \
8115 conftest$ac_exeext conftest.$ac_ext
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8117$as_echo "$ax_pthread_ok" >&6; }
8118 if test x"$ax_pthread_ok" = xno; then
8119 PTHREAD_LIBS=""
8120 PTHREAD_CFLAGS=""
8121 fi
8122 LIBS="$save_LIBS"
8123 CFLAGS="$save_CFLAGS"
8124fi
8125
8126# We must check for the threads library under a number of different
8127# names; the ordering is very important because some systems
8128# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8129# libraries is broken (non-POSIX).
8130
8131# Create a list of thread flags to try. Items starting with a "-" are
8132# C compiler flags, and other items are library names, except for "none"
8133# which indicates that we try without any flags at all, and "pthread-config"
8134# which is a program returning the flags for the Pth emulation library.
8135
8136ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8137
8138# The ordering *is* (sometimes) important. Some notes on the
8139# individual items follow:
8140
8141# pthreads: AIX (must check this before -lpthread)
8142# none: in case threads are in libc; should be tried before -Kthread and
8143# other compiler flags to prevent continual compiler warnings
8144# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8145# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8146# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8147# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8148# -pthreads: Solaris/gcc
8149# -mthreads: Mingw32/gcc, Lynx/gcc
8150# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8151# doesn't hurt to check since this sometimes defines pthreads too;
8152# also defines -D_REENTRANT)
8153# ... -mt is also the pthreads flag for HP/aCC
8154# pthread: Linux, etcetera
8155# --thread-safe: KAI C++
8156# pthread-config: use pthread-config program (for GNU Pth library)
8157
8158case "${host_cpu}-${host_os}" in
8159 *solaris*)
8160
8161 # On Solaris (at least, for some versions), libc contains stubbed
8162 # (non-functional) versions of the pthreads routines, so link-based
8163 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8164 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8165 # a function called by this macro, so we could check for that, but
8166 # who knows whether they'll stub that too in a future libc.) So,
8167 # we'll just look for -pthreads and -lpthread first:
8168
8169 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8170 ;;
8171
8172 *-darwin*)
8173 ax_pthread_flags="-pthread $ax_pthread_flags"
8174 ;;
8175esac
8176
8177if test x"$ax_pthread_ok" = xno; then
8178for flag in $ax_pthread_flags; do
8179
8180 case $flag in
8181 none)
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8183$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8184 ;;
8185
8186 -*)
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8188$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8189 PTHREAD_CFLAGS="$flag"
8190 ;;
8191
8192 pthread-config)
8193 # Extract the first word of "pthread-config", so it can be a program name with args.
8194set dummy pthread-config; ac_word=$2
8195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196$as_echo_n "checking for $ac_word... " >&6; }
8197if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8198 $as_echo_n "(cached) " >&6
8199else
8200 if test -n "$ax_pthread_config"; then
8201 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8202else
8203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204for as_dir in $PATH
8205do
8206 IFS=$as_save_IFS
8207 test -z "$as_dir" && as_dir=.
8208 for ac_exec_ext in '' $ac_executable_extensions; do
8209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8210 ac_cv_prog_ax_pthread_config="yes"
8211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8212 break 2
8213 fi
8214done
8215 done
8216IFS=$as_save_IFS
8217
8218 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8219fi
8220fi
8221ax_pthread_config=$ac_cv_prog_ax_pthread_config
8222if test -n "$ax_pthread_config"; then
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8224$as_echo "$ax_pthread_config" >&6; }
8225else
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227$as_echo "no" >&6; }
8228fi
8229
8230
8231 if test x"$ax_pthread_config" = xno; then continue; fi
8232 PTHREAD_CFLAGS="`pthread-config --cflags`"
8233 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8234 ;;
8235
8236 *)
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8238$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8239 PTHREAD_LIBS="-l$flag"
8240 ;;
8241 esac
8242
8243 save_LIBS="$LIBS"
8244 save_CFLAGS="$CFLAGS"
8245 LIBS="$PTHREAD_LIBS $LIBS"
8246 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8247
8248 # Check for various functions. We must include pthread.h,
8249 # since some functions may be macros. (On the Sequent, we
8250 # need a special flag -Kthread to make this header compile.)
8251 # We check for pthread_join because it is in -lpthread on IRIX
8252 # while pthread_create is in libc. We check for pthread_attr_init
8253 # due to DEC craziness with -lpthreads. We check for
8254 # pthread_cleanup_push because it is one of the few pthread
8255 # functions on Solaris that doesn't have a non-functional libc stub.
8256 # We try pthread_create on general principles.
8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258/* end confdefs.h. */
8259#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008260 static void routine(void* a) {a=0;}
8261 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008262int
8263main ()
8264{
8265pthread_t th; pthread_attr_t attr;
8266 pthread_create(&th,0,start_routine,0);
8267 pthread_join(th, 0);
8268 pthread_attr_init(&attr);
8269 pthread_cleanup_push(routine, 0);
8270 pthread_cleanup_pop(0);
8271 ;
8272 return 0;
8273}
8274_ACEOF
8275if ac_fn_c_try_link "$LINENO"; then :
8276 ax_pthread_ok=yes
8277fi
8278rm -f core conftest.err conftest.$ac_objext \
8279 conftest$ac_exeext conftest.$ac_ext
8280
8281 LIBS="$save_LIBS"
8282 CFLAGS="$save_CFLAGS"
8283
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8285$as_echo "$ax_pthread_ok" >&6; }
8286 if test "x$ax_pthread_ok" = xyes; then
8287 break;
8288 fi
8289
8290 PTHREAD_LIBS=""
8291 PTHREAD_CFLAGS=""
8292done
8293fi
8294
8295# Various other checks:
8296if test "x$ax_pthread_ok" = xyes; then
8297 save_LIBS="$LIBS"
8298 LIBS="$PTHREAD_LIBS $LIBS"
8299 save_CFLAGS="$CFLAGS"
8300 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8301
8302 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8304$as_echo_n "checking for joinable pthread attribute... " >&6; }
8305 attr_name=unknown
8306 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308/* end confdefs.h. */
8309#include <pthread.h>
8310int
8311main ()
8312{
8313int attr=$attr; return attr;
8314 ;
8315 return 0;
8316}
8317_ACEOF
8318if ac_fn_c_try_link "$LINENO"; then :
8319 attr_name=$attr; break
8320fi
8321rm -f core conftest.err conftest.$ac_objext \
8322 conftest$ac_exeext conftest.$ac_ext
8323 done
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8325$as_echo "$attr_name" >&6; }
8326 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8327
8328cat >>confdefs.h <<_ACEOF
8329#define PTHREAD_CREATE_JOINABLE $attr_name
8330_ACEOF
8331
8332 fi
8333
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8335$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8336 flag=no
8337 case "${host_cpu}-${host_os}" in
8338 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8339 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8340 esac
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8342$as_echo "${flag}" >&6; }
8343 if test "x$flag" != xno; then
8344 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8345 fi
8346
8347 LIBS="$save_LIBS"
8348 CFLAGS="$save_CFLAGS"
8349
8350 # More AIX lossage: must compile with xlc_r or cc_r
8351 if test x"$GCC" != xyes; then
8352 for ac_prog in xlc_r cc_r
8353do
8354 # Extract the first word of "$ac_prog", so it can be a program name with args.
8355set dummy $ac_prog; ac_word=$2
8356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357$as_echo_n "checking for $ac_word... " >&6; }
8358if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8359 $as_echo_n "(cached) " >&6
8360else
8361 if test -n "$PTHREAD_CC"; then
8362 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8363else
8364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365for as_dir in $PATH
8366do
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371 ac_cv_prog_PTHREAD_CC="$ac_prog"
8372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8373 break 2
8374 fi
8375done
8376 done
8377IFS=$as_save_IFS
8378
8379fi
8380fi
8381PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8382if test -n "$PTHREAD_CC"; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8384$as_echo "$PTHREAD_CC" >&6; }
8385else
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387$as_echo "no" >&6; }
8388fi
8389
8390
8391 test -n "$PTHREAD_CC" && break
8392done
8393test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8394
8395 else
8396 PTHREAD_CC=$CC
8397 fi
8398else
8399 PTHREAD_CC="$CC"
8400fi
8401
8402
8403
8404
8405
8406# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8407if test x"$ax_pthread_ok" = xyes; then
8408
8409$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8410
8411 :
8412else
8413 ax_pthread_ok=no
8414
8415fi
8416ac_ext=c
8417ac_cpp='$CPP $CPPFLAGS'
8418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8420ac_compiler_gnu=$ac_cv_c_compiler_gnu
8421
8422
cristy7acf8fb2010-09-23 19:58:53 +00008423 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008424 have_threads=yes
8425 DEF_THREAD="$PTHREAD_CFLAGS"
8426 CFLAGS="$CFLAGS $DEF_THREAD"
8427 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8428 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
cristy3ed852e2009-09-05 21:47:34 +00008430$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8431 CC="$PTHREAD_CC"
8432 fi
cristy55bf91c2010-09-24 00:29:41 +00008433
8434$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8435
cristy3ed852e2009-09-05 21:47:34 +00008436 fi
8437fi
8438
8439# Enable support for OpenMP
8440if test "$have_threads" != 'yes'; then
8441 ac_cv_prog_c_openmp=unsupported
8442fi
8443
8444 OPENMP_CFLAGS=
8445 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008446if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008447 enableval=$enable_openmp;
8448fi
8449
8450 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008452$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008453if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008454 $as_echo_n "(cached) " >&6
8455else
cristy8b350f62009-11-15 23:12:43 +00008456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008458
8459#ifndef _OPENMP
8460 choke me
8461#endif
8462#include <omp.h>
8463int main () { return omp_get_num_threads (); }
8464
8465_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008466if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008467 ac_cv_prog_c_openmp='none needed'
8468else
cristy8b350f62009-11-15 23:12:43 +00008469 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008470 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8471 ac_save_CFLAGS=$CFLAGS
8472 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008475
8476#ifndef _OPENMP
8477 choke me
8478#endif
8479#include <omp.h>
8480int main () { return omp_get_num_threads (); }
8481
8482_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008483if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008484 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008485fi
cristy8b350f62009-11-15 23:12:43 +00008486rm -f core conftest.err conftest.$ac_objext \
8487 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008488 CFLAGS=$ac_save_CFLAGS
8489 if test "$ac_cv_prog_c_openmp" != unsupported; then
8490 break
8491 fi
8492 done
8493fi
cristy8b350f62009-11-15 23:12:43 +00008494rm -f core conftest.err conftest.$ac_objext \
8495 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008496fi
cristy8b350f62009-11-15 23:12:43 +00008497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008498$as_echo "$ac_cv_prog_c_openmp" >&6; }
8499 case $ac_cv_prog_c_openmp in #(
8500 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008501 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008502 *)
cristy8b350f62009-11-15 23:12:43 +00008503 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008504 esac
8505 fi
8506
8507
8508CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8509MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8510
cristy391f1ce2010-09-09 17:23:28 +00008511if test "$enable_openmp" != no; then
8512 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8513 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8514 fi
8515fi
cristy3ed852e2009-09-05 21:47:34 +00008516
cristy736173a2009-09-20 21:18:22 +00008517# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008518
8519
8520
8521ac_ext=c
8522ac_cpp='$CPP $CPPFLAGS'
8523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8525ac_compiler_gnu=$ac_cv_c_compiler_gnu
8526
8527ax_pthread_ok=no
8528
8529# We used to check for pthread.h first, but this fails if pthread.h
8530# requires special compiler flags (e.g. on True64 or Sequent).
8531# It gets checked for in the link test anyway.
8532
8533# First of all, check if the user has set any of the PTHREAD_LIBS,
8534# etcetera environment variables, and if threads linking works using
8535# them:
8536if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8537 save_CFLAGS="$CFLAGS"
8538 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8539 save_LIBS="$LIBS"
8540 LIBS="$PTHREAD_LIBS $LIBS"
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8542$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544/* end confdefs.h. */
8545
8546/* Override any GCC internal prototype to avoid an error.
8547 Use char because int might match the return type of a GCC
8548 builtin and then its argument prototype would still apply. */
8549#ifdef __cplusplus
8550extern "C"
8551#endif
8552char pthread_join ();
8553int
8554main ()
8555{
8556return pthread_join ();
8557 ;
8558 return 0;
8559}
8560_ACEOF
8561if ac_fn_c_try_link "$LINENO"; then :
8562 ax_pthread_ok=yes
8563fi
8564rm -f core conftest.err conftest.$ac_objext \
8565 conftest$ac_exeext conftest.$ac_ext
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8567$as_echo "$ax_pthread_ok" >&6; }
8568 if test x"$ax_pthread_ok" = xno; then
8569 PTHREAD_LIBS=""
8570 PTHREAD_CFLAGS=""
8571 fi
8572 LIBS="$save_LIBS"
8573 CFLAGS="$save_CFLAGS"
8574fi
8575
8576# We must check for the threads library under a number of different
8577# names; the ordering is very important because some systems
8578# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8579# libraries is broken (non-POSIX).
8580
8581# Create a list of thread flags to try. Items starting with a "-" are
8582# C compiler flags, and other items are library names, except for "none"
8583# which indicates that we try without any flags at all, and "pthread-config"
8584# which is a program returning the flags for the Pth emulation library.
8585
8586ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8587
8588# The ordering *is* (sometimes) important. Some notes on the
8589# individual items follow:
8590
8591# pthreads: AIX (must check this before -lpthread)
8592# none: in case threads are in libc; should be tried before -Kthread and
8593# other compiler flags to prevent continual compiler warnings
8594# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8595# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8596# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8597# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8598# -pthreads: Solaris/gcc
8599# -mthreads: Mingw32/gcc, Lynx/gcc
8600# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8601# doesn't hurt to check since this sometimes defines pthreads too;
8602# also defines -D_REENTRANT)
8603# ... -mt is also the pthreads flag for HP/aCC
8604# pthread: Linux, etcetera
8605# --thread-safe: KAI C++
8606# pthread-config: use pthread-config program (for GNU Pth library)
8607
8608case "${host_cpu}-${host_os}" in
8609 *solaris*)
8610
8611 # On Solaris (at least, for some versions), libc contains stubbed
8612 # (non-functional) versions of the pthreads routines, so link-based
8613 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8614 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8615 # a function called by this macro, so we could check for that, but
8616 # who knows whether they'll stub that too in a future libc.) So,
8617 # we'll just look for -pthreads and -lpthread first:
8618
8619 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8620 ;;
8621
8622 *-darwin*)
8623 ax_pthread_flags="-pthread $ax_pthread_flags"
8624 ;;
8625esac
8626
8627if test x"$ax_pthread_ok" = xno; then
8628for flag in $ax_pthread_flags; do
8629
8630 case $flag in
8631 none)
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8633$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8634 ;;
8635
8636 -*)
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8638$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8639 PTHREAD_CFLAGS="$flag"
8640 ;;
8641
8642 pthread-config)
8643 # Extract the first word of "pthread-config", so it can be a program name with args.
8644set dummy pthread-config; ac_word=$2
8645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8646$as_echo_n "checking for $ac_word... " >&6; }
8647if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8648 $as_echo_n "(cached) " >&6
8649else
8650 if test -n "$ax_pthread_config"; then
8651 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8652else
8653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654for as_dir in $PATH
8655do
8656 IFS=$as_save_IFS
8657 test -z "$as_dir" && as_dir=.
8658 for ac_exec_ext in '' $ac_executable_extensions; do
8659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8660 ac_cv_prog_ax_pthread_config="yes"
8661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8662 break 2
8663 fi
8664done
8665 done
8666IFS=$as_save_IFS
8667
8668 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8669fi
8670fi
8671ax_pthread_config=$ac_cv_prog_ax_pthread_config
8672if test -n "$ax_pthread_config"; then
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8674$as_echo "$ax_pthread_config" >&6; }
8675else
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677$as_echo "no" >&6; }
8678fi
8679
8680
8681 if test x"$ax_pthread_config" = xno; then continue; fi
8682 PTHREAD_CFLAGS="`pthread-config --cflags`"
8683 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8684 ;;
8685
8686 *)
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8688$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8689 PTHREAD_LIBS="-l$flag"
8690 ;;
8691 esac
8692
8693 save_LIBS="$LIBS"
8694 save_CFLAGS="$CFLAGS"
8695 LIBS="$PTHREAD_LIBS $LIBS"
8696 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8697
8698 # Check for various functions. We must include pthread.h,
8699 # since some functions may be macros. (On the Sequent, we
8700 # need a special flag -Kthread to make this header compile.)
8701 # We check for pthread_join because it is in -lpthread on IRIX
8702 # while pthread_create is in libc. We check for pthread_attr_init
8703 # due to DEC craziness with -lpthreads. We check for
8704 # pthread_cleanup_push because it is one of the few pthread
8705 # functions on Solaris that doesn't have a non-functional libc stub.
8706 # We try pthread_create on general principles.
8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708/* end confdefs.h. */
8709#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008710 static void routine(void* a) {a=0;}
8711 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008712int
8713main ()
8714{
8715pthread_t th; pthread_attr_t attr;
8716 pthread_create(&th,0,start_routine,0);
8717 pthread_join(th, 0);
8718 pthread_attr_init(&attr);
8719 pthread_cleanup_push(routine, 0);
8720 pthread_cleanup_pop(0);
8721 ;
8722 return 0;
8723}
8724_ACEOF
8725if ac_fn_c_try_link "$LINENO"; then :
8726 ax_pthread_ok=yes
8727fi
8728rm -f core conftest.err conftest.$ac_objext \
8729 conftest$ac_exeext conftest.$ac_ext
8730
8731 LIBS="$save_LIBS"
8732 CFLAGS="$save_CFLAGS"
8733
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8735$as_echo "$ax_pthread_ok" >&6; }
8736 if test "x$ax_pthread_ok" = xyes; then
8737 break;
8738 fi
8739
8740 PTHREAD_LIBS=""
8741 PTHREAD_CFLAGS=""
8742done
8743fi
8744
8745# Various other checks:
8746if test "x$ax_pthread_ok" = xyes; then
8747 save_LIBS="$LIBS"
8748 LIBS="$PTHREAD_LIBS $LIBS"
8749 save_CFLAGS="$CFLAGS"
8750 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8751
8752 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8754$as_echo_n "checking for joinable pthread attribute... " >&6; }
8755 attr_name=unknown
8756 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8758/* end confdefs.h. */
8759#include <pthread.h>
8760int
8761main ()
8762{
8763int attr=$attr; return attr;
8764 ;
8765 return 0;
8766}
8767_ACEOF
8768if ac_fn_c_try_link "$LINENO"; then :
8769 attr_name=$attr; break
8770fi
8771rm -f core conftest.err conftest.$ac_objext \
8772 conftest$ac_exeext conftest.$ac_ext
8773 done
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8775$as_echo "$attr_name" >&6; }
8776 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8777
8778cat >>confdefs.h <<_ACEOF
8779#define PTHREAD_CREATE_JOINABLE $attr_name
8780_ACEOF
8781
8782 fi
8783
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8785$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8786 flag=no
8787 case "${host_cpu}-${host_os}" in
8788 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8789 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8790 esac
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8792$as_echo "${flag}" >&6; }
8793 if test "x$flag" != xno; then
8794 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8795 fi
8796
8797 LIBS="$save_LIBS"
8798 CFLAGS="$save_CFLAGS"
8799
8800 # More AIX lossage: must compile with xlc_r or cc_r
8801 if test x"$GCC" != xyes; then
8802 for ac_prog in xlc_r cc_r
8803do
8804 # Extract the first word of "$ac_prog", so it can be a program name with args.
8805set dummy $ac_prog; ac_word=$2
8806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8807$as_echo_n "checking for $ac_word... " >&6; }
8808if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8809 $as_echo_n "(cached) " >&6
8810else
8811 if test -n "$PTHREAD_CC"; then
8812 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8813else
8814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8815for as_dir in $PATH
8816do
8817 IFS=$as_save_IFS
8818 test -z "$as_dir" && as_dir=.
8819 for ac_exec_ext in '' $ac_executable_extensions; do
8820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8821 ac_cv_prog_PTHREAD_CC="$ac_prog"
8822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8823 break 2
8824 fi
8825done
8826 done
8827IFS=$as_save_IFS
8828
8829fi
8830fi
8831PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8832if test -n "$PTHREAD_CC"; then
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8834$as_echo "$PTHREAD_CC" >&6; }
8835else
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8837$as_echo "no" >&6; }
8838fi
8839
8840
8841 test -n "$PTHREAD_CC" && break
8842done
8843test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8844
8845 else
8846 PTHREAD_CC=$CC
8847 fi
8848else
8849 PTHREAD_CC="$CC"
8850fi
8851
8852
8853
8854
8855
8856# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8857if test x"$ax_pthread_ok" = xyes; then
8858
8859$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8860
8861 :
8862else
8863 ax_pthread_ok=no
8864
8865fi
8866ac_ext=c
8867ac_cpp='$CPP $CPPFLAGS'
8868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8870ac_compiler_gnu=$ac_cv_c_compiler_gnu
8871
8872
8873
8874# Check whether --enable-opencl was given.
8875if test "${enable_opencl+set}" = set; then :
8876 enableval=$enable_opencl; disable_opencl=$enableval
8877else
8878 disable_opencl='yes'
8879fi
8880
8881
8882if test "$disable_opencl" = 'yes'; then
8883 ac_ext=c
8884ac_cpp='$CPP $CPPFLAGS'
8885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8887ac_compiler_gnu=$ac_cv_c_compiler_gnu
8888
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8890$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8891if test "${ax_cv_c_compiler_ms+set}" = set; then :
8892 $as_echo_n "(cached) " >&6
8893else
8894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895/* end confdefs.h. */
8896
8897int
8898main ()
8899{
8900#ifndef _MSC_VER
8901 choke me
8902#endif
8903
8904 ;
8905 return 0;
8906}
8907_ACEOF
8908if ac_fn_c_try_compile "$LINENO"; then :
8909 ax_compiler_ms=yes
8910else
8911 ax_compiler_ms=no
8912fi
8913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8914ax_cv_c_compiler_ms=$ax_compiler_ms
8915
8916fi
8917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8918$as_echo "$ax_cv_c_compiler_ms" >&6; }
8919 if test X$ax_compiler_ms = Xno; then :
8920 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8921fi
8922
8923 ax_save_CPPFLAGS=$CPPFLAGS
8924 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8925 for ac_header in CL/cl.h OpenCL/cl.h
8926do :
8927 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8928ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00008929if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00008930 cat >>confdefs.h <<_ACEOF
8931#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8932_ACEOF
8933
8934fi
8935
8936done
8937
8938 CPPFLAGS=$ax_save_CPPFLAGS
8939
8940 for ac_header in windows.h
8941do :
8942 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8943if test "x$ac_cv_header_windows_h" = x""yes; then :
8944 cat >>confdefs.h <<_ACEOF
8945#define HAVE_WINDOWS_H 1
8946_ACEOF
8947
8948fi
8949
8950done
8951
8952
8953
8954
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
8956$as_echo_n "checking for OpenCL library... " >&6; }
8957if test "${ax_cv_check_cl_libcl+set}" = set; then :
8958 $as_echo_n "(cached) " >&6
8959else
8960 ax_cv_check_cl_libcl=no
8961 case $host_cpu in
8962 x86_64) ax_check_cl_libdir=lib64 ;;
8963 *) ax_check_cl_libdir=lib ;;
8964 esac
8965 ax_save_CPPFLAGS=$CPPFLAGS
8966 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8967 ax_save_LIBS=$LIBS
8968 LIBS=""
8969 ax_check_libs="-lOpenCL -lCL -lclparser"
8970 for ax_lib in $ax_check_libs; do
8971 if test X$ax_compiler_ms = Xyes; then :
8972 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8973else
8974 ax_try_lib=$ax_lib
8975fi
8976 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8978/* end confdefs.h. */
8979
8980 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8981 # include <windows.h>
8982 # endif
8983 # ifdef HAVE_CL_CL_H
8984 # include <CL/cl.h>
8985 # elif defined(HAVE_OPENCL_CL_H)
8986 # include <OpenCL/cl.h>
8987 # else
8988 # error no CL.h
8989 # endif
8990int
8991main ()
8992{
8993clCreateContextFromType(0,0,0,0,0)
8994 ;
8995 return 0;
8996}
8997_ACEOF
8998if ac_fn_c_try_link "$LINENO"; then :
8999 ax_cv_check_cl_libcl=$ax_try_lib; break
9000else
9001 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"
9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003/* end confdefs.h. */
9004
9005 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9006 # include <windows.h>
9007 # endif
9008 # ifdef HAVE_CL_CL_H
9009 # include <CL/cl.h>
9010 # elif defined(HAVE_OPENCL_CL_H)
9011 # include <OpenCL/cl.h>
9012 # else
9013 # error no CL.h
9014 # endif
9015int
9016main ()
9017{
9018clCreateContextFromType(0,0,0,0,0)
9019 ;
9020 return 0;
9021}
9022_ACEOF
9023if ac_fn_c_try_link "$LINENO"; then :
9024 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9025else
9026 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"
9027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028/* end confdefs.h. */
9029
9030 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9031 # include <windows.h>
9032 # endif
9033 # ifdef HAVE_CL_CL_H
9034 # include <CL/cl.h>
9035 # elif defined(HAVE_OPENCL_CL_H)
9036 # include <OpenCL/cl.h>
9037 # else
9038 # error no CL.h
9039 # endif
9040int
9041main ()
9042{
9043clCreateContextFromType(0,0,0,0,0)
9044 ;
9045 return 0;
9046}
9047_ACEOF
9048if ac_fn_c_try_link "$LINENO"; then :
9049 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9050fi
9051rm -f core conftest.err conftest.$ac_objext \
9052 conftest$ac_exeext conftest.$ac_ext
9053fi
9054rm -f core conftest.err conftest.$ac_objext \
9055 conftest$ac_exeext conftest.$ac_ext
9056fi
9057rm -f core conftest.err conftest.$ac_objext \
9058 conftest$ac_exeext conftest.$ac_ext
9059 done
9060
9061 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
9062 LIBS='-framework OpenCL'
9063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9064/* end confdefs.h. */
9065
9066 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9067 # include <windows.h>
9068 # endif
9069 # ifdef HAVE_CL_CL_H
9070 # include <CL/cl.h>
9071 # elif defined(HAVE_OPENCL_CL_H)
9072 # include <OpenCL/cl.h>
9073 # else
9074 # error no CL.h
9075 # endif
9076int
9077main ()
9078{
9079clCreateContextFromType(0,0,0,0,0)
9080 ;
9081 return 0;
9082}
9083_ACEOF
9084if ac_fn_c_try_link "$LINENO"; then :
9085 ax_cv_check_cl_libcl=$LIBS
9086fi
9087rm -f core conftest.err conftest.$ac_objext \
9088 conftest$ac_exeext conftest.$ac_ext
9089fi
9090
9091 LIBS=$ax_save_LIBS
9092 CPPFLAGS=$ax_save_CPPFLAGS
9093fi
9094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9095$as_echo "$ax_cv_check_cl_libcl" >&6; }
9096
9097 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9098 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9099else
9100 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9101$as_echo "#define _OPENCL 1" >>confdefs.h
9102
9103fi
9104 ac_ext=c
9105ac_cpp='$CPP $CPPFLAGS'
9106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9108ac_compiler_gnu=$ac_cv_c_compiler_gnu
9109
9110fi
9111
9112
9113
9114
cristyc7083c12009-10-14 03:16:55 +00009115CFLAGS="$CL_CFLAGS $CFLAGS"
9116LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009117
cristy391f1ce2010-09-09 17:23:28 +00009118if test "$enable_opencl" != no; then
9119 if test "_OPENCL" = '1'; then
9120 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9121 fi
cristyfd9dcd42010-08-08 18:07:02 +00009122fi
cristy2e8b51d2009-10-17 18:26:15 +00009123
cristy3ed852e2009-09-05 21:47:34 +00009124########
9125#
9126# Check for large file support
9127#
9128########
9129# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009130if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009131 enableval=$enable_largefile;
9132fi
9133
9134if test "$enable_largefile" != no; then
9135
cristy8b350f62009-11-15 23:12:43 +00009136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009137$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009138if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009139 $as_echo_n "(cached) " >&6
9140else
9141 ac_cv_sys_largefile_CC=no
9142 if test "$GCC" != yes; then
9143 ac_save_CC=$CC
9144 while :; do
9145 # IRIX 6.2 and later do not support large files by default,
9146 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009148/* end confdefs.h. */
9149#include <sys/types.h>
9150 /* Check that off_t can represent 2**63 - 1 correctly.
9151 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9152 since some C++ compilers masquerading as C compilers
9153 incorrectly reject 9223372036854775807. */
9154#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9155 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9156 && LARGE_OFF_T % 2147483647 == 1)
9157 ? 1 : -1];
9158int
9159main ()
9160{
9161
9162 ;
9163 return 0;
9164}
9165_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009166 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009167 break
cristy3ed852e2009-09-05 21:47:34 +00009168fi
cristy3ed852e2009-09-05 21:47:34 +00009169rm -f core conftest.err conftest.$ac_objext
9170 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009171 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009172 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009173fi
cristy3ed852e2009-09-05 21:47:34 +00009174rm -f core conftest.err conftest.$ac_objext
9175 break
9176 done
9177 CC=$ac_save_CC
9178 rm -f conftest.$ac_ext
9179 fi
9180fi
cristy8b350f62009-11-15 23:12:43 +00009181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009182$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9183 if test "$ac_cv_sys_largefile_CC" != no; then
9184 CC=$CC$ac_cv_sys_largefile_CC
9185 fi
9186
cristy8b350f62009-11-15 23:12:43 +00009187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009188$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009189if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009190 $as_echo_n "(cached) " >&6
9191else
9192 while :; do
cristy8b350f62009-11-15 23:12:43 +00009193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009194/* end confdefs.h. */
9195#include <sys/types.h>
9196 /* Check that off_t can represent 2**63 - 1 correctly.
9197 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9198 since some C++ compilers masquerading as C compilers
9199 incorrectly reject 9223372036854775807. */
9200#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9201 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9202 && LARGE_OFF_T % 2147483647 == 1)
9203 ? 1 : -1];
9204int
9205main ()
9206{
9207
9208 ;
9209 return 0;
9210}
9211_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009212if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009213 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009214fi
cristy3ed852e2009-09-05 21:47:34 +00009215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009217/* end confdefs.h. */
9218#define _FILE_OFFSET_BITS 64
9219#include <sys/types.h>
9220 /* Check that off_t can represent 2**63 - 1 correctly.
9221 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9222 since some C++ compilers masquerading as C compilers
9223 incorrectly reject 9223372036854775807. */
9224#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9225 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9226 && LARGE_OFF_T % 2147483647 == 1)
9227 ? 1 : -1];
9228int
9229main ()
9230{
9231
9232 ;
9233 return 0;
9234}
9235_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009236if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009237 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009238fi
cristy3ed852e2009-09-05 21:47:34 +00009239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9240 ac_cv_sys_file_offset_bits=unknown
9241 break
9242done
9243fi
cristy8b350f62009-11-15 23:12:43 +00009244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009245$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9246case $ac_cv_sys_file_offset_bits in #(
9247 no | unknown) ;;
9248 *)
9249cat >>confdefs.h <<_ACEOF
9250#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9251_ACEOF
9252;;
9253esac
9254rm -rf conftest*
9255 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009257$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009258if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009259 $as_echo_n "(cached) " >&6
9260else
9261 while :; do
cristy8b350f62009-11-15 23:12:43 +00009262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009263/* end confdefs.h. */
9264#include <sys/types.h>
9265 /* Check that off_t can represent 2**63 - 1 correctly.
9266 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9267 since some C++ compilers masquerading as C compilers
9268 incorrectly reject 9223372036854775807. */
9269#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9270 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9271 && LARGE_OFF_T % 2147483647 == 1)
9272 ? 1 : -1];
9273int
9274main ()
9275{
9276
9277 ;
9278 return 0;
9279}
9280_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009281if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009282 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009283fi
cristy3ed852e2009-09-05 21:47:34 +00009284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009286/* end confdefs.h. */
9287#define _LARGE_FILES 1
9288#include <sys/types.h>
9289 /* Check that off_t can represent 2**63 - 1 correctly.
9290 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9291 since some C++ compilers masquerading as C compilers
9292 incorrectly reject 9223372036854775807. */
9293#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9294 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9295 && LARGE_OFF_T % 2147483647 == 1)
9296 ? 1 : -1];
9297int
9298main ()
9299{
9300
9301 ;
9302 return 0;
9303}
9304_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009305if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009306 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009307fi
cristy3ed852e2009-09-05 21:47:34 +00009308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9309 ac_cv_sys_large_files=unknown
9310 break
9311done
9312fi
cristy8b350f62009-11-15 23:12:43 +00009313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009314$as_echo "$ac_cv_sys_large_files" >&6; }
9315case $ac_cv_sys_large_files in #(
9316 no | unknown) ;;
9317 *)
9318cat >>confdefs.h <<_ACEOF
9319#define _LARGE_FILES $ac_cv_sys_large_files
9320_ACEOF
9321;;
9322esac
9323rm -rf conftest*
9324 fi
9325fi
9326
cristy8b350f62009-11-15 23:12:43 +00009327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009328$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009329if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009330 $as_echo_n "(cached) " >&6
9331else
9332 while :; do
cristy8b350f62009-11-15 23:12:43 +00009333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009334/* end confdefs.h. */
9335#include <sys/types.h> /* for off_t */
9336 #include <stdio.h>
9337int
9338main ()
9339{
9340int (*fp) (FILE *, off_t, int) = fseeko;
9341 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9342 ;
9343 return 0;
9344}
9345_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009346if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009347 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009348fi
cristy8b350f62009-11-15 23:12:43 +00009349rm -f core conftest.err conftest.$ac_objext \
9350 conftest$ac_exeext conftest.$ac_ext
9351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009352/* end confdefs.h. */
9353#define _LARGEFILE_SOURCE 1
9354#include <sys/types.h> /* for off_t */
9355 #include <stdio.h>
9356int
9357main ()
9358{
9359int (*fp) (FILE *, off_t, int) = fseeko;
9360 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9361 ;
9362 return 0;
9363}
9364_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009365if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009366 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009367fi
cristy8b350f62009-11-15 23:12:43 +00009368rm -f core conftest.err conftest.$ac_objext \
9369 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009370 ac_cv_sys_largefile_source=unknown
9371 break
9372done
9373fi
cristy8b350f62009-11-15 23:12:43 +00009374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009375$as_echo "$ac_cv_sys_largefile_source" >&6; }
9376case $ac_cv_sys_largefile_source in #(
9377 no | unknown) ;;
9378 *)
9379cat >>confdefs.h <<_ACEOF
9380#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9381_ACEOF
9382;;
9383esac
9384rm -rf conftest*
9385
9386# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9387# in glibc 2.1.3, but that breaks too many other things.
9388# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9389if test $ac_cv_sys_largefile_source != unknown; then
9390
cristy8b350f62009-11-15 23:12:43 +00009391$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009392
9393fi
9394
9395LFS_CPPFLAGS=''
9396if test "$enable_largefile" != no; then
9397 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9398 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9399 else
cristy8b350f62009-11-15 23:12:43 +00009400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009401$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009402 if test "$cross_compiling" = yes; then :
9403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009405as_fn_error $? "cannot run test program while cross compiling
9406See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009407else
cristy8b350f62009-11-15 23:12:43 +00009408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009410#include <unistd.h>
9411 main () {
9412 exit(!(sizeof(off_t) == 8));
9413 }
9414_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009415if ac_fn_c_try_run "$LINENO"; then :
9416 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009417
cristy8b350f62009-11-15 23:12:43 +00009418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009419$as_echo "yes" >&6; }
9420else
cristy8b350f62009-11-15 23:12:43 +00009421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009422$as_echo "no" >&6; }
9423fi
cristy8b350f62009-11-15 23:12:43 +00009424rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9425 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009426fi
9427
cristy3ed852e2009-09-05 21:47:34 +00009428 fi
9429 if test "$ac_cv_sys_large_files" != 'no'; then
9430 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9431 fi
9432 if test "$ac_cv_sys_largefile_source" != 'no'; then
9433 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9434 fi
9435fi
9436
9437
9438#
9439# Configure libtool & libltdl
9440#
9441# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009442enable_dlopen=yes
9443
9444
9445
9446case `pwd` in
9447 *\ * | *\ *)
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9449$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9450esac
9451
9452
9453
cristy0c60a692010-11-04 01:09:47 +00009454macro_version='2.2.10'
9455macro_revision='1.3175'
cristy73bd4a52010-10-05 11:24:23 +00009456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469ltmain="$ac_aux_dir/ltmain.sh"
9470
cristy0c60a692010-11-04 01:09:47 +00009471# Backslashify metacharacters that are still active within
9472# double-quoted strings.
9473sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9474
9475# Same as above, but do not quote variable references.
9476double_quote_subst='s/\(["`\\]\)/\\\1/g'
9477
9478# Sed substitution to delay expansion of an escaped shell variable in a
9479# double_quote_subst'ed string.
9480delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9481
9482# Sed substitution to delay expansion of an escaped single quote.
9483delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9484
9485# Sed substitution to avoid accidental globbing in evaled expressions
9486no_glob_subst='s/\*/\\\*/g'
9487
cristy73bd4a52010-10-05 11:24:23 +00009488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9489$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9490if test "${lt_cv_path_NM+set}" = set; then :
9491 $as_echo_n "(cached) " >&6
9492else
9493 if test -n "$NM"; then
9494 # Let the user override the test.
9495 lt_cv_path_NM="$NM"
9496else
9497 lt_nm_to_check="${ac_tool_prefix}nm"
9498 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9499 lt_nm_to_check="$lt_nm_to_check nm"
9500 fi
9501 for lt_tmp_nm in $lt_nm_to_check; do
9502 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9503 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9504 IFS="$lt_save_ifs"
9505 test -z "$ac_dir" && ac_dir=.
9506 tmp_nm="$ac_dir/$lt_tmp_nm"
9507 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9508 # Check to see if the nm accepts a BSD-compat flag.
9509 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9510 # nm: unknown option "B" ignored
9511 # Tru64's nm complains that /dev/null is an invalid object file
9512 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9513 */dev/null* | *'Invalid file or object type'*)
9514 lt_cv_path_NM="$tmp_nm -B"
9515 break
9516 ;;
9517 *)
9518 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9519 */dev/null*)
9520 lt_cv_path_NM="$tmp_nm -p"
9521 break
9522 ;;
9523 *)
9524 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9525 continue # so that we can try to find one that supports BSD flags
9526 ;;
9527 esac
9528 ;;
9529 esac
9530 fi
9531 done
9532 IFS="$lt_save_ifs"
9533 done
9534 : ${lt_cv_path_NM=no}
9535fi
9536fi
9537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9538$as_echo "$lt_cv_path_NM" >&6; }
9539if test "$lt_cv_path_NM" != "no"; then
9540 NM="$lt_cv_path_NM"
9541else
9542 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009543 if test -n "$DUMPBIN"; then :
9544 # Let the user override the test.
9545 else
9546 if test -n "$ac_tool_prefix"; then
9547 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009548 do
9549 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9550set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9552$as_echo_n "checking for $ac_word... " >&6; }
9553if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
9554 $as_echo_n "(cached) " >&6
9555else
9556 if test -n "$DUMPBIN"; then
9557 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9558else
9559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9560for as_dir in $PATH
9561do
9562 IFS=$as_save_IFS
9563 test -z "$as_dir" && as_dir=.
9564 for ac_exec_ext in '' $ac_executable_extensions; do
9565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9566 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9568 break 2
9569 fi
9570done
9571 done
9572IFS=$as_save_IFS
9573
9574fi
9575fi
9576DUMPBIN=$ac_cv_prog_DUMPBIN
9577if test -n "$DUMPBIN"; then
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9579$as_echo "$DUMPBIN" >&6; }
9580else
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9582$as_echo "no" >&6; }
9583fi
9584
9585
9586 test -n "$DUMPBIN" && break
9587 done
9588fi
9589if test -z "$DUMPBIN"; then
9590 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009591 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009592do
9593 # Extract the first word of "$ac_prog", so it can be a program name with args.
9594set dummy $ac_prog; ac_word=$2
9595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9596$as_echo_n "checking for $ac_word... " >&6; }
9597if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
9598 $as_echo_n "(cached) " >&6
9599else
9600 if test -n "$ac_ct_DUMPBIN"; then
9601 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9602else
9603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9604for as_dir in $PATH
9605do
9606 IFS=$as_save_IFS
9607 test -z "$as_dir" && as_dir=.
9608 for ac_exec_ext in '' $ac_executable_extensions; do
9609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9610 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9612 break 2
9613 fi
9614done
9615 done
9616IFS=$as_save_IFS
9617
9618fi
9619fi
9620ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9621if test -n "$ac_ct_DUMPBIN"; then
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9623$as_echo "$ac_ct_DUMPBIN" >&6; }
9624else
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9626$as_echo "no" >&6; }
9627fi
9628
9629
9630 test -n "$ac_ct_DUMPBIN" && break
9631done
9632
9633 if test "x$ac_ct_DUMPBIN" = x; then
9634 DUMPBIN=":"
9635 else
9636 case $cross_compiling:$ac_tool_warned in
9637yes:)
9638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9640ac_tool_warned=yes ;;
9641esac
9642 DUMPBIN=$ac_ct_DUMPBIN
9643 fi
9644fi
9645
cristy0c60a692010-11-04 01:09:47 +00009646 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9647 *COFF*)
9648 DUMPBIN="$DUMPBIN -symbols"
9649 ;;
9650 *)
9651 DUMPBIN=:
9652 ;;
9653 esac
9654 fi
cristy73bd4a52010-10-05 11:24:23 +00009655
9656 if test "$DUMPBIN" != ":"; then
9657 NM="$DUMPBIN"
9658 fi
9659fi
9660test -z "$NM" && NM=nm
9661
9662
9663
9664
9665
9666
9667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9668$as_echo_n "checking the name lister ($NM) interface... " >&6; }
9669if test "${lt_cv_nm_interface+set}" = set; then :
9670 $as_echo_n "(cached) " >&6
9671else
9672 lt_cv_nm_interface="BSD nm"
9673 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009674 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009675 (eval "$ac_compile" 2>conftest.err)
9676 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009677 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009678 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9679 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009680 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009681 cat conftest.out >&5
9682 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9683 lt_cv_nm_interface="MS dumpbin"
9684 fi
9685 rm -f conftest*
9686fi
9687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9688$as_echo "$lt_cv_nm_interface" >&6; }
9689
9690# find the maximum length of command line arguments
9691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9692$as_echo_n "checking the maximum length of command line arguments... " >&6; }
9693if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
9694 $as_echo_n "(cached) " >&6
9695else
9696 i=0
9697 teststring="ABCD"
9698
9699 case $build_os in
9700 msdosdjgpp*)
9701 # On DJGPP, this test can blow up pretty badly due to problems in libc
9702 # (any single argument exceeding 2000 bytes causes a buffer overrun
9703 # during glob expansion). Even if it were fixed, the result of this
9704 # check would be larger than it should be.
9705 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9706 ;;
9707
9708 gnu*)
9709 # Under GNU Hurd, this test is not required because there is
9710 # no limit to the length of command line arguments.
9711 # Libtool will interpret -1 as no limit whatsoever
9712 lt_cv_sys_max_cmd_len=-1;
9713 ;;
9714
9715 cygwin* | mingw* | cegcc*)
9716 # On Win9x/ME, this test blows up -- it succeeds, but takes
9717 # about 5 minutes as the teststring grows exponentially.
9718 # Worse, since 9x/ME are not pre-emptively multitasking,
9719 # you end up with a "frozen" computer, even though with patience
9720 # the test eventually succeeds (with a max line length of 256k).
9721 # Instead, let's just punt: use the minimum linelength reported by
9722 # all of the supported platforms: 8192 (on NT/2K/XP).
9723 lt_cv_sys_max_cmd_len=8192;
9724 ;;
9725
cristy0c60a692010-11-04 01:09:47 +00009726 mint*)
9727 # On MiNT this can take a long time and run out of memory.
9728 lt_cv_sys_max_cmd_len=8192;
9729 ;;
9730
cristy73bd4a52010-10-05 11:24:23 +00009731 amigaos*)
9732 # On AmigaOS with pdksh, this test takes hours, literally.
9733 # So we just punt and use a minimum line length of 8192.
9734 lt_cv_sys_max_cmd_len=8192;
9735 ;;
9736
9737 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9738 # This has been around since 386BSD, at least. Likely further.
9739 if test -x /sbin/sysctl; then
9740 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9741 elif test -x /usr/sbin/sysctl; then
9742 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9743 else
9744 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9745 fi
9746 # And add a safety zone
9747 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9749 ;;
9750
9751 interix*)
9752 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9753 lt_cv_sys_max_cmd_len=196608
9754 ;;
9755
9756 osf*)
9757 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9758 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9759 # nice to cause kernel panics so lets avoid the loop below.
9760 # First set a reasonable default.
9761 lt_cv_sys_max_cmd_len=16384
9762 #
9763 if test -x /sbin/sysconfig; then
9764 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9765 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9766 esac
9767 fi
9768 ;;
9769 sco3.2v5*)
9770 lt_cv_sys_max_cmd_len=102400
9771 ;;
9772 sysv5* | sco5v6* | sysv4.2uw2*)
9773 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9774 if test -n "$kargmax"; then
9775 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9776 else
9777 lt_cv_sys_max_cmd_len=32768
9778 fi
9779 ;;
9780 *)
9781 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9782 if test -n "$lt_cv_sys_max_cmd_len"; then
9783 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9785 else
9786 # Make teststring a little bigger before we do anything with it.
9787 # a 1K string should be a reasonable start.
9788 for i in 1 2 3 4 5 6 7 8 ; do
9789 teststring=$teststring$teststring
9790 done
9791 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9792 # If test is not a shell built-in, we'll probably end up computing a
9793 # maximum length that is only half of the actual maximum length, but
9794 # we can't tell.
cristy0c60a692010-11-04 01:09:47 +00009795 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9796 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +00009797 test $i != 17 # 1/2 MB should be enough
9798 do
9799 i=`expr $i + 1`
9800 teststring=$teststring$teststring
9801 done
9802 # Only check the string length outside the loop.
9803 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9804 teststring=
9805 # Add a significant safety factor because C++ compilers can tack on
9806 # massive amounts of additional arguments before passing them to the
9807 # linker. It appears as though 1/2 is a usable value.
9808 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9809 fi
9810 ;;
9811 esac
9812
9813fi
9814
9815if test -n $lt_cv_sys_max_cmd_len ; then
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9817$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9818else
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9820$as_echo "none" >&6; }
9821fi
9822max_cmd_len=$lt_cv_sys_max_cmd_len
9823
9824
9825
9826
9827
9828
9829: ${CP="cp -f"}
9830: ${MV="mv -f"}
9831: ${RM="rm -f"}
9832
9833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9834$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9835# Try some XSI features
9836xsi_shell=no
9837( _lt_dummy="a/b/c"
9838 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9839 = c,a/b,, \
9840 && eval 'test $(( 1 + 1 )) -eq 2 \
9841 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9842 && xsi_shell=yes
9843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9844$as_echo "$xsi_shell" >&6; }
9845
9846
9847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9848$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9849lt_shell_append=no
9850( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9851 >/dev/null 2>&1 \
9852 && lt_shell_append=yes
9853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9854$as_echo "$lt_shell_append" >&6; }
9855
9856
9857if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9858 lt_unset=unset
9859else
9860 lt_unset=false
9861fi
9862
9863
9864
9865
9866
9867# test EBCDIC or ASCII
9868case `echo X|tr X '\101'` in
9869 A) # ASCII based system
9870 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9871 lt_SP2NL='tr \040 \012'
9872 lt_NL2SP='tr \015\012 \040\040'
9873 ;;
9874 *) # EBCDIC based system
9875 lt_SP2NL='tr \100 \n'
9876 lt_NL2SP='tr \r\n \100\100'
9877 ;;
9878esac
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9889$as_echo_n "checking for $LD option to reload object files... " >&6; }
9890if test "${lt_cv_ld_reload_flag+set}" = set; then :
9891 $as_echo_n "(cached) " >&6
9892else
9893 lt_cv_ld_reload_flag='-r'
9894fi
9895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9896$as_echo "$lt_cv_ld_reload_flag" >&6; }
9897reload_flag=$lt_cv_ld_reload_flag
9898case $reload_flag in
9899"" | " "*) ;;
9900*) reload_flag=" $reload_flag" ;;
9901esac
9902reload_cmds='$LD$reload_flag -o $output$reload_objs'
9903case $host_os in
9904 darwin*)
9905 if test "$GCC" = yes; then
9906 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9907 else
9908 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9909 fi
9910 ;;
9911esac
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921if test -n "$ac_tool_prefix"; then
9922 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9923set dummy ${ac_tool_prefix}objdump; ac_word=$2
9924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9925$as_echo_n "checking for $ac_word... " >&6; }
9926if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9927 $as_echo_n "(cached) " >&6
9928else
9929 if test -n "$OBJDUMP"; then
9930 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9931else
9932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9933for as_dir in $PATH
9934do
9935 IFS=$as_save_IFS
9936 test -z "$as_dir" && as_dir=.
9937 for ac_exec_ext in '' $ac_executable_extensions; do
9938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9939 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9941 break 2
9942 fi
9943done
9944 done
9945IFS=$as_save_IFS
9946
9947fi
9948fi
9949OBJDUMP=$ac_cv_prog_OBJDUMP
9950if test -n "$OBJDUMP"; then
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9952$as_echo "$OBJDUMP" >&6; }
9953else
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9955$as_echo "no" >&6; }
9956fi
9957
9958
9959fi
9960if test -z "$ac_cv_prog_OBJDUMP"; then
9961 ac_ct_OBJDUMP=$OBJDUMP
9962 # Extract the first word of "objdump", so it can be a program name with args.
9963set dummy objdump; ac_word=$2
9964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9965$as_echo_n "checking for $ac_word... " >&6; }
9966if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
9967 $as_echo_n "(cached) " >&6
9968else
9969 if test -n "$ac_ct_OBJDUMP"; then
9970 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9971else
9972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9973for as_dir in $PATH
9974do
9975 IFS=$as_save_IFS
9976 test -z "$as_dir" && as_dir=.
9977 for ac_exec_ext in '' $ac_executable_extensions; do
9978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9979 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9981 break 2
9982 fi
9983done
9984 done
9985IFS=$as_save_IFS
9986
9987fi
9988fi
9989ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9990if test -n "$ac_ct_OBJDUMP"; then
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9992$as_echo "$ac_ct_OBJDUMP" >&6; }
9993else
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9995$as_echo "no" >&6; }
9996fi
9997
9998 if test "x$ac_ct_OBJDUMP" = x; then
9999 OBJDUMP="false"
10000 else
10001 case $cross_compiling:$ac_tool_warned in
10002yes:)
10003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10005ac_tool_warned=yes ;;
10006esac
10007 OBJDUMP=$ac_ct_OBJDUMP
10008 fi
10009else
10010 OBJDUMP="$ac_cv_prog_OBJDUMP"
10011fi
10012
10013test -z "$OBJDUMP" && OBJDUMP=objdump
10014
10015
10016
10017
10018
10019
10020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10021$as_echo_n "checking how to recognize dependent libraries... " >&6; }
10022if test "${lt_cv_deplibs_check_method+set}" = set; then :
10023 $as_echo_n "(cached) " >&6
10024else
10025 lt_cv_file_magic_cmd='$MAGIC_CMD'
10026lt_cv_file_magic_test_file=
10027lt_cv_deplibs_check_method='unknown'
10028# Need to set the preceding variable on all platforms that support
10029# interlibrary dependencies.
10030# 'none' -- dependencies not supported.
10031# `unknown' -- same as none, but documents that we really don't know.
10032# 'pass_all' -- all dependencies passed with no checks.
10033# 'test_compile' -- check by making test program.
10034# 'file_magic [[regex]]' -- check by looking for files in library path
10035# which responds to the $file_magic_cmd with a given extended regex.
10036# If you have `file' or equivalent on your system and you're not sure
10037# whether `pass_all' will *always* work, you probably want this one.
10038
10039case $host_os in
10040aix[4-9]*)
10041 lt_cv_deplibs_check_method=pass_all
10042 ;;
10043
10044beos*)
10045 lt_cv_deplibs_check_method=pass_all
10046 ;;
10047
10048bsdi[45]*)
10049 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10050 lt_cv_file_magic_cmd='/usr/bin/file -L'
10051 lt_cv_file_magic_test_file=/shlib/libc.so
10052 ;;
10053
10054cygwin*)
10055 # func_win32_libid is a shell function defined in ltmain.sh
10056 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10057 lt_cv_file_magic_cmd='func_win32_libid'
10058 ;;
10059
10060mingw* | pw32*)
10061 # Base MSYS/MinGW do not provide the 'file' command needed by
10062 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10063 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010064 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10065 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010066 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10067 lt_cv_file_magic_cmd='func_win32_libid'
10068 else
cristy0c60a692010-11-04 01:09:47 +000010069 # Keep this pattern in sync with the one in func_win32_libid.
10070 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
cristy73bd4a52010-10-05 11:24:23 +000010071 lt_cv_file_magic_cmd='$OBJDUMP -f'
10072 fi
10073 ;;
10074
cristy0c60a692010-11-04 01:09:47 +000010075cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010076 # use the weaker test based on 'objdump'. See mingw*.
10077 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10078 lt_cv_file_magic_cmd='$OBJDUMP -f'
10079 ;;
10080
10081darwin* | rhapsody*)
10082 lt_cv_deplibs_check_method=pass_all
10083 ;;
10084
10085freebsd* | dragonfly*)
10086 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10087 case $host_cpu in
10088 i*86 )
10089 # Not sure whether the presence of OpenBSD here was a mistake.
10090 # Let's accept both of them until this is cleared up.
10091 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10092 lt_cv_file_magic_cmd=/usr/bin/file
10093 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10094 ;;
10095 esac
10096 else
10097 lt_cv_deplibs_check_method=pass_all
10098 fi
10099 ;;
10100
10101gnu*)
10102 lt_cv_deplibs_check_method=pass_all
10103 ;;
10104
cristy0c60a692010-11-04 01:09:47 +000010105haiku*)
10106 lt_cv_deplibs_check_method=pass_all
10107 ;;
10108
cristy73bd4a52010-10-05 11:24:23 +000010109hpux10.20* | hpux11*)
10110 lt_cv_file_magic_cmd=/usr/bin/file
10111 case $host_cpu in
10112 ia64*)
10113 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10114 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10115 ;;
10116 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010117 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]'
cristy73bd4a52010-10-05 11:24:23 +000010118 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10119 ;;
10120 *)
cristy0c60a692010-11-04 01:09:47 +000010121 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
cristy73bd4a52010-10-05 11:24:23 +000010122 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10123 ;;
10124 esac
10125 ;;
10126
10127interix[3-9]*)
10128 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10130 ;;
10131
10132irix5* | irix6* | nonstopux*)
10133 case $LD in
10134 *-32|*"-32 ") libmagic=32-bit;;
10135 *-n32|*"-n32 ") libmagic=N32;;
10136 *-64|*"-64 ") libmagic=64-bit;;
10137 *) libmagic=never-match;;
10138 esac
10139 lt_cv_deplibs_check_method=pass_all
10140 ;;
10141
10142# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000010143linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010144 lt_cv_deplibs_check_method=pass_all
10145 ;;
10146
10147netbsd*)
10148 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10150 else
10151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10152 fi
10153 ;;
10154
10155newos6*)
10156 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10157 lt_cv_file_magic_cmd=/usr/bin/file
10158 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10159 ;;
10160
10161*nto* | *qnx*)
10162 lt_cv_deplibs_check_method=pass_all
10163 ;;
10164
10165openbsd*)
10166 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10167 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10168 else
10169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10170 fi
10171 ;;
10172
10173osf3* | osf4* | osf5*)
10174 lt_cv_deplibs_check_method=pass_all
10175 ;;
10176
10177rdos*)
10178 lt_cv_deplibs_check_method=pass_all
10179 ;;
10180
10181solaris*)
10182 lt_cv_deplibs_check_method=pass_all
10183 ;;
10184
10185sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10186 lt_cv_deplibs_check_method=pass_all
10187 ;;
10188
10189sysv4 | sysv4.3*)
10190 case $host_vendor in
10191 motorola)
10192 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]'
10193 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10194 ;;
10195 ncr)
10196 lt_cv_deplibs_check_method=pass_all
10197 ;;
10198 sequent)
10199 lt_cv_file_magic_cmd='/bin/file'
10200 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10201 ;;
10202 sni)
10203 lt_cv_file_magic_cmd='/bin/file'
10204 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10205 lt_cv_file_magic_test_file=/lib/libc.so
10206 ;;
10207 siemens)
10208 lt_cv_deplibs_check_method=pass_all
10209 ;;
10210 pc)
10211 lt_cv_deplibs_check_method=pass_all
10212 ;;
10213 esac
10214 ;;
10215
10216tpf*)
10217 lt_cv_deplibs_check_method=pass_all
10218 ;;
10219esac
10220
10221fi
10222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10223$as_echo "$lt_cv_deplibs_check_method" >&6; }
10224file_magic_cmd=$lt_cv_file_magic_cmd
10225deplibs_check_method=$lt_cv_deplibs_check_method
10226test -z "$deplibs_check_method" && deplibs_check_method=unknown
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239if test -n "$ac_tool_prefix"; then
10240 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10241set dummy ${ac_tool_prefix}ar; ac_word=$2
10242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10243$as_echo_n "checking for $ac_word... " >&6; }
10244if test "${ac_cv_prog_AR+set}" = set; then :
10245 $as_echo_n "(cached) " >&6
10246else
10247 if test -n "$AR"; then
10248 ac_cv_prog_AR="$AR" # Let the user override the test.
10249else
10250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10251for as_dir in $PATH
10252do
10253 IFS=$as_save_IFS
10254 test -z "$as_dir" && as_dir=.
10255 for ac_exec_ext in '' $ac_executable_extensions; do
10256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10257 ac_cv_prog_AR="${ac_tool_prefix}ar"
10258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10259 break 2
10260 fi
10261done
10262 done
10263IFS=$as_save_IFS
10264
10265fi
10266fi
10267AR=$ac_cv_prog_AR
10268if test -n "$AR"; then
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10270$as_echo "$AR" >&6; }
10271else
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10273$as_echo "no" >&6; }
10274fi
10275
10276
10277fi
10278if test -z "$ac_cv_prog_AR"; then
10279 ac_ct_AR=$AR
10280 # Extract the first word of "ar", so it can be a program name with args.
10281set dummy ar; ac_word=$2
10282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10283$as_echo_n "checking for $ac_word... " >&6; }
10284if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10285 $as_echo_n "(cached) " >&6
10286else
10287 if test -n "$ac_ct_AR"; then
10288 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10289else
10290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10291for as_dir in $PATH
10292do
10293 IFS=$as_save_IFS
10294 test -z "$as_dir" && as_dir=.
10295 for ac_exec_ext in '' $ac_executable_extensions; do
10296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10297 ac_cv_prog_ac_ct_AR="ar"
10298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10299 break 2
10300 fi
10301done
10302 done
10303IFS=$as_save_IFS
10304
10305fi
10306fi
10307ac_ct_AR=$ac_cv_prog_ac_ct_AR
10308if test -n "$ac_ct_AR"; then
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10310$as_echo "$ac_ct_AR" >&6; }
10311else
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10313$as_echo "no" >&6; }
10314fi
10315
10316 if test "x$ac_ct_AR" = x; then
10317 AR="false"
10318 else
10319 case $cross_compiling:$ac_tool_warned in
10320yes:)
10321{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10323ac_tool_warned=yes ;;
10324esac
10325 AR=$ac_ct_AR
10326 fi
10327else
10328 AR="$ac_cv_prog_AR"
10329fi
10330
10331test -z "$AR" && AR=ar
10332test -z "$AR_FLAGS" && AR_FLAGS=cru
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344if test -n "$ac_tool_prefix"; then
10345 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10346set dummy ${ac_tool_prefix}strip; ac_word=$2
10347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10348$as_echo_n "checking for $ac_word... " >&6; }
10349if test "${ac_cv_prog_STRIP+set}" = set; then :
10350 $as_echo_n "(cached) " >&6
10351else
10352 if test -n "$STRIP"; then
10353 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10354else
10355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10356for as_dir in $PATH
10357do
10358 IFS=$as_save_IFS
10359 test -z "$as_dir" && as_dir=.
10360 for ac_exec_ext in '' $ac_executable_extensions; do
10361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10362 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10364 break 2
10365 fi
10366done
10367 done
10368IFS=$as_save_IFS
10369
10370fi
10371fi
10372STRIP=$ac_cv_prog_STRIP
10373if test -n "$STRIP"; then
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10375$as_echo "$STRIP" >&6; }
10376else
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10378$as_echo "no" >&6; }
10379fi
10380
10381
10382fi
10383if test -z "$ac_cv_prog_STRIP"; then
10384 ac_ct_STRIP=$STRIP
10385 # Extract the first word of "strip", so it can be a program name with args.
10386set dummy strip; ac_word=$2
10387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10388$as_echo_n "checking for $ac_word... " >&6; }
10389if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10390 $as_echo_n "(cached) " >&6
10391else
10392 if test -n "$ac_ct_STRIP"; then
10393 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10394else
10395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396for as_dir in $PATH
10397do
10398 IFS=$as_save_IFS
10399 test -z "$as_dir" && as_dir=.
10400 for ac_exec_ext in '' $ac_executable_extensions; do
10401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10402 ac_cv_prog_ac_ct_STRIP="strip"
10403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10404 break 2
10405 fi
10406done
10407 done
10408IFS=$as_save_IFS
10409
10410fi
10411fi
10412ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10413if test -n "$ac_ct_STRIP"; then
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10415$as_echo "$ac_ct_STRIP" >&6; }
10416else
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10418$as_echo "no" >&6; }
10419fi
10420
10421 if test "x$ac_ct_STRIP" = x; then
10422 STRIP=":"
10423 else
10424 case $cross_compiling:$ac_tool_warned in
10425yes:)
10426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10428ac_tool_warned=yes ;;
10429esac
10430 STRIP=$ac_ct_STRIP
10431 fi
10432else
10433 STRIP="$ac_cv_prog_STRIP"
10434fi
10435
10436test -z "$STRIP" && STRIP=:
10437
10438
10439
10440
10441
10442
10443if test -n "$ac_tool_prefix"; then
10444 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10445set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10447$as_echo_n "checking for $ac_word... " >&6; }
10448if test "${ac_cv_prog_RANLIB+set}" = set; then :
10449 $as_echo_n "(cached) " >&6
10450else
10451 if test -n "$RANLIB"; then
10452 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10453else
10454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10455for as_dir in $PATH
10456do
10457 IFS=$as_save_IFS
10458 test -z "$as_dir" && as_dir=.
10459 for ac_exec_ext in '' $ac_executable_extensions; do
10460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10461 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10463 break 2
10464 fi
10465done
10466 done
10467IFS=$as_save_IFS
10468
10469fi
10470fi
10471RANLIB=$ac_cv_prog_RANLIB
10472if test -n "$RANLIB"; then
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10474$as_echo "$RANLIB" >&6; }
10475else
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10477$as_echo "no" >&6; }
10478fi
10479
10480
10481fi
10482if test -z "$ac_cv_prog_RANLIB"; then
10483 ac_ct_RANLIB=$RANLIB
10484 # Extract the first word of "ranlib", so it can be a program name with args.
10485set dummy ranlib; ac_word=$2
10486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10487$as_echo_n "checking for $ac_word... " >&6; }
10488if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10489 $as_echo_n "(cached) " >&6
10490else
10491 if test -n "$ac_ct_RANLIB"; then
10492 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10493else
10494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10495for as_dir in $PATH
10496do
10497 IFS=$as_save_IFS
10498 test -z "$as_dir" && as_dir=.
10499 for ac_exec_ext in '' $ac_executable_extensions; do
10500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10501 ac_cv_prog_ac_ct_RANLIB="ranlib"
10502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10503 break 2
10504 fi
10505done
10506 done
10507IFS=$as_save_IFS
10508
10509fi
10510fi
10511ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10512if test -n "$ac_ct_RANLIB"; then
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10514$as_echo "$ac_ct_RANLIB" >&6; }
10515else
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517$as_echo "no" >&6; }
10518fi
10519
10520 if test "x$ac_ct_RANLIB" = x; then
10521 RANLIB=":"
10522 else
10523 case $cross_compiling:$ac_tool_warned in
10524yes:)
10525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10527ac_tool_warned=yes ;;
10528esac
10529 RANLIB=$ac_ct_RANLIB
10530 fi
10531else
10532 RANLIB="$ac_cv_prog_RANLIB"
10533fi
10534
10535test -z "$RANLIB" && RANLIB=:
10536
10537
10538
10539
10540
10541
10542# Determine commands to create old-style static archives.
10543old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10544old_postinstall_cmds='chmod 644 $oldlib'
10545old_postuninstall_cmds=
10546
10547if test -n "$RANLIB"; then
10548 case $host_os in
10549 openbsd*)
10550 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10551 ;;
10552 *)
10553 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10554 ;;
10555 esac
10556 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10557fi
10558
cristy0c60a692010-11-04 01:09:47 +000010559case $host_os in
10560 darwin*)
10561 lock_old_archive_extraction=yes ;;
10562 *)
10563 lock_old_archive_extraction=no ;;
10564esac
10565
10566
10567
10568
10569
10570
cristy73bd4a52010-10-05 11:24:23 +000010571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604# If no C compiler was specified, use CC.
10605LTCC=${LTCC-"$CC"}
10606
10607# If no C compiler flags were specified, use CFLAGS.
10608LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10609
10610# Allow CC to be a program name with arguments.
10611compiler=$CC
10612
10613
10614# Check for command to grab the raw symbol name followed by C symbol from nm.
10615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10616$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10617if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
10618 $as_echo_n "(cached) " >&6
10619else
10620
10621# These are sane defaults that work on at least a few old systems.
10622# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10623
10624# Character class describing NM global symbol codes.
10625symcode='[BCDEGRST]'
10626
10627# Regexp to match symbols that can be accessed directly from C.
10628sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10629
10630# Define system-specific variables.
10631case $host_os in
10632aix*)
10633 symcode='[BCDT]'
10634 ;;
10635cygwin* | mingw* | pw32* | cegcc*)
10636 symcode='[ABCDGISTW]'
10637 ;;
10638hpux*)
10639 if test "$host_cpu" = ia64; then
10640 symcode='[ABCDEGRST]'
10641 fi
10642 ;;
10643irix* | nonstopux*)
10644 symcode='[BCDEGRST]'
10645 ;;
10646osf*)
10647 symcode='[BCDEGQRST]'
10648 ;;
10649solaris*)
10650 symcode='[BDRT]'
10651 ;;
10652sco3.2v5*)
10653 symcode='[DT]'
10654 ;;
10655sysv4.2uw2*)
10656 symcode='[DT]'
10657 ;;
10658sysv5* | sco5v6* | unixware* | OpenUNIX*)
10659 symcode='[ABDT]'
10660 ;;
10661sysv4)
10662 symcode='[DFNSTU]'
10663 ;;
10664esac
10665
10666# If we're using GNU nm, then use its standard symbol codes.
10667case `$NM -V 2>&1` in
10668*GNU* | *'with BFD'*)
10669 symcode='[ABCDGIRSTW]' ;;
10670esac
10671
10672# Transform an extracted symbol line into a proper C declaration.
10673# Some systems (esp. on ia64) link data and code symbols differently,
10674# so use this general approach.
10675lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10676
10677# Transform an extracted symbol line into symbol name and symbol address
10678lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10679lt_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'"
10680
10681# Handle CRLF in mingw tool chain
10682opt_cr=
10683case $build_os in
10684mingw*)
10685 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10686 ;;
10687esac
10688
10689# Try without a prefix underscore, then with it.
10690for ac_symprfx in "" "_"; do
10691
10692 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10693 symxfrm="\\1 $ac_symprfx\\2 \\2"
10694
10695 # Write the raw and C identifiers.
10696 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10697 # Fake it for dumpbin and say T for any non-static function
10698 # and D for any global variable.
10699 # Also find C++ and __fastcall symbols from MSVC++,
10700 # which start with @ or ?.
10701 lt_cv_sys_global_symbol_pipe="$AWK '"\
10702" {last_section=section; section=\$ 3};"\
10703" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10704" \$ 0!~/External *\|/{next};"\
10705" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10706" {if(hide[section]) next};"\
10707" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10708" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10709" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10710" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10711" ' prfx=^$ac_symprfx"
10712 else
10713 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10714 fi
10715
10716 # Check to see that the pipe works correctly.
10717 pipe_works=no
10718
10719 rm -f conftest*
10720 cat > conftest.$ac_ext <<_LT_EOF
10721#ifdef __cplusplus
10722extern "C" {
10723#endif
10724char nm_test_var;
10725void nm_test_func(void);
10726void nm_test_func(void){}
10727#ifdef __cplusplus
10728}
10729#endif
10730int main(){nm_test_var='a';nm_test_func();return(0);}
10731_LT_EOF
10732
10733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10734 (eval $ac_compile) 2>&5
10735 ac_status=$?
10736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10737 test $ac_status = 0; }; then
10738 # Now try to grab the symbols.
10739 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000010740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10741 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000010742 ac_status=$?
10743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10744 test $ac_status = 0; } && test -s "$nlist"; then
10745 # Try sorting and uniquifying the output.
10746 if sort "$nlist" | uniq > "$nlist"T; then
10747 mv -f "$nlist"T "$nlist"
10748 else
10749 rm -f "$nlist"T
10750 fi
10751
10752 # Make sure that we snagged all the symbols we need.
10753 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10754 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10755 cat <<_LT_EOF > conftest.$ac_ext
10756#ifdef __cplusplus
10757extern "C" {
10758#endif
10759
10760_LT_EOF
10761 # Now generate the symbol file.
10762 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10763
10764 cat <<_LT_EOF >> conftest.$ac_ext
10765
10766/* The mapping between symbol names and symbols. */
10767const struct {
10768 const char *name;
10769 void *address;
10770}
10771lt__PROGRAM__LTX_preloaded_symbols[] =
10772{
10773 { "@PROGRAM@", (void *) 0 },
10774_LT_EOF
10775 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10776 cat <<\_LT_EOF >> conftest.$ac_ext
10777 {0, (void *) 0}
10778};
10779
10780/* This works around a problem in FreeBSD linker */
10781#ifdef FREEBSD_WORKAROUND
10782static const void *lt_preloaded_setup() {
10783 return lt__PROGRAM__LTX_preloaded_symbols;
10784}
10785#endif
10786
10787#ifdef __cplusplus
10788}
10789#endif
10790_LT_EOF
10791 # Now try linking the two files.
10792 mv conftest.$ac_objext conftstm.$ac_objext
10793 lt_save_LIBS="$LIBS"
10794 lt_save_CFLAGS="$CFLAGS"
10795 LIBS="conftstm.$ac_objext"
10796 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10798 (eval $ac_link) 2>&5
10799 ac_status=$?
10800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10801 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10802 pipe_works=yes
10803 fi
10804 LIBS="$lt_save_LIBS"
10805 CFLAGS="$lt_save_CFLAGS"
10806 else
10807 echo "cannot find nm_test_func in $nlist" >&5
10808 fi
10809 else
10810 echo "cannot find nm_test_var in $nlist" >&5
10811 fi
10812 else
10813 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10814 fi
10815 else
10816 echo "$progname: failed program was:" >&5
10817 cat conftest.$ac_ext >&5
10818 fi
10819 rm -rf conftest* conftst*
10820
10821 # Do not use the global_symbol_pipe unless it works.
10822 if test "$pipe_works" = yes; then
10823 break
10824 else
10825 lt_cv_sys_global_symbol_pipe=
10826 fi
10827done
10828
10829fi
10830
10831if test -z "$lt_cv_sys_global_symbol_pipe"; then
10832 lt_cv_sys_global_symbol_to_cdecl=
10833fi
10834if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10836$as_echo "failed" >&6; }
10837else
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10839$as_echo "ok" >&6; }
10840fi
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863# Check whether --enable-libtool-lock was given.
10864if test "${enable_libtool_lock+set}" = set; then :
10865 enableval=$enable_libtool_lock;
10866fi
10867
10868test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10869
10870# Some flags need to be propagated to the compiler or linker for good
10871# libtool support.
10872case $host in
10873ia64-*-hpux*)
10874 # Find out which ABI we are using.
10875 echo 'int i;' > conftest.$ac_ext
10876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10877 (eval $ac_compile) 2>&5
10878 ac_status=$?
10879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10880 test $ac_status = 0; }; then
10881 case `/usr/bin/file conftest.$ac_objext` in
10882 *ELF-32*)
10883 HPUX_IA64_MODE="32"
10884 ;;
10885 *ELF-64*)
10886 HPUX_IA64_MODE="64"
10887 ;;
10888 esac
10889 fi
10890 rm -rf conftest*
10891 ;;
10892*-*-irix6*)
10893 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000010894 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10896 (eval $ac_compile) 2>&5
10897 ac_status=$?
10898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10899 test $ac_status = 0; }; then
10900 if test "$lt_cv_prog_gnu_ld" = yes; then
10901 case `/usr/bin/file conftest.$ac_objext` in
10902 *32-bit*)
10903 LD="${LD-ld} -melf32bsmip"
10904 ;;
10905 *N32*)
10906 LD="${LD-ld} -melf32bmipn32"
10907 ;;
10908 *64-bit*)
10909 LD="${LD-ld} -melf64bmip"
10910 ;;
10911 esac
10912 else
10913 case `/usr/bin/file conftest.$ac_objext` in
10914 *32-bit*)
10915 LD="${LD-ld} -32"
10916 ;;
10917 *N32*)
10918 LD="${LD-ld} -n32"
10919 ;;
10920 *64-bit*)
10921 LD="${LD-ld} -64"
10922 ;;
10923 esac
10924 fi
10925 fi
10926 rm -rf conftest*
10927 ;;
10928
10929x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10930s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10931 # Find out which ABI we are using.
10932 echo 'int i;' > conftest.$ac_ext
10933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10934 (eval $ac_compile) 2>&5
10935 ac_status=$?
10936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10937 test $ac_status = 0; }; then
10938 case `/usr/bin/file conftest.o` in
10939 *32-bit*)
10940 case $host in
10941 x86_64-*kfreebsd*-gnu)
10942 LD="${LD-ld} -m elf_i386_fbsd"
10943 ;;
10944 x86_64-*linux*)
10945 LD="${LD-ld} -m elf_i386"
10946 ;;
10947 ppc64-*linux*|powerpc64-*linux*)
10948 LD="${LD-ld} -m elf32ppclinux"
10949 ;;
10950 s390x-*linux*)
10951 LD="${LD-ld} -m elf_s390"
10952 ;;
10953 sparc64-*linux*)
10954 LD="${LD-ld} -m elf32_sparc"
10955 ;;
10956 esac
10957 ;;
10958 *64-bit*)
10959 case $host in
10960 x86_64-*kfreebsd*-gnu)
10961 LD="${LD-ld} -m elf_x86_64_fbsd"
10962 ;;
10963 x86_64-*linux*)
10964 LD="${LD-ld} -m elf_x86_64"
10965 ;;
10966 ppc*-*linux*|powerpc*-*linux*)
10967 LD="${LD-ld} -m elf64ppc"
10968 ;;
10969 s390*-*linux*|s390*-*tpf*)
10970 LD="${LD-ld} -m elf64_s390"
10971 ;;
10972 sparc*-*linux*)
10973 LD="${LD-ld} -m elf64_sparc"
10974 ;;
10975 esac
10976 ;;
10977 esac
10978 fi
10979 rm -rf conftest*
10980 ;;
10981
10982*-*-sco3.2v5*)
10983 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10984 SAVE_CFLAGS="$CFLAGS"
10985 CFLAGS="$CFLAGS -belf"
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10987$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10988if test "${lt_cv_cc_needs_belf+set}" = set; then :
10989 $as_echo_n "(cached) " >&6
10990else
10991 ac_ext=c
10992ac_cpp='$CPP $CPPFLAGS'
10993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10995ac_compiler_gnu=$ac_cv_c_compiler_gnu
10996
10997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10998/* end confdefs.h. */
10999
11000int
11001main ()
11002{
11003
11004 ;
11005 return 0;
11006}
11007_ACEOF
11008if ac_fn_c_try_link "$LINENO"; then :
11009 lt_cv_cc_needs_belf=yes
11010else
11011 lt_cv_cc_needs_belf=no
11012fi
11013rm -f core conftest.err conftest.$ac_objext \
11014 conftest$ac_exeext conftest.$ac_ext
11015 ac_ext=c
11016ac_cpp='$CPP $CPPFLAGS'
11017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11019ac_compiler_gnu=$ac_cv_c_compiler_gnu
11020
11021fi
11022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11023$as_echo "$lt_cv_cc_needs_belf" >&6; }
11024 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11025 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11026 CFLAGS="$SAVE_CFLAGS"
11027 fi
11028 ;;
11029sparc*-*solaris*)
11030 # Find out which ABI we are using.
11031 echo 'int i;' > conftest.$ac_ext
11032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11033 (eval $ac_compile) 2>&5
11034 ac_status=$?
11035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11036 test $ac_status = 0; }; then
11037 case `/usr/bin/file conftest.o` in
11038 *64-bit*)
11039 case $lt_cv_prog_gnu_ld in
11040 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11041 *)
11042 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11043 LD="${LD-ld} -64"
11044 fi
11045 ;;
11046 esac
11047 ;;
11048 esac
11049 fi
11050 rm -rf conftest*
11051 ;;
11052esac
11053
11054need_locks="$enable_libtool_lock"
11055
11056
11057 case $host_os in
11058 rhapsody* | darwin*)
11059 if test -n "$ac_tool_prefix"; then
11060 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11061set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11063$as_echo_n "checking for $ac_word... " >&6; }
11064if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
11065 $as_echo_n "(cached) " >&6
11066else
11067 if test -n "$DSYMUTIL"; then
11068 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11069else
11070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11071for as_dir in $PATH
11072do
11073 IFS=$as_save_IFS
11074 test -z "$as_dir" && as_dir=.
11075 for ac_exec_ext in '' $ac_executable_extensions; do
11076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11077 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11079 break 2
11080 fi
11081done
11082 done
11083IFS=$as_save_IFS
11084
11085fi
11086fi
11087DSYMUTIL=$ac_cv_prog_DSYMUTIL
11088if test -n "$DSYMUTIL"; then
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11090$as_echo "$DSYMUTIL" >&6; }
11091else
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11093$as_echo "no" >&6; }
11094fi
11095
11096
11097fi
11098if test -z "$ac_cv_prog_DSYMUTIL"; then
11099 ac_ct_DSYMUTIL=$DSYMUTIL
11100 # Extract the first word of "dsymutil", so it can be a program name with args.
11101set dummy dsymutil; ac_word=$2
11102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11103$as_echo_n "checking for $ac_word... " >&6; }
11104if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
11105 $as_echo_n "(cached) " >&6
11106else
11107 if test -n "$ac_ct_DSYMUTIL"; then
11108 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11109else
11110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11111for as_dir in $PATH
11112do
11113 IFS=$as_save_IFS
11114 test -z "$as_dir" && as_dir=.
11115 for ac_exec_ext in '' $ac_executable_extensions; do
11116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11117 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11119 break 2
11120 fi
11121done
11122 done
11123IFS=$as_save_IFS
11124
11125fi
11126fi
11127ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11128if test -n "$ac_ct_DSYMUTIL"; then
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11130$as_echo "$ac_ct_DSYMUTIL" >&6; }
11131else
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11133$as_echo "no" >&6; }
11134fi
11135
11136 if test "x$ac_ct_DSYMUTIL" = x; then
11137 DSYMUTIL=":"
11138 else
11139 case $cross_compiling:$ac_tool_warned in
11140yes:)
11141{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11143ac_tool_warned=yes ;;
11144esac
11145 DSYMUTIL=$ac_ct_DSYMUTIL
11146 fi
11147else
11148 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11149fi
11150
11151 if test -n "$ac_tool_prefix"; then
11152 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11153set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11155$as_echo_n "checking for $ac_word... " >&6; }
11156if test "${ac_cv_prog_NMEDIT+set}" = set; then :
11157 $as_echo_n "(cached) " >&6
11158else
11159 if test -n "$NMEDIT"; then
11160 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11161else
11162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11163for as_dir in $PATH
11164do
11165 IFS=$as_save_IFS
11166 test -z "$as_dir" && as_dir=.
11167 for ac_exec_ext in '' $ac_executable_extensions; do
11168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11169 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11171 break 2
11172 fi
11173done
11174 done
11175IFS=$as_save_IFS
11176
11177fi
11178fi
11179NMEDIT=$ac_cv_prog_NMEDIT
11180if test -n "$NMEDIT"; then
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11182$as_echo "$NMEDIT" >&6; }
11183else
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11185$as_echo "no" >&6; }
11186fi
11187
11188
11189fi
11190if test -z "$ac_cv_prog_NMEDIT"; then
11191 ac_ct_NMEDIT=$NMEDIT
11192 # Extract the first word of "nmedit", so it can be a program name with args.
11193set dummy nmedit; ac_word=$2
11194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11195$as_echo_n "checking for $ac_word... " >&6; }
11196if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
11197 $as_echo_n "(cached) " >&6
11198else
11199 if test -n "$ac_ct_NMEDIT"; then
11200 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11201else
11202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11203for as_dir in $PATH
11204do
11205 IFS=$as_save_IFS
11206 test -z "$as_dir" && as_dir=.
11207 for ac_exec_ext in '' $ac_executable_extensions; do
11208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11209 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11211 break 2
11212 fi
11213done
11214 done
11215IFS=$as_save_IFS
11216
11217fi
11218fi
11219ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11220if test -n "$ac_ct_NMEDIT"; then
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11222$as_echo "$ac_ct_NMEDIT" >&6; }
11223else
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11225$as_echo "no" >&6; }
11226fi
11227
11228 if test "x$ac_ct_NMEDIT" = x; then
11229 NMEDIT=":"
11230 else
11231 case $cross_compiling:$ac_tool_warned in
11232yes:)
11233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11235ac_tool_warned=yes ;;
11236esac
11237 NMEDIT=$ac_ct_NMEDIT
11238 fi
11239else
11240 NMEDIT="$ac_cv_prog_NMEDIT"
11241fi
11242
11243 if test -n "$ac_tool_prefix"; then
11244 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11245set dummy ${ac_tool_prefix}lipo; ac_word=$2
11246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11247$as_echo_n "checking for $ac_word... " >&6; }
11248if test "${ac_cv_prog_LIPO+set}" = set; then :
11249 $as_echo_n "(cached) " >&6
11250else
11251 if test -n "$LIPO"; then
11252 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11253else
11254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11255for as_dir in $PATH
11256do
11257 IFS=$as_save_IFS
11258 test -z "$as_dir" && as_dir=.
11259 for ac_exec_ext in '' $ac_executable_extensions; do
11260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11261 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11263 break 2
11264 fi
11265done
11266 done
11267IFS=$as_save_IFS
11268
11269fi
11270fi
11271LIPO=$ac_cv_prog_LIPO
11272if test -n "$LIPO"; then
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11274$as_echo "$LIPO" >&6; }
11275else
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11277$as_echo "no" >&6; }
11278fi
11279
11280
11281fi
11282if test -z "$ac_cv_prog_LIPO"; then
11283 ac_ct_LIPO=$LIPO
11284 # Extract the first word of "lipo", so it can be a program name with args.
11285set dummy lipo; ac_word=$2
11286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11287$as_echo_n "checking for $ac_word... " >&6; }
11288if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
11289 $as_echo_n "(cached) " >&6
11290else
11291 if test -n "$ac_ct_LIPO"; then
11292 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11293else
11294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11295for as_dir in $PATH
11296do
11297 IFS=$as_save_IFS
11298 test -z "$as_dir" && as_dir=.
11299 for ac_exec_ext in '' $ac_executable_extensions; do
11300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11301 ac_cv_prog_ac_ct_LIPO="lipo"
11302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11303 break 2
11304 fi
11305done
11306 done
11307IFS=$as_save_IFS
11308
11309fi
11310fi
11311ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11312if test -n "$ac_ct_LIPO"; then
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11314$as_echo "$ac_ct_LIPO" >&6; }
11315else
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11317$as_echo "no" >&6; }
11318fi
11319
11320 if test "x$ac_ct_LIPO" = x; then
11321 LIPO=":"
11322 else
11323 case $cross_compiling:$ac_tool_warned in
11324yes:)
11325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11327ac_tool_warned=yes ;;
11328esac
11329 LIPO=$ac_ct_LIPO
11330 fi
11331else
11332 LIPO="$ac_cv_prog_LIPO"
11333fi
11334
11335 if test -n "$ac_tool_prefix"; then
11336 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11337set dummy ${ac_tool_prefix}otool; ac_word=$2
11338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11339$as_echo_n "checking for $ac_word... " >&6; }
11340if test "${ac_cv_prog_OTOOL+set}" = set; then :
11341 $as_echo_n "(cached) " >&6
11342else
11343 if test -n "$OTOOL"; then
11344 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11345else
11346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11347for as_dir in $PATH
11348do
11349 IFS=$as_save_IFS
11350 test -z "$as_dir" && as_dir=.
11351 for ac_exec_ext in '' $ac_executable_extensions; do
11352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11353 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11355 break 2
11356 fi
11357done
11358 done
11359IFS=$as_save_IFS
11360
11361fi
11362fi
11363OTOOL=$ac_cv_prog_OTOOL
11364if test -n "$OTOOL"; then
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11366$as_echo "$OTOOL" >&6; }
11367else
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11369$as_echo "no" >&6; }
11370fi
11371
11372
11373fi
11374if test -z "$ac_cv_prog_OTOOL"; then
11375 ac_ct_OTOOL=$OTOOL
11376 # Extract the first word of "otool", so it can be a program name with args.
11377set dummy otool; ac_word=$2
11378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11379$as_echo_n "checking for $ac_word... " >&6; }
11380if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
11381 $as_echo_n "(cached) " >&6
11382else
11383 if test -n "$ac_ct_OTOOL"; then
11384 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11385else
11386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11387for as_dir in $PATH
11388do
11389 IFS=$as_save_IFS
11390 test -z "$as_dir" && as_dir=.
11391 for ac_exec_ext in '' $ac_executable_extensions; do
11392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11393 ac_cv_prog_ac_ct_OTOOL="otool"
11394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11395 break 2
11396 fi
11397done
11398 done
11399IFS=$as_save_IFS
11400
11401fi
11402fi
11403ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11404if test -n "$ac_ct_OTOOL"; then
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11406$as_echo "$ac_ct_OTOOL" >&6; }
11407else
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11409$as_echo "no" >&6; }
11410fi
11411
11412 if test "x$ac_ct_OTOOL" = x; then
11413 OTOOL=":"
11414 else
11415 case $cross_compiling:$ac_tool_warned in
11416yes:)
11417{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11418$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11419ac_tool_warned=yes ;;
11420esac
11421 OTOOL=$ac_ct_OTOOL
11422 fi
11423else
11424 OTOOL="$ac_cv_prog_OTOOL"
11425fi
11426
11427 if test -n "$ac_tool_prefix"; then
11428 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11429set dummy ${ac_tool_prefix}otool64; ac_word=$2
11430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11431$as_echo_n "checking for $ac_word... " >&6; }
11432if test "${ac_cv_prog_OTOOL64+set}" = set; then :
11433 $as_echo_n "(cached) " >&6
11434else
11435 if test -n "$OTOOL64"; then
11436 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11437else
11438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11439for as_dir in $PATH
11440do
11441 IFS=$as_save_IFS
11442 test -z "$as_dir" && as_dir=.
11443 for ac_exec_ext in '' $ac_executable_extensions; do
11444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11445 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11447 break 2
11448 fi
11449done
11450 done
11451IFS=$as_save_IFS
11452
11453fi
11454fi
11455OTOOL64=$ac_cv_prog_OTOOL64
11456if test -n "$OTOOL64"; then
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11458$as_echo "$OTOOL64" >&6; }
11459else
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11461$as_echo "no" >&6; }
11462fi
11463
11464
11465fi
11466if test -z "$ac_cv_prog_OTOOL64"; then
11467 ac_ct_OTOOL64=$OTOOL64
11468 # Extract the first word of "otool64", so it can be a program name with args.
11469set dummy otool64; ac_word=$2
11470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11471$as_echo_n "checking for $ac_word... " >&6; }
11472if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
11473 $as_echo_n "(cached) " >&6
11474else
11475 if test -n "$ac_ct_OTOOL64"; then
11476 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11477else
11478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11479for as_dir in $PATH
11480do
11481 IFS=$as_save_IFS
11482 test -z "$as_dir" && as_dir=.
11483 for ac_exec_ext in '' $ac_executable_extensions; do
11484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11485 ac_cv_prog_ac_ct_OTOOL64="otool64"
11486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11487 break 2
11488 fi
11489done
11490 done
11491IFS=$as_save_IFS
11492
11493fi
11494fi
11495ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11496if test -n "$ac_ct_OTOOL64"; then
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11498$as_echo "$ac_ct_OTOOL64" >&6; }
11499else
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501$as_echo "no" >&6; }
11502fi
11503
11504 if test "x$ac_ct_OTOOL64" = x; then
11505 OTOOL64=":"
11506 else
11507 case $cross_compiling:$ac_tool_warned in
11508yes:)
11509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11511ac_tool_warned=yes ;;
11512esac
11513 OTOOL64=$ac_ct_OTOOL64
11514 fi
11515else
11516 OTOOL64="$ac_cv_prog_OTOOL64"
11517fi
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11546$as_echo_n "checking for -single_module linker flag... " >&6; }
11547if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
11548 $as_echo_n "(cached) " >&6
11549else
11550 lt_cv_apple_cc_single_mod=no
11551 if test -z "${LT_MULTI_MODULE}"; then
11552 # By default we will add the -single_module flag. You can override
11553 # by either setting the environment variable LT_MULTI_MODULE
11554 # non-empty at configure time, or by adding -multi_module to the
11555 # link flags.
11556 rm -rf libconftest.dylib*
11557 echo "int foo(void){return 1;}" > conftest.c
11558 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11559-dynamiclib -Wl,-single_module conftest.c" >&5
11560 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11561 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11562 _lt_result=$?
11563 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11564 lt_cv_apple_cc_single_mod=yes
11565 else
11566 cat conftest.err >&5
11567 fi
11568 rm -rf libconftest.dylib*
11569 rm -f conftest.*
11570 fi
11571fi
11572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11573$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11575$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11576if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
11577 $as_echo_n "(cached) " >&6
11578else
11579 lt_cv_ld_exported_symbols_list=no
11580 save_LDFLAGS=$LDFLAGS
11581 echo "_main" > conftest.sym
11582 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584/* end confdefs.h. */
11585
11586int
11587main ()
11588{
11589
11590 ;
11591 return 0;
11592}
11593_ACEOF
11594if ac_fn_c_try_link "$LINENO"; then :
11595 lt_cv_ld_exported_symbols_list=yes
11596else
11597 lt_cv_ld_exported_symbols_list=no
11598fi
11599rm -f core conftest.err conftest.$ac_objext \
11600 conftest$ac_exeext conftest.$ac_ext
11601 LDFLAGS="$save_LDFLAGS"
11602
11603fi
11604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11605$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy0c60a692010-11-04 01:09:47 +000011606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11607$as_echo_n "checking for -force_load linker flag... " >&6; }
11608if test "${lt_cv_ld_force_load+set}" = set; then :
11609 $as_echo_n "(cached) " >&6
11610else
11611 lt_cv_ld_force_load=no
11612 cat > conftest.c << _LT_EOF
11613int forced_loaded() { return 2;}
11614_LT_EOF
11615 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11616 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11617 echo "$AR cru libconftest.a conftest.o" >&5
11618 $AR cru libconftest.a conftest.o 2>&5
11619 echo "$RANLIB libconftest.a" >&5
11620 $RANLIB libconftest.a 2>&5
11621 cat > conftest.c << _LT_EOF
11622int main() { return 0;}
11623_LT_EOF
11624 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11625 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11626 _lt_result=$?
11627 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11628 lt_cv_ld_force_load=yes
11629 else
11630 cat conftest.err >&5
11631 fi
11632 rm -f conftest.err libconftest.a conftest conftest.c
11633 rm -rf conftest.dSYM
11634
11635fi
11636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11637$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000011638 case $host_os in
11639 rhapsody* | darwin1.[012])
11640 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11641 darwin1.*)
11642 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11643 darwin*) # darwin 5.x on
11644 # if running on 10.5 or later, the deployment target defaults
11645 # to the OS version, if on x86, and 10.4, the deployment
11646 # target defaults to 10.4. Don't you love it?
11647 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11648 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11649 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11650 10.[012]*)
11651 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11652 10.*)
11653 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11654 esac
11655 ;;
11656 esac
11657 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11658 _lt_dar_single_mod='$single_module'
11659 fi
11660 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11661 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11662 else
11663 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11664 fi
cristy0c60a692010-11-04 01:09:47 +000011665 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000011666 _lt_dsymutil='~$DSYMUTIL $lib || :'
11667 else
11668 _lt_dsymutil=
11669 fi
11670 ;;
11671 esac
11672
11673for ac_header in dlfcn.h
11674do :
11675 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11676"
11677if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11678 cat >>confdefs.h <<_ACEOF
11679#define HAVE_DLFCN_H 1
11680_ACEOF
11681
11682fi
11683
11684done
11685
11686
11687
cristy73bd4a52010-10-05 11:24:23 +000011688
11689
11690
11691# Set options
11692enable_win32_dll=yes
11693
11694case $host in
cristy0c60a692010-11-04 01:09:47 +000011695*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011696 if test -n "$ac_tool_prefix"; then
11697 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11698set dummy ${ac_tool_prefix}as; ac_word=$2
11699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11700$as_echo_n "checking for $ac_word... " >&6; }
11701if test "${ac_cv_prog_AS+set}" = set; then :
11702 $as_echo_n "(cached) " >&6
11703else
11704 if test -n "$AS"; then
11705 ac_cv_prog_AS="$AS" # Let the user override the test.
11706else
11707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11708for as_dir in $PATH
11709do
11710 IFS=$as_save_IFS
11711 test -z "$as_dir" && as_dir=.
11712 for ac_exec_ext in '' $ac_executable_extensions; do
11713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11714 ac_cv_prog_AS="${ac_tool_prefix}as"
11715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11716 break 2
11717 fi
11718done
11719 done
11720IFS=$as_save_IFS
11721
11722fi
11723fi
11724AS=$ac_cv_prog_AS
11725if test -n "$AS"; then
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11727$as_echo "$AS" >&6; }
11728else
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11730$as_echo "no" >&6; }
11731fi
11732
11733
11734fi
11735if test -z "$ac_cv_prog_AS"; then
11736 ac_ct_AS=$AS
11737 # Extract the first word of "as", so it can be a program name with args.
11738set dummy as; ac_word=$2
11739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11740$as_echo_n "checking for $ac_word... " >&6; }
11741if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
11742 $as_echo_n "(cached) " >&6
11743else
11744 if test -n "$ac_ct_AS"; then
11745 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11746else
11747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748for as_dir in $PATH
11749do
11750 IFS=$as_save_IFS
11751 test -z "$as_dir" && as_dir=.
11752 for ac_exec_ext in '' $ac_executable_extensions; do
11753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11754 ac_cv_prog_ac_ct_AS="as"
11755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11756 break 2
11757 fi
11758done
11759 done
11760IFS=$as_save_IFS
11761
11762fi
11763fi
11764ac_ct_AS=$ac_cv_prog_ac_ct_AS
11765if test -n "$ac_ct_AS"; then
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11767$as_echo "$ac_ct_AS" >&6; }
11768else
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11770$as_echo "no" >&6; }
11771fi
11772
11773 if test "x$ac_ct_AS" = x; then
11774 AS="false"
11775 else
11776 case $cross_compiling:$ac_tool_warned in
11777yes:)
11778{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11779$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11780ac_tool_warned=yes ;;
11781esac
11782 AS=$ac_ct_AS
11783 fi
11784else
11785 AS="$ac_cv_prog_AS"
11786fi
11787
11788 if test -n "$ac_tool_prefix"; then
11789 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11790set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11792$as_echo_n "checking for $ac_word... " >&6; }
11793if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
11794 $as_echo_n "(cached) " >&6
11795else
11796 if test -n "$DLLTOOL"; then
11797 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11798else
11799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11800for as_dir in $PATH
11801do
11802 IFS=$as_save_IFS
11803 test -z "$as_dir" && as_dir=.
11804 for ac_exec_ext in '' $ac_executable_extensions; do
11805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11806 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11808 break 2
11809 fi
11810done
11811 done
11812IFS=$as_save_IFS
11813
11814fi
11815fi
11816DLLTOOL=$ac_cv_prog_DLLTOOL
11817if test -n "$DLLTOOL"; then
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11819$as_echo "$DLLTOOL" >&6; }
11820else
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11822$as_echo "no" >&6; }
11823fi
11824
11825
11826fi
11827if test -z "$ac_cv_prog_DLLTOOL"; then
11828 ac_ct_DLLTOOL=$DLLTOOL
11829 # Extract the first word of "dlltool", so it can be a program name with args.
11830set dummy dlltool; ac_word=$2
11831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11832$as_echo_n "checking for $ac_word... " >&6; }
11833if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
11834 $as_echo_n "(cached) " >&6
11835else
11836 if test -n "$ac_ct_DLLTOOL"; then
11837 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11838else
11839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11840for as_dir in $PATH
11841do
11842 IFS=$as_save_IFS
11843 test -z "$as_dir" && as_dir=.
11844 for ac_exec_ext in '' $ac_executable_extensions; do
11845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11846 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11848 break 2
11849 fi
11850done
11851 done
11852IFS=$as_save_IFS
11853
11854fi
11855fi
11856ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11857if test -n "$ac_ct_DLLTOOL"; then
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11859$as_echo "$ac_ct_DLLTOOL" >&6; }
11860else
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11862$as_echo "no" >&6; }
11863fi
11864
11865 if test "x$ac_ct_DLLTOOL" = x; then
11866 DLLTOOL="false"
11867 else
11868 case $cross_compiling:$ac_tool_warned in
11869yes:)
11870{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11872ac_tool_warned=yes ;;
11873esac
11874 DLLTOOL=$ac_ct_DLLTOOL
11875 fi
11876else
11877 DLLTOOL="$ac_cv_prog_DLLTOOL"
11878fi
11879
11880 if test -n "$ac_tool_prefix"; then
11881 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11882set dummy ${ac_tool_prefix}objdump; ac_word=$2
11883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11884$as_echo_n "checking for $ac_word... " >&6; }
11885if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11886 $as_echo_n "(cached) " >&6
11887else
11888 if test -n "$OBJDUMP"; then
11889 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11890else
11891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892for as_dir in $PATH
11893do
11894 IFS=$as_save_IFS
11895 test -z "$as_dir" && as_dir=.
11896 for ac_exec_ext in '' $ac_executable_extensions; do
11897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11898 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11900 break 2
11901 fi
11902done
11903 done
11904IFS=$as_save_IFS
11905
11906fi
11907fi
11908OBJDUMP=$ac_cv_prog_OBJDUMP
11909if test -n "$OBJDUMP"; then
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11911$as_echo "$OBJDUMP" >&6; }
11912else
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11914$as_echo "no" >&6; }
11915fi
11916
11917
11918fi
11919if test -z "$ac_cv_prog_OBJDUMP"; then
11920 ac_ct_OBJDUMP=$OBJDUMP
11921 # Extract the first word of "objdump", so it can be a program name with args.
11922set dummy objdump; ac_word=$2
11923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11924$as_echo_n "checking for $ac_word... " >&6; }
11925if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11926 $as_echo_n "(cached) " >&6
11927else
11928 if test -n "$ac_ct_OBJDUMP"; then
11929 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11930else
11931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11932for as_dir in $PATH
11933do
11934 IFS=$as_save_IFS
11935 test -z "$as_dir" && as_dir=.
11936 for ac_exec_ext in '' $ac_executable_extensions; do
11937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11938 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11940 break 2
11941 fi
11942done
11943 done
11944IFS=$as_save_IFS
11945
11946fi
11947fi
11948ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11949if test -n "$ac_ct_OBJDUMP"; then
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11951$as_echo "$ac_ct_OBJDUMP" >&6; }
11952else
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11954$as_echo "no" >&6; }
11955fi
11956
11957 if test "x$ac_ct_OBJDUMP" = x; then
11958 OBJDUMP="false"
11959 else
11960 case $cross_compiling:$ac_tool_warned in
11961yes:)
11962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11964ac_tool_warned=yes ;;
11965esac
11966 OBJDUMP=$ac_ct_OBJDUMP
11967 fi
11968else
11969 OBJDUMP="$ac_cv_prog_OBJDUMP"
11970fi
11971
11972 ;;
11973esac
11974
11975test -z "$AS" && AS=as
11976
11977
11978
11979
11980
11981test -z "$DLLTOOL" && DLLTOOL=dlltool
11982
11983
11984
11985
11986
11987test -z "$OBJDUMP" && OBJDUMP=objdump
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997 # Check whether --enable-shared was given.
11998if test "${enable_shared+set}" = set; then :
11999 enableval=$enable_shared; p=${PACKAGE-default}
12000 case $enableval in
12001 yes) enable_shared=yes ;;
12002 no) enable_shared=no ;;
12003 *)
12004 enable_shared=no
12005 # Look at the argument we got. We use all the common list separators.
12006 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12007 for pkg in $enableval; do
12008 IFS="$lt_save_ifs"
12009 if test "X$pkg" = "X$p"; then
12010 enable_shared=yes
12011 fi
12012 done
12013 IFS="$lt_save_ifs"
12014 ;;
12015 esac
12016else
12017 enable_shared=yes
12018fi
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028 # Check whether --enable-static was given.
12029if test "${enable_static+set}" = set; then :
12030 enableval=$enable_static; p=${PACKAGE-default}
12031 case $enableval in
12032 yes) enable_static=yes ;;
12033 no) enable_static=no ;;
12034 *)
12035 enable_static=no
12036 # Look at the argument we got. We use all the common list separators.
12037 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12038 for pkg in $enableval; do
12039 IFS="$lt_save_ifs"
12040 if test "X$pkg" = "X$p"; then
12041 enable_static=yes
12042 fi
12043 done
12044 IFS="$lt_save_ifs"
12045 ;;
12046 esac
12047else
12048 enable_static=yes
12049fi
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060# Check whether --with-pic was given.
12061if test "${with_pic+set}" = set; then :
12062 withval=$with_pic; pic_mode="$withval"
12063else
12064 pic_mode=default
12065fi
12066
12067
12068test -z "$pic_mode" && pic_mode=default
12069
12070
12071
12072
12073
12074
12075
12076 # Check whether --enable-fast-install was given.
12077if test "${enable_fast_install+set}" = set; then :
12078 enableval=$enable_fast_install; p=${PACKAGE-default}
12079 case $enableval in
12080 yes) enable_fast_install=yes ;;
12081 no) enable_fast_install=no ;;
12082 *)
12083 enable_fast_install=no
12084 # Look at the argument we got. We use all the common list separators.
12085 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12086 for pkg in $enableval; do
12087 IFS="$lt_save_ifs"
12088 if test "X$pkg" = "X$p"; then
12089 enable_fast_install=yes
12090 fi
12091 done
12092 IFS="$lt_save_ifs"
12093 ;;
12094 esac
12095else
12096 enable_fast_install=yes
12097fi
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109# This can be used to rebuild libtool when needed
12110LIBTOOL_DEPS="$ltmain"
12111
12112# Always use our own libtool.
12113LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
cristy0c60a692010-11-04 01:09:47 +000012139
cristy73bd4a52010-10-05 11:24:23 +000012140test -z "$LN_S" && LN_S="ln -s"
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155if test -n "${ZSH_VERSION+set}" ; then
12156 setopt NO_GLOB_SUBST
12157fi
12158
12159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12160$as_echo_n "checking for objdir... " >&6; }
12161if test "${lt_cv_objdir+set}" = set; then :
12162 $as_echo_n "(cached) " >&6
12163else
12164 rm -f .libs 2>/dev/null
12165mkdir .libs 2>/dev/null
12166if test -d .libs; then
12167 lt_cv_objdir=.libs
12168else
12169 # MS-DOS does not allow filenames that begin with a dot.
12170 lt_cv_objdir=_libs
12171fi
12172rmdir .libs 2>/dev/null
12173fi
12174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12175$as_echo "$lt_cv_objdir" >&6; }
12176objdir=$lt_cv_objdir
12177
12178
12179
12180
12181
12182cat >>confdefs.h <<_ACEOF
12183#define LT_OBJDIR "$lt_cv_objdir/"
12184_ACEOF
12185
12186
12187
12188
cristy73bd4a52010-10-05 11:24:23 +000012189case $host_os in
12190aix3*)
12191 # AIX sometimes has problems with the GCC collect2 program. For some
12192 # reason, if we set the COLLECT_NAMES environment variable, the problems
12193 # vanish in a puff of smoke.
12194 if test "X${COLLECT_NAMES+set}" != Xset; then
12195 COLLECT_NAMES=
12196 export COLLECT_NAMES
12197 fi
12198 ;;
12199esac
12200
cristy73bd4a52010-10-05 11:24:23 +000012201# Global variables:
12202ofile=libtool
12203can_build_shared=yes
12204
12205# All known linkers require a `.a' archive for static linking (except MSVC,
12206# which needs '.lib').
12207libext=a
12208
12209with_gnu_ld="$lt_cv_prog_gnu_ld"
12210
12211old_CC="$CC"
12212old_CFLAGS="$CFLAGS"
12213
12214# Set sane defaults for various variables
12215test -z "$CC" && CC=cc
12216test -z "$LTCC" && LTCC=$CC
12217test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12218test -z "$LD" && LD=ld
12219test -z "$ac_objext" && ac_objext=o
12220
12221for cc_temp in $compiler""; do
12222 case $cc_temp in
12223 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12224 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12225 \-*) ;;
12226 *) break;;
12227 esac
12228done
cristy0c60a692010-11-04 01:09:47 +000012229cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000012230
12231
12232# Only perform the check for file, if the check method requires it
12233test -z "$MAGIC_CMD" && MAGIC_CMD=file
12234case $deplibs_check_method in
12235file_magic*)
12236 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12238$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12239if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12240 $as_echo_n "(cached) " >&6
12241else
12242 case $MAGIC_CMD in
12243[\\/*] | ?:[\\/]*)
12244 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12245 ;;
12246*)
12247 lt_save_MAGIC_CMD="$MAGIC_CMD"
12248 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12249 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12250 for ac_dir in $ac_dummy; do
12251 IFS="$lt_save_ifs"
12252 test -z "$ac_dir" && ac_dir=.
12253 if test -f $ac_dir/${ac_tool_prefix}file; then
12254 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12255 if test -n "$file_magic_test_file"; then
12256 case $deplibs_check_method in
12257 "file_magic "*)
12258 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12259 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12260 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12261 $EGREP "$file_magic_regex" > /dev/null; then
12262 :
12263 else
12264 cat <<_LT_EOF 1>&2
12265
12266*** Warning: the command libtool uses to detect shared libraries,
12267*** $file_magic_cmd, produces output that libtool cannot recognize.
12268*** The result is that libtool may fail to recognize shared libraries
12269*** as such. This will affect the creation of libtool libraries that
12270*** depend on shared libraries, but programs linked with such libtool
12271*** libraries will work regardless of this problem. Nevertheless, you
12272*** may want to report the problem to your system manager and/or to
12273*** bug-libtool@gnu.org
12274
12275_LT_EOF
12276 fi ;;
12277 esac
12278 fi
12279 break
12280 fi
12281 done
12282 IFS="$lt_save_ifs"
12283 MAGIC_CMD="$lt_save_MAGIC_CMD"
12284 ;;
12285esac
12286fi
12287
12288MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12289if test -n "$MAGIC_CMD"; then
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12291$as_echo "$MAGIC_CMD" >&6; }
12292else
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12294$as_echo "no" >&6; }
12295fi
12296
12297
12298
12299
12300
12301if test -z "$lt_cv_path_MAGIC_CMD"; then
12302 if test -n "$ac_tool_prefix"; then
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12304$as_echo_n "checking for file... " >&6; }
12305if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12306 $as_echo_n "(cached) " >&6
12307else
12308 case $MAGIC_CMD in
12309[\\/*] | ?:[\\/]*)
12310 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12311 ;;
12312*)
12313 lt_save_MAGIC_CMD="$MAGIC_CMD"
12314 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12315 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12316 for ac_dir in $ac_dummy; do
12317 IFS="$lt_save_ifs"
12318 test -z "$ac_dir" && ac_dir=.
12319 if test -f $ac_dir/file; then
12320 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12321 if test -n "$file_magic_test_file"; then
12322 case $deplibs_check_method in
12323 "file_magic "*)
12324 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12325 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12326 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12327 $EGREP "$file_magic_regex" > /dev/null; then
12328 :
12329 else
12330 cat <<_LT_EOF 1>&2
12331
12332*** Warning: the command libtool uses to detect shared libraries,
12333*** $file_magic_cmd, produces output that libtool cannot recognize.
12334*** The result is that libtool may fail to recognize shared libraries
12335*** as such. This will affect the creation of libtool libraries that
12336*** depend on shared libraries, but programs linked with such libtool
12337*** libraries will work regardless of this problem. Nevertheless, you
12338*** may want to report the problem to your system manager and/or to
12339*** bug-libtool@gnu.org
12340
12341_LT_EOF
12342 fi ;;
12343 esac
12344 fi
12345 break
12346 fi
12347 done
12348 IFS="$lt_save_ifs"
12349 MAGIC_CMD="$lt_save_MAGIC_CMD"
12350 ;;
12351esac
12352fi
12353
12354MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12355if test -n "$MAGIC_CMD"; then
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12357$as_echo "$MAGIC_CMD" >&6; }
12358else
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12360$as_echo "no" >&6; }
12361fi
12362
12363
12364 else
12365 MAGIC_CMD=:
12366 fi
12367fi
12368
12369 fi
12370 ;;
12371esac
12372
12373# Use C for the default configuration in the libtool script
12374
12375lt_save_CC="$CC"
12376ac_ext=c
12377ac_cpp='$CPP $CPPFLAGS'
12378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12380ac_compiler_gnu=$ac_cv_c_compiler_gnu
12381
12382
12383# Source file extension for C test sources.
12384ac_ext=c
12385
12386# Object file extension for compiled C test sources.
12387objext=o
12388objext=$objext
12389
12390# Code to be used in simple compile tests
12391lt_simple_compile_test_code="int some_variable = 0;"
12392
12393# Code to be used in simple link tests
12394lt_simple_link_test_code='int main(){return(0);}'
12395
12396
12397
12398
12399
12400
12401
12402# If no C compiler was specified, use CC.
12403LTCC=${LTCC-"$CC"}
12404
12405# If no C compiler flags were specified, use CFLAGS.
12406LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12407
12408# Allow CC to be a program name with arguments.
12409compiler=$CC
12410
12411# Save the default compiler, since it gets overwritten when the other
12412# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12413compiler_DEFAULT=$CC
12414
12415# save warnings/boilerplate of simple test code
12416ac_outfile=conftest.$ac_objext
12417echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12418eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12419_lt_compiler_boilerplate=`cat conftest.err`
12420$RM conftest*
12421
12422ac_outfile=conftest.$ac_objext
12423echo "$lt_simple_link_test_code" >conftest.$ac_ext
12424eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12425_lt_linker_boilerplate=`cat conftest.err`
12426$RM -r conftest*
12427
12428
12429## CAVEAT EMPTOR:
12430## There is no encapsulation within the following macros, do not change
12431## the running order or otherwise move them around unless you know exactly
12432## what you are doing...
12433if test -n "$compiler"; then
12434
12435lt_prog_compiler_no_builtin_flag=
12436
12437if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000012438 case $cc_basename in
12439 nvcc*)
12440 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12441 *)
12442 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12443 esac
cristy73bd4a52010-10-05 11:24:23 +000012444
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12446$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12447if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
12448 $as_echo_n "(cached) " >&6
12449else
12450 lt_cv_prog_compiler_rtti_exceptions=no
12451 ac_outfile=conftest.$ac_objext
12452 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12453 lt_compiler_flag="-fno-rtti -fno-exceptions"
12454 # Insert the option either (1) after the last *FLAGS variable, or
12455 # (2) before a word containing "conftest.", or (3) at the end.
12456 # Note that $ac_compile itself does not contain backslashes and begins
12457 # with a dollar sign (not a hyphen), so the echo should work correctly.
12458 # The option is referenced via a variable to avoid confusing sed.
12459 lt_compile=`echo "$ac_compile" | $SED \
12460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12462 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000012463 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000012464 (eval "$lt_compile" 2>conftest.err)
12465 ac_status=$?
12466 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000012467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000012468 if (exit $ac_status) && test -s "$ac_outfile"; then
12469 # The compiler can only warn and ignore the option if not recognized
12470 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000012471 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000012472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12473 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12474 lt_cv_prog_compiler_rtti_exceptions=yes
12475 fi
12476 fi
12477 $RM conftest*
12478
12479fi
12480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12481$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12482
12483if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12484 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12485else
12486 :
12487fi
12488
12489fi
12490
12491
12492
12493
12494
12495
12496 lt_prog_compiler_wl=
12497lt_prog_compiler_pic=
12498lt_prog_compiler_static=
12499
12500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12501$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12502
12503 if test "$GCC" = yes; then
12504 lt_prog_compiler_wl='-Wl,'
12505 lt_prog_compiler_static='-static'
12506
12507 case $host_os in
12508 aix*)
12509 # All AIX code is PIC.
12510 if test "$host_cpu" = ia64; then
12511 # AIX 5 now supports IA64 processor
12512 lt_prog_compiler_static='-Bstatic'
12513 fi
12514 ;;
12515
12516 amigaos*)
12517 case $host_cpu in
12518 powerpc)
12519 # see comment about AmigaOS4 .so support
12520 lt_prog_compiler_pic='-fPIC'
12521 ;;
12522 m68k)
12523 # FIXME: we need at least 68020 code to build shared libraries, but
12524 # adding the `-m68020' flag to GCC prevents building anything better,
12525 # like `-m68040'.
12526 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12527 ;;
12528 esac
12529 ;;
12530
12531 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12532 # PIC is the default for these OSes.
12533 ;;
12534
12535 mingw* | cygwin* | pw32* | os2* | cegcc*)
12536 # This hack is so that the source file can tell whether it is being
12537 # built for inclusion in a dll (and should export symbols for example).
12538 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12539 # (--disable-auto-import) libraries
12540 lt_prog_compiler_pic='-DDLL_EXPORT'
12541 ;;
12542
12543 darwin* | rhapsody*)
12544 # PIC is the default on this platform
12545 # Common symbols not allowed in MH_DYLIB files
12546 lt_prog_compiler_pic='-fno-common'
12547 ;;
12548
cristy0c60a692010-11-04 01:09:47 +000012549 haiku*)
12550 # PIC is the default for Haiku.
12551 # The "-static" flag exists, but is broken.
12552 lt_prog_compiler_static=
12553 ;;
12554
cristy73bd4a52010-10-05 11:24:23 +000012555 hpux*)
12556 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12557 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12558 # sets the default TLS model and affects inlining.
12559 case $host_cpu in
12560 hppa*64*)
12561 # +Z the default
12562 ;;
12563 *)
12564 lt_prog_compiler_pic='-fPIC'
12565 ;;
12566 esac
12567 ;;
12568
12569 interix[3-9]*)
12570 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12571 # Instead, we relocate shared libraries at runtime.
12572 ;;
12573
12574 msdosdjgpp*)
12575 # Just because we use GCC doesn't mean we suddenly get shared libraries
12576 # on systems that don't support them.
12577 lt_prog_compiler_can_build_shared=no
12578 enable_shared=no
12579 ;;
12580
12581 *nto* | *qnx*)
12582 # QNX uses GNU C++, but need to define -shared option too, otherwise
12583 # it will coredump.
12584 lt_prog_compiler_pic='-fPIC -shared'
12585 ;;
12586
12587 sysv4*MP*)
12588 if test -d /usr/nec; then
12589 lt_prog_compiler_pic=-Kconform_pic
12590 fi
12591 ;;
12592
12593 *)
12594 lt_prog_compiler_pic='-fPIC'
12595 ;;
12596 esac
cristy0c60a692010-11-04 01:09:47 +000012597
12598 case $cc_basename in
12599 nvcc*) # Cuda Compiler Driver 2.2
12600 lt_prog_compiler_wl='-Xlinker '
12601 lt_prog_compiler_pic='-Xcompiler -fPIC'
12602 ;;
12603 esac
cristy73bd4a52010-10-05 11:24:23 +000012604 else
12605 # PORTME Check for flag to pass linker flags through the system compiler.
12606 case $host_os in
12607 aix*)
12608 lt_prog_compiler_wl='-Wl,'
12609 if test "$host_cpu" = ia64; then
12610 # AIX 5 now supports IA64 processor
12611 lt_prog_compiler_static='-Bstatic'
12612 else
12613 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12614 fi
12615 ;;
12616
12617 mingw* | cygwin* | pw32* | os2* | cegcc*)
12618 # This hack is so that the source file can tell whether it is being
12619 # built for inclusion in a dll (and should export symbols for example).
12620 lt_prog_compiler_pic='-DDLL_EXPORT'
12621 ;;
12622
12623 hpux9* | hpux10* | hpux11*)
12624 lt_prog_compiler_wl='-Wl,'
12625 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12626 # not for PA HP-UX.
12627 case $host_cpu in
12628 hppa*64*|ia64*)
12629 # +Z the default
12630 ;;
12631 *)
12632 lt_prog_compiler_pic='+Z'
12633 ;;
12634 esac
12635 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12636 lt_prog_compiler_static='${wl}-a ${wl}archive'
12637 ;;
12638
12639 irix5* | irix6* | nonstopux*)
12640 lt_prog_compiler_wl='-Wl,'
12641 # PIC (with -KPIC) is the default.
12642 lt_prog_compiler_static='-non_shared'
12643 ;;
12644
cristy0c60a692010-11-04 01:09:47 +000012645 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000012646 case $cc_basename in
12647 # old Intel for x86_64 which still supported -KPIC.
12648 ecc*)
12649 lt_prog_compiler_wl='-Wl,'
12650 lt_prog_compiler_pic='-KPIC'
12651 lt_prog_compiler_static='-static'
12652 ;;
12653 # icc used to be incompatible with GCC.
12654 # ICC 10 doesn't accept -KPIC any more.
12655 icc* | ifort*)
12656 lt_prog_compiler_wl='-Wl,'
12657 lt_prog_compiler_pic='-fPIC'
12658 lt_prog_compiler_static='-static'
12659 ;;
12660 # Lahey Fortran 8.1.
12661 lf95*)
12662 lt_prog_compiler_wl='-Wl,'
12663 lt_prog_compiler_pic='--shared'
12664 lt_prog_compiler_static='--static'
12665 ;;
cristy0c60a692010-11-04 01:09:47 +000012666 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000012667 # Portland Group compilers (*not* the Pentium gcc compiler,
12668 # which looks to be a dead project)
12669 lt_prog_compiler_wl='-Wl,'
12670 lt_prog_compiler_pic='-fpic'
12671 lt_prog_compiler_static='-Bstatic'
12672 ;;
12673 ccc*)
12674 lt_prog_compiler_wl='-Wl,'
12675 # All Alpha code is PIC.
12676 lt_prog_compiler_static='-non_shared'
12677 ;;
cristy0c60a692010-11-04 01:09:47 +000012678 xl* | bgxl* | bgf* | mpixl*)
12679 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000012680 lt_prog_compiler_wl='-Wl,'
12681 lt_prog_compiler_pic='-qpic'
12682 lt_prog_compiler_static='-qstaticlink'
12683 ;;
12684 *)
12685 case `$CC -V 2>&1 | sed 5q` in
cristy0c60a692010-11-04 01:09:47 +000012686 *Sun\ F* | *Sun*Fortran*)
12687 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12688 lt_prog_compiler_pic='-KPIC'
12689 lt_prog_compiler_static='-Bstatic'
12690 lt_prog_compiler_wl=''
12691 ;;
cristy73bd4a52010-10-05 11:24:23 +000012692 *Sun\ C*)
12693 # Sun C 5.9
12694 lt_prog_compiler_pic='-KPIC'
12695 lt_prog_compiler_static='-Bstatic'
12696 lt_prog_compiler_wl='-Wl,'
12697 ;;
cristy73bd4a52010-10-05 11:24:23 +000012698 esac
12699 ;;
12700 esac
12701 ;;
12702
12703 newsos6)
12704 lt_prog_compiler_pic='-KPIC'
12705 lt_prog_compiler_static='-Bstatic'
12706 ;;
12707
12708 *nto* | *qnx*)
12709 # QNX uses GNU C++, but need to define -shared option too, otherwise
12710 # it will coredump.
12711 lt_prog_compiler_pic='-fPIC -shared'
12712 ;;
12713
12714 osf3* | osf4* | osf5*)
12715 lt_prog_compiler_wl='-Wl,'
12716 # All OSF/1 code is PIC.
12717 lt_prog_compiler_static='-non_shared'
12718 ;;
12719
12720 rdos*)
12721 lt_prog_compiler_static='-non_shared'
12722 ;;
12723
12724 solaris*)
12725 lt_prog_compiler_pic='-KPIC'
12726 lt_prog_compiler_static='-Bstatic'
12727 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000012728 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000012729 lt_prog_compiler_wl='-Qoption ld ';;
12730 *)
12731 lt_prog_compiler_wl='-Wl,';;
12732 esac
12733 ;;
12734
12735 sunos4*)
12736 lt_prog_compiler_wl='-Qoption ld '
12737 lt_prog_compiler_pic='-PIC'
12738 lt_prog_compiler_static='-Bstatic'
12739 ;;
12740
12741 sysv4 | sysv4.2uw2* | sysv4.3*)
12742 lt_prog_compiler_wl='-Wl,'
12743 lt_prog_compiler_pic='-KPIC'
12744 lt_prog_compiler_static='-Bstatic'
12745 ;;
12746
12747 sysv4*MP*)
12748 if test -d /usr/nec ;then
12749 lt_prog_compiler_pic='-Kconform_pic'
12750 lt_prog_compiler_static='-Bstatic'
12751 fi
12752 ;;
12753
12754 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12755 lt_prog_compiler_wl='-Wl,'
12756 lt_prog_compiler_pic='-KPIC'
12757 lt_prog_compiler_static='-Bstatic'
12758 ;;
12759
12760 unicos*)
12761 lt_prog_compiler_wl='-Wl,'
12762 lt_prog_compiler_can_build_shared=no
12763 ;;
12764
12765 uts4*)
12766 lt_prog_compiler_pic='-pic'
12767 lt_prog_compiler_static='-Bstatic'
12768 ;;
12769
12770 *)
12771 lt_prog_compiler_can_build_shared=no
12772 ;;
12773 esac
12774 fi
12775
12776case $host_os in
12777 # For platforms which do not support PIC, -DPIC is meaningless:
12778 *djgpp*)
12779 lt_prog_compiler_pic=
12780 ;;
12781 *)
12782 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12783 ;;
12784esac
12785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
12786$as_echo "$lt_prog_compiler_pic" >&6; }
12787
12788
12789
12790
12791
12792
12793#
12794# Check to make sure the PIC flag actually works.
12795#
12796if test -n "$lt_prog_compiler_pic"; then
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12798$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12799if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
12800 $as_echo_n "(cached) " >&6
12801else
12802 lt_cv_prog_compiler_pic_works=no
12803 ac_outfile=conftest.$ac_objext
12804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12805 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12806 # Insert the option either (1) after the last *FLAGS variable, or
12807 # (2) before a word containing "conftest.", or (3) at the end.
12808 # Note that $ac_compile itself does not contain backslashes and begins
12809 # with a dollar sign (not a hyphen), so the echo should work correctly.
12810 # The option is referenced via a variable to avoid confusing sed.
12811 lt_compile=`echo "$ac_compile" | $SED \
12812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12814 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000012815 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000012816 (eval "$lt_compile" 2>conftest.err)
12817 ac_status=$?
12818 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000012819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000012820 if (exit $ac_status) && test -s "$ac_outfile"; then
12821 # The compiler can only warn and ignore the option if not recognized
12822 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000012823 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000012824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12825 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12826 lt_cv_prog_compiler_pic_works=yes
12827 fi
12828 fi
12829 $RM conftest*
12830
12831fi
12832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12833$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12834
12835if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12836 case $lt_prog_compiler_pic in
12837 "" | " "*) ;;
12838 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12839 esac
12840else
12841 lt_prog_compiler_pic=
12842 lt_prog_compiler_can_build_shared=no
12843fi
12844
12845fi
12846
12847
12848
12849
12850
12851
12852#
12853# Check to make sure the static flag actually works.
12854#
12855wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12857$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12858if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
12859 $as_echo_n "(cached) " >&6
12860else
12861 lt_cv_prog_compiler_static_works=no
12862 save_LDFLAGS="$LDFLAGS"
12863 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12864 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12865 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12866 # The linker can only warn and ignore the option if not recognized
12867 # So say no if there are warnings
12868 if test -s conftest.err; then
12869 # Append any errors to the config.log.
12870 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000012871 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000012872 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12873 if diff conftest.exp conftest.er2 >/dev/null; then
12874 lt_cv_prog_compiler_static_works=yes
12875 fi
12876 else
12877 lt_cv_prog_compiler_static_works=yes
12878 fi
12879 fi
12880 $RM -r conftest*
12881 LDFLAGS="$save_LDFLAGS"
12882
12883fi
12884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12885$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12886
12887if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12888 :
12889else
12890 lt_prog_compiler_static=
12891fi
12892
12893
12894
12895
12896
12897
12898
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12900$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12901if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12902 $as_echo_n "(cached) " >&6
12903else
12904 lt_cv_prog_compiler_c_o=no
12905 $RM -r conftest 2>/dev/null
12906 mkdir conftest
12907 cd conftest
12908 mkdir out
12909 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12910
12911 lt_compiler_flag="-o out/conftest2.$ac_objext"
12912 # Insert the option either (1) after the last *FLAGS variable, or
12913 # (2) before a word containing "conftest.", or (3) at the end.
12914 # Note that $ac_compile itself does not contain backslashes and begins
12915 # with a dollar sign (not a hyphen), so the echo should work correctly.
12916 lt_compile=`echo "$ac_compile" | $SED \
12917 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12918 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12919 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000012920 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000012921 (eval "$lt_compile" 2>out/conftest.err)
12922 ac_status=$?
12923 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000012924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000012925 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12926 then
12927 # The compiler can only warn and ignore the option if not recognized
12928 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000012929 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000012930 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12931 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12932 lt_cv_prog_compiler_c_o=yes
12933 fi
12934 fi
12935 chmod u+w . 2>&5
12936 $RM conftest*
12937 # SGI C++ compiler will create directory out/ii_files/ for
12938 # template instantiation
12939 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12940 $RM out/* && rmdir out
12941 cd ..
12942 $RM -r conftest
12943 $RM conftest*
12944
12945fi
12946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12947$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12948
12949
12950
12951
12952
12953
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12955$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12956if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12957 $as_echo_n "(cached) " >&6
12958else
12959 lt_cv_prog_compiler_c_o=no
12960 $RM -r conftest 2>/dev/null
12961 mkdir conftest
12962 cd conftest
12963 mkdir out
12964 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12965
12966 lt_compiler_flag="-o out/conftest2.$ac_objext"
12967 # Insert the option either (1) after the last *FLAGS variable, or
12968 # (2) before a word containing "conftest.", or (3) at the end.
12969 # Note that $ac_compile itself does not contain backslashes and begins
12970 # with a dollar sign (not a hyphen), so the echo should work correctly.
12971 lt_compile=`echo "$ac_compile" | $SED \
12972 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12973 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12974 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000012975 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000012976 (eval "$lt_compile" 2>out/conftest.err)
12977 ac_status=$?
12978 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000012979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000012980 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12981 then
12982 # The compiler can only warn and ignore the option if not recognized
12983 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000012984 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000012985 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12986 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12987 lt_cv_prog_compiler_c_o=yes
12988 fi
12989 fi
12990 chmod u+w . 2>&5
12991 $RM conftest*
12992 # SGI C++ compiler will create directory out/ii_files/ for
12993 # template instantiation
12994 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12995 $RM out/* && rmdir out
12996 cd ..
12997 $RM -r conftest
12998 $RM conftest*
12999
13000fi
13001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13002$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13003
13004
13005
13006
13007hard_links="nottested"
13008if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13009 # do not overwrite the value of need_locks provided by the user
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13011$as_echo_n "checking if we can lock with hard links... " >&6; }
13012 hard_links=yes
13013 $RM conftest*
13014 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13015 touch conftest.a
13016 ln conftest.a conftest.b 2>&5 || hard_links=no
13017 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13019$as_echo "$hard_links" >&6; }
13020 if test "$hard_links" = no; then
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13022$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13023 need_locks=warn
13024 fi
13025else
13026 need_locks=no
13027fi
13028
13029
13030
13031
13032
13033
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13035$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13036
13037 runpath_var=
13038 allow_undefined_flag=
13039 always_export_symbols=no
13040 archive_cmds=
13041 archive_expsym_cmds=
13042 compiler_needs_object=no
13043 enable_shared_with_static_runtimes=no
13044 export_dynamic_flag_spec=
13045 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13046 hardcode_automatic=no
13047 hardcode_direct=no
13048 hardcode_direct_absolute=no
13049 hardcode_libdir_flag_spec=
13050 hardcode_libdir_flag_spec_ld=
13051 hardcode_libdir_separator=
13052 hardcode_minus_L=no
13053 hardcode_shlibpath_var=unsupported
13054 inherit_rpath=no
13055 link_all_deplibs=unknown
13056 module_cmds=
13057 module_expsym_cmds=
13058 old_archive_from_new_cmds=
13059 old_archive_from_expsyms_cmds=
13060 thread_safe_flag_spec=
13061 whole_archive_flag_spec=
13062 # include_expsyms should be a list of space-separated symbols to be *always*
13063 # included in the symbol list
13064 include_expsyms=
13065 # exclude_expsyms can be an extended regexp of symbols to exclude
13066 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13067 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13068 # as well as any symbol that contains `d'.
13069 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13070 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13071 # platforms (ab)use it in PIC code, but their linkers get confused if
13072 # the symbol is explicitly referenced. Since portable code cannot
13073 # rely on this symbol name, it's probably fine to never include it in
13074 # preloaded symbol tables.
13075 # Exclude shared library initialization/finalization symbols.
13076 extract_expsyms_cmds=
13077
13078 case $host_os in
13079 cygwin* | mingw* | pw32* | cegcc*)
13080 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13081 # When not using gcc, we currently assume that we are using
13082 # Microsoft Visual C++.
13083 if test "$GCC" != yes; then
13084 with_gnu_ld=no
13085 fi
13086 ;;
13087 interix*)
13088 # we just hope/assume this is gcc and not c89 (= MSVC++)
13089 with_gnu_ld=yes
13090 ;;
13091 openbsd*)
13092 with_gnu_ld=no
13093 ;;
13094 esac
13095
13096 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013097
13098 # On some targets, GNU ld is compatible enough with the native linker
13099 # that we're better off using the native interface for both.
13100 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013101 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013102 case $host_os in
13103 aix*)
13104 # The AIX port of GNU ld has always aspired to compatibility
13105 # with the native linker. However, as the warning in the GNU ld
13106 # block says, versions before 2.19.5* couldn't really create working
13107 # shared libraries, regardless of the interface used.
13108 case `$LD -v 2>&1` in
13109 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13110 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13111 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13112 *)
13113 lt_use_gnu_ld_interface=yes
13114 ;;
13115 esac
13116 ;;
13117 *)
13118 lt_use_gnu_ld_interface=yes
13119 ;;
13120 esac
13121 fi
13122
13123 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000013124 # If archive_cmds runs LD, not CC, wlarc should be empty
13125 wlarc='${wl}'
13126
13127 # Set some defaults for GNU ld with shared library support. These
13128 # are reset later if shared libraries are not supported. Putting them
13129 # here allows them to be overridden if necessary.
13130 runpath_var=LD_RUN_PATH
13131 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13132 export_dynamic_flag_spec='${wl}--export-dynamic'
13133 # ancient GNU ld didn't support --whole-archive et. al.
13134 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13135 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13136 else
13137 whole_archive_flag_spec=
13138 fi
13139 supports_anon_versioning=no
13140 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000013141 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000013142 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13143 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13144 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13145 *\ 2.11.*) ;; # other 2.11 versions
13146 *) supports_anon_versioning=yes ;;
13147 esac
13148
13149 # See if GNU ld supports shared libraries.
13150 case $host_os in
13151 aix[3-9]*)
13152 # On AIX/PPC, the GNU linker is very broken
13153 if test "$host_cpu" != ia64; then
13154 ld_shlibs=no
13155 cat <<_LT_EOF 1>&2
13156
cristy0c60a692010-11-04 01:09:47 +000013157*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000013158*** to be unable to reliably create shared libraries on AIX.
13159*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000013160*** really care for shared libraries, you may want to install binutils
13161*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13162*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000013163
13164_LT_EOF
13165 fi
13166 ;;
13167
13168 amigaos*)
13169 case $host_cpu in
13170 powerpc)
13171 # see comment about AmigaOS4 .so support
13172 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13173 archive_expsym_cmds=''
13174 ;;
13175 m68k)
13176 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)'
13177 hardcode_libdir_flag_spec='-L$libdir'
13178 hardcode_minus_L=yes
13179 ;;
13180 esac
13181 ;;
13182
13183 beos*)
13184 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13185 allow_undefined_flag=unsupported
13186 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13187 # support --undefined. This deserves some investigation. FIXME
13188 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13189 else
13190 ld_shlibs=no
13191 fi
13192 ;;
13193
13194 cygwin* | mingw* | pw32* | cegcc*)
13195 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13196 # as there is no search path for DLLs.
13197 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000013198 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000013199 allow_undefined_flag=unsupported
13200 always_export_symbols=no
13201 enable_shared_with_static_runtimes=yes
13202 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13203
13204 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13205 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13206 # If the export-symbols file already is a .def file (1st line
13207 # is EXPORTS), use it as is; otherwise, prepend...
13208 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13209 cp $export_symbols $output_objdir/$soname.def;
13210 else
13211 echo EXPORTS > $output_objdir/$soname.def;
13212 cat $export_symbols >> $output_objdir/$soname.def;
13213 fi~
13214 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13215 else
13216 ld_shlibs=no
13217 fi
13218 ;;
13219
cristy0c60a692010-11-04 01:09:47 +000013220 haiku*)
13221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13222 link_all_deplibs=yes
13223 ;;
13224
cristy73bd4a52010-10-05 11:24:23 +000013225 interix[3-9]*)
13226 hardcode_direct=no
13227 hardcode_shlibpath_var=no
13228 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13229 export_dynamic_flag_spec='${wl}-E'
13230 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13231 # Instead, shared libraries are loaded at an image base (0x10000000 by
13232 # default) and relocated if they conflict, which is a slow very memory
13233 # consuming and fragmenting process. To avoid this, we pick a random,
13234 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13235 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13236 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13237 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'
13238 ;;
13239
cristy0c60a692010-11-04 01:09:47 +000013240 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013241 tmp_diet=no
13242 if test "$host_os" = linux-dietlibc; then
13243 case $cc_basename in
13244 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13245 esac
13246 fi
13247 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13248 && test "$tmp_diet" = no
13249 then
13250 tmp_addflag=
13251 tmp_sharedflag='-shared'
13252 case $cc_basename,$host_cpu in
13253 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000013254 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'
cristy73bd4a52010-10-05 11:24:23 +000013255 tmp_addflag=' $pic_flag'
13256 ;;
cristy0c60a692010-11-04 01:09:47 +000013257 pgf77* | pgf90* | pgf95* | pgfortran*)
13258 # Portland Group f77 and f90 compilers
13259 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'
cristy73bd4a52010-10-05 11:24:23 +000013260 tmp_addflag=' $pic_flag -Mnomain' ;;
13261 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13262 tmp_addflag=' -i_dynamic' ;;
13263 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13264 tmp_addflag=' -i_dynamic -nofor_main' ;;
13265 ifc* | ifort*) # Intel Fortran compiler
13266 tmp_addflag=' -nofor_main' ;;
13267 lf95*) # Lahey Fortran 8.1
13268 whole_archive_flag_spec=
13269 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000013270 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000013271 tmp_sharedflag='-qmkshrobj'
13272 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000013273 nvcc*) # Cuda Compiler Driver 2.2
13274 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'
13275 compiler_needs_object=yes
13276 ;;
cristy73bd4a52010-10-05 11:24:23 +000013277 esac
13278 case `$CC -V 2>&1 | sed 5q` in
13279 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000013280 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'
cristy73bd4a52010-10-05 11:24:23 +000013281 compiler_needs_object=yes
13282 tmp_sharedflag='-G' ;;
13283 *Sun\ F*) # Sun Fortran 8.3
13284 tmp_sharedflag='-G' ;;
13285 esac
13286 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13287
13288 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~
13292 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13293 fi
13294
13295 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013296 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000013297 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13298 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13299 hardcode_libdir_flag_spec=
13300 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy0c60a692010-11-04 01:09:47 +000013301 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013302 if test "x$supports_anon_versioning" = xyes; then
13303 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13304 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13305 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000013306 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013307 fi
13308 ;;
13309 esac
13310 else
13311 ld_shlibs=no
13312 fi
13313 ;;
13314
13315 netbsd*)
13316 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13317 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13318 wlarc=
13319 else
13320 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13321 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13322 fi
13323 ;;
13324
13325 solaris*)
13326 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13327 ld_shlibs=no
13328 cat <<_LT_EOF 1>&2
13329
13330*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13331*** create shared libraries on Solaris systems. Therefore, libtool
13332*** is disabling shared libraries support. We urge you to upgrade GNU
13333*** binutils to release 2.9.1 or newer. Another option is to modify
13334*** your PATH or compiler configuration so that the native linker is
13335*** used, and then restart.
13336
13337_LT_EOF
13338 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13340 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13341 else
13342 ld_shlibs=no
13343 fi
13344 ;;
13345
13346 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13347 case `$LD -v 2>&1` in
13348 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13349 ld_shlibs=no
13350 cat <<_LT_EOF 1>&2
13351
13352*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13353*** reliably create shared libraries on SCO systems. Therefore, libtool
13354*** is disabling shared libraries support. We urge you to upgrade GNU
13355*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13356*** your PATH or compiler configuration so that the native linker is
13357*** used, and then restart.
13358
13359_LT_EOF
13360 ;;
13361 *)
13362 # For security reasons, it is highly recommended that you always
13363 # use absolute paths for naming shared libraries, and exclude the
13364 # DT_RUNPATH tag from executables and libraries. But doing so
13365 # requires that you compile everything twice, which is a pain.
13366 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13367 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13368 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13369 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13370 else
13371 ld_shlibs=no
13372 fi
13373 ;;
13374 esac
13375 ;;
13376
13377 sunos4*)
13378 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13379 wlarc=
13380 hardcode_direct=yes
13381 hardcode_shlibpath_var=no
13382 ;;
13383
13384 *)
13385 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13386 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13387 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13388 else
13389 ld_shlibs=no
13390 fi
13391 ;;
13392 esac
13393
13394 if test "$ld_shlibs" = no; then
13395 runpath_var=
13396 hardcode_libdir_flag_spec=
13397 export_dynamic_flag_spec=
13398 whole_archive_flag_spec=
13399 fi
13400 else
13401 # PORTME fill in a description of your system's linker (not GNU ld)
13402 case $host_os in
13403 aix3*)
13404 allow_undefined_flag=unsupported
13405 always_export_symbols=yes
13406 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'
13407 # Note: this linker hardcodes the directories in LIBPATH if there
13408 # are no directories specified by -L.
13409 hardcode_minus_L=yes
13410 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13411 # Neither direct hardcoding nor static linking is supported with a
13412 # broken collect2.
13413 hardcode_direct=unsupported
13414 fi
13415 ;;
13416
13417 aix[4-9]*)
13418 if test "$host_cpu" = ia64; then
13419 # On IA64, the linker does run time linking by default, so we don't
13420 # have to do anything special.
13421 aix_use_runtimelinking=no
13422 exp_sym_flag='-Bexport'
13423 no_entry_flag=""
13424 else
13425 # If we're using GNU nm, then we don't want the "-C" option.
13426 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000013427 # Also, AIX nm treats weak defined symbols like other global
13428 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000013429 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000013430 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'
cristy73bd4a52010-10-05 11:24:23 +000013431 else
13432 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'
13433 fi
13434 aix_use_runtimelinking=no
13435
13436 # Test if we are trying to use run time linking or normal
13437 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13438 # need to do runtime linking.
13439 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13440 for ld_flag in $LDFLAGS; do
13441 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13442 aix_use_runtimelinking=yes
13443 break
13444 fi
13445 done
13446 ;;
13447 esac
13448
13449 exp_sym_flag='-bexport'
13450 no_entry_flag='-bnoentry'
13451 fi
13452
13453 # When large executables or shared objects are built, AIX ld can
13454 # have problems creating the table of contents. If linking a library
13455 # or program results in "error TOC overflow" add -mminimal-toc to
13456 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13457 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13458
13459 archive_cmds=''
13460 hardcode_direct=yes
13461 hardcode_direct_absolute=yes
13462 hardcode_libdir_separator=':'
13463 link_all_deplibs=yes
13464 file_list_spec='${wl}-f,'
13465
13466 if test "$GCC" = yes; then
13467 case $host_os in aix4.[012]|aix4.[012].*)
13468 # We only want to do this on AIX 4.2 and lower, the check
13469 # below for broken collect2 doesn't work under 4.3+
13470 collect2name=`${CC} -print-prog-name=collect2`
13471 if test -f "$collect2name" &&
13472 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13473 then
13474 # We have reworked collect2
13475 :
13476 else
13477 # We have old collect2
13478 hardcode_direct=unsupported
13479 # It fails to find uninstalled libraries when the uninstalled
13480 # path is not listed in the libpath. Setting hardcode_minus_L
13481 # to unsupported forces relinking
13482 hardcode_minus_L=yes
13483 hardcode_libdir_flag_spec='-L$libdir'
13484 hardcode_libdir_separator=
13485 fi
13486 ;;
13487 esac
13488 shared_flag='-shared'
13489 if test "$aix_use_runtimelinking" = yes; then
13490 shared_flag="$shared_flag "'${wl}-G'
13491 fi
13492 else
13493 # not using gcc
13494 if test "$host_cpu" = ia64; then
13495 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13496 # chokes on -Wl,-G. The following line is correct:
13497 shared_flag='-G'
13498 else
13499 if test "$aix_use_runtimelinking" = yes; then
13500 shared_flag='${wl}-G'
13501 else
13502 shared_flag='${wl}-bM:SRE'
13503 fi
13504 fi
13505 fi
13506
13507 export_dynamic_flag_spec='${wl}-bexpall'
13508 # It seems that -bexpall does not export symbols beginning with
13509 # underscore (_), so it is better to generate a list of symbols to export.
13510 always_export_symbols=yes
13511 if test "$aix_use_runtimelinking" = yes; then
13512 # Warning - without using the other runtime loading flags (-brtl),
13513 # -berok will link without error, but may produce a broken library.
13514 allow_undefined_flag='-berok'
13515 # Determine the default libpath from the value encoded in an
13516 # empty executable.
13517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13518/* end confdefs.h. */
13519
13520int
13521main ()
13522{
13523
13524 ;
13525 return 0;
13526}
13527_ACEOF
13528if ac_fn_c_try_link "$LINENO"; then :
13529
13530lt_aix_libpath_sed='
13531 /Import File Strings/,/^$/ {
13532 /^0/ {
13533 s/^0 *\(.*\)$/\1/
13534 p
13535 }
13536 }'
13537aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13538# Check for a 64-bit object if we didn't find anything.
13539if test -z "$aix_libpath"; then
13540 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13541fi
13542fi
13543rm -f core conftest.err conftest.$ac_objext \
13544 conftest$ac_exeext conftest.$ac_ext
13545if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13546
13547 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000013548 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"
cristy73bd4a52010-10-05 11:24:23 +000013549 else
13550 if test "$host_cpu" = ia64; then
13551 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13552 allow_undefined_flag="-z nodefs"
13553 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"
13554 else
13555 # Determine the default libpath from the value encoded in an
13556 # empty executable.
13557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13558/* end confdefs.h. */
13559
13560int
13561main ()
13562{
13563
13564 ;
13565 return 0;
13566}
13567_ACEOF
13568if ac_fn_c_try_link "$LINENO"; then :
13569
13570lt_aix_libpath_sed='
13571 /Import File Strings/,/^$/ {
13572 /^0/ {
13573 s/^0 *\(.*\)$/\1/
13574 p
13575 }
13576 }'
13577aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13578# Check for a 64-bit object if we didn't find anything.
13579if test -z "$aix_libpath"; then
13580 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13581fi
13582fi
13583rm -f core conftest.err conftest.$ac_objext \
13584 conftest$ac_exeext conftest.$ac_ext
13585if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13586
13587 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13588 # Warning - without using the other run time loading flags,
13589 # -berok will link without error, but may produce a broken library.
13590 no_undefined_flag=' ${wl}-bernotok'
13591 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000013592 if test "$with_gnu_ld" = yes; then
13593 # We only use this code for GNU lds that support --whole-archive.
13594 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13595 else
13596 # Exported symbols can be pulled into shared objects from archives
13597 whole_archive_flag_spec='$convenience'
13598 fi
cristy73bd4a52010-10-05 11:24:23 +000013599 archive_cmds_need_lc=yes
13600 # This is similar to how AIX traditionally builds its shared libraries.
13601 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'
13602 fi
13603 fi
13604 ;;
13605
13606 amigaos*)
13607 case $host_cpu in
13608 powerpc)
13609 # see comment about AmigaOS4 .so support
13610 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13611 archive_expsym_cmds=''
13612 ;;
13613 m68k)
13614 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)'
13615 hardcode_libdir_flag_spec='-L$libdir'
13616 hardcode_minus_L=yes
13617 ;;
13618 esac
13619 ;;
13620
13621 bsdi[45]*)
13622 export_dynamic_flag_spec=-rdynamic
13623 ;;
13624
13625 cygwin* | mingw* | pw32* | cegcc*)
13626 # When not using gcc, we currently assume that we are using
13627 # Microsoft Visual C++.
13628 # hardcode_libdir_flag_spec is actually meaningless, as there is
13629 # no search path for DLLs.
13630 hardcode_libdir_flag_spec=' '
13631 allow_undefined_flag=unsupported
13632 # Tell ltmain to make .lib files, not .a files.
13633 libext=lib
13634 # Tell ltmain to make .dll files, not .so files.
13635 shrext_cmds=".dll"
13636 # FIXME: Setting linknames here is a bad hack.
cristy0c60a692010-11-04 01:09:47 +000013637 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
cristy73bd4a52010-10-05 11:24:23 +000013638 # The linker will automatically build a .lib file if we build a DLL.
13639 old_archive_from_new_cmds='true'
13640 # FIXME: Should let the user specify the lib program.
13641 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13642 fix_srcfile_path='`cygpath -w "$srcfile"`'
13643 enable_shared_with_static_runtimes=yes
13644 ;;
13645
13646 darwin* | rhapsody*)
13647
13648
13649 archive_cmds_need_lc=no
13650 hardcode_direct=no
13651 hardcode_automatic=yes
13652 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000013653 if test "$lt_cv_ld_force_load" = "yes"; then
13654 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\"`'
13655 else
13656 whole_archive_flag_spec=''
13657 fi
cristy73bd4a52010-10-05 11:24:23 +000013658 link_all_deplibs=yes
13659 allow_undefined_flag="$_lt_dar_allow_undefined"
13660 case $cc_basename in
13661 ifort*) _lt_dar_can_shared=yes ;;
13662 *) _lt_dar_can_shared=$GCC ;;
13663 esac
13664 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000013665 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000013666 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13667 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13668 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}"
13669 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}"
13670
13671 else
13672 ld_shlibs=no
13673 fi
13674
13675 ;;
13676
13677 dgux*)
13678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13679 hardcode_libdir_flag_spec='-L$libdir'
13680 hardcode_shlibpath_var=no
13681 ;;
13682
13683 freebsd1*)
13684 ld_shlibs=no
13685 ;;
13686
13687 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13688 # support. Future versions do this automatically, but an explicit c++rt0.o
13689 # does not break anything, and helps significantly (at the cost of a little
13690 # extra space).
13691 freebsd2.2*)
13692 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13693 hardcode_libdir_flag_spec='-R$libdir'
13694 hardcode_direct=yes
13695 hardcode_shlibpath_var=no
13696 ;;
13697
13698 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13699 freebsd2*)
13700 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13701 hardcode_direct=yes
13702 hardcode_minus_L=yes
13703 hardcode_shlibpath_var=no
13704 ;;
13705
13706 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13707 freebsd* | dragonfly*)
13708 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13709 hardcode_libdir_flag_spec='-R$libdir'
13710 hardcode_direct=yes
13711 hardcode_shlibpath_var=no
13712 ;;
13713
13714 hpux9*)
13715 if test "$GCC" = yes; then
13716 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'
13717 else
13718 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'
13719 fi
13720 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13721 hardcode_libdir_separator=:
13722 hardcode_direct=yes
13723
13724 # hardcode_minus_L: Not really in the search PATH,
13725 # but as the default location of the library.
13726 hardcode_minus_L=yes
13727 export_dynamic_flag_spec='${wl}-E'
13728 ;;
13729
13730 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000013731 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000013732 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13733 else
13734 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13735 fi
13736 if test "$with_gnu_ld" = no; then
13737 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13738 hardcode_libdir_flag_spec_ld='+b $libdir'
13739 hardcode_libdir_separator=:
13740 hardcode_direct=yes
13741 hardcode_direct_absolute=yes
13742 export_dynamic_flag_spec='${wl}-E'
13743 # hardcode_minus_L: Not really in the search PATH,
13744 # but as the default location of the library.
13745 hardcode_minus_L=yes
13746 fi
13747 ;;
13748
13749 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000013750 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000013751 case $host_cpu in
13752 hppa*64*)
13753 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13754 ;;
13755 ia64*)
13756 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13757 ;;
13758 *)
13759 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13760 ;;
13761 esac
13762 else
13763 case $host_cpu in
13764 hppa*64*)
13765 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13766 ;;
13767 ia64*)
13768 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13769 ;;
13770 *)
cristy0c60a692010-11-04 01:09:47 +000013771
13772 # Older versions of the 11.00 compiler do not understand -b yet
13773 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13775$as_echo_n "checking if $CC understands -b... " >&6; }
13776if test "${lt_cv_prog_compiler__b+set}" = set; then :
13777 $as_echo_n "(cached) " >&6
13778else
13779 lt_cv_prog_compiler__b=no
13780 save_LDFLAGS="$LDFLAGS"
13781 LDFLAGS="$LDFLAGS -b"
13782 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13783 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13784 # The linker can only warn and ignore the option if not recognized
13785 # So say no if there are warnings
13786 if test -s conftest.err; then
13787 # Append any errors to the config.log.
13788 cat conftest.err 1>&5
13789 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13790 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13791 if diff conftest.exp conftest.er2 >/dev/null; then
13792 lt_cv_prog_compiler__b=yes
13793 fi
13794 else
13795 lt_cv_prog_compiler__b=yes
13796 fi
13797 fi
13798 $RM -r conftest*
13799 LDFLAGS="$save_LDFLAGS"
13800
13801fi
13802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13803$as_echo "$lt_cv_prog_compiler__b" >&6; }
13804
13805if test x"$lt_cv_prog_compiler__b" = xyes; then
13806 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13807else
13808 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13809fi
13810
cristy73bd4a52010-10-05 11:24:23 +000013811 ;;
13812 esac
13813 fi
13814 if test "$with_gnu_ld" = no; then
13815 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13816 hardcode_libdir_separator=:
13817
13818 case $host_cpu in
13819 hppa*64*|ia64*)
13820 hardcode_direct=no
13821 hardcode_shlibpath_var=no
13822 ;;
13823 *)
13824 hardcode_direct=yes
13825 hardcode_direct_absolute=yes
13826 export_dynamic_flag_spec='${wl}-E'
13827
13828 # hardcode_minus_L: Not really in the search PATH,
13829 # but as the default location of the library.
13830 hardcode_minus_L=yes
13831 ;;
13832 esac
13833 fi
13834 ;;
13835
13836 irix5* | irix6* | nonstopux*)
13837 if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013838 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'
cristy73bd4a52010-10-05 11:24:23 +000013839 # Try to use the -exported_symbol ld option, if it does not
13840 # work, assume that -exports_file does not work either and
13841 # implicitly export all symbols.
13842 save_LDFLAGS="$LDFLAGS"
13843 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13845/* end confdefs.h. */
13846int foo(void) {}
13847_ACEOF
13848if ac_fn_c_try_link "$LINENO"; then :
cristy0c60a692010-11-04 01:09:47 +000013849 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'
cristy73bd4a52010-10-05 11:24:23 +000013850
13851fi
13852rm -f core conftest.err conftest.$ac_objext \
13853 conftest$ac_exeext conftest.$ac_ext
13854 LDFLAGS="$save_LDFLAGS"
13855 else
cristy0c60a692010-11-04 01:09:47 +000013856 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'
13857 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'
cristy73bd4a52010-10-05 11:24:23 +000013858 fi
13859 archive_cmds_need_lc='no'
13860 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13861 hardcode_libdir_separator=:
13862 inherit_rpath=yes
13863 link_all_deplibs=yes
13864 ;;
13865
13866 netbsd*)
13867 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13868 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13869 else
13870 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13871 fi
13872 hardcode_libdir_flag_spec='-R$libdir'
13873 hardcode_direct=yes
13874 hardcode_shlibpath_var=no
13875 ;;
13876
13877 newsos6)
13878 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13879 hardcode_direct=yes
13880 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13881 hardcode_libdir_separator=:
13882 hardcode_shlibpath_var=no
13883 ;;
13884
13885 *nto* | *qnx*)
13886 ;;
13887
13888 openbsd*)
13889 if test -f /usr/libexec/ld.so; then
13890 hardcode_direct=yes
13891 hardcode_shlibpath_var=no
13892 hardcode_direct_absolute=yes
13893 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13894 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13895 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13896 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13897 export_dynamic_flag_spec='${wl}-E'
13898 else
13899 case $host_os in
13900 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13901 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13902 hardcode_libdir_flag_spec='-R$libdir'
13903 ;;
13904 *)
13905 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13906 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13907 ;;
13908 esac
13909 fi
13910 else
13911 ld_shlibs=no
13912 fi
13913 ;;
13914
13915 os2*)
13916 hardcode_libdir_flag_spec='-L$libdir'
13917 hardcode_minus_L=yes
13918 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000013919 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'
cristy73bd4a52010-10-05 11:24:23 +000013920 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13921 ;;
13922
13923 osf3*)
13924 if test "$GCC" = yes; then
13925 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000013926 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'
cristy73bd4a52010-10-05 11:24:23 +000013927 else
13928 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000013929 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'
cristy73bd4a52010-10-05 11:24:23 +000013930 fi
13931 archive_cmds_need_lc='no'
13932 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13933 hardcode_libdir_separator=:
13934 ;;
13935
13936 osf4* | osf5*) # as osf3* with the addition of -msym flag
13937 if test "$GCC" = yes; then
13938 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000013939 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'
cristy73bd4a52010-10-05 11:24:23 +000013940 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13941 else
13942 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000013943 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'
cristy73bd4a52010-10-05 11:24:23 +000013944 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~
cristy0c60a692010-11-04 01:09:47 +000013945 $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'
cristy73bd4a52010-10-05 11:24:23 +000013946
13947 # Both c and cxx compiler support -rpath directly
13948 hardcode_libdir_flag_spec='-rpath $libdir'
13949 fi
13950 archive_cmds_need_lc='no'
13951 hardcode_libdir_separator=:
13952 ;;
13953
13954 solaris*)
13955 no_undefined_flag=' -z defs'
13956 if test "$GCC" = yes; then
13957 wlarc='${wl}'
13958 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13959 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13960 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13961 else
13962 case `$CC -V 2>&1` in
13963 *"Compilers 5.0"*)
13964 wlarc=''
13965 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13966 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13967 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13968 ;;
13969 *)
13970 wlarc='${wl}'
13971 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13972 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13973 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13974 ;;
13975 esac
13976 fi
13977 hardcode_libdir_flag_spec='-R$libdir'
13978 hardcode_shlibpath_var=no
13979 case $host_os in
13980 solaris2.[0-5] | solaris2.[0-5].*) ;;
13981 *)
13982 # The compiler driver will combine and reorder linker options,
13983 # but understands `-z linker_flag'. GCC discards it without `$wl',
13984 # but is careful enough not to reorder.
13985 # Supported since Solaris 2.6 (maybe 2.5.1?)
13986 if test "$GCC" = yes; then
13987 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13988 else
13989 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13990 fi
13991 ;;
13992 esac
13993 link_all_deplibs=yes
13994 ;;
13995
13996 sunos4*)
13997 if test "x$host_vendor" = xsequent; then
13998 # Use $CC to link under sequent, because it throws in some extra .o
13999 # files that make .init and .fini sections work.
14000 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14001 else
14002 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14003 fi
14004 hardcode_libdir_flag_spec='-L$libdir'
14005 hardcode_direct=yes
14006 hardcode_minus_L=yes
14007 hardcode_shlibpath_var=no
14008 ;;
14009
14010 sysv4)
14011 case $host_vendor in
14012 sni)
14013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14014 hardcode_direct=yes # is this really true???
14015 ;;
14016 siemens)
14017 ## LD is ld it makes a PLAMLIB
14018 ## CC just makes a GrossModule.
14019 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14020 reload_cmds='$CC -r -o $output$reload_objs'
14021 hardcode_direct=no
14022 ;;
14023 motorola)
14024 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14025 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14026 ;;
14027 esac
14028 runpath_var='LD_RUN_PATH'
14029 hardcode_shlibpath_var=no
14030 ;;
14031
14032 sysv4.3*)
14033 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14034 hardcode_shlibpath_var=no
14035 export_dynamic_flag_spec='-Bexport'
14036 ;;
14037
14038 sysv4*MP*)
14039 if test -d /usr/nec; then
14040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14041 hardcode_shlibpath_var=no
14042 runpath_var=LD_RUN_PATH
14043 hardcode_runpath_var=yes
14044 ld_shlibs=yes
14045 fi
14046 ;;
14047
14048 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14049 no_undefined_flag='${wl}-z,text'
14050 archive_cmds_need_lc=no
14051 hardcode_shlibpath_var=no
14052 runpath_var='LD_RUN_PATH'
14053
14054 if test "$GCC" = yes; then
14055 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14056 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14057 else
14058 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14059 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14060 fi
14061 ;;
14062
14063 sysv5* | sco3.2v5* | sco5v6*)
14064 # Note: We can NOT use -z defs as we might desire, because we do not
14065 # link with -lc, and that would cause any symbols used from libc to
14066 # always be unresolved, which means just about no library would
14067 # ever link correctly. If we're not using GNU ld we use -z text
14068 # though, which does catch some bad symbols but isn't as heavy-handed
14069 # as -z defs.
14070 no_undefined_flag='${wl}-z,text'
14071 allow_undefined_flag='${wl}-z,nodefs'
14072 archive_cmds_need_lc=no
14073 hardcode_shlibpath_var=no
14074 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14075 hardcode_libdir_separator=':'
14076 link_all_deplibs=yes
14077 export_dynamic_flag_spec='${wl}-Bexport'
14078 runpath_var='LD_RUN_PATH'
14079
14080 if test "$GCC" = yes; then
14081 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14082 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14083 else
14084 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14085 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14086 fi
14087 ;;
14088
14089 uts4*)
14090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14091 hardcode_libdir_flag_spec='-L$libdir'
14092 hardcode_shlibpath_var=no
14093 ;;
14094
14095 *)
14096 ld_shlibs=no
14097 ;;
14098 esac
14099
14100 if test x$host_vendor = xsni; then
14101 case $host in
14102 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14103 export_dynamic_flag_spec='${wl}-Blargedynsym'
14104 ;;
14105 esac
14106 fi
14107 fi
14108
14109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14110$as_echo "$ld_shlibs" >&6; }
14111test "$ld_shlibs" = no && can_build_shared=no
14112
14113with_gnu_ld=$with_gnu_ld
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129#
14130# Do we need to explicitly link libc?
14131#
14132case "x$archive_cmds_need_lc" in
14133x|xyes)
14134 # Assume -lc should be added
14135 archive_cmds_need_lc=yes
14136
14137 if test "$enable_shared" = yes && test "$GCC" = yes; then
14138 case $archive_cmds in
14139 *'~'*)
14140 # FIXME: we may have to deal with multi-command sequences.
14141 ;;
14142 '$CC '*)
14143 # Test whether the compiler implicitly links with -lc since on some
14144 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14145 # to ld, don't add -lc before -lgcc.
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14147$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy0c60a692010-11-04 01:09:47 +000014148if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
14149 $as_echo_n "(cached) " >&6
14150else
14151 $RM conftest*
14152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014153
cristy0c60a692010-11-04 01:09:47 +000014154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000014155 (eval $ac_compile) 2>&5
14156 ac_status=$?
14157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14158 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000014159 soname=conftest
14160 lib=conftest
14161 libobjs=conftest.$ac_objext
14162 deplibs=
14163 wl=$lt_prog_compiler_wl
14164 pic_flag=$lt_prog_compiler_pic
14165 compiler_flags=-v
14166 linker_flags=-v
14167 verstring=
14168 output_objdir=.
14169 libname=conftest
14170 lt_save_allow_undefined_flag=$allow_undefined_flag
14171 allow_undefined_flag=
14172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000014173 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14174 ac_status=$?
14175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14176 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000014177 then
14178 lt_cv_archive_cmds_need_lc=no
14179 else
14180 lt_cv_archive_cmds_need_lc=yes
14181 fi
14182 allow_undefined_flag=$lt_save_allow_undefined_flag
14183 else
14184 cat conftest.err 1>&5
14185 fi
14186 $RM conftest*
14187
14188fi
14189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14190$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14191 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000014192 ;;
14193 esac
14194 fi
14195 ;;
14196esac
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14355$as_echo_n "checking dynamic linker characteristics... " >&6; }
14356
14357if test "$GCC" = yes; then
14358 case $host_os in
14359 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14360 *) lt_awk_arg="/^libraries:/" ;;
14361 esac
cristy0c60a692010-11-04 01:09:47 +000014362 case $host_os in
14363 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14364 *) lt_sed_strip_eq="s,=/,/,g" ;;
14365 esac
14366 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14367 case $lt_search_path_spec in
14368 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000014369 # if the path contains ";" then we assume it to be the separator
14370 # otherwise default to the standard path separator (i.e. ":") - it is
14371 # assumed that no part of a normal pathname contains ";" but that should
14372 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000014373 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14374 ;;
14375 *)
14376 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14377 ;;
14378 esac
cristy73bd4a52010-10-05 11:24:23 +000014379 # Ok, now we have the path, separated by spaces, we can step through it
14380 # and add multilib dir if necessary.
14381 lt_tmp_lt_search_path_spec=
14382 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14383 for lt_sys_path in $lt_search_path_spec; do
14384 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14385 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14386 else
14387 test -d "$lt_sys_path" && \
14388 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14389 fi
14390 done
cristy0c60a692010-11-04 01:09:47 +000014391 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000014392BEGIN {RS=" "; FS="/|\n";} {
14393 lt_foo="";
14394 lt_count=0;
14395 for (lt_i = NF; lt_i > 0; lt_i--) {
14396 if ($lt_i != "" && $lt_i != ".") {
14397 if ($lt_i == "..") {
14398 lt_count++;
14399 } else {
14400 if (lt_count == 0) {
14401 lt_foo="/" $lt_i lt_foo;
14402 } else {
14403 lt_count--;
14404 }
14405 }
14406 }
14407 }
14408 if (lt_foo != "") { lt_freq[lt_foo]++; }
14409 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14410}'`
cristy0c60a692010-11-04 01:09:47 +000014411 # AWK program above erroneously prepends '/' to C:/dos/paths
14412 # for these hosts.
14413 case $host_os in
14414 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14415 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14416 esac
14417 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000014418else
14419 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14420fi
14421library_names_spec=
14422libname_spec='lib$name'
14423soname_spec=
14424shrext_cmds=".so"
14425postinstall_cmds=
14426postuninstall_cmds=
14427finish_cmds=
14428finish_eval=
14429shlibpath_var=
14430shlibpath_overrides_runpath=unknown
14431version_type=none
14432dynamic_linker="$host_os ld.so"
14433sys_lib_dlsearch_path_spec="/lib /usr/lib"
14434need_lib_prefix=unknown
14435hardcode_into_libs=no
14436
14437# when you set need_version to no, make sure it does not cause -set_version
14438# flags to be left without arguments
14439need_version=unknown
14440
14441case $host_os in
14442aix3*)
14443 version_type=linux
14444 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14445 shlibpath_var=LIBPATH
14446
14447 # AIX 3 has no versioning support, so we append a major version to the name.
14448 soname_spec='${libname}${release}${shared_ext}$major'
14449 ;;
14450
14451aix[4-9]*)
14452 version_type=linux
14453 need_lib_prefix=no
14454 need_version=no
14455 hardcode_into_libs=yes
14456 if test "$host_cpu" = ia64; then
14457 # AIX 5 supports IA64
14458 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14459 shlibpath_var=LD_LIBRARY_PATH
14460 else
14461 # With GCC up to 2.95.x, collect2 would create an import file
14462 # for dependence libraries. The import file would start with
14463 # the line `#! .'. This would cause the generated library to
14464 # depend on `.', always an invalid library. This was fixed in
14465 # development snapshots of GCC prior to 3.0.
14466 case $host_os in
14467 aix4 | aix4.[01] | aix4.[01].*)
14468 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14469 echo ' yes '
14470 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14471 :
14472 else
14473 can_build_shared=no
14474 fi
14475 ;;
14476 esac
14477 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14478 # soname into executable. Probably we can add versioning support to
14479 # collect2, so additional links can be useful in future.
14480 if test "$aix_use_runtimelinking" = yes; then
14481 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14482 # instead of lib<name>.a to let people know that these are not
14483 # typical AIX shared libraries.
14484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14485 else
14486 # We preserve .a as extension for shared libraries through AIX4.2
14487 # and later when we are not doing run time linking.
14488 library_names_spec='${libname}${release}.a $libname.a'
14489 soname_spec='${libname}${release}${shared_ext}$major'
14490 fi
14491 shlibpath_var=LIBPATH
14492 fi
14493 ;;
14494
14495amigaos*)
14496 case $host_cpu in
14497 powerpc)
14498 # Since July 2007 AmigaOS4 officially supports .so libraries.
14499 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14501 ;;
14502 m68k)
14503 library_names_spec='$libname.ixlibrary $libname.a'
14504 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000014505 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'
cristy73bd4a52010-10-05 11:24:23 +000014506 ;;
14507 esac
14508 ;;
14509
14510beos*)
14511 library_names_spec='${libname}${shared_ext}'
14512 dynamic_linker="$host_os ld.so"
14513 shlibpath_var=LIBRARY_PATH
14514 ;;
14515
14516bsdi[45]*)
14517 version_type=linux
14518 need_version=no
14519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14520 soname_spec='${libname}${release}${shared_ext}$major'
14521 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14522 shlibpath_var=LD_LIBRARY_PATH
14523 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14524 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14525 # the default ld.so.conf also contains /usr/contrib/lib and
14526 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14527 # libtool to hard-code these into programs
14528 ;;
14529
14530cygwin* | mingw* | pw32* | cegcc*)
14531 version_type=windows
14532 shrext_cmds=".dll"
14533 need_version=no
14534 need_lib_prefix=no
14535
14536 case $GCC,$host_os in
14537 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14538 library_names_spec='$libname.dll.a'
14539 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14540 postinstall_cmds='base_file=`basename \${file}`~
14541 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14542 dldir=$destdir/`dirname \$dlpath`~
14543 test -d \$dldir || mkdir -p \$dldir~
14544 $install_prog $dir/$dlname \$dldir/$dlname~
14545 chmod a+x \$dldir/$dlname~
14546 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14547 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14548 fi'
14549 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14550 dlpath=$dir/\$dldll~
14551 $RM \$dlpath'
14552 shlibpath_overrides_runpath=yes
14553
14554 case $host_os in
14555 cygwin*)
14556 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14557 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000014558
14559 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000014560 ;;
14561 mingw* | cegcc*)
14562 # MinGW DLLs use traditional 'lib' prefix
14563 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000014564 ;;
14565 pw32*)
14566 # pw32 DLLs use 'pw' prefix rather than 'lib'
14567 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14568 ;;
14569 esac
14570 ;;
14571
14572 *)
14573 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14574 ;;
14575 esac
14576 dynamic_linker='Win32 ld.exe'
14577 # FIXME: first we should search . and the directory the executable is in
14578 shlibpath_var=PATH
14579 ;;
14580
14581darwin* | rhapsody*)
14582 dynamic_linker="$host_os dyld"
14583 version_type=darwin
14584 need_lib_prefix=no
14585 need_version=no
14586 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14587 soname_spec='${libname}${release}${major}$shared_ext'
14588 shlibpath_overrides_runpath=yes
14589 shlibpath_var=DYLD_LIBRARY_PATH
14590 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14591
14592 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14593 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14594 ;;
14595
14596dgux*)
14597 version_type=linux
14598 need_lib_prefix=no
14599 need_version=no
14600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14601 soname_spec='${libname}${release}${shared_ext}$major'
14602 shlibpath_var=LD_LIBRARY_PATH
14603 ;;
14604
14605freebsd1*)
14606 dynamic_linker=no
14607 ;;
14608
14609freebsd* | dragonfly*)
14610 # DragonFly does not have aout. When/if they implement a new
14611 # versioning mechanism, adjust this.
14612 if test -x /usr/bin/objformat; then
14613 objformat=`/usr/bin/objformat`
14614 else
14615 case $host_os in
14616 freebsd[123]*) objformat=aout ;;
14617 *) objformat=elf ;;
14618 esac
14619 fi
14620 version_type=freebsd-$objformat
14621 case $version_type in
14622 freebsd-elf*)
14623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14624 need_version=no
14625 need_lib_prefix=no
14626 ;;
14627 freebsd-*)
14628 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14629 need_version=yes
14630 ;;
14631 esac
14632 shlibpath_var=LD_LIBRARY_PATH
14633 case $host_os in
14634 freebsd2*)
14635 shlibpath_overrides_runpath=yes
14636 ;;
14637 freebsd3.[01]* | freebsdelf3.[01]*)
14638 shlibpath_overrides_runpath=yes
14639 hardcode_into_libs=yes
14640 ;;
14641 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14642 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14643 shlibpath_overrides_runpath=no
14644 hardcode_into_libs=yes
14645 ;;
14646 *) # from 4.6 on, and DragonFly
14647 shlibpath_overrides_runpath=yes
14648 hardcode_into_libs=yes
14649 ;;
14650 esac
14651 ;;
14652
14653gnu*)
14654 version_type=linux
14655 need_lib_prefix=no
14656 need_version=no
14657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14658 soname_spec='${libname}${release}${shared_ext}$major'
14659 shlibpath_var=LD_LIBRARY_PATH
14660 hardcode_into_libs=yes
14661 ;;
14662
cristy0c60a692010-11-04 01:09:47 +000014663haiku*)
14664 version_type=linux
14665 need_lib_prefix=no
14666 need_version=no
14667 dynamic_linker="$host_os runtime_loader"
14668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14669 soname_spec='${libname}${release}${shared_ext}$major'
14670 shlibpath_var=LIBRARY_PATH
14671 shlibpath_overrides_runpath=yes
14672 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14673 hardcode_into_libs=yes
14674 ;;
14675
cristy73bd4a52010-10-05 11:24:23 +000014676hpux9* | hpux10* | hpux11*)
14677 # Give a soname corresponding to the major version so that dld.sl refuses to
14678 # link against other versions.
14679 version_type=sunos
14680 need_lib_prefix=no
14681 need_version=no
14682 case $host_cpu in
14683 ia64*)
14684 shrext_cmds='.so'
14685 hardcode_into_libs=yes
14686 dynamic_linker="$host_os dld.so"
14687 shlibpath_var=LD_LIBRARY_PATH
14688 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14690 soname_spec='${libname}${release}${shared_ext}$major'
14691 if test "X$HPUX_IA64_MODE" = X32; then
14692 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14693 else
14694 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14695 fi
14696 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14697 ;;
14698 hppa*64*)
14699 shrext_cmds='.sl'
14700 hardcode_into_libs=yes
14701 dynamic_linker="$host_os dld.sl"
14702 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14703 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14705 soname_spec='${libname}${release}${shared_ext}$major'
14706 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14707 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14708 ;;
14709 *)
14710 shrext_cmds='.sl'
14711 dynamic_linker="$host_os dld.sl"
14712 shlibpath_var=SHLIB_PATH
14713 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
14717 esac
cristy0c60a692010-11-04 01:09:47 +000014718 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000014719 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000014720 # or fails outright, so override atomically:
14721 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000014722 ;;
14723
14724interix[3-9]*)
14725 version_type=linux
14726 need_lib_prefix=no
14727 need_version=no
14728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14729 soname_spec='${libname}${release}${shared_ext}$major'
14730 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14731 shlibpath_var=LD_LIBRARY_PATH
14732 shlibpath_overrides_runpath=no
14733 hardcode_into_libs=yes
14734 ;;
14735
14736irix5* | irix6* | nonstopux*)
14737 case $host_os in
14738 nonstopux*) version_type=nonstopux ;;
14739 *)
14740 if test "$lt_cv_prog_gnu_ld" = yes; then
14741 version_type=linux
14742 else
14743 version_type=irix
14744 fi ;;
14745 esac
14746 need_lib_prefix=no
14747 need_version=no
14748 soname_spec='${libname}${release}${shared_ext}$major'
14749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14750 case $host_os in
14751 irix5* | nonstopux*)
14752 libsuff= shlibsuff=
14753 ;;
14754 *)
14755 case $LD in # libtool.m4 will add one of these switches to LD
14756 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14757 libsuff= shlibsuff= libmagic=32-bit;;
14758 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14759 libsuff=32 shlibsuff=N32 libmagic=N32;;
14760 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14761 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14762 *) libsuff= shlibsuff= libmagic=never-match;;
14763 esac
14764 ;;
14765 esac
14766 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14767 shlibpath_overrides_runpath=no
14768 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14769 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14770 hardcode_into_libs=yes
14771 ;;
14772
14773# No shared lib support for Linux oldld, aout, or coff.
14774linux*oldld* | linux*aout* | linux*coff*)
14775 dynamic_linker=no
14776 ;;
14777
14778# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000014779linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014780 version_type=linux
14781 need_lib_prefix=no
14782 need_version=no
14783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14784 soname_spec='${libname}${release}${shared_ext}$major'
14785 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14786 shlibpath_var=LD_LIBRARY_PATH
14787 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000014788
cristy73bd4a52010-10-05 11:24:23 +000014789 # Some binutils ld are patched to set DT_RUNPATH
cristy0c60a692010-11-04 01:09:47 +000014790 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14791 $as_echo_n "(cached) " >&6
14792else
14793 lt_cv_shlibpath_overrides_runpath=no
14794 save_LDFLAGS=$LDFLAGS
14795 save_libdir=$libdir
14796 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14797 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014799/* end confdefs.h. */
14800
14801int
14802main ()
14803{
14804
14805 ;
14806 return 0;
14807}
14808_ACEOF
14809if ac_fn_c_try_link "$LINENO"; then :
14810 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000014811 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000014812fi
14813fi
14814rm -f core conftest.err conftest.$ac_objext \
14815 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000014816 LDFLAGS=$save_LDFLAGS
14817 libdir=$save_libdir
14818
14819fi
14820
14821 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000014822
14823 # This implies no fast_install, which is unacceptable.
14824 # Some rework will be needed to allow for fast_install
14825 # before this can be enabled.
14826 hardcode_into_libs=yes
14827
14828 # Add ABI-specific directories to the system library path.
14829 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14830
14831 # Append ld.so.conf contents to the search path
14832 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000014833 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' ' '`
cristy73bd4a52010-10-05 11:24:23 +000014834 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000014835
cristy73bd4a52010-10-05 11:24:23 +000014836 fi
14837
14838 # We used to test for /lib/ld.so.1 and disable shared libraries on
14839 # powerpc, because MkLinux only supported shared libraries with the
14840 # GNU dynamic linker. Since this was broken with cross compilers,
14841 # most powerpc-linux boxes support dynamic linking these days and
14842 # people can always --disable-shared, the test was removed, and we
14843 # assume the GNU/Linux dynamic linker is in use.
14844 dynamic_linker='GNU/Linux ld.so'
14845 ;;
14846
14847netbsd*)
14848 version_type=sunos
14849 need_lib_prefix=no
14850 need_version=no
14851 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14853 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14854 dynamic_linker='NetBSD (a.out) ld.so'
14855 else
14856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14857 soname_spec='${libname}${release}${shared_ext}$major'
14858 dynamic_linker='NetBSD ld.elf_so'
14859 fi
14860 shlibpath_var=LD_LIBRARY_PATH
14861 shlibpath_overrides_runpath=yes
14862 hardcode_into_libs=yes
14863 ;;
14864
14865newsos6)
14866 version_type=linux
14867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14868 shlibpath_var=LD_LIBRARY_PATH
14869 shlibpath_overrides_runpath=yes
14870 ;;
14871
14872*nto* | *qnx*)
14873 version_type=qnx
14874 need_lib_prefix=no
14875 need_version=no
14876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14877 soname_spec='${libname}${release}${shared_ext}$major'
14878 shlibpath_var=LD_LIBRARY_PATH
14879 shlibpath_overrides_runpath=no
14880 hardcode_into_libs=yes
14881 dynamic_linker='ldqnx.so'
14882 ;;
14883
14884openbsd*)
14885 version_type=sunos
14886 sys_lib_dlsearch_path_spec="/usr/lib"
14887 need_lib_prefix=no
14888 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14889 case $host_os in
14890 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14891 *) need_version=no ;;
14892 esac
14893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14895 shlibpath_var=LD_LIBRARY_PATH
14896 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14897 case $host_os in
14898 openbsd2.[89] | openbsd2.[89].*)
14899 shlibpath_overrides_runpath=no
14900 ;;
14901 *)
14902 shlibpath_overrides_runpath=yes
14903 ;;
14904 esac
14905 else
14906 shlibpath_overrides_runpath=yes
14907 fi
14908 ;;
14909
14910os2*)
14911 libname_spec='$name'
14912 shrext_cmds=".dll"
14913 need_lib_prefix=no
14914 library_names_spec='$libname${shared_ext} $libname.a'
14915 dynamic_linker='OS/2 ld.exe'
14916 shlibpath_var=LIBPATH
14917 ;;
14918
14919osf3* | osf4* | osf5*)
14920 version_type=osf
14921 need_lib_prefix=no
14922 need_version=no
14923 soname_spec='${libname}${release}${shared_ext}$major'
14924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14925 shlibpath_var=LD_LIBRARY_PATH
14926 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14927 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14928 ;;
14929
14930rdos*)
14931 dynamic_linker=no
14932 ;;
14933
14934solaris*)
14935 version_type=linux
14936 need_lib_prefix=no
14937 need_version=no
14938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14939 soname_spec='${libname}${release}${shared_ext}$major'
14940 shlibpath_var=LD_LIBRARY_PATH
14941 shlibpath_overrides_runpath=yes
14942 hardcode_into_libs=yes
14943 # ldd complains unless libraries are executable
14944 postinstall_cmds='chmod +x $lib'
14945 ;;
14946
14947sunos4*)
14948 version_type=sunos
14949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14950 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14951 shlibpath_var=LD_LIBRARY_PATH
14952 shlibpath_overrides_runpath=yes
14953 if test "$with_gnu_ld" = yes; then
14954 need_lib_prefix=no
14955 fi
14956 need_version=yes
14957 ;;
14958
14959sysv4 | sysv4.3*)
14960 version_type=linux
14961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14962 soname_spec='${libname}${release}${shared_ext}$major'
14963 shlibpath_var=LD_LIBRARY_PATH
14964 case $host_vendor in
14965 sni)
14966 shlibpath_overrides_runpath=no
14967 need_lib_prefix=no
14968 runpath_var=LD_RUN_PATH
14969 ;;
14970 siemens)
14971 need_lib_prefix=no
14972 ;;
14973 motorola)
14974 need_lib_prefix=no
14975 need_version=no
14976 shlibpath_overrides_runpath=no
14977 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14978 ;;
14979 esac
14980 ;;
14981
14982sysv4*MP*)
14983 if test -d /usr/nec ;then
14984 version_type=linux
14985 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14986 soname_spec='$libname${shared_ext}.$major'
14987 shlibpath_var=LD_LIBRARY_PATH
14988 fi
14989 ;;
14990
14991sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14992 version_type=freebsd-elf
14993 need_lib_prefix=no
14994 need_version=no
14995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14996 soname_spec='${libname}${release}${shared_ext}$major'
14997 shlibpath_var=LD_LIBRARY_PATH
14998 shlibpath_overrides_runpath=yes
14999 hardcode_into_libs=yes
15000 if test "$with_gnu_ld" = yes; then
15001 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15002 else
15003 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15004 case $host_os in
15005 sco3.2v5*)
15006 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15007 ;;
15008 esac
15009 fi
15010 sys_lib_dlsearch_path_spec='/usr/lib'
15011 ;;
15012
15013tpf*)
15014 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15015 version_type=linux
15016 need_lib_prefix=no
15017 need_version=no
15018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15019 shlibpath_var=LD_LIBRARY_PATH
15020 shlibpath_overrides_runpath=no
15021 hardcode_into_libs=yes
15022 ;;
15023
15024uts4*)
15025 version_type=linux
15026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15027 soname_spec='${libname}${release}${shared_ext}$major'
15028 shlibpath_var=LD_LIBRARY_PATH
15029 ;;
15030
15031*)
15032 dynamic_linker=no
15033 ;;
15034esac
15035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15036$as_echo "$dynamic_linker" >&6; }
15037test "$dynamic_linker" = no && can_build_shared=no
15038
15039variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15040if test "$GCC" = yes; then
15041 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15042fi
15043
15044if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15045 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15046fi
15047if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15048 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15049fi
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
cristy0c60a692010-11-04 01:09:47 +000015137
15138
15139
15140
15141
cristy73bd4a52010-10-05 11:24:23 +000015142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15143$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15144hardcode_action=
15145if test -n "$hardcode_libdir_flag_spec" ||
15146 test -n "$runpath_var" ||
15147 test "X$hardcode_automatic" = "Xyes" ; then
15148
15149 # We can hardcode non-existent directories.
15150 if test "$hardcode_direct" != no &&
15151 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15152 # have to relink, otherwise we might link with an installed library
15153 # when we should be linking with a yet-to-be-installed one
15154 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15155 test "$hardcode_minus_L" != no; then
15156 # Linking always hardcodes the temporary library directory.
15157 hardcode_action=relink
15158 else
15159 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15160 hardcode_action=immediate
15161 fi
15162else
15163 # We cannot hardcode anything, or else we can only hardcode existing
15164 # directories.
15165 hardcode_action=unsupported
15166fi
15167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15168$as_echo "$hardcode_action" >&6; }
15169
15170if test "$hardcode_action" = relink ||
15171 test "$inherit_rpath" = yes; then
15172 # Fast installation is not supported
15173 enable_fast_install=no
15174elif test "$shlibpath_overrides_runpath" = yes ||
15175 test "$enable_shared" = no; then
15176 # Fast installation is not necessary
15177 enable_fast_install=needless
15178fi
15179
15180
15181
15182
15183
15184
15185 if test "x$enable_dlopen" != xyes; then
15186 enable_dlopen=unknown
15187 enable_dlopen_self=unknown
15188 enable_dlopen_self_static=unknown
15189else
15190 lt_cv_dlopen=no
15191 lt_cv_dlopen_libs=
15192
15193 case $host_os in
15194 beos*)
15195 lt_cv_dlopen="load_add_on"
15196 lt_cv_dlopen_libs=
15197 lt_cv_dlopen_self=yes
15198 ;;
15199
15200 mingw* | pw32* | cegcc*)
15201 lt_cv_dlopen="LoadLibrary"
15202 lt_cv_dlopen_libs=
15203 ;;
15204
15205 cygwin*)
15206 lt_cv_dlopen="dlopen"
15207 lt_cv_dlopen_libs=
15208 ;;
15209
15210 darwin*)
15211 # if libdl is installed we need to link against it
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15213$as_echo_n "checking for dlopen in -ldl... " >&6; }
15214if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15215 $as_echo_n "(cached) " >&6
15216else
15217 ac_check_lib_save_LIBS=$LIBS
15218LIBS="-ldl $LIBS"
15219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15220/* end confdefs.h. */
15221
15222/* Override any GCC internal prototype to avoid an error.
15223 Use char because int might match the return type of a GCC
15224 builtin and then its argument prototype would still apply. */
15225#ifdef __cplusplus
15226extern "C"
15227#endif
15228char dlopen ();
15229int
15230main ()
15231{
15232return dlopen ();
15233 ;
15234 return 0;
15235}
15236_ACEOF
15237if ac_fn_c_try_link "$LINENO"; then :
15238 ac_cv_lib_dl_dlopen=yes
15239else
15240 ac_cv_lib_dl_dlopen=no
15241fi
15242rm -f core conftest.err conftest.$ac_objext \
15243 conftest$ac_exeext conftest.$ac_ext
15244LIBS=$ac_check_lib_save_LIBS
15245fi
15246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15247$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15248if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15249 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15250else
15251
15252 lt_cv_dlopen="dyld"
15253 lt_cv_dlopen_libs=
15254 lt_cv_dlopen_self=yes
15255
15256fi
15257
15258 ;;
15259
15260 *)
15261 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15262if test "x$ac_cv_func_shl_load" = x""yes; then :
15263 lt_cv_dlopen="shl_load"
15264else
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15266$as_echo_n "checking for shl_load in -ldld... " >&6; }
15267if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
15268 $as_echo_n "(cached) " >&6
15269else
15270 ac_check_lib_save_LIBS=$LIBS
15271LIBS="-ldld $LIBS"
15272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15273/* end confdefs.h. */
15274
15275/* Override any GCC internal prototype to avoid an error.
15276 Use char because int might match the return type of a GCC
15277 builtin and then its argument prototype would still apply. */
15278#ifdef __cplusplus
15279extern "C"
15280#endif
15281char shl_load ();
15282int
15283main ()
15284{
15285return shl_load ();
15286 ;
15287 return 0;
15288}
15289_ACEOF
15290if ac_fn_c_try_link "$LINENO"; then :
15291 ac_cv_lib_dld_shl_load=yes
15292else
15293 ac_cv_lib_dld_shl_load=no
15294fi
15295rm -f core conftest.err conftest.$ac_objext \
15296 conftest$ac_exeext conftest.$ac_ext
15297LIBS=$ac_check_lib_save_LIBS
15298fi
15299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15300$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15301if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
15302 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15303else
15304 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15305if test "x$ac_cv_func_dlopen" = x""yes; then :
15306 lt_cv_dlopen="dlopen"
15307else
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15309$as_echo_n "checking for dlopen in -ldl... " >&6; }
15310if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15311 $as_echo_n "(cached) " >&6
15312else
15313 ac_check_lib_save_LIBS=$LIBS
15314LIBS="-ldl $LIBS"
15315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15316/* end confdefs.h. */
15317
15318/* Override any GCC internal prototype to avoid an error.
15319 Use char because int might match the return type of a GCC
15320 builtin and then its argument prototype would still apply. */
15321#ifdef __cplusplus
15322extern "C"
15323#endif
15324char dlopen ();
15325int
15326main ()
15327{
15328return dlopen ();
15329 ;
15330 return 0;
15331}
15332_ACEOF
15333if ac_fn_c_try_link "$LINENO"; then :
15334 ac_cv_lib_dl_dlopen=yes
15335else
15336 ac_cv_lib_dl_dlopen=no
15337fi
15338rm -f core conftest.err conftest.$ac_objext \
15339 conftest$ac_exeext conftest.$ac_ext
15340LIBS=$ac_check_lib_save_LIBS
15341fi
15342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15343$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15344if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15345 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15346else
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15348$as_echo_n "checking for dlopen in -lsvld... " >&6; }
15349if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
15350 $as_echo_n "(cached) " >&6
15351else
15352 ac_check_lib_save_LIBS=$LIBS
15353LIBS="-lsvld $LIBS"
15354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15355/* end confdefs.h. */
15356
15357/* Override any GCC internal prototype to avoid an error.
15358 Use char because int might match the return type of a GCC
15359 builtin and then its argument prototype would still apply. */
15360#ifdef __cplusplus
15361extern "C"
15362#endif
15363char dlopen ();
15364int
15365main ()
15366{
15367return dlopen ();
15368 ;
15369 return 0;
15370}
15371_ACEOF
15372if ac_fn_c_try_link "$LINENO"; then :
15373 ac_cv_lib_svld_dlopen=yes
15374else
15375 ac_cv_lib_svld_dlopen=no
15376fi
15377rm -f core conftest.err conftest.$ac_objext \
15378 conftest$ac_exeext conftest.$ac_ext
15379LIBS=$ac_check_lib_save_LIBS
15380fi
15381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15382$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15383if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
15384 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15385else
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15387$as_echo_n "checking for dld_link in -ldld... " >&6; }
15388if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
15389 $as_echo_n "(cached) " >&6
15390else
15391 ac_check_lib_save_LIBS=$LIBS
15392LIBS="-ldld $LIBS"
15393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15394/* end confdefs.h. */
15395
15396/* Override any GCC internal prototype to avoid an error.
15397 Use char because int might match the return type of a GCC
15398 builtin and then its argument prototype would still apply. */
15399#ifdef __cplusplus
15400extern "C"
15401#endif
15402char dld_link ();
15403int
15404main ()
15405{
15406return dld_link ();
15407 ;
15408 return 0;
15409}
15410_ACEOF
15411if ac_fn_c_try_link "$LINENO"; then :
15412 ac_cv_lib_dld_dld_link=yes
15413else
15414 ac_cv_lib_dld_dld_link=no
15415fi
15416rm -f core conftest.err conftest.$ac_objext \
15417 conftest$ac_exeext conftest.$ac_ext
15418LIBS=$ac_check_lib_save_LIBS
15419fi
15420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15421$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15422if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
15423 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15424fi
15425
15426
15427fi
15428
15429
15430fi
15431
15432
15433fi
15434
15435
15436fi
15437
15438
15439fi
15440
15441 ;;
15442 esac
15443
15444 if test "x$lt_cv_dlopen" != xno; then
15445 enable_dlopen=yes
15446 else
15447 enable_dlopen=no
15448 fi
15449
15450 case $lt_cv_dlopen in
15451 dlopen)
15452 save_CPPFLAGS="$CPPFLAGS"
15453 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15454
15455 save_LDFLAGS="$LDFLAGS"
15456 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15457
15458 save_LIBS="$LIBS"
15459 LIBS="$lt_cv_dlopen_libs $LIBS"
15460
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15462$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15463if test "${lt_cv_dlopen_self+set}" = set; then :
15464 $as_echo_n "(cached) " >&6
15465else
15466 if test "$cross_compiling" = yes; then :
15467 lt_cv_dlopen_self=cross
15468else
15469 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15470 lt_status=$lt_dlunknown
15471 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000015472#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000015473#include "confdefs.h"
15474
15475#if HAVE_DLFCN_H
15476#include <dlfcn.h>
15477#endif
15478
15479#include <stdio.h>
15480
15481#ifdef RTLD_GLOBAL
15482# define LT_DLGLOBAL RTLD_GLOBAL
15483#else
15484# ifdef DL_GLOBAL
15485# define LT_DLGLOBAL DL_GLOBAL
15486# else
15487# define LT_DLGLOBAL 0
15488# endif
15489#endif
15490
15491/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15492 find out it does not work in some platform. */
15493#ifndef LT_DLLAZY_OR_NOW
15494# ifdef RTLD_LAZY
15495# define LT_DLLAZY_OR_NOW RTLD_LAZY
15496# else
15497# ifdef DL_LAZY
15498# define LT_DLLAZY_OR_NOW DL_LAZY
15499# else
15500# ifdef RTLD_NOW
15501# define LT_DLLAZY_OR_NOW RTLD_NOW
15502# else
15503# ifdef DL_NOW
15504# define LT_DLLAZY_OR_NOW DL_NOW
15505# else
15506# define LT_DLLAZY_OR_NOW 0
15507# endif
15508# endif
15509# endif
15510# endif
15511#endif
15512
cristy0c60a692010-11-04 01:09:47 +000015513/* When -fvisbility=hidden is used, assume the code has been annotated
15514 correspondingly for the symbols needed. */
15515#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15516void fnord () __attribute__((visibility("default")));
15517#endif
15518
15519void fnord () { int i=42; }
cristy73bd4a52010-10-05 11:24:23 +000015520int main ()
15521{
15522 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15523 int status = $lt_dlunknown;
15524
15525 if (self)
15526 {
15527 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000015528 else
15529 {
15530 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15531 else puts (dlerror ());
15532 }
cristy73bd4a52010-10-05 11:24:23 +000015533 /* dlclose (self); */
15534 }
15535 else
15536 puts (dlerror ());
15537
15538 return status;
15539}
15540_LT_EOF
15541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15542 (eval $ac_link) 2>&5
15543 ac_status=$?
15544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15545 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15546 (./conftest; exit; ) >&5 2>/dev/null
15547 lt_status=$?
15548 case x$lt_status in
15549 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15550 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15551 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15552 esac
15553 else :
15554 # compilation failed
15555 lt_cv_dlopen_self=no
15556 fi
15557fi
15558rm -fr conftest*
15559
15560
15561fi
15562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15563$as_echo "$lt_cv_dlopen_self" >&6; }
15564
15565 if test "x$lt_cv_dlopen_self" = xyes; then
15566 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15568$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15569if test "${lt_cv_dlopen_self_static+set}" = set; then :
15570 $as_echo_n "(cached) " >&6
15571else
15572 if test "$cross_compiling" = yes; then :
15573 lt_cv_dlopen_self_static=cross
15574else
15575 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15576 lt_status=$lt_dlunknown
15577 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000015578#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000015579#include "confdefs.h"
15580
15581#if HAVE_DLFCN_H
15582#include <dlfcn.h>
15583#endif
15584
15585#include <stdio.h>
15586
15587#ifdef RTLD_GLOBAL
15588# define LT_DLGLOBAL RTLD_GLOBAL
15589#else
15590# ifdef DL_GLOBAL
15591# define LT_DLGLOBAL DL_GLOBAL
15592# else
15593# define LT_DLGLOBAL 0
15594# endif
15595#endif
15596
15597/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15598 find out it does not work in some platform. */
15599#ifndef LT_DLLAZY_OR_NOW
15600# ifdef RTLD_LAZY
15601# define LT_DLLAZY_OR_NOW RTLD_LAZY
15602# else
15603# ifdef DL_LAZY
15604# define LT_DLLAZY_OR_NOW DL_LAZY
15605# else
15606# ifdef RTLD_NOW
15607# define LT_DLLAZY_OR_NOW RTLD_NOW
15608# else
15609# ifdef DL_NOW
15610# define LT_DLLAZY_OR_NOW DL_NOW
15611# else
15612# define LT_DLLAZY_OR_NOW 0
15613# endif
15614# endif
15615# endif
15616# endif
15617#endif
15618
cristy0c60a692010-11-04 01:09:47 +000015619/* When -fvisbility=hidden is used, assume the code has been annotated
15620 correspondingly for the symbols needed. */
15621#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15622void fnord () __attribute__((visibility("default")));
15623#endif
15624
15625void fnord () { int i=42; }
cristy73bd4a52010-10-05 11:24:23 +000015626int main ()
15627{
15628 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15629 int status = $lt_dlunknown;
15630
15631 if (self)
15632 {
15633 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000015634 else
15635 {
15636 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15637 else puts (dlerror ());
15638 }
cristy73bd4a52010-10-05 11:24:23 +000015639 /* dlclose (self); */
15640 }
15641 else
15642 puts (dlerror ());
15643
15644 return status;
15645}
15646_LT_EOF
15647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15648 (eval $ac_link) 2>&5
15649 ac_status=$?
15650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15651 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15652 (./conftest; exit; ) >&5 2>/dev/null
15653 lt_status=$?
15654 case x$lt_status in
15655 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15656 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15657 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15658 esac
15659 else :
15660 # compilation failed
15661 lt_cv_dlopen_self_static=no
15662 fi
15663fi
15664rm -fr conftest*
15665
15666
15667fi
15668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15669$as_echo "$lt_cv_dlopen_self_static" >&6; }
15670 fi
15671
15672 CPPFLAGS="$save_CPPFLAGS"
15673 LDFLAGS="$save_LDFLAGS"
15674 LIBS="$save_LIBS"
15675 ;;
15676 esac
15677
15678 case $lt_cv_dlopen_self in
15679 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15680 *) enable_dlopen_self=unknown ;;
15681 esac
15682
15683 case $lt_cv_dlopen_self_static in
15684 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15685 *) enable_dlopen_self_static=unknown ;;
15686 esac
15687fi
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705striplib=
15706old_striplib=
15707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15708$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15709if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15710 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15711 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15713$as_echo "yes" >&6; }
15714else
15715# FIXME - insert some real tests, host_os isn't really good enough
15716 case $host_os in
15717 darwin*)
15718 if test -n "$STRIP" ; then
15719 striplib="$STRIP -x"
15720 old_striplib="$STRIP -S"
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15722$as_echo "yes" >&6; }
15723 else
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15725$as_echo "no" >&6; }
15726 fi
15727 ;;
15728 *)
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15730$as_echo "no" >&6; }
15731 ;;
15732 esac
15733fi
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746 # Report which library types will actually be built
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15748$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15750$as_echo "$can_build_shared" >&6; }
15751
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15753$as_echo_n "checking whether to build shared libraries... " >&6; }
15754 test "$can_build_shared" = "no" && enable_shared=no
15755
15756 # On AIX, shared libraries and static libraries use the same namespace, and
15757 # are all built from PIC.
15758 case $host_os in
15759 aix3*)
15760 test "$enable_shared" = yes && enable_static=no
15761 if test -n "$RANLIB"; then
15762 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15763 postinstall_cmds='$RANLIB $lib'
15764 fi
15765 ;;
15766
15767 aix[4-9]*)
15768 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15769 test "$enable_shared" = yes && enable_static=no
15770 fi
15771 ;;
15772 esac
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15774$as_echo "$enable_shared" >&6; }
15775
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15777$as_echo_n "checking whether to build static libraries... " >&6; }
15778 # Make sure either enable_shared or enable_static is yes.
15779 test "$enable_shared" = yes || enable_static=yes
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15781$as_echo "$enable_static" >&6; }
15782
15783
15784
15785
15786fi
15787ac_ext=c
15788ac_cpp='$CPP $CPPFLAGS'
15789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15791ac_compiler_gnu=$ac_cv_c_compiler_gnu
15792
15793CC="$lt_save_CC"
15794
cristy0c60a692010-11-04 01:09:47 +000015795 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15796 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15797 (test "X$CXX" != "Xg++"))) ; then
15798 ac_ext=cpp
15799ac_cpp='$CXXCPP $CPPFLAGS'
15800ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15801ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15802ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15804$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15805if test -z "$CXXCPP"; then
15806 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
15807 $as_echo_n "(cached) " >&6
15808else
15809 # Double quotes because CXXCPP needs to be expanded
15810 for CXXCPP in "$CXX -E" "/lib/cpp"
15811 do
15812 ac_preproc_ok=false
15813for ac_cxx_preproc_warn_flag in '' yes
15814do
15815 # Use a header file that comes with gcc, so configuring glibc
15816 # with a fresh cross-compiler works.
15817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15818 # <limits.h> exists even on freestanding compilers.
15819 # On the NeXT, cc -E runs the code through the compiler's parser,
15820 # not just through cpp. "Syntax error" is here to catch this case.
15821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15822/* end confdefs.h. */
15823#ifdef __STDC__
15824# include <limits.h>
15825#else
15826# include <assert.h>
15827#endif
15828 Syntax error
15829_ACEOF
15830if ac_fn_cxx_try_cpp "$LINENO"; then :
15831
15832else
15833 # Broken: fails on valid input.
15834continue
15835fi
15836rm -f conftest.err conftest.$ac_ext
15837
15838 # OK, works on sane cases. Now check whether nonexistent headers
15839 # can be detected and how.
15840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15841/* end confdefs.h. */
15842#include <ac_nonexistent.h>
15843_ACEOF
15844if ac_fn_cxx_try_cpp "$LINENO"; then :
15845 # Broken: success on invalid input.
15846continue
15847else
15848 # Passes both tests.
15849ac_preproc_ok=:
15850break
15851fi
15852rm -f conftest.err conftest.$ac_ext
15853
15854done
15855# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15856rm -f conftest.err conftest.$ac_ext
15857if $ac_preproc_ok; then :
15858 break
15859fi
15860
15861 done
15862 ac_cv_prog_CXXCPP=$CXXCPP
15863
15864fi
15865 CXXCPP=$ac_cv_prog_CXXCPP
15866else
15867 ac_cv_prog_CXXCPP=$CXXCPP
15868fi
15869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15870$as_echo "$CXXCPP" >&6; }
15871ac_preproc_ok=false
15872for ac_cxx_preproc_warn_flag in '' yes
15873do
15874 # Use a header file that comes with gcc, so configuring glibc
15875 # with a fresh cross-compiler works.
15876 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15877 # <limits.h> exists even on freestanding compilers.
15878 # On the NeXT, cc -E runs the code through the compiler's parser,
15879 # not just through cpp. "Syntax error" is here to catch this case.
15880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15881/* end confdefs.h. */
15882#ifdef __STDC__
15883# include <limits.h>
15884#else
15885# include <assert.h>
15886#endif
15887 Syntax error
15888_ACEOF
15889if ac_fn_cxx_try_cpp "$LINENO"; then :
15890
15891else
15892 # Broken: fails on valid input.
15893continue
15894fi
15895rm -f conftest.err conftest.$ac_ext
15896
15897 # OK, works on sane cases. Now check whether nonexistent headers
15898 # can be detected and how.
15899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15900/* end confdefs.h. */
15901#include <ac_nonexistent.h>
15902_ACEOF
15903if ac_fn_cxx_try_cpp "$LINENO"; then :
15904 # Broken: success on invalid input.
15905continue
15906else
15907 # Passes both tests.
15908ac_preproc_ok=:
15909break
15910fi
15911rm -f conftest.err conftest.$ac_ext
15912
15913done
15914# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15915rm -f conftest.err conftest.$ac_ext
15916if $ac_preproc_ok; then :
15917
15918else
15919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15920$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15921as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15922See \`config.log' for more details" "$LINENO" 5; }
15923fi
15924
15925ac_ext=c
15926ac_cpp='$CPP $CPPFLAGS'
15927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15929ac_compiler_gnu=$ac_cv_c_compiler_gnu
15930
15931else
15932 _lt_caught_CXX_error=yes
15933fi
cristy73bd4a52010-10-05 11:24:23 +000015934
15935ac_ext=cpp
15936ac_cpp='$CXXCPP $CPPFLAGS'
15937ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15938ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15939ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15940
15941archive_cmds_need_lc_CXX=no
15942allow_undefined_flag_CXX=
15943always_export_symbols_CXX=no
15944archive_expsym_cmds_CXX=
15945compiler_needs_object_CXX=no
15946export_dynamic_flag_spec_CXX=
15947hardcode_direct_CXX=no
15948hardcode_direct_absolute_CXX=no
15949hardcode_libdir_flag_spec_CXX=
15950hardcode_libdir_flag_spec_ld_CXX=
15951hardcode_libdir_separator_CXX=
15952hardcode_minus_L_CXX=no
15953hardcode_shlibpath_var_CXX=unsupported
15954hardcode_automatic_CXX=no
15955inherit_rpath_CXX=no
15956module_cmds_CXX=
15957module_expsym_cmds_CXX=
15958link_all_deplibs_CXX=unknown
15959old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000015960reload_flag_CXX=$reload_flag
15961reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000015962no_undefined_flag_CXX=
15963whole_archive_flag_spec_CXX=
15964enable_shared_with_static_runtimes_CXX=no
15965
15966# Source file extension for C++ test sources.
15967ac_ext=cpp
15968
15969# Object file extension for compiled C++ test sources.
15970objext=o
15971objext_CXX=$objext
15972
15973# No sense in running all these tests if we already determined that
15974# the CXX compiler isn't working. Some variables (like enable_shared)
15975# are currently assumed to apply to all compilers on this platform,
15976# and will be corrupted by setting them based on a non-working compiler.
15977if test "$_lt_caught_CXX_error" != yes; then
15978 # Code to be used in simple compile tests
15979 lt_simple_compile_test_code="int some_variable = 0;"
15980
15981 # Code to be used in simple link tests
15982 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15983
15984 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15985
15986
15987
15988
15989
15990
15991# If no C compiler was specified, use CC.
15992LTCC=${LTCC-"$CC"}
15993
15994# If no C compiler flags were specified, use CFLAGS.
15995LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15996
15997# Allow CC to be a program name with arguments.
15998compiler=$CC
15999
16000
16001 # save warnings/boilerplate of simple test code
16002 ac_outfile=conftest.$ac_objext
16003echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16004eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16005_lt_compiler_boilerplate=`cat conftest.err`
16006$RM conftest*
16007
16008 ac_outfile=conftest.$ac_objext
16009echo "$lt_simple_link_test_code" >conftest.$ac_ext
16010eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16011_lt_linker_boilerplate=`cat conftest.err`
16012$RM -r conftest*
16013
16014
16015 # Allow CC to be a program name with arguments.
16016 lt_save_CC=$CC
16017 lt_save_LD=$LD
16018 lt_save_GCC=$GCC
16019 GCC=$GXX
16020 lt_save_with_gnu_ld=$with_gnu_ld
16021 lt_save_path_LD=$lt_cv_path_LD
16022 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16023 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16024 else
16025 $as_unset lt_cv_prog_gnu_ld
16026 fi
16027 if test -n "${lt_cv_path_LDCXX+set}"; then
16028 lt_cv_path_LD=$lt_cv_path_LDCXX
16029 else
16030 $as_unset lt_cv_path_LD
16031 fi
16032 test -z "${LDCXX+set}" || LD=$LDCXX
16033 CC=${CXX-"c++"}
16034 compiler=$CC
16035 compiler_CXX=$CC
16036 for cc_temp in $compiler""; do
16037 case $cc_temp in
16038 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16039 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16040 \-*) ;;
16041 *) break;;
16042 esac
16043done
cristy0c60a692010-11-04 01:09:47 +000016044cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000016045
16046
16047 if test -n "$compiler"; then
16048 # We don't want -fno-exception when compiling C++ code, so set the
16049 # no_builtin_flag separately
16050 if test "$GXX" = yes; then
16051 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16052 else
16053 lt_prog_compiler_no_builtin_flag_CXX=
16054 fi
16055
16056 if test "$GXX" = yes; then
16057 # Set up default GNU C++ configuration
16058
16059
16060
16061# Check whether --with-gnu-ld was given.
16062if test "${with_gnu_ld+set}" = set; then :
16063 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16064else
16065 with_gnu_ld=no
16066fi
16067
16068ac_prog=ld
16069if test "$GCC" = yes; then
16070 # Check if gcc -print-prog-name=ld gives a path.
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16072$as_echo_n "checking for ld used by $CC... " >&6; }
16073 case $host in
16074 *-*-mingw*)
16075 # gcc leaves a trailing carriage return which upsets mingw
16076 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16077 *)
16078 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16079 esac
16080 case $ac_prog in
16081 # Accept absolute paths.
16082 [\\/]* | ?:[\\/]*)
16083 re_direlt='/[^/][^/]*/\.\./'
16084 # Canonicalize the pathname of ld
16085 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16086 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16087 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16088 done
16089 test -z "$LD" && LD="$ac_prog"
16090 ;;
16091 "")
16092 # If it fails, then pretend we aren't using GCC.
16093 ac_prog=ld
16094 ;;
16095 *)
16096 # If it is relative, then search for the first ld in PATH.
16097 with_gnu_ld=unknown
16098 ;;
16099 esac
16100elif test "$with_gnu_ld" = yes; then
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16102$as_echo_n "checking for GNU ld... " >&6; }
16103else
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16105$as_echo_n "checking for non-GNU ld... " >&6; }
16106fi
16107if test "${lt_cv_path_LD+set}" = set; then :
16108 $as_echo_n "(cached) " >&6
16109else
16110 if test -z "$LD"; then
16111 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16112 for ac_dir in $PATH; do
16113 IFS="$lt_save_ifs"
16114 test -z "$ac_dir" && ac_dir=.
16115 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16116 lt_cv_path_LD="$ac_dir/$ac_prog"
16117 # Check to see if the program is GNU ld. I'd rather use --version,
16118 # but apparently some variants of GNU ld only accept -v.
16119 # Break only if it was the GNU/non-GNU ld that we prefer.
16120 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16121 *GNU* | *'with BFD'*)
16122 test "$with_gnu_ld" != no && break
16123 ;;
16124 *)
16125 test "$with_gnu_ld" != yes && break
16126 ;;
16127 esac
16128 fi
16129 done
16130 IFS="$lt_save_ifs"
16131else
16132 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16133fi
16134fi
16135
16136LD="$lt_cv_path_LD"
16137if test -n "$LD"; then
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16139$as_echo "$LD" >&6; }
16140else
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16142$as_echo "no" >&6; }
16143fi
cristy98dddb52010-11-04 00:30:15 +000016144test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000016145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16146$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16147if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16148 $as_echo_n "(cached) " >&6
16149else
16150 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16151case `$LD -v 2>&1 </dev/null` in
16152*GNU* | *'with BFD'*)
16153 lt_cv_prog_gnu_ld=yes
16154 ;;
16155*)
16156 lt_cv_prog_gnu_ld=no
16157 ;;
16158esac
16159fi
16160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16161$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16162with_gnu_ld=$lt_cv_prog_gnu_ld
16163
16164
16165
16166
16167
16168
16169
16170 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16171 # archiving commands below assume that GNU ld is being used.
16172 if test "$with_gnu_ld" = yes; then
16173 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16174 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'
16175
16176 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16177 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16178
16179 # If archive_cmds runs LD, not CC, wlarc should be empty
16180 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16181 # investigate it a little bit more. (MM)
16182 wlarc='${wl}'
16183
16184 # ancient GNU ld didn't support --whole-archive et. al.
16185 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16186 $GREP 'no-whole-archive' > /dev/null; then
16187 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16188 else
16189 whole_archive_flag_spec_CXX=
16190 fi
16191 else
16192 with_gnu_ld=no
16193 wlarc=
16194
16195 # A generic and very simple default shared library creation
16196 # command for GNU C++ for the case where it uses the native
16197 # linker, instead of GNU ld. If possible, this setting should
16198 # overridden to take advantage of the native linker features on
16199 # the platform it is being used on.
16200 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16201 fi
16202
16203 # Commands to make compiler produce verbose output that lists
16204 # what "hidden" libraries, object files and flags are used when
16205 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000016206 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000016207
16208 else
16209 GXX=no
16210 with_gnu_ld=no
16211 wlarc=
16212 fi
16213
16214 # PORTME: fill in a description of your system's C++ link characteristics
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16216$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16217 ld_shlibs_CXX=yes
16218 case $host_os in
16219 aix3*)
16220 # FIXME: insert proper C++ library support
16221 ld_shlibs_CXX=no
16222 ;;
16223 aix[4-9]*)
16224 if test "$host_cpu" = ia64; then
16225 # On IA64, the linker does run time linking by default, so we don't
16226 # have to do anything special.
16227 aix_use_runtimelinking=no
16228 exp_sym_flag='-Bexport'
16229 no_entry_flag=""
16230 else
16231 aix_use_runtimelinking=no
16232
16233 # Test if we are trying to use run time linking or normal
16234 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16235 # need to do runtime linking.
16236 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16237 for ld_flag in $LDFLAGS; do
16238 case $ld_flag in
16239 *-brtl*)
16240 aix_use_runtimelinking=yes
16241 break
16242 ;;
16243 esac
16244 done
16245 ;;
16246 esac
16247
16248 exp_sym_flag='-bexport'
16249 no_entry_flag='-bnoentry'
16250 fi
16251
16252 # When large executables or shared objects are built, AIX ld can
16253 # have problems creating the table of contents. If linking a library
16254 # or program results in "error TOC overflow" add -mminimal-toc to
16255 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16256 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16257
16258 archive_cmds_CXX=''
16259 hardcode_direct_CXX=yes
16260 hardcode_direct_absolute_CXX=yes
16261 hardcode_libdir_separator_CXX=':'
16262 link_all_deplibs_CXX=yes
16263 file_list_spec_CXX='${wl}-f,'
16264
16265 if test "$GXX" = yes; then
16266 case $host_os in aix4.[012]|aix4.[012].*)
16267 # We only want to do this on AIX 4.2 and lower, the check
16268 # below for broken collect2 doesn't work under 4.3+
16269 collect2name=`${CC} -print-prog-name=collect2`
16270 if test -f "$collect2name" &&
16271 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16272 then
16273 # We have reworked collect2
16274 :
16275 else
16276 # We have old collect2
16277 hardcode_direct_CXX=unsupported
16278 # It fails to find uninstalled libraries when the uninstalled
16279 # path is not listed in the libpath. Setting hardcode_minus_L
16280 # to unsupported forces relinking
16281 hardcode_minus_L_CXX=yes
16282 hardcode_libdir_flag_spec_CXX='-L$libdir'
16283 hardcode_libdir_separator_CXX=
16284 fi
16285 esac
16286 shared_flag='-shared'
16287 if test "$aix_use_runtimelinking" = yes; then
16288 shared_flag="$shared_flag "'${wl}-G'
16289 fi
16290 else
16291 # not using gcc
16292 if test "$host_cpu" = ia64; then
16293 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16294 # chokes on -Wl,-G. The following line is correct:
16295 shared_flag='-G'
16296 else
16297 if test "$aix_use_runtimelinking" = yes; then
16298 shared_flag='${wl}-G'
16299 else
16300 shared_flag='${wl}-bM:SRE'
16301 fi
16302 fi
16303 fi
16304
16305 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16306 # It seems that -bexpall does not export symbols beginning with
16307 # underscore (_), so it is better to generate a list of symbols to
16308 # export.
16309 always_export_symbols_CXX=yes
16310 if test "$aix_use_runtimelinking" = yes; then
16311 # Warning - without using the other runtime loading flags (-brtl),
16312 # -berok will link without error, but may produce a broken library.
16313 allow_undefined_flag_CXX='-berok'
16314 # Determine the default libpath from the value encoded in an empty
16315 # executable.
16316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16317/* end confdefs.h. */
16318
16319int
16320main ()
16321{
16322
16323 ;
16324 return 0;
16325}
16326_ACEOF
16327if ac_fn_cxx_try_link "$LINENO"; then :
16328
16329lt_aix_libpath_sed='
16330 /Import File Strings/,/^$/ {
16331 /^0/ {
16332 s/^0 *\(.*\)$/\1/
16333 p
16334 }
16335 }'
16336aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16337# Check for a 64-bit object if we didn't find anything.
16338if test -z "$aix_libpath"; then
16339 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16340fi
16341fi
16342rm -f core conftest.err conftest.$ac_objext \
16343 conftest$ac_exeext conftest.$ac_ext
16344if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16345
16346 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16347
cristy0c60a692010-11-04 01:09:47 +000016348 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"
cristy73bd4a52010-10-05 11:24:23 +000016349 else
16350 if test "$host_cpu" = ia64; then
16351 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16352 allow_undefined_flag_CXX="-z nodefs"
16353 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"
16354 else
16355 # Determine the default libpath from the value encoded in an
16356 # empty executable.
16357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16358/* end confdefs.h. */
16359
16360int
16361main ()
16362{
16363
16364 ;
16365 return 0;
16366}
16367_ACEOF
16368if ac_fn_cxx_try_link "$LINENO"; then :
16369
16370lt_aix_libpath_sed='
16371 /Import File Strings/,/^$/ {
16372 /^0/ {
16373 s/^0 *\(.*\)$/\1/
16374 p
16375 }
16376 }'
16377aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16378# Check for a 64-bit object if we didn't find anything.
16379if test -z "$aix_libpath"; then
16380 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16381fi
16382fi
16383rm -f core conftest.err conftest.$ac_objext \
16384 conftest$ac_exeext conftest.$ac_ext
16385if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16386
16387 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16388 # Warning - without using the other run time loading flags,
16389 # -berok will link without error, but may produce a broken library.
16390 no_undefined_flag_CXX=' ${wl}-bernotok'
16391 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000016392 if test "$with_gnu_ld" = yes; then
16393 # We only use this code for GNU lds that support --whole-archive.
16394 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16395 else
16396 # Exported symbols can be pulled into shared objects from archives
16397 whole_archive_flag_spec_CXX='$convenience'
16398 fi
cristy73bd4a52010-10-05 11:24:23 +000016399 archive_cmds_need_lc_CXX=yes
16400 # This is similar to how AIX traditionally builds its shared
16401 # libraries.
16402 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'
16403 fi
16404 fi
16405 ;;
16406
16407 beos*)
16408 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16409 allow_undefined_flag_CXX=unsupported
16410 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16411 # support --undefined. This deserves some investigation. FIXME
16412 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16413 else
16414 ld_shlibs_CXX=no
16415 fi
16416 ;;
16417
16418 chorus*)
16419 case $cc_basename in
16420 *)
16421 # FIXME: insert proper C++ library support
16422 ld_shlibs_CXX=no
16423 ;;
16424 esac
16425 ;;
16426
16427 cygwin* | mingw* | pw32* | cegcc*)
16428 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16429 # as there is no search path for DLLs.
16430 hardcode_libdir_flag_spec_CXX='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000016431 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000016432 allow_undefined_flag_CXX=unsupported
16433 always_export_symbols_CXX=no
16434 enable_shared_with_static_runtimes_CXX=yes
16435
16436 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16437 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'
16438 # If the export-symbols file already is a .def file (1st line
16439 # is EXPORTS), use it as is; otherwise, prepend...
16440 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16441 cp $export_symbols $output_objdir/$soname.def;
16442 else
16443 echo EXPORTS > $output_objdir/$soname.def;
16444 cat $export_symbols >> $output_objdir/$soname.def;
16445 fi~
16446 $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'
16447 else
16448 ld_shlibs_CXX=no
16449 fi
16450 ;;
16451 darwin* | rhapsody*)
16452
16453
16454 archive_cmds_need_lc_CXX=no
16455 hardcode_direct_CXX=no
16456 hardcode_automatic_CXX=yes
16457 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000016458 if test "$lt_cv_ld_force_load" = "yes"; then
16459 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\"`'
16460 else
16461 whole_archive_flag_spec_CXX=''
16462 fi
cristy73bd4a52010-10-05 11:24:23 +000016463 link_all_deplibs_CXX=yes
16464 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16465 case $cc_basename in
16466 ifort*) _lt_dar_can_shared=yes ;;
16467 *) _lt_dar_can_shared=$GCC ;;
16468 esac
16469 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000016470 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000016471 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}"
16472 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16473 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}"
16474 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}"
16475 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16476 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}"
16477 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}"
16478 fi
16479
16480 else
16481 ld_shlibs_CXX=no
16482 fi
16483
16484 ;;
16485
16486 dgux*)
16487 case $cc_basename in
16488 ec++*)
16489 # FIXME: insert proper C++ library support
16490 ld_shlibs_CXX=no
16491 ;;
16492 ghcx*)
16493 # Green Hills C++ Compiler
16494 # FIXME: insert proper C++ library support
16495 ld_shlibs_CXX=no
16496 ;;
16497 *)
16498 # FIXME: insert proper C++ library support
16499 ld_shlibs_CXX=no
16500 ;;
16501 esac
16502 ;;
16503
16504 freebsd[12]*)
16505 # C++ shared libraries reported to be fairly broken before
16506 # switch to ELF
16507 ld_shlibs_CXX=no
16508 ;;
16509
16510 freebsd-elf*)
16511 archive_cmds_need_lc_CXX=no
16512 ;;
16513
16514 freebsd* | dragonfly*)
16515 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16516 # conventions
16517 ld_shlibs_CXX=yes
16518 ;;
16519
16520 gnu*)
16521 ;;
16522
cristy0c60a692010-11-04 01:09:47 +000016523 haiku*)
16524 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16525 link_all_deplibs_CXX=yes
16526 ;;
16527
cristy73bd4a52010-10-05 11:24:23 +000016528 hpux9*)
16529 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16530 hardcode_libdir_separator_CXX=:
16531 export_dynamic_flag_spec_CXX='${wl}-E'
16532 hardcode_direct_CXX=yes
16533 hardcode_minus_L_CXX=yes # Not in the search PATH,
16534 # but as the default
16535 # location of the library.
16536
16537 case $cc_basename in
16538 CC*)
16539 # FIXME: insert proper C++ library support
16540 ld_shlibs_CXX=no
16541 ;;
16542 aCC*)
16543 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'
16544 # Commands to make compiler produce verbose output that lists
16545 # what "hidden" libraries, object files and flags are used when
16546 # linking a shared library.
16547 #
16548 # There doesn't appear to be a way to prevent this compiler from
16549 # explicitly linking system object files so we need to strip them
16550 # from the output so that they don't get included in the library
16551 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000016552 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"'
cristy73bd4a52010-10-05 11:24:23 +000016553 ;;
16554 *)
16555 if test "$GXX" = yes; then
16556 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'
16557 else
16558 # FIXME: insert proper C++ library support
16559 ld_shlibs_CXX=no
16560 fi
16561 ;;
16562 esac
16563 ;;
16564
16565 hpux10*|hpux11*)
16566 if test $with_gnu_ld = no; then
16567 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16568 hardcode_libdir_separator_CXX=:
16569
16570 case $host_cpu in
16571 hppa*64*|ia64*)
16572 ;;
16573 *)
16574 export_dynamic_flag_spec_CXX='${wl}-E'
16575 ;;
16576 esac
16577 fi
16578 case $host_cpu in
16579 hppa*64*|ia64*)
16580 hardcode_direct_CXX=no
16581 hardcode_shlibpath_var_CXX=no
16582 ;;
16583 *)
16584 hardcode_direct_CXX=yes
16585 hardcode_direct_absolute_CXX=yes
16586 hardcode_minus_L_CXX=yes # Not in the search PATH,
16587 # but as the default
16588 # location of the library.
16589 ;;
16590 esac
16591
16592 case $cc_basename in
16593 CC*)
16594 # FIXME: insert proper C++ library support
16595 ld_shlibs_CXX=no
16596 ;;
16597 aCC*)
16598 case $host_cpu in
16599 hppa*64*)
16600 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16601 ;;
16602 ia64*)
16603 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16604 ;;
16605 *)
16606 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16607 ;;
16608 esac
16609 # Commands to make compiler produce verbose output that lists
16610 # what "hidden" libraries, object files and flags are used when
16611 # linking a shared library.
16612 #
16613 # There doesn't appear to be a way to prevent this compiler from
16614 # explicitly linking system object files so we need to strip them
16615 # from the output so that they don't get included in the library
16616 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000016617 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"'
cristy73bd4a52010-10-05 11:24:23 +000016618 ;;
16619 *)
16620 if test "$GXX" = yes; then
16621 if test $with_gnu_ld = no; then
16622 case $host_cpu in
16623 hppa*64*)
16624 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16625 ;;
16626 ia64*)
16627 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16628 ;;
16629 *)
16630 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'
16631 ;;
16632 esac
16633 fi
16634 else
16635 # FIXME: insert proper C++ library support
16636 ld_shlibs_CXX=no
16637 fi
16638 ;;
16639 esac
16640 ;;
16641
16642 interix[3-9]*)
16643 hardcode_direct_CXX=no
16644 hardcode_shlibpath_var_CXX=no
16645 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16646 export_dynamic_flag_spec_CXX='${wl}-E'
16647 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16648 # Instead, shared libraries are loaded at an image base (0x10000000 by
16649 # default) and relocated if they conflict, which is a slow very memory
16650 # consuming and fragmenting process. To avoid this, we pick a random,
16651 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16652 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16653 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'
16654 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'
16655 ;;
16656 irix5* | irix6*)
16657 case $cc_basename in
16658 CC*)
16659 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000016660 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'
cristy73bd4a52010-10-05 11:24:23 +000016661
16662 # Archives containing C++ object files must be created using
16663 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16664 # necessary to make sure instantiated templates are included
16665 # in the archive.
16666 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16667 ;;
16668 *)
16669 if test "$GXX" = yes; then
16670 if test "$with_gnu_ld" = no; then
cristy0c60a692010-11-04 01:09:47 +000016671 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'
cristy73bd4a52010-10-05 11:24:23 +000016672 else
cristy0c60a692010-11-04 01:09:47 +000016673 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016674 fi
16675 fi
16676 link_all_deplibs_CXX=yes
16677 ;;
16678 esac
16679 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16680 hardcode_libdir_separator_CXX=:
16681 inherit_rpath_CXX=yes
16682 ;;
16683
cristy0c60a692010-11-04 01:09:47 +000016684 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000016685 case $cc_basename in
16686 KCC*)
16687 # Kuck and Associates, Inc. (KAI) C++ Compiler
16688
16689 # KCC will only create a shared library if the output file
16690 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16691 # to its proper name (with version) after linking.
16692 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'
16693 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'
16694 # Commands to make compiler produce verbose output that lists
16695 # what "hidden" libraries, object files and flags are used when
16696 # linking a shared library.
16697 #
16698 # There doesn't appear to be a way to prevent this compiler from
16699 # explicitly linking system object files so we need to strip them
16700 # from the output so that they don't get included in the library
16701 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000016702 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"'
cristy73bd4a52010-10-05 11:24:23 +000016703
16704 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16705 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16706
16707 # Archives containing C++ object files must be created using
16708 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16709 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16710 ;;
16711 icpc* | ecpc* )
16712 # Intel C++
16713 with_gnu_ld=yes
16714 # version 8.0 and above of icpc choke on multiply defined symbols
16715 # if we add $predep_objects and $postdep_objects, however 7.1 and
16716 # earlier do not add the objects themselves.
16717 case `$CC -V 2>&1` in
16718 *"Version 7."*)
16719 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16720 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'
16721 ;;
16722 *) # Version 8.0 or newer
16723 tmp_idyn=
16724 case $host_cpu in
16725 ia64*) tmp_idyn=' -i_dynamic';;
16726 esac
16727 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16728 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'
16729 ;;
16730 esac
16731 archive_cmds_need_lc_CXX=no
16732 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16733 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16734 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16735 ;;
16736 pgCC* | pgcpp*)
16737 # Portland Group C++ compiler
16738 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000016739 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000016740 prelink_cmds_CXX='tpldir=Template.dir~
16741 rm -rf $tpldir~
16742 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000016743 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000016744 old_archive_cmds_CXX='tpldir=Template.dir~
16745 rm -rf $tpldir~
16746 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000016747 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000016748 $RANLIB $oldlib'
16749 archive_cmds_CXX='tpldir=Template.dir~
16750 rm -rf $tpldir~
16751 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000016752 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016753 archive_expsym_cmds_CXX='tpldir=Template.dir~
16754 rm -rf $tpldir~
16755 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000016756 $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'
cristy73bd4a52010-10-05 11:24:23 +000016757 ;;
cristy0c60a692010-11-04 01:09:47 +000016758 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000016759 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16760 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'
16761 ;;
16762 esac
16763
16764 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16765 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000016766 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'
cristy73bd4a52010-10-05 11:24:23 +000016767 ;;
16768 cxx*)
16769 # Compaq C++
16770 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16771 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'
16772
16773 runpath_var=LD_RUN_PATH
16774 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16775 hardcode_libdir_separator_CXX=:
16776
16777 # Commands to make compiler produce verbose output that lists
16778 # what "hidden" libraries, object files and flags are used when
16779 # linking a shared library.
16780 #
16781 # There doesn't appear to be a way to prevent this compiler from
16782 # explicitly linking system object files so we need to strip them
16783 # from the output so that they don't get included in the library
16784 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000016785 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'
cristy73bd4a52010-10-05 11:24:23 +000016786 ;;
cristy0c60a692010-11-04 01:09:47 +000016787 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000016788 # IBM XL 8.0 on PPC, with GNU ld
16789 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16790 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16791 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16792 if test "x$supports_anon_versioning" = xyes; then
16793 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16794 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16795 echo "local: *; };" >> $output_objdir/$libname.ver~
16796 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16797 fi
16798 ;;
16799 *)
16800 case `$CC -V 2>&1 | sed 5q` in
16801 *Sun\ C*)
16802 # Sun C++ 5.9
16803 no_undefined_flag_CXX=' -zdefs'
16804 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16805 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'
16806 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000016807 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'
cristy73bd4a52010-10-05 11:24:23 +000016808 compiler_needs_object_CXX=yes
16809
16810 # Not sure whether something based on
16811 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16812 # would be better.
cristy0c60a692010-11-04 01:09:47 +000016813 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000016814
16815 # Archives containing C++ object files must be created using
16816 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16817 # necessary to make sure instantiated templates are included
16818 # in the archive.
16819 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16820 ;;
16821 esac
16822 ;;
16823 esac
16824 ;;
16825
16826 lynxos*)
16827 # FIXME: insert proper C++ library support
16828 ld_shlibs_CXX=no
16829 ;;
16830
16831 m88k*)
16832 # FIXME: insert proper C++ library support
16833 ld_shlibs_CXX=no
16834 ;;
16835
16836 mvs*)
16837 case $cc_basename in
16838 cxx*)
16839 # FIXME: insert proper C++ library support
16840 ld_shlibs_CXX=no
16841 ;;
16842 *)
16843 # FIXME: insert proper C++ library support
16844 ld_shlibs_CXX=no
16845 ;;
16846 esac
16847 ;;
16848
16849 netbsd*)
16850 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16851 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16852 wlarc=
16853 hardcode_libdir_flag_spec_CXX='-R$libdir'
16854 hardcode_direct_CXX=yes
16855 hardcode_shlibpath_var_CXX=no
16856 fi
16857 # Workaround some broken pre-1.5 toolchains
16858 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16859 ;;
16860
16861 *nto* | *qnx*)
16862 ld_shlibs_CXX=yes
16863 ;;
16864
16865 openbsd2*)
16866 # C++ shared libraries are fairly broken
16867 ld_shlibs_CXX=no
16868 ;;
16869
16870 openbsd*)
16871 if test -f /usr/libexec/ld.so; then
16872 hardcode_direct_CXX=yes
16873 hardcode_shlibpath_var_CXX=no
16874 hardcode_direct_absolute_CXX=yes
16875 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16876 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16877 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16878 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16879 export_dynamic_flag_spec_CXX='${wl}-E'
16880 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16881 fi
cristy0c60a692010-11-04 01:09:47 +000016882 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000016883 else
16884 ld_shlibs_CXX=no
16885 fi
16886 ;;
16887
16888 osf3* | osf4* | osf5*)
16889 case $cc_basename in
16890 KCC*)
16891 # Kuck and Associates, Inc. (KAI) C++ Compiler
16892
16893 # KCC will only create a shared library if the output file
16894 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16895 # to its proper name (with version) after linking.
16896 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'
16897
16898 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16899 hardcode_libdir_separator_CXX=:
16900
16901 # Archives containing C++ object files must be created using
16902 # the KAI C++ compiler.
16903 case $host in
16904 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16905 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16906 esac
16907 ;;
16908 RCC*)
16909 # Rational C++ 2.4.1
16910 # FIXME: insert proper C++ library support
16911 ld_shlibs_CXX=no
16912 ;;
16913 cxx*)
16914 case $host in
16915 osf3*)
16916 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000016917 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'
cristy73bd4a52010-10-05 11:24:23 +000016918 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16919 ;;
16920 *)
16921 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000016922 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'
cristy73bd4a52010-10-05 11:24:23 +000016923 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16924 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000016925 $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~
cristy73bd4a52010-10-05 11:24:23 +000016926 $RM $lib.exp'
16927 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16928 ;;
16929 esac
16930
16931 hardcode_libdir_separator_CXX=:
16932
16933 # Commands to make compiler produce verbose output that lists
16934 # what "hidden" libraries, object files and flags are used when
16935 # linking a shared library.
16936 #
16937 # There doesn't appear to be a way to prevent this compiler from
16938 # explicitly linking system object files so we need to strip them
16939 # from the output so that they don't get included in the library
16940 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000016941 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"'
cristy73bd4a52010-10-05 11:24:23 +000016942 ;;
16943 *)
16944 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16945 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16946 case $host in
16947 osf3*)
cristy0c60a692010-11-04 01:09:47 +000016948 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'
cristy73bd4a52010-10-05 11:24:23 +000016949 ;;
16950 *)
cristy0c60a692010-11-04 01:09:47 +000016951 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'
cristy73bd4a52010-10-05 11:24:23 +000016952 ;;
16953 esac
16954
16955 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16956 hardcode_libdir_separator_CXX=:
16957
16958 # Commands to make compiler produce verbose output that lists
16959 # what "hidden" libraries, object files and flags are used when
16960 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000016961 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000016962
16963 else
16964 # FIXME: insert proper C++ library support
16965 ld_shlibs_CXX=no
16966 fi
16967 ;;
16968 esac
16969 ;;
16970
16971 psos*)
16972 # FIXME: insert proper C++ library support
16973 ld_shlibs_CXX=no
16974 ;;
16975
16976 sunos4*)
16977 case $cc_basename in
16978 CC*)
16979 # Sun C++ 4.x
16980 # FIXME: insert proper C++ library support
16981 ld_shlibs_CXX=no
16982 ;;
16983 lcc*)
16984 # Lucid
16985 # FIXME: insert proper C++ library support
16986 ld_shlibs_CXX=no
16987 ;;
16988 *)
16989 # FIXME: insert proper C++ library support
16990 ld_shlibs_CXX=no
16991 ;;
16992 esac
16993 ;;
16994
16995 solaris*)
16996 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000016997 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000016998 # Sun C++ 4.2, 5.x and Centerline C++
16999 archive_cmds_need_lc_CXX=yes
17000 no_undefined_flag_CXX=' -zdefs'
17001 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17002 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17003 $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'
17004
17005 hardcode_libdir_flag_spec_CXX='-R$libdir'
17006 hardcode_shlibpath_var_CXX=no
17007 case $host_os in
17008 solaris2.[0-5] | solaris2.[0-5].*) ;;
17009 *)
17010 # The compiler driver will combine and reorder linker options,
17011 # but understands `-z linker_flag'.
17012 # Supported since Solaris 2.6 (maybe 2.5.1?)
17013 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17014 ;;
17015 esac
17016 link_all_deplibs_CXX=yes
17017
cristy0c60a692010-11-04 01:09:47 +000017018 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017019
17020 # Archives containing C++ object files must be created using
17021 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17022 # necessary to make sure instantiated templates are included
17023 # in the archive.
17024 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17025 ;;
17026 gcx*)
17027 # Green Hills C++ Compiler
17028 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17029
17030 # The C++ compiler must be used to create the archive.
17031 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17032 ;;
17033 *)
17034 # GNU C++ compiler with Solaris linker
17035 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17036 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17037 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17038 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17039 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17040 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17041
17042 # Commands to make compiler produce verbose output that lists
17043 # what "hidden" libraries, object files and flags are used when
17044 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017045 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017046 else
17047 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17048 # platform.
17049 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17050 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17051 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17052
17053 # Commands to make compiler produce verbose output that lists
17054 # what "hidden" libraries, object files and flags are used when
17055 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017056 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017057 fi
17058
17059 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17060 case $host_os in
17061 solaris2.[0-5] | solaris2.[0-5].*) ;;
17062 *)
17063 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17064 ;;
17065 esac
17066 fi
17067 ;;
17068 esac
17069 ;;
17070
17071 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17072 no_undefined_flag_CXX='${wl}-z,text'
17073 archive_cmds_need_lc_CXX=no
17074 hardcode_shlibpath_var_CXX=no
17075 runpath_var='LD_RUN_PATH'
17076
17077 case $cc_basename in
17078 CC*)
17079 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17080 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17081 ;;
17082 *)
17083 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17084 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17085 ;;
17086 esac
17087 ;;
17088
17089 sysv5* | sco3.2v5* | sco5v6*)
17090 # Note: We can NOT use -z defs as we might desire, because we do not
17091 # link with -lc, and that would cause any symbols used from libc to
17092 # always be unresolved, which means just about no library would
17093 # ever link correctly. If we're not using GNU ld we use -z text
17094 # though, which does catch some bad symbols but isn't as heavy-handed
17095 # as -z defs.
17096 no_undefined_flag_CXX='${wl}-z,text'
17097 allow_undefined_flag_CXX='${wl}-z,nodefs'
17098 archive_cmds_need_lc_CXX=no
17099 hardcode_shlibpath_var_CXX=no
17100 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17101 hardcode_libdir_separator_CXX=':'
17102 link_all_deplibs_CXX=yes
17103 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17104 runpath_var='LD_RUN_PATH'
17105
17106 case $cc_basename in
17107 CC*)
17108 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17109 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy0c60a692010-11-04 01:09:47 +000017110 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17111 '"$old_archive_cmds_CXX"
17112 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17113 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000017114 ;;
17115 *)
17116 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17117 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17118 ;;
17119 esac
17120 ;;
17121
17122 tandem*)
17123 case $cc_basename in
17124 NCC*)
17125 # NonStop-UX NCC 3.20
17126 # FIXME: insert proper C++ library support
17127 ld_shlibs_CXX=no
17128 ;;
17129 *)
17130 # FIXME: insert proper C++ library support
17131 ld_shlibs_CXX=no
17132 ;;
17133 esac
17134 ;;
17135
17136 vxworks*)
17137 # FIXME: insert proper C++ library support
17138 ld_shlibs_CXX=no
17139 ;;
17140
17141 *)
17142 # FIXME: insert proper C++ library support
17143 ld_shlibs_CXX=no
17144 ;;
17145 esac
17146
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17148$as_echo "$ld_shlibs_CXX" >&6; }
17149 test "$ld_shlibs_CXX" = no && can_build_shared=no
17150
17151 GCC_CXX="$GXX"
17152 LD_CXX="$LD"
17153
17154 ## CAVEAT EMPTOR:
17155 ## There is no encapsulation within the following macros, do not change
17156 ## the running order or otherwise move them around unless you know exactly
17157 ## what you are doing...
17158 # Dependencies to place before and after the object being linked:
17159predep_objects_CXX=
17160postdep_objects_CXX=
17161predeps_CXX=
17162postdeps_CXX=
17163compiler_lib_search_path_CXX=
17164
17165cat > conftest.$ac_ext <<_LT_EOF
17166class Foo
17167{
17168public:
17169 Foo (void) { a = 0; }
17170private:
17171 int a;
17172};
17173_LT_EOF
17174
17175if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17176 (eval $ac_compile) 2>&5
17177 ac_status=$?
17178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17179 test $ac_status = 0; }; then
17180 # Parse the compiler output and extract the necessary
17181 # objects, libraries and library flags.
17182
17183 # Sentinel used to keep track of whether or not we are before
17184 # the conftest object file.
17185 pre_test_object_deps_done=no
17186
17187 for p in `eval "$output_verbose_link_cmd"`; do
17188 case $p in
17189
17190 -L* | -R* | -l*)
17191 # Some compilers place space between "-{L,R}" and the path.
17192 # Remove the space.
17193 if test $p = "-L" ||
17194 test $p = "-R"; then
17195 prev=$p
17196 continue
17197 else
17198 prev=
17199 fi
17200
17201 if test "$pre_test_object_deps_done" = no; then
17202 case $p in
17203 -L* | -R*)
17204 # Internal compiler library paths should come after those
17205 # provided the user. The postdeps already come after the
17206 # user supplied libs so there is no need to process them.
17207 if test -z "$compiler_lib_search_path_CXX"; then
17208 compiler_lib_search_path_CXX="${prev}${p}"
17209 else
17210 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17211 fi
17212 ;;
17213 # The "-l" case would never come before the object being
17214 # linked, so don't bother handling this case.
17215 esac
17216 else
17217 if test -z "$postdeps_CXX"; then
17218 postdeps_CXX="${prev}${p}"
17219 else
17220 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17221 fi
17222 fi
17223 ;;
17224
17225 *.$objext)
17226 # This assumes that the test object file only shows up
17227 # once in the compiler output.
17228 if test "$p" = "conftest.$objext"; then
17229 pre_test_object_deps_done=yes
17230 continue
17231 fi
17232
17233 if test "$pre_test_object_deps_done" = no; then
17234 if test -z "$predep_objects_CXX"; then
17235 predep_objects_CXX="$p"
17236 else
17237 predep_objects_CXX="$predep_objects_CXX $p"
17238 fi
17239 else
17240 if test -z "$postdep_objects_CXX"; then
17241 postdep_objects_CXX="$p"
17242 else
17243 postdep_objects_CXX="$postdep_objects_CXX $p"
17244 fi
17245 fi
17246 ;;
17247
17248 *) ;; # Ignore the rest.
17249
17250 esac
17251 done
17252
17253 # Clean up.
17254 rm -f a.out a.exe
17255else
17256 echo "libtool.m4: error: problem compiling CXX test program"
17257fi
17258
17259$RM -f confest.$objext
17260
17261# PORTME: override above test on systems where it is broken
17262case $host_os in
17263interix[3-9]*)
17264 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17265 # hack all around it, let's just trust "g++" to DTRT.
17266 predep_objects_CXX=
17267 postdep_objects_CXX=
17268 postdeps_CXX=
17269 ;;
17270
17271linux*)
17272 case `$CC -V 2>&1 | sed 5q` in
17273 *Sun\ C*)
17274 # Sun C++ 5.9
17275
17276 # The more standards-conforming stlport4 library is
17277 # incompatible with the Cstd library. Avoid specifying
17278 # it if it's in CXXFLAGS. Ignore libCrun as
17279 # -library=stlport4 depends on it.
17280 case " $CXX $CXXFLAGS " in
17281 *" -library=stlport4 "*)
17282 solaris_use_stlport4=yes
17283 ;;
17284 esac
17285
17286 if test "$solaris_use_stlport4" != yes; then
17287 postdeps_CXX='-library=Cstd -library=Crun'
17288 fi
17289 ;;
17290 esac
17291 ;;
17292
17293solaris*)
17294 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000017295 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000017296 # The more standards-conforming stlport4 library is
17297 # incompatible with the Cstd library. Avoid specifying
17298 # it if it's in CXXFLAGS. Ignore libCrun as
17299 # -library=stlport4 depends on it.
17300 case " $CXX $CXXFLAGS " in
17301 *" -library=stlport4 "*)
17302 solaris_use_stlport4=yes
17303 ;;
17304 esac
17305
17306 # Adding this requires a known-good setup of shared libraries for
17307 # Sun compiler versions before 5.6, else PIC objects from an old
17308 # archive will be linked into the output, leading to subtle bugs.
17309 if test "$solaris_use_stlport4" != yes; then
17310 postdeps_CXX='-library=Cstd -library=Crun'
17311 fi
17312 ;;
17313 esac
17314 ;;
17315esac
17316
17317
17318case " $postdeps_CXX " in
17319*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17320esac
17321 compiler_lib_search_dirs_CXX=
17322if test -n "${compiler_lib_search_path_CXX}"; then
17323 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17324fi
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356 lt_prog_compiler_wl_CXX=
17357lt_prog_compiler_pic_CXX=
17358lt_prog_compiler_static_CXX=
17359
17360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17361$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17362
17363 # C++ specific cases for pic, static, wl, etc.
17364 if test "$GXX" = yes; then
17365 lt_prog_compiler_wl_CXX='-Wl,'
17366 lt_prog_compiler_static_CXX='-static'
17367
17368 case $host_os in
17369 aix*)
17370 # All AIX code is PIC.
17371 if test "$host_cpu" = ia64; then
17372 # AIX 5 now supports IA64 processor
17373 lt_prog_compiler_static_CXX='-Bstatic'
17374 fi
17375 ;;
17376
17377 amigaos*)
17378 case $host_cpu in
17379 powerpc)
17380 # see comment about AmigaOS4 .so support
17381 lt_prog_compiler_pic_CXX='-fPIC'
17382 ;;
17383 m68k)
17384 # FIXME: we need at least 68020 code to build shared libraries, but
17385 # adding the `-m68020' flag to GCC prevents building anything better,
17386 # like `-m68040'.
17387 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17388 ;;
17389 esac
17390 ;;
17391
17392 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17393 # PIC is the default for these OSes.
17394 ;;
17395 mingw* | cygwin* | os2* | pw32* | cegcc*)
17396 # This hack is so that the source file can tell whether it is being
17397 # built for inclusion in a dll (and should export symbols for example).
17398 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17399 # (--disable-auto-import) libraries
17400 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17401 ;;
17402 darwin* | rhapsody*)
17403 # PIC is the default on this platform
17404 # Common symbols not allowed in MH_DYLIB files
17405 lt_prog_compiler_pic_CXX='-fno-common'
17406 ;;
17407 *djgpp*)
17408 # DJGPP does not support shared libraries at all
17409 lt_prog_compiler_pic_CXX=
17410 ;;
cristy0c60a692010-11-04 01:09:47 +000017411 haiku*)
17412 # PIC is the default for Haiku.
17413 # The "-static" flag exists, but is broken.
17414 lt_prog_compiler_static_CXX=
17415 ;;
cristy73bd4a52010-10-05 11:24:23 +000017416 interix[3-9]*)
17417 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17418 # Instead, we relocate shared libraries at runtime.
17419 ;;
17420 sysv4*MP*)
17421 if test -d /usr/nec; then
17422 lt_prog_compiler_pic_CXX=-Kconform_pic
17423 fi
17424 ;;
17425 hpux*)
17426 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17427 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17428 # sets the default TLS model and affects inlining.
17429 case $host_cpu in
17430 hppa*64*)
17431 ;;
17432 *)
17433 lt_prog_compiler_pic_CXX='-fPIC'
17434 ;;
17435 esac
17436 ;;
17437 *qnx* | *nto*)
17438 # QNX uses GNU C++, but need to define -shared option too, otherwise
17439 # it will coredump.
17440 lt_prog_compiler_pic_CXX='-fPIC -shared'
17441 ;;
17442 *)
17443 lt_prog_compiler_pic_CXX='-fPIC'
17444 ;;
17445 esac
17446 else
17447 case $host_os in
17448 aix[4-9]*)
17449 # All AIX code is PIC.
17450 if test "$host_cpu" = ia64; then
17451 # AIX 5 now supports IA64 processor
17452 lt_prog_compiler_static_CXX='-Bstatic'
17453 else
17454 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17455 fi
17456 ;;
17457 chorus*)
17458 case $cc_basename in
17459 cxch68*)
17460 # Green Hills C++ Compiler
17461 # _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"
17462 ;;
17463 esac
17464 ;;
17465 dgux*)
17466 case $cc_basename in
17467 ec++*)
17468 lt_prog_compiler_pic_CXX='-KPIC'
17469 ;;
17470 ghcx*)
17471 # Green Hills C++ Compiler
17472 lt_prog_compiler_pic_CXX='-pic'
17473 ;;
17474 *)
17475 ;;
17476 esac
17477 ;;
17478 freebsd* | dragonfly*)
17479 # FreeBSD uses GNU C++
17480 ;;
17481 hpux9* | hpux10* | hpux11*)
17482 case $cc_basename in
17483 CC*)
17484 lt_prog_compiler_wl_CXX='-Wl,'
17485 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17486 if test "$host_cpu" != ia64; then
17487 lt_prog_compiler_pic_CXX='+Z'
17488 fi
17489 ;;
17490 aCC*)
17491 lt_prog_compiler_wl_CXX='-Wl,'
17492 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17493 case $host_cpu in
17494 hppa*64*|ia64*)
17495 # +Z the default
17496 ;;
17497 *)
17498 lt_prog_compiler_pic_CXX='+Z'
17499 ;;
17500 esac
17501 ;;
17502 *)
17503 ;;
17504 esac
17505 ;;
17506 interix*)
17507 # This is c89, which is MS Visual C++ (no shared libs)
17508 # Anyone wants to do a port?
17509 ;;
17510 irix5* | irix6* | nonstopux*)
17511 case $cc_basename in
17512 CC*)
17513 lt_prog_compiler_wl_CXX='-Wl,'
17514 lt_prog_compiler_static_CXX='-non_shared'
17515 # CC pic flag -KPIC is the default.
17516 ;;
17517 *)
17518 ;;
17519 esac
17520 ;;
cristy0c60a692010-11-04 01:09:47 +000017521 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017522 case $cc_basename in
17523 KCC*)
17524 # KAI C++ Compiler
17525 lt_prog_compiler_wl_CXX='--backend -Wl,'
17526 lt_prog_compiler_pic_CXX='-fPIC'
17527 ;;
17528 ecpc* )
17529 # old Intel C++ for x86_64 which still supported -KPIC.
17530 lt_prog_compiler_wl_CXX='-Wl,'
17531 lt_prog_compiler_pic_CXX='-KPIC'
17532 lt_prog_compiler_static_CXX='-static'
17533 ;;
17534 icpc* )
17535 # Intel C++, used to be incompatible with GCC.
17536 # ICC 10 doesn't accept -KPIC any more.
17537 lt_prog_compiler_wl_CXX='-Wl,'
17538 lt_prog_compiler_pic_CXX='-fPIC'
17539 lt_prog_compiler_static_CXX='-static'
17540 ;;
17541 pgCC* | pgcpp*)
17542 # Portland Group C++ compiler
17543 lt_prog_compiler_wl_CXX='-Wl,'
17544 lt_prog_compiler_pic_CXX='-fpic'
17545 lt_prog_compiler_static_CXX='-Bstatic'
17546 ;;
17547 cxx*)
17548 # Compaq C++
17549 # Make sure the PIC flag is empty. It appears that all Alpha
17550 # Linux and Compaq Tru64 Unix objects are PIC.
17551 lt_prog_compiler_pic_CXX=
17552 lt_prog_compiler_static_CXX='-non_shared'
17553 ;;
cristy0c60a692010-11-04 01:09:47 +000017554 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17555 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000017556 lt_prog_compiler_wl_CXX='-Wl,'
17557 lt_prog_compiler_pic_CXX='-qpic'
17558 lt_prog_compiler_static_CXX='-qstaticlink'
17559 ;;
17560 *)
17561 case `$CC -V 2>&1 | sed 5q` in
17562 *Sun\ C*)
17563 # Sun C++ 5.9
17564 lt_prog_compiler_pic_CXX='-KPIC'
17565 lt_prog_compiler_static_CXX='-Bstatic'
17566 lt_prog_compiler_wl_CXX='-Qoption ld '
17567 ;;
17568 esac
17569 ;;
17570 esac
17571 ;;
17572 lynxos*)
17573 ;;
17574 m88k*)
17575 ;;
17576 mvs*)
17577 case $cc_basename in
17578 cxx*)
17579 lt_prog_compiler_pic_CXX='-W c,exportall'
17580 ;;
17581 *)
17582 ;;
17583 esac
17584 ;;
17585 netbsd*)
17586 ;;
17587 *qnx* | *nto*)
17588 # QNX uses GNU C++, but need to define -shared option too, otherwise
17589 # it will coredump.
17590 lt_prog_compiler_pic_CXX='-fPIC -shared'
17591 ;;
17592 osf3* | osf4* | osf5*)
17593 case $cc_basename in
17594 KCC*)
17595 lt_prog_compiler_wl_CXX='--backend -Wl,'
17596 ;;
17597 RCC*)
17598 # Rational C++ 2.4.1
17599 lt_prog_compiler_pic_CXX='-pic'
17600 ;;
17601 cxx*)
17602 # Digital/Compaq C++
17603 lt_prog_compiler_wl_CXX='-Wl,'
17604 # Make sure the PIC flag is empty. It appears that all Alpha
17605 # Linux and Compaq Tru64 Unix objects are PIC.
17606 lt_prog_compiler_pic_CXX=
17607 lt_prog_compiler_static_CXX='-non_shared'
17608 ;;
17609 *)
17610 ;;
17611 esac
17612 ;;
17613 psos*)
17614 ;;
17615 solaris*)
17616 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000017617 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000017618 # Sun C++ 4.2, 5.x and Centerline C++
17619 lt_prog_compiler_pic_CXX='-KPIC'
17620 lt_prog_compiler_static_CXX='-Bstatic'
17621 lt_prog_compiler_wl_CXX='-Qoption ld '
17622 ;;
17623 gcx*)
17624 # Green Hills C++ Compiler
17625 lt_prog_compiler_pic_CXX='-PIC'
17626 ;;
17627 *)
17628 ;;
17629 esac
17630 ;;
17631 sunos4*)
17632 case $cc_basename in
17633 CC*)
17634 # Sun C++ 4.x
17635 lt_prog_compiler_pic_CXX='-pic'
17636 lt_prog_compiler_static_CXX='-Bstatic'
17637 ;;
17638 lcc*)
17639 # Lucid
17640 lt_prog_compiler_pic_CXX='-pic'
17641 ;;
17642 *)
17643 ;;
17644 esac
17645 ;;
17646 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17647 case $cc_basename in
17648 CC*)
17649 lt_prog_compiler_wl_CXX='-Wl,'
17650 lt_prog_compiler_pic_CXX='-KPIC'
17651 lt_prog_compiler_static_CXX='-Bstatic'
17652 ;;
17653 esac
17654 ;;
17655 tandem*)
17656 case $cc_basename in
17657 NCC*)
17658 # NonStop-UX NCC 3.20
17659 lt_prog_compiler_pic_CXX='-KPIC'
17660 ;;
17661 *)
17662 ;;
17663 esac
17664 ;;
17665 vxworks*)
17666 ;;
17667 *)
17668 lt_prog_compiler_can_build_shared_CXX=no
17669 ;;
17670 esac
17671 fi
17672
17673case $host_os in
17674 # For platforms which do not support PIC, -DPIC is meaningless:
17675 *djgpp*)
17676 lt_prog_compiler_pic_CXX=
17677 ;;
17678 *)
17679 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17680 ;;
17681esac
17682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
17683$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17684
17685
17686
17687#
17688# Check to make sure the PIC flag actually works.
17689#
17690if test -n "$lt_prog_compiler_pic_CXX"; then
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17692$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17693if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
17694 $as_echo_n "(cached) " >&6
17695else
17696 lt_cv_prog_compiler_pic_works_CXX=no
17697 ac_outfile=conftest.$ac_objext
17698 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17699 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17700 # Insert the option either (1) after the last *FLAGS variable, or
17701 # (2) before a word containing "conftest.", or (3) at the end.
17702 # Note that $ac_compile itself does not contain backslashes and begins
17703 # with a dollar sign (not a hyphen), so the echo should work correctly.
17704 # The option is referenced via a variable to avoid confusing sed.
17705 lt_compile=`echo "$ac_compile" | $SED \
17706 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17707 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17708 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000017709 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000017710 (eval "$lt_compile" 2>conftest.err)
17711 ac_status=$?
17712 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000017713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000017714 if (exit $ac_status) && test -s "$ac_outfile"; then
17715 # The compiler can only warn and ignore the option if not recognized
17716 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000017717 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000017718 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17719 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17720 lt_cv_prog_compiler_pic_works_CXX=yes
17721 fi
17722 fi
17723 $RM conftest*
17724
17725fi
17726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17727$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17728
17729if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17730 case $lt_prog_compiler_pic_CXX in
17731 "" | " "*) ;;
17732 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17733 esac
17734else
17735 lt_prog_compiler_pic_CXX=
17736 lt_prog_compiler_can_build_shared_CXX=no
17737fi
17738
17739fi
17740
17741
17742
17743#
17744# Check to make sure the static flag actually works.
17745#
17746wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17748$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17749if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
17750 $as_echo_n "(cached) " >&6
17751else
17752 lt_cv_prog_compiler_static_works_CXX=no
17753 save_LDFLAGS="$LDFLAGS"
17754 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17755 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17756 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17757 # The linker can only warn and ignore the option if not recognized
17758 # So say no if there are warnings
17759 if test -s conftest.err; then
17760 # Append any errors to the config.log.
17761 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000017762 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000017763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17764 if diff conftest.exp conftest.er2 >/dev/null; then
17765 lt_cv_prog_compiler_static_works_CXX=yes
17766 fi
17767 else
17768 lt_cv_prog_compiler_static_works_CXX=yes
17769 fi
17770 fi
17771 $RM -r conftest*
17772 LDFLAGS="$save_LDFLAGS"
17773
17774fi
17775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17776$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17777
17778if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17779 :
17780else
17781 lt_prog_compiler_static_CXX=
17782fi
17783
17784
17785
17786
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17788$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17789if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17790 $as_echo_n "(cached) " >&6
17791else
17792 lt_cv_prog_compiler_c_o_CXX=no
17793 $RM -r conftest 2>/dev/null
17794 mkdir conftest
17795 cd conftest
17796 mkdir out
17797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17798
17799 lt_compiler_flag="-o out/conftest2.$ac_objext"
17800 # Insert the option either (1) after the last *FLAGS variable, or
17801 # (2) before a word containing "conftest.", or (3) at the end.
17802 # Note that $ac_compile itself does not contain backslashes and begins
17803 # with a dollar sign (not a hyphen), so the echo should work correctly.
17804 lt_compile=`echo "$ac_compile" | $SED \
17805 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17807 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000017808 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000017809 (eval "$lt_compile" 2>out/conftest.err)
17810 ac_status=$?
17811 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000017812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000017813 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17814 then
17815 # The compiler can only warn and ignore the option if not recognized
17816 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000017817 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000017818 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17819 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17820 lt_cv_prog_compiler_c_o_CXX=yes
17821 fi
17822 fi
17823 chmod u+w . 2>&5
17824 $RM conftest*
17825 # SGI C++ compiler will create directory out/ii_files/ for
17826 # template instantiation
17827 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17828 $RM out/* && rmdir out
17829 cd ..
17830 $RM -r conftest
17831 $RM conftest*
17832
17833fi
17834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17835$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17836
17837
17838
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17840$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17841if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17842 $as_echo_n "(cached) " >&6
17843else
17844 lt_cv_prog_compiler_c_o_CXX=no
17845 $RM -r conftest 2>/dev/null
17846 mkdir conftest
17847 cd conftest
17848 mkdir out
17849 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17850
17851 lt_compiler_flag="-o out/conftest2.$ac_objext"
17852 # Insert the option either (1) after the last *FLAGS variable, or
17853 # (2) before a word containing "conftest.", or (3) at the end.
17854 # Note that $ac_compile itself does not contain backslashes and begins
17855 # with a dollar sign (not a hyphen), so the echo should work correctly.
17856 lt_compile=`echo "$ac_compile" | $SED \
17857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17859 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000017860 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000017861 (eval "$lt_compile" 2>out/conftest.err)
17862 ac_status=$?
17863 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000017864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000017865 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17866 then
17867 # The compiler can only warn and ignore the option if not recognized
17868 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000017869 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000017870 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17871 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17872 lt_cv_prog_compiler_c_o_CXX=yes
17873 fi
17874 fi
17875 chmod u+w . 2>&5
17876 $RM conftest*
17877 # SGI C++ compiler will create directory out/ii_files/ for
17878 # template instantiation
17879 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17880 $RM out/* && rmdir out
17881 cd ..
17882 $RM -r conftest
17883 $RM conftest*
17884
17885fi
17886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17887$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17888
17889
17890
17891
17892hard_links="nottested"
17893if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17894 # do not overwrite the value of need_locks provided by the user
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17896$as_echo_n "checking if we can lock with hard links... " >&6; }
17897 hard_links=yes
17898 $RM conftest*
17899 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17900 touch conftest.a
17901 ln conftest.a conftest.b 2>&5 || hard_links=no
17902 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17904$as_echo "$hard_links" >&6; }
17905 if test "$hard_links" = no; then
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17907$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17908 need_locks=warn
17909 fi
17910else
17911 need_locks=no
17912fi
17913
17914
17915
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17917$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17918
17919 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17920 case $host_os in
17921 aix[4-9]*)
17922 # If we're using GNU nm, then we don't want the "-C" option.
17923 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000017924 # Also, AIX nm treats weak defined symbols like other global defined
17925 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000017926 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000017927 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'
cristy73bd4a52010-10-05 11:24:23 +000017928 else
17929 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'
17930 fi
17931 ;;
17932 pw32*)
17933 export_symbols_cmds_CXX="$ltdll_cmds"
17934 ;;
17935 cygwin* | mingw* | cegcc*)
17936 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'
17937 ;;
17938 *)
17939 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17940 ;;
17941 esac
17942 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17943
17944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17945$as_echo "$ld_shlibs_CXX" >&6; }
17946test "$ld_shlibs_CXX" = no && can_build_shared=no
17947
17948with_gnu_ld_CXX=$with_gnu_ld
17949
17950
17951
17952
17953
17954
17955#
17956# Do we need to explicitly link libc?
17957#
17958case "x$archive_cmds_need_lc_CXX" in
17959x|xyes)
17960 # Assume -lc should be added
17961 archive_cmds_need_lc_CXX=yes
17962
17963 if test "$enable_shared" = yes && test "$GCC" = yes; then
17964 case $archive_cmds_CXX in
17965 *'~'*)
17966 # FIXME: we may have to deal with multi-command sequences.
17967 ;;
17968 '$CC '*)
17969 # Test whether the compiler implicitly links with -lc since on some
17970 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17971 # to ld, don't add -lc before -lgcc.
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17973$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy0c60a692010-11-04 01:09:47 +000017974if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
17975 $as_echo_n "(cached) " >&6
17976else
17977 $RM conftest*
17978 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017979
cristy0c60a692010-11-04 01:09:47 +000017980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000017981 (eval $ac_compile) 2>&5
17982 ac_status=$?
17983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17984 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000017985 soname=conftest
17986 lib=conftest
17987 libobjs=conftest.$ac_objext
17988 deplibs=
17989 wl=$lt_prog_compiler_wl_CXX
17990 pic_flag=$lt_prog_compiler_pic_CXX
17991 compiler_flags=-v
17992 linker_flags=-v
17993 verstring=
17994 output_objdir=.
17995 libname=conftest
17996 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17997 allow_undefined_flag_CXX=
17998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000017999 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18000 ac_status=$?
18001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18002 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000018003 then
18004 lt_cv_archive_cmds_need_lc_CXX=no
18005 else
18006 lt_cv_archive_cmds_need_lc_CXX=yes
18007 fi
18008 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18009 else
18010 cat conftest.err 1>&5
18011 fi
18012 $RM conftest*
18013
18014fi
18015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18016$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18017 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000018018 ;;
18019 esac
18020 fi
18021 ;;
18022esac
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18088$as_echo_n "checking dynamic linker characteristics... " >&6; }
18089
18090library_names_spec=
18091libname_spec='lib$name'
18092soname_spec=
18093shrext_cmds=".so"
18094postinstall_cmds=
18095postuninstall_cmds=
18096finish_cmds=
18097finish_eval=
18098shlibpath_var=
18099shlibpath_overrides_runpath=unknown
18100version_type=none
18101dynamic_linker="$host_os ld.so"
18102sys_lib_dlsearch_path_spec="/lib /usr/lib"
18103need_lib_prefix=unknown
18104hardcode_into_libs=no
18105
18106# when you set need_version to no, make sure it does not cause -set_version
18107# flags to be left without arguments
18108need_version=unknown
18109
18110case $host_os in
18111aix3*)
18112 version_type=linux
18113 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18114 shlibpath_var=LIBPATH
18115
18116 # AIX 3 has no versioning support, so we append a major version to the name.
18117 soname_spec='${libname}${release}${shared_ext}$major'
18118 ;;
18119
18120aix[4-9]*)
18121 version_type=linux
18122 need_lib_prefix=no
18123 need_version=no
18124 hardcode_into_libs=yes
18125 if test "$host_cpu" = ia64; then
18126 # AIX 5 supports IA64
18127 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18128 shlibpath_var=LD_LIBRARY_PATH
18129 else
18130 # With GCC up to 2.95.x, collect2 would create an import file
18131 # for dependence libraries. The import file would start with
18132 # the line `#! .'. This would cause the generated library to
18133 # depend on `.', always an invalid library. This was fixed in
18134 # development snapshots of GCC prior to 3.0.
18135 case $host_os in
18136 aix4 | aix4.[01] | aix4.[01].*)
18137 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18138 echo ' yes '
18139 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18140 :
18141 else
18142 can_build_shared=no
18143 fi
18144 ;;
18145 esac
18146 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18147 # soname into executable. Probably we can add versioning support to
18148 # collect2, so additional links can be useful in future.
18149 if test "$aix_use_runtimelinking" = yes; then
18150 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18151 # instead of lib<name>.a to let people know that these are not
18152 # typical AIX shared libraries.
18153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18154 else
18155 # We preserve .a as extension for shared libraries through AIX4.2
18156 # and later when we are not doing run time linking.
18157 library_names_spec='${libname}${release}.a $libname.a'
18158 soname_spec='${libname}${release}${shared_ext}$major'
18159 fi
18160 shlibpath_var=LIBPATH
18161 fi
18162 ;;
18163
18164amigaos*)
18165 case $host_cpu in
18166 powerpc)
18167 # Since July 2007 AmigaOS4 officially supports .so libraries.
18168 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18170 ;;
18171 m68k)
18172 library_names_spec='$libname.ixlibrary $libname.a'
18173 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000018174 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'
cristy73bd4a52010-10-05 11:24:23 +000018175 ;;
18176 esac
18177 ;;
18178
18179beos*)
18180 library_names_spec='${libname}${shared_ext}'
18181 dynamic_linker="$host_os ld.so"
18182 shlibpath_var=LIBRARY_PATH
18183 ;;
18184
18185bsdi[45]*)
18186 version_type=linux
18187 need_version=no
18188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18189 soname_spec='${libname}${release}${shared_ext}$major'
18190 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18191 shlibpath_var=LD_LIBRARY_PATH
18192 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18193 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18194 # the default ld.so.conf also contains /usr/contrib/lib and
18195 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18196 # libtool to hard-code these into programs
18197 ;;
18198
18199cygwin* | mingw* | pw32* | cegcc*)
18200 version_type=windows
18201 shrext_cmds=".dll"
18202 need_version=no
18203 need_lib_prefix=no
18204
18205 case $GCC,$host_os in
18206 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18207 library_names_spec='$libname.dll.a'
18208 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18209 postinstall_cmds='base_file=`basename \${file}`~
18210 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18211 dldir=$destdir/`dirname \$dlpath`~
18212 test -d \$dldir || mkdir -p \$dldir~
18213 $install_prog $dir/$dlname \$dldir/$dlname~
18214 chmod a+x \$dldir/$dlname~
18215 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18216 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18217 fi'
18218 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18219 dlpath=$dir/\$dldll~
18220 $RM \$dlpath'
18221 shlibpath_overrides_runpath=yes
18222
18223 case $host_os in
18224 cygwin*)
18225 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18226 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000018227
cristy73bd4a52010-10-05 11:24:23 +000018228 ;;
18229 mingw* | cegcc*)
18230 # MinGW DLLs use traditional 'lib' prefix
18231 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000018232 ;;
18233 pw32*)
18234 # pw32 DLLs use 'pw' prefix rather than 'lib'
18235 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18236 ;;
18237 esac
18238 ;;
18239
18240 *)
18241 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18242 ;;
18243 esac
18244 dynamic_linker='Win32 ld.exe'
18245 # FIXME: first we should search . and the directory the executable is in
18246 shlibpath_var=PATH
18247 ;;
18248
18249darwin* | rhapsody*)
18250 dynamic_linker="$host_os dyld"
18251 version_type=darwin
18252 need_lib_prefix=no
18253 need_version=no
18254 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18255 soname_spec='${libname}${release}${major}$shared_ext'
18256 shlibpath_overrides_runpath=yes
18257 shlibpath_var=DYLD_LIBRARY_PATH
18258 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18259
18260 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18261 ;;
18262
18263dgux*)
18264 version_type=linux
18265 need_lib_prefix=no
18266 need_version=no
18267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18268 soname_spec='${libname}${release}${shared_ext}$major'
18269 shlibpath_var=LD_LIBRARY_PATH
18270 ;;
18271
18272freebsd1*)
18273 dynamic_linker=no
18274 ;;
18275
18276freebsd* | dragonfly*)
18277 # DragonFly does not have aout. When/if they implement a new
18278 # versioning mechanism, adjust this.
18279 if test -x /usr/bin/objformat; then
18280 objformat=`/usr/bin/objformat`
18281 else
18282 case $host_os in
18283 freebsd[123]*) objformat=aout ;;
18284 *) objformat=elf ;;
18285 esac
18286 fi
18287 version_type=freebsd-$objformat
18288 case $version_type in
18289 freebsd-elf*)
18290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18291 need_version=no
18292 need_lib_prefix=no
18293 ;;
18294 freebsd-*)
18295 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18296 need_version=yes
18297 ;;
18298 esac
18299 shlibpath_var=LD_LIBRARY_PATH
18300 case $host_os in
18301 freebsd2*)
18302 shlibpath_overrides_runpath=yes
18303 ;;
18304 freebsd3.[01]* | freebsdelf3.[01]*)
18305 shlibpath_overrides_runpath=yes
18306 hardcode_into_libs=yes
18307 ;;
18308 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18309 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18310 shlibpath_overrides_runpath=no
18311 hardcode_into_libs=yes
18312 ;;
18313 *) # from 4.6 on, and DragonFly
18314 shlibpath_overrides_runpath=yes
18315 hardcode_into_libs=yes
18316 ;;
18317 esac
18318 ;;
18319
18320gnu*)
18321 version_type=linux
18322 need_lib_prefix=no
18323 need_version=no
18324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18325 soname_spec='${libname}${release}${shared_ext}$major'
18326 shlibpath_var=LD_LIBRARY_PATH
18327 hardcode_into_libs=yes
18328 ;;
18329
cristy0c60a692010-11-04 01:09:47 +000018330haiku*)
18331 version_type=linux
18332 need_lib_prefix=no
18333 need_version=no
18334 dynamic_linker="$host_os runtime_loader"
18335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18336 soname_spec='${libname}${release}${shared_ext}$major'
18337 shlibpath_var=LIBRARY_PATH
18338 shlibpath_overrides_runpath=yes
18339 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18340 hardcode_into_libs=yes
18341 ;;
18342
cristy73bd4a52010-10-05 11:24:23 +000018343hpux9* | hpux10* | hpux11*)
18344 # Give a soname corresponding to the major version so that dld.sl refuses to
18345 # link against other versions.
18346 version_type=sunos
18347 need_lib_prefix=no
18348 need_version=no
18349 case $host_cpu in
18350 ia64*)
18351 shrext_cmds='.so'
18352 hardcode_into_libs=yes
18353 dynamic_linker="$host_os dld.so"
18354 shlibpath_var=LD_LIBRARY_PATH
18355 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18357 soname_spec='${libname}${release}${shared_ext}$major'
18358 if test "X$HPUX_IA64_MODE" = X32; then
18359 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18360 else
18361 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18362 fi
18363 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18364 ;;
18365 hppa*64*)
18366 shrext_cmds='.sl'
18367 hardcode_into_libs=yes
18368 dynamic_linker="$host_os dld.sl"
18369 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18370 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18372 soname_spec='${libname}${release}${shared_ext}$major'
18373 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18374 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18375 ;;
18376 *)
18377 shrext_cmds='.sl'
18378 dynamic_linker="$host_os dld.sl"
18379 shlibpath_var=SHLIB_PATH
18380 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
18384 esac
cristy0c60a692010-11-04 01:09:47 +000018385 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000018386 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000018387 # or fails outright, so override atomically:
18388 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000018389 ;;
18390
18391interix[3-9]*)
18392 version_type=linux
18393 need_lib_prefix=no
18394 need_version=no
18395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18396 soname_spec='${libname}${release}${shared_ext}$major'
18397 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18398 shlibpath_var=LD_LIBRARY_PATH
18399 shlibpath_overrides_runpath=no
18400 hardcode_into_libs=yes
18401 ;;
18402
18403irix5* | irix6* | nonstopux*)
18404 case $host_os in
18405 nonstopux*) version_type=nonstopux ;;
18406 *)
18407 if test "$lt_cv_prog_gnu_ld" = yes; then
18408 version_type=linux
18409 else
18410 version_type=irix
18411 fi ;;
18412 esac
18413 need_lib_prefix=no
18414 need_version=no
18415 soname_spec='${libname}${release}${shared_ext}$major'
18416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18417 case $host_os in
18418 irix5* | nonstopux*)
18419 libsuff= shlibsuff=
18420 ;;
18421 *)
18422 case $LD in # libtool.m4 will add one of these switches to LD
18423 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18424 libsuff= shlibsuff= libmagic=32-bit;;
18425 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18426 libsuff=32 shlibsuff=N32 libmagic=N32;;
18427 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18428 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18429 *) libsuff= shlibsuff= libmagic=never-match;;
18430 esac
18431 ;;
18432 esac
18433 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18434 shlibpath_overrides_runpath=no
18435 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18436 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18437 hardcode_into_libs=yes
18438 ;;
18439
18440# No shared lib support for Linux oldld, aout, or coff.
18441linux*oldld* | linux*aout* | linux*coff*)
18442 dynamic_linker=no
18443 ;;
18444
18445# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000018446linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018447 version_type=linux
18448 need_lib_prefix=no
18449 need_version=no
18450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18451 soname_spec='${libname}${release}${shared_ext}$major'
18452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18453 shlibpath_var=LD_LIBRARY_PATH
18454 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000018455
cristy73bd4a52010-10-05 11:24:23 +000018456 # Some binutils ld are patched to set DT_RUNPATH
cristy0c60a692010-11-04 01:09:47 +000018457 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
18458 $as_echo_n "(cached) " >&6
18459else
18460 lt_cv_shlibpath_overrides_runpath=no
18461 save_LDFLAGS=$LDFLAGS
18462 save_libdir=$libdir
18463 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18464 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018466/* end confdefs.h. */
18467
18468int
18469main ()
18470{
18471
18472 ;
18473 return 0;
18474}
18475_ACEOF
18476if ac_fn_cxx_try_link "$LINENO"; then :
18477 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000018478 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000018479fi
18480fi
18481rm -f core conftest.err conftest.$ac_objext \
18482 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018483 LDFLAGS=$save_LDFLAGS
18484 libdir=$save_libdir
18485
18486fi
18487
18488 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000018489
18490 # This implies no fast_install, which is unacceptable.
18491 # Some rework will be needed to allow for fast_install
18492 # before this can be enabled.
18493 hardcode_into_libs=yes
18494
18495 # Add ABI-specific directories to the system library path.
18496 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18497
18498 # Append ld.so.conf contents to the search path
18499 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000018500 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' ' '`
cristy73bd4a52010-10-05 11:24:23 +000018501 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000018502
cristy73bd4a52010-10-05 11:24:23 +000018503 fi
18504
18505 # We used to test for /lib/ld.so.1 and disable shared libraries on
18506 # powerpc, because MkLinux only supported shared libraries with the
18507 # GNU dynamic linker. Since this was broken with cross compilers,
18508 # most powerpc-linux boxes support dynamic linking these days and
18509 # people can always --disable-shared, the test was removed, and we
18510 # assume the GNU/Linux dynamic linker is in use.
18511 dynamic_linker='GNU/Linux ld.so'
18512 ;;
18513
18514netbsd*)
18515 version_type=sunos
18516 need_lib_prefix=no
18517 need_version=no
18518 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18521 dynamic_linker='NetBSD (a.out) ld.so'
18522 else
18523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18524 soname_spec='${libname}${release}${shared_ext}$major'
18525 dynamic_linker='NetBSD ld.elf_so'
18526 fi
18527 shlibpath_var=LD_LIBRARY_PATH
18528 shlibpath_overrides_runpath=yes
18529 hardcode_into_libs=yes
18530 ;;
18531
18532newsos6)
18533 version_type=linux
18534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18535 shlibpath_var=LD_LIBRARY_PATH
18536 shlibpath_overrides_runpath=yes
18537 ;;
18538
18539*nto* | *qnx*)
18540 version_type=qnx
18541 need_lib_prefix=no
18542 need_version=no
18543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18544 soname_spec='${libname}${release}${shared_ext}$major'
18545 shlibpath_var=LD_LIBRARY_PATH
18546 shlibpath_overrides_runpath=no
18547 hardcode_into_libs=yes
18548 dynamic_linker='ldqnx.so'
18549 ;;
18550
18551openbsd*)
18552 version_type=sunos
18553 sys_lib_dlsearch_path_spec="/usr/lib"
18554 need_lib_prefix=no
18555 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18556 case $host_os in
18557 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18558 *) need_version=no ;;
18559 esac
18560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18562 shlibpath_var=LD_LIBRARY_PATH
18563 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18564 case $host_os in
18565 openbsd2.[89] | openbsd2.[89].*)
18566 shlibpath_overrides_runpath=no
18567 ;;
18568 *)
18569 shlibpath_overrides_runpath=yes
18570 ;;
18571 esac
18572 else
18573 shlibpath_overrides_runpath=yes
18574 fi
18575 ;;
18576
18577os2*)
18578 libname_spec='$name'
18579 shrext_cmds=".dll"
18580 need_lib_prefix=no
18581 library_names_spec='$libname${shared_ext} $libname.a'
18582 dynamic_linker='OS/2 ld.exe'
18583 shlibpath_var=LIBPATH
18584 ;;
18585
18586osf3* | osf4* | osf5*)
18587 version_type=osf
18588 need_lib_prefix=no
18589 need_version=no
18590 soname_spec='${libname}${release}${shared_ext}$major'
18591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18592 shlibpath_var=LD_LIBRARY_PATH
18593 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18594 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18595 ;;
18596
18597rdos*)
18598 dynamic_linker=no
18599 ;;
18600
18601solaris*)
18602 version_type=linux
18603 need_lib_prefix=no
18604 need_version=no
18605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18606 soname_spec='${libname}${release}${shared_ext}$major'
18607 shlibpath_var=LD_LIBRARY_PATH
18608 shlibpath_overrides_runpath=yes
18609 hardcode_into_libs=yes
18610 # ldd complains unless libraries are executable
18611 postinstall_cmds='chmod +x $lib'
18612 ;;
18613
18614sunos4*)
18615 version_type=sunos
18616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18617 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18618 shlibpath_var=LD_LIBRARY_PATH
18619 shlibpath_overrides_runpath=yes
18620 if test "$with_gnu_ld" = yes; then
18621 need_lib_prefix=no
18622 fi
18623 need_version=yes
18624 ;;
18625
18626sysv4 | sysv4.3*)
18627 version_type=linux
18628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18629 soname_spec='${libname}${release}${shared_ext}$major'
18630 shlibpath_var=LD_LIBRARY_PATH
18631 case $host_vendor in
18632 sni)
18633 shlibpath_overrides_runpath=no
18634 need_lib_prefix=no
18635 runpath_var=LD_RUN_PATH
18636 ;;
18637 siemens)
18638 need_lib_prefix=no
18639 ;;
18640 motorola)
18641 need_lib_prefix=no
18642 need_version=no
18643 shlibpath_overrides_runpath=no
18644 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18645 ;;
18646 esac
18647 ;;
18648
18649sysv4*MP*)
18650 if test -d /usr/nec ;then
18651 version_type=linux
18652 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18653 soname_spec='$libname${shared_ext}.$major'
18654 shlibpath_var=LD_LIBRARY_PATH
18655 fi
18656 ;;
18657
18658sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18659 version_type=freebsd-elf
18660 need_lib_prefix=no
18661 need_version=no
18662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18663 soname_spec='${libname}${release}${shared_ext}$major'
18664 shlibpath_var=LD_LIBRARY_PATH
18665 shlibpath_overrides_runpath=yes
18666 hardcode_into_libs=yes
18667 if test "$with_gnu_ld" = yes; then
18668 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18669 else
18670 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18671 case $host_os in
18672 sco3.2v5*)
18673 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18674 ;;
18675 esac
18676 fi
18677 sys_lib_dlsearch_path_spec='/usr/lib'
18678 ;;
18679
18680tpf*)
18681 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18682 version_type=linux
18683 need_lib_prefix=no
18684 need_version=no
18685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18686 shlibpath_var=LD_LIBRARY_PATH
18687 shlibpath_overrides_runpath=no
18688 hardcode_into_libs=yes
18689 ;;
18690
18691uts4*)
18692 version_type=linux
18693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18694 soname_spec='${libname}${release}${shared_ext}$major'
18695 shlibpath_var=LD_LIBRARY_PATH
18696 ;;
18697
18698*)
18699 dynamic_linker=no
18700 ;;
18701esac
18702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18703$as_echo "$dynamic_linker" >&6; }
18704test "$dynamic_linker" = no && can_build_shared=no
18705
18706variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18707if test "$GCC" = yes; then
18708 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18709fi
18710
18711if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18712 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18713fi
18714if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18715 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18716fi
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
cristy0c60a692010-11-04 01:09:47 +000018753
18754
cristy73bd4a52010-10-05 11:24:23 +000018755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18756$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18757hardcode_action_CXX=
18758if test -n "$hardcode_libdir_flag_spec_CXX" ||
18759 test -n "$runpath_var_CXX" ||
18760 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18761
18762 # We can hardcode non-existent directories.
18763 if test "$hardcode_direct_CXX" != no &&
18764 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18765 # have to relink, otherwise we might link with an installed library
18766 # when we should be linking with a yet-to-be-installed one
18767 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18768 test "$hardcode_minus_L_CXX" != no; then
18769 # Linking always hardcodes the temporary library directory.
18770 hardcode_action_CXX=relink
18771 else
18772 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18773 hardcode_action_CXX=immediate
18774 fi
18775else
18776 # We cannot hardcode anything, or else we can only hardcode existing
18777 # directories.
18778 hardcode_action_CXX=unsupported
18779fi
18780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18781$as_echo "$hardcode_action_CXX" >&6; }
18782
18783if test "$hardcode_action_CXX" = relink ||
18784 test "$inherit_rpath_CXX" = yes; then
18785 # Fast installation is not supported
18786 enable_fast_install=no
18787elif test "$shlibpath_overrides_runpath" = yes ||
18788 test "$enable_shared" = no; then
18789 # Fast installation is not necessary
18790 enable_fast_install=needless
18791fi
18792
18793
18794
18795
18796
18797
18798
18799 fi # test -n "$compiler"
18800
18801 CC=$lt_save_CC
18802 LDCXX=$LD
18803 LD=$lt_save_LD
18804 GCC=$lt_save_GCC
18805 with_gnu_ld=$lt_save_with_gnu_ld
18806 lt_cv_path_LDCXX=$lt_cv_path_LD
18807 lt_cv_path_LD=$lt_save_path_LD
18808 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18809 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18810fi # test "$_lt_caught_CXX_error" != yes
18811
18812ac_ext=c
18813ac_cpp='$CPP $CPPFLAGS'
18814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18816ac_compiler_gnu=$ac_cv_c_compiler_gnu
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830 ac_config_commands="$ac_config_commands libtool"
18831
18832
18833
18834
18835# Only expand once:
18836
18837
18838
cristy3ed852e2009-09-05 21:47:34 +000018839
18840
18841# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000018842
18843
18844
18845
18846
18847
18848
cristy73bd4a52010-10-05 11:24:23 +000018849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
18850$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
18851if test "${libltdl_cv_shlibext+set}" = set; then :
18852 $as_echo_n "(cached) " >&6
18853else
18854
18855module=yes
18856eval libltdl_cv_shlibext=$shrext_cmds
18857
18858fi
18859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
18860$as_echo "$libltdl_cv_shlibext" >&6; }
18861if test -n "$libltdl_cv_shlibext"; then
18862
18863cat >>confdefs.h <<_ACEOF
18864#define LT_MODULE_EXT "$libltdl_cv_shlibext"
18865_ACEOF
18866
18867fi
18868
18869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
18870$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
18871if test "${lt_cv_module_path_var+set}" = set; then :
18872 $as_echo_n "(cached) " >&6
18873else
18874 lt_cv_module_path_var="$shlibpath_var"
18875fi
18876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
18877$as_echo "$lt_cv_module_path_var" >&6; }
18878if test -n "$lt_cv_module_path_var"; then
18879
18880cat >>confdefs.h <<_ACEOF
18881#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18882_ACEOF
18883
18884fi
18885
18886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
18887$as_echo_n "checking for the default library search path... " >&6; }
18888if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
18889 $as_echo_n "(cached) " >&6
18890else
18891 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18892fi
18893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
18894$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18895if test -n "$lt_cv_sys_dlsearch_path"; then
18896 sys_dlsearch_path=
18897 for dir in $lt_cv_sys_dlsearch_path; do
18898 if test -z "$sys_dlsearch_path"; then
18899 sys_dlsearch_path="$dir"
18900 else
18901 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18902 fi
18903 done
18904
18905cat >>confdefs.h <<_ACEOF
18906#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18907_ACEOF
18908
18909fi
18910
18911
18912LT_DLLOADERS=
18913
18914
18915ac_ext=c
18916ac_cpp='$CPP $CPPFLAGS'
18917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18919ac_compiler_gnu=$ac_cv_c_compiler_gnu
18920
18921
18922LIBADD_DLOPEN=
18923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18924$as_echo_n "checking for library containing dlopen... " >&6; }
18925if test "${ac_cv_search_dlopen+set}" = set; then :
18926 $as_echo_n "(cached) " >&6
18927else
18928 ac_func_search_save_LIBS=$LIBS
18929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18930/* end confdefs.h. */
18931
18932/* Override any GCC internal prototype to avoid an error.
18933 Use char because int might match the return type of a GCC
18934 builtin and then its argument prototype would still apply. */
18935#ifdef __cplusplus
18936extern "C"
18937#endif
18938char dlopen ();
18939int
18940main ()
18941{
18942return dlopen ();
18943 ;
18944 return 0;
18945}
18946_ACEOF
18947for ac_lib in '' dl; do
18948 if test -z "$ac_lib"; then
18949 ac_res="none required"
18950 else
18951 ac_res=-l$ac_lib
18952 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18953 fi
18954 if ac_fn_c_try_link "$LINENO"; then :
18955 ac_cv_search_dlopen=$ac_res
18956fi
18957rm -f core conftest.err conftest.$ac_objext \
18958 conftest$ac_exeext
18959 if test "${ac_cv_search_dlopen+set}" = set; then :
18960 break
18961fi
18962done
18963if test "${ac_cv_search_dlopen+set}" = set; then :
18964
18965else
18966 ac_cv_search_dlopen=no
18967fi
18968rm conftest.$ac_ext
18969LIBS=$ac_func_search_save_LIBS
18970fi
18971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18972$as_echo "$ac_cv_search_dlopen" >&6; }
18973ac_res=$ac_cv_search_dlopen
18974if test "$ac_res" != no; then :
18975 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18976
18977$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
18978
18979 if test "$ac_cv_search_dlopen" != "none required" ; then
18980 LIBADD_DLOPEN="-ldl"
18981 fi
18982 libltdl_cv_lib_dl_dlopen="yes"
18983 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18984else
18985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18986/* end confdefs.h. */
18987#if HAVE_DLFCN_H
18988# include <dlfcn.h>
18989#endif
18990
18991int
18992main ()
18993{
18994dlopen(0, 0);
18995 ;
18996 return 0;
18997}
18998_ACEOF
18999if ac_fn_c_try_link "$LINENO"; then :
19000
19001$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19002
19003 libltdl_cv_func_dlopen="yes"
19004 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19005else
19006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19007$as_echo_n "checking for dlopen in -lsvld... " >&6; }
19008if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
19009 $as_echo_n "(cached) " >&6
19010else
19011 ac_check_lib_save_LIBS=$LIBS
19012LIBS="-lsvld $LIBS"
19013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19014/* end confdefs.h. */
19015
19016/* Override any GCC internal prototype to avoid an error.
19017 Use char because int might match the return type of a GCC
19018 builtin and then its argument prototype would still apply. */
19019#ifdef __cplusplus
19020extern "C"
19021#endif
19022char dlopen ();
19023int
19024main ()
19025{
19026return dlopen ();
19027 ;
19028 return 0;
19029}
19030_ACEOF
19031if ac_fn_c_try_link "$LINENO"; then :
19032 ac_cv_lib_svld_dlopen=yes
19033else
19034 ac_cv_lib_svld_dlopen=no
19035fi
19036rm -f core conftest.err conftest.$ac_objext \
19037 conftest$ac_exeext conftest.$ac_ext
19038LIBS=$ac_check_lib_save_LIBS
19039fi
19040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19041$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19042if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
19043
19044$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19045
19046 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19047 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19048fi
19049
19050fi
19051rm -f core conftest.err conftest.$ac_objext \
19052 conftest$ac_exeext conftest.$ac_ext
19053fi
19054
19055if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19056then
19057 lt_save_LIBS="$LIBS"
19058 LIBS="$LIBS $LIBADD_DLOPEN"
19059 for ac_func in dlerror
19060do :
19061 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19062if test "x$ac_cv_func_dlerror" = x""yes; then :
19063 cat >>confdefs.h <<_ACEOF
19064#define HAVE_DLERROR 1
19065_ACEOF
19066
19067fi
19068done
19069
19070 LIBS="$lt_save_LIBS"
19071fi
19072
19073
19074LIBADD_SHL_LOAD=
19075ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19076if test "x$ac_cv_func_shl_load" = x""yes; then :
19077
19078$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19079
19080 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19081else
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19083$as_echo_n "checking for shl_load in -ldld... " >&6; }
19084if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
19085 $as_echo_n "(cached) " >&6
19086else
19087 ac_check_lib_save_LIBS=$LIBS
19088LIBS="-ldld $LIBS"
19089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19090/* end confdefs.h. */
19091
19092/* Override any GCC internal prototype to avoid an error.
19093 Use char because int might match the return type of a GCC
19094 builtin and then its argument prototype would still apply. */
19095#ifdef __cplusplus
19096extern "C"
19097#endif
19098char shl_load ();
19099int
19100main ()
19101{
19102return shl_load ();
19103 ;
19104 return 0;
19105}
19106_ACEOF
19107if ac_fn_c_try_link "$LINENO"; then :
19108 ac_cv_lib_dld_shl_load=yes
19109else
19110 ac_cv_lib_dld_shl_load=no
19111fi
19112rm -f core conftest.err conftest.$ac_objext \
19113 conftest$ac_exeext conftest.$ac_ext
19114LIBS=$ac_check_lib_save_LIBS
19115fi
19116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19117$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19118if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
19119
19120$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19121
19122 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19123 LIBADD_SHL_LOAD="-ldld"
19124fi
19125
19126fi
19127
19128
19129
19130case $host_os in
19131darwin[1567].*)
19132# We only want this for pre-Mac OS X 10.4.
19133 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19134if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
19135
19136$as_echo "#define HAVE_DYLD 1" >>confdefs.h
19137
19138 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19139fi
19140
19141 ;;
19142beos*)
19143 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19144 ;;
19145cygwin* | mingw* | os2* | pw32*)
19146 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19147"
19148if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19149 ac_have_decl=1
19150else
19151 ac_have_decl=0
19152fi
19153
19154cat >>confdefs.h <<_ACEOF
19155#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
19156_ACEOF
19157
19158 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19159 ;;
19160esac
19161
19162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19163$as_echo_n "checking for dld_link in -ldld... " >&6; }
19164if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
19165 $as_echo_n "(cached) " >&6
19166else
19167 ac_check_lib_save_LIBS=$LIBS
19168LIBS="-ldld $LIBS"
19169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19170/* end confdefs.h. */
19171
19172/* Override any GCC internal prototype to avoid an error.
19173 Use char because int might match the return type of a GCC
19174 builtin and then its argument prototype would still apply. */
19175#ifdef __cplusplus
19176extern "C"
19177#endif
19178char dld_link ();
19179int
19180main ()
19181{
19182return dld_link ();
19183 ;
19184 return 0;
19185}
19186_ACEOF
19187if ac_fn_c_try_link "$LINENO"; then :
19188 ac_cv_lib_dld_dld_link=yes
19189else
19190 ac_cv_lib_dld_dld_link=no
19191fi
19192rm -f core conftest.err conftest.$ac_objext \
19193 conftest$ac_exeext conftest.$ac_ext
19194LIBS=$ac_check_lib_save_LIBS
19195fi
19196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19197$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19198if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
19199
19200$as_echo "#define HAVE_DLD 1" >>confdefs.h
19201
19202 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19203fi
19204
19205
19206
19207
19208LT_DLPREOPEN=
19209if test -n "$LT_DLLOADERS"
19210then
19211 for lt_loader in $LT_DLLOADERS; do
19212 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19213 done
19214
19215$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
19216
19217fi
19218
19219
19220LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19221
19222
19223ac_ext=c
19224ac_cpp='$CPP $CPPFLAGS'
19225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19227ac_compiler_gnu=$ac_cv_c_compiler_gnu
19228
19229
19230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
19231$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
19232if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
19233 $as_echo_n "(cached) " >&6
19234else
19235 lt_cv_sys_symbol_underscore=no
19236 cat > conftest.$ac_ext <<_LT_EOF
19237void nm_test_func(){}
19238int main(){nm_test_func;return 0;}
19239_LT_EOF
19240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19241 (eval $ac_compile) 2>&5
19242 ac_status=$?
19243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19244 test $ac_status = 0; }; then
19245 # Now try to grab the symbols.
19246 ac_nlist=conftest.nm
19247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
19248 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19249 ac_status=$?
19250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19251 test $ac_status = 0; } && test -s "$ac_nlist"; then
19252 # See whether the symbols have a leading underscore.
19253 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19254 lt_cv_sys_symbol_underscore=yes
19255 else
19256 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19257 :
19258 else
19259 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19260 fi
19261 fi
19262 else
19263 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19264 fi
19265 else
19266 echo "configure: failed program was:" >&5
19267 cat conftest.c >&5
19268 fi
19269 rm -rf conftest*
19270
19271fi
19272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
19273$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19274 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19275
19276
19277if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19278 if test x"$libltdl_cv_func_dlopen" = xyes ||
19279 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
19280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
19281$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
19282if test "${libltdl_cv_need_uscore+set}" = set; then :
19283 $as_echo_n "(cached) " >&6
19284else
19285 libltdl_cv_need_uscore=unknown
19286 save_LIBS="$LIBS"
19287 LIBS="$LIBS $LIBADD_DLOPEN"
19288 if test "$cross_compiling" = yes; then :
19289 libltdl_cv_need_uscore=cross
19290else
19291 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19292 lt_status=$lt_dlunknown
19293 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000019294#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000019295#include "confdefs.h"
19296
19297#if HAVE_DLFCN_H
19298#include <dlfcn.h>
19299#endif
19300
19301#include <stdio.h>
19302
19303#ifdef RTLD_GLOBAL
19304# define LT_DLGLOBAL RTLD_GLOBAL
19305#else
19306# ifdef DL_GLOBAL
19307# define LT_DLGLOBAL DL_GLOBAL
19308# else
19309# define LT_DLGLOBAL 0
19310# endif
19311#endif
19312
19313/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19314 find out it does not work in some platform. */
19315#ifndef LT_DLLAZY_OR_NOW
19316# ifdef RTLD_LAZY
19317# define LT_DLLAZY_OR_NOW RTLD_LAZY
19318# else
19319# ifdef DL_LAZY
19320# define LT_DLLAZY_OR_NOW DL_LAZY
19321# else
19322# ifdef RTLD_NOW
19323# define LT_DLLAZY_OR_NOW RTLD_NOW
19324# else
19325# ifdef DL_NOW
19326# define LT_DLLAZY_OR_NOW DL_NOW
19327# else
19328# define LT_DLLAZY_OR_NOW 0
19329# endif
19330# endif
19331# endif
19332# endif
19333#endif
19334
cristy0c60a692010-11-04 01:09:47 +000019335/* When -fvisbility=hidden is used, assume the code has been annotated
19336 correspondingly for the symbols needed. */
19337#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19338void fnord () __attribute__((visibility("default")));
19339#endif
19340
19341void fnord () { int i=42; }
cristy73bd4a52010-10-05 11:24:23 +000019342int main ()
19343{
19344 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19345 int status = $lt_dlunknown;
19346
19347 if (self)
19348 {
19349 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000019350 else
19351 {
19352 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19353 else puts (dlerror ());
19354 }
cristy73bd4a52010-10-05 11:24:23 +000019355 /* dlclose (self); */
19356 }
19357 else
19358 puts (dlerror ());
19359
19360 return status;
19361}
19362_LT_EOF
19363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19364 (eval $ac_link) 2>&5
19365 ac_status=$?
19366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19367 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19368 (./conftest; exit; ) >&5 2>/dev/null
19369 lt_status=$?
19370 case x$lt_status in
19371 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19372 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19373 x$lt_dlunknown|x*) ;;
19374 esac
19375 else :
19376 # compilation failed
19377
19378 fi
19379fi
19380rm -fr conftest*
19381
19382 LIBS="$save_LIBS"
19383
19384fi
19385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
19386$as_echo "$libltdl_cv_need_uscore" >&6; }
19387 fi
19388fi
19389
19390if test x"$libltdl_cv_need_uscore" = xyes; then
19391
19392$as_echo "#define NEED_USCORE 1" >>confdefs.h
19393
19394fi
19395
19396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
19397$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
19398if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
19399 $as_echo_n "(cached) " >&6
19400else
19401 # PORTME does your system automatically load deplibs for dlopen?
19402 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19403 # For now, we just catch OSes we know something about -- in the
19404 # future, we'll try test this programmatically.
19405 lt_cv_sys_dlopen_deplibs=unknown
19406 case $host_os in
19407 aix3*|aix4.1.*|aix4.2.*)
19408 # Unknown whether this is true for these versions of AIX, but
19409 # we want this `case' here to explicitly catch those versions.
19410 lt_cv_sys_dlopen_deplibs=unknown
19411 ;;
19412 aix[4-9]*)
19413 lt_cv_sys_dlopen_deplibs=yes
19414 ;;
19415 amigaos*)
19416 case $host_cpu in
19417 powerpc)
19418 lt_cv_sys_dlopen_deplibs=no
19419 ;;
19420 esac
19421 ;;
19422 darwin*)
19423 # Assuming the user has installed a libdl from somewhere, this is true
19424 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19425 lt_cv_sys_dlopen_deplibs=yes
19426 ;;
19427 freebsd* | dragonfly*)
19428 lt_cv_sys_dlopen_deplibs=yes
19429 ;;
cristy0c60a692010-11-04 01:09:47 +000019430 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019431 # GNU and its variants, using gnu ld.so (Glibc)
19432 lt_cv_sys_dlopen_deplibs=yes
19433 ;;
19434 hpux10*|hpux11*)
19435 lt_cv_sys_dlopen_deplibs=yes
19436 ;;
19437 interix*)
19438 lt_cv_sys_dlopen_deplibs=yes
19439 ;;
19440 irix[12345]*|irix6.[01]*)
19441 # Catch all versions of IRIX before 6.2, and indicate that we don't
19442 # know how it worked for any of those versions.
19443 lt_cv_sys_dlopen_deplibs=unknown
19444 ;;
19445 irix*)
19446 # The case above catches anything before 6.2, and it's known that
19447 # at 6.2 and later dlopen does load deplibs.
19448 lt_cv_sys_dlopen_deplibs=yes
19449 ;;
19450 netbsd*)
19451 lt_cv_sys_dlopen_deplibs=yes
19452 ;;
19453 openbsd*)
19454 lt_cv_sys_dlopen_deplibs=yes
19455 ;;
19456 osf[1234]*)
19457 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19458 # it did *not* use an RPATH in a shared library to find objects the
19459 # library depends on, so we explicitly say `no'.
19460 lt_cv_sys_dlopen_deplibs=no
19461 ;;
19462 osf5.0|osf5.0a|osf5.1)
19463 # dlopen *does* load deplibs and with the right loader patch applied
19464 # it even uses RPATH in a shared library to search for shared objects
19465 # that the library depends on, but there's no easy way to know if that
19466 # patch is installed. Since this is the case, all we can really
19467 # say is unknown -- it depends on the patch being installed. If
19468 # it is, this changes to `yes'. Without it, it would be `no'.
19469 lt_cv_sys_dlopen_deplibs=unknown
19470 ;;
19471 osf*)
19472 # the two cases above should catch all versions of osf <= 5.1. Read
19473 # the comments above for what we know about them.
19474 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19475 # is used to find them so we can finally say `yes'.
19476 lt_cv_sys_dlopen_deplibs=yes
19477 ;;
19478 qnx*)
19479 lt_cv_sys_dlopen_deplibs=yes
19480 ;;
19481 solaris*)
19482 lt_cv_sys_dlopen_deplibs=yes
19483 ;;
19484 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19485 libltdl_cv_sys_dlopen_deplibs=yes
19486 ;;
19487 esac
19488
19489fi
19490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
19491$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19492if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19493
19494$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
19495
19496fi
19497
19498:
19499
19500for ac_header in argz.h
19501do :
19502 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19503"
19504if test "x$ac_cv_header_argz_h" = x""yes; then :
19505 cat >>confdefs.h <<_ACEOF
19506#define HAVE_ARGZ_H 1
19507_ACEOF
19508
19509fi
19510
19511done
19512
19513
19514ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
19515# include <argz.h>
19516#endif
19517"
19518if test "x$ac_cv_type_error_t" = x""yes; then :
19519
19520cat >>confdefs.h <<_ACEOF
19521#define HAVE_ERROR_T 1
19522_ACEOF
19523
19524
19525else
19526
19527$as_echo "#define error_t int" >>confdefs.h
19528
19529
19530$as_echo "#define __error_t_defined 1" >>confdefs.h
19531
19532fi
19533
19534
19535ARGZ_H=
19536for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19537 argz_next argz_stringify
19538do :
19539 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19540ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000019541if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000019542 cat >>confdefs.h <<_ACEOF
19543#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19544_ACEOF
19545
19546else
19547 ARGZ_H=argz.h;
19548
19549 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19550
19551fi
19552done
19553
19554
19555if test -z "$ARGZ_H"; then :
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
19557$as_echo_n "checking if argz actually works... " >&6; }
19558if test "${lt_cv_sys_argz_works+set}" = set; then :
19559 $as_echo_n "(cached) " >&6
19560else
19561 case $host_os in #(
19562 *cygwin*)
19563 lt_cv_sys_argz_works=no
19564 if test "$cross_compiling" != no; then
19565 lt_cv_sys_argz_works="guessing no"
19566 else
19567 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19568 save_IFS=$IFS
19569 IFS=-.
19570 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19571 IFS=$save_IFS
19572 lt_os_major=${2-0}
19573 lt_os_minor=${3-0}
19574 lt_os_micro=${4-0}
19575 if test "$lt_os_major" -gt 1 \
19576 || { test "$lt_os_major" -eq 1 \
19577 && { test "$lt_os_minor" -gt 5 \
19578 || { test "$lt_os_minor" -eq 5 \
19579 && test "$lt_os_micro" -gt 24; }; }; }; then
19580 lt_cv_sys_argz_works=yes
19581 fi
19582 fi
19583 ;; #(
19584 *) lt_cv_sys_argz_works=yes ;;
19585 esac
19586fi
19587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
19588$as_echo "$lt_cv_sys_argz_works" >&6; }
19589 if test $lt_cv_sys_argz_works = yes; then :
19590
19591$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
19592
19593else
19594 ARGZ_H=argz.h
19595
19596
19597 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19598
19599fi
19600fi
19601
19602
19603
19604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
19605$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
19606if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
19607 $as_echo_n "(cached) " >&6
19608else
19609 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19610 libltdl_cv_preloaded_symbols=yes
19611 else
19612 libltdl_cv_preloaded_symbols=no
19613 fi
19614
19615fi
19616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
19617$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19618if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19619
19620$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
19621
19622fi
19623
19624# Set options
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636# Check whether --with-included_ltdl was given.
19637if test "${with_included_ltdl+set}" = set; then :
19638 withval=$with_included_ltdl;
19639fi
19640
19641
19642if test "x$with_included_ltdl" != xyes; then
19643 # We are not being forced to use the included libltdl sources, so
19644 # decide whether there is a useful installed version we can use.
19645 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
19646
19647"
19648if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19649 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
19650 #include <ltdl.h>
19651"
19652if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
19654$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
19655if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
19656 $as_echo_n "(cached) " >&6
19657else
19658 ac_check_lib_save_LIBS=$LIBS
19659LIBS="-lltdl $LIBS"
19660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19661/* end confdefs.h. */
19662
19663/* Override any GCC internal prototype to avoid an error.
19664 Use char because int might match the return type of a GCC
19665 builtin and then its argument prototype would still apply. */
19666#ifdef __cplusplus
19667extern "C"
19668#endif
19669char lt_dladvise_preload ();
19670int
19671main ()
19672{
19673return lt_dladvise_preload ();
19674 ;
19675 return 0;
19676}
19677_ACEOF
19678if ac_fn_c_try_link "$LINENO"; then :
19679 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19680else
19681 ac_cv_lib_ltdl_lt_dladvise_preload=no
19682fi
19683rm -f core conftest.err conftest.$ac_objext \
19684 conftest$ac_exeext conftest.$ac_ext
19685LIBS=$ac_check_lib_save_LIBS
19686fi
19687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
19688$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
19689if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
19690 with_included_ltdl=no
19691else
19692 with_included_ltdl=yes
19693fi
19694
19695else
19696 with_included_ltdl=yes
19697fi
19698
19699else
19700 with_included_ltdl=yes
19701fi
19702
19703
19704fi
19705
19706
19707
19708
19709# Check whether --with-ltdl_include was given.
19710if test "${with_ltdl_include+set}" = set; then :
19711 withval=$with_ltdl_include;
19712fi
19713
19714
19715if test -n "$with_ltdl_include"; then
19716 if test -f "$with_ltdl_include/ltdl.h"; then :
19717 else
cristy98dddb52010-11-04 00:30:15 +000019718 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000019719 fi
19720else
19721 with_ltdl_include=no
19722fi
19723
19724
19725# Check whether --with-ltdl_lib was given.
19726if test "${with_ltdl_lib+set}" = set; then :
19727 withval=$with_ltdl_lib;
19728fi
19729
19730
19731if test -n "$with_ltdl_lib"; then
19732 if test -f "$with_ltdl_lib/libltdl.la"; then :
19733 else
cristy98dddb52010-11-04 00:30:15 +000019734 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000019735 fi
19736else
19737 with_ltdl_lib=no
19738fi
19739
19740case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19741 ,yes,no,no,)
19742 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000019743 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000019744 "") enable_ltdl_convenience=yes
19745 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19746esac
19747LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19748LTDLDEPS=$LIBLTDL
19749LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19750
19751
19752
19753
19754
19755# For backwards non-gettext consistent compatibility...
19756INCLTDL="$LTDLINCL"
19757
19758
19759 ;;
19760 ,no,no,no,)
19761 # If the included ltdl is not to be used, then use the
19762 # preinstalled libltdl we found.
19763
19764$as_echo "#define HAVE_LTDL 1" >>confdefs.h
19765
19766 LIBLTDL=-lltdl
19767 LTDLDEPS=
19768 LTDLINCL=
19769 ;;
19770 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000019771 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000019772 ;;
19773 *) with_included_ltdl=no
19774 LIBLTDL="-L$with_ltdl_lib -lltdl"
19775 LTDLDEPS=
19776 LTDLINCL="-I$with_ltdl_include"
19777 ;;
19778esac
19779INCLTDL="$LTDLINCL"
19780
19781# Report our decision...
19782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
19783$as_echo_n "checking where to find libltdl headers... " >&6; }
19784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
19785$as_echo "$LTDLINCL" >&6; }
19786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
19787$as_echo_n "checking where to find libltdl library... " >&6; }
19788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
19789$as_echo "$LIBLTDL" >&6; }
19790
19791
19792
19793# Check whether --enable-ltdl-install was given.
19794if test "${enable_ltdl_install+set}" = set; then :
19795 enableval=$enable_ltdl_install;
19796fi
19797
19798
19799case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19800 *yes*) ;;
19801 *) enable_ltdl_convenience=yes ;;
19802esac
19803
19804 if test x"${enable_ltdl_install-no}" != xno; then
19805 INSTALL_LTDL_TRUE=
19806 INSTALL_LTDL_FALSE='#'
19807else
19808 INSTALL_LTDL_TRUE='#'
19809 INSTALL_LTDL_FALSE=
19810fi
19811
19812 if test x"${enable_ltdl_convenience-no}" != xno; then
19813 CONVENIENCE_LTDL_TRUE=
19814 CONVENIENCE_LTDL_FALSE='#'
19815else
19816 CONVENIENCE_LTDL_TRUE='#'
19817 CONVENIENCE_LTDL_FALSE=
19818fi
19819
19820
19821
19822
19823
19824
cristy73bd4a52010-10-05 11:24:23 +000019825# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19826# the user used. This is so that ltdl.h can pick up the parent projects
19827# config.h file, The first file in AC_CONFIG_HEADERS must contain the
19828# definitions required by ltdl.c.
19829# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
19830
19831
19832
19833for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
19834do :
19835 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19836ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19837"
cristy98dddb52010-11-04 00:30:15 +000019838if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000019839 cat >>confdefs.h <<_ACEOF
19840#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19841_ACEOF
19842
19843fi
19844
19845done
19846
19847
19848for ac_func in closedir opendir readdir
19849do :
19850 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19851ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000019852if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000019853 cat >>confdefs.h <<_ACEOF
19854#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19855_ACEOF
19856
19857else
19858
19859
19860 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
19861
19862fi
19863done
19864
19865for ac_func in strlcat strlcpy
19866do :
19867 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19868ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000019869if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000019870 cat >>confdefs.h <<_ACEOF
19871#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19872_ACEOF
19873
19874else
19875
19876
19877 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
19878
19879fi
19880done
19881
19882
19883
19884cat >>confdefs.h <<_ACEOF
19885#define LT_LIBEXT "$libext"
19886_ACEOF
19887
19888
19889name=ltdl
19890LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
19891
19892
19893
19894
19895
19896
19897
19898
19899# Only expand once:
19900
19901
cristy3ed852e2009-09-05 21:47:34 +000019902
19903# Check to see if building shared libraries
19904libtool_build_shared_libs='no'
19905if test "$enable_shared" = 'yes'; then
19906 libtool_build_shared_libs='yes'
19907fi
19908
19909# Check to see if building static libraries
19910libtool_build_static_libs='no'
19911if test "$enable_static" = 'yes'; then
19912 libtool_build_static_libs='yes'
19913fi
19914
cristy73bd4a52010-10-05 11:24:23 +000019915 if test "${libtool_build_shared_libs}" = 'yes'; then
19916 WITH_SHARED_LIBS_TRUE=
19917 WITH_SHARED_LIBS_FALSE='#'
19918else
19919 WITH_SHARED_LIBS_TRUE='#'
19920 WITH_SHARED_LIBS_FALSE=
19921fi
19922
cristy3ed852e2009-09-05 21:47:34 +000019923#
19924# Enable support for building loadable modules
19925#
19926
19927# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000019928if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019929 withval=$with_modules; with_modules=$withval
19930else
cristy5a1cefd2010-01-06 20:42:35 +000019931 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000019932fi
19933
19934
19935# Only allow building loadable modules if we are building shared libraries
19936if test "$with_modules" != 'no' ; then
19937 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000019938 { $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 +000019939$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
19940 with_modules='no'
19941 fi
19942fi
19943if test "$with_modules" != 'no'; then
19944
cristy8b350f62009-11-15 23:12:43 +000019945$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019946
19947fi
cristy73bd4a52010-10-05 11:24:23 +000019948 if test "$with_modules" != 'no'; then
19949 WITH_MODULES_TRUE=
19950 WITH_MODULES_FALSE='#'
19951else
19952 WITH_MODULES_TRUE='#'
19953 WITH_MODULES_FALSE=
19954fi
19955
cristy3ed852e2009-09-05 21:47:34 +000019956
19957# Enable building/use of libltdl if we are building shared libraries regardless
19958# of whether modules are built or not.
19959with_ltdl='no'
19960if test "$libtool_build_shared_libs" != 'no'; then
19961 with_ltdl='yes'
19962fi
19963
cristy73bd4a52010-10-05 11:24:23 +000019964 if test "$with_ltdl" != 'no'; then
19965 WITH_LTDL_TRUE=
19966 WITH_LTDL_FALSE='#'
19967else
19968 WITH_LTDL_TRUE='#'
19969 WITH_LTDL_FALSE=
19970fi
19971
cristy3ed852e2009-09-05 21:47:34 +000019972if test "$with_ltdl" != 'no'; then
19973
cristy8b350f62009-11-15 23:12:43 +000019974$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019975
19976
19977 # Set DLLDFLAGS
19978 if test X"$enable_shared" = Xyes; then
19979 DLLDFLAGS=-export-dynamic
19980
19981 fi
19982fi
19983
19984# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000019985# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000019986# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000019987if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019988 enableval=$enable_delegate_build; enable_delegate_build=$enableval
19989else
19990 enable_delegate_build='no'
19991fi
19992
19993
19994# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000019995if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019996 enableval=$enable_deprecated; enable_deprecated=$enableval
19997else
19998 enable_deprecated='no'
19999fi
20000
20001
20002if test "$enable_deprecated" = 'yes'; then
20003
cristy8b350f62009-11-15 23:12:43 +000020004$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020005
20006else
20007 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20008fi
20009
20010# Build a version of ImageMagick which operates uninstalled.
20011# Used to build distributions located via MAGICK_HOME / executable path
20012# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020013if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020014 enableval=$enable_installed; enable_installed=$enableval
20015else
20016 enable_installed='yes'
20017fi
20018
20019
20020if test "$enable_installed" = 'yes'; then
20021
cristy8b350f62009-11-15 23:12:43 +000020022$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020023
20024else
20025 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20026fi
20027
20028# Permit enciphering and deciphering image pixels.
20029# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020030if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020031 enableval=$enable_cipher; enable_cipher=$enableval
20032else
20033 enable_cipher='yes'
20034fi
20035
20036
20037if test "$enable_cipher" = 'yes'; then
20038
cristy8b350f62009-11-15 23:12:43 +000020039$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020040
20041fi
20042
20043# Build an embeddable version of ImageMagick.
20044# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020045if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020046 enableval=$enable_embeddable; enable_embeddable=$enableval
20047else
20048 enable_embeddable='no'
20049fi
20050
20051
20052if test "$enable_embeddable" = 'yes'; then
20053
cristy8b350f62009-11-15 23:12:43 +000020054$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020055
20056fi
20057
20058# Build a high dynamic range version of ImageMagick.
20059# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020060if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020061 enableval=$enable_hdri; enable_hdri=$enableval
20062else
20063 enable_hdri='no'
20064fi
20065
20066
20067MAGICK_HDRI=""
20068if test "$enable_hdri" = 'yes'; then
20069 MAGICK_HDRI="HDRI"
20070
cristy8b350f62009-11-15 23:12:43 +000020071$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020072
cristyfd9dcd42010-08-08 18:07:02 +000020073 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020074fi
20075
cristy3ed852e2009-09-05 21:47:34 +000020076# Build a version of ImageMagick with assert statements.
20077# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020078if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020079 enableval=$enable_assert; enable_assert=$enableval
20080else
20081 enable_assert='yes'
20082fi
20083
20084
20085if test "$enable_assert" = 'no'; then
20086
cristy8b350f62009-11-15 23:12:43 +000020087$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020088
20089fi
20090
20091# Add configure option --enable-maintainer-mode which enables dependency
20092# checking and generation useful to package maintainers. This is made an
20093# option to avoid confusing end users.
cristy73bd4a52010-10-05 11:24:23 +000020094
20095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20096$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20097 # Check whether --enable-maintainer-mode was given.
20098if test "${enable_maintainer_mode+set}" = set; then :
20099 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20100else
20101 USE_MAINTAINER_MODE=no
20102fi
20103
20104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20105$as_echo "$USE_MAINTAINER_MODE" >&6; }
20106 if test $USE_MAINTAINER_MODE = yes; then
20107 MAINTAINER_MODE_TRUE=
20108 MAINTAINER_MODE_FALSE='#'
20109else
20110 MAINTAINER_MODE_TRUE='#'
20111 MAINTAINER_MODE_FALSE=
20112fi
20113
20114 MAINT=$MAINTAINER_MODE_TRUE
20115
20116
cristy3ed852e2009-09-05 21:47:34 +000020117
20118
20119# Enable ccmalloc memory debugging support
20120# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020121if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020122 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20123else
20124 enable_ccmalloc='no'
20125fi
20126
20127
20128# Enable Electric Fence memory debugging support
20129# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020130if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020131 enableval=$enable_efence; enable_efence=$enableval
20132else
20133 enable_efence='no'
20134fi
20135
20136
20137# Enable prof-based profiling support
20138# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020139if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020140 enableval=$enable_prof; enable_prof=$enableval
20141else
20142 enable_prof='no'
20143fi
20144
20145
20146# Enable gprof-based profiling support
20147# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020148if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020149 enableval=$enable_gprof; enable_gprof=$enableval
20150else
20151 enable_gprof='no'
20152fi
20153
20154
20155# Enable gcov-based profiling support
20156# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020157if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020158 enableval=$enable_gcov; enable_gcov=$enableval
20159else
20160 enable_gcov='no'
20161fi
20162
20163
20164enable_profiling='no'
20165if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20166 enable_profiling='yes'
20167 if test "$libtool_build_shared_libs" = 'yes'; then
20168 echo "Warning: Can not profile code using shared libraries"
20169 fi
20170fi
20171
20172# Magick API method prefix
20173
20174# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020175if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020176 withval=$with_method_prefix; with_method_prefix=$enableval
20177else
20178 with_method_prefix=''
20179fi
20180
20181
20182if test "$with_method_prefix" != ''; then
20183
20184cat >>confdefs.h <<_ACEOF
20185#define NAMESPACE_PREFIX $with_method_prefix
20186_ACEOF
20187
20188fi
20189
20190# Number of bits in a Quantum
20191
20192# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020193if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020194 withval=$with_quantum_depth; with_quantum_depth=$withval
20195else
20196 with_quantum_depth=16
20197fi
20198
20199
20200if test "$with_quantum_depth" != '8'; then
20201 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20202fi
20203
20204case "${with_quantum_depth}" in
20205 8 ) ;;
20206 16 ) ;;
20207 32 ) ;;
20208 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000020209 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000020210esac
cristycdae12a2010-09-19 02:24:31 +000020211if test "$enable_hdri" = 'yes'; then
20212 with_quantum_depth=16
20213fi
cristy3ed852e2009-09-05 21:47:34 +000020214QUANTUM_DEPTH="$with_quantum_depth"
20215
20216cat >>confdefs.h <<_ACEOF
20217#define QUANTUM_DEPTH $QUANTUM_DEPTH
20218_ACEOF
20219
20220
20221# Set pixel cache threshold
20222
20223# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000020224if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020225 withval=$with_cache; with_cache=$withval
20226else
20227 with_cache=''
20228fi
20229
20230
20231if test "$with_cache" != ''; then
20232
20233cat >>confdefs.h <<_ACEOF
20234#define PixelCacheThreshold $with_cache
20235_ACEOF
20236
20237 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20238fi
20239
20240# Disable/Enable support for full delegate paths
20241
20242# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000020243if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020244 withval=$with_frozenpaths; with_frozenpaths=$withval
20245else
20246 with_frozenpaths='no'
20247fi
20248
20249
20250# Enable build/install of Magick++
20251
20252# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000020253if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020254 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20255else
20256 with_magick_plus_plus='yes'
20257fi
20258
20259
20260# Disable build/install of PerlMagick.
20261
20262# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000020263if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020264 withval=$with_perl; with_perl=$withval
20265else
cristyb5f4e2f2010-04-25 00:49:11 +000020266 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000020267fi
20268
20269
20270# Options to pass when configuring PerlMagick
20271
20272# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000020273if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000020274 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000020275fi
20276
20277
cristy3ed852e2009-09-05 21:47:34 +000020278
20279# Enable umem, object-caching memory allocation library.
20280
20281# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000020282if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020283 withval=$with_umem; with_umem=$withval
20284else
20285 with_umem='no'
20286fi
20287
20288if test "$with_umem" != 'yes' ; then
20289 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20290fi
20291
20292#
20293# Specify path to shared libstdc++ if not in normal location
20294#
20295
20296# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000020297if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020298 withval=$with_libstdc; with_libstdc=$withval
20299else
20300 with_libstdc=''
20301fi
20302
20303
20304if test "$with_libstdc" != ''; then
20305 if test -d "$with_libstdc"; then
20306 LIBSTDCLDFLAGS="-L$with_libstdc"
20307 fi
20308fi
20309
20310
20311# Does gcc required -traditional?
20312if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000020313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020314$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020315if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020316 $as_echo_n "(cached) " >&6
20317else
20318 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000020319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020320/* end confdefs.h. */
20321#include <sgtty.h>
20322Autoconf TIOCGETP
20323_ACEOF
20324if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020325 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020326 ac_cv_prog_gcc_traditional=yes
20327else
20328 ac_cv_prog_gcc_traditional=no
20329fi
20330rm -f conftest*
20331
20332
20333 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000020334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020335/* end confdefs.h. */
20336#include <termio.h>
20337Autoconf TCGETA
20338_ACEOF
20339if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020340 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020341 ac_cv_prog_gcc_traditional=yes
20342fi
20343rm -f conftest*
20344
20345 fi
20346fi
cristy8b350f62009-11-15 23:12:43 +000020347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020348$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20349 if test $ac_cv_prog_gcc_traditional = yes; then
20350 CC="$CC -traditional"
20351 fi
20352fi
20353
20354
20355########
20356#
20357# Set defines required to build DLLs and modules using MinGW
20358#
20359########
20360# These options are set for multi-thread DLL module build
20361# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20362# module: _DLL
20363# executable/Magick++: _DLL _MAGICKMOD_
20364MODULE_EXTRA_CPPFLAGS=''
20365LIBRARY_EXTRA_CPPFLAGS=''
20366if test "${native_win32_build}" = 'yes'; then
20367 if test "${libtool_build_shared_libs}" = 'yes'; then
20368 CPPFLAGS="$CPPFLAGS -D_DLL"
20369 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20370 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20371 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20372 if test "$with_modules" = 'yes'; then
20373 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20374 else
20375 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20376 fi
20377 else
20378 CPPFLAGS="$CPPFLAGS -D_LIB"
20379 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20380 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20381 fi
20382 if test "$with_threads" = 'yes'; then
20383 CPPFLAGS="$CPPFLAGS -D_MT"
20384 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20385 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20386 fi
20387fi
20388
20389
20390
20391# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000020392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000020393$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020394if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020395 $as_echo_n "(cached) " >&6
20396else
cristy8b350f62009-11-15 23:12:43 +000020397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020398/* end confdefs.h. */
20399#include <stdlib.h>
20400#include <stdarg.h>
20401#include <string.h>
20402#include <float.h>
20403
20404int
20405main ()
20406{
20407
20408 ;
20409 return 0;
20410}
20411_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020412if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020413 ac_cv_header_stdc=yes
20414else
cristy8b350f62009-11-15 23:12:43 +000020415 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020416fi
cristy3ed852e2009-09-05 21:47:34 +000020417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20418
20419if test $ac_cv_header_stdc = yes; then
20420 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020422/* end confdefs.h. */
20423#include <string.h>
20424
20425_ACEOF
20426if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020427 $EGREP "memchr" >/dev/null 2>&1; then :
20428
cristy3ed852e2009-09-05 21:47:34 +000020429else
20430 ac_cv_header_stdc=no
20431fi
20432rm -f conftest*
20433
20434fi
20435
20436if test $ac_cv_header_stdc = yes; then
20437 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020439/* end confdefs.h. */
20440#include <stdlib.h>
20441
20442_ACEOF
20443if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020444 $EGREP "free" >/dev/null 2>&1; then :
20445
cristy3ed852e2009-09-05 21:47:34 +000020446else
20447 ac_cv_header_stdc=no
20448fi
20449rm -f conftest*
20450
20451fi
20452
20453if test $ac_cv_header_stdc = yes; then
20454 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000020455 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020456 :
20457else
cristy8b350f62009-11-15 23:12:43 +000020458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020459/* end confdefs.h. */
20460#include <ctype.h>
20461#include <stdlib.h>
20462#if ((' ' & 0x0FF) == 0x020)
20463# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20464# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20465#else
20466# define ISLOWER(c) \
20467 (('a' <= (c) && (c) <= 'i') \
20468 || ('j' <= (c) && (c) <= 'r') \
20469 || ('s' <= (c) && (c) <= 'z'))
20470# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20471#endif
20472
20473#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20474int
20475main ()
20476{
20477 int i;
20478 for (i = 0; i < 256; i++)
20479 if (XOR (islower (i), ISLOWER (i))
20480 || toupper (i) != TOUPPER (i))
20481 return 2;
20482 return 0;
20483}
20484_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020485if ac_fn_c_try_run "$LINENO"; then :
20486
cristy3ed852e2009-09-05 21:47:34 +000020487else
cristy8b350f62009-11-15 23:12:43 +000020488 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020489fi
cristy8b350f62009-11-15 23:12:43 +000020490rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20491 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020492fi
20493
cristy3ed852e2009-09-05 21:47:34 +000020494fi
20495fi
cristy8b350f62009-11-15 23:12:43 +000020496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000020497$as_echo "$ac_cv_header_stdc" >&6; }
20498if test $ac_cv_header_stdc = yes; then
20499
cristy8b350f62009-11-15 23:12:43 +000020500$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020501
20502fi
20503
20504if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000020505 { $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 +000020506 header files. Compilation cannot proceed. Please install the ANSI C
20507 headers and rerun this script." >&5
20508$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20509 header files. Compilation cannot proceed. Please install the ANSI C
20510 headers and rerun this script." >&2;};
20511fi
cristya0b81c32010-01-22 02:54:33 +000020512
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20514$as_echo_n "checking whether to enable assertions... " >&6; }
20515 # Check whether --enable-assert was given.
20516if test "${enable_assert+set}" = set; then :
20517 enableval=$enable_assert; ac_enable_assert=$enableval
20518 if test "x$enableval" = xno; then :
20519
20520$as_echo "#define NDEBUG 1" >>confdefs.h
20521
20522elif test "x$enableval" != xyes; then :
20523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20524$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20525 ac_enable_assert=yes
20526fi
20527else
20528 ac_enable_assert=yes
20529fi
20530
20531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20532$as_echo "$ac_enable_assert" >&6; }
20533
cristy3ed852e2009-09-05 21:47:34 +000020534ac_header_dirent=no
20535for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20536 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020538$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy98dddb52010-11-04 00:30:15 +000020539if eval "test \"\${$as_ac_Header+set}\"" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020540 $as_echo_n "(cached) " >&6
20541else
cristy8b350f62009-11-15 23:12:43 +000020542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020543/* end confdefs.h. */
20544#include <sys/types.h>
20545#include <$ac_hdr>
20546
20547int
20548main ()
20549{
20550if ((DIR *) 0)
20551return 0;
20552 ;
20553 return 0;
20554}
20555_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020556if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020557 eval "$as_ac_Header=yes"
20558else
cristy8b350f62009-11-15 23:12:43 +000020559 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020560fi
cristy3ed852e2009-09-05 21:47:34 +000020561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20562fi
cristy8b350f62009-11-15 23:12:43 +000020563eval ac_res=\$$as_ac_Header
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020565$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000020566if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000020567 cat >>confdefs.h <<_ACEOF
20568#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20569_ACEOF
20570
20571ac_header_dirent=$ac_hdr; break
20572fi
20573
20574done
20575# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20576if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020578$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020579if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020580 $as_echo_n "(cached) " >&6
20581else
20582 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020584/* end confdefs.h. */
20585
20586/* Override any GCC internal prototype to avoid an error.
20587 Use char because int might match the return type of a GCC
20588 builtin and then its argument prototype would still apply. */
20589#ifdef __cplusplus
20590extern "C"
20591#endif
20592char opendir ();
20593int
20594main ()
20595{
20596return opendir ();
20597 ;
20598 return 0;
20599}
20600_ACEOF
20601for ac_lib in '' dir; do
20602 if test -z "$ac_lib"; then
20603 ac_res="none required"
20604 else
20605 ac_res=-l$ac_lib
20606 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20607 fi
cristy8b350f62009-11-15 23:12:43 +000020608 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020609 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020610fi
cristy8b350f62009-11-15 23:12:43 +000020611rm -f core conftest.err conftest.$ac_objext \
20612 conftest$ac_exeext
20613 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020614 break
20615fi
20616done
cristy8b350f62009-11-15 23:12:43 +000020617if test "${ac_cv_search_opendir+set}" = set; then :
20618
cristy3ed852e2009-09-05 21:47:34 +000020619else
20620 ac_cv_search_opendir=no
20621fi
20622rm conftest.$ac_ext
20623LIBS=$ac_func_search_save_LIBS
20624fi
cristy8b350f62009-11-15 23:12:43 +000020625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020626$as_echo "$ac_cv_search_opendir" >&6; }
20627ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020628if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020629 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20630
20631fi
20632
20633else
cristy8b350f62009-11-15 23:12:43 +000020634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020635$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020636if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020637 $as_echo_n "(cached) " >&6
20638else
20639 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020641/* end confdefs.h. */
20642
20643/* Override any GCC internal prototype to avoid an error.
20644 Use char because int might match the return type of a GCC
20645 builtin and then its argument prototype would still apply. */
20646#ifdef __cplusplus
20647extern "C"
20648#endif
20649char opendir ();
20650int
20651main ()
20652{
20653return opendir ();
20654 ;
20655 return 0;
20656}
20657_ACEOF
20658for ac_lib in '' x; do
20659 if test -z "$ac_lib"; then
20660 ac_res="none required"
20661 else
20662 ac_res=-l$ac_lib
20663 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20664 fi
cristy8b350f62009-11-15 23:12:43 +000020665 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020666 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020667fi
cristy8b350f62009-11-15 23:12:43 +000020668rm -f core conftest.err conftest.$ac_objext \
20669 conftest$ac_exeext
20670 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020671 break
20672fi
20673done
cristy8b350f62009-11-15 23:12:43 +000020674if test "${ac_cv_search_opendir+set}" = set; then :
20675
cristy3ed852e2009-09-05 21:47:34 +000020676else
20677 ac_cv_search_opendir=no
20678fi
20679rm conftest.$ac_ext
20680LIBS=$ac_func_search_save_LIBS
20681fi
cristy8b350f62009-11-15 23:12:43 +000020682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020683$as_echo "$ac_cv_search_opendir" >&6; }
20684ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020685if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020686 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20687
20688fi
20689
20690fi
20691
20692
20693# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020694for 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 +000020695do :
20696 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20697ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000020698if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000020699 cat >>confdefs.h <<_ACEOF
20700#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20701_ACEOF
20702
20703fi
20704
20705done
20706
20707
20708########
20709#
20710# Checks for typedefs, structures, and compiler characteristics.
20711#
20712########
20713
cristy8b350f62009-11-15 23:12:43 +000020714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020715$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020716if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020717 $as_echo_n "(cached) " >&6
20718else
cristy8b350f62009-11-15 23:12:43 +000020719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020720/* end confdefs.h. */
20721
20722#include <stdbool.h>
20723#ifndef bool
20724 "error: bool is not defined"
20725#endif
20726#ifndef false
20727 "error: false is not defined"
20728#endif
20729#if false
20730 "error: false is not 0"
20731#endif
20732#ifndef true
20733 "error: true is not defined"
20734#endif
20735#if true != 1
20736 "error: true is not 1"
20737#endif
20738#ifndef __bool_true_false_are_defined
20739 "error: __bool_true_false_are_defined is not defined"
20740#endif
20741
20742 struct s { _Bool s: 1; _Bool t; } s;
20743
20744 char a[true == 1 ? 1 : -1];
20745 char b[false == 0 ? 1 : -1];
20746 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20747 char d[(bool) 0.5 == true ? 1 : -1];
20748 bool e = &s;
20749 char f[(_Bool) 0.0 == false ? 1 : -1];
20750 char g[true];
20751 char h[sizeof (_Bool)];
20752 char i[sizeof s.t];
20753 enum { j = false, k = true, l = false * true, m = true * 256 };
20754 /* The following fails for
20755 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20756 _Bool n[m];
20757 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20758 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20759# if defined __xlc__ || defined __GNUC__
20760 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20761 reported by James Lemley on 2005-10-05; see
20762 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20763 This test is not quite right, since xlc is allowed to
20764 reject this program, as the initializer for xlcbug is
20765 not one of the forms that C requires support for.
20766 However, doing the test right would require a runtime
20767 test, and that would make cross-compilation harder.
20768 Let us hope that IBM fixes the xlc bug, and also adds
20769 support for this kind of constant expression. In the
20770 meantime, this test will reject xlc, which is OK, since
20771 our stdbool.h substitute should suffice. We also test
20772 this with GCC, where it should work, to detect more
20773 quickly whether someone messes up the test in the
20774 future. */
20775 char digs[] = "0123456789";
20776 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20777# endif
20778 /* Catch a bug in an HP-UX C compiler. See
20779 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20780 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20781 */
20782 _Bool q = true;
20783 _Bool *pq = &q;
20784
20785int
20786main ()
20787{
20788
20789 *pq |= q;
20790 *pq |= ! q;
20791 /* Refer to every declared value, to avoid compiler optimizations. */
20792 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20793 + !m + !n + !o + !p + !q + !pq);
20794
20795 ;
20796 return 0;
20797}
20798_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020799if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020800 ac_cv_header_stdbool_h=yes
20801else
cristy8b350f62009-11-15 23:12:43 +000020802 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000020803fi
cristy3ed852e2009-09-05 21:47:34 +000020804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20805fi
cristy8b350f62009-11-15 23:12:43 +000020806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000020807$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020808ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20809if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020810
20811cat >>confdefs.h <<_ACEOF
20812#define HAVE__BOOL 1
20813_ACEOF
20814
20815
20816fi
20817
20818if test $ac_cv_header_stdbool_h = yes; then
20819
cristy8b350f62009-11-15 23:12:43 +000020820$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020821
20822fi
20823
cristy8b350f62009-11-15 23:12:43 +000020824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020825$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020826if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020827 $as_echo_n "(cached) " >&6
20828else
cristy8b350f62009-11-15 23:12:43 +000020829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020830/* end confdefs.h. */
20831
20832int
20833main ()
20834{
20835
20836volatile int x;
20837int * volatile y = (int *) 0;
20838return !x && !y;
20839 ;
20840 return 0;
20841}
20842_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020843if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020844 ac_cv_c_volatile=yes
20845else
cristy8b350f62009-11-15 23:12:43 +000020846 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000020847fi
cristy3ed852e2009-09-05 21:47:34 +000020848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20849fi
cristy8b350f62009-11-15 23:12:43 +000020850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020851$as_echo "$ac_cv_c_volatile" >&6; }
20852if test $ac_cv_c_volatile = no; then
20853
cristy8b350f62009-11-15 23:12:43 +000020854$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020855
20856fi
20857
cristy8b350f62009-11-15 23:12:43 +000020858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000020859$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020860if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020861 $as_echo_n "(cached) " >&6
20862else
cristy8b350f62009-11-15 23:12:43 +000020863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020864/* end confdefs.h. */
20865#define x(y) #y
20866
20867char *s = x(teststring);
20868_ACEOF
20869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020870 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020871 ac_cv_c_stringize=no
20872else
20873 ac_cv_c_stringize=yes
20874fi
20875rm -f conftest*
20876
20877fi
cristy8b350f62009-11-15 23:12:43 +000020878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000020879$as_echo "$ac_cv_c_stringize" >&6; }
20880if test $ac_cv_c_stringize = yes; then
20881
cristy8b350f62009-11-15 23:12:43 +000020882$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020883
20884fi
20885
cristy8b350f62009-11-15 23:12:43 +000020886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020887$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020888if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020889 $as_echo_n "(cached) " >&6
20890else
cristy8b350f62009-11-15 23:12:43 +000020891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020892/* end confdefs.h. */
20893#include <sys/types.h>
20894#include <sys/stat.h>
20895
20896#if defined S_ISBLK && defined S_IFDIR
20897extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20898#endif
20899
20900#if defined S_ISBLK && defined S_IFCHR
20901extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20902#endif
20903
20904#if defined S_ISLNK && defined S_IFREG
20905extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20906#endif
20907
20908#if defined S_ISSOCK && defined S_IFREG
20909extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20910#endif
20911
20912_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020913if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020914 ac_cv_header_stat_broken=no
20915else
cristy8b350f62009-11-15 23:12:43 +000020916 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000020917fi
cristy3ed852e2009-09-05 21:47:34 +000020918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20919fi
cristy8b350f62009-11-15 23:12:43 +000020920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020921$as_echo "$ac_cv_header_stat_broken" >&6; }
20922if test $ac_cv_header_stat_broken = yes; then
20923
cristy8b350f62009-11-15 23:12:43 +000020924$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020925
20926fi
20927
cristy8b350f62009-11-15 23:12:43 +000020928{ $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 +000020929$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020930if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020931 $as_echo_n "(cached) " >&6
20932else
cristy8b350f62009-11-15 23:12:43 +000020933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020934/* end confdefs.h. */
20935#include <sys/types.h>
20936#include <sys/time.h>
20937#include <time.h>
20938
20939int
20940main ()
20941{
20942if ((struct tm *) 0)
20943return 0;
20944 ;
20945 return 0;
20946}
20947_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020948if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020949 ac_cv_header_time=yes
20950else
cristy8b350f62009-11-15 23:12:43 +000020951 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000020952fi
cristy3ed852e2009-09-05 21:47:34 +000020953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20954fi
cristy8b350f62009-11-15 23:12:43 +000020955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000020956$as_echo "$ac_cv_header_time" >&6; }
20957if test $ac_cv_header_time = yes; then
20958
cristy8b350f62009-11-15 23:12:43 +000020959$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020960
20961fi
20962
cristy8b350f62009-11-15 23:12:43 +000020963{ $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 +000020964$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020965if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020966 $as_echo_n "(cached) " >&6
20967else
cristy8b350f62009-11-15 23:12:43 +000020968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020969/* end confdefs.h. */
20970#include <sys/types.h>
20971#include <time.h>
20972
20973int
20974main ()
20975{
20976struct tm tm;
20977 int *p = &tm.tm_sec;
20978 return !p;
20979 ;
20980 return 0;
20981}
20982_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020983if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020984 ac_cv_struct_tm=time.h
20985else
cristy8b350f62009-11-15 23:12:43 +000020986 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000020987fi
cristy3ed852e2009-09-05 21:47:34 +000020988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20989fi
cristy8b350f62009-11-15 23:12:43 +000020990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000020991$as_echo "$ac_cv_struct_tm" >&6; }
20992if test $ac_cv_struct_tm = sys/time.h; then
20993
cristy8b350f62009-11-15 23:12:43 +000020994$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020995
20996fi
20997
cristy92703d82010-04-26 00:18:18 +000020998ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
20999#include <$ac_cv_struct_tm>
21000
21001"
21002if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21003
21004cat >>confdefs.h <<_ACEOF
21005#define HAVE_STRUCT_TM_TM_ZONE 1
21006_ACEOF
21007
21008
21009fi
21010
21011if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21012
21013$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21014
21015else
21016 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21017"
21018if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21019 ac_have_decl=1
21020else
21021 ac_have_decl=0
21022fi
21023
21024cat >>confdefs.h <<_ACEOF
21025#define HAVE_DECL_TZNAME $ac_have_decl
21026_ACEOF
21027
21028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21029$as_echo_n "checking for tzname... " >&6; }
21030if test "${ac_cv_var_tzname+set}" = set; then :
21031 $as_echo_n "(cached) " >&6
21032else
21033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21034/* end confdefs.h. */
21035#include <time.h>
21036#if !HAVE_DECL_TZNAME
21037extern char *tzname[];
21038#endif
21039
21040int
21041main ()
21042{
21043return tzname[0][0];
21044 ;
21045 return 0;
21046}
21047_ACEOF
21048if ac_fn_c_try_link "$LINENO"; then :
21049 ac_cv_var_tzname=yes
21050else
21051 ac_cv_var_tzname=no
21052fi
21053rm -f core conftest.err conftest.$ac_objext \
21054 conftest$ac_exeext conftest.$ac_ext
21055fi
21056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21057$as_echo "$ac_cv_var_tzname" >&6; }
21058 if test $ac_cv_var_tzname = yes; then
21059
21060$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21061
21062 fi
21063fi
21064
cristy8b350f62009-11-15 23:12:43 +000021065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021066$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021067if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021068 $as_echo_n "(cached) " >&6
21069else
21070 echo '#! /bin/cat
21071exit 69
21072' >conftest
21073chmod u+x conftest
21074(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21075if test $? -ne 69; then
21076 ac_cv_sys_interpreter=yes
21077else
21078 ac_cv_sys_interpreter=no
21079fi
21080rm -f conftest
21081fi
cristy8b350f62009-11-15 23:12:43 +000021082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021083$as_echo "$ac_cv_sys_interpreter" >&6; }
21084interpval=$ac_cv_sys_interpreter
21085
21086
cristy3ed852e2009-09-05 21:47:34 +000021087# If the C compiler supports the keyword inline, do nothing. Otherwise
21088# define inline to __inline__ or __inline if it accepts one of those,
21089# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021091$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021092if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021093 $as_echo_n "(cached) " >&6
21094else
21095 ac_cv_c_inline=no
21096for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021098/* end confdefs.h. */
21099#ifndef __cplusplus
21100typedef int foo_t;
21101static $ac_kw foo_t static_foo () {return 0; }
21102$ac_kw foo_t foo () {return 0; }
21103#endif
21104
21105_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021106if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021107 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021108fi
cristy3ed852e2009-09-05 21:47:34 +000021109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21110 test "$ac_cv_c_inline" != no && break
21111done
21112
21113fi
cristy8b350f62009-11-15 23:12:43 +000021114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021115$as_echo "$ac_cv_c_inline" >&6; }
21116
cristy3ed852e2009-09-05 21:47:34 +000021117case $ac_cv_c_inline in
21118 inline | yes) ;;
21119 *)
21120 case $ac_cv_c_inline in
21121 no) ac_val=;;
21122 *) ac_val=$ac_cv_c_inline;;
21123 esac
21124 cat >>confdefs.h <<_ACEOF
21125#ifndef __cplusplus
21126#define inline $ac_val
21127#endif
21128_ACEOF
21129 ;;
21130esac
21131
21132
21133# If the C compiler supports the keyword restrict, do nothing. Otherwise
21134# define restrict to __restrict__ or __restrict if it accepts one of those,
21135# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021137$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021138if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021139 $as_echo_n "(cached) " >&6
21140else
21141 ac_cv_c_restrict=no
21142 # The order here caters to the fact that C++ does not require restrict.
21143 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021145/* end confdefs.h. */
21146typedef int * int_ptr;
21147 int foo (int_ptr $ac_kw ip) {
21148 return ip[0];
21149 }
21150int
21151main ()
21152{
21153int s[1];
21154 int * $ac_kw t = s;
21155 t[0] = 0;
21156 return foo(t)
21157 ;
21158 return 0;
21159}
21160_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021161if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021162 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021163fi
cristy3ed852e2009-09-05 21:47:34 +000021164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21165 test "$ac_cv_c_restrict" != no && break
21166 done
21167
21168fi
cristy8b350f62009-11-15 23:12:43 +000021169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021170$as_echo "$ac_cv_c_restrict" >&6; }
21171
cristy3ed852e2009-09-05 21:47:34 +000021172 case $ac_cv_c_restrict in
21173 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021174 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021175 ;;
21176 *) cat >>confdefs.h <<_ACEOF
21177#define restrict $ac_cv_c_restrict
21178_ACEOF
21179 ;;
21180 esac
21181
21182
21183# If words are stored with the most significant byte first (like
21184# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021186$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021187if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021188 $as_echo_n "(cached) " >&6
21189else
21190 ac_cv_c_bigendian=unknown
21191 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021193/* end confdefs.h. */
21194#ifndef __APPLE_CC__
21195 not a universal capable compiler
21196 #endif
21197 typedef int dummy;
21198
21199_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021200if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021201
21202 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021203 # there are at least two -arch flags with different values.
21204 ac_arch=
21205 ac_prev=
21206 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21207 if test -n "$ac_prev"; then
21208 case $ac_word in
21209 i?86 | x86_64 | ppc | ppc64)
21210 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21211 ac_arch=$ac_word
21212 else
21213 ac_cv_c_bigendian=universal
21214 break
21215 fi
21216 ;;
21217 esac
21218 ac_prev=
21219 elif test "x$ac_word" = "x-arch"; then
21220 ac_prev=arch
21221 fi
21222 done
cristy3ed852e2009-09-05 21:47:34 +000021223fi
cristy3ed852e2009-09-05 21:47:34 +000021224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21225 if test $ac_cv_c_bigendian = unknown; then
21226 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000021227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021228/* end confdefs.h. */
21229#include <sys/types.h>
21230 #include <sys/param.h>
21231
21232int
21233main ()
21234{
21235#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21236 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21237 && LITTLE_ENDIAN)
21238 bogus endian macros
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 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021248/* end confdefs.h. */
21249#include <sys/types.h>
21250 #include <sys/param.h>
21251
21252int
21253main ()
21254{
21255#if BYTE_ORDER != BIG_ENDIAN
21256 not big endian
21257 #endif
21258
21259 ;
21260 return 0;
21261}
21262_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021263if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021264 ac_cv_c_bigendian=yes
21265else
cristy8b350f62009-11-15 23:12:43 +000021266 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021267fi
cristy3ed852e2009-09-05 21:47:34 +000021268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021269fi
cristy3ed852e2009-09-05 21:47:34 +000021270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21271 fi
21272 if test $ac_cv_c_bigendian = unknown; then
21273 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000021274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021275/* end confdefs.h. */
21276#include <limits.h>
21277
21278int
21279main ()
21280{
21281#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21282 bogus endian macros
21283 #endif
21284
21285 ;
21286 return 0;
21287}
21288_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021289if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021290 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021292/* end confdefs.h. */
21293#include <limits.h>
21294
21295int
21296main ()
21297{
21298#ifndef _BIG_ENDIAN
21299 not big endian
21300 #endif
21301
21302 ;
21303 return 0;
21304}
21305_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021306if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021307 ac_cv_c_bigendian=yes
21308else
cristy8b350f62009-11-15 23:12:43 +000021309 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021310fi
cristy3ed852e2009-09-05 21:47:34 +000021311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021312fi
cristy3ed852e2009-09-05 21:47:34 +000021313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21314 fi
21315 if test $ac_cv_c_bigendian = unknown; then
21316 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000021317 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021318 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000021319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021320/* end confdefs.h. */
21321short int ascii_mm[] =
21322 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21323 short int ascii_ii[] =
21324 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21325 int use_ascii (int i) {
21326 return ascii_mm[i] + ascii_ii[i];
21327 }
21328 short int ebcdic_ii[] =
21329 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21330 short int ebcdic_mm[] =
21331 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21332 int use_ebcdic (int i) {
21333 return ebcdic_mm[i] + ebcdic_ii[i];
21334 }
21335 extern int foo;
21336
21337int
21338main ()
21339{
21340return use_ascii (foo) == use_ebcdic (foo);
21341 ;
21342 return 0;
21343}
21344_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021345if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021346 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21347 ac_cv_c_bigendian=yes
21348 fi
21349 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21350 if test "$ac_cv_c_bigendian" = unknown; then
21351 ac_cv_c_bigendian=no
21352 else
21353 # finding both strings is unlikely to happen, but who knows?
21354 ac_cv_c_bigendian=unknown
21355 fi
21356 fi
cristy3ed852e2009-09-05 21:47:34 +000021357fi
cristy3ed852e2009-09-05 21:47:34 +000021358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21359else
cristy8b350f62009-11-15 23:12:43 +000021360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021361/* end confdefs.h. */
21362$ac_includes_default
21363int
21364main ()
21365{
21366
21367 /* Are we little or big endian? From Harbison&Steele. */
21368 union
21369 {
21370 long int l;
21371 char c[sizeof (long int)];
21372 } u;
21373 u.l = 1;
21374 return u.c[sizeof (long int) - 1] == 1;
21375
21376 ;
21377 return 0;
21378}
21379_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021380if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021381 ac_cv_c_bigendian=no
21382else
cristy8b350f62009-11-15 23:12:43 +000021383 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000021384fi
cristy8b350f62009-11-15 23:12:43 +000021385rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21386 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021387fi
21388
cristy3ed852e2009-09-05 21:47:34 +000021389 fi
21390fi
cristy8b350f62009-11-15 23:12:43 +000021391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021392$as_echo "$ac_cv_c_bigendian" >&6; }
21393 case $ac_cv_c_bigendian in #(
21394 yes)
cristy8b350f62009-11-15 23:12:43 +000021395 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021396;; #(
21397 no)
21398 ;; #(
21399 universal)
21400
cristy8b350f62009-11-15 23:12:43 +000021401$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021402
21403 ;; #(
21404 *)
cristy98dddb52010-11-04 00:30:15 +000021405 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000021406 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021407 esac
21408
21409
21410# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021411ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21412if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021413
cristy3ed852e2009-09-05 21:47:34 +000021414else
21415
21416cat >>confdefs.h <<_ACEOF
21417#define mode_t int
21418_ACEOF
21419
21420fi
21421
21422
21423# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021424ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21425if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021426
cristy3ed852e2009-09-05 21:47:34 +000021427else
21428
21429cat >>confdefs.h <<_ACEOF
21430#define off_t long int
21431_ACEOF
21432
21433fi
21434
21435
21436# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021437ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21438if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021439
cristy3ed852e2009-09-05 21:47:34 +000021440else
21441
21442cat >>confdefs.h <<_ACEOF
21443#define pid_t int
21444_ACEOF
21445
21446fi
21447
21448
21449# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021450ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21451if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021452
cristy3ed852e2009-09-05 21:47:34 +000021453else
21454
21455cat >>confdefs.h <<_ACEOF
21456#define size_t unsigned int
21457_ACEOF
21458
21459fi
21460
21461
21462# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021463ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21464if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021465
cristy3ed852e2009-09-05 21:47:34 +000021466else
21467
21468cat >>confdefs.h <<_ACEOF
21469#define ssize_t int
21470_ACEOF
21471
21472fi
21473
21474
21475# If the C compiler supports a working long double type with more range
21476# or precision than the double type, define HAVE_LONG_DOUBLE.
21477
cristy8b350f62009-11-15 23:12:43 +000021478 { $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 +000021479$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021480if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021481 $as_echo_n "(cached) " >&6
21482else
cristy8b350f62009-11-15 23:12:43 +000021483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021484/* end confdefs.h. */
21485#include <float.h>
21486 long double const a[] =
21487 {
21488 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21489 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21490 };
21491 long double
21492 f (long double x)
21493 {
21494 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21495 + (x ? f (x) : 'c'));
21496 }
21497
21498int
21499main ()
21500{
21501static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21502 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21503 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21504 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21505 && (int) LDBL_EPSILON == 0
21506 )];
21507test_array [0] = 0
21508
21509 ;
21510 return 0;
21511}
21512_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021513if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021514 ac_cv_type_long_double_wider=yes
21515else
cristy8b350f62009-11-15 23:12:43 +000021516 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000021517fi
cristy3ed852e2009-09-05 21:47:34 +000021518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21519fi
cristy8b350f62009-11-15 23:12:43 +000021520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000021521$as_echo "$ac_cv_type_long_double_wider" >&6; }
21522 if test $ac_cv_type_long_double_wider = yes; then
21523
cristy8b350f62009-11-15 23:12:43 +000021524$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021525
21526 fi
21527
21528
21529# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21530# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000021531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021532$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021533if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021534 $as_echo_n "(cached) " >&6
21535else
cristy8b350f62009-11-15 23:12:43 +000021536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021537/* end confdefs.h. */
21538$ac_includes_default
21539int
21540main ()
21541{
21542static int test_array [1 - 2 * !(((char) -1) < 0)];
21543test_array [0] = 0
21544
21545 ;
21546 return 0;
21547}
21548_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021549if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021550 ac_cv_c_char_unsigned=no
21551else
cristy8b350f62009-11-15 23:12:43 +000021552 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000021553fi
cristy3ed852e2009-09-05 21:47:34 +000021554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21555fi
cristy8b350f62009-11-15 23:12:43 +000021556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021557$as_echo "$ac_cv_c_char_unsigned" >&6; }
21558if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000021559 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021560
21561fi
21562
21563
21564# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21565# The cast to long int works around a bug in the HP C Compiler
21566# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21567# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21568# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021570$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021571if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021572 $as_echo_n "(cached) " >&6
21573else
cristy8b350f62009-11-15 23:12:43 +000021574 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 +000021575
cristy3ed852e2009-09-05 21:47:34 +000021576else
cristy8b350f62009-11-15 23:12:43 +000021577 if test "$ac_cv_type_signed_short" = yes; then
21578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021580as_fn_error 77 "cannot compute sizeof (signed short)
21581See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021582 else
21583 ac_cv_sizeof_signed_short=0
21584 fi
21585fi
cristy8b350f62009-11-15 23:12:43 +000021586
cristy3ed852e2009-09-05 21:47:34 +000021587fi
cristy8b350f62009-11-15 23:12:43 +000021588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021589$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21590
21591
21592
21593cat >>confdefs.h <<_ACEOF
21594#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21595_ACEOF
21596
21597
21598
21599# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21600# The cast to long int works around a bug in the HP C Compiler
21601# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21602# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21603# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021605$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021606if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021607 $as_echo_n "(cached) " >&6
21608else
cristy8b350f62009-11-15 23:12:43 +000021609 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 +000021610
cristy3ed852e2009-09-05 21:47:34 +000021611else
cristy8b350f62009-11-15 23:12:43 +000021612 if test "$ac_cv_type_unsigned_short" = yes; then
21613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021615as_fn_error 77 "cannot compute sizeof (unsigned short)
21616See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021617 else
21618 ac_cv_sizeof_unsigned_short=0
21619 fi
21620fi
cristy8b350f62009-11-15 23:12:43 +000021621
cristy3ed852e2009-09-05 21:47:34 +000021622fi
cristy8b350f62009-11-15 23:12:43 +000021623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021624$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21625
21626
21627
21628cat >>confdefs.h <<_ACEOF
21629#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21630_ACEOF
21631
21632
21633
21634# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21635# The cast to long int works around a bug in the HP C Compiler
21636# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21637# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21638# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021640$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021641if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021642 $as_echo_n "(cached) " >&6
21643else
cristy8b350f62009-11-15 23:12:43 +000021644 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 +000021645
cristy3ed852e2009-09-05 21:47:34 +000021646else
cristy8b350f62009-11-15 23:12:43 +000021647 if test "$ac_cv_type_signed_int" = yes; then
21648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021649$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021650as_fn_error 77 "cannot compute sizeof (signed int)
21651See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021652 else
21653 ac_cv_sizeof_signed_int=0
21654 fi
21655fi
cristy8b350f62009-11-15 23:12:43 +000021656
cristy3ed852e2009-09-05 21:47:34 +000021657fi
cristy8b350f62009-11-15 23:12:43 +000021658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021659$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21660
21661
21662
21663cat >>confdefs.h <<_ACEOF
21664#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21665_ACEOF
21666
21667
21668
21669# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21670# The cast to long int works around a bug in the HP C Compiler
21671# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21672# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21673# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021675$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021676if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021677 $as_echo_n "(cached) " >&6
21678else
cristy8b350f62009-11-15 23:12:43 +000021679 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 +000021680
cristy3ed852e2009-09-05 21:47:34 +000021681else
cristy8b350f62009-11-15 23:12:43 +000021682 if test "$ac_cv_type_unsigned_int" = yes; then
21683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021684$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021685as_fn_error 77 "cannot compute sizeof (unsigned int)
21686See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021687 else
21688 ac_cv_sizeof_unsigned_int=0
21689 fi
21690fi
cristy8b350f62009-11-15 23:12:43 +000021691
cristy3ed852e2009-09-05 21:47:34 +000021692fi
cristy8b350f62009-11-15 23:12:43 +000021693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021694$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21695
21696
21697
21698cat >>confdefs.h <<_ACEOF
21699#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21700_ACEOF
21701
21702
21703
21704# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21705# The cast to long int works around a bug in the HP C Compiler
21706# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21707# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21708# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021710$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021711if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021712 $as_echo_n "(cached) " >&6
21713else
cristy8b350f62009-11-15 23:12:43 +000021714 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 +000021715
cristy3ed852e2009-09-05 21:47:34 +000021716else
cristy8b350f62009-11-15 23:12:43 +000021717 if test "$ac_cv_type_signed_long" = yes; then
21718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021719$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021720as_fn_error 77 "cannot compute sizeof (signed long)
21721See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021722 else
21723 ac_cv_sizeof_signed_long=0
21724 fi
21725fi
cristy8b350f62009-11-15 23:12:43 +000021726
cristy3ed852e2009-09-05 21:47:34 +000021727fi
cristy8b350f62009-11-15 23:12:43 +000021728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021729$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21730
21731
21732
21733cat >>confdefs.h <<_ACEOF
21734#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21735_ACEOF
21736
21737
21738
21739# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21740# The cast to long int works around a bug in the HP C Compiler
21741# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21742# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21743# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021745$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021746if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021747 $as_echo_n "(cached) " >&6
21748else
cristy8b350f62009-11-15 23:12:43 +000021749 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 +000021750
cristy3ed852e2009-09-05 21:47:34 +000021751else
cristy8b350f62009-11-15 23:12:43 +000021752 if test "$ac_cv_type_unsigned_long" = yes; then
21753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021754$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021755as_fn_error 77 "cannot compute sizeof (unsigned long)
21756See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021757 else
21758 ac_cv_sizeof_unsigned_long=0
21759 fi
21760fi
cristy8b350f62009-11-15 23:12:43 +000021761
cristy3ed852e2009-09-05 21:47:34 +000021762fi
cristy8b350f62009-11-15 23:12:43 +000021763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021764$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21765
21766
21767
21768cat >>confdefs.h <<_ACEOF
21769#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21770_ACEOF
21771
21772
21773
21774# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21775# 'signed long long' is not supported then the value defined is zero.
21776# The cast to long int works around a bug in the HP C Compiler
21777# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21778# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21779# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021781$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021782if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021783 $as_echo_n "(cached) " >&6
21784else
cristy8b350f62009-11-15 23:12:43 +000021785 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 +000021786
cristy3ed852e2009-09-05 21:47:34 +000021787else
cristy8b350f62009-11-15 23:12:43 +000021788 if test "$ac_cv_type_signed_long_long" = yes; then
21789 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021790$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021791as_fn_error 77 "cannot compute sizeof (signed long long)
21792See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021793 else
21794 ac_cv_sizeof_signed_long_long=0
21795 fi
21796fi
cristy8b350f62009-11-15 23:12:43 +000021797
cristy3ed852e2009-09-05 21:47:34 +000021798fi
cristy8b350f62009-11-15 23:12:43 +000021799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021800$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21801
21802
21803
21804cat >>confdefs.h <<_ACEOF
21805#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21806_ACEOF
21807
21808
21809
21810# Obtain size of a 'unsigned long long' and define as
21811# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
21812# supported then the value defined is zero.
21813# The cast to long int works around a bug in the HP C Compiler
21814# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21815# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21816# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021818$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021819if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021820 $as_echo_n "(cached) " >&6
21821else
cristy8b350f62009-11-15 23:12:43 +000021822 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 +000021823
cristy3ed852e2009-09-05 21:47:34 +000021824else
cristy8b350f62009-11-15 23:12:43 +000021825 if test "$ac_cv_type_unsigned_long_long" = yes; then
21826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021827$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021828as_fn_error 77 "cannot compute sizeof (unsigned long long)
21829See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021830 else
21831 ac_cv_sizeof_unsigned_long_long=0
21832 fi
21833fi
cristy8b350f62009-11-15 23:12:43 +000021834
cristy3ed852e2009-09-05 21:47:34 +000021835fi
cristy8b350f62009-11-15 23:12:43 +000021836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021837$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
21838
21839
21840
21841cat >>confdefs.h <<_ACEOF
21842#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21843_ACEOF
21844
21845
21846
21847# Obtain size of off_t and define as SIZEOF_OFF_T
21848# The cast to long int works around a bug in the HP C Compiler
21849# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21850# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21851# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021853$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021854if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021855 $as_echo_n "(cached) " >&6
21856else
cristy8b350f62009-11-15 23:12:43 +000021857 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 +000021858
cristy3ed852e2009-09-05 21:47:34 +000021859else
cristy8b350f62009-11-15 23:12:43 +000021860 if test "$ac_cv_type_off_t" = yes; then
21861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021862$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021863as_fn_error 77 "cannot compute sizeof (off_t)
21864See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021865 else
21866 ac_cv_sizeof_off_t=0
21867 fi
21868fi
cristy8b350f62009-11-15 23:12:43 +000021869
cristy3ed852e2009-09-05 21:47:34 +000021870fi
cristy8b350f62009-11-15 23:12:43 +000021871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021872$as_echo "$ac_cv_sizeof_off_t" >&6; }
21873
21874
21875
21876cat >>confdefs.h <<_ACEOF
21877#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21878_ACEOF
21879
21880
21881
21882# Obtain size of size_t and define as SIZEOF_SIZE_T
21883# The cast to long int works around a bug in the HP C Compiler
21884# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21885# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21886# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021888$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021889if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021890 $as_echo_n "(cached) " >&6
21891else
cristy8b350f62009-11-15 23:12:43 +000021892 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 +000021893
cristy3ed852e2009-09-05 21:47:34 +000021894else
cristy8b350f62009-11-15 23:12:43 +000021895 if test "$ac_cv_type_size_t" = yes; then
21896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021897$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021898as_fn_error 77 "cannot compute sizeof (size_t)
21899See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021900 else
21901 ac_cv_sizeof_size_t=0
21902 fi
21903fi
cristy8b350f62009-11-15 23:12:43 +000021904
cristy3ed852e2009-09-05 21:47:34 +000021905fi
cristy8b350f62009-11-15 23:12:43 +000021906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021907$as_echo "$ac_cv_sizeof_size_t" >&6; }
21908
21909
21910
21911cat >>confdefs.h <<_ACEOF
21912#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21913_ACEOF
21914
21915
21916
cristy330e9352010-06-01 18:42:49 +000021917# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
21918# The cast to long int works around a bug in the HP C Compiler
21919# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21920# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21921# This bug is HP SR number 8606223364.
21922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
21923$as_echo_n "checking size of ssize_t... " >&6; }
21924if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
21925 $as_echo_n "(cached) " >&6
21926else
21927 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
21928
21929else
21930 if test "$ac_cv_type_ssize_t" = yes; then
21931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21932$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021933as_fn_error 77 "cannot compute sizeof (ssize_t)
21934See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000021935 else
21936 ac_cv_sizeof_ssize_t=0
21937 fi
21938fi
21939
21940fi
21941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
21942$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
21943
21944
21945
21946cat >>confdefs.h <<_ACEOF
21947#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
21948_ACEOF
21949
21950
21951
cristy3ed852e2009-09-05 21:47:34 +000021952# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
21953# The cast to long int works around a bug in the HP C Compiler
21954# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21955# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21956# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000021958$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021959if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021960 $as_echo_n "(cached) " >&6
21961else
cristy8b350f62009-11-15 23:12:43 +000021962 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 +000021963
cristy3ed852e2009-09-05 21:47:34 +000021964else
cristy8b350f62009-11-15 23:12:43 +000021965 if test "$ac_cv_type_unsigned_intp" = yes; then
21966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000021968as_fn_error 77 "cannot compute sizeof (unsigned int*)
21969See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000021970 else
21971 ac_cv_sizeof_unsigned_intp=0
21972 fi
21973fi
cristy8b350f62009-11-15 23:12:43 +000021974
cristy3ed852e2009-09-05 21:47:34 +000021975fi
cristy8b350f62009-11-15 23:12:43 +000021976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021977$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
21978
21979
21980
21981cat >>confdefs.h <<_ACEOF
21982#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
21983_ACEOF
21984
21985
21986
21987#
21988# Compute sized types for current CPU and compiler options.
21989#
21990
cristy8b350f62009-11-15 23:12:43 +000021991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021992$as_echo_n "checking for signed 8-bit type... " >&6; }
21993INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000021994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021995$as_echo "$INT8_T" >&6; }
21996
21997
cristy8b350f62009-11-15 23:12:43 +000021998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021999$as_echo_n "checking for unsigned 8-bit type... " >&6; }
22000UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000022001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022002$as_echo "$UINT8_T" >&6; }
22003
22004
cristy8b350f62009-11-15 23:12:43 +000022005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022006$as_echo_n "checking for signed 16-bit type... " >&6; }
22007INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022009$as_echo "$INT16_T" >&6; }
22010
22011
cristy8b350f62009-11-15 23:12:43 +000022012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022013$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22014UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022016$as_echo "$UINT16_T" >&6; }
22017
22018
cristy8b350f62009-11-15 23:12:43 +000022019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022020$as_echo_n "checking for signed 32-bit type... " >&6; }
22021INT32_T='none'
22022if test $ac_cv_sizeof_signed_int -eq 4; then
22023 INT32_T='signed int'
22024elif test $ac_cv_sizeof_signed_long -eq 4; then
22025 INT32_T='signed long'
22026fi
cristy8b350f62009-11-15 23:12:43 +000022027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022028$as_echo "$INT32_T" >&6; }
22029
22030
cristy8b350f62009-11-15 23:12:43 +000022031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022032$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22033UINT32_T='none'
22034if test $ac_cv_sizeof_unsigned_int -eq 4; then
22035 UINT32_T='unsigned int'
22036elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22037 UINT32_T='unsigned long'
22038fi
cristy8b350f62009-11-15 23:12:43 +000022039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022040$as_echo "$UINT32_T" >&6; }
22041
22042
cristy8b350f62009-11-15 23:12:43 +000022043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022044$as_echo_n "checking for signed 64-bit type... " >&6; }
22045INT64_T='none'
22046if test $ac_cv_sizeof_signed_long -eq 8; then
22047 INT64_T='signed long'
22048elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22049 INT64_T='signed long long'
22050fi
cristy8b350f62009-11-15 23:12:43 +000022051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022052$as_echo "$INT64_T" >&6; }
22053
22054
cristy8b350f62009-11-15 23:12:43 +000022055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022056$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22057UINT64_T='none'
22058if test $ac_cv_sizeof_unsigned_long -eq 8; then
22059 UINT64_T='unsigned long'
22060elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22061 UINT64_T='unsigned long long'
22062fi
cristy8b350f62009-11-15 23:12:43 +000022063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022064$as_echo "$UINT64_T" >&6; }
22065
22066
cristy8b350f62009-11-15 23:12:43 +000022067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022068$as_echo_n "checking for unsigned maximum type... " >&6; }
22069UINTMAX_T='none'
22070if test "$UINT64_T" != 'none'; then
22071 UINTMAX_T=$UINT64_T
22072elif test "$UINT32_T" != 'none'; then
22073 UINTMAX_T=$UINT32_T
22074fi
cristy8b350f62009-11-15 23:12:43 +000022075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022076$as_echo "$UINTMAX_T" >&6; }
22077
22078
cristy8b350f62009-11-15 23:12:43 +000022079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022080$as_echo_n "checking for pointer difference type... " >&6; }
22081UINTPTR_T='none'
22082if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22083 UINTPTR_T='unsigned long'
22084elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22085 UINTPTR_T='unsigned long long'
22086fi
cristy8b350f62009-11-15 23:12:43 +000022087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022088$as_echo "$UINTPTR_T" >&6; }
22089
22090
cristy8b350f62009-11-15 23:12:43 +000022091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022092$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022094/* end confdefs.h. */
22095
22096int
22097main ()
22098{
22099{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22100 ;
22101 return 0;
22102}
22103_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022104if ac_fn_c_try_compile "$LINENO"; then :
22105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022106$as_echo "yes" >&6; }
22107else
cristy8b350f62009-11-15 23:12:43 +000022108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022109$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022111$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022113/* end confdefs.h. */
22114
22115int
22116main ()
22117{
22118{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22119 ;
22120 return 0;
22121}
22122_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022123if ac_fn_c_try_compile "$LINENO"; then :
22124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022125$as_echo "yes" >&6; }
22126
cristy8b350f62009-11-15 23:12:43 +000022127$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022128
22129else
cristy8b350f62009-11-15 23:12:43 +000022130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022131$as_echo "no" >&6; }
22132
cristy8b350f62009-11-15 23:12:43 +000022133$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022134
22135fi
cristy3ed852e2009-09-05 21:47:34 +000022136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22137fi
cristy3ed852e2009-09-05 21:47:34 +000022138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22139
22140########
22141#
22142# Check for functions
22143#
22144########
cristy73bd4a52010-10-05 11:24:23 +000022145for ac_header in stdlib.h unistd.h
22146do :
22147 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22148ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022149if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000022150 cat >>confdefs.h <<_ACEOF
22151#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22152_ACEOF
22153
22154fi
22155
22156done
22157
22158for ac_func in getpagesize
22159do :
22160 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22161if test "x$ac_cv_func_getpagesize" = x""yes; then :
22162 cat >>confdefs.h <<_ACEOF
22163#define HAVE_GETPAGESIZE 1
22164_ACEOF
22165
22166fi
22167done
22168
22169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
22170$as_echo_n "checking for working mmap file i/o... " >&6; }
22171if test "${magick_cv_func_mmap_fileio+set}" = set; then :
22172 $as_echo_n "(cached) " >&6
22173else
22174 if test "$cross_compiling" = yes; then :
22175 magick_cv_func_mmap_fileio=no
22176else
22177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22178/* end confdefs.h. */
22179$ac_includes_default
22180/* malloc might have been renamed as rpl_malloc. */
22181#undef malloc
22182
22183/*
22184 This test is derived from GNU Autoconf's similar macro.
22185 The purpose of this test is to verify that files may be memory
22186 mapped, and that memory mapping and file I/O are coherent.
22187
22188 The test creates a test file, memory maps the file, updates
22189 the file using the memory map, and then reads the file using
22190 file I/O to verify that the file contains the updates.
22191*/
22192
22193#include <fcntl.h>
22194#include <sys/mman.h>
22195
22196#if !STDC_HEADERS && !HAVE_STDLIB_H
22197char *malloc ();
22198#endif
22199
22200/* This mess was copied from the GNU getpagesize.h. */
22201#if !HAVE_GETPAGESIZE
22202/* Assume that all systems that can run configure have sys/param.h. */
22203# if !HAVE_SYS_PARAM_H
22204# define HAVE_SYS_PARAM_H 1
22205# endif
22206
22207# ifdef _SC_PAGESIZE
22208# define getpagesize() sysconf(_SC_PAGESIZE)
22209# else /* no _SC_PAGESIZE */
22210# if HAVE_SYS_PARAM_H
22211# include <sys/param.h>
22212# ifdef EXEC_PAGESIZE
22213# define getpagesize() EXEC_PAGESIZE
22214# else /* no EXEC_PAGESIZE */
22215# ifdef NBPG
22216# define getpagesize() NBPG * CLSIZE
22217# ifndef CLSIZE
22218# define CLSIZE 1
22219# endif /* no CLSIZE */
22220# else /* no NBPG */
22221# ifdef NBPC
22222# define getpagesize() NBPC
22223# else /* no NBPC */
22224# ifdef PAGESIZE
22225# define getpagesize() PAGESIZE
22226# endif /* PAGESIZE */
22227# endif /* no NBPC */
22228# endif /* no NBPG */
22229# endif /* no EXEC_PAGESIZE */
22230# else /* no HAVE_SYS_PARAM_H */
22231# define getpagesize() 8192 /* punt totally */
22232# endif /* no HAVE_SYS_PARAM_H */
22233# endif /* no _SC_PAGESIZE */
22234
22235#endif /* no HAVE_GETPAGESIZE */
22236
22237int
22238main ()
22239{
22240 char *data, *data2, *data3;
22241 int i, pagesize;
22242 int fd;
22243
22244 pagesize = getpagesize ();
22245
22246 /* First, make a file with some known garbage in it. */
22247 data = (char *) malloc (pagesize);
22248 if (!data)
22249 exit (1);
22250 for (i = 0; i < pagesize; ++i)
22251 *(data + i) = rand ();
22252 umask (0);
22253 fd = creat ("conftest.mmap", 0600);
22254 if (fd < 0)
22255 exit (1);
22256 if (write (fd, data, pagesize) != pagesize)
22257 exit (1);
22258 close (fd);
22259
22260 /* Mmap the file as read/write/shared and verify that we see the
22261 same garbage. */
22262 fd = open ("conftest.mmap", O_RDWR);
22263 if (fd < 0)
22264 exit (1);
22265 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22266 if (data2 == 0)
22267 exit (1);
22268 for (i = 0; i < pagesize; ++i)
22269 if (*(data + i) != *(data2 + i))
22270 exit (1);
22271
22272 /* Finally, make sure that changes to the mapped area
22273 percolate back to the file as seen by read(). */
22274 for (i = 0; i < pagesize; ++i)
22275 *(data2 + i) = *(data2 + i) + 1;
22276 data3 = (char *) malloc (pagesize);
22277 if (!data3)
22278 exit (1);
22279 if (read (fd, data3, pagesize) != pagesize)
22280 exit (1);
22281 for (i = 0; i < pagesize; ++i)
22282 if (*(data2 + i) != *(data3 + i))
22283 exit (1);
22284 close (fd);
22285 exit (0);
22286}
22287_ACEOF
22288if ac_fn_c_try_run "$LINENO"; then :
22289 magick_cv_func_mmap_fileio=yes
22290else
22291 magick_cv_func_mmap_fileio=no
22292fi
22293rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22294 conftest.$ac_objext conftest.beam conftest.$ac_ext
22295fi
22296
22297fi
22298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
22299$as_echo "$magick_cv_func_mmap_fileio" >&6; }
22300if test $magick_cv_func_mmap_fileio = yes; then
22301
22302$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
22303
22304fi
22305rm -f conftest.mmap
22306
cristy8b350f62009-11-15 23:12:43 +000022307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022308$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022309if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022310 $as_echo_n "(cached) " >&6
22311else
cristy8b350f62009-11-15 23:12:43 +000022312 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022313 ac_cv_func_closedir_void=yes
22314else
cristy8b350f62009-11-15 23:12:43 +000022315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022316/* end confdefs.h. */
22317$ac_includes_default
22318#include <$ac_header_dirent>
22319#ifndef __cplusplus
22320int closedir ();
22321#endif
22322
22323int
22324main ()
22325{
22326return closedir (opendir (".")) != 0;
22327 ;
22328 return 0;
22329}
22330_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022331if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022332 ac_cv_func_closedir_void=no
22333else
cristy8b350f62009-11-15 23:12:43 +000022334 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000022335fi
cristy8b350f62009-11-15 23:12:43 +000022336rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22337 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022338fi
22339
cristy3ed852e2009-09-05 21:47:34 +000022340fi
cristy8b350f62009-11-15 23:12:43 +000022341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022342$as_echo "$ac_cv_func_closedir_void" >&6; }
22343if test $ac_cv_func_closedir_void = yes; then
22344
cristy8b350f62009-11-15 23:12:43 +000022345$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022346
22347fi
22348
cristycd4c5312009-11-22 01:19:08 +000022349
22350
22351
22352 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000022353do :
22354 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000022355ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22356"
cristy98dddb52010-11-04 00:30:15 +000022357if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022358 cat >>confdefs.h <<_ACEOF
22359#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22360_ACEOF
22361
22362fi
22363
22364done
22365
cristycd4c5312009-11-22 01:19:08 +000022366
22367
22368
22369
22370
22371
22372
cristy3ed852e2009-09-05 21:47:34 +000022373for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022374do :
22375 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22376if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022377 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022378#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022379_ACEOF
22380
22381fi
22382done
22383
cristy8b350f62009-11-15 23:12:43 +000022384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000022385$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022386if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022387 $as_echo_n "(cached) " >&6
22388else
cristy8b350f62009-11-15 23:12:43 +000022389 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022390 ac_cv_func_mmap_fixed_mapped=no
22391else
cristy8b350f62009-11-15 23:12:43 +000022392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022393/* end confdefs.h. */
22394$ac_includes_default
22395/* malloc might have been renamed as rpl_malloc. */
22396#undef malloc
22397
22398/* Thanks to Mike Haertel and Jim Avera for this test.
22399 Here is a matrix of mmap possibilities:
22400 mmap private not fixed
22401 mmap private fixed at somewhere currently unmapped
22402 mmap private fixed at somewhere already mapped
22403 mmap shared not fixed
22404 mmap shared fixed at somewhere currently unmapped
22405 mmap shared fixed at somewhere already mapped
22406 For private mappings, we should verify that changes cannot be read()
22407 back from the file, nor mmap's back from the file at a different
22408 address. (There have been systems where private was not correctly
22409 implemented like the infamous i386 svr4.0, and systems where the
22410 VM page cache was not coherent with the file system buffer cache
22411 like early versions of FreeBSD and possibly contemporary NetBSD.)
22412 For shared mappings, we should conversely verify that changes get
22413 propagated back to all the places they're supposed to be.
22414
22415 Grep wants private fixed already mapped.
22416 The main things grep needs to know about mmap are:
22417 * does it exist and is it safe to write into the mmap'd area
22418 * how to use it (BSD variants) */
22419
22420#include <fcntl.h>
22421#include <sys/mman.h>
22422
22423#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22424char *malloc ();
22425#endif
22426
22427/* This mess was copied from the GNU getpagesize.h. */
22428#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000022429# ifdef _SC_PAGESIZE
22430# define getpagesize() sysconf(_SC_PAGESIZE)
22431# else /* no _SC_PAGESIZE */
22432# ifdef HAVE_SYS_PARAM_H
22433# include <sys/param.h>
22434# ifdef EXEC_PAGESIZE
22435# define getpagesize() EXEC_PAGESIZE
22436# else /* no EXEC_PAGESIZE */
22437# ifdef NBPG
22438# define getpagesize() NBPG * CLSIZE
22439# ifndef CLSIZE
22440# define CLSIZE 1
22441# endif /* no CLSIZE */
22442# else /* no NBPG */
22443# ifdef NBPC
22444# define getpagesize() NBPC
22445# else /* no NBPC */
22446# ifdef PAGESIZE
22447# define getpagesize() PAGESIZE
22448# endif /* PAGESIZE */
22449# endif /* no NBPC */
22450# endif /* no NBPG */
22451# endif /* no EXEC_PAGESIZE */
22452# else /* no HAVE_SYS_PARAM_H */
22453# define getpagesize() 8192 /* punt totally */
22454# endif /* no HAVE_SYS_PARAM_H */
22455# endif /* no _SC_PAGESIZE */
22456
22457#endif /* no HAVE_GETPAGESIZE */
22458
22459int
22460main ()
22461{
22462 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000022463 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000022464 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000022465 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000022466
22467 pagesize = getpagesize ();
22468
22469 /* First, make a file with some known garbage in it. */
22470 data = (char *) malloc (pagesize);
22471 if (!data)
22472 return 1;
22473 for (i = 0; i < pagesize; ++i)
22474 *(data + i) = rand ();
22475 umask (0);
22476 fd = creat ("conftest.mmap", 0600);
22477 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022478 return 2;
cristy3ed852e2009-09-05 21:47:34 +000022479 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022480 return 3;
cristy3ed852e2009-09-05 21:47:34 +000022481 close (fd);
22482
cristycd4c5312009-11-22 01:19:08 +000022483 /* Next, check that the tail of a page is zero-filled. File must have
22484 non-zero length, otherwise we risk SIGBUS for entire page. */
22485 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22486 if (fd2 < 0)
22487 return 4;
cristyc54f5d42009-11-27 21:36:31 +000022488 cdata2 = "";
22489 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000022490 return 5;
cristyc54f5d42009-11-27 21:36:31 +000022491 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000022492 if (data2 == MAP_FAILED)
22493 return 6;
22494 for (i = 0; i < pagesize; ++i)
22495 if (*(data2 + i))
22496 return 7;
22497 close (fd2);
22498 if (munmap (data2, pagesize))
22499 return 8;
22500
cristy3ed852e2009-09-05 21:47:34 +000022501 /* Next, try to mmap the file at a fixed address which already has
22502 something else allocated at it. If we can, also make sure that
22503 we see the same garbage. */
22504 fd = open ("conftest.mmap", O_RDWR);
22505 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022506 return 9;
cristy3ed852e2009-09-05 21:47:34 +000022507 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22508 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000022509 return 10;
cristy3ed852e2009-09-05 21:47:34 +000022510 for (i = 0; i < pagesize; ++i)
22511 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000022512 return 11;
cristy3ed852e2009-09-05 21:47:34 +000022513
22514 /* Finally, make sure that changes to the mapped area do not
22515 percolate back to the file as seen by read(). (This is a bug on
22516 some variants of i386 svr4.0.) */
22517 for (i = 0; i < pagesize; ++i)
22518 *(data2 + i) = *(data2 + i) + 1;
22519 data3 = (char *) malloc (pagesize);
22520 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000022521 return 12;
cristy3ed852e2009-09-05 21:47:34 +000022522 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022523 return 13;
cristy3ed852e2009-09-05 21:47:34 +000022524 for (i = 0; i < pagesize; ++i)
22525 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000022526 return 14;
cristy3ed852e2009-09-05 21:47:34 +000022527 close (fd);
22528 return 0;
22529}
22530_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022531if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022532 ac_cv_func_mmap_fixed_mapped=yes
22533else
cristy8b350f62009-11-15 23:12:43 +000022534 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000022535fi
cristy8b350f62009-11-15 23:12:43 +000022536rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22537 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022538fi
22539
cristy3ed852e2009-09-05 21:47:34 +000022540fi
cristy8b350f62009-11-15 23:12:43 +000022541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000022542$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22543if test $ac_cv_func_mmap_fixed_mapped = yes; then
22544
cristy8b350f62009-11-15 23:12:43 +000022545$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022546
22547fi
cristycd4c5312009-11-22 01:19:08 +000022548rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000022549
cristy3ed852e2009-09-05 21:47:34 +000022550for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000022551do :
22552 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22553if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022554 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022555#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000022556_ACEOF
22557
22558fi
22559
22560done
22561
cristy3ed852e2009-09-05 21:47:34 +000022562for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000022563do :
22564 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22565ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000022566if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022567 cat >>confdefs.h <<_ACEOF
22568#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22569_ACEOF
22570
22571fi
22572done
22573
22574if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022576$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022577if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022578 $as_echo_n "(cached) " >&6
22579else
cristy8b350f62009-11-15 23:12:43 +000022580 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022581 ac_cv_func_fork_works=cross
22582else
cristy8b350f62009-11-15 23:12:43 +000022583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022584/* end confdefs.h. */
22585$ac_includes_default
22586int
22587main ()
22588{
22589
22590 /* By Ruediger Kuhlmann. */
22591 return fork () < 0;
22592
22593 ;
22594 return 0;
22595}
22596_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022597if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022598 ac_cv_func_fork_works=yes
22599else
cristy8b350f62009-11-15 23:12:43 +000022600 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022601fi
cristy8b350f62009-11-15 23:12:43 +000022602rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22603 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022604fi
22605
cristy3ed852e2009-09-05 21:47:34 +000022606fi
cristy8b350f62009-11-15 23:12:43 +000022607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022608$as_echo "$ac_cv_func_fork_works" >&6; }
22609
22610else
22611 ac_cv_func_fork_works=$ac_cv_func_fork
22612fi
22613if test "x$ac_cv_func_fork_works" = xcross; then
22614 case $host in
22615 *-*-amigaos* | *-*-msdosdjgpp*)
22616 # Override, as these systems have only a dummy fork() stub
22617 ac_cv_func_fork_works=no
22618 ;;
22619 *)
22620 ac_cv_func_fork_works=yes
22621 ;;
22622 esac
cristy8b350f62009-11-15 23:12:43 +000022623 { $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 +000022624$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22625fi
22626ac_cv_func_vfork_works=$ac_cv_func_vfork
22627if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022629$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022630if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022631 $as_echo_n "(cached) " >&6
22632else
cristy8b350f62009-11-15 23:12:43 +000022633 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022634 ac_cv_func_vfork_works=cross
22635else
cristy8b350f62009-11-15 23:12:43 +000022636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022637/* end confdefs.h. */
22638/* Thanks to Paul Eggert for this test. */
22639$ac_includes_default
22640#include <sys/wait.h>
22641#ifdef HAVE_VFORK_H
22642# include <vfork.h>
22643#endif
22644/* On some sparc systems, changes by the child to local and incoming
22645 argument registers are propagated back to the parent. The compiler
22646 is told about this with #include <vfork.h>, but some compilers
22647 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22648 static variable whose address is put into a register that is
22649 clobbered by the vfork. */
22650static void
22651#ifdef __cplusplus
22652sparc_address_test (int arg)
22653# else
22654sparc_address_test (arg) int arg;
22655#endif
22656{
22657 static pid_t child;
22658 if (!child) {
22659 child = vfork ();
22660 if (child < 0) {
22661 perror ("vfork");
22662 _exit(2);
22663 }
22664 if (!child) {
22665 arg = getpid();
22666 write(-1, "", 0);
22667 _exit (arg);
22668 }
22669 }
22670}
22671
22672int
22673main ()
22674{
22675 pid_t parent = getpid ();
22676 pid_t child;
22677
22678 sparc_address_test (0);
22679
22680 child = vfork ();
22681
22682 if (child == 0) {
22683 /* Here is another test for sparc vfork register problems. This
22684 test uses lots of local variables, at least as many local
22685 variables as main has allocated so far including compiler
22686 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22687 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22688 reuse the register of parent for one of the local variables,
22689 since it will think that parent can't possibly be used any more
22690 in this routine. Assigning to the local variable will thus
22691 munge parent in the parent process. */
22692 pid_t
22693 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22694 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22695 /* Convince the compiler that p..p7 are live; otherwise, it might
22696 use the same hardware register for all 8 local variables. */
22697 if (p != p1 || p != p2 || p != p3 || p != p4
22698 || p != p5 || p != p6 || p != p7)
22699 _exit(1);
22700
22701 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22702 from child file descriptors. If the child closes a descriptor
22703 before it execs or exits, this munges the parent's descriptor
22704 as well. Test for this by closing stdout in the child. */
22705 _exit(close(fileno(stdout)) != 0);
22706 } else {
22707 int status;
22708 struct stat st;
22709
22710 while (wait(&status) != child)
22711 ;
22712 return (
22713 /* Was there some problem with vforking? */
22714 child < 0
22715
22716 /* Did the child fail? (This shouldn't happen.) */
22717 || status
22718
22719 /* Did the vfork/compiler bug occur? */
22720 || parent != getpid()
22721
22722 /* Did the file descriptor bug occur? */
22723 || fstat(fileno(stdout), &st) != 0
22724 );
22725 }
22726}
22727_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022728if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022729 ac_cv_func_vfork_works=yes
22730else
cristy8b350f62009-11-15 23:12:43 +000022731 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022732fi
cristy8b350f62009-11-15 23:12:43 +000022733rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22734 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022735fi
22736
cristy3ed852e2009-09-05 21:47:34 +000022737fi
cristy8b350f62009-11-15 23:12:43 +000022738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022739$as_echo "$ac_cv_func_vfork_works" >&6; }
22740
22741fi;
22742if test "x$ac_cv_func_fork_works" = xcross; then
22743 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022744 { $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 +000022745$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22746fi
22747
22748if test "x$ac_cv_func_vfork_works" = xyes; then
22749
cristy8b350f62009-11-15 23:12:43 +000022750$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022751
22752else
22753
cristy8b350f62009-11-15 23:12:43 +000022754$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022755
22756fi
22757if test "x$ac_cv_func_fork_works" = xyes; then
22758
cristy8b350f62009-11-15 23:12:43 +000022759$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022760
22761fi
22762
cristy8b350f62009-11-15 23:12:43 +000022763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022764$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022765if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022766 $as_echo_n "(cached) " >&6
22767else
cristy8b350f62009-11-15 23:12:43 +000022768 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022769 ac_cv_func_memcmp_working=no
22770else
cristy8b350f62009-11-15 23:12:43 +000022771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022772/* end confdefs.h. */
22773$ac_includes_default
22774int
22775main ()
22776{
22777
22778 /* Some versions of memcmp are not 8-bit clean. */
22779 char c0 = '\100', c1 = '\200', c2 = '\201';
22780 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22781 return 1;
22782
22783 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22784 or more and with at least one buffer not starting on a 4-byte boundary.
22785 William Lewis provided this test program. */
22786 {
22787 char foo[21];
22788 char bar[21];
22789 int i;
22790 for (i = 0; i < 4; i++)
22791 {
22792 char *a = foo + i;
22793 char *b = bar + i;
22794 strcpy (a, "--------01111111");
22795 strcpy (b, "--------10000000");
22796 if (memcmp (a, b, 16) >= 0)
22797 return 1;
22798 }
22799 return 0;
22800 }
22801
22802 ;
22803 return 0;
22804}
22805_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022806if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022807 ac_cv_func_memcmp_working=yes
22808else
cristy8b350f62009-11-15 23:12:43 +000022809 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000022810fi
cristy8b350f62009-11-15 23:12:43 +000022811rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22812 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022813fi
22814
cristy3ed852e2009-09-05 21:47:34 +000022815fi
cristy8b350f62009-11-15 23:12:43 +000022816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000022817$as_echo "$ac_cv_func_memcmp_working" >&6; }
22818test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22819 *" memcmp.$ac_objext "* ) ;;
22820 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22821 ;;
22822esac
22823
22824
cristy3ed852e2009-09-05 21:47:34 +000022825for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000022826do :
22827 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22828ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022829if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022830 cat >>confdefs.h <<_ACEOF
22831#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22832_ACEOF
22833
22834fi
22835
22836done
22837
cristy8b350f62009-11-15 23:12:43 +000022838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000022839$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022840if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022841 $as_echo_n "(cached) " >&6
22842else
22843 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22844 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22845 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000022846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022847/* end confdefs.h. */
22848$ac_includes_default
22849#ifdef HAVE_SYS_SELECT_H
22850# include <sys/select.h>
22851#endif
22852#ifdef HAVE_SYS_SOCKET_H
22853# include <sys/socket.h>
22854#endif
22855
22856int
22857main ()
22858{
22859extern int select ($ac_arg1,
22860 $ac_arg234, $ac_arg234, $ac_arg234,
22861 $ac_arg5);
22862 ;
22863 return 0;
22864}
22865_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022866if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022867 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000022868fi
cristy3ed852e2009-09-05 21:47:34 +000022869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22870 done
22871 done
22872done
22873# Provide a safe default value.
22874: ${ac_cv_func_select_args='int,int *,struct timeval *'}
22875
22876fi
cristy8b350f62009-11-15 23:12:43 +000022877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000022878$as_echo "$ac_cv_func_select_args" >&6; }
22879ac_save_IFS=$IFS; IFS=','
22880set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22881IFS=$ac_save_IFS
22882shift
22883
22884cat >>confdefs.h <<_ACEOF
22885#define SELECT_TYPE_ARG1 $1
22886_ACEOF
22887
22888
22889cat >>confdefs.h <<_ACEOF
22890#define SELECT_TYPE_ARG234 ($2)
22891_ACEOF
22892
22893
22894cat >>confdefs.h <<_ACEOF
22895#define SELECT_TYPE_ARG5 ($3)
22896_ACEOF
22897
22898rm -f conftest*
22899
cristy8b350f62009-11-15 23:12:43 +000022900if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022901 $as_echo_n "(cached) " >&6
22902else
22903 ac_cv_func_setvbuf_reversed=no
22904fi
22905
22906
cristy8b350f62009-11-15 23:12:43 +000022907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000022908$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022909if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022910 $as_echo_n "(cached) " >&6
22911else
cristy8b350f62009-11-15 23:12:43 +000022912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022913/* end confdefs.h. */
22914#include <sys/types.h>
22915#include <signal.h>
22916
22917int
22918main ()
22919{
22920return *(signal (0, 0)) (0) == 1;
22921 ;
22922 return 0;
22923}
22924_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022925if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022926 ac_cv_type_signal=int
22927else
cristy8b350f62009-11-15 23:12:43 +000022928 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000022929fi
cristy3ed852e2009-09-05 21:47:34 +000022930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22931fi
cristy8b350f62009-11-15 23:12:43 +000022932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000022933$as_echo "$ac_cv_type_signal" >&6; }
22934
22935cat >>confdefs.h <<_ACEOF
22936#define RETSIGTYPE $ac_cv_type_signal
22937_ACEOF
22938
22939
cristy8b350f62009-11-15 23:12:43 +000022940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022941$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022942if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022943 $as_echo_n "(cached) " >&6
22944else
cristy8b350f62009-11-15 23:12:43 +000022945 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022946 ac_cv_func_strtod=no
22947else
cristy8b350f62009-11-15 23:12:43 +000022948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022949/* end confdefs.h. */
22950
22951$ac_includes_default
22952#ifndef strtod
22953double strtod ();
22954#endif
22955int
22956main()
22957{
22958 {
22959 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
22960 char *string = " +69";
22961 char *term;
22962 double value;
22963 value = strtod (string, &term);
22964 if (value != 69 || term != (string + 4))
22965 return 1;
22966 }
22967
22968 {
22969 /* Under Solaris 2.4, strtod returns the wrong value for the
22970 terminating character under some conditions. */
22971 char *string = "NaN";
22972 char *term;
22973 strtod (string, &term);
22974 if (term != string && *(term - 1) == 0)
22975 return 1;
22976 }
22977 return 0;
22978}
22979
22980_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022981if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022982 ac_cv_func_strtod=yes
22983else
cristy8b350f62009-11-15 23:12:43 +000022984 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000022985fi
cristy8b350f62009-11-15 23:12:43 +000022986rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22987 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022988fi
22989
cristy3ed852e2009-09-05 21:47:34 +000022990fi
cristy8b350f62009-11-15 23:12:43 +000022991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022992$as_echo "$ac_cv_func_strtod" >&6; }
22993if test $ac_cv_func_strtod = no; then
22994 case " $LIBOBJS " in
22995 *" strtod.$ac_objext "* ) ;;
22996 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
22997 ;;
22998esac
22999
cristy8b350f62009-11-15 23:12:43 +000023000ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
23001if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023002
cristy3ed852e2009-09-05 21:47:34 +000023003fi
23004
cristy3ed852e2009-09-05 21:47:34 +000023005if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000023006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023007$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023008if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023009 $as_echo_n "(cached) " >&6
23010else
23011 ac_check_lib_save_LIBS=$LIBS
23012LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023014/* end confdefs.h. */
23015
23016/* Override any GCC internal prototype to avoid an error.
23017 Use char because int might match the return type of a GCC
23018 builtin and then its argument prototype would still apply. */
23019#ifdef __cplusplus
23020extern "C"
23021#endif
23022char pow ();
23023int
23024main ()
23025{
23026return pow ();
23027 ;
23028 return 0;
23029}
23030_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023031if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023032 ac_cv_lib_m_pow=yes
23033else
cristy8b350f62009-11-15 23:12:43 +000023034 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023035fi
cristy8b350f62009-11-15 23:12:43 +000023036rm -f core conftest.err conftest.$ac_objext \
23037 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023038LIBS=$ac_check_lib_save_LIBS
23039fi
cristy8b350f62009-11-15 23:12:43 +000023040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023041$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023042if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023043 POW_LIB=-lm
23044else
cristy8b350f62009-11-15 23:12:43 +000023045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023046$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23047fi
23048
23049fi
23050
23051fi
23052
cristy3ed852e2009-09-05 21:47:34 +000023053for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023054do :
23055 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23056if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023057 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023058#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023059_ACEOF
23060
cristy8b350f62009-11-15 23:12:43 +000023061ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23062if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023063
cristy8b350f62009-11-15 23:12:43 +000023064$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023065
23066fi
23067
23068fi
23069done
23070
23071
23072
cristy161b9262010-03-20 19:34:32 +000023073#
23074# Find math library
23075#
23076MATH_LIBS=''
23077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23078$as_echo_n "checking for sqrt in -lm... " >&6; }
23079if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23080 $as_echo_n "(cached) " >&6
23081else
23082 ac_check_lib_save_LIBS=$LIBS
23083LIBS="-lm $LIBS"
23084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23085/* end confdefs.h. */
23086
23087/* Override any GCC internal prototype to avoid an error.
23088 Use char because int might match the return type of a GCC
23089 builtin and then its argument prototype would still apply. */
23090#ifdef __cplusplus
23091extern "C"
23092#endif
23093char sqrt ();
23094int
23095main ()
23096{
23097return sqrt ();
23098 ;
23099 return 0;
23100}
23101_ACEOF
23102if ac_fn_c_try_link "$LINENO"; then :
23103 ac_cv_lib_m_sqrt=yes
23104else
23105 ac_cv_lib_m_sqrt=no
23106fi
23107rm -f core conftest.err conftest.$ac_objext \
23108 conftest$ac_exeext conftest.$ac_ext
23109LIBS=$ac_check_lib_save_LIBS
23110fi
23111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23112$as_echo "$ac_cv_lib_m_sqrt" >&6; }
23113if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23114 MATH_LIBS="-lm"
23115fi
23116
23117LIBS="$MATH_LIBS $LIBS"
23118
23119
cristyf1897e32010-08-29 19:59:09 +000023120for ac_func in atoll atexit cimag clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr usleep utime vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000023121do :
23122 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23123ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000023124if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023125 cat >>confdefs.h <<_ACEOF
23126#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23127_ACEOF
23128
23129fi
23130done
23131
23132
cristye43a45e2009-09-28 14:49:00 +000023133#
23134# Check for clock_gettime().
23135#
cristy8b350f62009-11-15 23:12:43 +000023136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023137$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023138if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023139 $as_echo_n "(cached) " >&6
23140else
23141 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023143/* end confdefs.h. */
23144
23145/* Override any GCC internal prototype to avoid an error.
23146 Use char because int might match the return type of a GCC
23147 builtin and then its argument prototype would still apply. */
23148#ifdef __cplusplus
23149extern "C"
23150#endif
23151char clock_gettime ();
23152int
23153main ()
23154{
23155return clock_gettime ();
23156 ;
23157 return 0;
23158}
23159_ACEOF
23160for ac_lib in '' rt; do
23161 if test -z "$ac_lib"; then
23162 ac_res="none required"
23163 else
23164 ac_res=-l$ac_lib
23165 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23166 fi
cristy8b350f62009-11-15 23:12:43 +000023167 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023168 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000023169fi
cristy8b350f62009-11-15 23:12:43 +000023170rm -f core conftest.err conftest.$ac_objext \
23171 conftest$ac_exeext
23172 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023173 break
23174fi
23175done
cristy8b350f62009-11-15 23:12:43 +000023176if test "${ac_cv_search_clock_gettime+set}" = set; then :
23177
cristye43a45e2009-09-28 14:49:00 +000023178else
23179 ac_cv_search_clock_gettime=no
23180fi
23181rm conftest.$ac_ext
23182LIBS=$ac_func_search_save_LIBS
23183fi
cristy8b350f62009-11-15 23:12:43 +000023184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023185$as_echo "$ac_cv_search_clock_gettime" >&6; }
23186ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000023187if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000023188 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23189
23190
cristy8b350f62009-11-15 23:12:43 +000023191$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023192
cristy8b350f62009-11-15 23:12:43 +000023193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000023194$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023196/* end confdefs.h. */
23197#include <time.h>
23198int
23199main ()
23200{
23201clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000023202 ;
23203 return 0;
23204}
23205_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023206if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023207
cristy8b350f62009-11-15 23:12:43 +000023208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000023209$as_echo "yes" >&6; }
23210
cristy8b350f62009-11-15 23:12:43 +000023211$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023212
23213
23214else
cristy8b350f62009-11-15 23:12:43 +000023215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000023216$as_echo "no" >&6; }
23217
23218fi
cristye43a45e2009-09-28 14:49:00 +000023219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23220
23221else
23222
cristy8b350f62009-11-15 23:12:43 +000023223 for ac_func in gettimeofday ftime
23224do :
23225 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23226ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000023227if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000023228 cat >>confdefs.h <<_ACEOF
23229#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23230_ACEOF
23231 break
23232fi
23233done
23234
23235
23236
23237fi
23238
23239
cristy3ed852e2009-09-05 21:47:34 +000023240########
23241#
23242# Check for function prototypes
23243#
23244########
23245
cristy8b350f62009-11-15 23:12:43 +000023246ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000023247#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023248"
23249if test "x$ac_cv_have_decl_pread" = x""yes; then :
23250 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023251else
cristy8b350f62009-11-15 23:12:43 +000023252 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023253fi
23254
cristy3ed852e2009-09-05 21:47:34 +000023255cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023256#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023257_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023258ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000023259#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023260"
23261if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23262 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023263else
cristy8b350f62009-11-15 23:12:43 +000023264 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023265fi
23266
cristy3ed852e2009-09-05 21:47:34 +000023267cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023268#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023269_ACEOF
23270
23271
cristy8b350f62009-11-15 23:12:43 +000023272ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000023273#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000023274"
23275if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23276 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023277else
cristy8b350f62009-11-15 23:12:43 +000023278 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023279fi
23280
cristy3ed852e2009-09-05 21:47:34 +000023281cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023282#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023283_ACEOF
23284
23285
cristy8b350f62009-11-15 23:12:43 +000023286ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000023287#include <stdio.h>
23288#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000023289"
23290if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23291 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023292else
cristy8b350f62009-11-15 23:12:43 +000023293 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023294fi
23295
cristy3ed852e2009-09-05 21:47:34 +000023296cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023297#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023298_ACEOF
23299
23300
cristy3ed852e2009-09-05 21:47:34 +000023301########
23302#
23303# C++ Support Tests (For Magick++)
23304#
23305########
23306have_magick_plus_plus='no'
23307if test "$with_magick_plus_plus" = 'yes'; then
23308 OLIBS="$LIBS"
23309 LIBS=''
23310 ac_ext=cpp
23311ac_cpp='$CXXCPP $CPPFLAGS'
23312ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23313ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23314ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23315
23316
23317 # Full set of headers used...
23318 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23319 # functional iomanip iosfwd iostream iterator list string strstream utility
23320 ac_ext=cpp
23321ac_cpp='$CXXCPP $CPPFLAGS'
23322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23325
23326 ac_ext=cpp
23327ac_cpp='$CXXCPP $CPPFLAGS'
23328ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23329ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23330ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23331if test -z "$CXX"; then
23332 if test -n "$CCC"; then
23333 CXX=$CCC
23334 else
23335 if test -n "$ac_tool_prefix"; then
23336 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23337 do
23338 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23339set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023341$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023342if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023343 $as_echo_n "(cached) " >&6
23344else
23345 if test -n "$CXX"; then
23346 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23347else
23348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23349for as_dir in $PATH
23350do
23351 IFS=$as_save_IFS
23352 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023353 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23355 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023357 break 2
23358 fi
23359done
cristy8b350f62009-11-15 23:12:43 +000023360 done
cristy3ed852e2009-09-05 21:47:34 +000023361IFS=$as_save_IFS
23362
23363fi
23364fi
23365CXX=$ac_cv_prog_CXX
23366if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023368$as_echo "$CXX" >&6; }
23369else
cristy8b350f62009-11-15 23:12:43 +000023370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023371$as_echo "no" >&6; }
23372fi
23373
23374
23375 test -n "$CXX" && break
23376 done
23377fi
23378if test -z "$CXX"; then
23379 ac_ct_CXX=$CXX
23380 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23381do
23382 # Extract the first word of "$ac_prog", so it can be a program name with args.
23383set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023385$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023386if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023387 $as_echo_n "(cached) " >&6
23388else
23389 if test -n "$ac_ct_CXX"; then
23390 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23391else
23392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23393for as_dir in $PATH
23394do
23395 IFS=$as_save_IFS
23396 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023397 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23399 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023401 break 2
23402 fi
23403done
cristy8b350f62009-11-15 23:12:43 +000023404 done
cristy3ed852e2009-09-05 21:47:34 +000023405IFS=$as_save_IFS
23406
23407fi
23408fi
23409ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23410if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023412$as_echo "$ac_ct_CXX" >&6; }
23413else
cristy8b350f62009-11-15 23:12:43 +000023414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023415$as_echo "no" >&6; }
23416fi
23417
23418
23419 test -n "$ac_ct_CXX" && break
23420done
23421
23422 if test "x$ac_ct_CXX" = x; then
23423 CXX="g++"
23424 else
23425 case $cross_compiling:$ac_tool_warned in
23426yes:)
cristy8b350f62009-11-15 23:12:43 +000023427{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023428$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23429ac_tool_warned=yes ;;
23430esac
23431 CXX=$ac_ct_CXX
23432 fi
23433fi
23434
23435 fi
23436fi
23437# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000023438$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000023439set X $ac_compile
23440ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000023441for ac_option in --version -v -V -qversion; do
23442 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000023443case "(($ac_try" in
23444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23445 *) ac_try_echo=$ac_try;;
23446esac
cristy8b350f62009-11-15 23:12:43 +000023447eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23448$as_echo "$ac_try_echo"; } >&5
23449 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000023450 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000023451 if test -s conftest.err; then
23452 sed '10a\
23453... rest of stderr output deleted ...
23454 10q' conftest.err >conftest.er1
23455 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000023456 fi
cristycd4c5312009-11-22 01:19:08 +000023457 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000023458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23459 test $ac_status = 0; }
23460done
cristy3ed852e2009-09-05 21:47:34 +000023461
cristy8b350f62009-11-15 23:12:43 +000023462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000023463$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023464if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023465 $as_echo_n "(cached) " >&6
23466else
cristy8b350f62009-11-15 23:12:43 +000023467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023468/* end confdefs.h. */
23469
23470int
23471main ()
23472{
23473#ifndef __GNUC__
23474 choke me
23475#endif
23476
23477 ;
23478 return 0;
23479}
23480_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023481if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023482 ac_compiler_gnu=yes
23483else
cristy8b350f62009-11-15 23:12:43 +000023484 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000023485fi
cristy3ed852e2009-09-05 21:47:34 +000023486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23487ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23488
23489fi
cristy8b350f62009-11-15 23:12:43 +000023490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000023491$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23492if test $ac_compiler_gnu = yes; then
23493 GXX=yes
23494else
23495 GXX=
23496fi
23497ac_test_CXXFLAGS=${CXXFLAGS+set}
23498ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000023499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023500$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023501if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023502 $as_echo_n "(cached) " >&6
23503else
23504 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23505 ac_cxx_werror_flag=yes
23506 ac_cv_prog_cxx_g=no
23507 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023509/* end confdefs.h. */
23510
23511int
23512main ()
23513{
23514
23515 ;
23516 return 0;
23517}
23518_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023519if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023520 ac_cv_prog_cxx_g=yes
23521else
cristy8b350f62009-11-15 23:12:43 +000023522 CXXFLAGS=""
23523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023524/* end confdefs.h. */
23525
23526int
23527main ()
23528{
23529
23530 ;
23531 return 0;
23532}
23533_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023534if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023535
cristy8b350f62009-11-15 23:12:43 +000023536else
23537 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000023538 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023540/* end confdefs.h. */
23541
23542int
23543main ()
23544{
23545
23546 ;
23547 return 0;
23548}
23549_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023550if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023551 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000023552fi
cristy3ed852e2009-09-05 21:47:34 +000023553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23554fi
cristy3ed852e2009-09-05 21:47:34 +000023555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23556fi
cristy3ed852e2009-09-05 21:47:34 +000023557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23558 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23559fi
cristy8b350f62009-11-15 23:12:43 +000023560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023561$as_echo "$ac_cv_prog_cxx_g" >&6; }
23562if test "$ac_test_CXXFLAGS" = set; then
23563 CXXFLAGS=$ac_save_CXXFLAGS
23564elif test $ac_cv_prog_cxx_g = yes; then
23565 if test "$GXX" = yes; then
23566 CXXFLAGS="-g -O2"
23567 else
23568 CXXFLAGS="-g"
23569 fi
23570else
23571 if test "$GXX" = yes; then
23572 CXXFLAGS="-O2"
23573 else
23574 CXXFLAGS=
23575 fi
23576fi
23577ac_ext=cpp
23578ac_cpp='$CXXCPP $CPPFLAGS'
23579ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23580ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23581ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23582
cristy73bd4a52010-10-05 11:24:23 +000023583depcc="$CXX" am_compiler_list=
23584
23585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23586$as_echo_n "checking dependency style of $depcc... " >&6; }
23587if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
23588 $as_echo_n "(cached) " >&6
23589else
23590 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23591 # We make a subdir and do the tests there. Otherwise we can end up
23592 # making bogus files that we don't know about and never remove. For
23593 # instance it was reported that on HP-UX the gcc test will end up
23594 # making a dummy file named `D' -- because `-MD' means `put the output
23595 # in D'.
23596 mkdir conftest.dir
23597 # Copy depcomp to subdir because otherwise we won't find it if we're
23598 # using a relative directory.
23599 cp "$am_depcomp" conftest.dir
23600 cd conftest.dir
23601 # We will build objects and dependencies in a subdirectory because
23602 # it helps to detect inapplicable dependency modes. For instance
23603 # both Tru64's cc and ICC support -MD to output dependencies as a
23604 # side effect of compilation, but ICC will put the dependencies in
23605 # the current directory while Tru64 will put them in the object
23606 # directory.
23607 mkdir sub
23608
23609 am_cv_CXX_dependencies_compiler_type=none
23610 if test "$am_compiler_list" = ""; then
23611 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23612 fi
23613 am__universal=false
23614 case " $depcc " in #(
23615 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23616 esac
23617
23618 for depmode in $am_compiler_list; do
23619 # Setup a source with many dependencies, because some compilers
23620 # like to wrap large dependency lists on column 80 (with \), and
23621 # we should not choose a depcomp mode which is confused by this.
23622 #
23623 # We need to recreate these files for each test, as the compiler may
23624 # overwrite some of them when testing with obscure command lines.
23625 # This happens at least with the AIX C compiler.
23626 : > sub/conftest.c
23627 for i in 1 2 3 4 5 6; do
23628 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23629 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23630 # Solaris 8's {/usr,}/bin/sh.
23631 touch sub/conftst$i.h
23632 done
23633 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23634
23635 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23636 # mode. It turns out that the SunPro C++ compiler does not properly
23637 # handle `-M -o', and we need to detect this. Also, some Intel
23638 # versions had trouble with output in subdirs
23639 am__obj=sub/conftest.${OBJEXT-o}
23640 am__minus_obj="-o $am__obj"
23641 case $depmode in
23642 gcc)
23643 # This depmode causes a compiler race in universal mode.
23644 test "$am__universal" = false || continue
23645 ;;
23646 nosideeffect)
23647 # after this tag, mechanisms are not by side-effect, so they'll
23648 # only be used when explicitly requested
23649 if test "x$enable_dependency_tracking" = xyes; then
23650 continue
23651 else
23652 break
23653 fi
23654 ;;
23655 msvisualcpp | msvcmsys)
23656 # This compiler won't grok `-c -o', but also, the minuso test has
23657 # not run yet. These depmodes are late enough in the game, and
23658 # so weak that their functioning should not be impacted.
23659 am__obj=conftest.${OBJEXT-o}
23660 am__minus_obj=
23661 ;;
23662 none) break ;;
23663 esac
23664 if depmode=$depmode \
23665 source=sub/conftest.c object=$am__obj \
23666 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23667 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23668 >/dev/null 2>conftest.err &&
23669 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23670 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23671 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23672 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23673 # icc doesn't choke on unknown options, it will just issue warnings
23674 # or remarks (even with -Werror). So we grep stderr for any message
23675 # that says an option was ignored or not supported.
23676 # When given -MP, icc 7.0 and 7.1 complain thusly:
23677 # icc: Command line warning: ignoring option '-M'; no argument required
23678 # The diagnosis changed in icc 8.0:
23679 # icc: Command line remark: option '-MP' not supported
23680 if (grep 'ignoring option' conftest.err ||
23681 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23682 am_cv_CXX_dependencies_compiler_type=$depmode
23683 break
23684 fi
23685 fi
23686 done
23687
23688 cd ..
23689 rm -rf conftest.dir
23690else
23691 am_cv_CXX_dependencies_compiler_type=none
23692fi
23693
23694fi
23695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
23696$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23697CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23698
23699 if
23700 test "x$enable_dependency_tracking" != xno \
23701 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23702 am__fastdepCXX_TRUE=
23703 am__fastdepCXX_FALSE='#'
23704else
23705 am__fastdepCXX_TRUE='#'
23706 am__fastdepCXX_FALSE=
23707fi
23708
23709
23710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
23711$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
23712if test "${ax_cv_cxx_bool+set}" = set; then :
23713 $as_echo_n "(cached) " >&6
23714else
23715
23716 ac_ext=cpp
23717ac_cpp='$CXXCPP $CPPFLAGS'
23718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23719ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23721
23722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23723/* end confdefs.h. */
23724
23725int f(int x){return 1;}
23726int f(char x){return 1;}
23727int f(bool x){return 1;}
23728
23729int
23730main ()
23731{
23732bool b = true; return f(b);
23733 ;
23734 return 0;
23735}
23736_ACEOF
23737if ac_fn_cxx_try_compile "$LINENO"; then :
23738 ax_cv_cxx_bool=yes
23739else
23740 ax_cv_cxx_bool=no
23741fi
23742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23743 ac_ext=cpp
23744ac_cpp='$CXXCPP $CPPFLAGS'
23745ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23746ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23747ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23748
23749
23750fi
23751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23752$as_echo "$ax_cv_cxx_bool" >&6; }
23753if test "$ax_cv_cxx_bool" = yes; then
23754
23755$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
23756
23757fi
23758
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
23760$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
23761if test "${ax_cv_cxx_namespaces+set}" = set; then :
23762 $as_echo_n "(cached) " >&6
23763else
23764
23765 ac_ext=cpp
23766ac_cpp='$CXXCPP $CPPFLAGS'
23767ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23768ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23769ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23770
23771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23772/* end confdefs.h. */
23773namespace Outer { namespace Inner { int i = 0; }}
23774int
23775main ()
23776{
23777using namespace Outer::Inner; return i;
23778 ;
23779 return 0;
23780}
23781_ACEOF
23782if ac_fn_cxx_try_compile "$LINENO"; then :
23783 ax_cv_cxx_namespaces=yes
23784else
23785 ax_cv_cxx_namespaces=no
23786fi
23787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23788 ac_ext=cpp
23789ac_cpp='$CXXCPP $CPPFLAGS'
23790ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23791ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23792ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23793
23794
23795fi
23796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23797$as_echo "$ax_cv_cxx_namespaces" >&6; }
23798if test "$ax_cv_cxx_namespaces" = yes; then
23799
23800$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
23801
23802fi
23803
23804
23805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
23806$as_echo_n "checking if g++ supports namespace std... " >&6; }
23807if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
23808 $as_echo_n "(cached) " >&6
23809else
23810
23811 ac_ext=cpp
23812ac_cpp='$CXXCPP $CPPFLAGS'
23813ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23814ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23815ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23816
23817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23818/* end confdefs.h. */
23819#include <iostream>
23820 std::istream& is = std::cin;
23821int
23822main ()
23823{
23824
23825 ;
23826 return 0;
23827}
23828_ACEOF
23829if ac_fn_cxx_try_compile "$LINENO"; then :
23830 ax_cv_cxx_have_std_namespace=yes
23831else
23832 ax_cv_cxx_have_std_namespace=no
23833fi
23834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23835 ac_ext=cpp
23836ac_cpp='$CXXCPP $CPPFLAGS'
23837ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23838ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23839ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23840
23841
23842fi
23843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
23844$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
23845 if test "$ax_cv_cxx_have_std_namespace" = yes; then
23846
23847$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
23848
23849 fi
23850
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
23852$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
23853if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
23854 $as_echo_n "(cached) " >&6
23855else
23856
23857
23858 ac_ext=cpp
23859ac_cpp='$CXXCPP $CPPFLAGS'
23860ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23861ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23862ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23863
23864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23865/* end confdefs.h. */
23866#include <iostream>
23867#include <map>
23868#include <iomanip>
23869#include <cmath>
23870#ifdef HAVE_NAMESPACES
23871using namespace std;
23872#endif
23873int
23874main ()
23875{
23876return 0;
23877 ;
23878 return 0;
23879}
23880_ACEOF
23881if ac_fn_cxx_try_compile "$LINENO"; then :
23882 ac_cv_cxx_have_std_libs=yes
23883else
23884 ac_cv_cxx_have_std_libs=no
23885fi
23886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23887 ac_ext=cpp
23888ac_cpp='$CXXCPP $CPPFLAGS'
23889ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23890ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23891ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23892
23893
23894fi
23895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
23896$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
23897if test "$ac_cv_cxx_have_std_libs" = yes; then
23898
23899$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
23900
23901fi
23902
23903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
23904$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
23905if test "${ac_cv_cxx_have_lstring+set}" = set; then :
23906 $as_echo_n "(cached) " >&6
23907else
23908
23909 ac_ext=cpp
23910ac_cpp='$CXXCPP $CPPFLAGS'
23911ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23912ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23913ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23914
23915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23916/* end confdefs.h. */
23917const wchar_t* s=L"wide string";
23918_ACEOF
23919if ac_fn_cxx_try_compile "$LINENO"; then :
23920 ac_cv_cxx_have_lstring=yes
23921else
23922 ac_cv_cxx_have_lstring=no
23923fi
23924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23925 ac_ext=cpp
23926ac_cpp='$CXXCPP $CPPFLAGS'
23927ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23928ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23929ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23930
23931
23932fi
23933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
23934$as_echo "$ac_cv_cxx_have_lstring" >&6; }
23935if test "$ac_cv_cxx_have_lstring" = yes; then
23936
23937$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
23938
23939fi
cristy3ed852e2009-09-05 21:47:34 +000023940
23941
23942 OPENMP_CXXFLAGS=
23943 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000023944if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023945 enableval=$enable_openmp;
23946fi
23947
23948 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000023949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
23950$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023951if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023952 $as_echo_n "(cached) " >&6
23953else
cristy8b350f62009-11-15 23:12:43 +000023954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23955/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023956
23957#ifndef _OPENMP
23958 choke me
23959#endif
23960#include <omp.h>
23961int main () { return omp_get_num_threads (); }
23962
23963_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023964if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023965 ac_cv_prog_cxx_openmp='none needed'
23966else
cristy8b350f62009-11-15 23:12:43 +000023967 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000023968 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
23969 ac_save_CXXFLAGS=$CXXFLAGS
23970 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000023971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23972/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023973
23974#ifndef _OPENMP
23975 choke me
23976#endif
23977#include <omp.h>
23978int main () { return omp_get_num_threads (); }
23979
23980_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023981if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023982 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000023983fi
cristy8b350f62009-11-15 23:12:43 +000023984rm -f core conftest.err conftest.$ac_objext \
23985 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023986 CXXFLAGS=$ac_save_CXXFLAGS
23987 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
23988 break
23989 fi
23990 done
23991fi
cristy8b350f62009-11-15 23:12:43 +000023992rm -f core conftest.err conftest.$ac_objext \
23993 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023994fi
cristy8b350f62009-11-15 23:12:43 +000023995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023996$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
23997 case $ac_cv_prog_cxx_openmp in #(
23998 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000023999 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000024000 *)
cristy8b350f62009-11-15 23:12:43 +000024001 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000024002 esac
24003 fi
24004
24005
24006 ac_ext=c
24007ac_cpp='$CPP $CPPFLAGS'
24008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24010ac_compiler_gnu=$ac_cv_c_compiler_gnu
24011
24012
cristy8b350f62009-11-15 23:12:43 +000024013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024014$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24015 if \
cristy964cb7f2010-04-25 23:18:00 +000024016 test $ax_cv_cxx_bool = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024017 test $ac_cv_cxx_have_lstring = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024018 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024019 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024020 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024021 have_magick_plus_plus='yes'
24022 else
24023 have_magick_plus_plus='no (failed tests)'
24024 fi
cristy8b350f62009-11-15 23:12:43 +000024025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024026$as_echo "$have_magick_plus_plus" >&6; }
24027 LIBS="$OLIBS"
24028fi
cristy73bd4a52010-10-05 11:24:23 +000024029 if test "$have_magick_plus_plus" = 'yes'; then
24030 WITH_MAGICK_PLUS_PLUS_TRUE=
24031 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24032else
24033 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24034 WITH_MAGICK_PLUS_PLUS_FALSE=
24035fi
24036
cristy3ed852e2009-09-05 21:47:34 +000024037
24038# Only check for delegate libraries in subdirectories if requested.
24039if test "$enable_delegate_build" != 'no'; then
24040 # Check for delegate sub-directories and add -I & -L options as required.
24041 # This presumes that delegates are installed as detailed in the ImageMagick
24042 # README. If delegates are installed in a standard location where the
24043 # compiler will automatically find them then these options should not be
24044 # required.
24045
24046 #
24047 # Most delegates have includes in the same directory as the library, but not all...
24048 #
24049 # Includes
cristy5850e4b2010-01-08 14:28:24 +000024050 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 +000024051 if test -d "$builddir/$dir"; then
24052 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24053 else
24054 if test -d "$srcdirfull/$dir"; then
24055 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24056 fi
24057 fi
24058 done
24059
24060 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000024061 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 +000024062 if test -d "$builddir/$dir/.libs"; then
24063 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24064 else
24065 if test -d "$srcdirfull/$dir/.libs"; then
24066 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24067 fi
24068 fi
24069 if test -d "$builddir/$dir"; then
24070 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24071 else
24072 if test -d "$srcdirfull/$dir"; then
24073 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24074 fi
24075 fi
24076 done
24077fi
24078
24079# Assume that delegate headers reside under same directory as ImageMagick
24080# installation prefix.
24081MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24082
24083#
24084# Find the X11 RGB database
24085#
cristy8b350f62009-11-15 23:12:43 +000024086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024087$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024088if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024089 $as_echo_n "(cached) " >&6
24090else
24091 # Look for the header file in a standard set of common directories.
24092# Check X11 before X11Rn because it is often a symlink to the current release.
24093 for ac_dir in \
24094 /lib/usr/lib/X11 \
24095 /usr/X11/lib \
24096 /usr/X11R4/lib \
24097 /usr/X11R5/lib \
24098 /usr/X11R6/lib \
24099 /usr/X11R7/lib \
24100 /usr/X386/lib \
24101 /usr/XFree86/lib/X11 \
24102 /usr/athena/lib \
24103 /usr/lib \
24104 /usr/lib/X11 \
24105 /usr/lib/X11R4 \
24106 /usr/lib/X11R5 \
24107 /usr/lib/X11R6 \
24108 /usr/lib/X11R7 \
24109 /usr/local/X11/lib \
24110 /usr/local/X11R4/lib \
24111 /usr/local/X11R5/lib \
24112 /usr/local/X11R6/lib \
24113 /usr/local/lib \
24114 /usr/local/lib/X11 \
24115 /usr/local/lib/X11R4 \
24116 /usr/local/lib/X11R5 \
24117 /usr/local/lib/X11R6 \
24118 /usr/local/lib/X11R7 \
24119 /usr/local/x11r5/lib \
24120 /usr/lpp/Xamples/lib \
24121 /usr/openwin/lib \
24122 /usr/openwin/share/lib \
24123 /usr/unsupported/lib \
24124 /usr/x386/lib \
24125 ; do
24126 if test -f "$ac_dir/X11/rgb.txt"; then
24127 im_cv_x_configure="$ac_dir/X11/"
24128 break
24129 elif test -f "$ac_dir/rgb.txt"; then
24130 im_cv_x_configure="$ac_dir/"
24131 break
24132 fi
24133
24134 done
24135fi
cristy8b350f62009-11-15 23:12:43 +000024136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024137$as_echo "$im_cv_x_configure" >&6; }
24138X11_CONFIGURE_PATH="$im_cv_x_configure"
24139case "${build_os}" in
24140 mingw* )
24141 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24142 ;;
24143esac
24144
24145cat >>confdefs.h <<_ACEOF
24146#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24147_ACEOF
24148
24149
24150#
24151# Find OpenMP library
24152#
24153GOMP_LIBS=''
24154if test "$enable_openmp" != 'no'; then
24155 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024157$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024158if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024159 $as_echo_n "(cached) " >&6
24160else
24161 ac_check_lib_save_LIBS=$LIBS
24162LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024164/* end confdefs.h. */
24165
24166/* Override any GCC internal prototype to avoid an error.
24167 Use char because int might match the return type of a GCC
24168 builtin and then its argument prototype would still apply. */
24169#ifdef __cplusplus
24170extern "C"
24171#endif
24172char GOMP_parallel_start ();
24173int
24174main ()
24175{
24176return GOMP_parallel_start ();
24177 ;
24178 return 0;
24179}
24180_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024181if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024182 ac_cv_lib_gomp_GOMP_parallel_start=yes
24183else
cristy8b350f62009-11-15 23:12:43 +000024184 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024185fi
cristy8b350f62009-11-15 23:12:43 +000024186rm -f core conftest.err conftest.$ac_objext \
24187 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024188LIBS=$ac_check_lib_save_LIBS
24189fi
cristy8b350f62009-11-15 23:12:43 +000024190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000024191$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024192if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024193 GOMP_LIBS="-lgomp"
24194fi
24195 # gcc
24196 else
cristy8b350f62009-11-15 23:12:43 +000024197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000024198$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024199if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024200 $as_echo_n "(cached) " >&6
24201else
24202 ac_check_lib_save_LIBS=$LIBS
24203LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024205/* end confdefs.h. */
24206
24207/* Override any GCC internal prototype to avoid an error.
24208 Use char because int might match the return type of a GCC
24209 builtin and then its argument prototype would still apply. */
24210#ifdef __cplusplus
24211extern "C"
24212#endif
24213char sunw_mp_register_warn ();
24214int
24215main ()
24216{
24217return sunw_mp_register_warn ();
24218 ;
24219 return 0;
24220}
24221_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024222if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024223 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24224else
cristy8b350f62009-11-15 23:12:43 +000024225 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000024226fi
cristy8b350f62009-11-15 23:12:43 +000024227rm -f core conftest.err conftest.$ac_objext \
24228 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024229LIBS=$ac_check_lib_save_LIBS
24230fi
cristy8b350f62009-11-15 23:12:43 +000024231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000024232$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024233if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024234 GOMP_LIBS="-lmtsk"
24235fi
24236 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000024237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024238$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024239if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024240 $as_echo_n "(cached) " >&6
24241else
24242 ac_check_lib_save_LIBS=$LIBS
24243LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024245/* end confdefs.h. */
24246
24247/* Override any GCC internal prototype to avoid an error.
24248 Use char because int might match the return type of a GCC
24249 builtin and then its argument prototype would still apply. */
24250#ifdef __cplusplus
24251extern "C"
24252#endif
24253char _xlsmpFlush ();
24254int
24255main ()
24256{
24257return _xlsmpFlush ();
24258 ;
24259 return 0;
24260}
24261_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024262if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024263 ac_cv_lib_xlsmp__xlsmpFlush=yes
24264else
cristy8b350f62009-11-15 23:12:43 +000024265 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000024266fi
cristy8b350f62009-11-15 23:12:43 +000024267rm -f core conftest.err conftest.$ac_objext \
24268 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024269LIBS=$ac_check_lib_save_LIBS
24270fi
cristy8b350f62009-11-15 23:12:43 +000024271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000024272$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024273if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024274 GOMP_LIBS="-lxlsmp"
24275fi
24276 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000024277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024278$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024279if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024280 $as_echo_n "(cached) " >&6
24281else
24282 ac_check_lib_save_LIBS=$LIBS
24283LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024285/* end confdefs.h. */
24286
24287/* Override any GCC internal prototype to avoid an error.
24288 Use char because int might match the return type of a GCC
24289 builtin and then its argument prototype would still apply. */
24290#ifdef __cplusplus
24291extern "C"
24292#endif
24293char mp_destroy ();
24294int
24295main ()
24296{
24297return mp_destroy ();
24298 ;
24299 return 0;
24300}
24301_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024302if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024303 ac_cv_lib_mp_mp_destroy=yes
24304else
cristy8b350f62009-11-15 23:12:43 +000024305 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000024306fi
cristy8b350f62009-11-15 23:12:43 +000024307rm -f core conftest.err conftest.$ac_objext \
24308 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024309LIBS=$ac_check_lib_save_LIBS
24310fi
cristy8b350f62009-11-15 23:12:43 +000024311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000024312$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024313if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024314 GOMP_LIBS="-lmp"
24315fi
24316 # SGI IRIX 6.5 MIPSpro C/C++
24317 fi
24318 LIBS="$GOMP_LIBS $LIBS"
24319fi
24320
24321
24322#
24323# Find Posix threads library
24324#
24325THREAD_LIBS=''
24326if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24327
24328 if test "x$PTHREAD_LIBS" = "x"; then
24329 case "${host_cpu}-${host_os}" in
24330 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000024331
24332
24333
24334ac_ext=c
24335ac_cpp='$CPP $CPPFLAGS'
24336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24338ac_compiler_gnu=$ac_cv_c_compiler_gnu
24339
24340magick_pthread_lib_ok=no
24341
24342LIB=-lc_r
24343save_LIBS="$LIBS"
24344LIBS="$LIBS $LIB"
24345
24346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24347$as_echo_n "checking for the pthreads library $LIB... " >&6; }
24348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24349/* end confdefs.h. */
24350#include <pthread.h>
24351int
24352main ()
24353{
24354 pthread_t th;
24355 pthread_join(th, 0);
24356 pthread_attr_init(0);
24357 pthread_cleanup_push(0, 0);
24358 pthread_create(0,0,0,0);
24359 pthread_cleanup_pop(0);
24360 ;
24361 return 0;
24362}
24363_ACEOF
24364if ac_fn_c_try_link "$LINENO"; then :
24365 magick_pthread_lib_ok=yes
24366fi
24367rm -f core conftest.err conftest.$ac_objext \
24368 conftest$ac_exeext conftest.$ac_ext
24369
24370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24371$as_echo "${magick_pthread_lib_ok}" >&6; }
24372if test "$magick_pthread_lib_ok" = yes
24373then
24374 PTHREAD_LIBS=-lc_r
24375 :
24376else
24377
24378 :
24379fi
24380
24381LIBS="$save_LIBS"
24382
24383ac_ext=c
24384ac_cpp='$CPP $CPPFLAGS'
24385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24387ac_compiler_gnu=$ac_cv_c_compiler_gnu
24388
24389 ;;
cristy3ed852e2009-09-05 21:47:34 +000024390 esac
24391 fi
24392
24393 for lib in pthread pthreads; do
24394 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000024395
24396
24397
24398ac_ext=c
24399ac_cpp='$CPP $CPPFLAGS'
24400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24402ac_compiler_gnu=$ac_cv_c_compiler_gnu
24403
24404magick_pthread_lib_ok=no
24405
24406LIB=-l$lib
24407save_LIBS="$LIBS"
24408LIBS="$LIBS $LIB"
24409
24410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24411$as_echo_n "checking for the pthreads library $LIB... " >&6; }
24412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24413/* end confdefs.h. */
24414#include <pthread.h>
24415int
24416main ()
24417{
24418 pthread_t th;
24419 pthread_join(th, 0);
24420 pthread_attr_init(0);
24421 pthread_cleanup_push(0, 0);
24422 pthread_create(0,0,0,0);
24423 pthread_cleanup_pop(0);
24424 ;
24425 return 0;
24426}
24427_ACEOF
24428if ac_fn_c_try_link "$LINENO"; then :
24429 magick_pthread_lib_ok=yes
24430fi
24431rm -f core conftest.err conftest.$ac_objext \
24432 conftest$ac_exeext conftest.$ac_ext
24433
24434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24435$as_echo "${magick_pthread_lib_ok}" >&6; }
24436if test "$magick_pthread_lib_ok" = yes
24437then
24438 PTHREAD_LIBS=-l$lib
24439 :
24440else
24441
24442 :
24443fi
24444
24445LIBS="$save_LIBS"
24446
24447ac_ext=c
24448ac_cpp='$CPP $CPPFLAGS'
24449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24451ac_compiler_gnu=$ac_cv_c_compiler_gnu
24452
24453
cristy3ed852e2009-09-05 21:47:34 +000024454 fi
24455 done
24456
24457 THREAD_LIBS="$PTHREAD_LIBS"
24458 LIBS="$LIBS $THREAD_LIBS"
24459fi
24460
24461
24462#
24463# Check for umem.
24464#
24465have_umem='no'
24466UMEM_LIBS=''
24467if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000024469$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024471$as_echo "" >&6; }
24472 failed=0
24473 passed=0
cristy8b350f62009-11-15 23:12:43 +000024474 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24475if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024476 passed=`expr $passed + 1`
24477else
24478 failed=`expr $failed + 1`
24479fi
24480
24481
cristy8b350f62009-11-15 23:12:43 +000024482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024483$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024484if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024485 $as_echo_n "(cached) " >&6
24486else
24487 ac_check_lib_save_LIBS=$LIBS
24488LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024490/* end confdefs.h. */
24491
24492/* Override any GCC internal prototype to avoid an error.
24493 Use char because int might match the return type of a GCC
24494 builtin and then its argument prototype would still apply. */
24495#ifdef __cplusplus
24496extern "C"
24497#endif
24498char umem_alloc ();
24499int
24500main ()
24501{
24502return umem_alloc ();
24503 ;
24504 return 0;
24505}
24506_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024507if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024508 ac_cv_lib_umem_umem_alloc=yes
24509else
cristy8b350f62009-11-15 23:12:43 +000024510 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000024511fi
cristy8b350f62009-11-15 23:12:43 +000024512rm -f core conftest.err conftest.$ac_objext \
24513 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024514LIBS=$ac_check_lib_save_LIBS
24515fi
cristy8b350f62009-11-15 23:12:43 +000024516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024517$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024518if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024519 passed=`expr $passed + 1`
24520else
24521 failed=`expr $failed + 1`
24522fi
24523
cristy8b350f62009-11-15 23:12:43 +000024524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024525$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024526if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024527 $as_echo_n "(cached) " >&6
24528else
24529 ac_check_lib_save_LIBS=$LIBS
24530LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024532/* end confdefs.h. */
24533
24534/* Override any GCC internal prototype to avoid an error.
24535 Use char because int might match the return type of a GCC
24536 builtin and then its argument prototype would still apply. */
24537#ifdef __cplusplus
24538extern "C"
24539#endif
24540char umem_free ();
24541int
24542main ()
24543{
24544return umem_free ();
24545 ;
24546 return 0;
24547}
24548_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024549if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024550 ac_cv_lib_umem_umem_free=yes
24551else
cristy8b350f62009-11-15 23:12:43 +000024552 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000024553fi
cristy8b350f62009-11-15 23:12:43 +000024554rm -f core conftest.err conftest.$ac_objext \
24555 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024556LIBS=$ac_check_lib_save_LIBS
24557fi
cristy8b350f62009-11-15 23:12:43 +000024558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000024559$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024560if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024561 passed=`expr $passed + 1`
24562else
24563 failed=`expr $failed + 1`
24564fi
24565
cristy8b350f62009-11-15 23:12:43 +000024566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024567$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24568 if test $passed -gt 0; then
24569 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024571$as_echo "no -- some components failed test" >&6; }
24572 have_umem='no (failed tests)'
24573 else
24574 UMEM_LIBS='-lumem'
24575 LIBS="$UMEM_LIBS $LIBS"
24576
cristy8b350f62009-11-15 23:12:43 +000024577$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024578
cristy8b350f62009-11-15 23:12:43 +000024579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024580$as_echo "yes" >&6; }
24581 have_umem='yes'
24582 fi
24583 else
cristy8b350f62009-11-15 23:12:43 +000024584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024585$as_echo "no" >&6; }
24586 fi
24587fi
cristy73bd4a52010-10-05 11:24:23 +000024588 if test "$have_umem" = 'yes'; then
24589 HasUMEM_TRUE=
24590 HasUMEM_FALSE='#'
24591else
24592 HasUMEM_TRUE='#'
24593 HasUMEM_FALSE=
24594fi
24595
cristy3ed852e2009-09-05 21:47:34 +000024596
24597
24598#
24599# Add support for ccmalloc memory debugging library if requested
24600#
24601have_ccmalloc='no'
24602CCMALLOC_LIBS=''
24603if test "$enable_ccmalloc" = 'yes'; then
24604 # Extract the first word of "ccmalloc", so it can be a program name with args.
24605set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024607$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024608if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024609 $as_echo_n "(cached) " >&6
24610else
24611 case $CCMALLOCDelegate in
24612 [\\/]* | ?:[\\/]*)
24613 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24614 ;;
24615 *)
24616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24617for as_dir in $PATH
24618do
24619 IFS=$as_save_IFS
24620 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024621 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24623 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000024624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024625 break 2
24626 fi
24627done
cristy8b350f62009-11-15 23:12:43 +000024628 done
cristy3ed852e2009-09-05 21:47:34 +000024629IFS=$as_save_IFS
24630
24631 ;;
24632esac
24633fi
24634CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24635if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000024636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024637$as_echo "$CCMALLOCDelegate" >&6; }
24638else
cristy8b350f62009-11-15 23:12:43 +000024639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024640$as_echo "no" >&6; }
24641fi
24642
24643
24644 if test -n "$CCMALLOCDelegate"; then
24645 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24646 OLIBS="$LIBS"
24647 # Assume that gcc is used with ccmalloc.
24648 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000024649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024650$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024651if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024652 $as_echo_n "(cached) " >&6
24653else
24654 ac_check_lib_save_LIBS=$LIBS
24655LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024657/* end confdefs.h. */
24658
24659/* Override any GCC internal prototype to avoid an error.
24660 Use char because int might match the return type of a GCC
24661 builtin and then its argument prototype would still apply. */
24662#ifdef __cplusplus
24663extern "C"
24664#endif
24665char ccmalloc_malloc ();
24666int
24667main ()
24668{
24669return ccmalloc_malloc ();
24670 ;
24671 return 0;
24672}
24673_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024674if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024675 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24676else
cristy8b350f62009-11-15 23:12:43 +000024677 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024678fi
cristy8b350f62009-11-15 23:12:43 +000024679rm -f core conftest.err conftest.$ac_objext \
24680 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024681LIBS=$ac_check_lib_save_LIBS
24682fi
cristy8b350f62009-11-15 23:12:43 +000024683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024684$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024685if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024686 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24687fi
24688
24689 if test -n "$CCMALLOC_LIBS"; then
24690 LIBS="$OLIBS"
24691 LIBS="$LIBS $CCMALLOC_LIBS"
24692 have_ccmalloc='yes'
24693 else
24694 LIBS="$OLIBS"
24695 fi
24696 fi
24697fi
24698
24699#
24700# Add support for efence memory debugging library if requested
24701#
24702if test "$enable_efence" = 'yes'; then
24703 EFENCE_LIBS='-lefence'
24704 LIBS="$EFENCE_LIBS $LIBS"
24705fi
24706
cristy3ed852e2009-09-05 21:47:34 +000024707
24708#
24709# Check for BZLIB
24710#
24711
24712
24713# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024714if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024715 withval=$with_bzlib; with_bzlib=$withval
24716else
24717 with_bzlib='yes'
24718fi
24719
24720
24721if test "$with_bzlib" != 'yes'; then
24722 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24723fi
24724
24725have_bzlib='no'
24726if test "$with_bzlib" != 'no'; then
24727 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024729$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024731$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024733$as_echo "" >&6; }
24734 failed=0
24735 passed=0
24736 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024737 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24738if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024739 passed=`expr $passed + 1`
24740else
24741 failed=`expr $failed + 1`
24742fi
24743
24744
cristy8b350f62009-11-15 23:12:43 +000024745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024746$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024747if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024748 $as_echo_n "(cached) " >&6
24749else
24750 ac_check_lib_save_LIBS=$LIBS
24751LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024753/* end confdefs.h. */
24754
24755/* Override any GCC internal prototype to avoid an error.
24756 Use char because int might match the return type of a GCC
24757 builtin and then its argument prototype would still apply. */
24758#ifdef __cplusplus
24759extern "C"
24760#endif
24761char BZ2_bzDecompress ();
24762int
24763main ()
24764{
24765return BZ2_bzDecompress ();
24766 ;
24767 return 0;
24768}
24769_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024770if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024771 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24772else
cristy8b350f62009-11-15 23:12:43 +000024773 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024774fi
cristy8b350f62009-11-15 23:12:43 +000024775rm -f core conftest.err conftest.$ac_objext \
24776 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024777LIBS=$ac_check_lib_save_LIBS
24778fi
cristy8b350f62009-11-15 23:12:43 +000024779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024780$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024781if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024782 found_libbz=`expr $found_libbz + 1`
24783fi
24784
24785 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024787$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024788if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024789 $as_echo_n "(cached) " >&6
24790else
24791 ac_check_lib_save_LIBS=$LIBS
24792LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024794/* end confdefs.h. */
24795
24796/* Override any GCC internal prototype to avoid an error.
24797 Use char because int might match the return type of a GCC
24798 builtin and then its argument prototype would still apply. */
24799#ifdef __cplusplus
24800extern "C"
24801#endif
24802char _imp__BZ2_decompress ();
24803int
24804main ()
24805{
24806return _imp__BZ2_decompress ();
24807 ;
24808 return 0;
24809}
24810_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024811if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024812 ac_cv_lib_bz2__imp__BZ2_decompress=yes
24813else
cristy8b350f62009-11-15 23:12:43 +000024814 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000024815fi
cristy8b350f62009-11-15 23:12:43 +000024816rm -f core conftest.err conftest.$ac_objext \
24817 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024818LIBS=$ac_check_lib_save_LIBS
24819fi
cristy8b350f62009-11-15 23:12:43 +000024820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024821$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024822if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024823 found_libbz=`expr $found_libbz + 1`
24824fi
24825
24826 fi
24827 if test $found_libbz -gt 0; then
24828 passed=`expr $passed + 1`
24829 else
24830 failed=`expr $failed + 1`
24831 fi
cristy8b350f62009-11-15 23:12:43 +000024832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024833$as_echo_n "checking if BZLIB package is complete... " >&6; }
24834 if test $passed -gt 0; then
24835 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024837$as_echo "no -- some components failed test" >&6; }
24838 have_bzlib='no (failed tests)'
24839 else
24840 BZLIB_LIBS='-lbz2'
24841 LIBS="$BZLIB_LIBS $LIBS"
24842
cristy8b350f62009-11-15 23:12:43 +000024843$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024844
cristy8b350f62009-11-15 23:12:43 +000024845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024846$as_echo "yes" >&6; }
24847 have_bzlib='yes'
24848 fi
24849 else
cristy8b350f62009-11-15 23:12:43 +000024850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024851$as_echo "no" >&6; }
24852 fi
24853fi
cristy73bd4a52010-10-05 11:24:23 +000024854 if test "$have_bzlib" = 'yes'; then
24855 BZLIB_DELEGATE_TRUE=
24856 BZLIB_DELEGATE_FALSE='#'
24857else
24858 BZLIB_DELEGATE_TRUE='#'
24859 BZLIB_DELEGATE_FALSE=
24860fi
24861
cristy3ed852e2009-09-05 21:47:34 +000024862
24863
24864#
24865# Find the X11 include and library directories.
24866#
24867IPC_LIBS=''
24868X11_LIBS=''
24869XEXT_LIBS=''
24870XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000024872$as_echo_n "checking for X... " >&6; }
24873
24874
24875# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000024876if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024877 withval=$with_x;
24878fi
24879
24880# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24881if test "x$with_x" = xno; then
24882 # The user explicitly disabled X.
24883 have_x=disabled
24884else
24885 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000024886 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristy8b350f62009-11-15 23:12:43 +000024887 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024888 $as_echo_n "(cached) " >&6
24889else
24890 # One or both of the vars are not set, and there is no cached value.
24891ac_x_includes=no ac_x_libraries=no
24892rm -f -r conftest.dir
24893if mkdir conftest.dir; then
24894 cd conftest.dir
24895 cat >Imakefile <<'_ACEOF'
24896incroot:
24897 @echo incroot='${INCROOT}'
24898usrlibdir:
24899 @echo usrlibdir='${USRLIBDIR}'
24900libdir:
24901 @echo libdir='${LIBDIR}'
24902_ACEOF
24903 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000024904 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000024905 for ac_var in incroot usrlibdir libdir; do
24906 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24907 done
24908 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24909 for ac_extension in a so sl dylib la dll; do
24910 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24911 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24912 ac_im_usrlibdir=$ac_im_libdir; break
24913 fi
24914 done
24915 # Screen out bogus values from the imake configuration. They are
24916 # bogus both because they are the default anyway, and because
24917 # using them would break gcc on systems where it needs fixed includes.
24918 case $ac_im_incroot in
24919 /usr/include) ac_x_includes= ;;
24920 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24921 esac
24922 case $ac_im_usrlibdir in
24923 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24924 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24925 esac
24926 fi
24927 cd ..
24928 rm -f -r conftest.dir
24929fi
24930
24931# Standard set of common directories for X headers.
24932# Check X11 before X11Rn because it is often a symlink to the current release.
24933ac_x_header_dirs='
24934/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000024935/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024936/usr/X11R6/include
24937/usr/X11R5/include
24938/usr/X11R4/include
24939
24940/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000024941/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024942/usr/include/X11R6
24943/usr/include/X11R5
24944/usr/include/X11R4
24945
24946/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000024947/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024948/usr/local/X11R6/include
24949/usr/local/X11R5/include
24950/usr/local/X11R4/include
24951
24952/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000024953/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024954/usr/local/include/X11R6
24955/usr/local/include/X11R5
24956/usr/local/include/X11R4
24957
24958/usr/X386/include
24959/usr/x386/include
24960/usr/XFree86/include/X11
24961
24962/usr/include
24963/usr/local/include
24964/usr/unsupported/include
24965/usr/athena/include
24966/usr/local/x11r5/include
24967/usr/lpp/Xamples/include
24968
24969/usr/openwin/include
24970/usr/openwin/share/include'
24971
24972if test "$ac_x_includes" = no; then
24973 # Guess where to find include files, by looking for Xlib.h.
24974 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000024975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024976/* end confdefs.h. */
24977#include <X11/Xlib.h>
24978_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024979if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000024980 # We can compile using X headers with no special include directory.
24981ac_x_includes=
24982else
cristyc7083c12009-10-14 03:16:55 +000024983 for ac_dir in $ac_x_header_dirs; do
24984 if test -r "$ac_dir/X11/Xlib.h"; then
24985 ac_x_includes=$ac_dir
24986 break
24987 fi
24988done
24989fi
cristyc7083c12009-10-14 03:16:55 +000024990rm -f conftest.err conftest.$ac_ext
24991fi # $ac_x_includes = no
24992
24993if test "$ac_x_libraries" = no; then
24994 # Check for the libraries.
24995 # See if we find them without any special options.
24996 # Don't add to $LIBS permanently.
24997 ac_save_LIBS=$LIBS
24998 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025000/* end confdefs.h. */
25001#include <X11/Xlib.h>
25002int
25003main ()
25004{
25005XrmInitialize ()
25006 ;
25007 return 0;
25008}
25009_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025010if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025011 LIBS=$ac_save_LIBS
25012# We can link X programs with no special library path.
25013ac_x_libraries=
25014else
cristy8b350f62009-11-15 23:12:43 +000025015 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025016for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25017do
25018 # Don't even attempt the hair of trying to link an X program!
25019 for ac_extension in a so sl dylib la dll; do
25020 if test -r "$ac_dir/libX11.$ac_extension"; then
25021 ac_x_libraries=$ac_dir
25022 break 2
25023 fi
25024 done
25025done
25026fi
cristy8b350f62009-11-15 23:12:43 +000025027rm -f core conftest.err conftest.$ac_objext \
25028 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025029fi # $ac_x_libraries = no
25030
25031case $ac_x_includes,$ac_x_libraries in #(
25032 no,* | *,no | *\'*)
25033 # Didn't find X, or a directory has "'" in its name.
25034 ac_cv_have_x="have_x=no";; #(
25035 *)
25036 # Record where we found X for the cache.
25037 ac_cv_have_x="have_x=yes\
25038 ac_x_includes='$ac_x_includes'\
25039 ac_x_libraries='$ac_x_libraries'"
25040esac
25041fi
25042;; #(
25043 *) have_x=yes;;
25044 esac
25045 eval "$ac_cv_have_x"
25046fi # $with_x != no
25047
25048if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025050$as_echo "$have_x" >&6; }
25051 no_x=yes
25052else
25053 # If each of the values was on the command line, it overrides each guess.
25054 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25055 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25056 # Update the cache value to reflect the command line values.
25057 ac_cv_have_x="have_x=yes\
25058 ac_x_includes='$x_includes'\
25059 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025061$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25062fi
25063
cristy3ed852e2009-09-05 21:47:34 +000025064if test "$no_x" = yes; then
25065 # Not all programs may use this symbol, but it does not hurt to define it.
25066
cristy8b350f62009-11-15 23:12:43 +000025067$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025068
25069 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25070else
25071 if test -n "$x_includes"; then
25072 X_CFLAGS="$X_CFLAGS -I$x_includes"
25073 fi
25074
25075 # It would also be nice to do this for all -L options, not just this one.
25076 if test -n "$x_libraries"; then
25077 X_LIBS="$X_LIBS -L$x_libraries"
25078 # For Solaris; some versions of Sun CC require a space after -R and
25079 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025081$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25082 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25083 ac_xsave_c_werror_flag=$ac_c_werror_flag
25084 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025086/* end confdefs.h. */
25087
25088int
25089main ()
25090{
25091
25092 ;
25093 return 0;
25094}
25095_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025096if ac_fn_c_try_link "$LINENO"; then :
25097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025098$as_echo "no" >&6; }
25099 X_LIBS="$X_LIBS -R$x_libraries"
25100else
cristy8b350f62009-11-15 23:12:43 +000025101 LIBS="$ac_xsave_LIBS -R $x_libraries"
25102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025103/* end confdefs.h. */
25104
25105int
25106main ()
25107{
25108
25109 ;
25110 return 0;
25111}
25112_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025113if ac_fn_c_try_link "$LINENO"; then :
25114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025115$as_echo "yes" >&6; }
25116 X_LIBS="$X_LIBS -R $x_libraries"
25117else
cristy8b350f62009-11-15 23:12:43 +000025118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025119$as_echo "neither works" >&6; }
25120fi
cristy8b350f62009-11-15 23:12:43 +000025121rm -f core conftest.err conftest.$ac_objext \
25122 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025123fi
cristy8b350f62009-11-15 23:12:43 +000025124rm -f core conftest.err conftest.$ac_objext \
25125 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025126 ac_c_werror_flag=$ac_xsave_c_werror_flag
25127 LIBS=$ac_xsave_LIBS
25128 fi
25129
25130 # Check for system-dependent libraries X programs must link with.
25131 # Do this before checking for the system-independent R6 libraries
25132 # (-lICE), since we may need -lsocket or whatever for X linking.
25133
25134 if test "$ISC" = yes; then
25135 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25136 else
25137 # Martyn Johnson says this is needed for Ultrix, if the X
25138 # libraries were built with DECnet support. And Karl Berry says
25139 # the Alpha needs dnet_stub (dnet does not exist).
25140 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025142/* end confdefs.h. */
25143
25144/* Override any GCC internal prototype to avoid an error.
25145 Use char because int might match the return type of a GCC
25146 builtin and then its argument prototype would still apply. */
25147#ifdef __cplusplus
25148extern "C"
25149#endif
25150char XOpenDisplay ();
25151int
25152main ()
25153{
25154return XOpenDisplay ();
25155 ;
25156 return 0;
25157}
25158_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025159if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025160
cristy8b350f62009-11-15 23:12:43 +000025161else
25162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025163$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025164if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025165 $as_echo_n "(cached) " >&6
25166else
25167 ac_check_lib_save_LIBS=$LIBS
25168LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025170/* end confdefs.h. */
25171
25172/* Override any GCC internal prototype to avoid an error.
25173 Use char because int might match the return type of a GCC
25174 builtin and then its argument prototype would still apply. */
25175#ifdef __cplusplus
25176extern "C"
25177#endif
25178char dnet_ntoa ();
25179int
25180main ()
25181{
25182return dnet_ntoa ();
25183 ;
25184 return 0;
25185}
25186_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025187if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025188 ac_cv_lib_dnet_dnet_ntoa=yes
25189else
cristy8b350f62009-11-15 23:12:43 +000025190 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025191fi
cristy8b350f62009-11-15 23:12:43 +000025192rm -f core conftest.err conftest.$ac_objext \
25193 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025194LIBS=$ac_check_lib_save_LIBS
25195fi
cristy8b350f62009-11-15 23:12:43 +000025196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025197$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025198if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025199 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25200fi
25201
25202 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000025203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000025204$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025205if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025206 $as_echo_n "(cached) " >&6
25207else
25208 ac_check_lib_save_LIBS=$LIBS
25209LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025211/* end confdefs.h. */
25212
25213/* Override any GCC internal prototype to avoid an error.
25214 Use char because int might match the return type of a GCC
25215 builtin and then its argument prototype would still apply. */
25216#ifdef __cplusplus
25217extern "C"
25218#endif
25219char dnet_ntoa ();
25220int
25221main ()
25222{
25223return dnet_ntoa ();
25224 ;
25225 return 0;
25226}
25227_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025228if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025229 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25230else
cristy8b350f62009-11-15 23:12:43 +000025231 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025232fi
cristy8b350f62009-11-15 23:12:43 +000025233rm -f core conftest.err conftest.$ac_objext \
25234 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025235LIBS=$ac_check_lib_save_LIBS
25236fi
cristy8b350f62009-11-15 23:12:43 +000025237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025238$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025239if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025240 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25241fi
25242
25243 fi
25244fi
cristy8b350f62009-11-15 23:12:43 +000025245rm -f core conftest.err conftest.$ac_objext \
25246 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025247 LIBS="$ac_xsave_LIBS"
25248
25249 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25250 # to get the SysV transport functions.
25251 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25252 # needs -lnsl.
25253 # The nsl library prevents programs from opening the X display
25254 # on Irix 5.2, according to T.E. Dickey.
25255 # The functions gethostbyname, getservbyname, and inet_addr are
25256 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000025257 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25258if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025259
cristy3ed852e2009-09-05 21:47:34 +000025260fi
25261
cristy3ed852e2009-09-05 21:47:34 +000025262 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025264$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025265if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025266 $as_echo_n "(cached) " >&6
25267else
25268 ac_check_lib_save_LIBS=$LIBS
25269LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025271/* end confdefs.h. */
25272
25273/* Override any GCC internal prototype to avoid an error.
25274 Use char because int might match the return type of a GCC
25275 builtin and then its argument prototype would still apply. */
25276#ifdef __cplusplus
25277extern "C"
25278#endif
25279char gethostbyname ();
25280int
25281main ()
25282{
25283return gethostbyname ();
25284 ;
25285 return 0;
25286}
25287_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025288if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025289 ac_cv_lib_nsl_gethostbyname=yes
25290else
cristy8b350f62009-11-15 23:12:43 +000025291 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025292fi
cristy8b350f62009-11-15 23:12:43 +000025293rm -f core conftest.err conftest.$ac_objext \
25294 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025295LIBS=$ac_check_lib_save_LIBS
25296fi
cristy8b350f62009-11-15 23:12:43 +000025297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025298$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025299if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025300 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25301fi
25302
25303 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000025305$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025306if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025307 $as_echo_n "(cached) " >&6
25308else
25309 ac_check_lib_save_LIBS=$LIBS
25310LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025312/* end confdefs.h. */
25313
25314/* Override any GCC internal prototype to avoid an error.
25315 Use char because int might match the return type of a GCC
25316 builtin and then its argument prototype would still apply. */
25317#ifdef __cplusplus
25318extern "C"
25319#endif
25320char gethostbyname ();
25321int
25322main ()
25323{
25324return gethostbyname ();
25325 ;
25326 return 0;
25327}
25328_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025329if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025330 ac_cv_lib_bsd_gethostbyname=yes
25331else
cristy8b350f62009-11-15 23:12:43 +000025332 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025333fi
cristy8b350f62009-11-15 23:12:43 +000025334rm -f core conftest.err conftest.$ac_objext \
25335 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025336LIBS=$ac_check_lib_save_LIBS
25337fi
cristy8b350f62009-11-15 23:12:43 +000025338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025339$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025340if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025341 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25342fi
25343
25344 fi
25345 fi
25346
25347 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25348 # socket/setsockopt and other routines are undefined under SCO ODT
25349 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25350 # on later versions), says Simon Leinen: it contains gethostby*
25351 # variants that don't use the name server (or something). -lsocket
25352 # must be given before -lnsl if both are needed. We assume that
25353 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000025354 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25355if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025356
cristy3ed852e2009-09-05 21:47:34 +000025357fi
25358
cristy3ed852e2009-09-05 21:47:34 +000025359 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000025360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000025361$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025362if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025363 $as_echo_n "(cached) " >&6
25364else
25365 ac_check_lib_save_LIBS=$LIBS
25366LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025368/* end confdefs.h. */
25369
25370/* Override any GCC internal prototype to avoid an error.
25371 Use char because int might match the return type of a GCC
25372 builtin and then its argument prototype would still apply. */
25373#ifdef __cplusplus
25374extern "C"
25375#endif
25376char connect ();
25377int
25378main ()
25379{
25380return connect ();
25381 ;
25382 return 0;
25383}
25384_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025385if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025386 ac_cv_lib_socket_connect=yes
25387else
cristy8b350f62009-11-15 23:12:43 +000025388 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000025389fi
cristy8b350f62009-11-15 23:12:43 +000025390rm -f core conftest.err conftest.$ac_objext \
25391 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025392LIBS=$ac_check_lib_save_LIBS
25393fi
cristy8b350f62009-11-15 23:12:43 +000025394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000025395$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025396if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025397 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25398fi
25399
25400 fi
25401
25402 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000025403 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25404if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025405
cristy3ed852e2009-09-05 21:47:34 +000025406fi
25407
cristy3ed852e2009-09-05 21:47:34 +000025408 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000025409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000025410$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025411if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025412 $as_echo_n "(cached) " >&6
25413else
25414 ac_check_lib_save_LIBS=$LIBS
25415LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025417/* end confdefs.h. */
25418
25419/* Override any GCC internal prototype to avoid an error.
25420 Use char because int might match the return type of a GCC
25421 builtin and then its argument prototype would still apply. */
25422#ifdef __cplusplus
25423extern "C"
25424#endif
25425char remove ();
25426int
25427main ()
25428{
25429return remove ();
25430 ;
25431 return 0;
25432}
25433_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025434if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025435 ac_cv_lib_posix_remove=yes
25436else
cristy8b350f62009-11-15 23:12:43 +000025437 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000025438fi
cristy8b350f62009-11-15 23:12:43 +000025439rm -f core conftest.err conftest.$ac_objext \
25440 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025441LIBS=$ac_check_lib_save_LIBS
25442fi
cristy8b350f62009-11-15 23:12:43 +000025443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000025444$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025445if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025446 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25447fi
25448
25449 fi
25450
25451 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000025452 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25453if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025454
cristy3ed852e2009-09-05 21:47:34 +000025455fi
25456
cristy3ed852e2009-09-05 21:47:34 +000025457 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000025458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025459$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025460if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025461 $as_echo_n "(cached) " >&6
25462else
25463 ac_check_lib_save_LIBS=$LIBS
25464LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025466/* end confdefs.h. */
25467
25468/* Override any GCC internal prototype to avoid an error.
25469 Use char because int might match the return type of a GCC
25470 builtin and then its argument prototype would still apply. */
25471#ifdef __cplusplus
25472extern "C"
25473#endif
25474char shmat ();
25475int
25476main ()
25477{
25478return shmat ();
25479 ;
25480 return 0;
25481}
25482_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025483if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025484 ac_cv_lib_ipc_shmat=yes
25485else
cristy8b350f62009-11-15 23:12:43 +000025486 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000025487fi
cristy8b350f62009-11-15 23:12:43 +000025488rm -f core conftest.err conftest.$ac_objext \
25489 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025490LIBS=$ac_check_lib_save_LIBS
25491fi
cristy8b350f62009-11-15 23:12:43 +000025492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000025493$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025494if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025495 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25496fi
25497
25498 fi
25499 fi
25500
25501 # Check for libraries that X11R6 Xt/Xaw programs need.
25502 ac_save_LDFLAGS=$LDFLAGS
25503 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25504 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25505 # check for ICE first), but we must link in the order -lSM -lICE or
25506 # we get undefined symbols. So assume we have SM if we have ICE.
25507 # These have to be linked with before -lX11, unlike the other
25508 # libraries we check for below, so use a different variable.
25509 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000025510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025511$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025512if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025513 $as_echo_n "(cached) " >&6
25514else
25515 ac_check_lib_save_LIBS=$LIBS
25516LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025518/* end confdefs.h. */
25519
25520/* Override any GCC internal prototype to avoid an error.
25521 Use char because int might match the return type of a GCC
25522 builtin and then its argument prototype would still apply. */
25523#ifdef __cplusplus
25524extern "C"
25525#endif
25526char IceConnectionNumber ();
25527int
25528main ()
25529{
25530return IceConnectionNumber ();
25531 ;
25532 return 0;
25533}
25534_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025535if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025536 ac_cv_lib_ICE_IceConnectionNumber=yes
25537else
cristy8b350f62009-11-15 23:12:43 +000025538 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000025539fi
cristy8b350f62009-11-15 23:12:43 +000025540rm -f core conftest.err conftest.$ac_objext \
25541 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025542LIBS=$ac_check_lib_save_LIBS
25543fi
cristy8b350f62009-11-15 23:12:43 +000025544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000025545$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025546if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025547 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25548fi
25549
25550 LDFLAGS=$ac_save_LDFLAGS
25551
25552fi
25553
25554if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025556$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000025558$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025560$as_echo "" >&6; }
25561 LDFLAGS="$LDFLAGS $X_LIBS"
25562 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25563 LIBS="$X11_LIBS $LIBS"
25564 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25565
25566
cristy8b350f62009-11-15 23:12:43 +000025567$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025568
25569 #
25570 # Check for X11 shared memory extension
25571 #
25572 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000025573 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25574if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025575 have_shmctl='yes'
25576fi
25577
25578 if test "$have_shmctl" != 'yes'; then
25579 PERSIST_LIBS=$LIBS
25580 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000025581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025582/* end confdefs.h. */
25583
25584/* Override any GCC internal prototype to avoid an error.
25585 Use char because int might match the return type of a GCC
25586 builtin and then its argument prototype would still apply. */
25587#ifdef __cplusplus
25588extern "C"
25589#endif
25590char shmctl ();
25591int
25592main ()
25593{
25594return shmctl ();
25595 ;
25596 return 0;
25597}
25598_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025599if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025600 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000025601fi
cristy8b350f62009-11-15 23:12:43 +000025602rm -f core conftest.err conftest.$ac_objext \
25603 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025604 LIBS=$PERSIST_LIBS
25605 fi
25606
25607 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025609$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025610if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025611 $as_echo_n "(cached) " >&6
25612else
25613 ac_check_lib_save_LIBS=$LIBS
25614LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025616/* end confdefs.h. */
25617
25618/* Override any GCC internal prototype to avoid an error.
25619 Use char because int might match the return type of a GCC
25620 builtin and then its argument prototype would still apply. */
25621#ifdef __cplusplus
25622extern "C"
25623#endif
25624char XShmAttach ();
25625int
25626main ()
25627{
25628return XShmAttach ();
25629 ;
25630 return 0;
25631}
25632_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025633if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025634 ac_cv_lib_Xext_XShmAttach=yes
25635else
cristy8b350f62009-11-15 23:12:43 +000025636 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025637fi
cristy8b350f62009-11-15 23:12:43 +000025638rm -f core conftest.err conftest.$ac_objext \
25639 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025640LIBS=$ac_check_lib_save_LIBS
25641fi
cristy8b350f62009-11-15 23:12:43 +000025642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025643$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025644if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025645 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025646$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025647
25648fi
25649
25650 fi
25651
25652 #
25653 # Check for X11 shape extension
25654 #
cristy8b350f62009-11-15 23:12:43 +000025655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025656$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025657if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025658 $as_echo_n "(cached) " >&6
25659else
25660 ac_check_lib_save_LIBS=$LIBS
25661LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025663/* end confdefs.h. */
25664
25665/* Override any GCC internal prototype to avoid an error.
25666 Use char because int might match the return type of a GCC
25667 builtin and then its argument prototype would still apply. */
25668#ifdef __cplusplus
25669extern "C"
25670#endif
25671char XShapeCombineMask ();
25672int
25673main ()
25674{
25675return XShapeCombineMask ();
25676 ;
25677 return 0;
25678}
25679_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025680if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025681 ac_cv_lib_Xext_XShapeCombineMask=yes
25682else
cristy8b350f62009-11-15 23:12:43 +000025683 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025684fi
cristy8b350f62009-11-15 23:12:43 +000025685rm -f core conftest.err conftest.$ac_objext \
25686 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025687LIBS=$ac_check_lib_save_LIBS
25688fi
cristy8b350f62009-11-15 23:12:43 +000025689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025690$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025691if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025692 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025693$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025694
25695fi
25696
cristy8b350f62009-11-15 23:12:43 +000025697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025698$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025699if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025700 $as_echo_n "(cached) " >&6
25701else
25702 ac_check_lib_save_LIBS=$LIBS
25703LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025705/* end confdefs.h. */
25706
25707/* Override any GCC internal prototype to avoid an error.
25708 Use char because int might match the return type of a GCC
25709 builtin and then its argument prototype would still apply. */
25710#ifdef __cplusplus
25711extern "C"
25712#endif
25713char XtSetEventDispatcher ();
25714int
25715main ()
25716{
25717return XtSetEventDispatcher ();
25718 ;
25719 return 0;
25720}
25721_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025722if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025723 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25724else
cristy8b350f62009-11-15 23:12:43 +000025725 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025726fi
cristy8b350f62009-11-15 23:12:43 +000025727rm -f core conftest.err conftest.$ac_objext \
25728 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025729LIBS=$ac_check_lib_save_LIBS
25730fi
cristy8b350f62009-11-15 23:12:43 +000025731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025732$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025733if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025734 XT_LIBS='-lXt'
25735fi
25736
25737 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25738fi
25739if test "$no_x" != 'yes'; then
25740 have_x='yes'
25741else
25742 have_x='no'
25743fi
cristy73bd4a52010-10-05 11:24:23 +000025744 if test "$have_x" = 'yes'; then
25745 X11_DELEGATE_TRUE=
25746 X11_DELEGATE_FALSE='#'
25747else
25748 X11_DELEGATE_TRUE='#'
25749 X11_DELEGATE_FALSE=
25750fi
25751
cristy3ed852e2009-09-05 21:47:34 +000025752
25753
25754
25755
25756#
25757# Check for ZLIB
25758#
25759
25760# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025761if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025762 withval=$with_zlib; with_zlib=$withval
25763else
25764 with_zlib='yes'
25765fi
25766
25767
25768if test "$with_zlib" != 'yes'; then
25769 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25770fi
25771
25772have_zlib='no'
25773ZLIB_LIBS=''
25774if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025776$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025778$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025780$as_echo "" >&6; }
25781 ZLIB_LIBS=''
25782 failed=0
25783 passed=0
cristy8b350f62009-11-15 23:12:43 +000025784 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25785if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025786 passed=`expr $passed + 1`
25787else
25788 failed=`expr $failed + 1`
25789fi
25790
25791
cristy8b350f62009-11-15 23:12:43 +000025792 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25793if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025794 passed=`expr $passed + 1`
25795else
25796 failed=`expr $failed + 1`
25797fi
25798
25799
cristy8b350f62009-11-15 23:12:43 +000025800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025801$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025802if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025803 $as_echo_n "(cached) " >&6
25804else
25805 ac_check_lib_save_LIBS=$LIBS
25806LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025808/* end confdefs.h. */
25809
25810/* Override any GCC internal prototype to avoid an error.
25811 Use char because int might match the return type of a GCC
25812 builtin and then its argument prototype would still apply. */
25813#ifdef __cplusplus
25814extern "C"
25815#endif
25816char compress ();
25817int
25818main ()
25819{
25820return compress ();
25821 ;
25822 return 0;
25823}
25824_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025825if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025826 ac_cv_lib_z_compress=yes
25827else
cristy8b350f62009-11-15 23:12:43 +000025828 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000025829fi
cristy8b350f62009-11-15 23:12:43 +000025830rm -f core conftest.err conftest.$ac_objext \
25831 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025832LIBS=$ac_check_lib_save_LIBS
25833fi
cristy8b350f62009-11-15 23:12:43 +000025834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025835$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025836if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025837 passed=`expr $passed + 1`
25838else
25839 failed=`expr $failed + 1`
25840fi
25841
cristy8b350f62009-11-15 23:12:43 +000025842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025843$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025844if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025845 $as_echo_n "(cached) " >&6
25846else
25847 ac_check_lib_save_LIBS=$LIBS
25848LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025850/* end confdefs.h. */
25851
25852/* Override any GCC internal prototype to avoid an error.
25853 Use char because int might match the return type of a GCC
25854 builtin and then its argument prototype would still apply. */
25855#ifdef __cplusplus
25856extern "C"
25857#endif
25858char uncompress ();
25859int
25860main ()
25861{
25862return uncompress ();
25863 ;
25864 return 0;
25865}
25866_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025867if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025868 ac_cv_lib_z_uncompress=yes
25869else
cristy8b350f62009-11-15 23:12:43 +000025870 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000025871fi
cristy8b350f62009-11-15 23:12:43 +000025872rm -f core conftest.err conftest.$ac_objext \
25873 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025874LIBS=$ac_check_lib_save_LIBS
25875fi
cristy8b350f62009-11-15 23:12:43 +000025876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025877$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025878if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025879 passed=`expr $passed + 1`
25880else
25881 failed=`expr $failed + 1`
25882fi
25883
cristy8b350f62009-11-15 23:12:43 +000025884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025885$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025886if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025887 $as_echo_n "(cached) " >&6
25888else
25889 ac_check_lib_save_LIBS=$LIBS
25890LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025892/* end confdefs.h. */
25893
25894/* Override any GCC internal prototype to avoid an error.
25895 Use char because int might match the return type of a GCC
25896 builtin and then its argument prototype would still apply. */
25897#ifdef __cplusplus
25898extern "C"
25899#endif
25900char deflate ();
25901int
25902main ()
25903{
25904return deflate ();
25905 ;
25906 return 0;
25907}
25908_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025909if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025910 ac_cv_lib_z_deflate=yes
25911else
cristy8b350f62009-11-15 23:12:43 +000025912 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000025913fi
cristy8b350f62009-11-15 23:12:43 +000025914rm -f core conftest.err conftest.$ac_objext \
25915 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025916LIBS=$ac_check_lib_save_LIBS
25917fi
cristy8b350f62009-11-15 23:12:43 +000025918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025919$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025920if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025921 passed=`expr $passed + 1`
25922else
25923 failed=`expr $failed + 1`
25924fi
25925
cristy8b350f62009-11-15 23:12:43 +000025926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025927$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025928if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025929 $as_echo_n "(cached) " >&6
25930else
25931 ac_check_lib_save_LIBS=$LIBS
25932LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025934/* end confdefs.h. */
25935
25936/* Override any GCC internal prototype to avoid an error.
25937 Use char because int might match the return type of a GCC
25938 builtin and then its argument prototype would still apply. */
25939#ifdef __cplusplus
25940extern "C"
25941#endif
25942char inflate ();
25943int
25944main ()
25945{
25946return inflate ();
25947 ;
25948 return 0;
25949}
25950_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025951if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025952 ac_cv_lib_z_inflate=yes
25953else
cristy8b350f62009-11-15 23:12:43 +000025954 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000025955fi
cristy8b350f62009-11-15 23:12:43 +000025956rm -f core conftest.err conftest.$ac_objext \
25957 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025958LIBS=$ac_check_lib_save_LIBS
25959fi
cristy8b350f62009-11-15 23:12:43 +000025960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025961$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025962if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025963 passed=`expr $passed + 1`
25964else
25965 failed=`expr $failed + 1`
25966fi
25967
cristy8b350f62009-11-15 23:12:43 +000025968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025969$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025970if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025971 $as_echo_n "(cached) " >&6
25972else
25973 ac_check_lib_save_LIBS=$LIBS
25974LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025976/* end confdefs.h. */
25977
25978/* Override any GCC internal prototype to avoid an error.
25979 Use char because int might match the return type of a GCC
25980 builtin and then its argument prototype would still apply. */
25981#ifdef __cplusplus
25982extern "C"
25983#endif
25984char gzseek ();
25985int
25986main ()
25987{
25988return gzseek ();
25989 ;
25990 return 0;
25991}
25992_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025993if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025994 ac_cv_lib_z_gzseek=yes
25995else
cristy8b350f62009-11-15 23:12:43 +000025996 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000025997fi
cristy8b350f62009-11-15 23:12:43 +000025998rm -f core conftest.err conftest.$ac_objext \
25999 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026000LIBS=$ac_check_lib_save_LIBS
26001fi
cristy8b350f62009-11-15 23:12:43 +000026002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000026003$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026004if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026005 passed=`expr $passed + 1`
26006else
26007 failed=`expr $failed + 1`
26008fi
26009
cristy8b350f62009-11-15 23:12:43 +000026010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026011$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026012if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026013 $as_echo_n "(cached) " >&6
26014else
26015 ac_check_lib_save_LIBS=$LIBS
26016LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026018/* end confdefs.h. */
26019
26020/* Override any GCC internal prototype to avoid an error.
26021 Use char because int might match the return type of a GCC
26022 builtin and then its argument prototype would still apply. */
26023#ifdef __cplusplus
26024extern "C"
26025#endif
26026char gztell ();
26027int
26028main ()
26029{
26030return gztell ();
26031 ;
26032 return 0;
26033}
26034_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026035if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026036 ac_cv_lib_z_gztell=yes
26037else
cristy8b350f62009-11-15 23:12:43 +000026038 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026039fi
cristy8b350f62009-11-15 23:12:43 +000026040rm -f core conftest.err conftest.$ac_objext \
26041 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026042LIBS=$ac_check_lib_save_LIBS
26043fi
cristy8b350f62009-11-15 23:12:43 +000026044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026045$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026046if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026047 passed=`expr $passed + 1`
26048else
26049 failed=`expr $failed + 1`
26050fi
26051
cristy8b350f62009-11-15 23:12:43 +000026052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026053$as_echo_n "checking if ZLIB package is complete... " >&6; }
26054 if test $passed -gt 0; then
26055 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026057$as_echo "no -- some components failed test" >&6; }
26058 have_zlib='no (failed tests)'
26059 else
26060 ZLIB_LIBS='-lz'
26061 LIBS="$ZLIB_LIBS $LIBS"
26062
cristy8b350f62009-11-15 23:12:43 +000026063$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026064
cristy8b350f62009-11-15 23:12:43 +000026065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026066$as_echo "yes" >&6; }
26067 have_zlib='yes'
26068 fi
26069 else
cristy8b350f62009-11-15 23:12:43 +000026070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026071$as_echo "no" >&6; }
26072 fi
26073fi
cristy73bd4a52010-10-05 11:24:23 +000026074 if test "$have_zlib" = 'yes'; then
26075 ZLIB_DELEGATE_TRUE=
26076 ZLIB_DELEGATE_FALSE='#'
26077else
26078 ZLIB_DELEGATE_TRUE='#'
26079 ZLIB_DELEGATE_FALSE=
26080fi
26081
cristy3ed852e2009-09-05 21:47:34 +000026082
26083
26084#
26085# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26086#
26087LIB_DL=''
26088if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026090$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026091if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026092 $as_echo_n "(cached) " >&6
26093else
26094 ac_check_lib_save_LIBS=$LIBS
26095LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026097/* end confdefs.h. */
26098
26099/* Override any GCC internal prototype to avoid an error.
26100 Use char because int might match the return type of a GCC
26101 builtin and then its argument prototype would still apply. */
26102#ifdef __cplusplus
26103extern "C"
26104#endif
26105char dlopen ();
26106int
26107main ()
26108{
26109return dlopen ();
26110 ;
26111 return 0;
26112}
26113_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026114if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026115 ac_cv_lib_dl_dlopen=yes
26116else
cristy8b350f62009-11-15 23:12:43 +000026117 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026118fi
cristy8b350f62009-11-15 23:12:43 +000026119rm -f core conftest.err conftest.$ac_objext \
26120 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026121LIBS=$ac_check_lib_save_LIBS
26122fi
cristy8b350f62009-11-15 23:12:43 +000026123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026124$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026125if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026126 LIB_DL='-ldl'
26127fi
26128
26129 LIBS="$LIB_DL $LIBS"
26130fi
26131
26132
26133
26134#
26135# Check for Autotrace delegate library.
26136#
26137
26138# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026139if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026140 withval=$with_autotrace; with_autotrace=$withval
26141else
26142 with_autotrace='no'
26143fi
26144
26145
26146if test "$with_autotrace" != 'yes'; then
26147 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26148fi
26149
26150have_autotrace='no'
26151AUTOTRACE_CFLAGS=""
26152AUTOTRACE_LIBS=""
26153AUTOTRACE_PKG=""
26154if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026156$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000026157
26158pkg_failed=no
26159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
26160$as_echo_n "checking for AUTOTRACE... " >&6; }
26161
26162if test -n "$AUTOTRACE_CFLAGS"; then
26163 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26164 elif test -n "$PKG_CONFIG"; then
26165 if test -n "$PKG_CONFIG" && \
26166 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26167 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26168 ac_status=$?
26169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26170 test $ac_status = 0; }; then
26171 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26172else
26173 pkg_failed=yes
26174fi
26175 else
26176 pkg_failed=untried
26177fi
26178if test -n "$AUTOTRACE_LIBS"; then
26179 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26180 elif test -n "$PKG_CONFIG"; then
26181 if test -n "$PKG_CONFIG" && \
26182 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26183 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26184 ac_status=$?
26185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26186 test $ac_status = 0; }; then
26187 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26188else
26189 pkg_failed=yes
26190fi
26191 else
26192 pkg_failed=untried
26193fi
26194
26195
26196
26197if test $pkg_failed = yes; then
26198
26199if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26200 _pkg_short_errors_supported=yes
26201else
26202 _pkg_short_errors_supported=no
26203fi
26204 if test $_pkg_short_errors_supported = yes; then
26205 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26206 else
26207 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26208 fi
26209 # Put the nasty error message in config.log where it belongs
26210 echo "$AUTOTRACE_PKG_ERRORS" >&5
26211
26212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26213$as_echo "no" >&6; }
26214 have_autotrace=no
26215elif test $pkg_failed = untried; then
26216 have_autotrace=no
26217else
26218 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26219 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
26220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26221$as_echo "yes" >&6; }
26222 have_autotrace=yes
26223fi
cristy8b350f62009-11-15 23:12:43 +000026224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026225$as_echo "" >&6; }
26226fi
26227
26228if test "$have_autotrace" = 'yes'; then
26229 failed=0
26230
cristy8b350f62009-11-15 23:12:43 +000026231$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026232
26233 if test "$with_modules" = 'no'; then
26234 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26235 fi
26236fi
26237
cristy73bd4a52010-10-05 11:24:23 +000026238 if test "$have_autotrace" = 'yes'; then
26239 AUTOTRACE_DELEGATE_TRUE=
26240 AUTOTRACE_DELEGATE_FALSE='#'
26241else
26242 AUTOTRACE_DELEGATE_TRUE='#'
26243 AUTOTRACE_DELEGATE_FALSE=
26244fi
26245
cristy3ed852e2009-09-05 21:47:34 +000026246
26247
26248
26249
26250#
26251# Check for Display Postscript delegate library.
26252#
26253
26254# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000026255if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026256 withval=$with_dps; with_dps=$withval
26257else
26258 with_dps='yes'
26259fi
26260
26261
26262if test "$with_dps" != 'yes'; then
26263 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26264fi
26265
26266have_dps='no'
26267DPS_LIBS=''
26268if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026270$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026272$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026274$as_echo "" >&6; }
26275 failed=0
26276 passed=0
26277 PERSIST_CPPFLAGS="$CPPFLAGS"
26278 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000026279 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26280if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026281 passed=`expr $passed + 1`
26282else
26283 failed=`expr $failed + 1`
26284fi
26285
26286
26287 # DPS issues:
26288 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26289 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26290 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26291 # ImageMagick itself doesn't use -lXt.
26292 have_libdps='no'
26293 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000026294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026295$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026296if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026297 $as_echo_n "(cached) " >&6
26298else
26299 ac_check_lib_save_LIBS=$LIBS
26300LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026302/* end confdefs.h. */
26303
26304/* Override any GCC internal prototype to avoid an error.
26305 Use char because int might match the return type of a GCC
26306 builtin and then its argument prototype would still apply. */
26307#ifdef __cplusplus
26308extern "C"
26309#endif
26310char DPSInitialize ();
26311int
26312main ()
26313{
26314return DPSInitialize ();
26315 ;
26316 return 0;
26317}
26318_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026319if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026320 ac_cv_lib_dps_DPSInitialize=yes
26321else
cristy8b350f62009-11-15 23:12:43 +000026322 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026323fi
cristy8b350f62009-11-15 23:12:43 +000026324rm -f core conftest.err conftest.$ac_objext \
26325 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026326LIBS=$ac_check_lib_save_LIBS
26327fi
cristy8b350f62009-11-15 23:12:43 +000026328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026329$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026330if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026331 have_libdps='yes'
26332else
26333 have_libdps='no'
26334fi
26335
26336 if test "$have_libdps" != 'yes'; then
26337 # Unset cache variable so we can try again.
26338 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000026339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026340$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026341if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026342 $as_echo_n "(cached) " >&6
26343else
26344 ac_check_lib_save_LIBS=$LIBS
26345LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026347/* end confdefs.h. */
26348
26349/* Override any GCC internal prototype to avoid an error.
26350 Use char because int might match the return type of a GCC
26351 builtin and then its argument prototype would still apply. */
26352#ifdef __cplusplus
26353extern "C"
26354#endif
26355char DPSInitialize ();
26356int
26357main ()
26358{
26359return DPSInitialize ();
26360 ;
26361 return 0;
26362}
26363_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026364if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026365 ac_cv_lib_dps_DPSInitialize=yes
26366else
cristy8b350f62009-11-15 23:12:43 +000026367 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026368fi
cristy8b350f62009-11-15 23:12:43 +000026369rm -f core conftest.err conftest.$ac_objext \
26370 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026371LIBS=$ac_check_lib_save_LIBS
26372fi
cristy8b350f62009-11-15 23:12:43 +000026373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026374$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026375if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026376 have_libdps='yes'
26377else
26378 have_libdps='no'
26379fi
26380
26381 if test "$have_libdps" = 'yes'; then
26382 LIBDPS_XT='-lXt'
26383 fi
26384 fi
26385 if test "$have_libdps" = 'yes'; then
26386 passed=`expr $passed + 1`
26387 else
26388 failed=`expr $failed + 1`
26389 fi
cristy8b350f62009-11-15 23:12:43 +000026390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026391$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026392if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026393 $as_echo_n "(cached) " >&6
26394else
26395 ac_check_lib_save_LIBS=$LIBS
26396LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026398/* end confdefs.h. */
26399
26400/* Override any GCC internal prototype to avoid an error.
26401 Use char because int might match the return type of a GCC
26402 builtin and then its argument prototype would still apply. */
26403#ifdef __cplusplus
26404extern "C"
26405#endif
26406char XDPSPixelsPerPoint ();
26407int
26408main ()
26409{
26410return XDPSPixelsPerPoint ();
26411 ;
26412 return 0;
26413}
26414_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026415if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026416 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26417else
cristy8b350f62009-11-15 23:12:43 +000026418 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000026419fi
cristy8b350f62009-11-15 23:12:43 +000026420rm -f core conftest.err conftest.$ac_objext \
26421 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026422LIBS=$ac_check_lib_save_LIBS
26423fi
cristy8b350f62009-11-15 23:12:43 +000026424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000026425$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026426if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026427 passed=`expr $passed + 1`
26428else
26429 failed=`expr $failed + 1`
26430fi
26431
cristy8b350f62009-11-15 23:12:43 +000026432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026433$as_echo_n "checking if DPS package is complete... " >&6; }
26434 if test $passed -gt 0; then
26435 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026437$as_echo "no -- some components failed test" >&6; }
26438 have_dps='no (failed tests)'
26439 CPPFLAGS="$PERSIST_CPPFLAGS"
26440 else
26441 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26442 LIBS="$DPS_LIBS $LIBS"
26443
cristy8b350f62009-11-15 23:12:43 +000026444$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026445
cristy8b350f62009-11-15 23:12:43 +000026446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026447$as_echo "yes" >&6; }
26448 have_dps='yes'
26449 fi
26450 else
cristy8b350f62009-11-15 23:12:43 +000026451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026452$as_echo "no" >&6; }
26453 CPPFLAGS=$PERSIST_CPPFLAGS
26454 fi
26455fi
cristy73bd4a52010-10-05 11:24:23 +000026456 if test "$have_dps" = 'yes'; then
26457 DPS_DELEGATE_TRUE=
26458 DPS_DELEGATE_FALSE='#'
26459else
26460 DPS_DELEGATE_TRUE='#'
26461 DPS_DELEGATE_FALSE=
26462fi
26463
cristy3ed852e2009-09-05 21:47:34 +000026464
26465
26466
26467#
26468# Check for DJVU delegate library.
26469#
26470
26471# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000026472if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026473 withval=$with_djvu; with_djvu=$withval
26474else
26475 with_djvu='yes'
26476fi
26477
26478
26479if test "$with_djvu" != 'yes'; then
26480 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26481fi
26482
26483have_djvu='no'
26484DJVU_LIBS=''
26485if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026487$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000026489$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026491$as_echo "" >&6; }
26492 failed=0
26493 passed=0
cristy8b350f62009-11-15 23:12:43 +000026494 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26495if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026496 passed=`expr $passed + 1`
26497else
26498 failed=`expr $failed + 1`
26499fi
26500
26501
cristy8b350f62009-11-15 23:12:43 +000026502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000026503$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026504if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026505 $as_echo_n "(cached) " >&6
26506else
26507 ac_check_lib_save_LIBS=$LIBS
26508LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026510/* end confdefs.h. */
26511
26512/* Override any GCC internal prototype to avoid an error.
26513 Use char because int might match the return type of a GCC
26514 builtin and then its argument prototype would still apply. */
26515#ifdef __cplusplus
26516extern "C"
26517#endif
26518char ddjvu_context_create ();
26519int
26520main ()
26521{
26522return ddjvu_context_create ();
26523 ;
26524 return 0;
26525}
26526_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026527if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026528 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26529else
cristy8b350f62009-11-15 23:12:43 +000026530 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000026531fi
cristy8b350f62009-11-15 23:12:43 +000026532rm -f core conftest.err conftest.$ac_objext \
26533 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026534LIBS=$ac_check_lib_save_LIBS
26535fi
cristy8b350f62009-11-15 23:12:43 +000026536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000026537$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026538if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026539 passed=`expr $passed + 1`
26540else
26541 failed=`expr $failed + 1`
26542fi
26543
cristy8b350f62009-11-15 23:12:43 +000026544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026545$as_echo_n "checking if DJVU package is complete... " >&6; }
26546 if test $passed -gt 0; then
26547 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026549$as_echo "no -- some components failed test" >&6; }
26550 have_djvu='no (failed tests)'
26551 else
26552 DJVU_LIBS='-ldjvulibre'
26553 LIBS="$DJVU_LIBS $LIBS"
26554
cristy8b350f62009-11-15 23:12:43 +000026555$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026556
cristy8b350f62009-11-15 23:12:43 +000026557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026558$as_echo "yes" >&6; }
26559 have_djvu='yes'
26560 fi
26561 else
cristy8b350f62009-11-15 23:12:43 +000026562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026563$as_echo "no" >&6; }
26564 fi
26565fi
cristy73bd4a52010-10-05 11:24:23 +000026566 if test "$have_djvu" = 'yes'; then
26567 DJVU_DELEGATE_TRUE=
26568 DJVU_DELEGATE_FALSE='#'
26569else
26570 DJVU_DELEGATE_TRUE='#'
26571 DJVU_DELEGATE_FALSE=
26572fi
26573
cristy3ed852e2009-09-05 21:47:34 +000026574
26575
26576
26577#
cristy430a7312010-01-21 20:44:04 +000026578# Set DejaVu font directory.
26579#
26580
26581# Check whether --with-dejavu-font-dir was given.
26582if test "${with_dejavu_font_dir+set}" = set; then :
26583 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26584else
26585 with_dejavu_font_dir='default'
26586fi
26587
26588
26589if test "$with_dejavu_font_dir" != 'default'; then
26590 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26591fi
26592
26593
26594#
cristy3ed852e2009-09-05 21:47:34 +000026595# Check for FFTW delegate library.
26596#
26597
26598# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000026599if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026600 withval=$with_fftw; with_fftw=$withval
26601else
26602 with_fftw='yes'
26603fi
26604
26605
26606if test "$with_fftw" != 'yes'; then
26607 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26608fi
26609
26610have_fftw='no'
26611FFTW_LIBS=''
26612if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026614$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026616$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026618$as_echo "" >&6; }
26619 failed=0
26620 passed=0
cristy8b350f62009-11-15 23:12:43 +000026621 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26622if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026623 passed=`expr $passed + 1`
26624else
26625 failed=`expr $failed + 1`
26626fi
26627
26628
cristy8b350f62009-11-15 23:12:43 +000026629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026630$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026631if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026632 $as_echo_n "(cached) " >&6
26633else
26634 ac_check_lib_save_LIBS=$LIBS
26635LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026637/* end confdefs.h. */
26638
26639/* Override any GCC internal prototype to avoid an error.
26640 Use char because int might match the return type of a GCC
26641 builtin and then its argument prototype would still apply. */
26642#ifdef __cplusplus
26643extern "C"
26644#endif
26645char fftw_execute ();
26646int
26647main ()
26648{
26649return fftw_execute ();
26650 ;
26651 return 0;
26652}
26653_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026654if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026655 ac_cv_lib_fftw3_fftw_execute=yes
26656else
cristy8b350f62009-11-15 23:12:43 +000026657 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026658fi
cristy8b350f62009-11-15 23:12:43 +000026659rm -f core conftest.err conftest.$ac_objext \
26660 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026661LIBS=$ac_check_lib_save_LIBS
26662fi
cristy8b350f62009-11-15 23:12:43 +000026663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026664$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026665if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026666 passed=`expr $passed + 1`
26667else
26668 failed=`expr $failed + 1`
26669fi
26670
cristy8b350f62009-11-15 23:12:43 +000026671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026672$as_echo_n "checking if FFTW package is complete... " >&6; }
26673 if test $passed -gt 0; then
26674 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026676$as_echo "no -- some components failed test" >&6; }
26677 have_fftw='no (failed tests)'
26678 else
26679 FFTW_LIBS='-lfftw3'
26680 LIBS="$FFTW_LIBS $LIBS"
26681
cristy8b350f62009-11-15 23:12:43 +000026682$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026683
cristy8b350f62009-11-15 23:12:43 +000026684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026685$as_echo "yes" >&6; }
26686 have_fftw='yes'
26687 fi
26688 else
cristy8b350f62009-11-15 23:12:43 +000026689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026690$as_echo "no" >&6; }
26691 fi
26692fi
cristy73bd4a52010-10-05 11:24:23 +000026693 if test "$have_fftw" = 'yes'; then
26694 FFTW_DELEGATE_TRUE=
26695 FFTW_DELEGATE_FALSE='#'
26696else
26697 FFTW_DELEGATE_TRUE='#'
26698 FFTW_DELEGATE_FALSE=
26699fi
26700
cristy3ed852e2009-09-05 21:47:34 +000026701
26702
26703
26704#
26705# Check for FlashPIX delegate library.
26706#
26707
26708# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026709if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026710 withval=$with_fpx; with_fpx=$withval
26711else
26712 with_fpx='yes'
26713fi
26714
26715
26716if test "$with_fpx" != 'yes'; then
26717 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26718fi
26719
26720have_fpx='no'
26721FPX_LIBS=''
26722if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026724$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026726$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026728$as_echo "" >&6; }
26729 failed=0
26730 passed=0
26731 ac_ext=cpp
26732ac_cpp='$CXXCPP $CPPFLAGS'
26733ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26734ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26735ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26736
26737
cristy8b350f62009-11-15 23:12:43 +000026738ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26739if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026740 passed=`expr $passed + 1`
26741else
26742 failed=`expr $failed + 1`
26743fi
26744
26745
cristy8b350f62009-11-15 23:12:43 +000026746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026747$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026748if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026749 $as_echo_n "(cached) " >&6
26750else
26751 ac_check_lib_save_LIBS=$LIBS
26752LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026754/* end confdefs.h. */
26755
26756/* Override any GCC internal prototype to avoid an error.
26757 Use char because int might match the return type of a GCC
26758 builtin and then its argument prototype would still apply. */
26759#ifdef __cplusplus
26760extern "C"
26761#endif
26762char FPX_OpenImageByFilename ();
26763int
26764main ()
26765{
26766return FPX_OpenImageByFilename ();
26767 ;
26768 return 0;
26769}
26770_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026771if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026772 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26773else
cristy8b350f62009-11-15 23:12:43 +000026774 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026775fi
cristy8b350f62009-11-15 23:12:43 +000026776rm -f core conftest.err conftest.$ac_objext \
26777 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026778LIBS=$ac_check_lib_save_LIBS
26779fi
cristy8b350f62009-11-15 23:12:43 +000026780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000026781$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026782if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026783 passed=`expr $passed + 1`
26784else
26785 failed=`expr $failed + 1`
26786fi
26787
26788 ac_ext=c
26789ac_cpp='$CPP $CPPFLAGS'
26790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26792ac_compiler_gnu=$ac_cv_c_compiler_gnu
26793
cristy8b350f62009-11-15 23:12:43 +000026794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026795$as_echo_n "checking if FlashPIX package is complete... " >&6; }
26796 if test $passed -gt 0; then
26797 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026799$as_echo "no -- some components failed test" >&6; }
26800 have_fpx='no (failed tests)'
26801 else
26802 FPX_LIBS='-lfpx'
26803
cristy8b350f62009-11-15 23:12:43 +000026804$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026805
cristy8b350f62009-11-15 23:12:43 +000026806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026807$as_echo "yes" >&6; }
26808 have_fpx='yes'
26809 PERLMAINCC="$CXX"
26810 fi
26811 else
cristy8b350f62009-11-15 23:12:43 +000026812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026813$as_echo "no" >&6; }
26814 fi
26815fi
cristy73bd4a52010-10-05 11:24:23 +000026816 if test "$have_fpx" = 'yes'; then
26817 FPX_DELEGATE_TRUE=
26818 FPX_DELEGATE_FALSE='#'
26819else
26820 FPX_DELEGATE_TRUE='#'
26821 FPX_DELEGATE_FALSE=
26822fi
26823
cristy3ed852e2009-09-05 21:47:34 +000026824
26825
26826
26827#
26828# Check for fontconfig delegate library.
26829#
26830
26831# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000026832if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026833 withval=$with_fontconfig; with_fontconfig=$withval
26834else
26835 with_fontconfig=$have_x
26836fi
26837
26838
26839if test "$with_fontconfig" != 'yes'; then
26840 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
26841fi
26842
26843have_fontconfig='no'
26844FONTCONFIG_CFLAGS=""
26845FONTCONFIG_LIBS=""
26846FONTCONFIG_PKG=""
26847if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026849$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000026850
26851pkg_failed=no
26852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
26853$as_echo_n "checking for FONTCONFIG... " >&6; }
26854
26855if test -n "$FONTCONFIG_CFLAGS"; then
26856 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
26857 elif test -n "$PKG_CONFIG"; then
26858 if test -n "$PKG_CONFIG" && \
26859 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
26860 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26861 ac_status=$?
26862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26863 test $ac_status = 0; }; then
26864 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
26865else
26866 pkg_failed=yes
26867fi
26868 else
26869 pkg_failed=untried
26870fi
26871if test -n "$FONTCONFIG_LIBS"; then
26872 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
26873 elif test -n "$PKG_CONFIG"; then
26874 if test -n "$PKG_CONFIG" && \
26875 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
26876 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26877 ac_status=$?
26878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26879 test $ac_status = 0; }; then
26880 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
26881else
26882 pkg_failed=yes
26883fi
26884 else
26885 pkg_failed=untried
26886fi
26887
26888
26889
26890if test $pkg_failed = yes; then
26891
26892if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26893 _pkg_short_errors_supported=yes
26894else
26895 _pkg_short_errors_supported=no
26896fi
26897 if test $_pkg_short_errors_supported = yes; then
26898 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
26899 else
26900 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
26901 fi
26902 # Put the nasty error message in config.log where it belongs
26903 echo "$FONTCONFIG_PKG_ERRORS" >&5
26904
26905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26906$as_echo "no" >&6; }
26907 have_fontconfig=no
26908elif test $pkg_failed = untried; then
26909 have_fontconfig=no
26910else
26911 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
26912 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
26913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26914$as_echo "yes" >&6; }
26915 have_fontconfig=yes
26916fi
cristy8b350f62009-11-15 23:12:43 +000026917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026918$as_echo "" >&6; }
26919fi
26920
26921if test "$have_fontconfig" = 'yes'; then
26922
cristy8b350f62009-11-15 23:12:43 +000026923$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026924
cristyd09bcf92010-03-25 03:04:45 +000026925 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000026926 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000026927 fi
cristy3ed852e2009-09-05 21:47:34 +000026928fi
26929
cristy73bd4a52010-10-05 11:24:23 +000026930 if test "$have_fontconfig" = 'yes'; then
26931 FONTCONFIG_DELEGATE_TRUE=
26932 FONTCONFIG_DELEGATE_FALSE='#'
26933else
26934 FONTCONFIG_DELEGATE_TRUE='#'
26935 FONTCONFIG_DELEGATE_FALSE=
26936fi
26937
cristy3ed852e2009-09-05 21:47:34 +000026938
26939
26940
26941
26942#
26943# Check for freetype delegate library.
26944#
26945
26946# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000026947if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026948 withval=$with_freetype; with_freetype=$withval
26949else
26950 with_freetype='yes'
26951fi
26952
26953
26954
26955if test "$with_freetype" != 'yes'; then
26956 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
26957fi
26958
26959have_freetype='no'
26960FREETYPE_LIBS=''
26961if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026963$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000026965$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026967$as_echo "" >&6; }
26968 failed=0
26969 passed=0
cristy66291112009-10-03 22:44:36 +000026970 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000026971 PERSIST_CPPFLAGS="$CPPFLAGS"
26972 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
26973 :
26974 else
26975 freetype_config=''
26976 for ac_prog in freetype-config
26977do
26978 # Extract the first word of "$ac_prog", so it can be a program name with args.
26979set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026981$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026982if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026983 $as_echo_n "(cached) " >&6
26984else
26985 if test -n "$freetype_config"; then
26986 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
26987else
26988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26989for as_dir in $PATH
26990do
26991 IFS=$as_save_IFS
26992 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026993 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26995 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026997 break 2
26998 fi
26999done
cristy8b350f62009-11-15 23:12:43 +000027000 done
cristy3ed852e2009-09-05 21:47:34 +000027001IFS=$as_save_IFS
27002
27003fi
27004fi
27005freetype_config=$ac_cv_prog_freetype_config
27006if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027008$as_echo "$freetype_config" >&6; }
27009else
cristy8b350f62009-11-15 23:12:43 +000027010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027011$as_echo "no" >&6; }
27012fi
27013
27014
27015 test -n "$freetype_config" && break
27016done
27017 if test -n "$freetype_config"; then
27018 freetype_cflags=`$freetype_config --cflags`
27019 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027020 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027021 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27022 fi
27023 fi
27024
27025 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027027$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027028if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027029 $as_echo_n "(cached) " >&6
27030else
27031 ac_check_lib_save_LIBS=$LIBS
27032LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027034/* end confdefs.h. */
27035
27036/* Override any GCC internal prototype to avoid an error.
27037 Use char because int might match the return type of a GCC
27038 builtin and then its argument prototype would still apply. */
27039#ifdef __cplusplus
27040extern "C"
27041#endif
27042char FT_Init_FreeType ();
27043int
27044main ()
27045{
27046return FT_Init_FreeType ();
27047 ;
27048 return 0;
27049}
27050_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027051if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027052 ac_cv_lib_freetype_FT_Init_FreeType=yes
27053else
cristy8b350f62009-11-15 23:12:43 +000027054 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027055fi
cristy8b350f62009-11-15 23:12:43 +000027056rm -f core conftest.err conftest.$ac_objext \
27057 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027058LIBS=$ac_check_lib_save_LIBS
27059fi
cristy8b350f62009-11-15 23:12:43 +000027060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027061$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027062if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027063 FREETYPE_LIBS='-lfreetype'
27064fi
27065
27066 if test "$FREETYPE_LIBS" != ''; then
27067 passed=`expr $passed + 1`
27068 else
27069 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027070 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027071 fi
27072 fi
27073
cristy8b350f62009-11-15 23:12:43 +000027074 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27075if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027076 FT2BUILD_H='#include <ft2build.h>'
27077else
27078 ft2build=''
27079fi
27080
27081
cristy8b350f62009-11-15 23:12:43 +000027082 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27083"
27084if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027085 have_freetype_h='yes'
27086else
27087 have_freetype_h='no'
27088fi
27089
27090
27091 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27092 passed=`expr $passed + 1`
27093 else
27094 failed=`expr $failed + 1`
27095 CPPFLAGS="$PERSIST_CPPFLAGS"
27096 fi
27097
cristy8b350f62009-11-15 23:12:43 +000027098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027099$as_echo_n "checking if FreeType package is complete... " >&6; }
27100 if test $passed -gt 0; then
27101 if test $failed -gt 0; then
27102 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027104$as_echo "no -- some components failed test" >&6; }
27105 have_freetype='no (failed tests)'
27106 else
27107 LIBS="$FREETYPE_LIBS $LIBS"
27108
cristy8b350f62009-11-15 23:12:43 +000027109$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027110
27111 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27112
cristy8b350f62009-11-15 23:12:43 +000027113$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027114
27115 fi
cristy8b350f62009-11-15 23:12:43 +000027116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027117$as_echo "yes" >&6; }
27118 have_freetype='yes'
27119 fi
27120 else
cristy8b350f62009-11-15 23:12:43 +000027121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027122$as_echo "no" >&6; }
27123 fi
27124fi
cristy73bd4a52010-10-05 11:24:23 +000027125 if test "$have_freetype" = 'yes'; then
27126 FREETYPE_DELEGATE_TRUE=
27127 FREETYPE_DELEGATE_FALSE='#'
27128else
27129 FREETYPE_DELEGATE_TRUE='#'
27130 FREETYPE_DELEGATE_FALSE=
27131fi
27132
cristy3ed852e2009-09-05 21:47:34 +000027133
27134
27135
27136
27137#
27138# Check for Ghostscript library or framework.
27139#
27140# Test for iapi.h & test for gsapi_new_instance in -lgs
27141# or -framework Ghostscript
27142
27143
27144# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027145if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027146 withval=$with_gslib; with_gslib=$withval
27147else
27148 with_gslib='no'
27149fi
27150
27151
cristyb7931f12009-09-25 10:22:21 +000027152gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027153if test "$with_gslib" != 'yes'; then
27154 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27155fi
27156
27157have_gslib='no'
27158GS_LIBS=''
27159if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027161$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027163$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027165$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027166 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027167 failed=0
27168 passed=0
cristy8b350f62009-11-15 23:12:43 +000027169 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27170if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027171 passed=`expr $passed + 1`
27172else
27173 failed=`expr $failed + 1`
27174fi
27175
27176
cristy8b350f62009-11-15 23:12:43 +000027177 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27178if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027179 passed=`expr $passed + 1`
27180else
27181 failed=`expr $failed + 1`
27182fi
27183
27184
cristy73bd4a52010-10-05 11:24:23 +000027185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
27186$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
27187if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
27188 $as_echo_n "(cached) " >&6
27189else
27190 ac_check_framework_save_LIBS=$LIBS
27191LIBS="-framework Ghostscript $LIBS"
27192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27193/* end confdefs.h. */
27194
27195/* Override any GCC internal prototype to avoid an error.
27196 Use char because int might match the return type of a GCC
27197 builtin and then its argument prototype would still apply. */
27198#ifdef __cplusplus
27199extern "C"
27200#endif
27201char gsapi_new_instance ();
27202int
27203main ()
27204{
27205return gsapi_new_instance ();
27206 ;
27207 return 0;
27208}
27209_ACEOF
27210if ac_fn_c_try_link "$LINENO"; then :
27211 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27212else
27213 ac_cv_framework_Ghostscript_gsapi_new_instance=no
27214fi
27215rm -f core conftest.err conftest.$ac_objext \
27216 conftest$ac_exeext conftest.$ac_ext
27217LIBS=$ac_check_framework_save_LIBS
27218fi
27219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
27220$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
27221if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
27222 framework=`expr $framework + 1`
27223else
27224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000027225$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027226if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027227 $as_echo_n "(cached) " >&6
27228else
27229 ac_check_lib_save_LIBS=$LIBS
27230LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027232/* end confdefs.h. */
27233
27234/* Override any GCC internal prototype to avoid an error.
27235 Use char because int might match the return type of a GCC
27236 builtin and then its argument prototype would still apply. */
27237#ifdef __cplusplus
27238extern "C"
27239#endif
27240char gsapi_new_instance ();
27241int
27242main ()
27243{
27244return gsapi_new_instance ();
27245 ;
27246 return 0;
27247}
27248_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027249if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027250 ac_cv_lib_gs_gsapi_new_instance=yes
27251else
cristy8b350f62009-11-15 23:12:43 +000027252 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027253fi
cristy8b350f62009-11-15 23:12:43 +000027254rm -f core conftest.err conftest.$ac_objext \
27255 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027256LIBS=$ac_check_lib_save_LIBS
27257fi
cristy8b350f62009-11-15 23:12:43 +000027258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027259$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027260if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027261 passed=`expr $passed + 1`
27262else
27263 failed=`expr $failed + 1`
27264fi
cristy73bd4a52010-10-05 11:24:23 +000027265
27266fi
cristy8b350f62009-11-15 23:12:43 +000027267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027268$as_echo_n "checking if Ghostscript package is complete... " >&6; }
27269 if test $passed -gt 0; then
27270 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027272$as_echo "no -- some components failed test" >&6; }
27273 have_gslib='no (failed tests)'
27274 else
27275 if test $framework -gt 0; then
27276 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000027277 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000027278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000027279$as_echo "yes, using framework." >&6; }
27280 else
cristy8b350f62009-11-15 23:12:43 +000027281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000027282$as_echo "yes, using library." >&6; }
27283 GS_LIBS='-lgs'
27284 fi
27285 LIBS="$GS_LIBS $LIBS"
27286
cristy8b350f62009-11-15 23:12:43 +000027287$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027288
27289 have_gslib='yes'
27290 fi
27291 else
cristy8b350f62009-11-15 23:12:43 +000027292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027293$as_echo "no" >&6; }
27294 fi
27295fi
cristy73bd4a52010-10-05 11:24:23 +000027296 if test "$have_gslib" = 'yes'; then
27297 GS_DELEGATE_TRUE=
27298 GS_DELEGATE_FALSE='#'
27299else
27300 GS_DELEGATE_TRUE='#'
27301 GS_DELEGATE_FALSE=
27302fi
27303
cristy3ed852e2009-09-05 21:47:34 +000027304
27305
27306# Set default font search path
27307
27308# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000027309if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027310 withval=$with_fontpath; with_fontpath=$withval
27311else
27312 with_fontpath=''
27313fi
27314
27315
27316if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27317 with_fontpath=''
27318else
27319
27320cat >>confdefs.h <<_ACEOF
27321#define MAGICK_FONT_PATH "$with_fontpath"
27322_ACEOF
27323
27324fi
27325if test "$with_fontpath=" != ''; then
27326 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27327fi
27328
27329# Set Ghostscript font directory
27330
27331# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027332if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027333 withval=$with_gs_font_dir; with_gs_font_dir=$withval
27334else
27335 with_gs_font_dir='default'
27336fi
27337
27338
27339if test "$with_gs_font_dir" != 'default'; then
27340 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27341fi
27342
27343
27344#
27345# Check for GVC delegate library.
27346#
27347
27348# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000027349if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027350 withval=$with_gvc; with_gvc=$withval
27351else
27352 with_gvc='yes'
27353fi
27354
27355
27356if test "$with_gvc" != 'yes'; then
27357 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27358fi
27359
27360GVC_PKG=""
27361if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027363$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027364
27365pkg_failed=no
27366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
27367$as_echo_n "checking for GVC... " >&6; }
27368
27369if test -n "$GVC_CFLAGS"; then
27370 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27371 elif test -n "$PKG_CONFIG"; then
27372 if test -n "$PKG_CONFIG" && \
27373 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27374 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27375 ac_status=$?
27376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27377 test $ac_status = 0; }; then
27378 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27379else
27380 pkg_failed=yes
27381fi
27382 else
27383 pkg_failed=untried
27384fi
27385if test -n "$GVC_LIBS"; then
27386 pkg_cv_GVC_LIBS="$GVC_LIBS"
27387 elif test -n "$PKG_CONFIG"; then
27388 if test -n "$PKG_CONFIG" && \
27389 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27390 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27391 ac_status=$?
27392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27393 test $ac_status = 0; }; then
27394 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27395else
27396 pkg_failed=yes
27397fi
27398 else
27399 pkg_failed=untried
27400fi
27401
27402
27403
27404if test $pkg_failed = yes; then
27405
27406if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27407 _pkg_short_errors_supported=yes
27408else
27409 _pkg_short_errors_supported=no
27410fi
27411 if test $_pkg_short_errors_supported = yes; then
27412 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27413 else
27414 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27415 fi
27416 # Put the nasty error message in config.log where it belongs
27417 echo "$GVC_PKG_ERRORS" >&5
27418
27419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27420$as_echo "no" >&6; }
27421 have_gvc=no
27422elif test $pkg_failed = untried; then
27423 have_gvc=no
27424else
27425 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27426 GVC_LIBS=$pkg_cv_GVC_LIBS
27427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27428$as_echo "yes" >&6; }
27429 have_gvc=yes
27430fi
cristy8b350f62009-11-15 23:12:43 +000027431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027432$as_echo "" >&6; }
27433fi
27434
27435if test "$have_gvc" = 'yes'; then
27436
cristy8b350f62009-11-15 23:12:43 +000027437$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027438
27439 if test "$with_modules" = 'no'; then
27440 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27441 fi
27442fi
27443
cristy73bd4a52010-10-05 11:24:23 +000027444 if test "$have_gvc" = 'yes'; then
27445 GVC_DELEGATE_TRUE=
27446 GVC_DELEGATE_FALSE='#'
27447else
27448 GVC_DELEGATE_TRUE='#'
27449 GVC_DELEGATE_FALSE=
27450fi
27451
cristy3ed852e2009-09-05 21:47:34 +000027452
27453
27454
27455
27456#
27457# Check for JBIG delegate library.
27458#
27459
27460
27461# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000027462if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027463 withval=$with_jbig; with_jbig=$withval
27464else
27465 with_jbig='yes'
27466fi
27467
27468
27469have_jbig='no'
27470JBIG_LIBS=''
27471if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027473$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027475$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027477$as_echo "" >&6; }
27478 failed=0
27479 passed=0
cristy8b350f62009-11-15 23:12:43 +000027480 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27481if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027482 passed=`expr $passed + 1`
27483else
27484 failed=`expr $failed + 1`
27485fi
27486
27487
cristy8b350f62009-11-15 23:12:43 +000027488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000027489$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027490if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027491 $as_echo_n "(cached) " >&6
27492else
27493 ac_check_lib_save_LIBS=$LIBS
27494LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027496/* end confdefs.h. */
27497
27498/* Override any GCC internal prototype to avoid an error.
27499 Use char because int might match the return type of a GCC
27500 builtin and then its argument prototype would still apply. */
27501#ifdef __cplusplus
27502extern "C"
27503#endif
27504char jbg_dec_init ();
27505int
27506main ()
27507{
27508return jbg_dec_init ();
27509 ;
27510 return 0;
27511}
27512_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027513if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027514 ac_cv_lib_jbig_jbg_dec_init=yes
27515else
cristy8b350f62009-11-15 23:12:43 +000027516 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000027517fi
cristy8b350f62009-11-15 23:12:43 +000027518rm -f core conftest.err conftest.$ac_objext \
27519 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027520LIBS=$ac_check_lib_save_LIBS
27521fi
cristy8b350f62009-11-15 23:12:43 +000027522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000027523$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027524if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027525 passed=`expr $passed + 1`
27526else
27527 failed=`expr $failed + 1`
27528fi
27529
cristy8b350f62009-11-15 23:12:43 +000027530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027531$as_echo_n "checking if JBIG package is complete... " >&6; }
27532 if test $passed -gt 0; then
27533 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027535$as_echo "no -- some components failed test" >&6; }
27536 have_jbig='no (failed tests)'
27537 else
27538 JBIG_LIBS='-ljbig'
27539 LIBS="$JBIG_LIBS $LIBS"
27540
cristy8b350f62009-11-15 23:12:43 +000027541$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027542
cristy8b350f62009-11-15 23:12:43 +000027543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027544$as_echo "yes" >&6; }
27545 have_jbig='yes'
27546 fi
27547 else
cristy8b350f62009-11-15 23:12:43 +000027548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027549$as_echo "no" >&6; }
27550 fi
27551fi
cristy73bd4a52010-10-05 11:24:23 +000027552 if test "$have_jbig" = 'yes'; then
27553 JBIG_DELEGATE_TRUE=
27554 JBIG_DELEGATE_FALSE='#'
27555else
27556 JBIG_DELEGATE_TRUE='#'
27557 JBIG_DELEGATE_FALSE=
27558fi
27559
cristy3ed852e2009-09-05 21:47:34 +000027560
27561
27562
27563#
27564# Check for JPEG delegate library.
27565#
27566
27567# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000027568if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027569 withval=$with_jpeg; with_jpeg=$withval
27570else
27571 with_jpeg='yes'
27572fi
27573
27574
27575if test "$with_jpeg" != 'yes'; then
27576 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27577fi
27578
27579have_jpeg='no'
27580JPEG_LIBS=''
27581if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027583$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027585$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027587$as_echo "" >&6; }
27588 failed=0
27589 passed=0
cristy8b350f62009-11-15 23:12:43 +000027590 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27591if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027592 passed=`expr $passed + 1`
27593else
27594 failed=`expr $failed + 1`
27595fi
27596
27597
cristy8b350f62009-11-15 23:12:43 +000027598 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27599if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027600 passed=`expr $passed + 1`
27601else
27602 failed=`expr $failed + 1`
27603fi
27604
27605
cristy8b350f62009-11-15 23:12:43 +000027606 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27607if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027608 passed=`expr $passed + 1`
27609else
27610 failed=`expr $failed + 1`
27611fi
27612
27613
cristy8b350f62009-11-15 23:12:43 +000027614 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27615if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027616 passed=`expr $passed + 1`
27617else
27618 failed=`expr $failed + 1`
27619fi
27620
27621
cristy8b350f62009-11-15 23:12:43 +000027622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027623$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027624if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027625 $as_echo_n "(cached) " >&6
27626else
27627 ac_check_lib_save_LIBS=$LIBS
27628LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027630/* end confdefs.h. */
27631
27632/* Override any GCC internal prototype to avoid an error.
27633 Use char because int might match the return type of a GCC
27634 builtin and then its argument prototype would still apply. */
27635#ifdef __cplusplus
27636extern "C"
27637#endif
27638char jpeg_read_header ();
27639int
27640main ()
27641{
27642return jpeg_read_header ();
27643 ;
27644 return 0;
27645}
27646_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027647if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027648 ac_cv_lib_jpeg_jpeg_read_header=yes
27649else
cristy8b350f62009-11-15 23:12:43 +000027650 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027651fi
cristy8b350f62009-11-15 23:12:43 +000027652rm -f core conftest.err conftest.$ac_objext \
27653 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027654LIBS=$ac_check_lib_save_LIBS
27655fi
cristy8b350f62009-11-15 23:12:43 +000027656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027657$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027658if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027659 passed=`expr $passed + 1`
27660else
27661 failed=`expr $failed + 1`
27662fi
27663
27664
27665# Test for compatible JPEG library
27666if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027668$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027669if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027670 $as_echo_n "(cached) " >&6
27671else
cristy8b350f62009-11-15 23:12:43 +000027672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027673/* end confdefs.h. */
27674#include <stdio.h>
27675#include <stdlib.h>
27676#include <jpeglib.h>
27677
27678int
27679main ()
27680{
27681
27682#if JPEG_LIB_VERSION < 62
27683#error IJG JPEG library must be version 6b or newer!
27684#endif
27685return 0;
27686
27687 ;
27688 return 0;
27689}
27690_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027691if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027692 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27693else
cristy8b350f62009-11-15 23:12:43 +000027694 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027695fi
cristy3ed852e2009-09-05 21:47:34 +000027696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27697fi
cristy8b350f62009-11-15 23:12:43 +000027698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027699$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27700fi
cristy8b350f62009-11-15 23:12:43 +000027701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027702$as_echo_n "checking if JPEG package is complete... " >&6; }
27703 if test $passed -gt 0; then
27704 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027706$as_echo "no -- some components failed test" >&6; }
27707 have_jpeg='no (failed tests)'
27708 else
27709 JPEG_LIBS='-ljpeg'
27710 LIBS="$JPEG_LIBS $LIBS"
27711
cristy8b350f62009-11-15 23:12:43 +000027712$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027713
cristy8b350f62009-11-15 23:12:43 +000027714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027715$as_echo "yes" >&6; }
27716 have_jpeg='yes'
27717 fi
27718 else
cristy8b350f62009-11-15 23:12:43 +000027719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027720$as_echo "no" >&6; }
27721 fi
27722fi
cristy73bd4a52010-10-05 11:24:23 +000027723 if test "$have_jpeg" = 'yes'; then
27724 JPEG_DELEGATE_TRUE=
27725 JPEG_DELEGATE_FALSE='#'
27726else
27727 JPEG_DELEGATE_TRUE='#'
27728 JPEG_DELEGATE_FALSE=
27729fi
27730
cristy3ed852e2009-09-05 21:47:34 +000027731
27732
27733
27734#
27735# Check for JPEG Version 2 delegate library.
27736#
27737
27738# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027739if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027740 withval=$with_jp2; with_jp2=$withval
27741else
27742 with_jp2='yes'
27743fi
27744
27745
27746if test "$with_jp2" != 'yes'; then
27747 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27748fi
27749
27750have_jp2='no'
27751JP2_LIBS=''
27752if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027754$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027756$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027758$as_echo "" >&6; }
27759 failed=0
27760 passed=0
cristy8b350f62009-11-15 23:12:43 +000027761 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27762if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027763 passed=`expr $passed + 1`
27764else
27765 failed=`expr $failed + 1`
27766fi
27767
27768
cristy8b350f62009-11-15 23:12:43 +000027769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027770$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027771if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027772 $as_echo_n "(cached) " >&6
27773else
27774 ac_check_lib_save_LIBS=$LIBS
27775LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027777/* end confdefs.h. */
27778
27779/* Override any GCC internal prototype to avoid an error.
27780 Use char because int might match the return type of a GCC
27781 builtin and then its argument prototype would still apply. */
27782#ifdef __cplusplus
27783extern "C"
27784#endif
27785char jas_stream_fopen ();
27786int
27787main ()
27788{
27789return jas_stream_fopen ();
27790 ;
27791 return 0;
27792}
27793_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027794if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027795 ac_cv_lib_jasper_jas_stream_fopen=yes
27796else
cristy8b350f62009-11-15 23:12:43 +000027797 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000027798fi
cristy8b350f62009-11-15 23:12:43 +000027799rm -f core conftest.err conftest.$ac_objext \
27800 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027801LIBS=$ac_check_lib_save_LIBS
27802fi
cristy8b350f62009-11-15 23:12:43 +000027803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027804$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027805if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027806 passed=`expr $passed + 1`
27807else
27808 failed=`expr $failed + 1`
27809fi
27810
cristy8b350f62009-11-15 23:12:43 +000027811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027812$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27813 if test $passed -gt 0; then
27814 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027816$as_echo "no -- some components failed test" >&6; }
27817 have_jp2='no (failed tests)'
27818 else
27819 JP2_LIBS='-ljasper'
27820 LIBS="$JP2_LIBS $LIBS"
27821
cristy8b350f62009-11-15 23:12:43 +000027822$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027823
cristy8b350f62009-11-15 23:12:43 +000027824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027825$as_echo "yes" >&6; }
27826 have_jp2='yes'
27827 fi
27828 else
cristy8b350f62009-11-15 23:12:43 +000027829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027830$as_echo "no" >&6; }
27831 fi
27832fi
cristy73bd4a52010-10-05 11:24:23 +000027833 if test "$have_jp2" = 'yes'; then
27834 JP2_DELEGATE_TRUE=
27835 JP2_DELEGATE_FALSE='#'
27836else
27837 JP2_DELEGATE_TRUE='#'
27838 JP2_DELEGATE_FALSE=
27839fi
27840
cristy3ed852e2009-09-05 21:47:34 +000027841
27842
27843
27844#
27845# Check for LCMS delegate library.
27846#
cristy71203402010-06-18 13:12:03 +000027847# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000027848
27849# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000027850if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027851 withval=$with_lcms; with_lcms=$withval
27852else
27853 with_lcms='yes'
27854fi
27855
cristy71203402010-06-18 13:12:03 +000027856if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000027857 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
27858fi
27859
cristy71203402010-06-18 13:12:03 +000027860# Disable LCMS2.
27861
27862# Check whether --with-lcms2 was given.
27863if test "${with_lcms2+set}" = set; then :
27864 withval=$with_lcms2; with_lcms2=$withval
27865else
27866 with_lcms2='yes'
27867fi
27868
27869if test "$with_lcms2" != 'yes' ; then
27870 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
27871fi
27872
27873have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000027874LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000027875if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027877$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000027878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
27879$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027881$as_echo "" >&6; }
27882 failed=0
27883 passed=0
27884 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000027885
27886 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000027887 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
27888if test "x$ac_cv_header_lcms2_h" = x""yes; then :
27889 have_lcms_header='yes'
27890fi
27891
27892
27893 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000027894
27895$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
27896
cristy71203402010-06-18 13:12:03 +000027897 passed=`expr $passed + 1`
27898 fi
27899
27900 # Check for <lcms2/lcms2.h)
27901 if test "$have_lcms_header" != 'yes'; then
27902 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
27903if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000027904 have_lcms_header='yes'
27905fi
27906
27907
cristy71203402010-06-18 13:12:03 +000027908 if test "$have_lcms_header" = 'yes'; then
27909 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000027910
cristy71203402010-06-18 13:12:03 +000027911$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000027912
cristy71203402010-06-18 13:12:03 +000027913 fi
cristyd09bcf92010-03-25 03:04:45 +000027914 fi
cristy71203402010-06-18 13:12:03 +000027915
27916 # Failed to find lcms header?
27917 if test "$have_lcms_header" != 'yes'; then
27918 failed=`expr $failed + 1`
27919 fi
27920
27921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
27922$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
27923if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
cristyd09bcf92010-03-25 03:04:45 +000027924 $as_echo_n "(cached) " >&6
27925else
27926 ac_check_lib_save_LIBS=$LIBS
27927LIBS="-llcms2 $LIBS"
27928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27929/* end confdefs.h. */
27930
27931/* Override any GCC internal prototype to avoid an error.
27932 Use char because int might match the return type of a GCC
27933 builtin and then its argument prototype would still apply. */
27934#ifdef __cplusplus
27935extern "C"
27936#endif
cristy71203402010-06-18 13:12:03 +000027937char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000027938int
27939main ()
27940{
cristy71203402010-06-18 13:12:03 +000027941return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000027942 ;
27943 return 0;
27944}
27945_ACEOF
27946if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000027947 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000027948else
cristy71203402010-06-18 13:12:03 +000027949 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000027950fi
27951rm -f core conftest.err conftest.$ac_objext \
27952 conftest$ac_exeext conftest.$ac_ext
27953LIBS=$ac_check_lib_save_LIBS
27954fi
cristy71203402010-06-18 13:12:03 +000027955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
27956$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
27957if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000027958 passed=`expr $passed + 1`
27959else
27960 failed=`expr $failed + 1`
27961fi
27962
cristy71203402010-06-18 13:12:03 +000027963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
27964$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000027965 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000027966 if test $failed -gt 0; then
27967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000027968$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000027969 have_lcms2='no (failed tests)'
27970 else
27971 LCMS_LIBS='-llcms2'
27972 LIBS="$LCMS_LIBS $LIBS"
27973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000027974$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000027975 have_lcms2='yes'
27976 fi
cristyd09bcf92010-03-25 03:04:45 +000027977 else
cristy71203402010-06-18 13:12:03 +000027978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000027979$as_echo "no" >&6; }
27980 fi
27981fi
27982
cristy71203402010-06-18 13:12:03 +000027983#
27984# Check for LCMS v1 (1.11 or later)
27985#
27986if test $have_lcms2 = 'yes'; then
27987 with_lcms='no'
27988fi
27989
27990have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000027991if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000027992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27993$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000027994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
27995$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000027996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27997$as_echo "" >&6; }
27998 failed=0
27999 passed=0
28000 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028001
28002 # Check for <lcms.h>
28003 if test "$have_lcms_header" != 'yes'; then
28004 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristy8b350f62009-11-15 23:12:43 +000028005if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028006 have_lcms_header='yes'
28007fi
28008
28009
cristy71203402010-06-18 13:12:03 +000028010 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028011 passed=`expr $passed + 1`
28012
cristy8b350f62009-11-15 23:12:43 +000028013$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028014
cristy71203402010-06-18 13:12:03 +000028015 fi
28016 fi
28017
28018 # Check for <lcms/lcms.h>
28019 if test "$have_lcms_header" != 'yes'; then
28020 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 +000028021if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028022 have_lcms_header='yes'
28023fi
28024
28025
cristy71203402010-06-18 13:12:03 +000028026 if test "$have_lcms_header" = 'yes'; then
28027 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028028
cristy8b350f62009-11-15 23:12:43 +000028029$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028030
cristy71203402010-06-18 13:12:03 +000028031 fi
cristy3ed852e2009-09-05 21:47:34 +000028032 fi
cristy71203402010-06-18 13:12:03 +000028033
28034 # Failed to find lcms header?
28035 if test "$have_lcms_header" != 'yes'; then
28036 failed=`expr $failed + 1`
28037 fi
28038
28039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28040$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28041if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028042 $as_echo_n "(cached) " >&6
28043else
28044 ac_check_lib_save_LIBS=$LIBS
28045LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028047/* end confdefs.h. */
28048
28049/* Override any GCC internal prototype to avoid an error.
28050 Use char because int might match the return type of a GCC
28051 builtin and then its argument prototype would still apply. */
28052#ifdef __cplusplus
28053extern "C"
28054#endif
cristy71203402010-06-18 13:12:03 +000028055char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028056int
28057main ()
28058{
cristy71203402010-06-18 13:12:03 +000028059return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028060 ;
28061 return 0;
28062}
28063_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028064if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028065 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000028066else
cristy71203402010-06-18 13:12:03 +000028067 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000028068fi
cristy8b350f62009-11-15 23:12:43 +000028069rm -f core conftest.err conftest.$ac_objext \
28070 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028071LIBS=$ac_check_lib_save_LIBS
28072fi
cristy71203402010-06-18 13:12:03 +000028073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28074$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28075if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028076 passed=`expr $passed + 1`
28077else
28078 failed=`expr $failed + 1`
28079fi
28080
cristy8b350f62009-11-15 23:12:43 +000028081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028082$as_echo_n "checking if LCMS package is complete... " >&6; }
28083 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028084 if test $failed -gt 0; then
28085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028086$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028087 have_lcms='no (failed tests)'
28088 else
28089 LCMS_LIBS='-llcms'
28090 LIBS="$LCMS_LIBS $LIBS"
28091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028092$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028093 have_lcms='yes'
28094 fi
cristy3ed852e2009-09-05 21:47:34 +000028095 else
cristy71203402010-06-18 13:12:03 +000028096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028097$as_echo "no" >&6; }
28098 fi
28099fi
cristy71203402010-06-18 13:12:03 +000028100
cristy73bd4a52010-10-05 11:24:23 +000028101 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28102 LCMS_DELEGATE_TRUE=
28103 LCMS_DELEGATE_FALSE='#'
28104else
28105 LCMS_DELEGATE_TRUE='#'
28106 LCMS_DELEGATE_FALSE=
28107fi
28108
cristy71203402010-06-18 13:12:03 +000028109if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28110
28111$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28112
28113fi
28114
cristy3ed852e2009-09-05 21:47:34 +000028115
28116
28117
28118#
28119# Check for the LQR (Liquid Rescale) delegate library.
28120#
28121
28122# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028123if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028124 withval=$with_lqr; with_lqr=$withval
28125else
28126 with_lqr='yes'
28127fi
28128
28129
28130if test "$with_lqr" != 'yes'; then
28131 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28132fi
28133
28134have_lqr='no'
28135LQR_CFLAGS=""
28136LQR_LIBS=""
28137LQR_PKG=""
28138if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028140$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028141
28142pkg_failed=no
28143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
28144$as_echo_n "checking for LQR... " >&6; }
28145
28146if test -n "$LQR_CFLAGS"; then
28147 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28148 elif test -n "$PKG_CONFIG"; then
28149 if test -n "$PKG_CONFIG" && \
28150 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28151 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28152 ac_status=$?
28153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28154 test $ac_status = 0; }; then
28155 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28156else
28157 pkg_failed=yes
28158fi
28159 else
28160 pkg_failed=untried
28161fi
28162if test -n "$LQR_LIBS"; then
28163 pkg_cv_LQR_LIBS="$LQR_LIBS"
28164 elif test -n "$PKG_CONFIG"; then
28165 if test -n "$PKG_CONFIG" && \
28166 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28167 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28168 ac_status=$?
28169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28170 test $ac_status = 0; }; then
28171 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28172else
28173 pkg_failed=yes
28174fi
28175 else
28176 pkg_failed=untried
28177fi
28178
28179
28180
28181if test $pkg_failed = yes; then
28182
28183if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28184 _pkg_short_errors_supported=yes
28185else
28186 _pkg_short_errors_supported=no
28187fi
28188 if test $_pkg_short_errors_supported = yes; then
28189 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28190 else
28191 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28192 fi
28193 # Put the nasty error message in config.log where it belongs
28194 echo "$LQR_PKG_ERRORS" >&5
28195
28196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28197$as_echo "no" >&6; }
28198 have_lqr=no
28199elif test $pkg_failed = untried; then
28200 have_lqr=no
28201else
28202 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28203 LQR_LIBS=$pkg_cv_LQR_LIBS
28204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28205$as_echo "yes" >&6; }
28206 have_lqr=yes
28207fi
cristy8b350f62009-11-15 23:12:43 +000028208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028209$as_echo "" >&6; }
28210fi
28211
28212if test "$have_lqr" = 'yes'; then
28213
cristy8b350f62009-11-15 23:12:43 +000028214$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028215
28216 CFLAGS="$LQR_CFLAGS $CFLAGS"
28217fi
28218
cristy73bd4a52010-10-05 11:24:23 +000028219 if test "$have_lqr" = 'yes'; then
28220 LQR_DELEGATE_TRUE=
28221 LQR_DELEGATE_FALSE='#'
28222else
28223 LQR_DELEGATE_TRUE='#'
28224 LQR_DELEGATE_FALSE=
28225fi
28226
cristy3ed852e2009-09-05 21:47:34 +000028227
28228
28229
28230
28231#
28232# Check for the OpenEXR delegate library.
28233#
28234
28235# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000028236if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028237 withval=$with_openexr; with_openexr=$withval
28238else
28239 with_openexr='yes'
28240fi
28241
28242
28243if test "$with_openexr" != 'yes'; then
28244 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28245fi
28246
28247have_openexr='no'
28248OPENEXR_CFLAGS=""
28249OPENEXR_LIBS=""
28250OPENEXR_PKG=""
28251if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028253$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028254
28255pkg_failed=no
28256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
28257$as_echo_n "checking for OPENEXR... " >&6; }
28258
28259if test -n "$OPENEXR_CFLAGS"; then
28260 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28261 elif test -n "$PKG_CONFIG"; then
28262 if test -n "$PKG_CONFIG" && \
28263 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28264 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28265 ac_status=$?
28266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28267 test $ac_status = 0; }; then
28268 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28269else
28270 pkg_failed=yes
28271fi
28272 else
28273 pkg_failed=untried
28274fi
28275if test -n "$OPENEXR_LIBS"; then
28276 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28277 elif test -n "$PKG_CONFIG"; then
28278 if test -n "$PKG_CONFIG" && \
28279 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28280 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28281 ac_status=$?
28282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28283 test $ac_status = 0; }; then
28284 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28285else
28286 pkg_failed=yes
28287fi
28288 else
28289 pkg_failed=untried
28290fi
28291
28292
28293
28294if test $pkg_failed = yes; then
28295
28296if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28297 _pkg_short_errors_supported=yes
28298else
28299 _pkg_short_errors_supported=no
28300fi
28301 if test $_pkg_short_errors_supported = yes; then
28302 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28303 else
28304 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28305 fi
28306 # Put the nasty error message in config.log where it belongs
28307 echo "$OPENEXR_PKG_ERRORS" >&5
28308
28309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28310$as_echo "no" >&6; }
28311 have_openexr=no
28312elif test $pkg_failed = untried; then
28313 have_openexr=no
28314else
28315 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28316 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
28317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28318$as_echo "yes" >&6; }
28319 have_openexr=yes
28320fi
cristy8b350f62009-11-15 23:12:43 +000028321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028322$as_echo "" >&6; }
28323fi
28324
28325if test "$have_openexr" = 'yes'; then
28326
cristy8b350f62009-11-15 23:12:43 +000028327$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028328
28329 if test "$with_modules" = 'no'; then
28330 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28331 fi
28332fi
28333
cristy73bd4a52010-10-05 11:24:23 +000028334 if test "$have_openexr" = 'yes'; then
28335 OPENEXR_DELEGATE_TRUE=
28336 OPENEXR_DELEGATE_FALSE='#'
28337else
28338 OPENEXR_DELEGATE_TRUE='#'
28339 OPENEXR_DELEGATE_FALSE=
28340fi
28341
cristy3ed852e2009-09-05 21:47:34 +000028342
28343
28344
28345
28346#
28347# Check for PNG delegate library.
28348#
28349
28350# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000028351if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028352 withval=$with_png; with_png=$withval
28353else
28354 with_png='yes'
28355fi
28356
28357
28358if test "$with_png" != 'yes'; then
28359 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28360fi
28361
28362have_png='no'
28363PNG_LIBS=''
28364if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028366$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028368$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028370$as_echo "" >&6; }
28371 failed=0
28372 passed=0
cristy8b350f62009-11-15 23:12:43 +000028373 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28374if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028375 passed=`expr $passed + 1`
28376else
28377 failed=`expr $failed + 1`
28378fi
28379
28380
cristy8b350f62009-11-15 23:12:43 +000028381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000028382$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028383if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028384 $as_echo_n "(cached) " >&6
28385else
28386 ac_check_lib_save_LIBS=$LIBS
28387LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028389/* end confdefs.h. */
28390
28391/* Override any GCC internal prototype to avoid an error.
28392 Use char because int might match the return type of a GCC
28393 builtin and then its argument prototype would still apply. */
28394#ifdef __cplusplus
28395extern "C"
28396#endif
28397char png_get_io_ptr ();
28398int
28399main ()
28400{
28401return png_get_io_ptr ();
28402 ;
28403 return 0;
28404}
28405_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028406if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028407 ac_cv_lib_png_png_get_io_ptr=yes
28408else
cristy8b350f62009-11-15 23:12:43 +000028409 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000028410fi
cristy8b350f62009-11-15 23:12:43 +000028411rm -f core conftest.err conftest.$ac_objext \
28412 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028413LIBS=$ac_check_lib_save_LIBS
28414fi
cristy8b350f62009-11-15 23:12:43 +000028415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000028416$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028417if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028418 passed=`expr $passed + 1`
28419else
28420 failed=`expr $failed + 1`
28421fi
28422
cristy8b350f62009-11-15 23:12:43 +000028423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028424$as_echo_n "checking if PNG package is complete... " >&6; }
28425 if test $passed -gt 0; then
28426 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028428$as_echo "no -- some components failed test" >&6; }
28429 have_png='no (failed tests)'
28430 else
28431 PNG_LIBS='-lpng'
28432 LIBS="$PNG_LIBS $LIBS"
28433
cristy8b350f62009-11-15 23:12:43 +000028434$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028435
cristy8b350f62009-11-15 23:12:43 +000028436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028437$as_echo "yes" >&6; }
28438 have_png='yes'
28439 fi
28440 else
cristy8b350f62009-11-15 23:12:43 +000028441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028442$as_echo "no" >&6; }
28443 fi
28444fi
cristy73bd4a52010-10-05 11:24:23 +000028445 if test "$have_png" = 'yes'; then
28446 PNG_DELEGATE_TRUE=
28447 PNG_DELEGATE_FALSE='#'
28448else
28449 PNG_DELEGATE_TRUE='#'
28450 PNG_DELEGATE_FALSE=
28451fi
28452
cristy3ed852e2009-09-05 21:47:34 +000028453
28454
28455
28456#
28457# Check for RSVG delegate library.
28458#
28459
28460# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000028461if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028462 withval=$with_rsvg; with_rsvg=$withval
28463else
28464 with_rsvg=$have_x
28465fi
28466
28467
28468if test "$with_rsvg" != 'yes'; then
28469 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28470fi
28471
28472have_rsvg='no'
28473have_cairo='no'
28474RSVG_CFLAGS=""
28475RSVG_LIBS=""
28476RSVG_PKG=""
28477if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028479$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028480
28481pkg_failed=no
28482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
28483$as_echo_n "checking for RSVG... " >&6; }
28484
28485if test -n "$RSVG_CFLAGS"; then
28486 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28487 elif test -n "$PKG_CONFIG"; then
28488 if test -n "$PKG_CONFIG" && \
28489 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28490 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28491 ac_status=$?
28492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28493 test $ac_status = 0; }; then
28494 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28495else
28496 pkg_failed=yes
28497fi
28498 else
28499 pkg_failed=untried
28500fi
28501if test -n "$RSVG_LIBS"; then
28502 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28503 elif test -n "$PKG_CONFIG"; then
28504 if test -n "$PKG_CONFIG" && \
28505 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28506 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28507 ac_status=$?
28508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28509 test $ac_status = 0; }; then
28510 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28511else
28512 pkg_failed=yes
28513fi
28514 else
28515 pkg_failed=untried
28516fi
28517
28518
28519
28520if test $pkg_failed = yes; then
28521
28522if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28523 _pkg_short_errors_supported=yes
28524else
28525 _pkg_short_errors_supported=no
28526fi
28527 if test $_pkg_short_errors_supported = yes; then
28528 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28529 else
28530 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28531 fi
28532 # Put the nasty error message in config.log where it belongs
28533 echo "$RSVG_PKG_ERRORS" >&5
28534
28535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28536$as_echo "no" >&6; }
28537 have_rsvg=no
28538elif test $pkg_failed = untried; then
28539 have_rsvg=no
28540else
28541 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28542 RSVG_LIBS=$pkg_cv_RSVG_LIBS
28543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28544$as_echo "yes" >&6; }
28545 have_rsvg=yes
28546fi
cristy8b350f62009-11-15 23:12:43 +000028547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028548$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028549
28550pkg_failed=no
28551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
28552$as_echo_n "checking for CAIRO_SVG... " >&6; }
28553
28554if test -n "$CAIRO_SVG_CFLAGS"; then
28555 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28556 elif test -n "$PKG_CONFIG"; then
28557 if test -n "$PKG_CONFIG" && \
28558 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28559 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28560 ac_status=$?
28561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28562 test $ac_status = 0; }; then
28563 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28564else
28565 pkg_failed=yes
28566fi
28567 else
28568 pkg_failed=untried
28569fi
28570if test -n "$CAIRO_SVG_LIBS"; then
28571 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28572 elif test -n "$PKG_CONFIG"; then
28573 if test -n "$PKG_CONFIG" && \
28574 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28575 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28576 ac_status=$?
28577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28578 test $ac_status = 0; }; then
28579 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28580else
28581 pkg_failed=yes
28582fi
28583 else
28584 pkg_failed=untried
28585fi
28586
28587
28588
28589if test $pkg_failed = yes; then
28590
28591if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28592 _pkg_short_errors_supported=yes
28593else
28594 _pkg_short_errors_supported=no
28595fi
28596 if test $_pkg_short_errors_supported = yes; then
28597 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28598 else
28599 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28600 fi
28601 # Put the nasty error message in config.log where it belongs
28602 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28603
28604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28605$as_echo "no" >&6; }
28606 have_cairo=no
28607elif test $pkg_failed = untried; then
28608 have_cairo=no
28609else
28610 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28611 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
28612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28613$as_echo "yes" >&6; }
28614 have_cairo=yes
28615fi
cristy8b350f62009-11-15 23:12:43 +000028616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028617$as_echo "" >&6; }
28618fi
28619
28620if test "$have_rsvg" = 'yes'; then
28621
cristy8b350f62009-11-15 23:12:43 +000028622$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028623
28624 if test "$with_modules" = 'no'; then
28625 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28626 fi
28627fi
28628
28629if test "$have_cairo" = 'yes'; then
28630
cristy8b350f62009-11-15 23:12:43 +000028631$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028632
28633 if test "$with_modules" = 'no'; then
28634 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28635 fi
28636fi
28637
cristy73bd4a52010-10-05 11:24:23 +000028638 if test "$have_rsvg" = 'yes'; then
28639 RSVG_DELEGATE_TRUE=
28640 RSVG_DELEGATE_FALSE='#'
28641else
28642 RSVG_DELEGATE_TRUE='#'
28643 RSVG_DELEGATE_FALSE=
28644fi
28645
28646 if test "$have_cairo" = 'yes'; then
28647 CAIRO_DELEGATE_TRUE=
28648 CAIRO_DELEGATE_FALSE='#'
28649else
28650 CAIRO_DELEGATE_TRUE='#'
28651 CAIRO_DELEGATE_FALSE=
28652fi
28653
cristy3ed852e2009-09-05 21:47:34 +000028654
28655
28656
28657
28658#
28659# Check for TIFF delegate library.
28660#
28661
28662# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000028663if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028664 withval=$with_tiff; with_tiff=$withval
28665else
28666 with_tiff='yes'
28667fi
28668
28669
28670if test "$with_tiff" != 'yes'; then
28671 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28672fi
28673
28674have_tiff='no'
28675TIFF_LIBS=''
28676if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028678$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028680$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028682$as_echo "" >&6; }
28683 failed=0
28684 passed=0
cristy8b350f62009-11-15 23:12:43 +000028685 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28686if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028687 passed=`expr $passed + 1`
28688else
28689 failed=`expr $failed + 1`
28690fi
28691
28692
cristy8b350f62009-11-15 23:12:43 +000028693 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28694if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028695 passed=`expr $passed + 1`
28696else
28697 failed=`expr $failed + 1`
28698fi
28699
28700
cristy8b350f62009-11-15 23:12:43 +000028701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028702$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028703if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028704 $as_echo_n "(cached) " >&6
28705else
28706 ac_check_lib_save_LIBS=$LIBS
28707LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028709/* end confdefs.h. */
28710
28711/* Override any GCC internal prototype to avoid an error.
28712 Use char because int might match the return type of a GCC
28713 builtin and then its argument prototype would still apply. */
28714#ifdef __cplusplus
28715extern "C"
28716#endif
28717char TIFFOpen ();
28718int
28719main ()
28720{
28721return TIFFOpen ();
28722 ;
28723 return 0;
28724}
28725_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028726if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028727 ac_cv_lib_tiff_TIFFOpen=yes
28728else
cristy8b350f62009-11-15 23:12:43 +000028729 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028730fi
cristy8b350f62009-11-15 23:12:43 +000028731rm -f core conftest.err conftest.$ac_objext \
28732 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028733LIBS=$ac_check_lib_save_LIBS
28734fi
cristy8b350f62009-11-15 23:12:43 +000028735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028736$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028737if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028738 passed=`expr $passed + 1`
28739else
28740 failed=`expr $failed + 1`
28741fi
28742
cristy8b350f62009-11-15 23:12:43 +000028743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028744$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028745if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028746 $as_echo_n "(cached) " >&6
28747else
28748 ac_check_lib_save_LIBS=$LIBS
28749LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028751/* end confdefs.h. */
28752
28753/* Override any GCC internal prototype to avoid an error.
28754 Use char because int might match the return type of a GCC
28755 builtin and then its argument prototype would still apply. */
28756#ifdef __cplusplus
28757extern "C"
28758#endif
28759char TIFFClientOpen ();
28760int
28761main ()
28762{
28763return TIFFClientOpen ();
28764 ;
28765 return 0;
28766}
28767_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028768if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028769 ac_cv_lib_tiff_TIFFClientOpen=yes
28770else
cristy8b350f62009-11-15 23:12:43 +000028771 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028772fi
cristy8b350f62009-11-15 23:12:43 +000028773rm -f core conftest.err conftest.$ac_objext \
28774 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028775LIBS=$ac_check_lib_save_LIBS
28776fi
cristy8b350f62009-11-15 23:12:43 +000028777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028778$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028779if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028780 passed=`expr $passed + 1`
28781else
28782 failed=`expr $failed + 1`
28783fi
28784
cristyb97f1002010-07-26 14:02:57 +000028785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
28786$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
28787if test "${ac_cv_lib_tiff_TIFFIsBigEndian+set}" = set; then :
28788 $as_echo_n "(cached) " >&6
28789else
28790 ac_check_lib_save_LIBS=$LIBS
28791LIBS="-ltiff $LIBS"
28792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28793/* end confdefs.h. */
28794
28795/* Override any GCC internal prototype to avoid an error.
28796 Use char because int might match the return type of a GCC
28797 builtin and then its argument prototype would still apply. */
28798#ifdef __cplusplus
28799extern "C"
28800#endif
28801char TIFFIsBigEndian ();
28802int
28803main ()
28804{
28805return TIFFIsBigEndian ();
28806 ;
28807 return 0;
28808}
28809_ACEOF
28810if ac_fn_c_try_link "$LINENO"; then :
28811 ac_cv_lib_tiff_TIFFIsBigEndian=yes
28812else
28813 ac_cv_lib_tiff_TIFFIsBigEndian=no
28814fi
28815rm -f core conftest.err conftest.$ac_objext \
28816 conftest$ac_exeext conftest.$ac_ext
28817LIBS=$ac_check_lib_save_LIBS
28818fi
28819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
28820$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
28821if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = x""yes; then :
28822 passed=`expr $passed + 1`
28823else
28824 failed=`expr $failed + 1`
28825fi
28826
cristy8b350f62009-11-15 23:12:43 +000028827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028828$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028829if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028830 $as_echo_n "(cached) " >&6
28831else
28832 ac_check_lib_save_LIBS=$LIBS
28833LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028835/* end confdefs.h. */
28836
28837/* Override any GCC internal prototype to avoid an error.
28838 Use char because int might match the return type of a GCC
28839 builtin and then its argument prototype would still apply. */
28840#ifdef __cplusplus
28841extern "C"
28842#endif
28843char TIFFIsByteSwapped ();
28844int
28845main ()
28846{
28847return TIFFIsByteSwapped ();
28848 ;
28849 return 0;
28850}
28851_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028852if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028853 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28854else
cristy8b350f62009-11-15 23:12:43 +000028855 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000028856fi
cristy8b350f62009-11-15 23:12:43 +000028857rm -f core conftest.err conftest.$ac_objext \
28858 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028859LIBS=$ac_check_lib_save_LIBS
28860fi
cristy8b350f62009-11-15 23:12:43 +000028861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000028862$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028863if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028864 passed=`expr $passed + 1`
28865else
28866 failed=`expr $failed + 1`
28867fi
28868
cristy8b350f62009-11-15 23:12:43 +000028869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028870$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028871if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028872 $as_echo_n "(cached) " >&6
28873else
28874 ac_check_lib_save_LIBS=$LIBS
28875LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028877/* end confdefs.h. */
28878
28879/* Override any GCC internal prototype to avoid an error.
28880 Use char because int might match the return type of a GCC
28881 builtin and then its argument prototype would still apply. */
28882#ifdef __cplusplus
28883extern "C"
28884#endif
28885char TIFFReadRGBATile ();
28886int
28887main ()
28888{
28889return TIFFReadRGBATile ();
28890 ;
28891 return 0;
28892}
28893_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028894if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028895 ac_cv_lib_tiff_TIFFReadRGBATile=yes
28896else
cristy8b350f62009-11-15 23:12:43 +000028897 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000028898fi
cristy8b350f62009-11-15 23:12:43 +000028899rm -f core conftest.err conftest.$ac_objext \
28900 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028901LIBS=$ac_check_lib_save_LIBS
28902fi
cristy8b350f62009-11-15 23:12:43 +000028903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000028904$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028905if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028906 passed=`expr $passed + 1`
28907else
28908 failed=`expr $failed + 1`
28909fi
28910
cristy8b350f62009-11-15 23:12:43 +000028911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028912$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028913if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028914 $as_echo_n "(cached) " >&6
28915else
28916 ac_check_lib_save_LIBS=$LIBS
28917LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028919/* end confdefs.h. */
28920
28921/* Override any GCC internal prototype to avoid an error.
28922 Use char because int might match the return type of a GCC
28923 builtin and then its argument prototype would still apply. */
28924#ifdef __cplusplus
28925extern "C"
28926#endif
28927char TIFFReadRGBAStrip ();
28928int
28929main ()
28930{
28931return TIFFReadRGBAStrip ();
28932 ;
28933 return 0;
28934}
28935_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028936if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028937 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
28938else
cristy8b350f62009-11-15 23:12:43 +000028939 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000028940fi
cristy8b350f62009-11-15 23:12:43 +000028941rm -f core conftest.err conftest.$ac_objext \
28942 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028943LIBS=$ac_check_lib_save_LIBS
28944fi
cristy8b350f62009-11-15 23:12:43 +000028945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000028946$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028947if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028948 passed=`expr $passed + 1`
28949else
28950 failed=`expr $failed + 1`
28951fi
28952
cristy8b350f62009-11-15 23:12:43 +000028953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028954$as_echo_n "checking if TIFF package is complete... " >&6; }
28955 if test $passed -gt 0; then
28956 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028958$as_echo "no -- some components failed test" >&6; }
28959 have_tiff='no (failed tests)'
28960 else
28961 TIFF_LIBS='-ltiff'
28962 LIBS="$TIFF_LIBS $LIBS"
28963
cristy8b350f62009-11-15 23:12:43 +000028964$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028965
cristy8b350f62009-11-15 23:12:43 +000028966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028967$as_echo "yes" >&6; }
28968 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000028969 for ac_header in tiffconf.h
28970do :
28971 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
28972if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028973 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028974#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000028975_ACEOF
28976
28977fi
28978
28979done
28980
cristy8b350f62009-11-15 23:12:43 +000028981 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000028982 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
28983 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000028984do :
28985 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28986ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000028987if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000028988 cat >>confdefs.h <<_ACEOF
28989#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28990_ACEOF
28991
28992fi
28993done
28994
28995 fi
28996 else
cristy8b350f62009-11-15 23:12:43 +000028997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028998$as_echo "no" >&6; }
28999 fi
29000fi
cristy73bd4a52010-10-05 11:24:23 +000029001 if test "$have_tiff" = 'yes'; then
29002 TIFF_DELEGATE_TRUE=
29003 TIFF_DELEGATE_FALSE='#'
29004else
29005 TIFF_DELEGATE_TRUE='#'
29006 TIFF_DELEGATE_FALSE=
29007fi
29008
cristy3ed852e2009-09-05 21:47:34 +000029009
29010
29011
29012#
29013# Set Windows font directory.
29014#
29015
29016# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029017if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029018 withval=$with_windows_font_dir; with_windows_font_dir=$withval
29019else
29020 with_windows_font_dir=''
29021fi
29022
29023if test "$with_windows_font_dir" != '' ; then
29024 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29025fi
29026
29027
29028#
29029# Check for WMF delegate library.
29030#
29031
29032# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000029033if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029034 withval=$with_wmf; with_wmf=$withval
29035else
cristy8d63d1d2010-01-06 20:38:37 +000029036 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000029037fi
29038
29039
29040if test "$with_wmf" != 'yes'; then
29041 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29042fi
29043
29044have_wmf='no'
29045WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000029046if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029048$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029050$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029052$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000029053 failed=0
29054 passed=0
29055 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29056if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29057 passed=`expr $passed + 1`
29058else
29059 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029060fi
29061
29062
cristy735e8942010-04-02 20:32:57 +000029063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29064$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29065if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029066 $as_echo_n "(cached) " >&6
29067else
29068 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000029069LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029071/* end confdefs.h. */
29072
29073/* Override any GCC internal prototype to avoid an error.
29074 Use char because int might match the return type of a GCC
29075 builtin and then its argument prototype would still apply. */
29076#ifdef __cplusplus
29077extern "C"
29078#endif
cristy735e8942010-04-02 20:32:57 +000029079char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029080int
29081main ()
29082{
cristy735e8942010-04-02 20:32:57 +000029083return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029084 ;
29085 return 0;
29086}
29087_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029088if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000029089 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000029090else
cristy735e8942010-04-02 20:32:57 +000029091 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000029092fi
cristy8b350f62009-11-15 23:12:43 +000029093rm -f core conftest.err conftest.$ac_objext \
29094 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029095LIBS=$ac_check_lib_save_LIBS
29096fi
cristy735e8942010-04-02 20:32:57 +000029097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29098$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29099if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29100 passed=`expr $passed + 1`
29101else
29102 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029103fi
29104
cristy735e8942010-04-02 20:32:57 +000029105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29106$as_echo_n "checking if WMF package is complete... " >&6; }
29107 if test $passed -gt 0; then
29108 if test $failed -gt 0; then
29109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29110$as_echo "no -- some components failed test" >&6; }
29111 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000029112 else
cristy735e8942010-04-02 20:32:57 +000029113 WMF_LIBS='-lwmf -lwmflite'
29114 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029115
cristy8b350f62009-11-15 23:12:43 +000029116$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029117
cristy735e8942010-04-02 20:32:57 +000029118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029119$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000029120 have_wmf='yes'
29121 fi
cristy3ed852e2009-09-05 21:47:34 +000029122 else
cristy8b350f62009-11-15 23:12:43 +000029123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029124$as_echo "no" >&6; }
29125 fi
29126fi
cristy73bd4a52010-10-05 11:24:23 +000029127 if test "$have_wmf" = 'yes'; then
29128 WMF_DELEGATE_TRUE=
29129 WMF_DELEGATE_FALSE='#'
29130else
29131 WMF_DELEGATE_TRUE='#'
29132 WMF_DELEGATE_FALSE=
29133fi
29134
cristy3ed852e2009-09-05 21:47:34 +000029135
29136
29137
29138
cristy735e8942010-04-02 20:32:57 +000029139
cristy3ed852e2009-09-05 21:47:34 +000029140#
29141# Check for XML delegate library.
29142#
29143
29144# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000029145if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029146 withval=$with_xml; with_xml=$withval
29147else
29148 with_xml=$have_x
29149fi
29150
29151
29152if test "$with_xml" != 'yes' ; then
29153 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29154fi
29155
29156have_xml='no'
29157XML_LIBS=''
29158if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029160$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000029162$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029164$as_echo "" >&6; }
29165 PERSIST_LDFLAGS=$LDFLAGS
29166 PERSIST_CPPFLAGS=$CPPFLAGS
29167 xml2_config=''
29168 for ac_prog in xml2-config
29169do
29170 # Extract the first word of "$ac_prog", so it can be a program name with args.
29171set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029173$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029174if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029175 $as_echo_n "(cached) " >&6
29176else
29177 if test -n "$xml2_config"; then
29178 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29179else
29180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29181for as_dir in $PATH
29182do
29183 IFS=$as_save_IFS
29184 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029185 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29187 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029189 break 2
29190 fi
29191done
cristy8b350f62009-11-15 23:12:43 +000029192 done
cristy3ed852e2009-09-05 21:47:34 +000029193IFS=$as_save_IFS
29194
29195fi
29196fi
29197xml2_config=$ac_cv_prog_xml2_config
29198if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000029199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000029200$as_echo "$xml2_config" >&6; }
29201else
cristy8b350f62009-11-15 23:12:43 +000029202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029203$as_echo "no" >&6; }
29204fi
29205
29206
29207 test -n "$xml2_config" && break
29208done
29209 if test -n "$xml2_config"; then
29210 # Debian installs libxml headers under /usr/include/libxml2/libxml with
29211 # the shared library installed under /usr/lib, whereas the package
29212 # installs itself under $prefix/libxml and $prefix/lib.
29213 xml2_prefix=`xml2-config --prefix`
29214 if test -d "${xml2_prefix}/include/libxml2"; then
29215 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29216 fi
29217 if test "${xml2_prefix}" != '/usr'; then
29218 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29219 fi
29220 fi
29221 failed=0
29222 passed=0
cristy8b350f62009-11-15 23:12:43 +000029223 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29224if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029225 passed=`expr $passed + 1`
29226else
29227 failed=`expr $failed + 1`
29228fi
29229
29230
cristy8b350f62009-11-15 23:12:43 +000029231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029232$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029233if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029234 $as_echo_n "(cached) " >&6
29235else
29236 ac_check_lib_save_LIBS=$LIBS
29237LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029239/* end confdefs.h. */
29240
29241/* Override any GCC internal prototype to avoid an error.
29242 Use char because int might match the return type of a GCC
29243 builtin and then its argument prototype would still apply. */
29244#ifdef __cplusplus
29245extern "C"
29246#endif
29247char xmlParseExternalEntity ();
29248int
29249main ()
29250{
29251return xmlParseExternalEntity ();
29252 ;
29253 return 0;
29254}
29255_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029256if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029257 ac_cv_lib_xml2_xmlParseExternalEntity=yes
29258else
cristy8b350f62009-11-15 23:12:43 +000029259 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000029260fi
cristy8b350f62009-11-15 23:12:43 +000029261rm -f core conftest.err conftest.$ac_objext \
29262 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029263LIBS=$ac_check_lib_save_LIBS
29264fi
cristy8b350f62009-11-15 23:12:43 +000029265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000029266$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029267if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029268 passed=`expr $passed + 1`
29269else
29270 failed=`expr $failed + 1`
29271fi
29272
cristy8b350f62009-11-15 23:12:43 +000029273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029274$as_echo_n "checking if XML package is complete... " >&6; }
29275 if test $passed -gt 0; then
29276 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029278$as_echo "no -- some components failed test" >&6; }
29279 have_xml='no (failed tests)'
29280 LDFLAGS="$PERSIST_LDFLAGS"
29281 CPPFLAGS="$PERSIST_CPPFLAGS"
29282 else
29283 XML_LIBS='-lxml2'
29284 LIBS="$XML_LIBS $LIBS"
29285
cristy8b350f62009-11-15 23:12:43 +000029286$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029287
cristy8b350f62009-11-15 23:12:43 +000029288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029289$as_echo "yes" >&6; }
29290 have_xml='yes'
29291 fi
29292 else
cristy8b350f62009-11-15 23:12:43 +000029293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029294$as_echo "no" >&6; }
29295 fi
29296fi
cristy73bd4a52010-10-05 11:24:23 +000029297 if test "$have_xml" = 'yes'; then
29298 XML_DELEGATE_TRUE=
29299 XML_DELEGATE_FALSE='#'
29300else
29301 XML_DELEGATE_TRUE='#'
29302 XML_DELEGATE_FALSE=
29303fi
29304
cristy3ed852e2009-09-05 21:47:34 +000029305
29306
29307
29308# Substitute compiler name to build/link PerlMagick
29309#
29310
29311
29312#
29313# Configure install Paths
29314#
29315
29316# Subdirectory under lib to place ImageMagick lib files
29317LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29318
29319cat >>confdefs.h <<_ACEOF
29320#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29321_ACEOF
29322
29323
29324# Path to ImageMagick bin directory
29325EXECUTABLE_PATH="${BIN_DIR}"
29326DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29327case "${build_os}" in
29328 mingw* )
29329 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29330 ;;
29331esac
29332
29333cat >>confdefs.h <<_ACEOF
29334#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29335_ACEOF
29336
29337
29338
29339# Path to ImageMagick lib
29340LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29341DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29342case "${build_os}" in
29343 mingw* )
29344 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29345 ;;
29346esac
29347
29348cat >>confdefs.h <<_ACEOF
29349#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29350_ACEOF
29351
29352
29353
29354# Subdirectory under lib to place ImageMagick configuration files
29355CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29356
29357cat >>confdefs.h <<_ACEOF
29358#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29359_ACEOF
29360
29361CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29362DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29363case "${build_os}" in
29364 mingw* )
29365 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29366 ;;
29367esac
29368
29369cat >>confdefs.h <<_ACEOF
29370#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29371_ACEOF
29372
29373
29374
29375#
29376# Subdirectory under lib to place ImageMagick coder module files
29377CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29378
29379cat >>confdefs.h <<_ACEOF
29380#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29381_ACEOF
29382
29383CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29384DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29385case "${build_os}" in
29386 mingw* )
29387 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29388 ;;
29389esac
29390
29391cat >>confdefs.h <<_ACEOF
29392#define CODER_PATH "$DEFINE_CODER_PATH"
29393_ACEOF
29394
29395
29396
29397#
29398# Subdirectory under lib to place ImageMagick filter module files
29399FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29400
29401cat >>confdefs.h <<_ACEOF
29402#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29403_ACEOF
29404
29405FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29406DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29407case "${build_os}" in
29408 mingw* )
29409 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29410 ;;
29411esac
29412
29413cat >>confdefs.h <<_ACEOF
29414#define FILTER_PATH "$DEFINE_FILTER_PATH"
29415_ACEOF
29416
29417
29418
29419#
29420# Path to ImageMagick documentation files
29421DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29422DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29423DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29424case "${build_os}" in
29425 mingw* )
29426 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29427 ;;
29428esac
29429
29430cat >>confdefs.h <<_ACEOF
29431#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29432_ACEOF
29433
29434
29435
29436#
29437# Path to ImageMagick share files
29438SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29439SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29440DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29441case "${build_os}" in
29442 mingw* )
29443 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29444 ;;
29445esac
29446
29447cat >>confdefs.h <<_ACEOF
29448#define SHARE_PATH "$DEFINE_SHARE_PATH"
29449_ACEOF
29450
29451
29452
29453# Subdirectory under share to place ImageMagick configuration files
29454SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29455
29456cat >>confdefs.h <<_ACEOF
29457#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29458_ACEOF
29459
29460SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29461DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29462case "${build_os}" in
29463 mingw* )
29464 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29465 ;;
29466esac
29467
29468cat >>confdefs.h <<_ACEOF
29469#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29470_ACEOF
29471
29472
29473
29474#
29475# program_transform_name is formed for use in a Makefile, so create a
29476# modified version for use in a shell script.
29477configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29478
29479# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000029480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029481$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029483$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029485$as_echo "" >&6; }
29486AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000029487BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000029488BZIPDelegateDefault='bzip2'
29489BrowseDelegateDefault='xdg-open'
29490CGMDecodeDelegateDefault='ralcgm'
29491CatDelegateDefault='cat'
29492DNGDecodeDelegateDefault='ufraw-batch'
29493GVCDecodeDelegateDefault='dot'
29494DVIDecodeDelegateDefault='dvips'
29495EchoDelegateDefault='echo'
29496EditorDelegateDefault='xterm'
29497FIGDecodeDelegateDefault='fig2dev'
29498ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29499DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29500MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29501GnuplotDecodeDelegateDefault='gnuplot'
29502HDRDecodeDelegateDefault='ra_pfm'
29503HPGLDecodeDelegateDefault='hp2xx'
29504HTMLDecodeDelegateDefault='html2ps'
29505ILBMDecodeDelegateDefault='ilbmtoppm'
29506ILBMEncodeDelegateDefault='ppmtoilbm'
29507LPDelegateDefault='lp'
29508LPRDelegateDefault='lpr'
29509LZWDecodeDelegateDefault='uncompress'
29510LZWEncodeDelegateDefault='compress'
29511LaunchDelegateDefault='gimp'
29512MANDelegateDefault='groff'
29513MPEGDecodeDelegateDefault='ffmpeg'
29514MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000029515MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000029516MVDelegateDefault='mv'
29517PCLDelegateDefault='pcl6'
29518PGPDecodeDelegateDefault='pgpv'
29519POVDelegateDefault='povray'
29520if test "$native_win32_build" = 'yes'; then
29521 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000029522elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029523 PSDelegateDefault='gsc'
29524else
29525 PSDelegateDefault='gs'
29526fi
29527RLEEncodeDelegateDefault='rawtorle'
29528RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000029529RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000029530SCANDecodeDelegateDefault='scanimage'
29531TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000029532UniconvertorDelegateDefault='uniconvertor'
cristy23f7a922010-10-11 00:27:48 +000029533WEBPDelegateDefault='webpconv'
cristy3ed852e2009-09-05 21:47:34 +000029534WMFDecodeDelegateDefault='wmf2eps'
29535WWWDecodeDelegateDefault='curl'
29536XPSDelegateDefault='gxps'
29537ZipDelegateDefault='gzip'
29538
29539# Search for delegates
29540# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29541set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029543$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029544if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029545 $as_echo_n "(cached) " >&6
29546else
29547 case $AutotraceDecodeDelegate in
29548 [\\/]* | ?:[\\/]*)
29549 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29550 ;;
29551 *)
29552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29553for as_dir in $PATH
29554do
29555 IFS=$as_save_IFS
29556 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029557 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29559 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029561 break 2
29562 fi
29563done
cristy8b350f62009-11-15 23:12:43 +000029564 done
cristy3ed852e2009-09-05 21:47:34 +000029565IFS=$as_save_IFS
29566
29567 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29568 ;;
29569esac
29570fi
29571AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29572if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029574$as_echo "$AutotraceDecodeDelegate" >&6; }
29575else
cristy8b350f62009-11-15 23:12:43 +000029576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029577$as_echo "no" >&6; }
29578fi
29579
29580
cristy3ed852e2009-09-05 21:47:34 +000029581# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29582set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029584$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029585if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029586 $as_echo_n "(cached) " >&6
29587else
29588 case $BlenderDecodeDelegate in
29589 [\\/]* | ?:[\\/]*)
29590 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29591 ;;
29592 *)
29593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29594for as_dir in $PATH
29595do
29596 IFS=$as_save_IFS
29597 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029598 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29600 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029602 break 2
29603 fi
29604done
cristy8b350f62009-11-15 23:12:43 +000029605 done
cristy3ed852e2009-09-05 21:47:34 +000029606IFS=$as_save_IFS
29607
29608 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29609 ;;
29610esac
29611fi
29612BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29613if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029615$as_echo "$BlenderDecodeDelegate" >&6; }
29616else
cristy8b350f62009-11-15 23:12:43 +000029617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029618$as_echo "no" >&6; }
29619fi
29620
29621
29622# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29623set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029625$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029626if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029627 $as_echo_n "(cached) " >&6
29628else
29629 case $BZIPDelegate in
29630 [\\/]* | ?:[\\/]*)
29631 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29632 ;;
29633 *)
29634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29635for as_dir in $PATH
29636do
29637 IFS=$as_save_IFS
29638 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029639 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29641 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029643 break 2
29644 fi
29645done
cristy8b350f62009-11-15 23:12:43 +000029646 done
cristy3ed852e2009-09-05 21:47:34 +000029647IFS=$as_save_IFS
29648
29649 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29650 ;;
29651esac
29652fi
29653BZIPDelegate=$ac_cv_path_BZIPDelegate
29654if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029656$as_echo "$BZIPDelegate" >&6; }
29657else
cristy8b350f62009-11-15 23:12:43 +000029658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029659$as_echo "no" >&6; }
29660fi
29661
29662
29663# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29664set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029666$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029667if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029668 $as_echo_n "(cached) " >&6
29669else
29670 case $BrowseDelegate in
29671 [\\/]* | ?:[\\/]*)
29672 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29673 ;;
29674 *)
29675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29676for as_dir in $PATH
29677do
29678 IFS=$as_save_IFS
29679 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029680 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29682 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029684 break 2
29685 fi
29686done
cristy8b350f62009-11-15 23:12:43 +000029687 done
cristy3ed852e2009-09-05 21:47:34 +000029688IFS=$as_save_IFS
29689
29690 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29691 ;;
29692esac
29693fi
29694BrowseDelegate=$ac_cv_path_BrowseDelegate
29695if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029697$as_echo "$BrowseDelegate" >&6; }
29698else
cristy8b350f62009-11-15 23:12:43 +000029699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029700$as_echo "no" >&6; }
29701fi
29702
29703
29704# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29705set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029707$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029708if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029709 $as_echo_n "(cached) " >&6
29710else
29711 case $CGMDecodeDelegate in
29712 [\\/]* | ?:[\\/]*)
29713 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29714 ;;
29715 *)
29716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29717for as_dir in $PATH
29718do
29719 IFS=$as_save_IFS
29720 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029721 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29723 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029725 break 2
29726 fi
29727done
cristy8b350f62009-11-15 23:12:43 +000029728 done
cristy3ed852e2009-09-05 21:47:34 +000029729IFS=$as_save_IFS
29730
29731 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29732 ;;
29733esac
29734fi
29735CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29736if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029738$as_echo "$CGMDecodeDelegate" >&6; }
29739else
cristy8b350f62009-11-15 23:12:43 +000029740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029741$as_echo "no" >&6; }
29742fi
29743
29744
29745# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29746set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029748$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029749if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029750 $as_echo_n "(cached) " >&6
29751else
29752 case $CatDelegate in
29753 [\\/]* | ?:[\\/]*)
29754 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29755 ;;
29756 *)
29757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29758for as_dir in $PATH
29759do
29760 IFS=$as_save_IFS
29761 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029762 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29764 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029766 break 2
29767 fi
29768done
cristy8b350f62009-11-15 23:12:43 +000029769 done
cristy3ed852e2009-09-05 21:47:34 +000029770IFS=$as_save_IFS
29771
29772 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29773 ;;
29774esac
29775fi
29776CatDelegate=$ac_cv_path_CatDelegate
29777if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029779$as_echo "$CatDelegate" >&6; }
29780else
cristy8b350f62009-11-15 23:12:43 +000029781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029782$as_echo "no" >&6; }
29783fi
29784
29785
29786# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29787set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029789$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029790if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029791 $as_echo_n "(cached) " >&6
29792else
29793 case $DNGDecodeDelegate in
29794 [\\/]* | ?:[\\/]*)
29795 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29796 ;;
29797 *)
29798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29799for as_dir in $PATH
29800do
29801 IFS=$as_save_IFS
29802 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029803 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29805 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029807 break 2
29808 fi
29809done
cristy8b350f62009-11-15 23:12:43 +000029810 done
cristy3ed852e2009-09-05 21:47:34 +000029811IFS=$as_save_IFS
29812
29813 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29814 ;;
29815esac
29816fi
29817DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29818if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029820$as_echo "$DNGDecodeDelegate" >&6; }
29821else
cristy8b350f62009-11-15 23:12:43 +000029822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029823$as_echo "no" >&6; }
29824fi
29825
29826
29827# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29828set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029830$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029831if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029832 $as_echo_n "(cached) " >&6
29833else
29834 case $GVCDecodeDelegate in
29835 [\\/]* | ?:[\\/]*)
29836 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29837 ;;
29838 *)
29839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29840for as_dir in $PATH
29841do
29842 IFS=$as_save_IFS
29843 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029844 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29846 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029848 break 2
29849 fi
29850done
cristy8b350f62009-11-15 23:12:43 +000029851 done
cristy3ed852e2009-09-05 21:47:34 +000029852IFS=$as_save_IFS
29853
29854 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29855 ;;
29856esac
29857fi
29858GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29859if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029861$as_echo "$GVCDecodeDelegate" >&6; }
29862else
cristy8b350f62009-11-15 23:12:43 +000029863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029864$as_echo "no" >&6; }
29865fi
29866
29867
29868# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29869set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029871$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029872if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029873 $as_echo_n "(cached) " >&6
29874else
29875 case $DVIDecodeDelegate in
29876 [\\/]* | ?:[\\/]*)
29877 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
29878 ;;
29879 *)
29880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29881for as_dir in $PATH
29882do
29883 IFS=$as_save_IFS
29884 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029885 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29887 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029889 break 2
29890 fi
29891done
cristy8b350f62009-11-15 23:12:43 +000029892 done
cristy3ed852e2009-09-05 21:47:34 +000029893IFS=$as_save_IFS
29894
29895 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
29896 ;;
29897esac
29898fi
29899DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
29900if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029902$as_echo "$DVIDecodeDelegate" >&6; }
29903else
cristy8b350f62009-11-15 23:12:43 +000029904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029905$as_echo "no" >&6; }
29906fi
29907
29908
29909# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
29910set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029912$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029913if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029914 $as_echo_n "(cached) " >&6
29915else
29916 case $EchoDelegate in
29917 [\\/]* | ?:[\\/]*)
29918 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
29919 ;;
29920 *)
29921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29922for as_dir in $PATH
29923do
29924 IFS=$as_save_IFS
29925 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029926 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29928 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029930 break 2
29931 fi
29932done
cristy8b350f62009-11-15 23:12:43 +000029933 done
cristy3ed852e2009-09-05 21:47:34 +000029934IFS=$as_save_IFS
29935
29936 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
29937 ;;
29938esac
29939fi
29940EchoDelegate=$ac_cv_path_EchoDelegate
29941if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029943$as_echo "$EchoDelegate" >&6; }
29944else
cristy8b350f62009-11-15 23:12:43 +000029945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029946$as_echo "no" >&6; }
29947fi
29948
29949
29950# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
29951set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029953$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029954if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029955 $as_echo_n "(cached) " >&6
29956else
29957 case $EditorDelegate in
29958 [\\/]* | ?:[\\/]*)
29959 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
29960 ;;
29961 *)
29962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29963for as_dir in $PATH
29964do
29965 IFS=$as_save_IFS
29966 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029967 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29969 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029971 break 2
29972 fi
29973done
cristy8b350f62009-11-15 23:12:43 +000029974 done
cristy3ed852e2009-09-05 21:47:34 +000029975IFS=$as_save_IFS
29976
29977 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
29978 ;;
29979esac
29980fi
29981EditorDelegate=$ac_cv_path_EditorDelegate
29982if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029984$as_echo "$EditorDelegate" >&6; }
29985else
cristy8b350f62009-11-15 23:12:43 +000029986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029987$as_echo "no" >&6; }
29988fi
29989
29990
29991# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
29992set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029994$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029995if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029996 $as_echo_n "(cached) " >&6
29997else
29998 case $FIGDecodeDelegate in
29999 [\\/]* | ?:[\\/]*)
30000 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30001 ;;
30002 *)
30003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30004for as_dir in $PATH
30005do
30006 IFS=$as_save_IFS
30007 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030008 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30010 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030012 break 2
30013 fi
30014done
cristy8b350f62009-11-15 23:12:43 +000030015 done
cristy3ed852e2009-09-05 21:47:34 +000030016IFS=$as_save_IFS
30017
30018 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30019 ;;
30020esac
30021fi
30022FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30023if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030025$as_echo "$FIGDecodeDelegate" >&6; }
30026else
cristy8b350f62009-11-15 23:12:43 +000030027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030028$as_echo "no" >&6; }
30029fi
30030
30031
30032# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30033set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030035$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030036if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030037 $as_echo_n "(cached) " >&6
30038else
30039 case $ConvertDelegate in
30040 [\\/]* | ?:[\\/]*)
30041 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30042 ;;
30043 *)
30044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30045for as_dir in $PATH
30046do
30047 IFS=$as_save_IFS
30048 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030049 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30051 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030053 break 2
30054 fi
30055done
cristy8b350f62009-11-15 23:12:43 +000030056 done
cristy3ed852e2009-09-05 21:47:34 +000030057IFS=$as_save_IFS
30058
30059 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30060 ;;
30061esac
30062fi
30063ConvertDelegate=$ac_cv_path_ConvertDelegate
30064if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030066$as_echo "$ConvertDelegate" >&6; }
30067else
cristy8b350f62009-11-15 23:12:43 +000030068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030069$as_echo "no" >&6; }
30070fi
30071
30072
30073# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30074set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030076$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030077if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030078 $as_echo_n "(cached) " >&6
30079else
30080 case $DisplayDelegate in
30081 [\\/]* | ?:[\\/]*)
30082 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30083 ;;
30084 *)
30085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30086for as_dir in $PATH
30087do
30088 IFS=$as_save_IFS
30089 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030090 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30092 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030094 break 2
30095 fi
30096done
cristy8b350f62009-11-15 23:12:43 +000030097 done
cristy3ed852e2009-09-05 21:47:34 +000030098IFS=$as_save_IFS
30099
30100 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30101 ;;
30102esac
30103fi
30104DisplayDelegate=$ac_cv_path_DisplayDelegate
30105if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030107$as_echo "$DisplayDelegate" >&6; }
30108else
cristy8b350f62009-11-15 23:12:43 +000030109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030110$as_echo "no" >&6; }
30111fi
30112
30113
30114# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30115set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030117$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030118if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030119 $as_echo_n "(cached) " >&6
30120else
30121 case $MogrifyDelegate in
30122 [\\/]* | ?:[\\/]*)
30123 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30124 ;;
30125 *)
30126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30127for as_dir in $PATH
30128do
30129 IFS=$as_save_IFS
30130 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030131 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30133 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030135 break 2
30136 fi
30137done
cristy8b350f62009-11-15 23:12:43 +000030138 done
cristy3ed852e2009-09-05 21:47:34 +000030139IFS=$as_save_IFS
30140
30141 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30142 ;;
30143esac
30144fi
30145MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30146if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030148$as_echo "$MogrifyDelegate" >&6; }
30149else
cristy8b350f62009-11-15 23:12:43 +000030150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030151$as_echo "no" >&6; }
30152fi
30153
30154
30155# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30156set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030158$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030159if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030160 $as_echo_n "(cached) " >&6
30161else
30162 case $GnuplotDecodeDelegate in
30163 [\\/]* | ?:[\\/]*)
30164 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30165 ;;
30166 *)
30167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30168for as_dir in $PATH
30169do
30170 IFS=$as_save_IFS
30171 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030172 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30174 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030176 break 2
30177 fi
30178done
cristy8b350f62009-11-15 23:12:43 +000030179 done
cristy3ed852e2009-09-05 21:47:34 +000030180IFS=$as_save_IFS
30181
30182 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30183 ;;
30184esac
30185fi
30186GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30187if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030189$as_echo "$GnuplotDecodeDelegate" >&6; }
30190else
cristy8b350f62009-11-15 23:12:43 +000030191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030192$as_echo "no" >&6; }
30193fi
30194
30195
30196# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30197set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030199$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030200if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030201 $as_echo_n "(cached) " >&6
30202else
30203 case $HDRDecodeDelegate in
30204 [\\/]* | ?:[\\/]*)
30205 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30206 ;;
30207 *)
30208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30209for as_dir in $PATH
30210do
30211 IFS=$as_save_IFS
30212 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030213 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30215 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030217 break 2
30218 fi
30219done
cristy8b350f62009-11-15 23:12:43 +000030220 done
cristy3ed852e2009-09-05 21:47:34 +000030221IFS=$as_save_IFS
30222
30223 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30224 ;;
30225esac
30226fi
30227HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30228if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030230$as_echo "$HDRDecodeDelegate" >&6; }
30231else
cristy8b350f62009-11-15 23:12:43 +000030232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030233$as_echo "no" >&6; }
30234fi
30235
30236
30237# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30238set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030240$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030241if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030242 $as_echo_n "(cached) " >&6
30243else
30244 case $HPGLDecodeDelegate in
30245 [\\/]* | ?:[\\/]*)
30246 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30247 ;;
30248 *)
30249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30250for as_dir in $PATH
30251do
30252 IFS=$as_save_IFS
30253 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030254 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30256 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030258 break 2
30259 fi
30260done
cristy8b350f62009-11-15 23:12:43 +000030261 done
cristy3ed852e2009-09-05 21:47:34 +000030262IFS=$as_save_IFS
30263
30264 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30265 ;;
30266esac
30267fi
30268HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30269if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030271$as_echo "$HPGLDecodeDelegate" >&6; }
30272else
cristy8b350f62009-11-15 23:12:43 +000030273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030274$as_echo "no" >&6; }
30275fi
30276
30277
30278# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30279set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030281$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030282if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030283 $as_echo_n "(cached) " >&6
30284else
30285 case $HTMLDecodeDelegate in
30286 [\\/]* | ?:[\\/]*)
30287 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30288 ;;
30289 *)
30290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30291for as_dir in $PATH
30292do
30293 IFS=$as_save_IFS
30294 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030295 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30297 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030299 break 2
30300 fi
30301done
cristy8b350f62009-11-15 23:12:43 +000030302 done
cristy3ed852e2009-09-05 21:47:34 +000030303IFS=$as_save_IFS
30304
30305 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30306 ;;
30307esac
30308fi
30309HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30310if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030312$as_echo "$HTMLDecodeDelegate" >&6; }
30313else
cristy8b350f62009-11-15 23:12:43 +000030314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030315$as_echo "no" >&6; }
30316fi
30317
30318
30319# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30320set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030322$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030323if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030324 $as_echo_n "(cached) " >&6
30325else
30326 case $ILBMDecodeDelegate in
30327 [\\/]* | ?:[\\/]*)
30328 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30329 ;;
30330 *)
30331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30332for as_dir in $PATH
30333do
30334 IFS=$as_save_IFS
30335 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030336 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30338 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030340 break 2
30341 fi
30342done
cristy8b350f62009-11-15 23:12:43 +000030343 done
cristy3ed852e2009-09-05 21:47:34 +000030344IFS=$as_save_IFS
30345
30346 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30347 ;;
30348esac
30349fi
30350ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30351if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030353$as_echo "$ILBMDecodeDelegate" >&6; }
30354else
cristy8b350f62009-11-15 23:12:43 +000030355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030356$as_echo "no" >&6; }
30357fi
30358
30359
30360# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30361set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030363$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030364if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030365 $as_echo_n "(cached) " >&6
30366else
30367 case $ILBMEncodeDelegate in
30368 [\\/]* | ?:[\\/]*)
30369 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30370 ;;
30371 *)
30372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30373for as_dir in $PATH
30374do
30375 IFS=$as_save_IFS
30376 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030377 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30379 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030381 break 2
30382 fi
30383done
cristy8b350f62009-11-15 23:12:43 +000030384 done
cristy3ed852e2009-09-05 21:47:34 +000030385IFS=$as_save_IFS
30386
30387 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30388 ;;
30389esac
30390fi
30391ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30392if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030394$as_echo "$ILBMEncodeDelegate" >&6; }
30395else
cristy8b350f62009-11-15 23:12:43 +000030396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030397$as_echo "no" >&6; }
30398fi
30399
30400
30401# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30402set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030404$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030405if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030406 $as_echo_n "(cached) " >&6
30407else
30408 case $LPDelegate in
30409 [\\/]* | ?:[\\/]*)
30410 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30411 ;;
30412 *)
30413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30414for as_dir in $PATH
30415do
30416 IFS=$as_save_IFS
30417 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030418 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30420 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030422 break 2
30423 fi
30424done
cristy8b350f62009-11-15 23:12:43 +000030425 done
cristy3ed852e2009-09-05 21:47:34 +000030426IFS=$as_save_IFS
30427
30428 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30429 ;;
30430esac
30431fi
30432LPDelegate=$ac_cv_path_LPDelegate
30433if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030435$as_echo "$LPDelegate" >&6; }
30436else
cristy8b350f62009-11-15 23:12:43 +000030437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030438$as_echo "no" >&6; }
30439fi
30440
30441
30442# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30443set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030445$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030446if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030447 $as_echo_n "(cached) " >&6
30448else
30449 case $LPRDelegate in
30450 [\\/]* | ?:[\\/]*)
30451 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30452 ;;
30453 *)
30454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30455for as_dir in $PATH
30456do
30457 IFS=$as_save_IFS
30458 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030459 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30461 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030463 break 2
30464 fi
30465done
cristy8b350f62009-11-15 23:12:43 +000030466 done
cristy3ed852e2009-09-05 21:47:34 +000030467IFS=$as_save_IFS
30468
30469 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30470 ;;
30471esac
30472fi
30473LPRDelegate=$ac_cv_path_LPRDelegate
30474if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030476$as_echo "$LPRDelegate" >&6; }
30477else
cristy8b350f62009-11-15 23:12:43 +000030478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030479$as_echo "no" >&6; }
30480fi
30481
30482
30483# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30484set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030486$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030487if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030488 $as_echo_n "(cached) " >&6
30489else
30490 case $LZWDecodeDelegate in
30491 [\\/]* | ?:[\\/]*)
30492 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30493 ;;
30494 *)
30495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30496for as_dir in $PATH
30497do
30498 IFS=$as_save_IFS
30499 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030500 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30502 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030504 break 2
30505 fi
30506done
cristy8b350f62009-11-15 23:12:43 +000030507 done
cristy3ed852e2009-09-05 21:47:34 +000030508IFS=$as_save_IFS
30509
30510 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30511 ;;
30512esac
30513fi
30514LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30515if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030517$as_echo "$LZWDecodeDelegate" >&6; }
30518else
cristy8b350f62009-11-15 23:12:43 +000030519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030520$as_echo "no" >&6; }
30521fi
30522
30523
30524# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30525set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030527$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030528if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030529 $as_echo_n "(cached) " >&6
30530else
30531 case $LZWEncodeDelegate in
30532 [\\/]* | ?:[\\/]*)
30533 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30534 ;;
30535 *)
30536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30537for as_dir in $PATH
30538do
30539 IFS=$as_save_IFS
30540 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030541 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30543 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030545 break 2
30546 fi
30547done
cristy8b350f62009-11-15 23:12:43 +000030548 done
cristy3ed852e2009-09-05 21:47:34 +000030549IFS=$as_save_IFS
30550
30551 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30552 ;;
30553esac
30554fi
30555LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30556if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030558$as_echo "$LZWEncodeDelegate" >&6; }
30559else
cristy8b350f62009-11-15 23:12:43 +000030560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030561$as_echo "no" >&6; }
30562fi
30563
30564
30565# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30566set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030568$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030569if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030570 $as_echo_n "(cached) " >&6
30571else
30572 case $LaunchDelegate in
30573 [\\/]* | ?:[\\/]*)
30574 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30575 ;;
30576 *)
30577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30578for as_dir in $PATH
30579do
30580 IFS=$as_save_IFS
30581 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030582 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30584 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030586 break 2
30587 fi
30588done
cristy8b350f62009-11-15 23:12:43 +000030589 done
cristy3ed852e2009-09-05 21:47:34 +000030590IFS=$as_save_IFS
30591
30592 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30593 ;;
30594esac
30595fi
30596LaunchDelegate=$ac_cv_path_LaunchDelegate
30597if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030599$as_echo "$LaunchDelegate" >&6; }
30600else
cristy8b350f62009-11-15 23:12:43 +000030601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030602$as_echo "no" >&6; }
30603fi
30604
30605
30606# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30607set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030609$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030610if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030611 $as_echo_n "(cached) " >&6
30612else
30613 case $MANDelegate in
30614 [\\/]* | ?:[\\/]*)
30615 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30616 ;;
30617 *)
30618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30619for as_dir in $PATH
30620do
30621 IFS=$as_save_IFS
30622 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030623 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30625 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030627 break 2
30628 fi
30629done
cristy8b350f62009-11-15 23:12:43 +000030630 done
cristy3ed852e2009-09-05 21:47:34 +000030631IFS=$as_save_IFS
30632
30633 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30634 ;;
30635esac
30636fi
30637MANDelegate=$ac_cv_path_MANDelegate
30638if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030640$as_echo "$MANDelegate" >&6; }
30641else
cristy8b350f62009-11-15 23:12:43 +000030642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030643$as_echo "no" >&6; }
30644fi
30645
30646
30647# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30648set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030650$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030651if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030652 $as_echo_n "(cached) " >&6
30653else
30654 case $MPEGDecodeDelegate in
30655 [\\/]* | ?:[\\/]*)
30656 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30657 ;;
30658 *)
30659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30660for as_dir in $PATH
30661do
30662 IFS=$as_save_IFS
30663 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030664 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30666 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030668 break 2
30669 fi
30670done
cristy8b350f62009-11-15 23:12:43 +000030671 done
cristy3ed852e2009-09-05 21:47:34 +000030672IFS=$as_save_IFS
30673
30674 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30675 ;;
30676esac
30677fi
30678MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30679if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030681$as_echo "$MPEGDecodeDelegate" >&6; }
30682else
cristy8b350f62009-11-15 23:12:43 +000030683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030684$as_echo "no" >&6; }
30685fi
30686
30687
30688# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30689set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030691$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030692if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030693 $as_echo_n "(cached) " >&6
30694else
30695 case $MPEGEncodeDelegate in
30696 [\\/]* | ?:[\\/]*)
30697 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30698 ;;
30699 *)
30700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30701for as_dir in $PATH
30702do
30703 IFS=$as_save_IFS
30704 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030705 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30707 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030709 break 2
30710 fi
30711done
cristy8b350f62009-11-15 23:12:43 +000030712 done
cristy3ed852e2009-09-05 21:47:34 +000030713IFS=$as_save_IFS
30714
30715 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30716 ;;
30717esac
30718fi
30719MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30720if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030722$as_echo "$MPEGEncodeDelegate" >&6; }
30723else
cristy8b350f62009-11-15 23:12:43 +000030724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030725$as_echo "no" >&6; }
30726fi
30727
30728
cristy935c86e2010-06-05 23:50:07 +000030729# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30730set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30732$as_echo_n "checking for $ac_word... " >&6; }
30733if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30734 $as_echo_n "(cached) " >&6
30735else
30736 case $MrSIDDecodeDelegate in
30737 [\\/]* | ?:[\\/]*)
30738 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
30739 ;;
30740 *)
30741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30742for as_dir in $PATH
30743do
30744 IFS=$as_save_IFS
30745 test -z "$as_dir" && as_dir=.
30746 for ac_exec_ext in '' $ac_executable_extensions; do
30747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30748 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30750 break 2
30751 fi
30752done
30753 done
30754IFS=$as_save_IFS
30755
30756 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
30757 ;;
30758esac
30759fi
30760MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
30761if test -n "$MrSIDDecodeDelegate"; then
30762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
30763$as_echo "$MrSIDDecodeDelegate" >&6; }
30764else
30765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30766$as_echo "no" >&6; }
30767fi
30768
30769
cristy3ed852e2009-09-05 21:47:34 +000030770# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30771set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030773$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030774if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030775 $as_echo_n "(cached) " >&6
30776else
30777 case $MVDelegate in
30778 [\\/]* | ?:[\\/]*)
30779 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30780 ;;
30781 *)
30782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30783for as_dir in $PATH
30784do
30785 IFS=$as_save_IFS
30786 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030787 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30789 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030791 break 2
30792 fi
30793done
cristy8b350f62009-11-15 23:12:43 +000030794 done
cristy3ed852e2009-09-05 21:47:34 +000030795IFS=$as_save_IFS
30796
30797 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30798 ;;
30799esac
30800fi
30801MVDelegate=$ac_cv_path_MVDelegate
30802if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030804$as_echo "$MVDelegate" >&6; }
30805else
cristy8b350f62009-11-15 23:12:43 +000030806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030807$as_echo "no" >&6; }
30808fi
30809
30810
30811# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30812set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030814$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030815if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030816 $as_echo_n "(cached) " >&6
30817else
30818 case $PCLDelegate in
30819 [\\/]* | ?:[\\/]*)
30820 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30821 ;;
30822 *)
30823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30824for as_dir in $PATH
30825do
30826 IFS=$as_save_IFS
30827 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030828 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30830 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030832 break 2
30833 fi
30834done
cristy8b350f62009-11-15 23:12:43 +000030835 done
cristy3ed852e2009-09-05 21:47:34 +000030836IFS=$as_save_IFS
30837
30838 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30839 ;;
30840esac
30841fi
30842PCLDelegate=$ac_cv_path_PCLDelegate
30843if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030845$as_echo "$PCLDelegate" >&6; }
30846else
cristy8b350f62009-11-15 23:12:43 +000030847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030848$as_echo "no" >&6; }
30849fi
30850
30851
30852# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30853set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030855$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030856if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030857 $as_echo_n "(cached) " >&6
30858else
30859 case $PGPDecodeDelegate in
30860 [\\/]* | ?:[\\/]*)
30861 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30862 ;;
30863 *)
30864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30865for as_dir in $PATH
30866do
30867 IFS=$as_save_IFS
30868 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030869 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30871 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030873 break 2
30874 fi
30875done
cristy8b350f62009-11-15 23:12:43 +000030876 done
cristy3ed852e2009-09-05 21:47:34 +000030877IFS=$as_save_IFS
30878
30879 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30880 ;;
30881esac
30882fi
30883PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30884if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030886$as_echo "$PGPDecodeDelegate" >&6; }
30887else
cristy8b350f62009-11-15 23:12:43 +000030888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030889$as_echo "no" >&6; }
30890fi
30891
30892
30893# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
30894set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030896$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030897if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030898 $as_echo_n "(cached) " >&6
30899else
30900 case $POVDelegate in
30901 [\\/]* | ?:[\\/]*)
30902 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
30903 ;;
30904 *)
30905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30906for as_dir in $PATH
30907do
30908 IFS=$as_save_IFS
30909 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030910 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30912 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030914 break 2
30915 fi
30916done
cristy8b350f62009-11-15 23:12:43 +000030917 done
cristy3ed852e2009-09-05 21:47:34 +000030918IFS=$as_save_IFS
30919
30920 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
30921 ;;
30922esac
30923fi
30924POVDelegate=$ac_cv_path_POVDelegate
30925if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030927$as_echo "$POVDelegate" >&6; }
30928else
cristy8b350f62009-11-15 23:12:43 +000030929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030930$as_echo "no" >&6; }
30931fi
30932
30933
30934for ac_prog in gsx gsc "$PSDelegateDefault"
30935do
30936 # Extract the first word of "$ac_prog", so it can be a program name with args.
30937set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030939$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030940if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030941 $as_echo_n "(cached) " >&6
30942else
30943 case $PSDelegate in
30944 [\\/]* | ?:[\\/]*)
30945 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
30946 ;;
30947 *)
30948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30949for as_dir in $PATH
30950do
30951 IFS=$as_save_IFS
30952 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030953 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30955 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030957 break 2
30958 fi
30959done
cristy8b350f62009-11-15 23:12:43 +000030960 done
cristy3ed852e2009-09-05 21:47:34 +000030961IFS=$as_save_IFS
30962
30963 ;;
30964esac
30965fi
30966PSDelegate=$ac_cv_path_PSDelegate
30967if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030969$as_echo "$PSDelegate" >&6; }
30970else
cristy8b350f62009-11-15 23:12:43 +000030971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030972$as_echo "no" >&6; }
30973fi
30974
30975
30976 test -n "$PSDelegate" && break
30977done
30978test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
30979
30980# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
30981set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030983$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030984if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030985 $as_echo_n "(cached) " >&6
30986else
30987 case $RLEEncodeDelegate in
30988 [\\/]* | ?:[\\/]*)
30989 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
30990 ;;
30991 *)
30992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30993for as_dir in $PATH
30994do
30995 IFS=$as_save_IFS
30996 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030997 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30999 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031001 break 2
31002 fi
31003done
cristy8b350f62009-11-15 23:12:43 +000031004 done
cristy3ed852e2009-09-05 21:47:34 +000031005IFS=$as_save_IFS
31006
31007 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31008 ;;
31009esac
31010fi
31011RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31012if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031014$as_echo "$RLEEncodeDelegate" >&6; }
31015else
cristy8b350f62009-11-15 23:12:43 +000031016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031017$as_echo "no" >&6; }
31018fi
31019
31020
31021# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31022set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031024$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031025if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031026 $as_echo_n "(cached) " >&6
31027else
31028 case $RMDelegate in
31029 [\\/]* | ?:[\\/]*)
31030 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31031 ;;
31032 *)
31033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31034for as_dir in $PATH
31035do
31036 IFS=$as_save_IFS
31037 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031038 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31040 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031042 break 2
31043 fi
31044done
cristy8b350f62009-11-15 23:12:43 +000031045 done
cristy3ed852e2009-09-05 21:47:34 +000031046IFS=$as_save_IFS
31047
31048 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31049 ;;
31050esac
31051fi
31052RMDelegate=$ac_cv_path_RMDelegate
31053if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031055$as_echo "$RMDelegate" >&6; }
31056else
cristy8b350f62009-11-15 23:12:43 +000031057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031058$as_echo "no" >&6; }
31059fi
31060
31061
cristy4689cf02010-02-17 21:15:45 +000031062# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31063set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31065$as_echo_n "checking for $ac_word... " >&6; }
31066if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31067 $as_echo_n "(cached) " >&6
31068else
31069 case $RSVGDecodeDelegate in
31070 [\\/]* | ?:[\\/]*)
31071 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31072 ;;
31073 *)
31074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31075for as_dir in $PATH
31076do
31077 IFS=$as_save_IFS
31078 test -z "$as_dir" && as_dir=.
31079 for ac_exec_ext in '' $ac_executable_extensions; do
31080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31081 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31083 break 2
31084 fi
31085done
31086 done
31087IFS=$as_save_IFS
31088
31089 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31090 ;;
31091esac
31092fi
31093RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31094if test -n "$RSVGDecodeDelegate"; then
31095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31096$as_echo "$RSVGDecodeDelegate" >&6; }
31097else
31098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31099$as_echo "no" >&6; }
31100fi
31101
31102
cristy3ed852e2009-09-05 21:47:34 +000031103# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31104set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031106$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031107if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031108 $as_echo_n "(cached) " >&6
31109else
31110 case $SCANDecodeDelegate in
31111 [\\/]* | ?:[\\/]*)
31112 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31113 ;;
31114 *)
31115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31116for as_dir in $PATH
31117do
31118 IFS=$as_save_IFS
31119 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031120 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31122 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031124 break 2
31125 fi
31126done
cristy8b350f62009-11-15 23:12:43 +000031127 done
cristy3ed852e2009-09-05 21:47:34 +000031128IFS=$as_save_IFS
31129
31130 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31131 ;;
31132esac
31133fi
31134SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31135if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031137$as_echo "$SCANDecodeDelegate" >&6; }
31138else
cristy8b350f62009-11-15 23:12:43 +000031139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031140$as_echo "no" >&6; }
31141fi
31142
31143
31144# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31145set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031147$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031148if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031149 $as_echo_n "(cached) " >&6
31150else
31151 case $TXTDelegate in
31152 [\\/]* | ?:[\\/]*)
31153 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31154 ;;
31155 *)
31156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31157for as_dir in $PATH
31158do
31159 IFS=$as_save_IFS
31160 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031161 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31163 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031165 break 2
31166 fi
31167done
cristy8b350f62009-11-15 23:12:43 +000031168 done
cristy3ed852e2009-09-05 21:47:34 +000031169IFS=$as_save_IFS
31170
31171 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31172 ;;
31173esac
31174fi
31175TXTDelegate=$ac_cv_path_TXTDelegate
31176if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031178$as_echo "$TXTDelegate" >&6; }
31179else
cristy8b350f62009-11-15 23:12:43 +000031180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031181$as_echo "no" >&6; }
31182fi
31183
31184
cristy5ac9ac82010-07-29 13:24:24 +000031185# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
31186set dummy "$UniconvertorDelegateDefault"; ac_word=$2
31187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31188$as_echo_n "checking for $ac_word... " >&6; }
31189if test "${ac_cv_path_UniconvertorDelegate+set}" = set; then :
31190 $as_echo_n "(cached) " >&6
31191else
31192 case $UniconvertorDelegate in
31193 [\\/]* | ?:[\\/]*)
31194 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
31195 ;;
31196 *)
31197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31198for as_dir in $PATH
31199do
31200 IFS=$as_save_IFS
31201 test -z "$as_dir" && as_dir=.
31202 for ac_exec_ext in '' $ac_executable_extensions; do
31203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31204 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
31205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31206 break 2
31207 fi
31208done
31209 done
31210IFS=$as_save_IFS
31211
31212 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
31213 ;;
31214esac
31215fi
31216UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
31217if test -n "$UniconvertorDelegate"; then
31218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
31219$as_echo "$UniconvertorDelegate" >&6; }
31220else
31221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31222$as_echo "no" >&6; }
31223fi
31224
31225
cristy23f7a922010-10-11 00:27:48 +000031226# Extract the first word of ""$WEBPDelegateDefault"", so it can be a program name with args.
31227set dummy "$WEBPDelegateDefault"; ac_word=$2
31228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31229$as_echo_n "checking for $ac_word... " >&6; }
31230if test "${ac_cv_path_WEBPDelegate+set}" = set; then :
31231 $as_echo_n "(cached) " >&6
31232else
31233 case $WEBPDelegate in
31234 [\\/]* | ?:[\\/]*)
31235 ac_cv_path_WEBPDelegate="$WEBPDelegate" # Let the user override the test with a path.
31236 ;;
31237 *)
31238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31239for as_dir in $PATH
31240do
31241 IFS=$as_save_IFS
31242 test -z "$as_dir" && as_dir=.
31243 for ac_exec_ext in '' $ac_executable_extensions; do
31244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31245 ac_cv_path_WEBPDelegate="$as_dir/$ac_word$ac_exec_ext"
31246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31247 break 2
31248 fi
31249done
31250 done
31251IFS=$as_save_IFS
31252
31253 test -z "$ac_cv_path_WEBPDelegate" && ac_cv_path_WEBPDelegate=""$WEBPDelegateDefault""
31254 ;;
31255esac
31256fi
31257WEBPDelegate=$ac_cv_path_WEBPDelegate
31258if test -n "$WEBPDelegate"; then
31259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WEBPDelegate" >&5
31260$as_echo "$WEBPDelegate" >&6; }
31261else
31262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31263$as_echo "no" >&6; }
31264fi
31265
31266
cristy3ed852e2009-09-05 21:47:34 +000031267# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31268set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031270$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031271if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031272 $as_echo_n "(cached) " >&6
31273else
31274 case $WMFDecodeDelegate in
31275 [\\/]* | ?:[\\/]*)
31276 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31277 ;;
31278 *)
31279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31280for as_dir in $PATH
31281do
31282 IFS=$as_save_IFS
31283 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031284 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31286 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031288 break 2
31289 fi
31290done
cristy8b350f62009-11-15 23:12:43 +000031291 done
cristy3ed852e2009-09-05 21:47:34 +000031292IFS=$as_save_IFS
31293
31294 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31295 ;;
31296esac
31297fi
31298WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31299if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031301$as_echo "$WMFDecodeDelegate" >&6; }
31302else
cristy8b350f62009-11-15 23:12:43 +000031303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031304$as_echo "no" >&6; }
31305fi
31306
31307
31308# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31309set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031311$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031312if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031313 $as_echo_n "(cached) " >&6
31314else
31315 case $WWWDecodeDelegate in
31316 [\\/]* | ?:[\\/]*)
31317 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31318 ;;
31319 *)
31320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31321for as_dir in $PATH
31322do
31323 IFS=$as_save_IFS
31324 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031325 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31327 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031329 break 2
31330 fi
31331done
cristy8b350f62009-11-15 23:12:43 +000031332 done
cristy3ed852e2009-09-05 21:47:34 +000031333IFS=$as_save_IFS
31334
31335 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31336 ;;
31337esac
31338fi
31339WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31340if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031342$as_echo "$WWWDecodeDelegate" >&6; }
31343else
cristy8b350f62009-11-15 23:12:43 +000031344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031345$as_echo "no" >&6; }
31346fi
31347
31348
31349# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31350set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031352$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031353if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031354 $as_echo_n "(cached) " >&6
31355else
31356 case $XPSDelegate in
31357 [\\/]* | ?:[\\/]*)
31358 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31359 ;;
31360 *)
31361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31362for as_dir in $PATH
31363do
31364 IFS=$as_save_IFS
31365 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031366 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31368 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031370 break 2
31371 fi
31372done
cristy8b350f62009-11-15 23:12:43 +000031373 done
cristy3ed852e2009-09-05 21:47:34 +000031374IFS=$as_save_IFS
31375
31376 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31377 ;;
31378esac
31379fi
31380XPSDelegate=$ac_cv_path_XPSDelegate
31381if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031383$as_echo "$XPSDelegate" >&6; }
31384else
cristy8b350f62009-11-15 23:12:43 +000031385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031386$as_echo "no" >&6; }
31387fi
31388
31389
31390# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31391set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031393$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031394if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031395 $as_echo_n "(cached) " >&6
31396else
31397 case $ZipDelegate in
31398 [\\/]* | ?:[\\/]*)
31399 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31400 ;;
31401 *)
31402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31403for as_dir in $PATH
31404do
31405 IFS=$as_save_IFS
31406 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031407 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31409 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031411 break 2
31412 fi
31413done
cristy8b350f62009-11-15 23:12:43 +000031414 done
cristy3ed852e2009-09-05 21:47:34 +000031415IFS=$as_save_IFS
31416
31417 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31418 ;;
31419esac
31420fi
31421ZipDelegate=$ac_cv_path_ZipDelegate
31422if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031424$as_echo "$ZipDelegate" >&6; }
31425else
cristy8b350f62009-11-15 23:12:43 +000031426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031427$as_echo "no" >&6; }
31428fi
31429
31430
31431
31432# Prefer lpr to lp; lp needs options tacked on.
31433if test "$LPRDelegate" != no; then
31434 PrintDelegate="$LPRDelegate"
31435else
31436 PrintDelegate="$LPDelegate -c -s"
31437fi
31438
31439
31440# Installed ImageMagick utiltity paths
31441ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31442DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31443MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31444
31445# Set delegate booleans
31446have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31447have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31448have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31449have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31450have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000031451have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000031452have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31453have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31454have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31455have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31456have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31457
31458#
31459# Test for font directories
31460#
31461type_include_files=''
31462
cristy430a7312010-01-21 20:44:04 +000031463# Dejavu fonts.
31464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31465$as_echo_n "checking for Dejavu fonts directory... " >&6; }
31466dejavu_font_dir=''
31467if test "${with_dejavu_font_dir}" != 'default'; then
31468 dejavu_font_dir="${with_dejavu_font_dir}/"
31469else
31470 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31471 if test -f "${font_dir}DejaVuSerif.ttf"; then
31472 dejavu_font_dir="${font_dir}"
31473 break 1
31474 fi
31475 done
31476fi
31477if test "${dejavu_font_dir}x" != 'x'; then
31478 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31480$as_echo "$dejavu_font_dir" >&6; }
31481else
31482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31483$as_echo "not found!" >&6; };
31484fi
31485
31486
cristy3ed852e2009-09-05 21:47:34 +000031487# Windows
31488windows_font_dir=''
31489if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31490 windows_font_dir="${with_windows_font_dir}/"
31491fi
cristy430a7312010-01-21 20:44:04 +000031492if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031493 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31494 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31495 fi
31496 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31497 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31498 fi
31499 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31500 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31501 fi
31502fi
cristy430a7312010-01-21 20:44:04 +000031503if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031504 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31505fi
31506
31507
31508# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000031509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000031510$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31511ghostscript_font_dir=''
31512if test "${with_gs_font_dir}" != 'default'; then
31513 ghostscript_font_dir="${with_gs_font_dir}/"
31514else
31515 if test "${native_win32_build}" = 'yes'; then
31516 # Native Windows Build
31517 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31518 if test -f "${font_dir}a010013l.pfb"; then
31519 ghostscript_font_dir="$font_dir"
31520 break 1
31521 fi
31522 done
31523 if test "${PSDelegate}" != 'gswin32c'; then
31524 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31525 fi
31526 else
31527 # Linux / Mac OS X / Unix Build
31528 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
31529 if test -f "${font_dir}a010013l.pfb"; then
31530 ghostscript_font_dir="${font_dir}"
31531 break 1
31532 fi
31533 done
31534 if test "${ghostscript_font_dir}x" = 'x'; then
31535 if test "$PSDelegate" != 'gs'; then
31536 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31537 fi
31538 fi
31539 fi
31540fi
31541if test "${ghostscript_font_dir}x" != 'x'; then
31542 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000031543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000031544$as_echo "$ghostscript_font_dir" >&6; }
31545else
cristy8b350f62009-11-15 23:12:43 +000031546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000031547$as_echo "not found!" >&6; };
31548fi
31549
31550case "${build_os}" in
31551 mingw* )
31552 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31553 ;;
31554esac
31555
31556
31557
31558#
31559# Handle case where user doesn't want frozen paths
31560#
31561if test "$with_frozenpaths" != 'yes'; then
31562 # Re-set delegate definitions to default (no paths)
31563 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031564 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31565 BZIPDelegate="$BZIPDelegateDefault"
31566 BrowseDelegate="$BrowseDelegateDefault"
31567 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31568 CatDelegate="$CatDelegateDefault"
31569 ConvertDelegate="$ConvertDelegateDefault"
31570 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31571 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31572 EchoDelegate="$EchoDelegateDefault"
31573 EditorDelegate="$EditorDelegateDefault"
31574 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31575 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31576 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31577 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31578 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31579 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31580 LPDelegate="$LPDelegateDefault"
31581 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31582 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31583 LaunchDelegate="$LaunchDelegateDefault"
31584 MANDelegate="$MANDelegateDefault"
31585 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31586 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031587 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000031588 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31589 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031590 PCLDelegate="$PCLDelegateDefault"
31591 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31592 POVDelegate="$POVDelegateDefault"
31593 PSDelegate="$PSDelegateDefault"
31594 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31595 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31596 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000031597 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031598 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31599 ShowImageDelegate="$ShowImageDelegateDefault"
31600 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000031601 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy23f7a922010-10-11 00:27:48 +000031602 WEBPDelegate="$WEBPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031603 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31604 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31605 XPSDelegate="$XPSDelegateDefault"
31606 ZipDelegate="$ZipDelegateDefault"
31607fi
31608
31609# Delegate substitutions
31610
31611
31612
31613
31614
31615
31616
31617
31618
31619
31620
31621
31622
31623
31624
31625
31626
31627
31628
31629
31630
31631
31632
31633
31634
31635
31636
31637
31638
31639
31640
31641
31642
31643
31644
31645
31646
31647
31648
31649
31650
31651
cristy935c86e2010-06-05 23:50:07 +000031652
cristy5ac9ac82010-07-29 13:24:24 +000031653
cristy3ed852e2009-09-05 21:47:34 +000031654#
31655# RPM support.
31656#
31657RPM=''
31658for ac_prog in gnutar gtar tar
31659do
31660 # Extract the first word of "$ac_prog", so it can be a program name with args.
31661set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031663$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031664if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031665 $as_echo_n "(cached) " >&6
31666else
31667 if test -n "$TAR"; then
31668 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31669else
31670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31671for as_dir in $PATH
31672do
31673 IFS=$as_save_IFS
31674 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031675 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31677 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031679 break 2
31680 fi
31681done
cristy8b350f62009-11-15 23:12:43 +000031682 done
cristy3ed852e2009-09-05 21:47:34 +000031683IFS=$as_save_IFS
31684
31685fi
31686fi
31687TAR=$ac_cv_prog_TAR
31688if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000031689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000031690$as_echo "$TAR" >&6; }
31691else
cristy8b350f62009-11-15 23:12:43 +000031692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031693$as_echo "no" >&6; }
31694fi
31695
31696
31697 test -n "$TAR" && break
31698done
31699
31700for ac_prog in perl
31701do
31702 # Extract the first word of "$ac_prog", so it can be a program name with args.
31703set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031705$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031706if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031707 $as_echo_n "(cached) " >&6
31708else
31709 if test -n "$PERL"; then
31710 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31711else
31712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31713for as_dir in $PATH
31714do
31715 IFS=$as_save_IFS
31716 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031717 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31719 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031721 break 2
31722 fi
31723done
cristy8b350f62009-11-15 23:12:43 +000031724 done
cristy3ed852e2009-09-05 21:47:34 +000031725IFS=$as_save_IFS
31726
31727fi
31728fi
31729PERL=$ac_cv_prog_PERL
31730if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031732$as_echo "$PERL" >&6; }
31733else
cristy8b350f62009-11-15 23:12:43 +000031734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031735$as_echo "no" >&6; }
31736fi
31737
31738
31739 test -n "$PERL" && break
31740done
31741
31742for ac_prog in rpmbuild rpm
31743do
31744 # Extract the first word of "$ac_prog", so it can be a program name with args.
31745set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031747$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031748if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031749 $as_echo_n "(cached) " >&6
31750else
31751 if test -n "$RPM"; then
31752 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31753else
31754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31755for as_dir in $PATH
31756do
31757 IFS=$as_save_IFS
31758 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031759 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31761 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031763 break 2
31764 fi
31765done
cristy8b350f62009-11-15 23:12:43 +000031766 done
cristy3ed852e2009-09-05 21:47:34 +000031767IFS=$as_save_IFS
31768
31769fi
31770fi
31771RPM=$ac_cv_prog_RPM
31772if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000031773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000031774$as_echo "$RPM" >&6; }
31775else
cristy8b350f62009-11-15 23:12:43 +000031776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031777$as_echo "no" >&6; }
31778fi
31779
31780
31781 test -n "$RPM" && break
31782done
31783
31784
cristy73bd4a52010-10-05 11:24:23 +000031785ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31786
31787
31788AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31789
31790
31791AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31792
31793
31794AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31795
31796
31797 if test "x$RPM" != "x" ; then
31798 RPM_DELEGATE_TRUE=
31799 RPM_DELEGATE_FALSE='#'
31800else
31801 RPM_DELEGATE_TRUE='#'
31802 RPM_DELEGATE_FALSE=
31803fi
31804
cristy3ed852e2009-09-05 21:47:34 +000031805
31806#
31807# 7ZIP support (http://p7zip.sourceforge.net/)
31808#
31809P7ZIP=''
31810for ac_prog in 7za
31811do
31812 # Extract the first word of "$ac_prog", so it can be a program name with args.
31813set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031815$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031816if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031817 $as_echo_n "(cached) " >&6
31818else
31819 if test -n "$P7ZIP"; then
31820 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31821else
31822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31823for as_dir in $PATH
31824do
31825 IFS=$as_save_IFS
31826 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031827 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31829 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031831 break 2
31832 fi
31833done
cristy8b350f62009-11-15 23:12:43 +000031834 done
cristy3ed852e2009-09-05 21:47:34 +000031835IFS=$as_save_IFS
31836
31837fi
31838fi
31839P7ZIP=$ac_cv_prog_P7ZIP
31840if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031842$as_echo "$P7ZIP" >&6; }
31843else
cristy8b350f62009-11-15 23:12:43 +000031844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031845$as_echo "no" >&6; }
31846fi
31847
31848
31849 test -n "$P7ZIP" && break
31850done
31851
31852
cristy73bd4a52010-10-05 11:24:23 +000031853 if test "x$P7ZIP" != "x" ; then
31854 P7ZIP_DELEGATE_TRUE=
31855 P7ZIP_DELEGATE_FALSE='#'
31856else
31857 P7ZIP_DELEGATE_TRUE='#'
31858 P7ZIP_DELEGATE_FALSE=
31859fi
31860
cristy3ed852e2009-09-05 21:47:34 +000031861
31862#
31863# ZIP support (http://www.info-zip.org/Zip.html)
31864#
31865ZIP=''
31866for ac_prog in zip
31867do
31868 # Extract the first word of "$ac_prog", so it can be a program name with args.
31869set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031871$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031872if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031873 $as_echo_n "(cached) " >&6
31874else
31875 if test -n "$ZIP"; then
31876 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31877else
31878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31879for as_dir in $PATH
31880do
31881 IFS=$as_save_IFS
31882 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031883 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31885 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031887 break 2
31888 fi
31889done
cristy8b350f62009-11-15 23:12:43 +000031890 done
cristy3ed852e2009-09-05 21:47:34 +000031891IFS=$as_save_IFS
31892
31893fi
31894fi
31895ZIP=$ac_cv_prog_ZIP
31896if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031898$as_echo "$ZIP" >&6; }
31899else
cristy8b350f62009-11-15 23:12:43 +000031900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031901$as_echo "no" >&6; }
31902fi
31903
31904
31905 test -n "$ZIP" && break
31906done
31907
31908
cristy73bd4a52010-10-05 11:24:23 +000031909 if test "x$ZIP" != "x" ; then
31910 ZIP_DELEGATE_TRUE=
31911 ZIP_DELEGATE_FALSE='#'
31912else
31913 ZIP_DELEGATE_TRUE='#'
31914 ZIP_DELEGATE_FALSE=
31915fi
31916
cristy3ed852e2009-09-05 21:47:34 +000031917
31918#
31919# GhostPCL related configuration.
31920#
31921PCLColorDevice=ppmraw
31922PCLCMYKDevice=bmpsep8
31923PCLMonoDevice=pbmraw
31924if test -z "$PCLVersion"; then
31925 PCLVersion='unknown'
31926fi
31927if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031929$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031931$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031933$as_echo "" >&6; }
31934 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000031935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031936$as_echo_n "checking for pcl color device... " >&6; }
31937 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31938 :
31939 else
31940 PCLColorDevice=ppmraw
31941 fi
cristy8b350f62009-11-15 23:12:43 +000031942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031943$as_echo "$PCLColorDevice" >&6; }
31944
31945 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031947$as_echo_n "checking for pcl CMYK device... " >&6; }
31948 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31949 :
31950 else
31951 PCLCMYKDevice=$PCLColorDevice
31952 fi
cristy8b350f62009-11-15 23:12:43 +000031953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031954$as_echo "$PCLCMYKDevice" >&6; }
31955
31956 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031958$as_echo_n "checking for pcl mono device... " >&6; }
31959 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31960 :
31961 else
31962 PCLMonoDevice=$PCLColorDevice
31963 fi
cristy8b350f62009-11-15 23:12:43 +000031964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031965$as_echo "$PCLMonoDevice" >&6; }
31966fi
31967
31968
31969
31970
31971
31972
31973#
31974# GhostXPS related configuration.
31975#
31976XPSColorDevice=ppmraw
31977XPSCMYKDevice=bmpsep8
31978XPSMonoDevice=pbmraw
31979if test -z "$XPSVersion"; then
31980 XPSVersion='unknown'
31981fi
31982if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031984$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000031986$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031988$as_echo "" >&6; }
31989 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000031990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031991$as_echo_n "checking for xps color device... " >&6; }
31992 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31993 :
31994 else
31995 XPSColorDevice=ppmraw
31996 fi
cristy8b350f62009-11-15 23:12:43 +000031997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031998$as_echo "$XPSColorDevice" >&6; }
31999
32000 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032002$as_echo_n "checking for xps CMYK device... " >&6; }
32003 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32004 :
32005 else
32006 XPSCMYKDevice=$XPSColorDevice
32007 fi
cristy8b350f62009-11-15 23:12:43 +000032008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032009$as_echo "$XPSCMYKDevice" >&6; }
32010
32011 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032013$as_echo_n "checking for xps mono device... " >&6; }
32014 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32015 :
32016 else
32017 XPSMonoDevice=$XPSColorDevice
32018 fi
cristy8b350f62009-11-15 23:12:43 +000032019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032020$as_echo "$XPSMonoDevice" >&6; }
32021fi
32022
32023
32024
32025
32026
32027
32028#
32029# Ghostscript related configuration.
32030#
32031if test "$have_png" = 'yes'; then
32032 GSAlphaDevice=pngalpha
32033else
32034 GSAlphaDevice=pnmraw
32035fi
32036GSColorDevice=pnmraw
32037GSCMYKDevice=pam
32038GSMonoDevice=pbmraw
32039GSPDFDevice=pdfwrite
32040GSPSDevice=pswrite
32041GSEPSDevice=epswrite
32042GSVersion='unknown'
32043if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032045$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000032047$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032049$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000032051$as_echo_n "checking for Ghostscript version... " >&6; }
32052 if GSVersion=`$PSDelegate --version`; then
32053 :
32054 else
32055 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32056 fi
cristy8b350f62009-11-15 23:12:43 +000032057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000032058$as_echo "$GSVersion" >&6; }
32059
32060 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000032061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032062$as_echo_n "checking for gs alpha device... " >&6; }
32063 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32064 :
32065 else
32066 GSAlphaDevice=pnmraw
32067 fi
cristy8b350f62009-11-15 23:12:43 +000032068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032069$as_echo "$GSAlphaDevice" >&6; }
32070
32071 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032073$as_echo_n "checking for gs color device... " >&6; }
32074 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32075 :
32076 else
32077 GSColorDevice=pnmraw
32078 fi
cristy8b350f62009-11-15 23:12:43 +000032079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032080$as_echo "$GSColorDevice" >&6; }
32081
32082 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032084$as_echo_n "checking for gs CMYK device... " >&6; }
32085 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32086 :
32087 else
32088 GSCMYKDevice=bmpsep8
32089 fi
cristy8b350f62009-11-15 23:12:43 +000032090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032091$as_echo "$GSCMYKDevice" >&6; }
32092
32093 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032095$as_echo_n "checking for gs mono device... " >&6; }
32096 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32097 :
32098 else
32099 GSMonoDevice=$GSColorDevice
32100 fi
cristy8b350f62009-11-15 23:12:43 +000032101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032102$as_echo "$GSMonoDevice" >&6; }
32103
32104 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000032105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032106$as_echo_n "checking for gs PDF writing device... " >&6; }
32107 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32108 :
32109 else
32110 GSPDFDevice=nodevice
32111 fi
cristy8b350f62009-11-15 23:12:43 +000032112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032113$as_echo "$GSPDFDevice" >&6; }
32114
32115 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000032116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032117$as_echo_n "checking for gs PS writing device... " >&6; }
32118 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32119 :
32120 else
32121 GSPSDevice=nodevice
32122 fi
cristy8b350f62009-11-15 23:12:43 +000032123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032124$as_echo "$GSPSDevice" >&6; }
32125
32126 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000032127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032128$as_echo_n "checking for gs EPS writing device... " >&6; }
32129 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32130 :
32131 else
32132 GSEPSDevice=nodevice
32133 fi
cristy8b350f62009-11-15 23:12:43 +000032134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032135$as_echo "$GSEPSDevice" >&6; }
32136fi
32137
32138
32139
32140
32141
32142
32143
32144
32145
32146
32147#
32148# PerlMagick-related configuration
32149#
32150
32151# Look for PERL if PerlMagick requested
32152# If name/path of desired PERL interpreter is specified, look for that one first
32153have_perl='no'
32154if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000032155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032156$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032158$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032160$as_echo "" >&6; }
32161 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032163$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032164if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032165 $as_echo_n "(cached) " >&6
32166else
32167 ac_cv_path_PERL="$with_perl"
32168fi
cristy8b350f62009-11-15 23:12:43 +000032169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032170$as_echo "$ac_cv_path_PERL" >&6; };
32171 PERL=$ac_cv_path_PERL
32172 have_perl="$ac_cv_path_PERL"
32173 else
32174 for ac_prog in perl perl5
32175do
32176 # Extract the first word of "$ac_prog", so it can be a program name with args.
32177set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032179$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032180if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032181 $as_echo_n "(cached) " >&6
32182else
32183 case $PERL in
32184 [\\/]* | ?:[\\/]*)
32185 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32186 ;;
32187 *)
32188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32189for as_dir in $PATH
32190do
32191 IFS=$as_save_IFS
32192 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032193 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32195 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032197 break 2
32198 fi
32199done
cristy8b350f62009-11-15 23:12:43 +000032200 done
cristy3ed852e2009-09-05 21:47:34 +000032201IFS=$as_save_IFS
32202
32203 ;;
32204esac
32205fi
32206PERL=$ac_cv_path_PERL
32207if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032209$as_echo "$PERL" >&6; }
32210else
cristy8b350f62009-11-15 23:12:43 +000032211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032212$as_echo "no" >&6; }
32213fi
32214
32215
32216 test -n "$PERL" && break
32217done
32218 if test "$ac_cv_path_PERL"; then
32219 have_perl="$ac_cv_path_PERL"
32220 fi
32221 fi
32222fi
32223
cristy949301e2010-01-06 01:38:40 +000032224if test "$with_perl" != 'yes' ; then
32225 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32226fi
32227
32228PERL_SUPPORTS_DESTDIR='no'
32229
cristy3ed852e2009-09-05 21:47:34 +000032230with_perl_static='no'
32231with_perl_dynamic='no'
32232if test "$have_perl" != 'no'; then
32233 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32234 with_perl_static='yes'
32235 fi
32236 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32237 with_perl_dynamic='yes'
32238 fi
32239 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000032240
32241
32242
32243
32244 if test -n "$PERL"; then :
32245
32246 ax_perl_version="5.8.1"
32247
32248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32249$as_echo_n "checking for perl version... " >&6; }
32250
32251 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32252
32253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32254$as_echo "$perl_version" >&6; }
32255
32256 PERL_VERSION=$perl_version
32257
32258
32259
32260
32261
32262 # Used to indicate true or false condition
32263 ax_compare_version=false
32264
32265 # Convert the two version strings to be compared into a format that
32266 # allows a simple string comparison. The end result is that a version
32267 # string of the form 1.12.5-r617 will be converted to the form
32268 # 0001001200050617. In other words, each number is zero padded to four
32269 # digits, and non digits are removed.
32270
32271 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32272 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32273 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32274 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32275 -e 's/[^0-9]//g'`
32276
32277
32278 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32279 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32280 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32281 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32282 -e 's/[^0-9]//g'`
32283
32284
32285 ax_compare_version=`echo "x$ax_compare_version_A
32286x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32287
32288
32289
32290 if test "$ax_compare_version" = "true" ; then
32291
32292 :
32293 PERL_SUPPORTS_DESTDIR='yes'
32294
32295 else
32296 :
32297 PERL_SUPPORTS_DESTDIR='no'
32298
32299 fi
32300
32301
32302else
32303
32304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32305$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32306 PERL_SUPPORTS_DESTDIR='no'
32307
cristy3ed852e2009-09-05 21:47:34 +000032308fi
cristy73bd4a52010-10-05 11:24:23 +000032309
32310fi
32311 if test "$have_perl" != 'no'; then
32312 WITH_PERL_TRUE=
32313 WITH_PERL_FALSE='#'
32314else
32315 WITH_PERL_TRUE='#'
32316 WITH_PERL_FALSE=
32317fi
32318
32319 if test $with_perl_static = 'yes'; then
32320 WITH_PERL_STATIC_TRUE=
32321 WITH_PERL_STATIC_FALSE='#'
32322else
32323 WITH_PERL_STATIC_TRUE='#'
32324 WITH_PERL_STATIC_FALSE=
32325fi
32326
32327 if test $with_perl_dynamic = 'yes'; then
32328 WITH_PERL_DYNAMIC_TRUE=
32329 WITH_PERL_DYNAMIC_FALSE='#'
32330else
32331 WITH_PERL_DYNAMIC_TRUE='#'
32332 WITH_PERL_DYNAMIC_FALSE=
32333fi
32334
cristy3ed852e2009-09-05 21:47:34 +000032335
32336
32337# Determine path to pick up MagickCore library from for use with building PerlMagick
32338MAGICKCORE_PATH="${LIB_DIR}"
32339if test $with_perl_static = 'yes'; then
32340 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32341 libtool_objdir=$objdir
32342
32343 # Linker search path to library, followed by -lMagickCore
32344 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32345fi
32346
32347
32348# Create a simple string containing format names for all delegate libraries
32349DELEGATES=''
32350if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32351if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32352if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32353if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32354if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32355if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32356if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32357if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32358if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32359if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32360if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32361if test "$have_jpeg" = 'yes'; then
32362 DELEGATES="$DELEGATES jpeg";
32363 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32364fi
32365if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000032366if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000032367if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32368if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32369if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32370if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32371if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32372if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32373if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32374if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32375if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32376if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32377if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32378
32379
32380
32381#
32382# Handle special compiler flags
32383#
32384
32385# Add '-p' if prof source profiling support enabled
32386if test "$enable_prof" = 'yes'; then
32387 CFLAGS="-p $CFLAGS"
32388 CXXFLAGS="-p $CXXFLAGS"
32389 LDFLAGS="-p $LDFLAGS"
32390fi
32391
32392# Add '-pg' if gprof source profiling support enabled
32393if test "$enable_gprof" = 'yes'; then
32394 CFLAGS="-pg $CFLAGS"
32395 CXXFLAGS="-pg $CXXFLAGS"
32396 LDFLAGS="-pg $LDFLAGS"
32397fi
32398
32399# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32400# This is a gcc-specific feature
32401if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032403$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032404if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032405 $as_echo_n "(cached) " >&6
32406else
32407 ac_check_lib_save_LIBS=$LIBS
32408LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032410/* end confdefs.h. */
32411
32412/* Override any GCC internal prototype to avoid an error.
32413 Use char because int might match the return type of a GCC
32414 builtin and then its argument prototype would still apply. */
32415#ifdef __cplusplus
32416extern "C"
32417#endif
32418char _gcov_init ();
32419int
32420main ()
32421{
32422return _gcov_init ();
32423 ;
32424 return 0;
32425}
32426_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032427if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032428 ac_cv_lib_gcov__gcov_init=yes
32429else
cristy8b350f62009-11-15 23:12:43 +000032430 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032431fi
cristy8b350f62009-11-15 23:12:43 +000032432rm -f core conftest.err conftest.$ac_objext \
32433 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032434LIBS=$ac_check_lib_save_LIBS
32435fi
cristy8b350f62009-11-15 23:12:43 +000032436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032437$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032438if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032439 cat >>confdefs.h <<_ACEOF
32440#define HAVE_LIBGCOV 1
32441_ACEOF
32442
32443 LIBS="-lgcov $LIBS"
32444
32445fi
32446
cristy8b350f62009-11-15 23:12:43 +000032447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032448$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032449if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032450 $as_echo_n "(cached) " >&6
32451else
32452 ac_check_lib_save_LIBS=$LIBS
32453LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032455/* end confdefs.h. */
32456
32457/* Override any GCC internal prototype to avoid an error.
32458 Use char because int might match the return type of a GCC
32459 builtin and then its argument prototype would still apply. */
32460#ifdef __cplusplus
32461extern "C"
32462#endif
32463char __gcov_init ();
32464int
32465main ()
32466{
32467return __gcov_init ();
32468 ;
32469 return 0;
32470}
32471_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032472if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032473 ac_cv_lib_gcov___gcov_init=yes
32474else
cristy8b350f62009-11-15 23:12:43 +000032475 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032476fi
cristy8b350f62009-11-15 23:12:43 +000032477rm -f core conftest.err conftest.$ac_objext \
32478 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032479LIBS=$ac_check_lib_save_LIBS
32480fi
cristy8b350f62009-11-15 23:12:43 +000032481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032482$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032483if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032484 cat >>confdefs.h <<_ACEOF
32485#define HAVE_LIBGCOV 1
32486_ACEOF
32487
32488 LIBS="-lgcov $LIBS"
32489
32490fi
32491
32492 case "$target_os" in
32493 darwin*)
32494 OSX_GCOV_LDFLAG="-Wl,-single_module"
32495 ;;
32496 *)
32497 OSX_GCOV_LDFLAG=""
32498 ;;
32499 esac
32500
32501 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32502 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32503 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32504fi
32505
32506#
32507# Build library dependency list for libMagickCore
32508#
32509
32510MAGICK_LIBLTDL='' # Libltdl for build
32511MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32512MAGICK_LTDLDEPS='' # extra libltdl dependencies
32513if test "$with_ltdl" != 'no'
32514then
32515 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32516 MAGICK_API_LIBLTDL='-lltdl'
32517 fi
32518 MAGICK_LIBLTDL=${LIBLTDL}
32519 MAGICK_LTDLDEPS=${LTDLDEPS}
32520fi
32521
32522
32523
32524if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000032525 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 +000032526else
cristy2e8b51d2009-10-17 18:26:15 +000032527 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 +000032528fi
32529
32530
32531#
32532# Remove extraneous spaces from output variables (asthetic)
32533#
32534X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32535X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32536X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32537X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32538
32539CC=`echo $CC | sed -e 's/ */ /g'`
32540CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32541CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32542CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32543DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32544DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32545LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32546TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32547MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32548#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32549
32550# Pass only user-provided LIBS as "global" libraries
32551LIBS=$USER_LIBS
32552
32553#AC_SUBST(CPPFLAGS)
32554
32555#AC_SUBST(LDFLAGS)
32556#AC_SUBST(X_PRE_LIBS)
32557#AC_SUBST(X_LIBS)
32558#AC_SUBST(X_EXTRA_LIBS)
32559
32560MAGICK_CFLAGS=$CFLAGS
32561MAGICK_CXXFLAGS="$CXXFLAGS"
32562MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32563MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32564MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32565MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32566
32567
32568
32569
32570
32571
32572
32573
cristyfd9dcd42010-08-08 18:07:02 +000032574
cristy3ed852e2009-09-05 21:47:34 +000032575# Set configured scripts to executable.
32576ac_config_commands="$ac_config_commands default"
32577
32578ac_config_commands="$ac_config_commands MagickCore-config.in"
32579
32580ac_config_commands="$ac_config_commands Magick-config.in"
32581
32582ac_config_commands="$ac_config_commands MagickWand-config.in"
32583
32584ac_config_commands="$ac_config_commands Wand-config.in"
32585
32586ac_config_commands="$ac_config_commands Magick++-config.in"
32587
32588ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32589
32590
cristy8b350f62009-11-15 23:12:43 +000032591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032592$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000032594$as_echo "Update ImageMagick configuration" >&6; }
32595cat >confcache <<\_ACEOF
32596# This file is a shell script that caches the results of configure
32597# tests run on this system so they can be shared between configure
32598# scripts and configure runs, see configure's option --config-cache.
32599# It is not useful on other systems. If it contains results you don't
32600# want to keep, you may remove or edit it.
32601#
32602# config.status only pays attention to the cache file if you give it
32603# the --recheck option to rerun configure.
32604#
32605# `ac_cv_env_foo' variables (set or unset) will be overridden when
32606# loading this file, other *unset* `ac_cv_foo' will be assigned the
32607# following values.
32608
32609_ACEOF
32610
32611# The following way of writing the cache mishandles newlines in values,
32612# but we know of no workaround that is simple, portable, and efficient.
32613# So, we kill variables containing newlines.
32614# Ultrix sh set writes to stderr and can't be redirected directly,
32615# and sets the high bit in the cache file unless we assign to the vars.
32616(
32617 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32618 eval ac_val=\$$ac_var
32619 case $ac_val in #(
32620 *${as_nl}*)
32621 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000032622 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000032623$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32624 esac
32625 case $ac_var in #(
32626 _ | IFS | as_nl) ;; #(
32627 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000032628 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000032629 esac ;;
32630 esac
32631 done
32632
32633 (set) 2>&1 |
32634 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32635 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000032636 # `set' does not quote correctly, so add quotes: double-quote
32637 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000032638 sed -n \
32639 "s/'/'\\\\''/g;
32640 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32641 ;; #(
32642 *)
32643 # `set' quotes correctly as required by POSIX, so do not add quotes.
32644 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32645 ;;
32646 esac |
32647 sort
32648) |
32649 sed '
32650 /^ac_cv_env_/b end
32651 t clear
32652 :clear
32653 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32654 t end
32655 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32656 :end' >>confcache
32657if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32658 if test -w "$cache_file"; then
32659 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000032660 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032661$as_echo "$as_me: updating cache $cache_file" >&6;}
32662 cat confcache >$cache_file
32663 else
cristy8b350f62009-11-15 23:12:43 +000032664 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032665$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32666 fi
32667fi
32668rm -f confcache
32669
32670test "x$prefix" = xNONE && prefix=$ac_default_prefix
32671# Let make expand exec_prefix.
32672test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32673
32674DEFS=-DHAVE_CONFIG_H
32675
32676ac_libobjs=
32677ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000032678U=
cristy3ed852e2009-09-05 21:47:34 +000032679for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32680 # 1. Remove the extension, and $U if already installed.
32681 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32682 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32683 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32684 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000032685 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32686 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000032687done
32688LIBOBJS=$ac_libobjs
32689
32690LTLIBOBJS=$ac_ltlibobjs
32691
32692
cristy73bd4a52010-10-05 11:24:23 +000032693 if test -n "$EXEEXT"; then
32694 am__EXEEXT_TRUE=
32695 am__EXEEXT_FALSE='#'
32696else
32697 am__EXEEXT_TRUE='#'
32698 am__EXEEXT_FALSE=
32699fi
cristy3ed852e2009-09-05 21:47:34 +000032700
cristy73bd4a52010-10-05 11:24:23 +000032701if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032702 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032703Usually this means the macro was only invoked conditionally." "$LINENO" 5
32704fi
32705if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032706 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032707Usually this means the macro was only invoked conditionally." "$LINENO" 5
32708fi
32709if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032710 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032711Usually this means the macro was only invoked conditionally." "$LINENO" 5
32712fi
32713if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032714 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032715Usually this means the macro was only invoked conditionally." "$LINENO" 5
32716fi
32717if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032718 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032719Usually this means the macro was only invoked conditionally." "$LINENO" 5
32720fi
32721if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032722 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032723Usually this means the macro was only invoked conditionally." "$LINENO" 5
32724fi
32725if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032726 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032727Usually this means the macro was only invoked conditionally." "$LINENO" 5
32728fi
32729if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032730 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032731Usually this means the macro was only invoked conditionally." "$LINENO" 5
32732fi
cristy73bd4a52010-10-05 11:24:23 +000032733if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032734 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032735Usually this means the macro was only invoked conditionally." "$LINENO" 5
32736fi
32737if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032738 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032739Usually this means the macro was only invoked conditionally." "$LINENO" 5
32740fi
32741LT_CONFIG_H=config/config.h
32742
32743 _ltdl_libobjs=
32744 _ltdl_ltlibobjs=
32745 if test -n "$_LT_LIBOBJS"; then
32746 # Remove the extension.
32747 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32748 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32749 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32750 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32751 done
32752 fi
32753 ltdl_LIBOBJS=$_ltdl_libobjs
32754
32755 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32756
32757
32758if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032759 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032760Usually this means the macro was only invoked conditionally." "$LINENO" 5
32761fi
32762if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032763 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032764Usually this means the macro was only invoked conditionally." "$LINENO" 5
32765fi
32766if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032767 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032768Usually this means the macro was only invoked conditionally." "$LINENO" 5
32769fi
32770if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032771 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032772Usually this means the macro was only invoked conditionally." "$LINENO" 5
32773fi
32774
32775if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032776 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032777Usually this means the macro was only invoked conditionally." "$LINENO" 5
32778fi
32779if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032780 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032781Usually this means the macro was only invoked conditionally." "$LINENO" 5
32782fi
32783if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032784 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032785Usually this means the macro was only invoked conditionally." "$LINENO" 5
32786fi
32787if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032788 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032789Usually this means the macro was only invoked conditionally." "$LINENO" 5
32790fi
32791if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032792 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032793Usually this means the macro was only invoked conditionally." "$LINENO" 5
32794fi
32795if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032796 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032797Usually this means the macro was only invoked conditionally." "$LINENO" 5
32798fi
32799if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032800 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032801Usually this means the macro was only invoked conditionally." "$LINENO" 5
32802fi
32803if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032804 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032805Usually this means the macro was only invoked conditionally." "$LINENO" 5
32806fi
32807if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032808 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032809Usually this means the macro was only invoked conditionally." "$LINENO" 5
32810fi
32811if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032812 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032813Usually this means the macro was only invoked conditionally." "$LINENO" 5
32814fi
32815if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032816 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032817Usually this means the macro was only invoked conditionally." "$LINENO" 5
32818fi
32819if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032820 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032821Usually this means the macro was only invoked conditionally." "$LINENO" 5
32822fi
32823if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032824 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032825Usually this means the macro was only invoked conditionally." "$LINENO" 5
32826fi
32827if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032828 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032829Usually this means the macro was only invoked conditionally." "$LINENO" 5
32830fi
32831if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032832 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032833Usually this means the macro was only invoked conditionally." "$LINENO" 5
32834fi
32835if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032836 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032837Usually this means the macro was only invoked conditionally." "$LINENO" 5
32838fi
32839if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032840 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032841Usually this means the macro was only invoked conditionally." "$LINENO" 5
32842fi
32843if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032844 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032845Usually this means the macro was only invoked conditionally." "$LINENO" 5
32846fi
32847if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032848 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032849Usually this means the macro was only invoked conditionally." "$LINENO" 5
32850fi
32851if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032852 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032853Usually this means the macro was only invoked conditionally." "$LINENO" 5
32854fi
32855if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032856 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032857Usually this means the macro was only invoked conditionally." "$LINENO" 5
32858fi
32859if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032860 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032861Usually this means the macro was only invoked conditionally." "$LINENO" 5
32862fi
32863if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032864 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032865Usually this means the macro was only invoked conditionally." "$LINENO" 5
32866fi
32867if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032868 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032869Usually this means the macro was only invoked conditionally." "$LINENO" 5
32870fi
32871if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032872 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032873Usually this means the macro was only invoked conditionally." "$LINENO" 5
32874fi
32875if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032876 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032877Usually this means the macro was only invoked conditionally." "$LINENO" 5
32878fi
32879if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032880 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032881Usually this means the macro was only invoked conditionally." "$LINENO" 5
32882fi
32883if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032884 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032885Usually this means the macro was only invoked conditionally." "$LINENO" 5
32886fi
32887if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032888 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032889Usually this means the macro was only invoked conditionally." "$LINENO" 5
32890fi
32891if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032892 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032893Usually this means the macro was only invoked conditionally." "$LINENO" 5
32894fi
32895if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032896 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032897Usually this means the macro was only invoked conditionally." "$LINENO" 5
32898fi
32899if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032900 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032901Usually this means the macro was only invoked conditionally." "$LINENO" 5
32902fi
32903if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000032904 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000032905Usually this means the macro was only invoked conditionally." "$LINENO" 5
32906fi
cristy3ed852e2009-09-05 21:47:34 +000032907
32908: ${CONFIG_STATUS=./config.status}
32909ac_write_fail=0
32910ac_clean_files_save=$ac_clean_files
32911ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000032912{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032913$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032914as_write_fail=0
32915cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032916#! $SHELL
32917# Generated by $as_me.
32918# Run this file to recreate the current configuration.
32919# Compiler output produced by configure, useful for debugging
32920# configure, is in config.log if it exists.
32921
32922debug=false
32923ac_cs_recheck=false
32924ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000032925
cristy8b350f62009-11-15 23:12:43 +000032926SHELL=\${CONFIG_SHELL-$SHELL}
32927export SHELL
32928_ASEOF
32929cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32930## -------------------- ##
32931## M4sh Initialization. ##
32932## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000032933
32934# Be more Bourne compatible
32935DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000032936if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000032937 emulate sh
32938 NULLCMD=:
32939 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32940 # is contrary to our usage. Disable this feature.
32941 alias -g '${1+"$@"}'='"$@"'
32942 setopt NO_GLOB_SUBST
32943else
cristy8b350f62009-11-15 23:12:43 +000032944 case `(set -o) 2>/dev/null` in #(
32945 *posix*) :
32946 set -o posix ;; #(
32947 *) :
32948 ;;
cristy3ed852e2009-09-05 21:47:34 +000032949esac
cristy3ed852e2009-09-05 21:47:34 +000032950fi
32951
32952
cristy3ed852e2009-09-05 21:47:34 +000032953as_nl='
32954'
32955export as_nl
32956# Printing a long string crashes Solaris 7 /usr/bin/printf.
32957as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32958as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32959as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000032960# Prefer a ksh shell builtin over an external printf program on Solaris,
32961# but without wasting forks for bash or zsh.
32962if test -z "$BASH_VERSION$ZSH_VERSION" \
32963 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32964 as_echo='print -r --'
32965 as_echo_n='print -rn --'
32966elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000032967 as_echo='printf %s\n'
32968 as_echo_n='printf %s'
32969else
32970 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32971 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32972 as_echo_n='/usr/ucb/echo -n'
32973 else
32974 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32975 as_echo_n_body='eval
32976 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000032977 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000032978 *"$as_nl"*)
32979 expr "X$arg" : "X\\(.*\\)$as_nl";
32980 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32981 esac;
32982 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32983 '
32984 export as_echo_n_body
32985 as_echo_n='sh -c $as_echo_n_body as_echo'
32986 fi
32987 export as_echo_body
32988 as_echo='sh -c $as_echo_body as_echo'
32989fi
32990
32991# The user is always right.
32992if test "${PATH_SEPARATOR+set}" != set; then
32993 PATH_SEPARATOR=:
32994 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32995 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32996 PATH_SEPARATOR=';'
32997 }
32998fi
32999
cristy3ed852e2009-09-05 21:47:34 +000033000
33001# IFS
33002# We need space, tab and new line, in precisely that order. Quoting is
33003# there to prevent editors from complaining about space-tab.
33004# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33005# splitting by setting IFS to empty value.)
33006IFS=" "" $as_nl"
33007
33008# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000033009case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000033010 *[\\/]* ) as_myself=$0 ;;
33011 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33012for as_dir in $PATH
33013do
33014 IFS=$as_save_IFS
33015 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033016 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33017 done
cristy3ed852e2009-09-05 21:47:34 +000033018IFS=$as_save_IFS
33019
33020 ;;
33021esac
33022# We did not find ourselves, most probably we were run as `sh COMMAND'
33023# in which case we are not to be found in the path.
33024if test "x$as_myself" = x; then
33025 as_myself=$0
33026fi
33027if test ! -f "$as_myself"; then
33028 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000033029 exit 1
cristy3ed852e2009-09-05 21:47:34 +000033030fi
33031
cristy8b350f62009-11-15 23:12:43 +000033032# Unset variables that we do not need and which cause bugs (e.g. in
33033# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33034# suppresses any "Segmentation fault" message there. '((' could
33035# trigger a bug in pdksh 5.2.14.
33036for as_var in BASH_ENV ENV MAIL MAILPATH
33037do eval test x\${$as_var+set} = xset \
33038 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000033039done
33040PS1='$ '
33041PS2='> '
33042PS4='+ '
33043
33044# NLS nuisances.
33045LC_ALL=C
33046export LC_ALL
33047LANGUAGE=C
33048export LANGUAGE
33049
cristy8b350f62009-11-15 23:12:43 +000033050# CDPATH.
33051(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33052
33053
cristy98dddb52010-11-04 00:30:15 +000033054# as_fn_error STATUS ERROR [LINENO LOG_FD]
33055# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000033056# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33057# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000033058# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000033059as_fn_error ()
33060{
cristy98dddb52010-11-04 00:30:15 +000033061 as_status=$1; test $as_status -eq 0 && as_status=1
33062 if test "$4"; then
33063 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33064 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000033065 fi
cristy98dddb52010-11-04 00:30:15 +000033066 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000033067 as_fn_exit $as_status
33068} # as_fn_error
33069
33070
33071# as_fn_set_status STATUS
33072# -----------------------
33073# Set $? to STATUS, without forking.
33074as_fn_set_status ()
33075{
33076 return $1
33077} # as_fn_set_status
33078
33079# as_fn_exit STATUS
33080# -----------------
33081# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33082as_fn_exit ()
33083{
33084 set +e
33085 as_fn_set_status $1
33086 exit $1
33087} # as_fn_exit
33088
33089# as_fn_unset VAR
33090# ---------------
33091# Portably unset VAR.
33092as_fn_unset ()
33093{
33094 { eval $1=; unset $1;}
33095}
33096as_unset=as_fn_unset
33097# as_fn_append VAR VALUE
33098# ----------------------
33099# Append the text in VALUE to the end of the definition contained in VAR. Take
33100# advantage of any shell optimizations that allow amortized linear growth over
33101# repeated appends, instead of the typical quadratic growth present in naive
33102# implementations.
33103if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33104 eval 'as_fn_append ()
33105 {
33106 eval $1+=\$2
33107 }'
33108else
33109 as_fn_append ()
33110 {
33111 eval $1=\$$1\$2
33112 }
33113fi # as_fn_append
33114
33115# as_fn_arith ARG...
33116# ------------------
33117# Perform arithmetic evaluation on the ARGs, and store the result in the
33118# global $as_val. Take advantage of shells that can avoid forks. The arguments
33119# must be portable across $(()) and expr.
33120if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33121 eval 'as_fn_arith ()
33122 {
33123 as_val=$(( $* ))
33124 }'
33125else
33126 as_fn_arith ()
33127 {
33128 as_val=`expr "$@" || test $? -eq 1`
33129 }
33130fi # as_fn_arith
33131
33132
cristy3ed852e2009-09-05 21:47:34 +000033133if expr a : '\(a\)' >/dev/null 2>&1 &&
33134 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33135 as_expr=expr
33136else
33137 as_expr=false
33138fi
33139
33140if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33141 as_basename=basename
33142else
33143 as_basename=false
33144fi
33145
cristy8b350f62009-11-15 23:12:43 +000033146if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33147 as_dirname=dirname
33148else
33149 as_dirname=false
33150fi
cristy3ed852e2009-09-05 21:47:34 +000033151
cristy3ed852e2009-09-05 21:47:34 +000033152as_me=`$as_basename -- "$0" ||
33153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33154 X"$0" : 'X\(//\)$' \| \
33155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33156$as_echo X/"$0" |
33157 sed '/^.*\/\([^/][^/]*\)\/*$/{
33158 s//\1/
33159 q
33160 }
33161 /^X\/\(\/\/\)$/{
33162 s//\1/
33163 q
33164 }
33165 /^X\/\(\/\).*/{
33166 s//\1/
33167 q
33168 }
33169 s/.*/./; q'`
33170
cristy8b350f62009-11-15 23:12:43 +000033171# Avoid depending upon Character Ranges.
33172as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33173as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33174as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33175as_cr_digits='0123456789'
33176as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000033177
33178ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000033179case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000033180-n*)
cristy8b350f62009-11-15 23:12:43 +000033181 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000033182 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000033183 xy) ECHO_C='\c';;
33184 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33185 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000033186 esac;;
33187*)
33188 ECHO_N='-n';;
33189esac
cristy3ed852e2009-09-05 21:47:34 +000033190
33191rm -f conf$$ conf$$.exe conf$$.file
33192if test -d conf$$.dir; then
33193 rm -f conf$$.dir/conf$$.file
33194else
33195 rm -f conf$$.dir
33196 mkdir conf$$.dir 2>/dev/null
33197fi
33198if (echo >conf$$.file) 2>/dev/null; then
33199 if ln -s conf$$.file conf$$ 2>/dev/null; then
33200 as_ln_s='ln -s'
33201 # ... but there are two gotchas:
33202 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33203 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33204 # In both cases, we have to default to `cp -p'.
33205 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33206 as_ln_s='cp -p'
33207 elif ln conf$$.file conf$$ 2>/dev/null; then
33208 as_ln_s=ln
33209 else
33210 as_ln_s='cp -p'
33211 fi
33212else
33213 as_ln_s='cp -p'
33214fi
33215rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33216rmdir conf$$.dir 2>/dev/null
33217
cristy8b350f62009-11-15 23:12:43 +000033218
33219# as_fn_mkdir_p
33220# -------------
33221# Create "$as_dir" as a directory, including parents if necessary.
33222as_fn_mkdir_p ()
33223{
33224
33225 case $as_dir in #(
33226 -*) as_dir=./$as_dir;;
33227 esac
33228 test -d "$as_dir" || eval $as_mkdir_p || {
33229 as_dirs=
33230 while :; do
33231 case $as_dir in #(
33232 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33233 *) as_qdir=$as_dir;;
33234 esac
33235 as_dirs="'$as_qdir' $as_dirs"
33236 as_dir=`$as_dirname -- "$as_dir" ||
33237$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33238 X"$as_dir" : 'X\(//\)[^/]' \| \
33239 X"$as_dir" : 'X\(//\)$' \| \
33240 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33241$as_echo X"$as_dir" |
33242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33243 s//\1/
33244 q
33245 }
33246 /^X\(\/\/\)[^/].*/{
33247 s//\1/
33248 q
33249 }
33250 /^X\(\/\/\)$/{
33251 s//\1/
33252 q
33253 }
33254 /^X\(\/\).*/{
33255 s//\1/
33256 q
33257 }
33258 s/.*/./; q'`
33259 test -d "$as_dir" && break
33260 done
33261 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000033262 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000033263
33264
33265} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033266if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000033267 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000033268else
33269 test -d ./-p && rmdir ./-p
33270 as_mkdir_p=false
33271fi
33272
33273if test -x / >/dev/null 2>&1; then
33274 as_test_x='test -x'
33275else
33276 if ls -dL / >/dev/null 2>&1; then
33277 as_ls_L_option=L
33278 else
33279 as_ls_L_option=
33280 fi
33281 as_test_x='
33282 eval sh -c '\''
33283 if test -d "$1"; then
33284 test -d "$1/.";
33285 else
cristy8b350f62009-11-15 23:12:43 +000033286 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000033287 -*)set "./$1";;
33288 esac;
cristy8b350f62009-11-15 23:12:43 +000033289 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000033290 ???[sx]*):;;*)false;;esac;fi
33291 '\'' sh
33292 '
33293fi
33294as_executable_p=$as_test_x
33295
33296# Sed expression to map a string onto a valid CPP name.
33297as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33298
33299# Sed expression to map a string onto a valid variable name.
33300as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33301
33302
33303exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000033304## ----------------------------------- ##
33305## Main body of $CONFIG_STATUS script. ##
33306## ----------------------------------- ##
33307_ASEOF
33308test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033309
cristy8b350f62009-11-15 23:12:43 +000033310cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33311# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000033312# report actual input values of CONFIG_FILES etc. instead of their
33313# values after options handling.
33314ac_log="
cristy8adecc32010-11-21 22:08:49 +000033315This file was extended by ImageMagick $as_me 6.6.6, which was
cristy98dddb52010-11-04 00:30:15 +000033316generated by GNU Autoconf 2.66. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000033317
33318 CONFIG_FILES = $CONFIG_FILES
33319 CONFIG_HEADERS = $CONFIG_HEADERS
33320 CONFIG_LINKS = $CONFIG_LINKS
33321 CONFIG_COMMANDS = $CONFIG_COMMANDS
33322 $ $0 $@
33323
33324on `(hostname || uname -n) 2>/dev/null | sed 1q`
33325"
33326
33327_ACEOF
33328
33329case $ac_config_files in *"
33330"*) set x $ac_config_files; shift; ac_config_files=$*;;
33331esac
33332
33333case $ac_config_headers in *"
33334"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33335esac
33336
33337
33338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33339# Files that config.status was made for.
33340config_files="$ac_config_files"
33341config_headers="$ac_config_headers"
33342config_commands="$ac_config_commands"
33343
33344_ACEOF
33345
33346cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33347ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000033348\`$as_me' instantiates files and other configuration actions
33349from templates according to the current configuration. Unless the files
33350and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000033351
cristy8b350f62009-11-15 23:12:43 +000033352Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000033353
33354 -h, --help print this help, then exit
33355 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000033356 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000033357 -q, --quiet, --silent
33358 do not print progress messages
33359 -d, --debug don't remove temporary files
33360 --recheck update $as_me by reconfiguring in the same conditions
33361 --file=FILE[:TEMPLATE]
33362 instantiate the configuration file FILE
33363 --header=FILE[:TEMPLATE]
33364 instantiate the configuration header FILE
33365
33366Configuration files:
33367$config_files
33368
33369Configuration headers:
33370$config_headers
33371
33372Configuration commands:
33373$config_commands
33374
cristy8b350f62009-11-15 23:12:43 +000033375Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000033376
33377_ACEOF
33378cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000033379ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000033380ac_cs_version="\\
cristy8adecc32010-11-21 22:08:49 +000033381ImageMagick config.status 6.6.6
cristy98dddb52010-11-04 00:30:15 +000033382configured by $0, generated by GNU Autoconf 2.66,
cristycd4c5312009-11-22 01:19:08 +000033383 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000033384
cristy98dddb52010-11-04 00:30:15 +000033385Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033386This config.status script is free software; the Free Software Foundation
33387gives unlimited permission to copy, distribute and modify it."
33388
33389ac_pwd='$ac_pwd'
33390srcdir='$srcdir'
33391INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000033392MKDIR_P='$MKDIR_P'
33393AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000033394test -n "\$AWK" || AWK=awk
33395_ACEOF
33396
33397cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33398# The default lists apply if the user does not specify any file.
33399ac_need_defaults=:
33400while test $# != 0
33401do
33402 case $1 in
33403 --*=*)
33404 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33405 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33406 ac_shift=:
33407 ;;
33408 *)
33409 ac_option=$1
33410 ac_optarg=$2
33411 ac_shift=shift
33412 ;;
33413 esac
33414
33415 case $ac_option in
33416 # Handling of the options.
33417 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33418 ac_cs_recheck=: ;;
33419 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33420 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000033421 --config | --confi | --conf | --con | --co | --c )
33422 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000033423 --debug | --debu | --deb | --de | --d | -d )
33424 debug=: ;;
33425 --file | --fil | --fi | --f )
33426 $ac_shift
33427 case $ac_optarg in
33428 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33429 esac
cristy8b350f62009-11-15 23:12:43 +000033430 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033431 ac_need_defaults=false;;
33432 --header | --heade | --head | --hea )
33433 $ac_shift
33434 case $ac_optarg in
33435 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33436 esac
cristy8b350f62009-11-15 23:12:43 +000033437 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033438 ac_need_defaults=false;;
33439 --he | --h)
33440 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000033441 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033442Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000033443 --help | --hel | -h )
33444 $as_echo "$ac_cs_usage"; exit ;;
33445 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33446 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33447 ac_cs_silent=: ;;
33448
33449 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000033450 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033451Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000033452
cristy8b350f62009-11-15 23:12:43 +000033453 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000033454 ac_need_defaults=false ;;
33455
33456 esac
33457 shift
33458done
33459
33460ac_configure_extra_args=
33461
33462if $ac_cs_silent; then
33463 exec 6>/dev/null
33464 ac_configure_extra_args="$ac_configure_extra_args --silent"
33465fi
33466
33467_ACEOF
33468cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33469if \$ac_cs_recheck; then
33470 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33471 shift
33472 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33473 CONFIG_SHELL='$SHELL'
33474 export CONFIG_SHELL
33475 exec "\$@"
33476fi
33477
33478_ACEOF
33479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33480exec 5>>config.log
33481{
33482 echo
33483 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33484## Running $as_me. ##
33485_ASBOX
33486 $as_echo "$ac_log"
33487} >&5
33488
33489_ACEOF
33490cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000033491#
33492# INIT-COMMANDS
33493#
33494PACKAGE="$PACKAGE"
33495AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33496
33497
33498# The HP-UX ksh and POSIX shell print the target directory to stdout
33499# if CDPATH is set.
33500(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33501
33502sed_quote_subst='$sed_quote_subst'
33503double_quote_subst='$double_quote_subst'
33504delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000033505SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33506Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33507GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
33508EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
33509FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
33510SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33511ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33512LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
33513macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33514macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33515AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
33516DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33517OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33518enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33519enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33520pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33521enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33522host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33523host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33524host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33525build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33526build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33527build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33528NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
33529LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
33530max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
33531ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
33532exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33533lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33534lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33535lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33536reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33537reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33538deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33539file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33540AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33541AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33542STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33543RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33544old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33545old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33546old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
33547lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
33548CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
33549CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
33550compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
33551GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
33552lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
33553lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
33554lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
33555lt_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"`'
33556objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
33557MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
33558lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
33559lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33560lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
33561lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
33562lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
33563need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
33564DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
33565NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
33566LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
33567OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
33568OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
33569libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
33570shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
33571extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33572archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
33573enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
33574export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
33575whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
33576compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
33577old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
33578old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33579archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
33580archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33581module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
33582module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33583with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
33584allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
33585no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
33586hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
33587hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
33588hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
33589hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
33590hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
33591hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
33592hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
33593hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
33594inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
33595link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
33596fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
33597always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
33598export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
33599exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
33600include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
33601prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
33602file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
33603variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
33604need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
33605need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
33606version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
33607runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
33608shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
33609shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
33610libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
33611library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
33612soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
33613install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
33614postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33615postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33616finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
33617finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
33618hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
33619sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
33620sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
33621hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
33622enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
33623enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
33624enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
33625old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
33626striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
33627compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
33628predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
33629postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
33630predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
33631postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
33632compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
33633LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
33634reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
33635reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33636old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33637compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
33638GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
33639lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
33640lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
33641lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
33642lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
33643lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
33644archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
33645enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
33646export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33647whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33648compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
33649old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33650old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33651archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33652archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33653module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33654module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33655with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
33656allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33657no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33658hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33659hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
33660hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
33661hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
33662hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
33663hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
33664hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
33665hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
33666inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
33667link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
33668fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
33669always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
33670export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33671exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33672include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33673prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33674file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
33675hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
33676compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
33677predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33678postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33679predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
33680postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
33681compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000033682
33683LTCC='$LTCC'
33684LTCFLAGS='$LTCFLAGS'
33685compiler='$compiler_DEFAULT'
33686
cristy0c60a692010-11-04 01:09:47 +000033687# A function that is used when there is no print builtin or printf.
33688func_fallback_echo ()
33689{
33690 eval 'cat <<_LTECHO_EOF
33691\$1
33692_LTECHO_EOF'
33693}
33694
cristy73bd4a52010-10-05 11:24:23 +000033695# Quote evaled strings.
33696for var in SED \
33697GREP \
33698EGREP \
33699FGREP \
cristy0c60a692010-11-04 01:09:47 +000033700SHELL \
33701ECHO \
cristy73bd4a52010-10-05 11:24:23 +000033702LD \
cristy0c60a692010-11-04 01:09:47 +000033703AS \
33704DLLTOOL \
33705OBJDUMP \
cristy73bd4a52010-10-05 11:24:23 +000033706NM \
33707LN_S \
33708lt_SP2NL \
33709lt_NL2SP \
33710reload_flag \
33711deplibs_check_method \
33712file_magic_cmd \
33713AR \
33714AR_FLAGS \
33715STRIP \
33716RANLIB \
33717CC \
33718CFLAGS \
33719compiler \
33720lt_cv_sys_global_symbol_pipe \
33721lt_cv_sys_global_symbol_to_cdecl \
33722lt_cv_sys_global_symbol_to_c_name_address \
33723lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy73bd4a52010-10-05 11:24:23 +000033724lt_prog_compiler_no_builtin_flag \
33725lt_prog_compiler_wl \
33726lt_prog_compiler_pic \
33727lt_prog_compiler_static \
33728lt_cv_prog_compiler_c_o \
33729need_locks \
33730DSYMUTIL \
33731NMEDIT \
33732LIPO \
33733OTOOL \
33734OTOOL64 \
33735shrext_cmds \
33736export_dynamic_flag_spec \
33737whole_archive_flag_spec \
33738compiler_needs_object \
33739with_gnu_ld \
33740allow_undefined_flag \
33741no_undefined_flag \
33742hardcode_libdir_flag_spec \
33743hardcode_libdir_flag_spec_ld \
33744hardcode_libdir_separator \
33745fix_srcfile_path \
33746exclude_expsyms \
33747include_expsyms \
33748file_list_spec \
33749variables_saved_for_relink \
33750libname_spec \
33751library_names_spec \
33752soname_spec \
cristy0c60a692010-11-04 01:09:47 +000033753install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000033754finish_eval \
33755old_striplib \
33756striplib \
33757compiler_lib_search_dirs \
33758predep_objects \
33759postdep_objects \
33760predeps \
33761postdeps \
33762compiler_lib_search_path \
33763LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000033764reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000033765compiler_CXX \
33766lt_prog_compiler_no_builtin_flag_CXX \
33767lt_prog_compiler_wl_CXX \
33768lt_prog_compiler_pic_CXX \
33769lt_prog_compiler_static_CXX \
33770lt_cv_prog_compiler_c_o_CXX \
33771export_dynamic_flag_spec_CXX \
33772whole_archive_flag_spec_CXX \
33773compiler_needs_object_CXX \
33774with_gnu_ld_CXX \
33775allow_undefined_flag_CXX \
33776no_undefined_flag_CXX \
33777hardcode_libdir_flag_spec_CXX \
33778hardcode_libdir_flag_spec_ld_CXX \
33779hardcode_libdir_separator_CXX \
33780fix_srcfile_path_CXX \
33781exclude_expsyms_CXX \
33782include_expsyms_CXX \
33783file_list_spec_CXX \
33784compiler_lib_search_dirs_CXX \
33785predep_objects_CXX \
33786postdep_objects_CXX \
33787predeps_CXX \
33788postdeps_CXX \
33789compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000033790 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000033791 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000033792 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000033793 ;;
33794 *)
33795 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33796 ;;
33797 esac
33798done
33799
33800# Double-quote double-evaled strings.
33801for var in reload_cmds \
33802old_postinstall_cmds \
33803old_postuninstall_cmds \
33804old_archive_cmds \
33805extract_expsyms_cmds \
33806old_archive_from_new_cmds \
33807old_archive_from_expsyms_cmds \
33808archive_cmds \
33809archive_expsym_cmds \
33810module_cmds \
33811module_expsym_cmds \
33812export_symbols_cmds \
33813prelink_cmds \
33814postinstall_cmds \
33815postuninstall_cmds \
33816finish_cmds \
33817sys_lib_search_path_spec \
33818sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000033819reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000033820old_archive_cmds_CXX \
33821old_archive_from_new_cmds_CXX \
33822old_archive_from_expsyms_cmds_CXX \
33823archive_cmds_CXX \
33824archive_expsym_cmds_CXX \
33825module_cmds_CXX \
33826module_expsym_cmds_CXX \
33827export_symbols_cmds_CXX \
33828prelink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000033829 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000033830 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000033831 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000033832 ;;
33833 *)
33834 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33835 ;;
33836 esac
33837done
33838
cristy73bd4a52010-10-05 11:24:23 +000033839ac_aux_dir='$ac_aux_dir'
33840xsi_shell='$xsi_shell'
33841lt_shell_append='$lt_shell_append'
33842
33843# See if we are running on zsh, and set the options which allow our
33844# commands through without removal of \ escapes INIT.
33845if test -n "\${ZSH_VERSION+set}" ; then
33846 setopt NO_GLOB_SUBST
33847fi
33848
33849
33850 PACKAGE='$PACKAGE'
33851 VERSION='$VERSION'
33852 TIMESTAMP='$TIMESTAMP'
33853 RM='$RM'
33854 ofile='$ofile'
33855
33856
33857
33858
33859
33860
cristy3ed852e2009-09-05 21:47:34 +000033861_ACEOF
33862
33863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33864
33865# Handling of arguments.
33866for ac_config_target in $ac_config_targets
33867do
33868 case $ac_config_target in
33869 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy73bd4a52010-10-05 11:24:23 +000033870 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000033871 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33872 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33873 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33874 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33875 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000033876 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000033877 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33878 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33879 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33880 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33881 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33882 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33883 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33884 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33885 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33886 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33887 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33888 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33889 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33890 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33891 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33892 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33893 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33894 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33895 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33896 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33897 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33898 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33899 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33900 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33901 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33902 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33903 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33904 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33905 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33906 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33907 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33908 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33909 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000033910 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33911 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000033912 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33913 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33914 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33915 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33916 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33917 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33918 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33919
cristy98dddb52010-11-04 00:30:15 +000033920 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033921 esac
33922done
33923
33924
33925# If the user did not use the arguments to specify the items to instantiate,
33926# then the envvar interface is used. Set only those that are not.
33927# We use the long form for the default assignment because of an extremely
33928# bizarre bug on SunOS 4.1.3.
33929if $ac_need_defaults; then
33930 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33931 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33932 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33933fi
33934
33935# Have a temporary directory for convenience. Make it in the build tree
33936# simply because there is no reason against having it here, and in addition,
33937# creating and moving files from /tmp can sometimes cause problems.
33938# Hook for its removal unless debugging.
33939# Note that there is a small window in which the directory will not be cleaned:
33940# after its creation but before its name has been assigned to `$tmp'.
33941$debug ||
33942{
33943 tmp=
33944 trap 'exit_status=$?
33945 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33946' 0
cristy8b350f62009-11-15 23:12:43 +000033947 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000033948}
33949# Create a (secure) tmp directory for tmp files.
33950
33951{
33952 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33953 test -n "$tmp" && test -d "$tmp"
33954} ||
33955{
33956 tmp=./conf$$-$RANDOM
33957 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000033958} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033959
33960# Set up the scripts for CONFIG_FILES section.
33961# No need to generate them if there are no CONFIG_FILES.
33962# This happens for instance with `./config.status config.h'.
33963if test -n "$CONFIG_FILES"; then
33964
33965
cristy8b350f62009-11-15 23:12:43 +000033966ac_cr=`echo X | tr X '\015'`
33967# On cygwin, bash can eat \r inside `` if the user requested igncr.
33968# But we know of no other shell where ac_cr would be empty at this
33969# point, so we can use a bashism as a fallback.
33970if test "x$ac_cr" = x; then
33971 eval ac_cr=\$\'\\r\'
33972fi
cristy3ed852e2009-09-05 21:47:34 +000033973ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33974if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000033975 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000033976else
33977 ac_cs_awk_cr=$ac_cr
33978fi
33979
33980echo 'BEGIN {' >"$tmp/subs1.awk" &&
33981_ACEOF
33982
33983
33984{
33985 echo "cat >conf$$subs.awk <<_ACEOF" &&
33986 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33987 echo "_ACEOF"
33988} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000033989 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33990ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000033991ac_delim='%!_!# '
33992for ac_last_try in false false false false false :; do
33993 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000033994 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033995
33996 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33997 if test $ac_delim_n = $ac_delim_num; then
33998 break
33999 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000034000 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034001 else
34002 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34003 fi
34004done
34005rm -f conf$$subs.sh
34006
34007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34008cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34009_ACEOF
34010sed -n '
34011h
34012s/^/S["/; s/!.*/"]=/
34013p
34014g
34015s/^[^!]*!//
34016:repl
34017t repl
34018s/'"$ac_delim"'$//
34019t delim
34020:nl
34021h
cristycd4c5312009-11-22 01:19:08 +000034022s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034023t more1
34024s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34025p
34026n
34027b repl
34028:more1
34029s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34030p
34031g
34032s/.\{148\}//
34033t nl
34034:delim
34035h
cristycd4c5312009-11-22 01:19:08 +000034036s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034037t more2
34038s/["\\]/\\&/g; s/^/"/; s/$/"/
34039p
34040b
34041:more2
34042s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34043p
34044g
34045s/.\{148\}//
34046t delim
34047' <conf$$subs.awk | sed '
34048/^[^""]/{
34049 N
34050 s/\n//
34051}
34052' >>$CONFIG_STATUS || ac_write_fail=1
34053rm -f conf$$subs.awk
34054cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34055_ACAWK
34056cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34057 for (key in S) S_is_set[key] = 1
34058 FS = ""
34059
34060}
34061{
34062 line = $ 0
34063 nfields = split(line, field, "@")
34064 substed = 0
34065 len = length(field[1])
34066 for (i = 2; i < nfields; i++) {
34067 key = field[i]
34068 keylen = length(key)
34069 if (S_is_set[key]) {
34070 value = S[key]
34071 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34072 len += length(value) + length(field[++i])
34073 substed = 1
34074 } else
34075 len += 1 + keylen
34076 }
34077
34078 print line
34079}
34080
34081_ACAWK
34082_ACEOF
34083cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34084if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34085 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34086else
34087 cat
34088fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000034089 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034090_ACEOF
34091
cristy98dddb52010-11-04 00:30:15 +000034092# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34093# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000034094# trailing colons and then remove the whole line if VPATH becomes empty
34095# (actually we leave an empty line to preserve line numbers).
34096if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000034097 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
34098h
34099s///
34100s/^/:/
34101s/[ ]*$/:/
34102s/:\$(srcdir):/:/g
34103s/:\${srcdir}:/:/g
34104s/:@srcdir@:/:/g
34105s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000034106s/:*$//
cristy98dddb52010-11-04 00:30:15 +000034107x
34108s/\(=[ ]*\).*/\1/
34109G
34110s/\n//
cristy3ed852e2009-09-05 21:47:34 +000034111s/^[^=]*=[ ]*$//
34112}'
34113fi
34114
34115cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34116fi # test -n "$CONFIG_FILES"
34117
34118# Set up the scripts for CONFIG_HEADERS section.
34119# No need to generate them if there are no CONFIG_HEADERS.
34120# This happens for instance with `./config.status Makefile'.
34121if test -n "$CONFIG_HEADERS"; then
34122cat >"$tmp/defines.awk" <<\_ACAWK ||
34123BEGIN {
34124_ACEOF
34125
34126# Transform confdefs.h into an awk script `defines.awk', embedded as
34127# here-document in config.status, that substitutes the proper values into
34128# config.h.in to produce config.h.
34129
34130# Create a delimiter string that does not exist in confdefs.h, to ease
34131# handling of long lines.
34132ac_delim='%!_!# '
34133for ac_last_try in false false :; do
34134 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34135 if test -z "$ac_t"; then
34136 break
34137 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000034138 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034139 else
34140 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34141 fi
34142done
34143
34144# For the awk script, D is an array of macro values keyed by name,
34145# likewise P contains macro parameters if any. Preserve backslash
34146# newline sequences.
34147
34148ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34149sed -n '
34150s/.\{148\}/&'"$ac_delim"'/g
34151t rset
34152:rset
34153s/^[ ]*#[ ]*define[ ][ ]*/ /
34154t def
34155d
34156:def
34157s/\\$//
34158t bsnl
34159s/["\\]/\\&/g
34160s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34161D["\1"]=" \3"/p
34162s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34163d
34164:bsnl
34165s/["\\]/\\&/g
34166s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34167D["\1"]=" \3\\\\\\n"\\/p
34168t cont
34169s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34170t cont
34171d
34172:cont
34173n
34174s/.\{148\}/&'"$ac_delim"'/g
34175t clear
34176:clear
34177s/\\$//
34178t bsnlc
34179s/["\\]/\\&/g; s/^/"/; s/$/"/p
34180d
34181:bsnlc
34182s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34183b cont
34184' <confdefs.h | sed '
34185s/'"$ac_delim"'/"\\\
34186"/g' >>$CONFIG_STATUS || ac_write_fail=1
34187
34188cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34189 for (key in D) D_is_set[key] = 1
34190 FS = ""
34191}
34192/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34193 line = \$ 0
34194 split(line, arg, " ")
34195 if (arg[1] == "#") {
34196 defundef = arg[2]
34197 mac1 = arg[3]
34198 } else {
34199 defundef = substr(arg[1], 2)
34200 mac1 = arg[2]
34201 }
34202 split(mac1, mac2, "(") #)
34203 macro = mac2[1]
34204 prefix = substr(line, 1, index(line, defundef) - 1)
34205 if (D_is_set[macro]) {
34206 # Preserve the white space surrounding the "#".
34207 print prefix "define", macro P[macro] D[macro]
34208 next
34209 } else {
34210 # Replace #undef with comments. This is necessary, for example,
34211 # in the case of _POSIX_SOURCE, which is predefined and required
34212 # on some systems where configure will not decide to define it.
34213 if (defundef == "undef") {
34214 print "/*", prefix defundef, macro, "*/"
34215 next
34216 }
34217 }
34218}
34219{ print }
34220_ACAWK
34221_ACEOF
34222cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000034223 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034224fi # test -n "$CONFIG_HEADERS"
34225
34226
34227eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34228shift
34229for ac_tag
34230do
34231 case $ac_tag in
34232 :[FHLC]) ac_mode=$ac_tag; continue;;
34233 esac
34234 case $ac_mode$ac_tag in
34235 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000034236 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034237 :[FH]-) ac_tag=-:-;;
34238 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34239 esac
34240 ac_save_IFS=$IFS
34241 IFS=:
34242 set x $ac_tag
34243 IFS=$ac_save_IFS
34244 shift
34245 ac_file=$1
34246 shift
34247
34248 case $ac_mode in
34249 :L) ac_source=$1;;
34250 :[FH])
34251 ac_file_inputs=
34252 for ac_f
34253 do
34254 case $ac_f in
34255 -) ac_f="$tmp/stdin";;
34256 *) # Look for the file first in the build tree, then in the source tree
34257 # (if the path is not absolute). The absolute path cannot be DOS-style,
34258 # because $ac_f cannot contain `:'.
34259 test -f "$ac_f" ||
34260 case $ac_f in
34261 [\\/$]*) false;;
34262 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34263 esac ||
cristy98dddb52010-11-04 00:30:15 +000034264 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034265 esac
34266 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000034267 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000034268 done
34269
34270 # Let's still pretend it is `configure' which instantiates (i.e., don't
34271 # use $as_me), people would be surprised to read:
34272 # /* config.h. Generated by config.status. */
34273 configure_input='Generated from '`
34274 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34275 `' by configure.'
34276 if test x"$ac_file" != x-; then
34277 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000034278 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034279$as_echo "$as_me: creating $ac_file" >&6;}
34280 fi
34281 # Neutralize special characters interpreted by sed in replacement strings.
34282 case $configure_input in #(
34283 *\&* | *\|* | *\\* )
34284 ac_sed_conf_input=`$as_echo "$configure_input" |
34285 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34286 *) ac_sed_conf_input=$configure_input;;
34287 esac
34288
34289 case $ac_tag in
34290 *:-:* | *:-) cat >"$tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000034291 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000034292 esac
34293 ;;
34294 esac
34295
34296 ac_dir=`$as_dirname -- "$ac_file" ||
34297$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34298 X"$ac_file" : 'X\(//\)[^/]' \| \
34299 X"$ac_file" : 'X\(//\)$' \| \
34300 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34301$as_echo X"$ac_file" |
34302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34303 s//\1/
34304 q
34305 }
34306 /^X\(\/\/\)[^/].*/{
34307 s//\1/
34308 q
34309 }
34310 /^X\(\/\/\)$/{
34311 s//\1/
34312 q
34313 }
34314 /^X\(\/\).*/{
34315 s//\1/
34316 q
34317 }
34318 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034319 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034320 ac_builddir=.
34321
34322case "$ac_dir" in
34323.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34324*)
34325 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34326 # A ".." for each directory in $ac_dir_suffix.
34327 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34328 case $ac_top_builddir_sub in
34329 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34330 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34331 esac ;;
34332esac
34333ac_abs_top_builddir=$ac_pwd
34334ac_abs_builddir=$ac_pwd$ac_dir_suffix
34335# for backward compatibility:
34336ac_top_builddir=$ac_top_build_prefix
34337
34338case $srcdir in
34339 .) # We are building in place.
34340 ac_srcdir=.
34341 ac_top_srcdir=$ac_top_builddir_sub
34342 ac_abs_top_srcdir=$ac_pwd ;;
34343 [\\/]* | ?:[\\/]* ) # Absolute name.
34344 ac_srcdir=$srcdir$ac_dir_suffix;
34345 ac_top_srcdir=$srcdir
34346 ac_abs_top_srcdir=$srcdir ;;
34347 *) # Relative name.
34348 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34349 ac_top_srcdir=$ac_top_build_prefix$srcdir
34350 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34351esac
34352ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34353
34354
34355 case $ac_mode in
34356 :F)
34357 #
34358 # CONFIG_FILE
34359 #
34360
34361 case $INSTALL in
34362 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34363 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34364 esac
cristy73bd4a52010-10-05 11:24:23 +000034365 ac_MKDIR_P=$MKDIR_P
34366 case $MKDIR_P in
34367 [\\/$]* | ?:[\\/]* ) ;;
34368 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34369 esac
cristy3ed852e2009-09-05 21:47:34 +000034370_ACEOF
34371
34372cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34373# If the template does not know about datarootdir, expand it.
34374# FIXME: This hack should be removed a few years after 2.60.
34375ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000034376ac_sed_dataroot='
34377/datarootdir/ {
34378 p
34379 q
34380}
34381/@datadir@/p
34382/@docdir@/p
34383/@infodir@/p
34384/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000034385/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000034386case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34387*datarootdir*) ac_datarootdir_seen=yes;;
34388*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000034389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000034390$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34391_ACEOF
34392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34393 ac_datarootdir_hack='
34394 s&@datadir@&$datadir&g
34395 s&@docdir@&$docdir&g
34396 s&@infodir@&$infodir&g
34397 s&@localedir@&$localedir&g
34398 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000034399 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000034400esac
34401_ACEOF
34402
34403# Neutralize VPATH when `$srcdir' = `.'.
34404# Shell code in configure.ac might set extrasub.
34405# FIXME: do we really want to maintain this feature?
34406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34407ac_sed_extra="$ac_vpsub
34408$extrasub
34409_ACEOF
34410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34411:t
34412/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34413s|@configure_input@|$ac_sed_conf_input|;t t
34414s&@top_builddir@&$ac_top_builddir_sub&;t t
34415s&@top_build_prefix@&$ac_top_build_prefix&;t t
34416s&@srcdir@&$ac_srcdir&;t t
34417s&@abs_srcdir@&$ac_abs_srcdir&;t t
34418s&@top_srcdir@&$ac_top_srcdir&;t t
34419s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34420s&@builddir@&$ac_builddir&;t t
34421s&@abs_builddir@&$ac_abs_builddir&;t t
34422s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34423s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000034424s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000034425$ac_datarootdir_hack
34426"
34427eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy98dddb52010-11-04 00:30:15 +000034428 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034429
34430test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34431 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34432 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000034433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000034434which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000034435$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000034436which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000034437
34438 rm -f "$tmp/stdin"
34439 case $ac_file in
34440 -) cat "$tmp/out" && rm -f "$tmp/out";;
34441 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34442 esac \
cristy98dddb52010-11-04 00:30:15 +000034443 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034444 ;;
34445 :H)
34446 #
34447 # CONFIG_HEADER
34448 #
34449 if test x"$ac_file" != x-; then
34450 {
34451 $as_echo "/* $configure_input */" \
34452 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34453 } >"$tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000034454 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034455 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000034456 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034457$as_echo "$as_me: $ac_file is unchanged" >&6;}
34458 else
34459 rm -f "$ac_file"
34460 mv "$tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000034461 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034462 fi
34463 else
34464 $as_echo "/* $configure_input */" \
34465 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000034466 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034467 fi
cristy73bd4a52010-10-05 11:24:23 +000034468# Compute "$ac_file"'s index in $config_headers.
34469_am_arg="$ac_file"
34470_am_stamp_count=1
34471for _am_header in $config_headers :; do
34472 case $_am_header in
34473 $_am_arg | $_am_arg:* )
34474 break ;;
34475 * )
34476 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34477 esac
34478done
34479echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34480$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34481 X"$_am_arg" : 'X\(//\)[^/]' \| \
34482 X"$_am_arg" : 'X\(//\)$' \| \
34483 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34484$as_echo X"$_am_arg" |
34485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34486 s//\1/
34487 q
34488 }
34489 /^X\(\/\/\)[^/].*/{
34490 s//\1/
34491 q
34492 }
34493 /^X\(\/\/\)$/{
34494 s//\1/
34495 q
34496 }
34497 /^X\(\/\).*/{
34498 s//\1/
34499 q
34500 }
34501 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000034502 ;;
34503
cristy8b350f62009-11-15 23:12:43 +000034504 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000034505$as_echo "$as_me: executing $ac_file commands" >&6;}
34506 ;;
34507 esac
34508
34509
34510 case $ac_file$ac_mode in
cristy73bd4a52010-10-05 11:24:23 +000034511 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34512ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34513ac_prefix_conf_PKG=`echo MagickCore`
34514ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34515ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34516ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34517if test ".$ac_prefix_conf_INP" = "."; then
34518 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34519 case "$ac_file" in
34520 *.h) ac_prefix_conf_INP=$ac_file ;;
34521 *)
34522 esac
34523 test ".$ac_prefix_conf_INP" != "." && break
34524 done
34525fi
34526if test ".$ac_prefix_conf_INP" = "."; then
34527 case "$ac_prefix_conf_OUT" in
34528 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34529 ;;
34530 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34531 ;;
34532 *) ac_prefix_conf_INP=config.h
34533 ;;
34534 esac
34535fi
34536if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000034537 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000034538else
34539 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34540 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34541 fi fi
34542 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
34543$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34544 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000034545 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34546 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
34547 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34548 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
34549 $as_echo "#endif/" >> conftest.prefix
34550 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34551 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
34552 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000034553 # now executing _script on _DEF input to create _OUT output file
34554 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34555 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34556 echo ' ' >>$tmp/pconfig.h
34557 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34558
34559 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34560 echo ' ' >>$tmp/pconfig.h
34561 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34562 echo "#endif" >>$tmp/pconfig.h
34563 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
34564 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
34565$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34566 else
34567 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34568$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34569 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34570 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34571 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34572$as_echo X"$ac_prefix_conf_OUT" |
34573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34574 s//\1/
34575 q
34576 }
34577 /^X\(\/\/\)[^/].*/{
34578 s//\1/
34579 q
34580 }
34581 /^X\(\/\/\)$/{
34582 s//\1/
34583 q
34584 }
34585 /^X\(\/\).*/{
34586 s//\1/
34587 q
34588 }
34589 s/.*/./; q'`
34590 as_dir="$ac_dir"; as_fn_mkdir_p
34591 rm -f "$ac_prefix_conf_OUT"
34592 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34593 fi
34594 cp conftest.prefix _configs.sed
34595 else
cristy98dddb52010-11-04 00:30:15 +000034596 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000034597 fi
34598 rm -f conftest.*
34599fi
34600 ;;
34601 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34602 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34603 # are listed without --file. Let's play safe and only enable the eval
34604 # if we detect the quoting.
34605 case $CONFIG_FILES in
34606 *\'*) eval set x "$CONFIG_FILES" ;;
34607 *) set x $CONFIG_FILES ;;
34608 esac
34609 shift
34610 for mf
34611 do
34612 # Strip MF so we end up with the name of the file.
34613 mf=`echo "$mf" | sed -e 's/:.*$//'`
34614 # Check whether this is an Automake generated Makefile or not.
34615 # We used to match only the files named `Makefile.in', but
34616 # some people rename them; so instead we look at the file content.
34617 # Grep'ing the first line is not enough: some people post-process
34618 # each Makefile.in and add a new line on top of each file to say so.
34619 # Grep'ing the whole file is not good either: AIX grep has a line
34620 # limit of 2048, but all sed's we know have understand at least 4000.
34621 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34622 dirpart=`$as_dirname -- "$mf" ||
34623$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34624 X"$mf" : 'X\(//\)[^/]' \| \
34625 X"$mf" : 'X\(//\)$' \| \
34626 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34627$as_echo X"$mf" |
34628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34629 s//\1/
34630 q
34631 }
34632 /^X\(\/\/\)[^/].*/{
34633 s//\1/
34634 q
34635 }
34636 /^X\(\/\/\)$/{
34637 s//\1/
34638 q
34639 }
34640 /^X\(\/\).*/{
34641 s//\1/
34642 q
34643 }
34644 s/.*/./; q'`
34645 else
34646 continue
34647 fi
34648 # Extract the definition of DEPDIR, am__include, and am__quote
34649 # from the Makefile without running `make'.
34650 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34651 test -z "$DEPDIR" && continue
34652 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34653 test -z "am__include" && continue
34654 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34655 # When using ansi2knr, U may be empty or an underscore; expand it
34656 U=`sed -n 's/^U = //p' < "$mf"`
34657 # Find all dependency output files, they are included files with
34658 # $(DEPDIR) in their names. We invoke sed twice because it is the
34659 # simplest approach to changing $(DEPDIR) to its actual value in the
34660 # expansion.
34661 for file in `sed -n "
34662 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34663 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34664 # Make sure the directory exists.
34665 test -f "$dirpart/$file" && continue
34666 fdir=`$as_dirname -- "$file" ||
34667$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34668 X"$file" : 'X\(//\)[^/]' \| \
34669 X"$file" : 'X\(//\)$' \| \
34670 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34671$as_echo X"$file" |
34672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34673 s//\1/
34674 q
34675 }
34676 /^X\(\/\/\)[^/].*/{
34677 s//\1/
34678 q
34679 }
34680 /^X\(\/\/\)$/{
34681 s//\1/
34682 q
34683 }
34684 /^X\(\/\).*/{
34685 s//\1/
34686 q
34687 }
34688 s/.*/./; q'`
34689 as_dir=$dirpart/$fdir; as_fn_mkdir_p
34690 # echo "creating $dirpart/$file"
34691 echo '# dummy' > "$dirpart/$file"
34692 done
34693 done
34694}
34695 ;;
34696 "libtool":C)
34697
34698 # See if we are running on zsh, and set the options which allow our
34699 # commands through without removal of \ escapes.
34700 if test -n "${ZSH_VERSION+set}" ; then
34701 setopt NO_GLOB_SUBST
34702 fi
34703
34704 cfgfile="${ofile}T"
34705 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34706 $RM "$cfgfile"
34707
34708 cat <<_LT_EOF >> "$cfgfile"
34709#! $SHELL
34710
34711# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34712# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34713# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34714# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34715#
34716# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy0c60a692010-11-04 01:09:47 +000034717# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
34718# Inc.
cristy73bd4a52010-10-05 11:24:23 +000034719# Written by Gordon Matzigkeit, 1996
34720#
34721# This file is part of GNU Libtool.
34722#
34723# GNU Libtool is free software; you can redistribute it and/or
34724# modify it under the terms of the GNU General Public License as
34725# published by the Free Software Foundation; either version 2 of
34726# the License, or (at your option) any later version.
34727#
34728# As a special exception to the GNU General Public License,
34729# if you distribute this file as part of a program or library that
34730# is built using GNU Libtool, you may include this file under the
34731# same distribution terms that you use for the rest of that program.
34732#
34733# GNU Libtool is distributed in the hope that it will be useful,
34734# but WITHOUT ANY WARRANTY; without even the implied warranty of
34735# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34736# GNU General Public License for more details.
34737#
34738# You should have received a copy of the GNU General Public License
34739# along with GNU Libtool; see the file COPYING. If not, a copy
34740# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34741# obtained by writing to the Free Software Foundation, Inc.,
34742# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34743
34744
34745# The names of the tagged configurations supported by this script.
34746available_tags="CXX "
34747
34748# ### BEGIN LIBTOOL CONFIG
34749
34750# A sed program that does not truncate output.
34751SED=$lt_SED
34752
34753# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34754Xsed="\$SED -e 1s/^X//"
34755
34756# A grep program that handles long lines.
34757GREP=$lt_GREP
34758
34759# An ERE matcher.
34760EGREP=$lt_EGREP
34761
34762# A literal string matcher.
34763FGREP=$lt_FGREP
34764
cristy0c60a692010-11-04 01:09:47 +000034765# Shell to use when invoking shell scripts.
34766SHELL=$lt_SHELL
34767
34768# An echo program that protects backslashes.
34769ECHO=$lt_ECHO
34770
cristy73bd4a52010-10-05 11:24:23 +000034771# Which release of libtool.m4 was used?
34772macro_version=$macro_version
34773macro_revision=$macro_revision
34774
34775# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000034776AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000034777
34778# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000034779DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000034780
34781# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000034782OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000034783
34784# Whether or not to build shared libraries.
34785build_libtool_libs=$enable_shared
34786
34787# Whether or not to build static libraries.
34788build_old_libs=$enable_static
34789
34790# What type of objects to build.
34791pic_mode=$pic_mode
34792
34793# Whether or not to optimize for fast installation.
34794fast_install=$enable_fast_install
34795
34796# The host system.
34797host_alias=$host_alias
34798host=$host
34799host_os=$host_os
34800
34801# The build system.
34802build_alias=$build_alias
34803build=$build
34804build_os=$build_os
34805
34806# A BSD- or MS-compatible name lister.
34807NM=$lt_NM
34808
34809# Whether we need soft or hard links.
34810LN_S=$lt_LN_S
34811
34812# What is the maximum length of a command?
34813max_cmd_len=$max_cmd_len
34814
34815# Object file suffix (normally "o").
34816objext=$ac_objext
34817
34818# Executable file suffix (normally "").
34819exeext=$exeext
34820
34821# whether the shell understands "unset".
34822lt_unset=$lt_unset
34823
34824# turn spaces into newlines.
34825SP2NL=$lt_lt_SP2NL
34826
34827# turn newlines into spaces.
34828NL2SP=$lt_lt_NL2SP
34829
cristy73bd4a52010-10-05 11:24:23 +000034830# Method to check whether dependent libraries are shared objects.
34831deplibs_check_method=$lt_deplibs_check_method
34832
34833# Command to use when deplibs_check_method == "file_magic".
34834file_magic_cmd=$lt_file_magic_cmd
34835
34836# The archiver.
34837AR=$lt_AR
34838AR_FLAGS=$lt_AR_FLAGS
34839
34840# A symbol stripping program.
34841STRIP=$lt_STRIP
34842
34843# Commands used to install an old-style archive.
34844RANLIB=$lt_RANLIB
34845old_postinstall_cmds=$lt_old_postinstall_cmds
34846old_postuninstall_cmds=$lt_old_postuninstall_cmds
34847
cristy0c60a692010-11-04 01:09:47 +000034848# Whether to use a lock for old archive extraction.
34849lock_old_archive_extraction=$lock_old_archive_extraction
34850
cristy73bd4a52010-10-05 11:24:23 +000034851# A C compiler.
34852LTCC=$lt_CC
34853
34854# LTCC compiler flags.
34855LTCFLAGS=$lt_CFLAGS
34856
34857# Take the output of nm and produce a listing of raw symbols and C names.
34858global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34859
34860# Transform the output of nm in a proper C declaration.
34861global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34862
34863# Transform the output of nm in a C name address pair.
34864global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34865
34866# Transform the output of nm in a C name address pair when lib prefix is needed.
34867global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34868
34869# The name of the directory that contains temporary libtool files.
34870objdir=$objdir
34871
cristy73bd4a52010-10-05 11:24:23 +000034872# Used to examine libraries when file_magic_cmd begins with "file".
34873MAGIC_CMD=$MAGIC_CMD
34874
34875# Must we lock files when doing compilation?
34876need_locks=$lt_need_locks
34877
34878# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34879DSYMUTIL=$lt_DSYMUTIL
34880
34881# Tool to change global to local symbols on Mac OS X.
34882NMEDIT=$lt_NMEDIT
34883
34884# Tool to manipulate fat objects and archives on Mac OS X.
34885LIPO=$lt_LIPO
34886
34887# ldd/readelf like tool for Mach-O binaries on Mac OS X.
34888OTOOL=$lt_OTOOL
34889
34890# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34891OTOOL64=$lt_OTOOL64
34892
34893# Old archive suffix (normally "a").
34894libext=$libext
34895
34896# Shared library suffix (normally ".so").
34897shrext_cmds=$lt_shrext_cmds
34898
34899# The commands to extract the exported symbol list from a shared archive.
34900extract_expsyms_cmds=$lt_extract_expsyms_cmds
34901
34902# Variables whose values should be saved in libtool wrapper scripts and
34903# restored at link time.
34904variables_saved_for_relink=$lt_variables_saved_for_relink
34905
34906# Do we need the "lib" prefix for modules?
34907need_lib_prefix=$need_lib_prefix
34908
34909# Do we need a version for libraries?
34910need_version=$need_version
34911
34912# Library versioning type.
34913version_type=$version_type
34914
34915# Shared library runtime path variable.
34916runpath_var=$runpath_var
34917
34918# Shared library path variable.
34919shlibpath_var=$shlibpath_var
34920
34921# Is shlibpath searched before the hard-coded library search path?
34922shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34923
34924# Format of library name prefix.
34925libname_spec=$lt_libname_spec
34926
34927# List of archive names. First name is the real one, the rest are links.
34928# The last name is the one that the linker finds with -lNAME
34929library_names_spec=$lt_library_names_spec
34930
34931# The coded name of the library, if different from the real name.
34932soname_spec=$lt_soname_spec
34933
cristy0c60a692010-11-04 01:09:47 +000034934# Permission mode override for installation of shared libraries.
34935install_override_mode=$lt_install_override_mode
34936
cristy73bd4a52010-10-05 11:24:23 +000034937# Command to use after installation of a shared archive.
34938postinstall_cmds=$lt_postinstall_cmds
34939
34940# Command to use after uninstallation of a shared archive.
34941postuninstall_cmds=$lt_postuninstall_cmds
34942
34943# Commands used to finish a libtool library installation in a directory.
34944finish_cmds=$lt_finish_cmds
34945
34946# As "finish_cmds", except a single script fragment to be evaled but
34947# not shown.
34948finish_eval=$lt_finish_eval
34949
34950# Whether we should hardcode library paths into libraries.
34951hardcode_into_libs=$hardcode_into_libs
34952
34953# Compile-time system search path for libraries.
34954sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34955
34956# Run-time system search path for libraries.
34957sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34958
34959# Whether dlopen is supported.
34960dlopen_support=$enable_dlopen
34961
34962# Whether dlopen of programs is supported.
34963dlopen_self=$enable_dlopen_self
34964
34965# Whether dlopen of statically linked programs is supported.
34966dlopen_self_static=$enable_dlopen_self_static
34967
34968# Commands to strip libraries.
34969old_striplib=$lt_old_striplib
34970striplib=$lt_striplib
34971
34972
34973# The linker used to build libraries.
34974LD=$lt_LD
34975
cristy0c60a692010-11-04 01:09:47 +000034976# How to create reloadable object files.
34977reload_flag=$lt_reload_flag
34978reload_cmds=$lt_reload_cmds
34979
cristy73bd4a52010-10-05 11:24:23 +000034980# Commands used to build an old-style archive.
34981old_archive_cmds=$lt_old_archive_cmds
34982
34983# A language specific compiler.
34984CC=$lt_compiler
34985
34986# Is the compiler the GNU compiler?
34987with_gcc=$GCC
34988
34989# Compiler flag to turn off builtin functions.
34990no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34991
34992# How to pass a linker flag through the compiler.
34993wl=$lt_lt_prog_compiler_wl
34994
34995# Additional compiler flags for building library objects.
34996pic_flag=$lt_lt_prog_compiler_pic
34997
34998# Compiler flag to prevent dynamic linking.
34999link_static_flag=$lt_lt_prog_compiler_static
35000
35001# Does compiler simultaneously support -c and -o options?
35002compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35003
35004# Whether or not to add -lc for building shared libraries.
35005build_libtool_need_lc=$archive_cmds_need_lc
35006
35007# Whether or not to disallow shared libs when runtime libs are static.
35008allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35009
35010# Compiler flag to allow reflexive dlopens.
35011export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35012
35013# Compiler flag to generate shared objects directly from archives.
35014whole_archive_flag_spec=$lt_whole_archive_flag_spec
35015
35016# Whether the compiler copes with passing no objects directly.
35017compiler_needs_object=$lt_compiler_needs_object
35018
35019# Create an old-style archive from a shared archive.
35020old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35021
35022# Create a temporary old-style archive to link instead of a shared archive.
35023old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35024
35025# Commands used to build a shared archive.
35026archive_cmds=$lt_archive_cmds
35027archive_expsym_cmds=$lt_archive_expsym_cmds
35028
35029# Commands used to build a loadable module if different from building
35030# a shared archive.
35031module_cmds=$lt_module_cmds
35032module_expsym_cmds=$lt_module_expsym_cmds
35033
35034# Whether we are building with GNU ld or not.
35035with_gnu_ld=$lt_with_gnu_ld
35036
35037# Flag that allows shared libraries with undefined symbols to be built.
35038allow_undefined_flag=$lt_allow_undefined_flag
35039
35040# Flag that enforces no undefined symbols.
35041no_undefined_flag=$lt_no_undefined_flag
35042
35043# Flag to hardcode \$libdir into a binary during linking.
35044# This must work even if \$libdir does not exist
35045hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35046
35047# If ld is used when linking, flag to hardcode \$libdir into a binary
35048# during linking. This must work even if \$libdir does not exist.
35049hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35050
35051# Whether we need a single "-rpath" flag with a separated argument.
35052hardcode_libdir_separator=$lt_hardcode_libdir_separator
35053
35054# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35055# DIR into the resulting binary.
35056hardcode_direct=$hardcode_direct
35057
35058# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35059# DIR into the resulting binary and the resulting library dependency is
35060# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35061# library is relocated.
35062hardcode_direct_absolute=$hardcode_direct_absolute
35063
35064# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35065# into the resulting binary.
35066hardcode_minus_L=$hardcode_minus_L
35067
35068# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35069# into the resulting binary.
35070hardcode_shlibpath_var=$hardcode_shlibpath_var
35071
35072# Set to "yes" if building a shared library automatically hardcodes DIR
35073# into the library and all subsequent libraries and executables linked
35074# against it.
35075hardcode_automatic=$hardcode_automatic
35076
35077# Set to yes if linker adds runtime paths of dependent libraries
35078# to runtime path list.
35079inherit_rpath=$inherit_rpath
35080
35081# Whether libtool must link a program against all its dependency libraries.
35082link_all_deplibs=$link_all_deplibs
35083
35084# Fix the shell variable \$srcfile for the compiler.
35085fix_srcfile_path=$lt_fix_srcfile_path
35086
35087# Set to "yes" if exported symbols are required.
35088always_export_symbols=$always_export_symbols
35089
35090# The commands to list exported symbols.
35091export_symbols_cmds=$lt_export_symbols_cmds
35092
35093# Symbols that should not be listed in the preloaded symbols.
35094exclude_expsyms=$lt_exclude_expsyms
35095
35096# Symbols that must always be exported.
35097include_expsyms=$lt_include_expsyms
35098
35099# Commands necessary for linking programs (against libraries) with templates.
35100prelink_cmds=$lt_prelink_cmds
35101
35102# Specify filename containing input files.
35103file_list_spec=$lt_file_list_spec
35104
35105# How to hardcode a shared library path into an executable.
35106hardcode_action=$hardcode_action
35107
35108# The directories searched by this compiler when creating a shared library.
35109compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35110
35111# Dependencies to place before and after the objects being linked to
35112# create a shared library.
35113predep_objects=$lt_predep_objects
35114postdep_objects=$lt_postdep_objects
35115predeps=$lt_predeps
35116postdeps=$lt_postdeps
35117
35118# The library search path used internally by the compiler when linking
35119# a shared library.
35120compiler_lib_search_path=$lt_compiler_lib_search_path
35121
35122# ### END LIBTOOL CONFIG
35123
35124_LT_EOF
35125
35126 case $host_os in
35127 aix3*)
35128 cat <<\_LT_EOF >> "$cfgfile"
35129# AIX sometimes has problems with the GCC collect2 program. For some
35130# reason, if we set the COLLECT_NAMES environment variable, the problems
35131# vanish in a puff of smoke.
35132if test "X${COLLECT_NAMES+set}" != Xset; then
35133 COLLECT_NAMES=
35134 export COLLECT_NAMES
35135fi
35136_LT_EOF
35137 ;;
35138 esac
35139
35140
35141ltmain="$ac_aux_dir/ltmain.sh"
35142
35143
35144 # We use sed instead of cat because bash on DJGPP gets confused if
35145 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35146 # text mode, it properly converts lines to CR/LF. This bash problem
35147 # is reportedly fixed, but why not run on old versions too?
35148 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35149 || (rm -f "$cfgfile"; exit 1)
35150
35151 case $xsi_shell in
35152 yes)
35153 cat << \_LT_EOF >> "$cfgfile"
35154
35155# func_dirname file append nondir_replacement
35156# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35157# otherwise set result to NONDIR_REPLACEMENT.
35158func_dirname ()
35159{
35160 case ${1} in
35161 */*) func_dirname_result="${1%/*}${2}" ;;
35162 * ) func_dirname_result="${3}" ;;
35163 esac
35164}
35165
35166# func_basename file
35167func_basename ()
35168{
35169 func_basename_result="${1##*/}"
35170}
35171
35172# func_dirname_and_basename file append nondir_replacement
35173# perform func_basename and func_dirname in a single function
35174# call:
35175# dirname: Compute the dirname of FILE. If nonempty,
35176# add APPEND to the result, otherwise set result
35177# to NONDIR_REPLACEMENT.
35178# value returned in "$func_dirname_result"
35179# basename: Compute filename of FILE.
35180# value retuned in "$func_basename_result"
35181# Implementation must be kept synchronized with func_dirname
35182# and func_basename. For efficiency, we do not delegate to
35183# those functions but instead duplicate the functionality here.
35184func_dirname_and_basename ()
35185{
35186 case ${1} in
35187 */*) func_dirname_result="${1%/*}${2}" ;;
35188 * ) func_dirname_result="${3}" ;;
35189 esac
35190 func_basename_result="${1##*/}"
35191}
35192
35193# func_stripname prefix suffix name
35194# strip PREFIX and SUFFIX off of NAME.
35195# PREFIX and SUFFIX must not contain globbing or regex special
35196# characters, hashes, percent signs, but SUFFIX may contain a leading
35197# dot (in which case that matches only a dot).
35198func_stripname ()
35199{
35200 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35201 # positional parameters, so assign one to ordinary parameter first.
35202 func_stripname_result=${3}
35203 func_stripname_result=${func_stripname_result#"${1}"}
35204 func_stripname_result=${func_stripname_result%"${2}"}
35205}
35206
35207# func_opt_split
35208func_opt_split ()
35209{
35210 func_opt_split_opt=${1%%=*}
35211 func_opt_split_arg=${1#*=}
35212}
35213
35214# func_lo2o object
35215func_lo2o ()
35216{
35217 case ${1} in
35218 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35219 *) func_lo2o_result=${1} ;;
35220 esac
35221}
35222
35223# func_xform libobj-or-source
35224func_xform ()
35225{
35226 func_xform_result=${1%.*}.lo
35227}
35228
35229# func_arith arithmetic-term...
35230func_arith ()
35231{
35232 func_arith_result=$(( $* ))
35233}
35234
35235# func_len string
35236# STRING may not start with a hyphen.
35237func_len ()
35238{
35239 func_len_result=${#1}
35240}
35241
35242_LT_EOF
35243 ;;
35244 *) # Bourne compatible functions.
35245 cat << \_LT_EOF >> "$cfgfile"
35246
35247# func_dirname file append nondir_replacement
35248# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35249# otherwise set result to NONDIR_REPLACEMENT.
35250func_dirname ()
35251{
35252 # Extract subdirectory from the argument.
cristy0c60a692010-11-04 01:09:47 +000035253 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
cristy73bd4a52010-10-05 11:24:23 +000035254 if test "X$func_dirname_result" = "X${1}"; then
35255 func_dirname_result="${3}"
35256 else
35257 func_dirname_result="$func_dirname_result${2}"
35258 fi
35259}
35260
35261# func_basename file
35262func_basename ()
35263{
cristy0c60a692010-11-04 01:09:47 +000035264 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
cristy73bd4a52010-10-05 11:24:23 +000035265}
35266
35267
35268# func_stripname prefix suffix name
35269# strip PREFIX and SUFFIX off of NAME.
35270# PREFIX and SUFFIX must not contain globbing or regex special
35271# characters, hashes, percent signs, but SUFFIX may contain a leading
35272# dot (in which case that matches only a dot).
35273# func_strip_suffix prefix name
35274func_stripname ()
35275{
35276 case ${2} in
cristy0c60a692010-11-04 01:09:47 +000035277 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
35278 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
cristy73bd4a52010-10-05 11:24:23 +000035279 esac
35280}
35281
35282# sed scripts:
35283my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35284my_sed_long_arg='1s/^-[^=]*=//'
35285
35286# func_opt_split
35287func_opt_split ()
35288{
cristy0c60a692010-11-04 01:09:47 +000035289 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
35290 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
cristy73bd4a52010-10-05 11:24:23 +000035291}
35292
35293# func_lo2o object
35294func_lo2o ()
35295{
cristy0c60a692010-11-04 01:09:47 +000035296 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
cristy73bd4a52010-10-05 11:24:23 +000035297}
35298
35299# func_xform libobj-or-source
35300func_xform ()
35301{
cristy0c60a692010-11-04 01:09:47 +000035302 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
cristy73bd4a52010-10-05 11:24:23 +000035303}
35304
35305# func_arith arithmetic-term...
35306func_arith ()
35307{
35308 func_arith_result=`expr "$@"`
35309}
35310
35311# func_len string
35312# STRING may not start with a hyphen.
35313func_len ()
35314{
35315 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35316}
35317
35318_LT_EOF
35319esac
35320
35321case $lt_shell_append in
35322 yes)
35323 cat << \_LT_EOF >> "$cfgfile"
35324
35325# func_append var value
35326# Append VALUE to the end of shell variable VAR.
35327func_append ()
35328{
35329 eval "$1+=\$2"
35330}
35331_LT_EOF
35332 ;;
35333 *)
35334 cat << \_LT_EOF >> "$cfgfile"
35335
35336# func_append var value
35337# Append VALUE to the end of shell variable VAR.
35338func_append ()
35339{
35340 eval "$1=\$$1\$2"
35341}
35342
35343_LT_EOF
35344 ;;
35345 esac
35346
35347
35348 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35349 || (rm -f "$cfgfile"; exit 1)
35350
35351 mv -f "$cfgfile" "$ofile" ||
35352 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35353 chmod +x "$ofile"
35354
35355
35356 cat <<_LT_EOF >> "$ofile"
35357
35358# ### BEGIN LIBTOOL TAG CONFIG: CXX
35359
35360# The linker used to build libraries.
35361LD=$lt_LD_CXX
35362
cristy0c60a692010-11-04 01:09:47 +000035363# How to create reloadable object files.
35364reload_flag=$lt_reload_flag_CXX
35365reload_cmds=$lt_reload_cmds_CXX
35366
cristy73bd4a52010-10-05 11:24:23 +000035367# Commands used to build an old-style archive.
35368old_archive_cmds=$lt_old_archive_cmds_CXX
35369
35370# A language specific compiler.
35371CC=$lt_compiler_CXX
35372
35373# Is the compiler the GNU compiler?
35374with_gcc=$GCC_CXX
35375
35376# Compiler flag to turn off builtin functions.
35377no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35378
35379# How to pass a linker flag through the compiler.
35380wl=$lt_lt_prog_compiler_wl_CXX
35381
35382# Additional compiler flags for building library objects.
35383pic_flag=$lt_lt_prog_compiler_pic_CXX
35384
35385# Compiler flag to prevent dynamic linking.
35386link_static_flag=$lt_lt_prog_compiler_static_CXX
35387
35388# Does compiler simultaneously support -c and -o options?
35389compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35390
35391# Whether or not to add -lc for building shared libraries.
35392build_libtool_need_lc=$archive_cmds_need_lc_CXX
35393
35394# Whether or not to disallow shared libs when runtime libs are static.
35395allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35396
35397# Compiler flag to allow reflexive dlopens.
35398export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35399
35400# Compiler flag to generate shared objects directly from archives.
35401whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35402
35403# Whether the compiler copes with passing no objects directly.
35404compiler_needs_object=$lt_compiler_needs_object_CXX
35405
35406# Create an old-style archive from a shared archive.
35407old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35408
35409# Create a temporary old-style archive to link instead of a shared archive.
35410old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35411
35412# Commands used to build a shared archive.
35413archive_cmds=$lt_archive_cmds_CXX
35414archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35415
35416# Commands used to build a loadable module if different from building
35417# a shared archive.
35418module_cmds=$lt_module_cmds_CXX
35419module_expsym_cmds=$lt_module_expsym_cmds_CXX
35420
35421# Whether we are building with GNU ld or not.
35422with_gnu_ld=$lt_with_gnu_ld_CXX
35423
35424# Flag that allows shared libraries with undefined symbols to be built.
35425allow_undefined_flag=$lt_allow_undefined_flag_CXX
35426
35427# Flag that enforces no undefined symbols.
35428no_undefined_flag=$lt_no_undefined_flag_CXX
35429
35430# Flag to hardcode \$libdir into a binary during linking.
35431# This must work even if \$libdir does not exist
35432hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35433
35434# If ld is used when linking, flag to hardcode \$libdir into a binary
35435# during linking. This must work even if \$libdir does not exist.
35436hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35437
35438# Whether we need a single "-rpath" flag with a separated argument.
35439hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35440
35441# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35442# DIR into the resulting binary.
35443hardcode_direct=$hardcode_direct_CXX
35444
35445# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35446# DIR into the resulting binary and the resulting library dependency is
35447# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35448# library is relocated.
35449hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35450
35451# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35452# into the resulting binary.
35453hardcode_minus_L=$hardcode_minus_L_CXX
35454
35455# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35456# into the resulting binary.
35457hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35458
35459# Set to "yes" if building a shared library automatically hardcodes DIR
35460# into the library and all subsequent libraries and executables linked
35461# against it.
35462hardcode_automatic=$hardcode_automatic_CXX
35463
35464# Set to yes if linker adds runtime paths of dependent libraries
35465# to runtime path list.
35466inherit_rpath=$inherit_rpath_CXX
35467
35468# Whether libtool must link a program against all its dependency libraries.
35469link_all_deplibs=$link_all_deplibs_CXX
35470
35471# Fix the shell variable \$srcfile for the compiler.
35472fix_srcfile_path=$lt_fix_srcfile_path_CXX
35473
35474# Set to "yes" if exported symbols are required.
35475always_export_symbols=$always_export_symbols_CXX
35476
35477# The commands to list exported symbols.
35478export_symbols_cmds=$lt_export_symbols_cmds_CXX
35479
35480# Symbols that should not be listed in the preloaded symbols.
35481exclude_expsyms=$lt_exclude_expsyms_CXX
35482
35483# Symbols that must always be exported.
35484include_expsyms=$lt_include_expsyms_CXX
35485
35486# Commands necessary for linking programs (against libraries) with templates.
35487prelink_cmds=$lt_prelink_cmds_CXX
35488
35489# Specify filename containing input files.
35490file_list_spec=$lt_file_list_spec_CXX
35491
35492# How to hardcode a shared library path into an executable.
35493hardcode_action=$hardcode_action_CXX
35494
35495# The directories searched by this compiler when creating a shared library.
35496compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35497
35498# Dependencies to place before and after the objects being linked to
35499# create a shared library.
35500predep_objects=$lt_predep_objects_CXX
35501postdep_objects=$lt_postdep_objects_CXX
35502predeps=$lt_predeps_CXX
35503postdeps=$lt_postdeps_CXX
35504
35505# The library search path used internally by the compiler when linking
35506# a shared library.
35507compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35508
35509# ### END LIBTOOL TAG CONFIG: CXX
35510_LT_EOF
35511
35512 ;;
cristy3ed852e2009-09-05 21:47:34 +000035513 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35514 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35515 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35516 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35517 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35518 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35519
35520 esac
35521done # for ac_tag
35522
35523
cristy8b350f62009-11-15 23:12:43 +000035524as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000035525_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000035526ac_clean_files=$ac_clean_files_save
35527
35528test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000035529 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035530
35531
35532# configure is writing to config.log, and then calls config.status.
35533# config.status does its own redirection, appending to config.log.
35534# Unfortunately, on DOS this fails, as config.log is still kept open
35535# by configure, so config.status won't be able to write to it; its
35536# output is simply discarded. So we exec the FD to /dev/null,
35537# effectively closing config.log, so it can be properly (re)opened and
35538# appended to by config.status. When coming back to configure, we
35539# need to make the FD available again.
35540if test "$no_create" != yes; then
35541 ac_cs_success=:
35542 ac_config_status_args=
35543 test "$silent" = yes &&
35544 ac_config_status_args="$ac_config_status_args --quiet"
35545 exec 5>/dev/null
35546 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35547 exec 5>>config.log
35548 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35549 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000035550 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000035551fi
35552if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000035553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000035554$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35555fi
35556
35557
35558rm -f magick-version
35559
cristy430a7312010-01-21 20:44:04 +000035560result_dejavu_font_dir='none'
35561if test "${dejavu_font_dir}x" != 'x'; then
35562 result_dejavu_font_dir=$dejavu_font_dir
35563fi
35564
cristy3ed852e2009-09-05 21:47:34 +000035565result_ghostscript_font_dir='none'
35566if test "${ghostscript_font_dir}x" != 'x'; then
35567 result_ghostscript_font_dir=$ghostscript_font_dir
35568fi
35569
35570result_windows_font_dir='none'
35571if test "${windows_font_dir}x" != 'x'; then
35572 result_windows_font_dir=${windows_font_dir}
35573fi
35574
cristy8b350f62009-11-15 23:12:43 +000035575{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000035576ImageMagick is configured as follows. Please verify that this configuration
35577matches your expectations.
35578
35579Host system type: $host
35580Build system type: $build
35581
35582 Option Value
35583-------------------------------------------------------------------------------
35584Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35585Static libraries --enable-static=$enable_static $libtool_build_static_libs
35586Module support --with-modules=$with_modules $with_modules
35587GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35588Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35589High Dynamic Range Imagery
35590 --enable-hdri=$enable_hdri $enable_hdri
35591
35592Delegate Configuration:
35593BZLIB --with-bzlib=$with_bzlib $have_bzlib
35594Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035595Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035596DJVU --with-djvu=$with_djvu $have_djvu
35597DPS --with-dps=$with_dps $have_dps
35598FFTW --with-fftw=$with_fftw $have_fftw
35599FlashPIX --with-fpx=$with_fpx $have_fpx
35600FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35601FreeType --with-freetype=$with_freetype $have_freetype
35602GhostPCL None $PCLDelegate ($PCLVersion)
35603GhostXPS None $XPSDelegate ($XPSVersion)
35604Ghostscript None $PSDelegate ($GSVersion)
35605Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35606Ghostscript lib --with-gslib=$with_gslib $have_gslib
35607Graphviz --with-gvc=$with_gvc $have_gvc
35608JBIG --with-jbig=$with_jbig $have_jbig
35609JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35610JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035611LCMS v1 --with-lcms=$with_lcms $have_lcms
35612LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035613LQR --with-lqr=$with_lqr $have_lqr
35614Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35615OpenEXR --with-openexr=$with_openexr $have_openexr
35616PERL --with-perl=$with_perl $have_perl
35617PNG --with-png=$with_png $have_png
35618RSVG --with-rsvg=$with_rsvg $have_rsvg
35619TIFF --with-tiff=$with_tiff $have_tiff
35620Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35621WMF --with-wmf=$with_wmf $have_wmf
35622X11 --with-x=$with_x $have_x
35623XML --with-xml=$with_xml $have_xml
35624ZLIB --with-zlib=$with_zlib $have_zlib
35625
35626X11 Configuration:
35627 X_CFLAGS = $X_CFLAGS
35628 X_PRE_LIBS = $X_PRE_LIBS
35629 X_LIBS = $X_LIBS
35630 X_EXTRA_LIBS = $X_EXTRA_LIBS
35631
35632Options used to compile and link:
35633 PREFIX = $PREFIX_DIR
35634 EXEC-PREFIX = $EXEC_PREFIX_DIR
35635 VERSION = $PACKAGE_VERSION
35636 CC = $CC
35637 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035638 CPPFLAGS = $MAGICK_CPPFLAGS
35639 PCFLAGS = $MAGICK_PCFLAGS
35640 DEFS = $DEFS
35641 LDFLAGS = $LDFLAGS
35642 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35643 LIBS = $MAGICK_LIBS
35644 CXX = $CXX
35645 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000035646 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000035647" >&5
35648$as_echo "
35649ImageMagick is configured as follows. Please verify that this configuration
35650matches your expectations.
35651
35652Host system type: $host
35653Build system type: $build
35654
35655 Option Value
35656-------------------------------------------------------------------------------
35657Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35658Static libraries --enable-static=$enable_static $libtool_build_static_libs
35659Module support --with-modules=$with_modules $with_modules
35660GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35661Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35662High Dynamic Range Imagery
35663 --enable-hdri=$enable_hdri $enable_hdri
35664
35665Delegate Configuration:
35666BZLIB --with-bzlib=$with_bzlib $have_bzlib
35667Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035668Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035669DJVU --with-djvu=$with_djvu $have_djvu
35670DPS --with-dps=$with_dps $have_dps
35671FFTW --with-fftw=$with_fftw $have_fftw
35672FlashPIX --with-fpx=$with_fpx $have_fpx
35673FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35674FreeType --with-freetype=$with_freetype $have_freetype
35675GhostPCL None $PCLDelegate ($PCLVersion)
35676GhostXPS None $XPSDelegate ($XPSVersion)
35677Ghostscript None $PSDelegate ($GSVersion)
35678Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35679Ghostscript lib --with-gslib=$with_gslib $have_gslib
35680Graphviz --with-gvc=$with_gvc $have_gvc
35681JBIG --with-jbig=$with_jbig $have_jbig
35682JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35683JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035684LCMS v1 --with-lcms=$with_lcms $have_lcms
35685LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035686LQR --with-lqr=$with_lqr $have_lqr
35687Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35688OpenEXR --with-openexr=$with_openexr $have_openexr
35689PERL --with-perl=$with_perl $have_perl
35690PNG --with-png=$with_png $have_png
35691RSVG --with-rsvg=$with_rsvg $have_rsvg
35692TIFF --with-tiff=$with_tiff $have_tiff
35693Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35694WMF --with-wmf=$with_wmf $have_wmf
35695X11 --with-x=$with_x $have_x
35696XML --with-xml=$with_xml $have_xml
35697ZLIB --with-zlib=$with_zlib $have_zlib
35698
35699X11 Configuration:
35700 X_CFLAGS = $X_CFLAGS
35701 X_PRE_LIBS = $X_PRE_LIBS
35702 X_LIBS = $X_LIBS
35703 X_EXTRA_LIBS = $X_EXTRA_LIBS
35704
35705Options used to compile and link:
35706 PREFIX = $PREFIX_DIR
35707 EXEC-PREFIX = $EXEC_PREFIX_DIR
35708 VERSION = $PACKAGE_VERSION
35709 CC = $CC
35710 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035711 CPPFLAGS = $MAGICK_CPPFLAGS
35712 PCFLAGS = $MAGICK_PCFLAGS
35713 DEFS = $DEFS
35714 LDFLAGS = $LDFLAGS
35715 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35716 LIBS = $MAGICK_LIBS
35717 CXX = $CXX
35718 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000035719 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000035720" >&6; }