blob: db1c62ea4171a43a618b1235f36c56c08e02aecb [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy4c08aed2011-07-01 19:47:50 +00003# Generated by GNU Autoconf 2.68 for ImageMagick 7.0.0.
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.
cristyda16f162011-02-19 23:52:17 +000094as_myself=
cristy8b350f62009-11-15 23:12:43 +000095case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000096 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
cristy3ed852e2009-09-05 21:47:34 +0000104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000115 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000116fi
117
cristy8b350f62009-11-15 23:12:43 +0000118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
cristy8b350f62009-11-15 23:12:43 +0000136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000177test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188else
189 as_have_required=no
190fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211fi
212fi
213 done;;
214 esac
215 as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
cristyda16f162011-02-19 23:52:17 +0000228 # Preserve -v and -x to the replacement shell.
cristy8b350f62009-11-15 23:12:43 +0000229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
cristyda16f162011-02-19 23:52:17 +0000233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
cristy8b350f62009-11-15 23:12:43 +0000240fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: http://www.imagemagick.org about your system, including
251$0: any error possibly output before this message. Then
252$0: install a modern shell, or manually run the script
253$0: under such a shell if you do have one."
254 fi
255 exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273 { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282 return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290 set +e
291 as_fn_set_status $1
292 exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375fi # as_fn_arith
376
377
cristy98dddb52010-11-04 00:30:15 +0000378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000382# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000383as_fn_error ()
384{
cristy98dddb52010-11-04 00:30:15 +0000385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000389 fi
cristy98dddb52010-11-04 00:30:15 +0000390 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000391 as_fn_exit $as_status
392} # as_fn_error
393
cristy3ed852e2009-09-05 21:47:34 +0000394if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397else
398 as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403else
404 as_basename=false
405fi
406
cristy8b350f62009-11-15 23:12:43 +0000407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409else
410 as_dirname=false
411fi
cristy3ed852e2009-09-05 21:47:34 +0000412
cristy3ed852e2009-09-05 21:47:34 +0000413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
cristy8b350f62009-11-15 23:12:43 +0000432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000438
439
cristy8b350f62009-11-15 23:12:43 +0000440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000461 { $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 +0000462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469}
470
cristy3ed852e2009-09-05 21:47:34 +0000471ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000472case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000473-n*)
cristy8b350f62009-11-15 23:12:43 +0000474 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000479 esac;;
480*)
481 ECHO_N='-n';;
482esac
cristy3ed852e2009-09-05 21:47:34 +0000483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505else
506 as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000512 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000513else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
cristy8b350f62009-11-15 23:12:43 +0000531 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000532 -*)set "./$1";;
533 esac;
cristy8b350f62009-11-15 23:12:43 +0000534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
cristy73bd4a52010-10-05 11:24:23 +0000547SHELL=${CONFIG_SHELL-/bin/sh}
548
cristy73bd4a52010-10-05 11:24:23 +0000549lt_ltdl_dir='ltdl'
550
551lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
552
cristy0c60a692010-11-04 01:09:47 +0000553
cristycd4c5312009-11-22 01:19:08 +0000554test -n "$DJDIR" || exec 7<&0 </dev/null
555exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000556
557# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000558# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000559# so uname gets run too.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562#
563# Initializations.
564#
565ac_default_prefix=/usr/local
566ac_clean_files=
567ac_config_libobj_dir=.
568LIBOBJS=
569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000573
574# Identity of this package.
575PACKAGE_NAME='ImageMagick'
cristy4c08aed2011-07-01 19:47:50 +0000576PACKAGE_TARNAME='ImageMagick-7.0.0'
577PACKAGE_VERSION='7.0.0'
578PACKAGE_STRING='ImageMagick 7.0.0'
cristy3ed852e2009-09-05 21:47:34 +0000579PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000580PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000581
cristy4c08aed2011-07-01 19:47:50 +0000582ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000583ac_config_libobj_dir=ltdl
584# Factoring default headers for most tests.
585ac_includes_default="\
586#include <stdio.h>
587#ifdef HAVE_SYS_TYPES_H
588# include <sys/types.h>
589#endif
590#ifdef HAVE_SYS_STAT_H
591# include <sys/stat.h>
592#endif
593#ifdef STDC_HEADERS
594# include <stdlib.h>
595# include <stddef.h>
596#else
597# ifdef HAVE_STDLIB_H
598# include <stdlib.h>
599# endif
600#endif
601#ifdef HAVE_STRING_H
602# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603# include <memory.h>
604# endif
605# include <string.h>
606#endif
607#ifdef HAVE_STRINGS_H
608# include <strings.h>
609#endif
610#ifdef HAVE_INTTYPES_H
611# include <inttypes.h>
612#endif
613#ifdef HAVE_STDINT_H
614# include <stdint.h>
615#endif
616#ifdef HAVE_UNISTD_H
617# include <unistd.h>
618#endif"
619
cristycd4c5312009-11-22 01:19:08 +0000620ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000621ac_subst_vars='ltdl_LTLIBOBJS
622ltdl_LIBOBJS
623am__EXEEXT_FALSE
624am__EXEEXT_TRUE
625LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000626MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000627MAGICK_LIBS
628MAGICK_LDFLAGS
629MAGICK_PCFLAGS
630MAGICK_CPPFLAGS
631MAGICK_CXXFLAGS
632MAGICK_CFLAGS
633MAGICK_DEP_LIBS
634MAGICK_LTDLDEPS
635MAGICK_LIBLTDL
636OSX_GCOV_LDFLAG
637DELEGATES
638MAGICKCORE_PATH
639PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000640WITH_PERL_DYNAMIC_FALSE
641WITH_PERL_DYNAMIC_TRUE
642WITH_PERL_STATIC_FALSE
643WITH_PERL_STATIC_TRUE
644WITH_PERL_FALSE
645WITH_PERL_TRUE
646PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000647GSVersion
648GSPSDevice
649GSPDFDevice
650GSMonoDevice
651GSEPSDevice
652GSColorDevice
653GSCMYKDevice
654GSAlphaDevice
655XPSVersion
656XPSCMYKDevice
657XPSColorDevice
658XPSMonoDevice
659PCLVersion
660PCLCMYKDevice
661PCLColorDevice
662PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000663ZIP_DELEGATE_FALSE
664ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000665ZIP
cristy73bd4a52010-10-05 11:24:23 +0000666P7ZIP_DELEGATE_FALSE
667P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000668P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000669RPM_DELEGATE_FALSE
670RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000671RPM
672PERL
673TAR
674ShowImageDelegate
675type_include_files
676ghostscript_font_dir
677windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000678dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000679PrintDelegate
680ZipDelegate
681XPSDelegate
682WWWDecodeDelegate
683WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000684UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000685TXTDelegate
686SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000687RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000688RMDelegate
689RLEEncodeDelegate
690PSDelegate
691POVDelegate
692PGPDecodeDelegate
693PCLDelegate
694MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000695MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696MPEGEncodeDelegate
697MPEGDecodeDelegate
698MANDelegate
699LaunchDelegate
700LZWEncodeDelegate
701LZWDecodeDelegate
702LPRDelegate
703LPDelegate
704ILBMEncodeDelegate
705ILBMDecodeDelegate
706HTMLDecodeDelegate
707HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708GnuplotDecodeDelegate
709MogrifyDelegate
710DisplayDelegate
711ConvertDelegate
712FIGDecodeDelegate
713EditorDelegate
714EchoDelegate
715DVIDecodeDelegate
716GVCDecodeDelegate
717DNGDecodeDelegate
718CatDelegate
719CGMDecodeDelegate
720BrowseDelegate
721BZIPDelegate
722BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000723AutotraceDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000724SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000725CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000726DOCUMENTATION_PATH
727FILTER_PATH
728CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000729LIBRARY_PATH
730EXECUTABLE_PATH
731PERLMAINCC
732XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000733XML_DELEGATE_FALSE
734XML_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000735xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000736WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000737WMF_DELEGATE_FALSE
738WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000739WEBP_LIBS
740WEBP_DELEGATE_FALSE
741WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000742TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000743TIFF_DELEGATE_FALSE
744TIFF_DELEGATE_TRUE
745CAIRO_DELEGATE_FALSE
746CAIRO_DELEGATE_TRUE
747RSVG_DELEGATE_FALSE
748RSVG_DELEGATE_TRUE
749CAIRO_SVG_LIBS
750CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000751RSVG_LIBS
752RSVG_CFLAGS
753PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000754PNG_DELEGATE_FALSE
755PNG_DELEGATE_TRUE
756OPENEXR_DELEGATE_FALSE
757OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000758OPENEXR_LIBS
759OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000760LZMA_LIBS
761LZMA_DELEGATE_FALSE
762LZMA_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000763LQR_DELEGATE_FALSE
764LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000765LQR_LIBS
766LQR_CFLAGS
767LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000768LCMS_DELEGATE_FALSE
769LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000770JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000771JP2_DELEGATE_FALSE
772JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000773JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000774JPEG_DELEGATE_FALSE
775JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000776JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000777JBIG_DELEGATE_FALSE
778JBIG_DELEGATE_TRUE
779GVC_DELEGATE_FALSE
780GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000781GVC_LIBS
782GVC_CFLAGS
783GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000784GS_DELEGATE_FALSE
785GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000786FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000787FREETYPE_DELEGATE_FALSE
788FREETYPE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000789freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000790FONTCONFIG_DELEGATE_FALSE
791FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000792FONTCONFIG_LIBS
793FONTCONFIG_CFLAGS
794FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000795FPX_DELEGATE_FALSE
796FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000797FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000798FFTW_DELEGATE_FALSE
799FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000800DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000801DJVU_DELEGATE_FALSE
802DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000803DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804DPS_DELEGATE_FALSE
805DPS_DELEGATE_TRUE
806AUTOTRACE_DELEGATE_FALSE
807AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000808AUTOTRACE_LIBS
809AUTOTRACE_CFLAGS
810LIB_DL
811ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000812ZLIB_DELEGATE_FALSE
813ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000814XEXT_LIBS
815X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000816X11_DELEGATE_FALSE
817X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000818X_EXTRA_LIBS
819X_LIBS
820X_PRE_LIBS
821X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000822XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000823BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000824BZLIB_DELEGATE_FALSE
825BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000826CCMALLOCDelegate
827UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000828HasUMEM_FALSE
829HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000830THREAD_LIBS
831GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000832WITH_MAGICK_PLUS_PLUS_FALSE
833WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000834OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000835MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000836POW_LIB
837LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000838UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000839UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000840UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000841UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000842UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000843UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000844INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000845INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000846UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000847UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000848INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000849INT32_T
850UINT16_T
851INT16_T
852UINT8_T
853INT8_T
854LIBRARY_EXTRA_CPPFLAGS
855MODULE_EXTRA_CPPFLAGS
856LIBSTDCLDFLAGS
857PERL_MAKE_OPTIONS
858QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000859MAINT
860MAINTAINER_MODE_FALSE
861MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000862MAGICK_HDRI
863DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000864WITH_LTDL_FALSE
865WITH_LTDL_TRUE
866WITH_MODULES_FALSE
867WITH_MODULES_TRUE
868WITH_SHARED_LIBS_FALSE
869WITH_SHARED_LIBS_TRUE
870LTDLOPEN
871LT_CONFIG_H
872CONVENIENCE_LTDL_FALSE
873CONVENIENCE_LTDL_TRUE
874INSTALL_LTDL_FALSE
875INSTALL_LTDL_TRUE
876ARGZ_H
877sys_symbol_underscore
878LIBADD_DL
879LT_DLPREOPEN
880LIBADD_DLD_LINK
881LIBADD_SHL_LOAD
882LIBADD_DLOPEN
883LT_DLLOADERS
884INCLTDL
885LTDLINCL
886LTDLDEPS
887LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000888LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000889CXXCPP
890OTOOL64
891OTOOL
892LIPO
893NMEDIT
894DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000895MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000896RANLIB
cristyda16f162011-02-19 23:52:17 +0000897ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000898AR
899NM
900ac_ct_DUMPBIN
901DUMPBIN
902LIBTOOL
903OBJDUMP
904DLLTOOL
905AS
cristy3ed852e2009-09-05 21:47:34 +0000906LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000907CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000908CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000909OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000910PTHREAD_CFLAGS
911PTHREAD_LIBS
912PTHREAD_CC
913ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000914WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000915USING_CL_FALSE
916USING_CL_TRUE
917CYGWIN_BUILD_FALSE
918CYGWIN_BUILD_TRUE
919WIN32_NATIVE_BUILD_FALSE
920WIN32_NATIVE_BUILD_TRUE
921WINGDI32_DELEGATE_FALSE
922WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000923GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000924PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000925LN_S
cristy3ed852e2009-09-05 21:47:34 +0000926LD
cristy73bd4a52010-10-05 11:24:23 +0000927FGREP
928SED
929am__fastdepCXX_FALSE
930am__fastdepCXX_TRUE
931CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000932ac_ct_CXX
933CXXFLAGS
934CXX
cristya0b81c32010-01-22 02:54:33 +0000935EGREP
936GREP
937CPP
cristy73bd4a52010-10-05 11:24:23 +0000938am__fastdepCC_FALSE
939am__fastdepCC_TRUE
940CCDEPMODE
941AMDEPBACKSLASH
942AMDEP_FALSE
943AMDEP_TRUE
944am__quote
945am__include
946DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000947OBJEXT
948EXEEXT
949ac_ct_CC
950CPPFLAGS
951LDFLAGS
952CFLAGS
953CC
954DIRSEP
955MAGICK_FILTER_MODULE_PATH
956MAGICK_CONFIGURE_BUILD_PATH
957MAGICK_CONFIGURE_SRC_PATH
958MAGICK_CODER_MODULE_PATH
959MAN_DIR
960INFO_DIR
961PERSISTINCLUDE_DIR
962INCLUDE_DIR
963LIB_DIR
964LOCALSTATE_DIR
965SHAREDSTATE_DIR
966SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000967DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000968DATA_DIR
969LIBEXEC_DIR
970SBIN_DIR
971BIN_DIR
972EXEC_PREFIX_DIR
973PREFIX_DIR
974CONFIG_STATUS_DEPENDENCIES
975MAGICK_LIB_VERSION_NUMBER
976MAGICK_LIB_VERSION_TEXT
977MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000978AM_BACKSLASH
979AM_DEFAULT_VERBOSITY
980am__untar
981am__tar
982AMTAR
983am__leading_dot
984SET_MAKE
985AWK
986mkdir_p
987MKDIR_P
988INSTALL_STRIP_PROGRAM
989STRIP
990install_sh
991MAKEINFO
992AUTOHEADER
993AUTOMAKE
994AUTOCONF
995ACLOCAL
996VERSION
997PACKAGE
998CYGPATH_W
999am__isrc
1000INSTALL_DATA
1001INSTALL_SCRIPT
1002INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001003PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001004PACKAGE_RELEASE_DATE
1005PACKAGE_LIB_VERSION_NUMBER
1006PACKAGE_LIB_VERSION
1007PACKAGE_CHANGE_DATE
1008PACKAGE_RELEASE
cristyd694ca32011-03-27 21:42:54 +00001009MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001010MAGICK_LIBRARY_VERSION_INFO
1011MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001012MAGICK_LIBRARY_AGE
1013MAGICK_LIBRARY_REVISION
1014MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001015MAGICK_TARGET_OS
1016MAGICK_TARGET_VENDOR
1017MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001018target_os
1019target_vendor
1020target_cpu
1021target
1022host_os
1023host_vendor
1024host_cpu
1025host
1026build_os
1027build_vendor
1028build_cpu
1029build
1030CONFIGURE_ARGS
1031DISTCHECK_CONFIG_FLAGS
1032target_alias
1033host_alias
1034build_alias
1035LIBS
1036ECHO_T
1037ECHO_N
1038ECHO_C
1039DEFS
1040mandir
1041localedir
1042libdir
1043psdir
1044pdfdir
1045dvidir
1046htmldir
1047infodir
1048docdir
1049oldincludedir
1050includedir
1051localstatedir
1052sharedstatedir
1053sysconfdir
1054datadir
1055datarootdir
1056libexecdir
1057sbindir
1058bindir
1059program_transform_name
1060prefix
1061exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001062PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001063PACKAGE_BUGREPORT
1064PACKAGE_STRING
1065PACKAGE_VERSION
1066PACKAGE_TARNAME
1067PACKAGE_NAME
1068PATH_SEPARATOR
1069SHELL'
1070ac_subst_files=''
1071ac_user_opts='
1072enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001073enable_silent_rules
1074enable_dependency_tracking
1075with_gnu_ld
1076with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001077enable_bounds_checking
1078enable_osx_universal_binary
1079with_threads
1080enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001081enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001082enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001083enable_shared
1084enable_static
1085with_pic
1086enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001087with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001088enable_libtool_lock
1089with_included_ltdl
1090with_ltdl_include
1091with_ltdl_lib
1092enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001093with_modules
1094enable_delegate_build
1095enable_deprecated
1096enable_installed
1097enable_cipher
1098enable_embeddable
1099enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001100enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001101enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001102enable_ccmalloc
1103enable_efence
1104enable_prof
1105enable_gprof
1106enable_gcov
1107with_method_prefix
1108with_quantum_depth
1109with_cache
1110with_frozenpaths
1111with_magick_plus_plus
1112with_perl
1113with_perl_options
1114with_umem
1115with_libstdc
1116with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001117with_x
cristy3ed852e2009-09-05 21:47:34 +00001118with_zlib
1119with_autotrace
1120with_dps
1121with_djvu
cristy430a7312010-01-21 20:44:04 +00001122with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001123with_fftw
1124with_fpx
1125with_fontconfig
1126with_freetype
1127with_gslib
1128with_fontpath
1129with_gs_font_dir
1130with_gvc
1131with_jbig
1132with_jpeg
1133with_jp2
1134with_lcms
cristy71203402010-06-18 13:12:03 +00001135with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001136with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001137with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001138with_openexr
1139with_png
1140with_rsvg
1141with_tiff
cristyb1860752011-03-14 00:27:46 +00001142with_webp
cristy3ed852e2009-09-05 21:47:34 +00001143with_windows_font_dir
1144with_wmf
1145with_xml
1146'
1147 ac_precious_vars='build_alias
1148host_alias
1149target_alias
1150CC
1151CFLAGS
1152LDFLAGS
1153LIBS
1154CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001155CPP
cristy3ed852e2009-09-05 21:47:34 +00001156CXX
1157CXXFLAGS
1158CCC
cristy73bd4a52010-10-05 11:24:23 +00001159PKG_CONFIG
1160CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001161XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001162AUTOTRACE_CFLAGS
1163AUTOTRACE_LIBS
1164FONTCONFIG_CFLAGS
1165FONTCONFIG_LIBS
1166GVC_CFLAGS
1167GVC_LIBS
1168LQR_CFLAGS
1169LQR_LIBS
1170OPENEXR_CFLAGS
1171OPENEXR_LIBS
1172RSVG_CFLAGS
1173RSVG_LIBS
1174CAIRO_SVG_CFLAGS
1175CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001176
1177
1178# Initialize some variables set by options.
1179ac_init_help=
1180ac_init_version=false
1181ac_unrecognized_opts=
1182ac_unrecognized_sep=
1183# The variables have the same names as the options, with
1184# dashes changed to underlines.
1185cache_file=/dev/null
1186exec_prefix=NONE
1187no_create=
1188no_recursion=
1189prefix=NONE
1190program_prefix=NONE
1191program_suffix=NONE
1192program_transform_name=s,x,x,
1193silent=
1194site=
1195srcdir=
1196verbose=
1197x_includes=NONE
1198x_libraries=NONE
1199
1200# Installation directory options.
1201# These are left unexpanded so users can "make install exec_prefix=/foo"
1202# and all the variables that are supposed to be based on exec_prefix
1203# by default will actually change.
1204# Use braces instead of parens because sh, perl, etc. also accept them.
1205# (The list follows the same order as the GNU Coding Standards.)
1206bindir='${exec_prefix}/bin'
1207sbindir='${exec_prefix}/sbin'
1208libexecdir='${exec_prefix}/libexec'
1209datarootdir='${prefix}/share'
1210datadir='${datarootdir}'
1211sysconfdir='${prefix}/etc'
1212sharedstatedir='${prefix}/com'
1213localstatedir='${prefix}/var'
1214includedir='${prefix}/include'
1215oldincludedir='/usr/include'
1216docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1217infodir='${datarootdir}/info'
1218htmldir='${docdir}'
1219dvidir='${docdir}'
1220pdfdir='${docdir}'
1221psdir='${docdir}'
1222libdir='${exec_prefix}/lib'
1223localedir='${datarootdir}/locale'
1224mandir='${datarootdir}/man'
1225
1226ac_prev=
1227ac_dashdash=
1228for ac_option
1229do
1230 # If the previous option needs an argument, assign it.
1231 if test -n "$ac_prev"; then
1232 eval $ac_prev=\$ac_option
1233 ac_prev=
1234 continue
1235 fi
1236
1237 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001238 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1239 *=) ac_optarg= ;;
1240 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001241 esac
1242
1243 # Accept the important Cygnus configure options, so we can diagnose typos.
1244
1245 case $ac_dashdash$ac_option in
1246 --)
1247 ac_dashdash=yes ;;
1248
1249 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1250 ac_prev=bindir ;;
1251 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1252 bindir=$ac_optarg ;;
1253
1254 -build | --build | --buil | --bui | --bu)
1255 ac_prev=build_alias ;;
1256 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1257 build_alias=$ac_optarg ;;
1258
1259 -cache-file | --cache-file | --cache-fil | --cache-fi \
1260 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1261 ac_prev=cache_file ;;
1262 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1263 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1264 cache_file=$ac_optarg ;;
1265
1266 --config-cache | -C)
1267 cache_file=config.cache ;;
1268
1269 -datadir | --datadir | --datadi | --datad)
1270 ac_prev=datadir ;;
1271 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1272 datadir=$ac_optarg ;;
1273
1274 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1275 | --dataroo | --dataro | --datar)
1276 ac_prev=datarootdir ;;
1277 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1278 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1279 datarootdir=$ac_optarg ;;
1280
1281 -disable-* | --disable-*)
1282 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001285 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1289 *"
1290"enable_$ac_useropt"
1291"*) ;;
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1294 esac
1295 eval enable_$ac_useropt=no ;;
1296
1297 -docdir | --docdir | --docdi | --doc | --do)
1298 ac_prev=docdir ;;
1299 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1300 docdir=$ac_optarg ;;
1301
1302 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1303 ac_prev=dvidir ;;
1304 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1305 dvidir=$ac_optarg ;;
1306
1307 -enable-* | --enable-*)
1308 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001311 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001312 ac_useropt_orig=$ac_useropt
1313 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314 case $ac_user_opts in
1315 *"
1316"enable_$ac_useropt"
1317"*) ;;
1318 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1319 ac_unrecognized_sep=', ';;
1320 esac
1321 eval enable_$ac_useropt=\$ac_optarg ;;
1322
1323 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1324 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1325 | --exec | --exe | --ex)
1326 ac_prev=exec_prefix ;;
1327 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1328 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1329 | --exec=* | --exe=* | --ex=*)
1330 exec_prefix=$ac_optarg ;;
1331
1332 -gas | --gas | --ga | --g)
1333 # Obsolete; use --with-gas.
1334 with_gas=yes ;;
1335
1336 -help | --help | --hel | --he | -h)
1337 ac_init_help=long ;;
1338 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1339 ac_init_help=recursive ;;
1340 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1341 ac_init_help=short ;;
1342
1343 -host | --host | --hos | --ho)
1344 ac_prev=host_alias ;;
1345 -host=* | --host=* | --hos=* | --ho=*)
1346 host_alias=$ac_optarg ;;
1347
1348 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1349 ac_prev=htmldir ;;
1350 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1351 | --ht=*)
1352 htmldir=$ac_optarg ;;
1353
1354 -includedir | --includedir | --includedi | --included | --include \
1355 | --includ | --inclu | --incl | --inc)
1356 ac_prev=includedir ;;
1357 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1358 | --includ=* | --inclu=* | --incl=* | --inc=*)
1359 includedir=$ac_optarg ;;
1360
1361 -infodir | --infodir | --infodi | --infod | --info | --inf)
1362 ac_prev=infodir ;;
1363 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1364 infodir=$ac_optarg ;;
1365
1366 -libdir | --libdir | --libdi | --libd)
1367 ac_prev=libdir ;;
1368 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1369 libdir=$ac_optarg ;;
1370
1371 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1372 | --libexe | --libex | --libe)
1373 ac_prev=libexecdir ;;
1374 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1375 | --libexe=* | --libex=* | --libe=*)
1376 libexecdir=$ac_optarg ;;
1377
1378 -localedir | --localedir | --localedi | --localed | --locale)
1379 ac_prev=localedir ;;
1380 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1381 localedir=$ac_optarg ;;
1382
1383 -localstatedir | --localstatedir | --localstatedi | --localstated \
1384 | --localstate | --localstat | --localsta | --localst | --locals)
1385 ac_prev=localstatedir ;;
1386 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1387 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1388 localstatedir=$ac_optarg ;;
1389
1390 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1391 ac_prev=mandir ;;
1392 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1393 mandir=$ac_optarg ;;
1394
1395 -nfp | --nfp | --nf)
1396 # Obsolete; use --without-fp.
1397 with_fp=no ;;
1398
1399 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1400 | --no-cr | --no-c | -n)
1401 no_create=yes ;;
1402
1403 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1404 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1405 no_recursion=yes ;;
1406
1407 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1408 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1409 | --oldin | --oldi | --old | --ol | --o)
1410 ac_prev=oldincludedir ;;
1411 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1412 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1413 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1414 oldincludedir=$ac_optarg ;;
1415
1416 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1417 ac_prev=prefix ;;
1418 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1419 prefix=$ac_optarg ;;
1420
1421 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1422 | --program-pre | --program-pr | --program-p)
1423 ac_prev=program_prefix ;;
1424 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1425 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1426 program_prefix=$ac_optarg ;;
1427
1428 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1429 | --program-suf | --program-su | --program-s)
1430 ac_prev=program_suffix ;;
1431 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1432 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1433 program_suffix=$ac_optarg ;;
1434
1435 -program-transform-name | --program-transform-name \
1436 | --program-transform-nam | --program-transform-na \
1437 | --program-transform-n | --program-transform- \
1438 | --program-transform | --program-transfor \
1439 | --program-transfo | --program-transf \
1440 | --program-trans | --program-tran \
1441 | --progr-tra | --program-tr | --program-t)
1442 ac_prev=program_transform_name ;;
1443 -program-transform-name=* | --program-transform-name=* \
1444 | --program-transform-nam=* | --program-transform-na=* \
1445 | --program-transform-n=* | --program-transform-=* \
1446 | --program-transform=* | --program-transfor=* \
1447 | --program-transfo=* | --program-transf=* \
1448 | --program-trans=* | --program-tran=* \
1449 | --progr-tra=* | --program-tr=* | --program-t=*)
1450 program_transform_name=$ac_optarg ;;
1451
1452 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1453 ac_prev=pdfdir ;;
1454 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1455 pdfdir=$ac_optarg ;;
1456
1457 -psdir | --psdir | --psdi | --psd | --ps)
1458 ac_prev=psdir ;;
1459 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1460 psdir=$ac_optarg ;;
1461
1462 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1463 | -silent | --silent | --silen | --sile | --sil)
1464 silent=yes ;;
1465
1466 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1467 ac_prev=sbindir ;;
1468 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1469 | --sbi=* | --sb=*)
1470 sbindir=$ac_optarg ;;
1471
1472 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1473 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1474 | --sharedst | --shareds | --shared | --share | --shar \
1475 | --sha | --sh)
1476 ac_prev=sharedstatedir ;;
1477 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1478 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1479 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1480 | --sha=* | --sh=*)
1481 sharedstatedir=$ac_optarg ;;
1482
1483 -site | --site | --sit)
1484 ac_prev=site ;;
1485 -site=* | --site=* | --sit=*)
1486 site=$ac_optarg ;;
1487
1488 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1489 ac_prev=srcdir ;;
1490 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1491 srcdir=$ac_optarg ;;
1492
1493 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1494 | --syscon | --sysco | --sysc | --sys | --sy)
1495 ac_prev=sysconfdir ;;
1496 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1497 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1498 sysconfdir=$ac_optarg ;;
1499
1500 -target | --target | --targe | --targ | --tar | --ta | --t)
1501 ac_prev=target_alias ;;
1502 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1503 target_alias=$ac_optarg ;;
1504
1505 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1506 verbose=yes ;;
1507
1508 -version | --version | --versio | --versi | --vers | -V)
1509 ac_init_version=: ;;
1510
1511 -with-* | --with-*)
1512 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1513 # Reject names that are not valid shell variable names.
1514 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001515 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001516 ac_useropt_orig=$ac_useropt
1517 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1518 case $ac_user_opts in
1519 *"
1520"with_$ac_useropt"
1521"*) ;;
1522 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1523 ac_unrecognized_sep=', ';;
1524 esac
1525 eval with_$ac_useropt=\$ac_optarg ;;
1526
1527 -without-* | --without-*)
1528 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1529 # Reject names that are not valid shell variable names.
1530 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001531 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001532 ac_useropt_orig=$ac_useropt
1533 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1534 case $ac_user_opts in
1535 *"
1536"with_$ac_useropt"
1537"*) ;;
1538 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1539 ac_unrecognized_sep=', ';;
1540 esac
1541 eval with_$ac_useropt=no ;;
1542
1543 --x)
1544 # Obsolete; use --with-x.
1545 with_x=yes ;;
1546
1547 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1548 | --x-incl | --x-inc | --x-in | --x-i)
1549 ac_prev=x_includes ;;
1550 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1551 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1552 x_includes=$ac_optarg ;;
1553
1554 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1555 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1556 ac_prev=x_libraries ;;
1557 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1558 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1559 x_libraries=$ac_optarg ;;
1560
cristy98dddb52010-11-04 00:30:15 +00001561 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1562Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001563 ;;
1564
1565 *=*)
1566 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1567 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001568 case $ac_envvar in #(
1569 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001570 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001571 esac
cristy3ed852e2009-09-05 21:47:34 +00001572 eval $ac_envvar=\$ac_optarg
1573 export $ac_envvar ;;
1574
1575 *)
1576 # FIXME: should be removed in autoconf 3.0.
1577 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1578 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1579 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001580 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001581 ;;
1582
1583 esac
1584done
1585
1586if test -n "$ac_prev"; then
1587 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001588 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001589fi
1590
1591if test -n "$ac_unrecognized_opts"; then
1592 case $enable_option_checking in
1593 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001594 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001595 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1596 esac
1597fi
1598
1599# Check all directory arguments for consistency.
1600for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1601 datadir sysconfdir sharedstatedir localstatedir includedir \
1602 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1603 libdir localedir mandir
1604do
1605 eval ac_val=\$$ac_var
1606 # Remove trailing slashes.
1607 case $ac_val in
1608 */ )
1609 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1610 eval $ac_var=\$ac_val;;
1611 esac
1612 # Be sure to have absolute directory names.
1613 case $ac_val in
1614 [\\/$]* | ?:[\\/]* ) continue;;
1615 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1616 esac
cristy98dddb52010-11-04 00:30:15 +00001617 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001618done
1619
1620# There might be people who depend on the old broken behavior: `$host'
1621# used to hold the argument of --host etc.
1622# FIXME: To remove some day.
1623build=$build_alias
1624host=$host_alias
1625target=$target_alias
1626
1627# FIXME: To remove some day.
1628if test "x$host_alias" != x; then
1629 if test "x$build_alias" = x; then
1630 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001631 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1632 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001633 elif test "x$build_alias" != "x$host_alias"; then
1634 cross_compiling=yes
1635 fi
1636fi
1637
1638ac_tool_prefix=
1639test -n "$host_alias" && ac_tool_prefix=$host_alias-
1640
1641test "$silent" = yes && exec 6>/dev/null
1642
1643
1644ac_pwd=`pwd` && test -n "$ac_pwd" &&
1645ac_ls_di=`ls -di .` &&
1646ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001647 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001648test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001649 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001650
1651
1652# Find the source files, if location was not specified.
1653if test -z "$srcdir"; then
1654 ac_srcdir_defaulted=yes
1655 # Try the directory containing this script, then the parent directory.
1656 ac_confdir=`$as_dirname -- "$as_myself" ||
1657$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1658 X"$as_myself" : 'X\(//\)[^/]' \| \
1659 X"$as_myself" : 'X\(//\)$' \| \
1660 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1661$as_echo X"$as_myself" |
1662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1663 s//\1/
1664 q
1665 }
1666 /^X\(\/\/\)[^/].*/{
1667 s//\1/
1668 q
1669 }
1670 /^X\(\/\/\)$/{
1671 s//\1/
1672 q
1673 }
1674 /^X\(\/\).*/{
1675 s//\1/
1676 q
1677 }
1678 s/.*/./; q'`
1679 srcdir=$ac_confdir
1680 if test ! -r "$srcdir/$ac_unique_file"; then
1681 srcdir=..
1682 fi
1683else
1684 ac_srcdir_defaulted=no
1685fi
1686if test ! -r "$srcdir/$ac_unique_file"; then
1687 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001688 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001689fi
1690ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1691ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001692 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001693 pwd)`
1694# When building in place, set srcdir=.
1695if test "$ac_abs_confdir" = "$ac_pwd"; then
1696 srcdir=.
1697fi
1698# Remove unnecessary trailing slashes from srcdir.
1699# Double slashes in file names in object file debugging info
1700# mess up M-x gdb in Emacs.
1701case $srcdir in
1702*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1703esac
1704for ac_var in $ac_precious_vars; do
1705 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1706 eval ac_env_${ac_var}_value=\$${ac_var}
1707 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1708 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1709done
1710
1711#
1712# Report the --help message.
1713#
1714if test "$ac_init_help" = "long"; then
1715 # Omit some internal or obsolete options to make the list less imposing.
1716 # This message is too long to be a string in the A/UX 3.1 sh.
1717 cat <<_ACEOF
cristy4c08aed2011-07-01 19:47:50 +00001718\`configure' configures ImageMagick 7.0.0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001719
1720Usage: $0 [OPTION]... [VAR=VALUE]...
1721
1722To assign environment variables (e.g., CC, CFLAGS...), specify them as
1723VAR=VALUE. See below for descriptions of some of the useful variables.
1724
1725Defaults for the options are specified in brackets.
1726
1727Configuration:
1728 -h, --help display this help and exit
1729 --help=short display options specific to this package
1730 --help=recursive display the short help of all the included packages
1731 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001732 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001733 --cache-file=FILE cache test results in FILE [disabled]
1734 -C, --config-cache alias for \`--cache-file=config.cache'
1735 -n, --no-create do not create output files
1736 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1737
1738Installation directories:
1739 --prefix=PREFIX install architecture-independent files in PREFIX
1740 [$ac_default_prefix]
1741 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1742 [PREFIX]
1743
1744By default, \`make install' will install all the files in
1745\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1746an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1747for instance \`--prefix=\$HOME'.
1748
1749For better control, use the options below.
1750
1751Fine tuning of the installation directories:
1752 --bindir=DIR user executables [EPREFIX/bin]
1753 --sbindir=DIR system admin executables [EPREFIX/sbin]
1754 --libexecdir=DIR program executables [EPREFIX/libexec]
1755 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1756 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1757 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1758 --libdir=DIR object code libraries [EPREFIX/lib]
1759 --includedir=DIR C header files [PREFIX/include]
1760 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1761 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1762 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1763 --infodir=DIR info documentation [DATAROOTDIR/info]
1764 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1765 --mandir=DIR man documentation [DATAROOTDIR/man]
cristyd55889c2011-03-27 00:50:24 +00001766 --docdir=DIR documentation root
cristy4c08aed2011-07-01 19:47:50 +00001767 [DATAROOTDIR/doc/ImageMagick-7.0.0]
cristy3ed852e2009-09-05 21:47:34 +00001768 --htmldir=DIR html documentation [DOCDIR]
1769 --dvidir=DIR dvi documentation [DOCDIR]
1770 --pdfdir=DIR pdf documentation [DOCDIR]
1771 --psdir=DIR ps documentation [DOCDIR]
1772_ACEOF
1773
1774 cat <<\_ACEOF
1775
cristy73bd4a52010-10-05 11:24:23 +00001776Program names:
1777 --program-prefix=PREFIX prepend PREFIX to installed program names
1778 --program-suffix=SUFFIX append SUFFIX to installed program names
1779 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1780
cristy3ed852e2009-09-05 21:47:34 +00001781X features:
1782 --x-includes=DIR X include files are in DIR
1783 --x-libraries=DIR X library files are in DIR
1784
1785System types:
1786 --build=BUILD configure for building on BUILD [guessed]
1787 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1788 --target=TARGET configure for building compilers for TARGET [HOST]
1789_ACEOF
1790fi
1791
1792if test -n "$ac_init_help"; then
1793 case $ac_init_help in
cristy4c08aed2011-07-01 19:47:50 +00001794 short | recursive ) echo "Configuration of ImageMagick 7.0.0:";;
cristy3ed852e2009-09-05 21:47:34 +00001795 esac
1796 cat <<\_ACEOF
1797
1798Optional Features:
1799 --disable-option-checking ignore unrecognized --enable/--with options
1800 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1801 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001802 --enable-silent-rules less verbose build output (undo: `make V=1')
1803 --disable-silent-rules verbose build output (undo: `make V=0')
1804 --disable-dependency-tracking speeds up one-time build
1805 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001806 --bounds-checking enable run-time bounds-checking
1807 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001808 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001809 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001810 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001811 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001812 --enable-shared[=PKGS] build shared libraries [default=yes]
1813 --enable-static[=PKGS] build static libraries [default=yes]
1814 --enable-fast-install[=PKGS]
1815 optimize for fast installation [default=yes]
1816 --disable-libtool-lock avoid locking (might break parallel builds)
1817 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001818 --enable-delegate-build look for delegate libraries in build directory
1819 --disable-deprecated exclude deprecated methods in MagickCore and
1820 MagickWand API's
1821 --disable-installed Formally install ImageMagick under PREFIX
1822 --disable-cipher disable enciphering and deciphering image pixels
1823 --enable-embeddable enable self-contained, embeddable,
1824 zero-configuration ImageMagick
1825 --enable-hdri accurately represent the wide range of intensity
1826 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001827 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001828 --enable-maintainer-mode enable make rules and dependencies not useful
1829 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001830 --enable-ccmalloc enable 'ccmalloc' memory debug support
1831 --enable-efence enable 'efence' memory debug support
1832 --enable-prof enable 'prof' profiling support
1833 --enable-gprof enable 'gprof' profiling support
1834 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001835 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001836
1837Optional Packages:
1838 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1839 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001840 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1841 --with-dmalloc use dmalloc, as in
1842 http://www.dmalloc.com/dmalloc.tar.gz
cristy3ed852e2009-09-05 21:47:34 +00001843 --without-threads disable threads support
cristy73bd4a52010-10-05 11:24:23 +00001844 --with-pic try to use only PIC/non-PIC objects [default=use
1845 both]
cristyda16f162011-02-19 23:52:17 +00001846 --with-sysroot=DIR Search for dependent libraries within DIR
1847 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001848 --with-included-ltdl use the GNU ltdl sources included here
1849 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1850 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001851 --with-modules enable building dynamically loadable modules
1852 --with-method-prefix=PREFIX
1853 prefix MagickCore API methods
1854 --with-quantum-depth=DEPTH
1855 number of bits in a pixel quantum (default 16)
1856 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1857 memory)
1858 --with-frozenpaths freeze delegate paths
1859 --without-magick-plus-plus
1860 disable build/install of Magick++
1861 --with-perl enable build/install of PerlMagick
1862 --with-perl-options=OPTIONS
1863 options to pass on command-line when generating
1864 PerlMagick's build file
1865 --with-umem enable umem memory allocation library support
1866 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1867 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001868 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001869 --without-zlib disable ZLIB support
1870 --with-autotrace enable autotrace support
1871 --without-dps disable Display Postscript support
1872 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001873 --with-dejavu-font-dir=DIR
1874 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001875 --without-fftw disable FFTW support
1876 --without-fpx disable FlashPIX support
1877 --without-fontconfig disable fontconfig support
1878 --without-freetype disable Freetype support
1879 --without-gslib enable Ghostscript library support
1880 --with-fontpath=DIR prepend to default font search path
1881 --with-gs-font-dir=DIR Ghostscript font directory
1882 --without-gvc disable GVC support
1883 --without-jbig disable JBIG support
1884 --without-jpeg disable JPEG support
1885 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001886 --without-lcms disable lcms (v1.1X) support
1887 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001888 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001889 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001890 --without-openexr disable OpenEXR support
1891 --without-png disable PNG support
1892 --without-rsvg disable RSVG support
1893 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001894 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001895 --with-windows-font-dir=DIR
1896 directory containing MS-Windows fonts
1897 --without-wmf disable WMF support
1898 --without-xml disable XML support
1899
1900Some influential environment variables:
1901 CC C compiler command
1902 CFLAGS C compiler flags
1903 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1904 nonstandard directory <lib dir>
1905 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001906 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001907 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001908 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001909 CXX C++ compiler command
1910 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001911 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001912 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001913 XMKMF Path to xmkmf, Makefile generator for X Window System
1914 AUTOTRACE_CFLAGS
1915 C compiler flags for AUTOTRACE, overriding pkg-config
1916 AUTOTRACE_LIBS
1917 linker flags for AUTOTRACE, overriding pkg-config
1918 FONTCONFIG_CFLAGS
1919 C compiler flags for FONTCONFIG, overriding pkg-config
1920 FONTCONFIG_LIBS
1921 linker flags for FONTCONFIG, overriding pkg-config
1922 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1923 GVC_LIBS linker flags for GVC, overriding pkg-config
1924 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1925 LQR_LIBS linker flags for LQR, overriding pkg-config
1926 OPENEXR_CFLAGS
1927 C compiler flags for OPENEXR, overriding pkg-config
1928 OPENEXR_LIBS
1929 linker flags for OPENEXR, overriding pkg-config
1930 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1931 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1932 CAIRO_SVG_CFLAGS
1933 C compiler flags for CAIRO_SVG, overriding pkg-config
1934 CAIRO_SVG_LIBS
1935 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001936
1937Use these variables to override the choices made by `configure' or to help
1938it to find libraries and programs with nonstandard names/locations.
1939
1940Report bugs to <http://www.imagemagick.org>.
1941_ACEOF
1942ac_status=$?
1943fi
1944
1945if test "$ac_init_help" = "recursive"; then
1946 # If there are subdirs, report their specific --help.
1947 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1948 test -d "$ac_dir" ||
1949 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1950 continue
1951 ac_builddir=.
1952
1953case "$ac_dir" in
1954.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1955*)
1956 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1957 # A ".." for each directory in $ac_dir_suffix.
1958 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1959 case $ac_top_builddir_sub in
1960 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1961 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1962 esac ;;
1963esac
1964ac_abs_top_builddir=$ac_pwd
1965ac_abs_builddir=$ac_pwd$ac_dir_suffix
1966# for backward compatibility:
1967ac_top_builddir=$ac_top_build_prefix
1968
1969case $srcdir in
1970 .) # We are building in place.
1971 ac_srcdir=.
1972 ac_top_srcdir=$ac_top_builddir_sub
1973 ac_abs_top_srcdir=$ac_pwd ;;
1974 [\\/]* | ?:[\\/]* ) # Absolute name.
1975 ac_srcdir=$srcdir$ac_dir_suffix;
1976 ac_top_srcdir=$srcdir
1977 ac_abs_top_srcdir=$srcdir ;;
1978 *) # Relative name.
1979 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1980 ac_top_srcdir=$ac_top_build_prefix$srcdir
1981 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1982esac
1983ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1984
1985 cd "$ac_dir" || { ac_status=$?; continue; }
1986 # Check for guested configure.
1987 if test -f "$ac_srcdir/configure.gnu"; then
1988 echo &&
1989 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1990 elif test -f "$ac_srcdir/configure"; then
1991 echo &&
1992 $SHELL "$ac_srcdir/configure" --help=recursive
1993 else
1994 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1995 fi || ac_status=$?
1996 cd "$ac_pwd" || { ac_status=$?; break; }
1997 done
1998fi
1999
2000test -n "$ac_init_help" && exit $ac_status
2001if $ac_init_version; then
2002 cat <<\_ACEOF
cristy4c08aed2011-07-01 19:47:50 +00002003ImageMagick configure 7.0.0
cristyda16f162011-02-19 23:52:17 +00002004generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00002005
cristy98dddb52010-11-04 00:30:15 +00002006Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002007This configure script is free software; the Free Software Foundation
2008gives unlimited permission to copy, distribute and modify it.
2009_ACEOF
2010 exit
2011fi
cristy8b350f62009-11-15 23:12:43 +00002012
2013## ------------------------ ##
2014## Autoconf initialization. ##
2015## ------------------------ ##
2016
2017# ac_fn_c_try_compile LINENO
2018# --------------------------
2019# Try to compile conftest.$ac_ext, and return whether this succeeded.
2020ac_fn_c_try_compile ()
2021{
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 rm -f conftest.$ac_objext
2024 if { { ac_try="$ac_compile"
2025case "(($ac_try" in
2026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027 *) ac_try_echo=$ac_try;;
2028esac
2029eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030$as_echo "$ac_try_echo"; } >&5
2031 (eval "$ac_compile") 2>conftest.err
2032 ac_status=$?
2033 if test -s conftest.err; then
2034 grep -v '^ *+' conftest.err >conftest.er1
2035 cat conftest.er1 >&5
2036 mv -f conftest.er1 conftest.err
2037 fi
2038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039 test $ac_status = 0; } && {
2040 test -z "$ac_c_werror_flag" ||
2041 test ! -s conftest.err
2042 } && test -s conftest.$ac_objext; then :
2043 ac_retval=0
2044else
2045 $as_echo "$as_me: failed program was:" >&5
2046sed 's/^/| /' conftest.$ac_ext >&5
2047
2048 ac_retval=1
2049fi
cristyda16f162011-02-19 23:52:17 +00002050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002051 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002052
2053} # ac_fn_c_try_compile
2054
cristy95646052009-11-28 23:05:30 +00002055# ac_fn_c_try_cpp LINENO
2056# ----------------------
2057# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2058ac_fn_c_try_cpp ()
2059{
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 if { { ac_try="$ac_cpp conftest.$ac_ext"
2062case "(($ac_try" in
2063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2064 *) ac_try_echo=$ac_try;;
2065esac
2066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067$as_echo "$ac_try_echo"; } >&5
2068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2069 ac_status=$?
2070 if test -s conftest.err; then
2071 grep -v '^ *+' conftest.err >conftest.er1
2072 cat conftest.er1 >&5
2073 mv -f conftest.er1 conftest.err
2074 fi
2075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002076 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2078 test ! -s conftest.err
2079 }; then :
2080 ac_retval=0
2081else
2082 $as_echo "$as_me: failed program was:" >&5
2083sed 's/^/| /' conftest.$ac_ext >&5
2084
2085 ac_retval=1
2086fi
cristyda16f162011-02-19 23:52:17 +00002087 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002088 as_fn_set_status $ac_retval
2089
2090} # ac_fn_c_try_cpp
2091
cristy8b350f62009-11-15 23:12:43 +00002092# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2093# -------------------------------------------------------
2094# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2095# the include files in INCLUDES and setting the cache variable VAR
2096# accordingly.
2097ac_fn_c_check_header_mongrel ()
2098{
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002100 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2102$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002103if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002104 $as_echo_n "(cached) " >&6
2105fi
2106eval ac_res=\$$3
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108$as_echo "$ac_res" >&6; }
2109else
2110 # Is the header compilable?
2111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2112$as_echo_n "checking $2 usability... " >&6; }
2113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114/* end confdefs.h. */
2115$4
2116#include <$2>
2117_ACEOF
2118if ac_fn_c_try_compile "$LINENO"; then :
2119 ac_header_compiler=yes
2120else
2121 ac_header_compiler=no
2122fi
2123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2125$as_echo "$ac_header_compiler" >&6; }
2126
2127# Is the header present?
2128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2129$as_echo_n "checking $2 presence... " >&6; }
2130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131/* end confdefs.h. */
2132#include <$2>
2133_ACEOF
2134if ac_fn_c_try_cpp "$LINENO"; then :
2135 ac_header_preproc=yes
2136else
2137 ac_header_preproc=no
2138fi
cristyda16f162011-02-19 23:52:17 +00002139rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2141$as_echo "$ac_header_preproc" >&6; }
2142
2143# So? What about this header?
2144case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2145 yes:no: )
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2147$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2149$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2150 ;;
2151 no:yes:* )
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2153$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2155$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2157$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2159$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2161$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002162( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002163## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002164## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002165 ) | sed "s/^/$as_me: WARNING: /" >&2
2166 ;;
2167esac
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2169$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002170if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002171 $as_echo_n "(cached) " >&6
2172else
2173 eval "$3=\$ac_header_compiler"
2174fi
2175eval ac_res=\$$3
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2177$as_echo "$ac_res" >&6; }
2178fi
cristyda16f162011-02-19 23:52:17 +00002179 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002180
2181} # ac_fn_c_check_header_mongrel
2182
2183# ac_fn_c_try_run LINENO
2184# ----------------------
2185# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2186# that executables *can* be run.
2187ac_fn_c_try_run ()
2188{
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 if { { ac_try="$ac_link"
2191case "(($ac_try" in
2192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193 *) ac_try_echo=$ac_try;;
2194esac
2195eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196$as_echo "$ac_try_echo"; } >&5
2197 (eval "$ac_link") 2>&5
2198 ac_status=$?
2199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2200 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2201 { { case "(($ac_try" in
2202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2203 *) ac_try_echo=$ac_try;;
2204esac
2205eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2206$as_echo "$ac_try_echo"; } >&5
2207 (eval "$ac_try") 2>&5
2208 ac_status=$?
2209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2210 test $ac_status = 0; }; }; then :
2211 ac_retval=0
2212else
2213 $as_echo "$as_me: program exited with status $ac_status" >&5
2214 $as_echo "$as_me: failed program was:" >&5
2215sed 's/^/| /' conftest.$ac_ext >&5
2216
2217 ac_retval=$ac_status
2218fi
2219 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002220 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002221 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002222
2223} # ac_fn_c_try_run
2224
2225# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2226# -------------------------------------------------------
2227# Tests whether HEADER exists and can be compiled using the include files in
2228# INCLUDES, setting the cache variable VAR accordingly.
2229ac_fn_c_check_header_compile ()
2230{
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2233$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002234if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002235 $as_echo_n "(cached) " >&6
2236else
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238/* end confdefs.h. */
2239$4
2240#include <$2>
2241_ACEOF
2242if ac_fn_c_try_compile "$LINENO"; then :
2243 eval "$3=yes"
2244else
2245 eval "$3=no"
2246fi
2247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248fi
2249eval ac_res=\$$3
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2251$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002252 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002253
2254} # ac_fn_c_check_header_compile
2255
cristya0b81c32010-01-22 02:54:33 +00002256# ac_fn_cxx_try_compile LINENO
2257# ----------------------------
2258# Try to compile conftest.$ac_ext, and return whether this succeeded.
2259ac_fn_cxx_try_compile ()
2260{
2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262 rm -f conftest.$ac_objext
2263 if { { ac_try="$ac_compile"
2264case "(($ac_try" in
2265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266 *) ac_try_echo=$ac_try;;
2267esac
2268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2269$as_echo "$ac_try_echo"; } >&5
2270 (eval "$ac_compile") 2>conftest.err
2271 ac_status=$?
2272 if test -s conftest.err; then
2273 grep -v '^ *+' conftest.err >conftest.er1
2274 cat conftest.er1 >&5
2275 mv -f conftest.er1 conftest.err
2276 fi
2277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2278 test $ac_status = 0; } && {
2279 test -z "$ac_cxx_werror_flag" ||
2280 test ! -s conftest.err
2281 } && test -s conftest.$ac_objext; then :
2282 ac_retval=0
2283else
2284 $as_echo "$as_me: failed program was:" >&5
2285sed 's/^/| /' conftest.$ac_ext >&5
2286
2287 ac_retval=1
2288fi
cristyda16f162011-02-19 23:52:17 +00002289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002290 as_fn_set_status $ac_retval
2291
2292} # ac_fn_cxx_try_compile
2293
cristy8b350f62009-11-15 23:12:43 +00002294# ac_fn_c_try_link LINENO
2295# -----------------------
2296# Try to link conftest.$ac_ext, and return whether this succeeded.
2297ac_fn_c_try_link ()
2298{
2299 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2300 rm -f conftest.$ac_objext conftest$ac_exeext
2301 if { { ac_try="$ac_link"
2302case "(($ac_try" in
2303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2304 *) ac_try_echo=$ac_try;;
2305esac
2306eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2307$as_echo "$ac_try_echo"; } >&5
2308 (eval "$ac_link") 2>conftest.err
2309 ac_status=$?
2310 if test -s conftest.err; then
2311 grep -v '^ *+' conftest.err >conftest.er1
2312 cat conftest.er1 >&5
2313 mv -f conftest.er1 conftest.err
2314 fi
2315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2316 test $ac_status = 0; } && {
2317 test -z "$ac_c_werror_flag" ||
2318 test ! -s conftest.err
2319 } && test -s conftest$ac_exeext && {
2320 test "$cross_compiling" = yes ||
2321 $as_test_x conftest$ac_exeext
2322 }; then :
2323 ac_retval=0
2324else
2325 $as_echo "$as_me: failed program was:" >&5
2326sed 's/^/| /' conftest.$ac_ext >&5
2327
2328 ac_retval=1
2329fi
2330 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2331 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2332 # interfere with the next link command; also delete a directory that is
2333 # left behind by Apple's compiler. We do this before executing the actions.
2334 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002335 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002336 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002337
2338} # ac_fn_c_try_link
2339
cristy73bd4a52010-10-05 11:24:23 +00002340# ac_fn_c_check_func LINENO FUNC VAR
2341# ----------------------------------
2342# Tests whether FUNC exists, setting the cache variable VAR accordingly
2343ac_fn_c_check_func ()
2344{
2345 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2347$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002348if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002349 $as_echo_n "(cached) " >&6
2350else
2351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352/* end confdefs.h. */
2353/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2355#define $2 innocuous_$2
2356
2357/* System header to define __stub macros and hopefully few prototypes,
2358 which can conflict with char $2 (); below.
2359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2360 <limits.h> exists even on freestanding compilers. */
2361
2362#ifdef __STDC__
2363# include <limits.h>
2364#else
2365# include <assert.h>
2366#endif
2367
2368#undef $2
2369
2370/* Override any GCC internal prototype to avoid an error.
2371 Use char because int might match the return type of a GCC
2372 builtin and then its argument prototype would still apply. */
2373#ifdef __cplusplus
2374extern "C"
2375#endif
2376char $2 ();
2377/* The GNU C library defines this for functions which it implements
2378 to always fail with ENOSYS. Some functions are actually named
2379 something starting with __ and the normal name is an alias. */
2380#if defined __stub_$2 || defined __stub___$2
2381choke me
2382#endif
2383
2384int
2385main ()
2386{
2387return $2 ();
2388 ;
2389 return 0;
2390}
2391_ACEOF
2392if ac_fn_c_try_link "$LINENO"; then :
2393 eval "$3=yes"
2394else
2395 eval "$3=no"
2396fi
2397rm -f core conftest.err conftest.$ac_objext \
2398 conftest$ac_exeext conftest.$ac_ext
2399fi
2400eval ac_res=\$$3
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2402$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002403 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002404
2405} # ac_fn_c_check_func
2406
2407# ac_fn_cxx_try_cpp LINENO
2408# ------------------------
2409# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2410ac_fn_cxx_try_cpp ()
2411{
2412 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2413 if { { ac_try="$ac_cpp conftest.$ac_ext"
2414case "(($ac_try" in
2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2417esac
2418eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2419$as_echo "$ac_try_echo"; } >&5
2420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2421 ac_status=$?
2422 if test -s conftest.err; then
2423 grep -v '^ *+' conftest.err >conftest.er1
2424 cat conftest.er1 >&5
2425 mv -f conftest.er1 conftest.err
2426 fi
2427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002428 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002429 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2430 test ! -s conftest.err
2431 }; then :
2432 ac_retval=0
2433else
2434 $as_echo "$as_me: failed program was:" >&5
2435sed 's/^/| /' conftest.$ac_ext >&5
2436
2437 ac_retval=1
2438fi
cristyda16f162011-02-19 23:52:17 +00002439 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002440 as_fn_set_status $ac_retval
2441
2442} # ac_fn_cxx_try_cpp
2443
2444# ac_fn_cxx_try_link LINENO
2445# -------------------------
2446# Try to link conftest.$ac_ext, and return whether this succeeded.
2447ac_fn_cxx_try_link ()
2448{
2449 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2450 rm -f conftest.$ac_objext conftest$ac_exeext
2451 if { { ac_try="$ac_link"
2452case "(($ac_try" in
2453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454 *) ac_try_echo=$ac_try;;
2455esac
2456eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2457$as_echo "$ac_try_echo"; } >&5
2458 (eval "$ac_link") 2>conftest.err
2459 ac_status=$?
2460 if test -s conftest.err; then
2461 grep -v '^ *+' conftest.err >conftest.er1
2462 cat conftest.er1 >&5
2463 mv -f conftest.er1 conftest.err
2464 fi
2465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2466 test $ac_status = 0; } && {
2467 test -z "$ac_cxx_werror_flag" ||
2468 test ! -s conftest.err
2469 } && test -s conftest$ac_exeext && {
2470 test "$cross_compiling" = yes ||
2471 $as_test_x conftest$ac_exeext
2472 }; then :
2473 ac_retval=0
2474else
2475 $as_echo "$as_me: failed program was:" >&5
2476sed 's/^/| /' conftest.$ac_ext >&5
2477
2478 ac_retval=1
2479fi
2480 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2481 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2482 # interfere with the next link command; also delete a directory that is
2483 # left behind by Apple's compiler. We do this before executing the actions.
2484 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002485 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002486 as_fn_set_status $ac_retval
2487
2488} # ac_fn_cxx_try_link
2489
cristy98dddb52010-11-04 00:30:15 +00002490# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2491# ---------------------------------------------
2492# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2493# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002494ac_fn_c_check_decl ()
2495{
2496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002497 as_decl_name=`echo $2|sed 's/ *(.*//'`
2498 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2500$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002501if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002502 $as_echo_n "(cached) " >&6
2503else
2504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505/* end confdefs.h. */
2506$4
2507int
2508main ()
2509{
cristy98dddb52010-11-04 00:30:15 +00002510#ifndef $as_decl_name
2511#ifdef __cplusplus
2512 (void) $as_decl_use;
2513#else
2514 (void) $as_decl_name;
2515#endif
cristy73bd4a52010-10-05 11:24:23 +00002516#endif
2517
2518 ;
2519 return 0;
2520}
2521_ACEOF
2522if ac_fn_c_try_compile "$LINENO"; then :
2523 eval "$3=yes"
2524else
2525 eval "$3=no"
2526fi
2527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2528fi
2529eval ac_res=\$$3
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2531$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002533
2534} # ac_fn_c_check_decl
2535
cristy8b350f62009-11-15 23:12:43 +00002536# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2537# -------------------------------------------
2538# Tests whether TYPE exists after having included INCLUDES, setting cache
2539# variable VAR accordingly.
2540ac_fn_c_check_type ()
2541{
2542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2544$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002545if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002546 $as_echo_n "(cached) " >&6
2547else
2548 eval "$3=no"
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550/* end confdefs.h. */
2551$4
2552int
2553main ()
2554{
2555if (sizeof ($2))
2556 return 0;
2557 ;
2558 return 0;
2559}
2560_ACEOF
2561if ac_fn_c_try_compile "$LINENO"; then :
2562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2563/* end confdefs.h. */
2564$4
2565int
2566main ()
2567{
2568if (sizeof (($2)))
2569 return 0;
2570 ;
2571 return 0;
2572}
2573_ACEOF
2574if ac_fn_c_try_compile "$LINENO"; then :
2575
2576else
2577 eval "$3=yes"
2578fi
2579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2580fi
2581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582fi
2583eval ac_res=\$$3
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2585$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002587
2588} # ac_fn_c_check_type
2589
cristy92703d82010-04-26 00:18:18 +00002590# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2591# ----------------------------------------------------
2592# Tries to find if the field MEMBER exists in type AGGR, after including
2593# INCLUDES, setting cache variable VAR accordingly.
2594ac_fn_c_check_member ()
2595{
2596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2598$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002599if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002600 $as_echo_n "(cached) " >&6
2601else
2602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2603/* end confdefs.h. */
2604$5
2605int
2606main ()
2607{
2608static $2 ac_aggr;
2609if (ac_aggr.$3)
2610return 0;
2611 ;
2612 return 0;
2613}
2614_ACEOF
2615if ac_fn_c_try_compile "$LINENO"; then :
2616 eval "$4=yes"
2617else
2618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2619/* end confdefs.h. */
2620$5
2621int
2622main ()
2623{
2624static $2 ac_aggr;
2625if (sizeof ac_aggr.$3)
2626return 0;
2627 ;
2628 return 0;
2629}
2630_ACEOF
2631if ac_fn_c_try_compile "$LINENO"; then :
2632 eval "$4=yes"
2633else
2634 eval "$4=no"
2635fi
2636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637fi
2638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639fi
2640eval ac_res=\$$4
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2642$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002644
2645} # ac_fn_c_check_member
2646
cristy501c8042011-05-26 17:46:28 +00002647# ac_fn_c_find_intX_t LINENO BITS VAR
2648# -----------------------------------
2649# Finds a signed integer type with width BITS, setting cache variable VAR
2650# accordingly.
2651ac_fn_c_find_intX_t ()
2652{
2653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2655$as_echo_n "checking for int$2_t... " >&6; }
2656if eval \${$3+:} false; then :
2657 $as_echo_n "(cached) " >&6
2658else
2659 eval "$3=no"
2660 # Order is important - never check a type that is potentially smaller
2661 # than half of the expected target width.
2662 for ac_type in int$2_t 'int' 'long int' \
2663 'long long int' 'short int' 'signed char'; do
2664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2665/* end confdefs.h. */
2666$ac_includes_default
2667 enum { N = $2 / 2 - 1 };
2668int
2669main ()
2670{
2671static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2672test_array [0] = 0
2673
2674 ;
2675 return 0;
2676}
2677_ACEOF
2678if ac_fn_c_try_compile "$LINENO"; then :
2679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2680/* end confdefs.h. */
2681$ac_includes_default
2682 enum { N = $2 / 2 - 1 };
2683int
2684main ()
2685{
2686static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2687 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2688test_array [0] = 0
2689
2690 ;
2691 return 0;
2692}
2693_ACEOF
2694if ac_fn_c_try_compile "$LINENO"; then :
2695
2696else
2697 case $ac_type in #(
2698 int$2_t) :
2699 eval "$3=yes" ;; #(
2700 *) :
2701 eval "$3=\$ac_type" ;;
2702esac
2703fi
2704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2705fi
2706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2707 if eval test \"x\$"$3"\" = x"no"; then :
2708
2709else
2710 break
2711fi
2712 done
2713fi
2714eval ac_res=\$$3
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2716$as_echo "$ac_res" >&6; }
2717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2718
2719} # ac_fn_c_find_intX_t
2720
2721# ac_fn_c_find_uintX_t LINENO BITS VAR
2722# ------------------------------------
2723# Finds an unsigned integer type with width BITS, setting cache variable VAR
2724# accordingly.
2725ac_fn_c_find_uintX_t ()
2726{
2727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2729$as_echo_n "checking for uint$2_t... " >&6; }
2730if eval \${$3+:} false; then :
2731 $as_echo_n "(cached) " >&6
2732else
2733 eval "$3=no"
2734 # Order is important - never check a type that is potentially smaller
2735 # than half of the expected target width.
2736 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2737 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2739/* end confdefs.h. */
2740$ac_includes_default
2741int
2742main ()
2743{
2744static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2745test_array [0] = 0
2746
2747 ;
2748 return 0;
2749}
2750_ACEOF
2751if ac_fn_c_try_compile "$LINENO"; then :
2752 case $ac_type in #(
2753 uint$2_t) :
2754 eval "$3=yes" ;; #(
2755 *) :
2756 eval "$3=\$ac_type" ;;
2757esac
2758fi
2759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2760 if eval test \"x\$"$3"\" = x"no"; then :
2761
2762else
2763 break
2764fi
2765 done
2766fi
2767eval ac_res=\$$3
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2769$as_echo "$ac_res" >&6; }
2770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2771
2772} # ac_fn_c_find_uintX_t
2773
cristy8b350f62009-11-15 23:12:43 +00002774# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2775# --------------------------------------------
2776# Tries to find the compile-time value of EXPR in a program that includes
2777# INCLUDES, setting VAR accordingly. Returns whether the value could be
2778# computed
2779ac_fn_c_compute_int ()
2780{
2781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2782 if test "$cross_compiling" = yes; then
2783 # Depending upon the size, compute the lo and hi bounds.
2784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2785/* end confdefs.h. */
2786$4
2787int
2788main ()
2789{
2790static int test_array [1 - 2 * !(($2) >= 0)];
2791test_array [0] = 0
2792
2793 ;
2794 return 0;
2795}
2796_ACEOF
2797if ac_fn_c_try_compile "$LINENO"; then :
2798 ac_lo=0 ac_mid=0
2799 while :; do
2800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2801/* end confdefs.h. */
2802$4
2803int
2804main ()
2805{
2806static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2807test_array [0] = 0
2808
2809 ;
2810 return 0;
2811}
2812_ACEOF
2813if ac_fn_c_try_compile "$LINENO"; then :
2814 ac_hi=$ac_mid; break
2815else
2816 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2817 if test $ac_lo -le $ac_mid; then
2818 ac_lo= ac_hi=
2819 break
2820 fi
2821 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2822fi
2823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2824 done
2825else
2826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2827/* end confdefs.h. */
2828$4
2829int
2830main ()
2831{
2832static int test_array [1 - 2 * !(($2) < 0)];
2833test_array [0] = 0
2834
2835 ;
2836 return 0;
2837}
2838_ACEOF
2839if ac_fn_c_try_compile "$LINENO"; then :
2840 ac_hi=-1 ac_mid=-1
2841 while :; do
2842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2843/* end confdefs.h. */
2844$4
2845int
2846main ()
2847{
2848static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2849test_array [0] = 0
2850
2851 ;
2852 return 0;
2853}
2854_ACEOF
2855if ac_fn_c_try_compile "$LINENO"; then :
2856 ac_lo=$ac_mid; break
2857else
2858 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2859 if test $ac_mid -le $ac_hi; then
2860 ac_lo= ac_hi=
2861 break
2862 fi
2863 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2864fi
2865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866 done
2867else
2868 ac_lo= ac_hi=
2869fi
2870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2871fi
2872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2873# Binary search between lo and hi bounds.
2874while test "x$ac_lo" != "x$ac_hi"; do
2875 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2877/* end confdefs.h. */
2878$4
2879int
2880main ()
2881{
2882static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2883test_array [0] = 0
2884
2885 ;
2886 return 0;
2887}
2888_ACEOF
2889if ac_fn_c_try_compile "$LINENO"; then :
2890 ac_hi=$ac_mid
2891else
2892 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2893fi
2894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2895done
2896case $ac_lo in #((
2897?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2898'') ac_retval=1 ;;
2899esac
2900 else
2901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2902/* end confdefs.h. */
2903$4
2904static long int longval () { return $2; }
2905static unsigned long int ulongval () { return $2; }
2906#include <stdio.h>
2907#include <stdlib.h>
2908int
2909main ()
2910{
2911
2912 FILE *f = fopen ("conftest.val", "w");
2913 if (! f)
2914 return 1;
2915 if (($2) < 0)
2916 {
2917 long int i = longval ();
2918 if (i != ($2))
2919 return 1;
2920 fprintf (f, "%ld", i);
2921 }
2922 else
2923 {
2924 unsigned long int i = ulongval ();
2925 if (i != ($2))
2926 return 1;
2927 fprintf (f, "%lu", i);
2928 }
2929 /* Do not output a trailing newline, as this causes \r\n confusion
2930 on some platforms. */
2931 return ferror (f) || fclose (f) != 0;
2932
2933 ;
2934 return 0;
2935}
2936_ACEOF
2937if ac_fn_c_try_run "$LINENO"; then :
2938 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2939else
2940 ac_retval=1
2941fi
2942rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2943 conftest.$ac_objext conftest.beam conftest.$ac_ext
2944rm -f conftest.val
2945
2946 fi
cristyda16f162011-02-19 23:52:17 +00002947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002948 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002949
2950} # ac_fn_c_compute_int
2951
2952# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2953# ---------------------------------------------------------
2954# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2955# the include files in INCLUDES and setting the cache variable VAR
2956# accordingly.
2957ac_fn_cxx_check_header_mongrel ()
2958{
2959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002960 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2962$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002963if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002964 $as_echo_n "(cached) " >&6
2965fi
2966eval ac_res=\$$3
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2968$as_echo "$ac_res" >&6; }
2969else
2970 # Is the header compilable?
2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2972$as_echo_n "checking $2 usability... " >&6; }
2973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2974/* end confdefs.h. */
2975$4
2976#include <$2>
2977_ACEOF
2978if ac_fn_cxx_try_compile "$LINENO"; then :
2979 ac_header_compiler=yes
2980else
2981 ac_header_compiler=no
2982fi
2983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2985$as_echo "$ac_header_compiler" >&6; }
2986
2987# Is the header present?
2988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2989$as_echo_n "checking $2 presence... " >&6; }
2990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2991/* end confdefs.h. */
2992#include <$2>
2993_ACEOF
2994if ac_fn_cxx_try_cpp "$LINENO"; then :
2995 ac_header_preproc=yes
2996else
2997 ac_header_preproc=no
2998fi
cristyda16f162011-02-19 23:52:17 +00002999rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3001$as_echo "$ac_header_preproc" >&6; }
3002
3003# So? What about this header?
3004case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3005 yes:no: )
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3007$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3009$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3010 ;;
3011 no:yes:* )
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3013$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3015$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3017$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3019$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3021$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003022( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003023## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003024## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003025 ) | sed "s/^/$as_me: WARNING: /" >&2
3026 ;;
3027esac
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3029$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003030if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003031 $as_echo_n "(cached) " >&6
3032else
3033 eval "$3=\$ac_header_compiler"
3034fi
3035eval ac_res=\$$3
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3037$as_echo "$ac_res" >&6; }
3038fi
cristyda16f162011-02-19 23:52:17 +00003039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003040
3041} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003042cat >config.log <<_ACEOF
3043This file contains any messages produced by compilers while
3044running configure, to aid debugging if configure makes a mistake.
3045
cristy4c08aed2011-07-01 19:47:50 +00003046It was created by ImageMagick $as_me 7.0.0, which was
cristyda16f162011-02-19 23:52:17 +00003047generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003048
3049 $ $0 $@
3050
3051_ACEOF
3052exec 5>>config.log
3053{
3054cat <<_ASUNAME
3055## --------- ##
3056## Platform. ##
3057## --------- ##
3058
3059hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3060uname -m = `(uname -m) 2>/dev/null || echo unknown`
3061uname -r = `(uname -r) 2>/dev/null || echo unknown`
3062uname -s = `(uname -s) 2>/dev/null || echo unknown`
3063uname -v = `(uname -v) 2>/dev/null || echo unknown`
3064
3065/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3066/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3067
3068/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3069/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3070/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3071/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3072/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3073/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3074/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3075
3076_ASUNAME
3077
3078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079for as_dir in $PATH
3080do
3081 IFS=$as_save_IFS
3082 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003083 $as_echo "PATH: $as_dir"
3084 done
cristy3ed852e2009-09-05 21:47:34 +00003085IFS=$as_save_IFS
3086
3087} >&5
3088
3089cat >&5 <<_ACEOF
3090
3091
3092## ----------- ##
3093## Core tests. ##
3094## ----------- ##
3095
3096_ACEOF
3097
3098
3099# Keep a trace of the command line.
3100# Strip out --no-create and --no-recursion so they do not pile up.
3101# Strip out --silent because we don't want to record it for future runs.
3102# Also quote any args containing shell meta-characters.
3103# Make two passes to allow for proper duplicate-argument suppression.
3104ac_configure_args=
3105ac_configure_args0=
3106ac_configure_args1=
3107ac_must_keep_next=false
3108for ac_pass in 1 2
3109do
3110 for ac_arg
3111 do
3112 case $ac_arg in
3113 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3115 | -silent | --silent | --silen | --sile | --sil)
3116 continue ;;
3117 *\'*)
3118 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3119 esac
3120 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003121 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003122 2)
cristy8b350f62009-11-15 23:12:43 +00003123 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003124 if test $ac_must_keep_next = true; then
3125 ac_must_keep_next=false # Got value, back to normal.
3126 else
3127 case $ac_arg in
3128 *=* | --config-cache | -C | -disable-* | --disable-* \
3129 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3130 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3131 | -with-* | --with-* | -without-* | --without-* | --x)
3132 case "$ac_configure_args0 " in
3133 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3134 esac
3135 ;;
3136 -* ) ac_must_keep_next=true ;;
3137 esac
3138 fi
cristy8b350f62009-11-15 23:12:43 +00003139 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003140 ;;
3141 esac
3142 done
3143done
cristy8b350f62009-11-15 23:12:43 +00003144{ ac_configure_args0=; unset ac_configure_args0;}
3145{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003146
3147# When interrupted or exit'd, cleanup temporary files, and complete
3148# config.log. We remove comments because anyway the quotes in there
3149# would cause problems or look ugly.
3150# WARNING: Use '\'' to represent an apostrophe within the trap.
3151# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3152trap 'exit_status=$?
3153 # Save into config.log some information that might help in debugging.
3154 {
3155 echo
3156
cristy98dddb52010-11-04 00:30:15 +00003157 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003158## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003159## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003160 echo
3161 # The following way of writing the cache mishandles newlines in values,
3162(
3163 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3164 eval ac_val=\$$ac_var
3165 case $ac_val in #(
3166 *${as_nl}*)
3167 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003168 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003169$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3170 esac
3171 case $ac_var in #(
3172 _ | IFS | as_nl) ;; #(
3173 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003174 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003175 esac ;;
3176 esac
3177 done
3178 (set) 2>&1 |
3179 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3180 *${as_nl}ac_space=\ *)
3181 sed -n \
3182 "s/'\''/'\''\\\\'\'''\''/g;
3183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3184 ;; #(
3185 *)
3186 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3187 ;;
3188 esac |
3189 sort
3190)
3191 echo
3192
cristy98dddb52010-11-04 00:30:15 +00003193 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003194## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003195## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003196 echo
3197 for ac_var in $ac_subst_vars
3198 do
3199 eval ac_val=\$$ac_var
3200 case $ac_val in
3201 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3202 esac
3203 $as_echo "$ac_var='\''$ac_val'\''"
3204 done | sort
3205 echo
3206
3207 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003208 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003209## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003210## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003211 echo
3212 for ac_var in $ac_subst_files
3213 do
3214 eval ac_val=\$$ac_var
3215 case $ac_val in
3216 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3217 esac
3218 $as_echo "$ac_var='\''$ac_val'\''"
3219 done | sort
3220 echo
3221 fi
3222
3223 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003224 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003225## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003226## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003227 echo
3228 cat confdefs.h
3229 echo
3230 fi
3231 test "$ac_signal" != 0 &&
3232 $as_echo "$as_me: caught signal $ac_signal"
3233 $as_echo "$as_me: exit $exit_status"
3234 } >&5
3235 rm -f core *.core core.conftest.* &&
3236 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3237 exit $exit_status
3238' 0
3239for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003240 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003241done
3242ac_signal=0
3243
3244# confdefs.h avoids OS command line length limits that DEFS can exceed.
3245rm -f -r conftest* confdefs.h
3246
cristy8b350f62009-11-15 23:12:43 +00003247$as_echo "/* confdefs.h */" > confdefs.h
3248
cristy3ed852e2009-09-05 21:47:34 +00003249# Predefined preprocessor variables.
3250
3251cat >>confdefs.h <<_ACEOF
3252#define PACKAGE_NAME "$PACKAGE_NAME"
3253_ACEOF
3254
cristy3ed852e2009-09-05 21:47:34 +00003255cat >>confdefs.h <<_ACEOF
3256#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3257_ACEOF
3258
cristy3ed852e2009-09-05 21:47:34 +00003259cat >>confdefs.h <<_ACEOF
3260#define PACKAGE_VERSION "$PACKAGE_VERSION"
3261_ACEOF
3262
cristy3ed852e2009-09-05 21:47:34 +00003263cat >>confdefs.h <<_ACEOF
3264#define PACKAGE_STRING "$PACKAGE_STRING"
3265_ACEOF
3266
cristy3ed852e2009-09-05 21:47:34 +00003267cat >>confdefs.h <<_ACEOF
3268#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3269_ACEOF
3270
cristy8b350f62009-11-15 23:12:43 +00003271cat >>confdefs.h <<_ACEOF
3272#define PACKAGE_URL "$PACKAGE_URL"
3273_ACEOF
3274
cristy3ed852e2009-09-05 21:47:34 +00003275
3276# Let the site file select an alternate cache file if it wants to.
3277# Prefer an explicitly selected file to automatically selected ones.
3278ac_site_file1=NONE
3279ac_site_file2=NONE
3280if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003281 # We do not want a PATH search for config.site.
3282 case $CONFIG_SITE in #((
3283 -*) ac_site_file1=./$CONFIG_SITE;;
3284 */*) ac_site_file1=$CONFIG_SITE;;
3285 *) ac_site_file1=./$CONFIG_SITE;;
3286 esac
cristy3ed852e2009-09-05 21:47:34 +00003287elif test "x$prefix" != xNONE; then
3288 ac_site_file1=$prefix/share/config.site
3289 ac_site_file2=$prefix/etc/config.site
3290else
3291 ac_site_file1=$ac_default_prefix/share/config.site
3292 ac_site_file2=$ac_default_prefix/etc/config.site
3293fi
3294for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3295do
3296 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003297 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003298 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003299$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3300 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003301 . "$ac_site_file" \
3302 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3304as_fn_error $? "failed to load site script $ac_site_file
3305See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003306 fi
3307done
3308
3309if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003310 # Some versions of bash will fail to source /dev/null (special files
3311 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3312 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003313 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003314$as_echo "$as_me: loading cache $cache_file" >&6;}
3315 case $cache_file in
3316 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3317 *) . "./$cache_file";;
3318 esac
3319 fi
3320else
cristy8b350f62009-11-15 23:12:43 +00003321 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003322$as_echo "$as_me: creating cache $cache_file" >&6;}
3323 >$cache_file
3324fi
3325
cristycd4c5312009-11-22 01:19:08 +00003326as_fn_append ac_header_list " stdlib.h"
3327as_fn_append ac_header_list " unistd.h"
3328as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003329# Check that the precious variables saved in the cache have kept the same
3330# value.
3331ac_cache_corrupted=false
3332for ac_var in $ac_precious_vars; do
3333 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3334 eval ac_new_set=\$ac_env_${ac_var}_set
3335 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3336 eval ac_new_val=\$ac_env_${ac_var}_value
3337 case $ac_old_set,$ac_new_set in
3338 set,)
cristy8b350f62009-11-15 23:12:43 +00003339 { $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 +00003340$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3341 ac_cache_corrupted=: ;;
3342 ,set)
cristy8b350f62009-11-15 23:12:43 +00003343 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003344$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3345 ac_cache_corrupted=: ;;
3346 ,);;
3347 *)
3348 if test "x$ac_old_val" != "x$ac_new_val"; then
3349 # differences in whitespace do not lead to failure.
3350 ac_old_val_w=`echo x $ac_old_val`
3351 ac_new_val_w=`echo x $ac_new_val`
3352 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003354$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3355 ac_cache_corrupted=:
3356 else
cristy8b350f62009-11-15 23:12:43 +00003357 { $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 +00003358$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3359 eval $ac_var=\$ac_old_val
3360 fi
cristy8b350f62009-11-15 23:12:43 +00003361 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003362$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003363 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003364$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3365 fi;;
3366 esac
3367 # Pass precious variables to config.status.
3368 if test "$ac_new_set" = set; then
3369 case $ac_new_val in
3370 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3371 *) ac_arg=$ac_var=$ac_new_val ;;
3372 esac
3373 case " $ac_configure_args " in
3374 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003375 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003376 esac
3377 fi
3378done
3379if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003380 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003381$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003382 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003383$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003384 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003385fi
cristy8b350f62009-11-15 23:12:43 +00003386## -------------------- ##
3387## Main body of script. ##
3388## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003389
3390ac_ext=c
3391ac_cpp='$CPP $CPPFLAGS'
3392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395
3396
3397
3398ac_aux_dir=
3399for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003400 if test -f "$ac_dir/install-sh"; then
3401 ac_aux_dir=$ac_dir
3402 ac_install_sh="$ac_aux_dir/install-sh -c"
3403 break
3404 elif test -f "$ac_dir/install.sh"; then
3405 ac_aux_dir=$ac_dir
3406 ac_install_sh="$ac_aux_dir/install.sh -c"
3407 break
3408 elif test -f "$ac_dir/shtool"; then
3409 ac_aux_dir=$ac_dir
3410 ac_install_sh="$ac_aux_dir/shtool install -c"
3411 break
3412 fi
cristy3ed852e2009-09-05 21:47:34 +00003413done
3414if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003415 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003416fi
3417
3418# These three variables are undocumented and unsupported,
3419# and are intended to be withdrawn in a future Autoconf release.
3420# They can cause serious problems if a builder's source tree is in a directory
3421# whose full name contains unusual characters.
3422ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3423ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3424ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3425
3426
3427
3428
3429ac_config_headers="$ac_config_headers config/config.h"
3430
cristy24fc1fe2010-10-23 21:13:01 +00003431
cristy4c08aed2011-07-01 19:47:50 +00003432ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003433
cristy4c08aed2011-07-01 19:47:50 +00003434ac_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 MagickCore/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/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 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003435
3436
3437#
3438# Save initial user-tunable values
3439#
3440USER_LIBS=$LIBS
3441for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3442 eval isset=\${$var+set}
3443 if test "$isset" = 'set'; then
3444 eval val=$`echo $var`
3445 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3446 fi
3447done
3448
3449
3450CONFIGURE_ARGS="$0 ${ac_configure_args}"
3451
3452
3453# Source file containing package/library versioning information.
3454. ${srcdir}/version.sh
3455
cristy15a88782010-01-31 23:24:49 +00003456echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003457# Make sure we can run config.sub.
3458$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003459 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003460
cristy8b350f62009-11-15 23:12:43 +00003461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003462$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003463if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003464 $as_echo_n "(cached) " >&6
3465else
3466 ac_build_alias=$build_alias
3467test "x$ac_build_alias" = x &&
3468 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3469test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003470 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003471ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003472 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003473
3474fi
cristy8b350f62009-11-15 23:12:43 +00003475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003476$as_echo "$ac_cv_build" >&6; }
3477case $ac_cv_build in
3478*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003479*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003480esac
3481build=$ac_cv_build
3482ac_save_IFS=$IFS; IFS='-'
3483set x $ac_cv_build
3484shift
3485build_cpu=$1
3486build_vendor=$2
3487shift; shift
3488# Remember, the first character of IFS is used to create $*,
3489# except with old shells:
3490build_os=$*
3491IFS=$ac_save_IFS
3492case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3493
3494
cristy8b350f62009-11-15 23:12:43 +00003495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003496$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003497if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003498 $as_echo_n "(cached) " >&6
3499else
3500 if test "x$host_alias" = x; then
3501 ac_cv_host=$ac_cv_build
3502else
3503 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003504 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003505fi
3506
3507fi
cristy8b350f62009-11-15 23:12:43 +00003508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003509$as_echo "$ac_cv_host" >&6; }
3510case $ac_cv_host in
3511*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003512*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003513esac
3514host=$ac_cv_host
3515ac_save_IFS=$IFS; IFS='-'
3516set x $ac_cv_host
3517shift
3518host_cpu=$1
3519host_vendor=$2
3520shift; shift
3521# Remember, the first character of IFS is used to create $*,
3522# except with old shells:
3523host_os=$*
3524IFS=$ac_save_IFS
3525case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3526
3527
cristy8b350f62009-11-15 23:12:43 +00003528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003529$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003530if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003531 $as_echo_n "(cached) " >&6
3532else
3533 if test "x$target_alias" = x; then
3534 ac_cv_target=$ac_cv_host
3535else
3536 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003537 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003538fi
3539
3540fi
cristy8b350f62009-11-15 23:12:43 +00003541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003542$as_echo "$ac_cv_target" >&6; }
3543case $ac_cv_target in
3544*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003545*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003546esac
3547target=$ac_cv_target
3548ac_save_IFS=$IFS; IFS='-'
3549set x $ac_cv_target
3550shift
3551target_cpu=$1
3552target_vendor=$2
3553shift; shift
3554# Remember, the first character of IFS is used to create $*,
3555# except with old shells:
3556target_os=$*
3557IFS=$ac_save_IFS
3558case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3559
3560
3561# The aliases save the names the user supplied, while $host etc.
3562# will get canonicalized.
3563test -n "$target_alias" &&
3564 test "$program_prefix$program_suffix$program_transform_name" = \
3565 NONENONEs,x,x, &&
3566 program_prefix=${target_alias}-
3567
cristy837d6dc2010-02-27 01:16:57 +00003568
3569
3570
cristy19615b82011-04-13 20:02:01 +00003571MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003572
3573
cristy19615b82011-04-13 20:02:01 +00003574MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003575
3576
cristy19615b82011-04-13 20:02:01 +00003577MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003578
3579
cristy3ed852e2009-09-05 21:47:34 +00003580# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003581MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3582
3583MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3584
cristye23ec9d2011-08-16 18:15:40 +00003585MAGICK_SVN_REVISION=4982
cristyd694ca32011-03-27 21:42:54 +00003586
3587
cristy3ed852e2009-09-05 21:47:34 +00003588
3589
3590# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3592$as_echo_n "checking whether build environment is sane... " >&6; }
3593# Just in case
3594sleep 1
3595echo timestamp > conftest.file
3596# Reject unsafe characters in $srcdir or the absolute working directory
3597# name. Accept space and tab only in the latter.
3598am_lf='
3599'
3600case `pwd` in
3601 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003602 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003603esac
3604case $srcdir in
3605 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003606 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003607esac
cristy3ed852e2009-09-05 21:47:34 +00003608
cristy73bd4a52010-10-05 11:24:23 +00003609# Do `set' in a subshell so we don't clobber the current shell's
3610# arguments. Must try -L first in case configure is actually a
3611# symlink; some systems play weird games with the mod time of symlinks
3612# (eg FreeBSD returns the mod time of the symlink's containing
3613# directory).
3614if (
3615 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3616 if test "$*" = "X"; then
3617 # -L didn't work.
3618 set X `ls -t "$srcdir/configure" conftest.file`
3619 fi
3620 rm -f conftest.file
3621 if test "$*" != "X $srcdir/configure conftest.file" \
3622 && test "$*" != "X conftest.file $srcdir/configure"; then
3623
3624 # If neither matched, then we have a broken ls. This can happen
3625 # if, for instance, CONFIG_SHELL is bash and it inherits a
3626 # broken ls alias from the environment. This has actually
3627 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003628 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003629alias in your environment" "$LINENO" 5
3630 fi
3631
3632 test "$2" = conftest.file
3633 )
3634then
3635 # Ok.
3636 :
3637else
cristy98dddb52010-11-04 00:30:15 +00003638 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003639Check your system clock" "$LINENO" 5
3640fi
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3642$as_echo "yes" >&6; }
3643
3644am__api_version='1.11'
3645
3646# Find a good install program. We prefer a C program (faster),
3647# so one script is as good as another. But avoid the broken or
3648# incompatible versions:
3649# SysV /etc/install, /usr/sbin/install
3650# SunOS /usr/etc/install
3651# IRIX /sbin/install
3652# AIX /bin/install
3653# AmigaOS /C/install, which installs bootblocks on floppy discs
3654# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3655# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3656# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3657# OS/2's system install, which has a completely different semantic
3658# ./install, which can be erroneously created by make from ./install.sh.
3659# Reject install programs that cannot install multiple files.
3660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3661$as_echo_n "checking for a BSD-compatible install... " >&6; }
3662if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003663if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003664 $as_echo_n "(cached) " >&6
3665else
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667for as_dir in $PATH
3668do
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
3671 # Account for people who put trailing slashes in PATH elements.
3672case $as_dir/ in #((
3673 ./ | .// | /[cC]/* | \
3674 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3675 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3676 /usr/ucb/* ) ;;
3677 *)
3678 # OSF1 and SCO ODT 3.0 have their own names for install.
3679 # Don't use installbsd from OSF since it installs stuff as root
3680 # by default.
3681 for ac_prog in ginstall scoinst install; do
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3684 if test $ac_prog = install &&
3685 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3686 # AIX install. It has an incompatible calling convention.
3687 :
3688 elif test $ac_prog = install &&
3689 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3690 # program-specific install script used by HP pwplus--don't use.
3691 :
3692 else
3693 rm -rf conftest.one conftest.two conftest.dir
3694 echo one > conftest.one
3695 echo two > conftest.two
3696 mkdir conftest.dir
3697 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3698 test -s conftest.one && test -s conftest.two &&
3699 test -s conftest.dir/conftest.one &&
3700 test -s conftest.dir/conftest.two
3701 then
3702 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3703 break 3
3704 fi
3705 fi
3706 fi
3707 done
3708 done
3709 ;;
3710esac
3711
3712 done
3713IFS=$as_save_IFS
3714
3715rm -rf conftest.one conftest.two conftest.dir
3716
3717fi
3718 if test "${ac_cv_path_install+set}" = set; then
3719 INSTALL=$ac_cv_path_install
3720 else
3721 # As a last resort, use the slow shell script. Don't cache a
3722 # value for INSTALL within a source directory, because that will
3723 # break other packages using the cache if that directory is
3724 # removed, or if the value is a relative name.
3725 INSTALL=$ac_install_sh
3726 fi
3727fi
3728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3729$as_echo "$INSTALL" >&6; }
3730
3731# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3732# It thinks the first close brace ends the variable substitution.
3733test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3734
3735test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3736
3737test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3738
3739test "$program_prefix" != NONE &&
3740 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3741# Use a double $ so make ignores it.
3742test "$program_suffix" != NONE &&
3743 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3744# Double any \ or $.
3745# By default was `s,x,x', remove it if useless.
3746ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3747program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3748
3749# expand $ac_aux_dir to an absolute path
3750am_aux_dir=`cd $ac_aux_dir && pwd`
3751
3752if test x"${MISSING+set}" != xset; then
3753 case $am_aux_dir in
3754 *\ * | *\ *)
3755 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3756 *)
3757 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3758 esac
3759fi
3760# Use eval to expand $SHELL
3761if eval "$MISSING --run true"; then
3762 am_missing_run="$MISSING --run "
3763else
3764 am_missing_run=
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3766$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3767fi
3768
3769if test x"${install_sh}" != xset; then
3770 case $am_aux_dir in
3771 *\ * | *\ *)
3772 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3773 *)
3774 install_sh="\${SHELL} $am_aux_dir/install-sh"
3775 esac
3776fi
3777
3778# Installed binaries are usually stripped using `strip' when the user
3779# run `make install-strip'. However `strip' might not be the right
3780# tool to use in cross-compilation environments, therefore Automake
3781# will honor the `STRIP' environment variable to overrule this program.
3782if test "$cross_compiling" != no; then
3783 if test -n "$ac_tool_prefix"; then
3784 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3785set dummy ${ac_tool_prefix}strip; ac_word=$2
3786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3787$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003788if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003789 $as_echo_n "(cached) " >&6
3790else
3791 if test -n "$STRIP"; then
3792 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3793else
3794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795for as_dir in $PATH
3796do
3797 IFS=$as_save_IFS
3798 test -z "$as_dir" && as_dir=.
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3801 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3803 break 2
3804 fi
3805done
3806 done
3807IFS=$as_save_IFS
3808
3809fi
3810fi
3811STRIP=$ac_cv_prog_STRIP
3812if test -n "$STRIP"; then
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3814$as_echo "$STRIP" >&6; }
3815else
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817$as_echo "no" >&6; }
3818fi
3819
3820
3821fi
3822if test -z "$ac_cv_prog_STRIP"; then
3823 ac_ct_STRIP=$STRIP
3824 # Extract the first word of "strip", so it can be a program name with args.
3825set dummy strip; ac_word=$2
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3827$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003828if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003829 $as_echo_n "(cached) " >&6
3830else
3831 if test -n "$ac_ct_STRIP"; then
3832 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3833else
3834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835for as_dir in $PATH
3836do
3837 IFS=$as_save_IFS
3838 test -z "$as_dir" && as_dir=.
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3841 ac_cv_prog_ac_ct_STRIP="strip"
3842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3843 break 2
3844 fi
3845done
3846 done
3847IFS=$as_save_IFS
3848
3849fi
3850fi
3851ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3852if test -n "$ac_ct_STRIP"; then
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3854$as_echo "$ac_ct_STRIP" >&6; }
3855else
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857$as_echo "no" >&6; }
3858fi
3859
3860 if test "x$ac_ct_STRIP" = x; then
3861 STRIP=":"
3862 else
3863 case $cross_compiling:$ac_tool_warned in
3864yes:)
3865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3867ac_tool_warned=yes ;;
3868esac
3869 STRIP=$ac_ct_STRIP
3870 fi
3871else
3872 STRIP="$ac_cv_prog_STRIP"
3873fi
3874
3875fi
3876INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3877
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3879$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3880if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003881 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003882 $as_echo_n "(cached) " >&6
3883else
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3886do
3887 IFS=$as_save_IFS
3888 test -z "$as_dir" && as_dir=.
3889 for ac_prog in mkdir gmkdir; do
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3892 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3893 'mkdir (GNU coreutils) '* | \
3894 'mkdir (coreutils) '* | \
3895 'mkdir (fileutils) '4.1*)
3896 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3897 break 3;;
3898 esac
3899 done
3900 done
3901 done
3902IFS=$as_save_IFS
3903
3904fi
3905
3906 test -d ./--version && rmdir ./--version
3907 if test "${ac_cv_path_mkdir+set}" = set; then
3908 MKDIR_P="$ac_cv_path_mkdir -p"
3909 else
3910 # As a last resort, use the slow shell script. Don't cache a
3911 # value for MKDIR_P within a source directory, because that will
3912 # break other packages using the cache if that directory is
3913 # removed, or if the value is a relative name.
3914 MKDIR_P="$ac_install_sh -d"
3915 fi
3916fi
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3918$as_echo "$MKDIR_P" >&6; }
3919
3920mkdir_p="$MKDIR_P"
3921case $mkdir_p in
3922 [\\/$]* | ?:[\\/]*) ;;
3923 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3924esac
3925
3926for ac_prog in gawk mawk nawk awk
3927do
3928 # Extract the first word of "$ac_prog", so it can be a program name with args.
3929set dummy $ac_prog; ac_word=$2
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3931$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003932if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003933 $as_echo_n "(cached) " >&6
3934else
3935 if test -n "$AWK"; then
3936 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3937else
3938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939for as_dir in $PATH
3940do
3941 IFS=$as_save_IFS
3942 test -z "$as_dir" && as_dir=.
3943 for ac_exec_ext in '' $ac_executable_extensions; do
3944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3945 ac_cv_prog_AWK="$ac_prog"
3946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 break 2
3948 fi
3949done
3950 done
3951IFS=$as_save_IFS
3952
3953fi
3954fi
3955AWK=$ac_cv_prog_AWK
3956if test -n "$AWK"; then
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3958$as_echo "$AWK" >&6; }
3959else
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961$as_echo "no" >&6; }
3962fi
3963
3964
3965 test -n "$AWK" && break
3966done
3967
3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3969$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3970set x ${MAKE-make}
3971ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00003972if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003973 $as_echo_n "(cached) " >&6
3974else
3975 cat >conftest.make <<\_ACEOF
3976SHELL = /bin/sh
3977all:
3978 @echo '@@@%%%=$(MAKE)=@@@%%%'
3979_ACEOF
cristy98dddb52010-11-04 00:30:15 +00003980# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00003981case `${MAKE-make} -f conftest.make 2>/dev/null` in
3982 *@@@%%%=?*=@@@%%%*)
3983 eval ac_cv_prog_make_${ac_make}_set=yes;;
3984 *)
3985 eval ac_cv_prog_make_${ac_make}_set=no;;
3986esac
3987rm -f conftest.make
3988fi
3989if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3991$as_echo "yes" >&6; }
3992 SET_MAKE=
3993else
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995$as_echo "no" >&6; }
3996 SET_MAKE="MAKE=${MAKE-make}"
3997fi
3998
3999rm -rf .tst 2>/dev/null
4000mkdir .tst 2>/dev/null
4001if test -d .tst; then
4002 am__leading_dot=.
4003else
4004 am__leading_dot=_
4005fi
4006rmdir .tst 2>/dev/null
4007
4008if test "`cd $srcdir && pwd`" != "`pwd`"; then
4009 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4010 # is not polluted with repeated "-I."
4011 am__isrc=' -I$(srcdir)'
4012 # test to see if srcdir already configured
4013 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004014 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004015 fi
4016fi
4017
4018# test whether we have cygpath
4019if test -z "$CYGPATH_W"; then
4020 if (cygpath --version) >/dev/null 2>/dev/null; then
4021 CYGPATH_W='cygpath -w'
4022 else
4023 CYGPATH_W=echo
4024 fi
4025fi
4026
4027
4028# Define the identity of the package.
4029 PACKAGE=$PACKAGE_NAME
4030 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4031
4032
4033# Some tools Automake needs.
4034
4035ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4036
4037
4038AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4039
4040
4041AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4042
4043
4044AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4045
4046
4047MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4048
4049# We need awk for the "check" target. The system "awk" is bad on
4050# some platforms.
4051# Always define AMTAR for backward compatibility.
4052
4053AMTAR=${AMTAR-"${am_missing_run}tar"}
4054
4055am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4056
4057
4058
4059
4060
cristy3ed852e2009-09-05 21:47:34 +00004061
4062# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004063# Check whether --enable-silent-rules was given.
4064if test "${enable_silent_rules+set}" = set; then :
4065 enableval=$enable_silent_rules;
4066fi
4067
4068case $enable_silent_rules in
4069yes) AM_DEFAULT_VERBOSITY=0;;
4070no) AM_DEFAULT_VERBOSITY=1;;
4071*) AM_DEFAULT_VERBOSITY=0;;
4072esac
4073AM_BACKSLASH='\'
4074
cristy3ed852e2009-09-05 21:47:34 +00004075
4076MAGICK_LIB_VERSION="0x"
4077if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4078 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4079fi
4080MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4081if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4082 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4083fi
4084MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4085if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4086 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4087fi
4088MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4089
4090
4091# Definition used to define MagickLibVersionText in version.h
4092MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4093
4094
4095# Definition used to define MagickLibVersionNumber in version.h
4096MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4097
4098
4099# Regenerate config.status if ChangeLog or version.sh is updated.
4100CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4101
4102
4103PERLMAINCC=$CC
4104
4105MAGICK_CFLAGS=''
4106MAGICK_CPPFLAGS=$CPPFLAGS_USER
4107MAGICK_PCFLAGS=$CPPFLAGS_USER
4108MAGICK_LDFLAGS=''
4109MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004110MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004111
4112#
4113# Evaluate shell variable equivalents to Makefile directory variables
4114#
4115if test "x$prefix" = xNONE; then
4116 prefix=$ac_default_prefix
4117fi
4118# Let make expand exec_prefix.
4119if test "x$exec_prefix" = xNONE; then
4120 exec_prefix='${prefix}'
4121fi
4122
4123#
4124eval "eval PREFIX_DIR=${prefix}"
4125
4126eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4127
4128eval "eval BIN_DIR=$bindir"
4129
4130eval "eval SBIN_DIR=$sbindir"
4131
4132eval "eval LIBEXEC_DIR=$libexecdir"
4133
4134eval "eval DATA_DIR=$datadir"
4135
cristyd55889c2011-03-27 00:50:24 +00004136eval "eval DOC_DIR=$docdir"
4137
cristy3ed852e2009-09-05 21:47:34 +00004138eval "eval SYSCONF_DIR=$sysconfdir"
4139
4140eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4141
4142eval "eval LOCALSTATE_DIR=$localstatedir"
4143
4144eval "eval LIB_DIR=$libdir"
4145
4146eval "eval INCLUDE_DIR=$includedir"
4147
4148eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4149
4150eval "eval INFO_DIR=$infodir"
4151
4152eval "eval MAN_DIR=$mandir"
4153
4154
4155# Get full paths to source and build directories
4156srcdirfull="`cd $srcdir && pwd`"
4157builddir="`pwd`"
4158
4159#
4160# Compute variables useful for running uninstalled software.
4161#
4162MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4163MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4164MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4165MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4166DIRSEP=':'
4167case "${build_os}" in
4168 mingw* )
4169 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4170 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4171 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4172 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4173 DIRSEP=';'
4174 ;;
4175esac
4176case "${host_os}" in
4177 mingw* )
4178 DIRSEP=';'
4179 ;;
4180esac
4181
4182
4183
4184
4185
4186
cristya0b81c32010-01-22 02:54:33 +00004187
4188#
4189# Enable OS features.
4190#
cristy73bd4a52010-10-05 11:24:23 +00004191DEPDIR="${am__leading_dot}deps"
4192
4193ac_config_commands="$ac_config_commands depfiles"
4194
4195
4196am_make=${MAKE-make}
4197cat > confinc << 'END'
4198am__doit:
4199 @echo this is the am__doit target
4200.PHONY: am__doit
4201END
4202# If we don't find an include directive, just comment out the code.
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4204$as_echo_n "checking for style of include used by $am_make... " >&6; }
4205am__include="#"
4206am__quote=
4207_am_result=none
4208# First try GNU make style include.
4209echo "include confinc" > confmf
4210# Ignore all kinds of additional output from `make'.
4211case `$am_make -s -f confmf 2> /dev/null` in #(
4212*the\ am__doit\ target*)
4213 am__include=include
4214 am__quote=
4215 _am_result=GNU
4216 ;;
4217esac
4218# Now try BSD make style include.
4219if test "$am__include" = "#"; then
4220 echo '.include "confinc"' > confmf
4221 case `$am_make -s -f confmf 2> /dev/null` in #(
4222 *the\ am__doit\ target*)
4223 am__include=.include
4224 am__quote="\""
4225 _am_result=BSD
4226 ;;
4227 esac
4228fi
4229
4230
4231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4232$as_echo "$_am_result" >&6; }
4233rm -f confinc confmf
4234
4235# Check whether --enable-dependency-tracking was given.
4236if test "${enable_dependency_tracking+set}" = set; then :
4237 enableval=$enable_dependency_tracking;
4238fi
4239
4240if test "x$enable_dependency_tracking" != xno; then
4241 am_depcomp="$ac_aux_dir/depcomp"
4242 AMDEPBACKSLASH='\'
4243fi
4244 if test "x$enable_dependency_tracking" != xno; then
4245 AMDEP_TRUE=
4246 AMDEP_FALSE='#'
4247else
4248 AMDEP_TRUE='#'
4249 AMDEP_FALSE=
4250fi
4251
4252
cristy3ed852e2009-09-05 21:47:34 +00004253ac_ext=c
4254ac_cpp='$CPP $CPPFLAGS'
4255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258if test -n "$ac_tool_prefix"; then
4259 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4260set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004262$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004263if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004264 $as_echo_n "(cached) " >&6
4265else
4266 if test -n "$CC"; then
4267 ac_cv_prog_CC="$CC" # Let the user override the test.
4268else
4269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270for as_dir in $PATH
4271do
4272 IFS=$as_save_IFS
4273 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004274 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4276 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004278 break 2
4279 fi
4280done
cristy8b350f62009-11-15 23:12:43 +00004281 done
cristy3ed852e2009-09-05 21:47:34 +00004282IFS=$as_save_IFS
4283
4284fi
4285fi
4286CC=$ac_cv_prog_CC
4287if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004289$as_echo "$CC" >&6; }
4290else
cristy8b350f62009-11-15 23:12:43 +00004291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004292$as_echo "no" >&6; }
4293fi
4294
4295
4296fi
4297if test -z "$ac_cv_prog_CC"; then
4298 ac_ct_CC=$CC
4299 # Extract the first word of "gcc", so it can be a program name with args.
4300set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004302$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004303if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004304 $as_echo_n "(cached) " >&6
4305else
4306 if test -n "$ac_ct_CC"; then
4307 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4308else
4309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310for as_dir in $PATH
4311do
4312 IFS=$as_save_IFS
4313 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004314 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4316 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004318 break 2
4319 fi
4320done
cristy8b350f62009-11-15 23:12:43 +00004321 done
cristy3ed852e2009-09-05 21:47:34 +00004322IFS=$as_save_IFS
4323
4324fi
4325fi
4326ac_ct_CC=$ac_cv_prog_ac_ct_CC
4327if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004329$as_echo "$ac_ct_CC" >&6; }
4330else
cristy8b350f62009-11-15 23:12:43 +00004331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004332$as_echo "no" >&6; }
4333fi
4334
4335 if test "x$ac_ct_CC" = x; then
4336 CC=""
4337 else
4338 case $cross_compiling:$ac_tool_warned in
4339yes:)
cristy8b350f62009-11-15 23:12:43 +00004340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4342ac_tool_warned=yes ;;
4343esac
4344 CC=$ac_ct_CC
4345 fi
4346else
4347 CC="$ac_cv_prog_CC"
4348fi
4349
4350if test -z "$CC"; then
4351 if test -n "$ac_tool_prefix"; then
4352 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4353set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004355$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004356if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004357 $as_echo_n "(cached) " >&6
4358else
4359 if test -n "$CC"; then
4360 ac_cv_prog_CC="$CC" # Let the user override the test.
4361else
4362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363for as_dir in $PATH
4364do
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004367 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4369 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004371 break 2
4372 fi
4373done
cristy8b350f62009-11-15 23:12:43 +00004374 done
cristy3ed852e2009-09-05 21:47:34 +00004375IFS=$as_save_IFS
4376
4377fi
4378fi
4379CC=$ac_cv_prog_CC
4380if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004382$as_echo "$CC" >&6; }
4383else
cristy8b350f62009-11-15 23:12:43 +00004384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004385$as_echo "no" >&6; }
4386fi
4387
4388
4389 fi
4390fi
4391if test -z "$CC"; then
4392 # Extract the first word of "cc", so it can be a program name with args.
4393set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004395$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004396if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004397 $as_echo_n "(cached) " >&6
4398else
4399 if test -n "$CC"; then
4400 ac_cv_prog_CC="$CC" # Let the user override the test.
4401else
4402 ac_prog_rejected=no
4403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404for as_dir in $PATH
4405do
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004408 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4411 ac_prog_rejected=yes
4412 continue
4413 fi
4414 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004416 break 2
4417 fi
4418done
cristy8b350f62009-11-15 23:12:43 +00004419 done
cristy3ed852e2009-09-05 21:47:34 +00004420IFS=$as_save_IFS
4421
4422if test $ac_prog_rejected = yes; then
4423 # We found a bogon in the path, so make sure we never use it.
4424 set dummy $ac_cv_prog_CC
4425 shift
4426 if test $# != 0; then
4427 # We chose a different compiler from the bogus one.
4428 # However, it has the same basename, so the bogon will be chosen
4429 # first if we set CC to just the basename; use the full file name.
4430 shift
4431 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4432 fi
4433fi
4434fi
4435fi
4436CC=$ac_cv_prog_CC
4437if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004439$as_echo "$CC" >&6; }
4440else
cristy8b350f62009-11-15 23:12:43 +00004441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004442$as_echo "no" >&6; }
4443fi
4444
4445
4446fi
4447if test -z "$CC"; then
4448 if test -n "$ac_tool_prefix"; then
4449 for ac_prog in cl.exe
4450 do
4451 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4452set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004454$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004455if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004456 $as_echo_n "(cached) " >&6
4457else
4458 if test -n "$CC"; then
4459 ac_cv_prog_CC="$CC" # Let the user override the test.
4460else
4461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462for as_dir in $PATH
4463do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004466 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4468 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004470 break 2
4471 fi
4472done
cristy8b350f62009-11-15 23:12:43 +00004473 done
cristy3ed852e2009-09-05 21:47:34 +00004474IFS=$as_save_IFS
4475
4476fi
4477fi
4478CC=$ac_cv_prog_CC
4479if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004481$as_echo "$CC" >&6; }
4482else
cristy8b350f62009-11-15 23:12:43 +00004483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004484$as_echo "no" >&6; }
4485fi
4486
4487
4488 test -n "$CC" && break
4489 done
4490fi
4491if test -z "$CC"; then
4492 ac_ct_CC=$CC
4493 for ac_prog in cl.exe
4494do
4495 # Extract the first word of "$ac_prog", so it can be a program name with args.
4496set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004498$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004499if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004500 $as_echo_n "(cached) " >&6
4501else
4502 if test -n "$ac_ct_CC"; then
4503 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4504else
4505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506for as_dir in $PATH
4507do
4508 IFS=$as_save_IFS
4509 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004510 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4512 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004514 break 2
4515 fi
4516done
cristy8b350f62009-11-15 23:12:43 +00004517 done
cristy3ed852e2009-09-05 21:47:34 +00004518IFS=$as_save_IFS
4519
4520fi
4521fi
4522ac_ct_CC=$ac_cv_prog_ac_ct_CC
4523if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004525$as_echo "$ac_ct_CC" >&6; }
4526else
cristy8b350f62009-11-15 23:12:43 +00004527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004528$as_echo "no" >&6; }
4529fi
4530
4531
4532 test -n "$ac_ct_CC" && break
4533done
4534
4535 if test "x$ac_ct_CC" = x; then
4536 CC=""
4537 else
4538 case $cross_compiling:$ac_tool_warned in
4539yes:)
cristy8b350f62009-11-15 23:12:43 +00004540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4542ac_tool_warned=yes ;;
4543esac
4544 CC=$ac_ct_CC
4545 fi
4546fi
4547
4548fi
4549
4550
cristy8b350f62009-11-15 23:12:43 +00004551test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004552$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004553as_fn_error $? "no acceptable C compiler found in \$PATH
4554See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004555
4556# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004557$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004558set X $ac_compile
4559ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004560for ac_option in --version -v -V -qversion; do
4561 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004562case "(($ac_try" in
4563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4564 *) ac_try_echo=$ac_try;;
4565esac
cristy8b350f62009-11-15 23:12:43 +00004566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4567$as_echo "$ac_try_echo"; } >&5
4568 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004569 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004570 if test -s conftest.err; then
4571 sed '10a\
4572... rest of stderr output deleted ...
4573 10q' conftest.err >conftest.er1
4574 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004575 fi
cristycd4c5312009-11-22 01:19:08 +00004576 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4578 test $ac_status = 0; }
4579done
cristy3ed852e2009-09-05 21:47:34 +00004580
cristy8b350f62009-11-15 23:12:43 +00004581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004582/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004583
cristy3ed852e2009-09-05 21:47:34 +00004584int
4585main ()
4586{
4587
4588 ;
4589 return 0;
4590}
4591_ACEOF
4592ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004593ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004594# Try to create an executable without -o first, disregard a.out.
4595# It will help us diagnose broken compilers, and finding out an intuition
4596# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4598$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004599ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4600
4601# The possible output files:
4602ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4603
4604ac_rmfiles=
4605for ac_file in $ac_files
4606do
4607 case $ac_file in
4608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4609 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4610 esac
4611done
4612rm -f $ac_rmfiles
4613
cristy8b350f62009-11-15 23:12:43 +00004614if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004615case "(($ac_try" in
4616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617 *) ac_try_echo=$ac_try;;
4618esac
cristy8b350f62009-11-15 23:12:43 +00004619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4620$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004621 (eval "$ac_link_default") 2>&5
4622 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4624 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004625 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4626# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4627# in a Makefile. We should not override ac_cv_exeext if it was cached,
4628# so that the user can short-circuit this test for compilers unknown to
4629# Autoconf.
4630for ac_file in $ac_files ''
4631do
4632 test -f "$ac_file" || continue
4633 case $ac_file in
4634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4635 ;;
4636 [ab].out )
4637 # We found the default executable, but exeext='' is most
4638 # certainly right.
4639 break;;
4640 *.* )
cristy8b350f62009-11-15 23:12:43 +00004641 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004642 then :; else
4643 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4644 fi
4645 # We set ac_cv_exeext here because the later test for it is not
4646 # safe: cross compilers may not add the suffix if given an `-o'
4647 # argument, so we may need to know it at that point already.
4648 # Even if this section looks crufty: it has the advantage of
4649 # actually working.
4650 break;;
4651 * )
4652 break;;
4653 esac
4654done
4655test "$ac_cv_exeext" = no && ac_cv_exeext=
4656
4657else
4658 ac_file=''
4659fi
cristy8b350f62009-11-15 23:12:43 +00004660if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662$as_echo "no" >&6; }
4663$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004664sed 's/^/| /' conftest.$ac_ext >&5
4665
cristy8b350f62009-11-15 23:12:43 +00004666{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004667$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004668as_fn_error 77 "C compiler cannot create executables
4669See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004670else
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4672$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004673fi
cristycd4c5312009-11-22 01:19:08 +00004674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4675$as_echo_n "checking for C compiler default output file name... " >&6; }
4676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4677$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004678ac_exeext=$ac_cv_exeext
4679
cristycd4c5312009-11-22 01:19:08 +00004680rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004681ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004683$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004684if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004685case "(($ac_try" in
4686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687 *) ac_try_echo=$ac_try;;
4688esac
cristy8b350f62009-11-15 23:12:43 +00004689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4690$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004691 (eval "$ac_link") 2>&5
4692 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4694 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004695 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4696# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4697# work properly (i.e., refer to `conftest.exe'), while it won't with
4698# `rm'.
4699for ac_file in conftest.exe conftest conftest.*; do
4700 test -f "$ac_file" || continue
4701 case $ac_file in
4702 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4703 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4704 break;;
4705 * ) break;;
4706 esac
4707done
4708else
cristy8b350f62009-11-15 23:12:43 +00004709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004711as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4712See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004713fi
cristycd4c5312009-11-22 01:19:08 +00004714rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004716$as_echo "$ac_cv_exeext" >&6; }
4717
4718rm -f conftest.$ac_ext
4719EXEEXT=$ac_cv_exeext
4720ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722/* end confdefs.h. */
4723#include <stdio.h>
4724int
4725main ()
4726{
4727FILE *f = fopen ("conftest.out", "w");
4728 return ferror (f) || fclose (f) != 0;
4729
4730 ;
4731 return 0;
4732}
4733_ACEOF
4734ac_clean_files="$ac_clean_files conftest.out"
4735# Check that the compiler produces executables we can run. If not, either
4736# the compiler is broken, or we cross compile.
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4738$as_echo_n "checking whether we are cross compiling... " >&6; }
4739if test "$cross_compiling" != yes; then
4740 { { ac_try="$ac_link"
4741case "(($ac_try" in
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4744esac
4745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4746$as_echo "$ac_try_echo"; } >&5
4747 (eval "$ac_link") 2>&5
4748 ac_status=$?
4749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4750 test $ac_status = 0; }
4751 if { ac_try='./conftest$ac_cv_exeext'
4752 { { case "(($ac_try" in
4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4755esac
4756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4757$as_echo "$ac_try_echo"; } >&5
4758 (eval "$ac_try") 2>&5
4759 ac_status=$?
4760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4761 test $ac_status = 0; }; }; then
4762 cross_compiling=no
4763 else
4764 if test "$cross_compiling" = maybe; then
4765 cross_compiling=yes
4766 else
4767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004769as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004770If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004771See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004772 fi
4773 fi
4774fi
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4776$as_echo "$cross_compiling" >&6; }
4777
4778rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4779ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004781$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004782if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004783 $as_echo_n "(cached) " >&6
4784else
cristy8b350f62009-11-15 23:12:43 +00004785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004786/* end confdefs.h. */
4787
4788int
4789main ()
4790{
4791
4792 ;
4793 return 0;
4794}
4795_ACEOF
4796rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004797if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004798case "(($ac_try" in
4799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4800 *) ac_try_echo=$ac_try;;
4801esac
cristy8b350f62009-11-15 23:12:43 +00004802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4803$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004804 (eval "$ac_compile") 2>&5
4805 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4807 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004808 for ac_file in conftest.o conftest.obj conftest.*; do
4809 test -f "$ac_file" || continue;
4810 case $ac_file in
4811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4812 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4813 break;;
4814 esac
4815done
4816else
4817 $as_echo "$as_me: failed program was:" >&5
4818sed 's/^/| /' conftest.$ac_ext >&5
4819
cristy8b350f62009-11-15 23:12:43 +00004820{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004821$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004822as_fn_error $? "cannot compute suffix of object files: cannot compile
4823See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004824fi
cristy3ed852e2009-09-05 21:47:34 +00004825rm -f conftest.$ac_cv_objext conftest.$ac_ext
4826fi
cristy8b350f62009-11-15 23:12:43 +00004827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004828$as_echo "$ac_cv_objext" >&6; }
4829OBJEXT=$ac_cv_objext
4830ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004832$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004833if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004834 $as_echo_n "(cached) " >&6
4835else
cristy8b350f62009-11-15 23:12:43 +00004836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004837/* end confdefs.h. */
4838
4839int
4840main ()
4841{
4842#ifndef __GNUC__
4843 choke me
4844#endif
4845
4846 ;
4847 return 0;
4848}
4849_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004850if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004851 ac_compiler_gnu=yes
4852else
cristy8b350f62009-11-15 23:12:43 +00004853 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004854fi
cristy3ed852e2009-09-05 21:47:34 +00004855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856ac_cv_c_compiler_gnu=$ac_compiler_gnu
4857
4858fi
cristy8b350f62009-11-15 23:12:43 +00004859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004860$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4861if test $ac_compiler_gnu = yes; then
4862 GCC=yes
4863else
4864 GCC=
4865fi
4866ac_test_CFLAGS=${CFLAGS+set}
4867ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004869$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004870if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004871 $as_echo_n "(cached) " >&6
4872else
4873 ac_save_c_werror_flag=$ac_c_werror_flag
4874 ac_c_werror_flag=yes
4875 ac_cv_prog_cc_g=no
4876 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004878/* end confdefs.h. */
4879
4880int
4881main ()
4882{
4883
4884 ;
4885 return 0;
4886}
4887_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004888if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004889 ac_cv_prog_cc_g=yes
4890else
cristy8b350f62009-11-15 23:12:43 +00004891 CFLAGS=""
4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004893/* end confdefs.h. */
4894
4895int
4896main ()
4897{
4898
4899 ;
4900 return 0;
4901}
4902_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004903if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004904
cristy8b350f62009-11-15 23:12:43 +00004905else
4906 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004907 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004909/* end confdefs.h. */
4910
4911int
4912main ()
4913{
4914
4915 ;
4916 return 0;
4917}
4918_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004919if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004920 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004921fi
cristy3ed852e2009-09-05 21:47:34 +00004922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4923fi
cristy3ed852e2009-09-05 21:47:34 +00004924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925fi
cristy3ed852e2009-09-05 21:47:34 +00004926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4927 ac_c_werror_flag=$ac_save_c_werror_flag
4928fi
cristy8b350f62009-11-15 23:12:43 +00004929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004930$as_echo "$ac_cv_prog_cc_g" >&6; }
4931if test "$ac_test_CFLAGS" = set; then
4932 CFLAGS=$ac_save_CFLAGS
4933elif test $ac_cv_prog_cc_g = yes; then
4934 if test "$GCC" = yes; then
4935 CFLAGS="-g -O2"
4936 else
4937 CFLAGS="-g"
4938 fi
4939else
4940 if test "$GCC" = yes; then
4941 CFLAGS="-O2"
4942 else
4943 CFLAGS=
4944 fi
4945fi
cristy8b350f62009-11-15 23:12:43 +00004946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004947$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004948if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004949 $as_echo_n "(cached) " >&6
4950else
4951 ac_cv_prog_cc_c89=no
4952ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004954/* end confdefs.h. */
4955#include <stdarg.h>
4956#include <stdio.h>
4957#include <sys/types.h>
4958#include <sys/stat.h>
4959/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4960struct buf { int x; };
4961FILE * (*rcsopen) (struct buf *, struct stat *, int);
4962static char *e (p, i)
4963 char **p;
4964 int i;
4965{
4966 return p[i];
4967}
4968static char *f (char * (*g) (char **, int), char **p, ...)
4969{
4970 char *s;
4971 va_list v;
4972 va_start (v,p);
4973 s = g (p, va_arg (v,int));
4974 va_end (v);
4975 return s;
4976}
4977
4978/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4979 function prototypes and stuff, but not '\xHH' hex character constants.
4980 These don't provoke an error unfortunately, instead are silently treated
4981 as 'x'. The following induces an error, until -std is added to get
4982 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4983 array size at least. It's necessary to write '\x00'==0 to get something
4984 that's true only with -std. */
4985int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4986
4987/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4988 inside strings and character constants. */
4989#define FOO(x) 'x'
4990int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4991
4992int test (int i, double x);
4993struct s1 {int (*f) (int a);};
4994struct s2 {int (*f) (double a);};
4995int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4996int argc;
4997char **argv;
4998int
4999main ()
5000{
5001return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5002 ;
5003 return 0;
5004}
5005_ACEOF
5006for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5007 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5008do
5009 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005010 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005011 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005012fi
cristy3ed852e2009-09-05 21:47:34 +00005013rm -f core conftest.err conftest.$ac_objext
5014 test "x$ac_cv_prog_cc_c89" != "xno" && break
5015done
5016rm -f conftest.$ac_ext
5017CC=$ac_save_CC
5018
5019fi
5020# AC_CACHE_VAL
5021case "x$ac_cv_prog_cc_c89" in
5022 x)
cristy8b350f62009-11-15 23:12:43 +00005023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005024$as_echo "none needed" >&6; } ;;
5025 xno)
cristy8b350f62009-11-15 23:12:43 +00005026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005027$as_echo "unsupported" >&6; } ;;
5028 *)
5029 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005031$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5032esac
cristy8b350f62009-11-15 23:12:43 +00005033if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005034
cristy8b350f62009-11-15 23:12:43 +00005035fi
cristy3ed852e2009-09-05 21:47:34 +00005036
5037ac_ext=c
5038ac_cpp='$CPP $CPPFLAGS'
5039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5041ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005042
cristy73bd4a52010-10-05 11:24:23 +00005043depcc="$CC" am_compiler_list=
5044
5045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5046$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005047if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005048 $as_echo_n "(cached) " >&6
5049else
5050 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5051 # We make a subdir and do the tests there. Otherwise we can end up
5052 # making bogus files that we don't know about and never remove. For
5053 # instance it was reported that on HP-UX the gcc test will end up
5054 # making a dummy file named `D' -- because `-MD' means `put the output
5055 # in D'.
5056 mkdir conftest.dir
5057 # Copy depcomp to subdir because otherwise we won't find it if we're
5058 # using a relative directory.
5059 cp "$am_depcomp" conftest.dir
5060 cd conftest.dir
5061 # We will build objects and dependencies in a subdirectory because
5062 # it helps to detect inapplicable dependency modes. For instance
5063 # both Tru64's cc and ICC support -MD to output dependencies as a
5064 # side effect of compilation, but ICC will put the dependencies in
5065 # the current directory while Tru64 will put them in the object
5066 # directory.
5067 mkdir sub
5068
5069 am_cv_CC_dependencies_compiler_type=none
5070 if test "$am_compiler_list" = ""; then
5071 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5072 fi
5073 am__universal=false
5074 case " $depcc " in #(
5075 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5076 esac
5077
5078 for depmode in $am_compiler_list; do
5079 # Setup a source with many dependencies, because some compilers
5080 # like to wrap large dependency lists on column 80 (with \), and
5081 # we should not choose a depcomp mode which is confused by this.
5082 #
5083 # We need to recreate these files for each test, as the compiler may
5084 # overwrite some of them when testing with obscure command lines.
5085 # This happens at least with the AIX C compiler.
5086 : > sub/conftest.c
5087 for i in 1 2 3 4 5 6; do
5088 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5089 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5090 # Solaris 8's {/usr,}/bin/sh.
5091 touch sub/conftst$i.h
5092 done
5093 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5094
5095 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5096 # mode. It turns out that the SunPro C++ compiler does not properly
5097 # handle `-M -o', and we need to detect this. Also, some Intel
5098 # versions had trouble with output in subdirs
5099 am__obj=sub/conftest.${OBJEXT-o}
5100 am__minus_obj="-o $am__obj"
5101 case $depmode in
5102 gcc)
5103 # This depmode causes a compiler race in universal mode.
5104 test "$am__universal" = false || continue
5105 ;;
5106 nosideeffect)
5107 # after this tag, mechanisms are not by side-effect, so they'll
5108 # only be used when explicitly requested
5109 if test "x$enable_dependency_tracking" = xyes; then
5110 continue
5111 else
5112 break
5113 fi
5114 ;;
5115 msvisualcpp | msvcmsys)
5116 # This compiler won't grok `-c -o', but also, the minuso test has
5117 # not run yet. These depmodes are late enough in the game, and
5118 # so weak that their functioning should not be impacted.
5119 am__obj=conftest.${OBJEXT-o}
5120 am__minus_obj=
5121 ;;
5122 none) break ;;
5123 esac
5124 if depmode=$depmode \
5125 source=sub/conftest.c object=$am__obj \
5126 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5127 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5128 >/dev/null 2>conftest.err &&
5129 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5130 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5131 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5132 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5133 # icc doesn't choke on unknown options, it will just issue warnings
5134 # or remarks (even with -Werror). So we grep stderr for any message
5135 # that says an option was ignored or not supported.
5136 # When given -MP, icc 7.0 and 7.1 complain thusly:
5137 # icc: Command line warning: ignoring option '-M'; no argument required
5138 # The diagnosis changed in icc 8.0:
5139 # icc: Command line remark: option '-MP' not supported
5140 if (grep 'ignoring option' conftest.err ||
5141 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5142 am_cv_CC_dependencies_compiler_type=$depmode
5143 break
5144 fi
5145 fi
5146 done
5147
5148 cd ..
5149 rm -rf conftest.dir
5150else
5151 am_cv_CC_dependencies_compiler_type=none
5152fi
5153
5154fi
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5156$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5157CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5158
5159 if
5160 test "x$enable_dependency_tracking" != xno \
5161 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5162 am__fastdepCC_TRUE=
5163 am__fastdepCC_FALSE='#'
5164else
5165 am__fastdepCC_TRUE='#'
5166 am__fastdepCC_FALSE=
5167fi
5168
5169
cristy3ed852e2009-09-05 21:47:34 +00005170
cristya0b81c32010-01-22 02:54:33 +00005171ac_ext=c
5172ac_cpp='$CPP $CPPFLAGS'
5173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175ac_compiler_gnu=$ac_cv_c_compiler_gnu
5176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5177$as_echo_n "checking how to run the C preprocessor... " >&6; }
5178# On Suns, sometimes $CPP names a directory.
5179if test -n "$CPP" && test -d "$CPP"; then
5180 CPP=
5181fi
5182if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005183 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005184 $as_echo_n "(cached) " >&6
5185else
5186 # Double quotes because CPP needs to be expanded
5187 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5188 do
5189 ac_preproc_ok=false
5190for ac_c_preproc_warn_flag in '' yes
5191do
5192 # Use a header file that comes with gcc, so configuring glibc
5193 # with a fresh cross-compiler works.
5194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5195 # <limits.h> exists even on freestanding compilers.
5196 # On the NeXT, cc -E runs the code through the compiler's parser,
5197 # not just through cpp. "Syntax error" is here to catch this case.
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199/* end confdefs.h. */
5200#ifdef __STDC__
5201# include <limits.h>
5202#else
5203# include <assert.h>
5204#endif
5205 Syntax error
5206_ACEOF
5207if ac_fn_c_try_cpp "$LINENO"; then :
5208
5209else
5210 # Broken: fails on valid input.
5211continue
5212fi
cristyda16f162011-02-19 23:52:17 +00005213rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005214
5215 # OK, works on sane cases. Now check whether nonexistent headers
5216 # can be detected and how.
5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218/* end confdefs.h. */
5219#include <ac_nonexistent.h>
5220_ACEOF
5221if ac_fn_c_try_cpp "$LINENO"; then :
5222 # Broken: success on invalid input.
5223continue
5224else
5225 # Passes both tests.
5226ac_preproc_ok=:
5227break
5228fi
cristyda16f162011-02-19 23:52:17 +00005229rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005230
5231done
5232# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005233rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005234if $ac_preproc_ok; then :
5235 break
5236fi
5237
5238 done
5239 ac_cv_prog_CPP=$CPP
5240
5241fi
5242 CPP=$ac_cv_prog_CPP
5243else
5244 ac_cv_prog_CPP=$CPP
5245fi
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5247$as_echo "$CPP" >&6; }
5248ac_preproc_ok=false
5249for ac_c_preproc_warn_flag in '' yes
5250do
5251 # Use a header file that comes with gcc, so configuring glibc
5252 # with a fresh cross-compiler works.
5253 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5254 # <limits.h> exists even on freestanding compilers.
5255 # On the NeXT, cc -E runs the code through the compiler's parser,
5256 # not just through cpp. "Syntax error" is here to catch this case.
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258/* end confdefs.h. */
5259#ifdef __STDC__
5260# include <limits.h>
5261#else
5262# include <assert.h>
5263#endif
5264 Syntax error
5265_ACEOF
5266if ac_fn_c_try_cpp "$LINENO"; then :
5267
5268else
5269 # Broken: fails on valid input.
5270continue
5271fi
cristyda16f162011-02-19 23:52:17 +00005272rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005273
5274 # OK, works on sane cases. Now check whether nonexistent headers
5275 # can be detected and how.
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277/* end confdefs.h. */
5278#include <ac_nonexistent.h>
5279_ACEOF
5280if ac_fn_c_try_cpp "$LINENO"; then :
5281 # Broken: success on invalid input.
5282continue
5283else
5284 # Passes both tests.
5285ac_preproc_ok=:
5286break
5287fi
cristyda16f162011-02-19 23:52:17 +00005288rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005289
5290done
5291# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005292rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005293if $ac_preproc_ok; then :
5294
5295else
5296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005298as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5299See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005300fi
5301
5302ac_ext=c
5303ac_cpp='$CPP $CPPFLAGS'
5304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5306ac_compiler_gnu=$ac_cv_c_compiler_gnu
5307
5308
5309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5310$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005311if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005312 $as_echo_n "(cached) " >&6
5313else
5314 if test -z "$GREP"; then
5315 ac_path_GREP_found=false
5316 # Loop through the user's path and test for each of PROGNAME-LIST
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5319do
5320 IFS=$as_save_IFS
5321 test -z "$as_dir" && as_dir=.
5322 for ac_prog in grep ggrep; do
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5325 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5326# Check for GNU ac_path_GREP and select it if it is found.
5327 # Check for GNU $ac_path_GREP
5328case `"$ac_path_GREP" --version 2>&1` in
5329*GNU*)
5330 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5331*)
5332 ac_count=0
5333 $as_echo_n 0123456789 >"conftest.in"
5334 while :
5335 do
5336 cat "conftest.in" "conftest.in" >"conftest.tmp"
5337 mv "conftest.tmp" "conftest.in"
5338 cp "conftest.in" "conftest.nl"
5339 $as_echo 'GREP' >> "conftest.nl"
5340 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5341 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5342 as_fn_arith $ac_count + 1 && ac_count=$as_val
5343 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5344 # Best one so far, save it but keep looking for a better one
5345 ac_cv_path_GREP="$ac_path_GREP"
5346 ac_path_GREP_max=$ac_count
5347 fi
5348 # 10*(2^10) chars as input seems more than enough
5349 test $ac_count -gt 10 && break
5350 done
5351 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5352esac
5353
5354 $ac_path_GREP_found && break 3
5355 done
5356 done
5357 done
5358IFS=$as_save_IFS
5359 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005360 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005361 fi
5362else
5363 ac_cv_path_GREP=$GREP
5364fi
5365
5366fi
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5368$as_echo "$ac_cv_path_GREP" >&6; }
5369 GREP="$ac_cv_path_GREP"
5370
5371
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5373$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005374if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005375 $as_echo_n "(cached) " >&6
5376else
5377 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5378 then ac_cv_path_EGREP="$GREP -E"
5379 else
5380 if test -z "$EGREP"; then
5381 ac_path_EGREP_found=false
5382 # Loop through the user's path and test for each of PROGNAME-LIST
5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5385do
5386 IFS=$as_save_IFS
5387 test -z "$as_dir" && as_dir=.
5388 for ac_prog in egrep; do
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5391 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5392# Check for GNU ac_path_EGREP and select it if it is found.
5393 # Check for GNU $ac_path_EGREP
5394case `"$ac_path_EGREP" --version 2>&1` in
5395*GNU*)
5396 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5397*)
5398 ac_count=0
5399 $as_echo_n 0123456789 >"conftest.in"
5400 while :
5401 do
5402 cat "conftest.in" "conftest.in" >"conftest.tmp"
5403 mv "conftest.tmp" "conftest.in"
5404 cp "conftest.in" "conftest.nl"
5405 $as_echo 'EGREP' >> "conftest.nl"
5406 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5408 as_fn_arith $ac_count + 1 && ac_count=$as_val
5409 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5410 # Best one so far, save it but keep looking for a better one
5411 ac_cv_path_EGREP="$ac_path_EGREP"
5412 ac_path_EGREP_max=$ac_count
5413 fi
5414 # 10*(2^10) chars as input seems more than enough
5415 test $ac_count -gt 10 && break
5416 done
5417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5418esac
5419
5420 $ac_path_EGREP_found && break 3
5421 done
5422 done
5423 done
5424IFS=$as_save_IFS
5425 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005426 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005427 fi
5428else
5429 ac_cv_path_EGREP=$EGREP
5430fi
5431
5432 fi
5433fi
5434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5435$as_echo "$ac_cv_path_EGREP" >&6; }
5436 EGREP="$ac_cv_path_EGREP"
5437
5438
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5440$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005441if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005442 $as_echo_n "(cached) " >&6
5443else
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445/* end confdefs.h. */
5446#include <stdlib.h>
5447#include <stdarg.h>
5448#include <string.h>
5449#include <float.h>
5450
5451int
5452main ()
5453{
5454
5455 ;
5456 return 0;
5457}
5458_ACEOF
5459if ac_fn_c_try_compile "$LINENO"; then :
5460 ac_cv_header_stdc=yes
5461else
5462 ac_cv_header_stdc=no
5463fi
5464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465
5466if test $ac_cv_header_stdc = yes; then
5467 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469/* end confdefs.h. */
5470#include <string.h>
5471
5472_ACEOF
5473if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5474 $EGREP "memchr" >/dev/null 2>&1; then :
5475
5476else
5477 ac_cv_header_stdc=no
5478fi
5479rm -f conftest*
5480
5481fi
5482
5483if test $ac_cv_header_stdc = yes; then
5484 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486/* end confdefs.h. */
5487#include <stdlib.h>
5488
5489_ACEOF
5490if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5491 $EGREP "free" >/dev/null 2>&1; then :
5492
5493else
5494 ac_cv_header_stdc=no
5495fi
5496rm -f conftest*
5497
5498fi
5499
5500if test $ac_cv_header_stdc = yes; then
5501 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5502 if test "$cross_compiling" = yes; then :
5503 :
5504else
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506/* end confdefs.h. */
5507#include <ctype.h>
5508#include <stdlib.h>
5509#if ((' ' & 0x0FF) == 0x020)
5510# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5511# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5512#else
5513# define ISLOWER(c) \
5514 (('a' <= (c) && (c) <= 'i') \
5515 || ('j' <= (c) && (c) <= 'r') \
5516 || ('s' <= (c) && (c) <= 'z'))
5517# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5518#endif
5519
5520#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5521int
5522main ()
5523{
5524 int i;
5525 for (i = 0; i < 256; i++)
5526 if (XOR (islower (i), ISLOWER (i))
5527 || toupper (i) != TOUPPER (i))
5528 return 2;
5529 return 0;
5530}
5531_ACEOF
5532if ac_fn_c_try_run "$LINENO"; then :
5533
5534else
5535 ac_cv_header_stdc=no
5536fi
5537rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5538 conftest.$ac_objext conftest.beam conftest.$ac_ext
5539fi
5540
5541fi
5542fi
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5544$as_echo "$ac_cv_header_stdc" >&6; }
5545if test $ac_cv_header_stdc = yes; then
5546
5547$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5548
5549fi
5550
5551# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5552for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5553 inttypes.h stdint.h unistd.h
5554do :
5555 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5556ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5557"
cristy98dddb52010-11-04 00:30:15 +00005558if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005559 cat >>confdefs.h <<_ACEOF
5560#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5561_ACEOF
5562
5563fi
5564
5565done
5566
5567
5568
5569 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00005570if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005571 MINIX=yes
5572else
5573 MINIX=
5574fi
5575
5576
5577 if test "$MINIX" = yes; then
5578
5579$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5580
5581
5582$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5583
5584
5585$as_echo "#define _MINIX 1" >>confdefs.h
5586
5587 fi
5588
5589
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5591$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005592if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005593 $as_echo_n "(cached) " >&6
5594else
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596/* end confdefs.h. */
5597
5598# define __EXTENSIONS__ 1
5599 $ac_includes_default
5600int
5601main ()
5602{
5603
5604 ;
5605 return 0;
5606}
5607_ACEOF
5608if ac_fn_c_try_compile "$LINENO"; then :
5609 ac_cv_safe_to_define___extensions__=yes
5610else
5611 ac_cv_safe_to_define___extensions__=no
5612fi
5613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5614fi
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5616$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5617 test $ac_cv_safe_to_define___extensions__ = yes &&
5618 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5619
5620 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5621
5622 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5623
5624 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5625
5626 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5627
5628
5629
5630# Check for programs
5631ac_ext=c
5632ac_cpp='$CPP $CPPFLAGS'
5633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5635ac_compiler_gnu=$ac_cv_c_compiler_gnu
5636if test -n "$ac_tool_prefix"; then
5637 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5638set dummy ${ac_tool_prefix}gcc; ac_word=$2
5639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5640$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005641if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005642 $as_echo_n "(cached) " >&6
5643else
5644 if test -n "$CC"; then
5645 ac_cv_prog_CC="$CC" # Let the user override the test.
5646else
5647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648for as_dir in $PATH
5649do
5650 IFS=$as_save_IFS
5651 test -z "$as_dir" && as_dir=.
5652 for ac_exec_ext in '' $ac_executable_extensions; do
5653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5654 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5656 break 2
5657 fi
5658done
5659 done
5660IFS=$as_save_IFS
5661
5662fi
5663fi
5664CC=$ac_cv_prog_CC
5665if test -n "$CC"; then
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5667$as_echo "$CC" >&6; }
5668else
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5670$as_echo "no" >&6; }
5671fi
5672
5673
5674fi
5675if test -z "$ac_cv_prog_CC"; then
5676 ac_ct_CC=$CC
5677 # Extract the first word of "gcc", so it can be a program name with args.
5678set dummy gcc; ac_word=$2
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005681if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005682 $as_echo_n "(cached) " >&6
5683else
5684 if test -n "$ac_ct_CC"; then
5685 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5686else
5687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688for as_dir in $PATH
5689do
5690 IFS=$as_save_IFS
5691 test -z "$as_dir" && as_dir=.
5692 for ac_exec_ext in '' $ac_executable_extensions; do
5693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5694 ac_cv_prog_ac_ct_CC="gcc"
5695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696 break 2
5697 fi
5698done
5699 done
5700IFS=$as_save_IFS
5701
5702fi
5703fi
5704ac_ct_CC=$ac_cv_prog_ac_ct_CC
5705if test -n "$ac_ct_CC"; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5707$as_echo "$ac_ct_CC" >&6; }
5708else
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710$as_echo "no" >&6; }
5711fi
5712
5713 if test "x$ac_ct_CC" = x; then
5714 CC=""
5715 else
5716 case $cross_compiling:$ac_tool_warned in
5717yes:)
5718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5720ac_tool_warned=yes ;;
5721esac
5722 CC=$ac_ct_CC
5723 fi
5724else
5725 CC="$ac_cv_prog_CC"
5726fi
5727
5728if test -z "$CC"; then
5729 if test -n "$ac_tool_prefix"; then
5730 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5731set dummy ${ac_tool_prefix}cc; ac_word=$2
5732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005734if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005735 $as_echo_n "(cached) " >&6
5736else
5737 if test -n "$CC"; then
5738 ac_cv_prog_CC="$CC" # Let the user override the test.
5739else
5740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741for as_dir in $PATH
5742do
5743 IFS=$as_save_IFS
5744 test -z "$as_dir" && as_dir=.
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5747 ac_cv_prog_CC="${ac_tool_prefix}cc"
5748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5749 break 2
5750 fi
5751done
5752 done
5753IFS=$as_save_IFS
5754
5755fi
5756fi
5757CC=$ac_cv_prog_CC
5758if test -n "$CC"; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5760$as_echo "$CC" >&6; }
5761else
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763$as_echo "no" >&6; }
5764fi
5765
5766
5767 fi
5768fi
5769if test -z "$CC"; then
5770 # Extract the first word of "cc", so it can be a program name with args.
5771set dummy cc; ac_word=$2
5772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5773$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005774if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005775 $as_echo_n "(cached) " >&6
5776else
5777 if test -n "$CC"; then
5778 ac_cv_prog_CC="$CC" # Let the user override the test.
5779else
5780 ac_prog_rejected=no
5781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782for as_dir in $PATH
5783do
5784 IFS=$as_save_IFS
5785 test -z "$as_dir" && as_dir=.
5786 for ac_exec_ext in '' $ac_executable_extensions; do
5787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5788 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5789 ac_prog_rejected=yes
5790 continue
5791 fi
5792 ac_cv_prog_CC="cc"
5793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5794 break 2
5795 fi
5796done
5797 done
5798IFS=$as_save_IFS
5799
5800if test $ac_prog_rejected = yes; then
5801 # We found a bogon in the path, so make sure we never use it.
5802 set dummy $ac_cv_prog_CC
5803 shift
5804 if test $# != 0; then
5805 # We chose a different compiler from the bogus one.
5806 # However, it has the same basename, so the bogon will be chosen
5807 # first if we set CC to just the basename; use the full file name.
5808 shift
5809 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5810 fi
5811fi
5812fi
5813fi
5814CC=$ac_cv_prog_CC
5815if test -n "$CC"; then
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5817$as_echo "$CC" >&6; }
5818else
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820$as_echo "no" >&6; }
5821fi
5822
5823
5824fi
5825if test -z "$CC"; then
5826 if test -n "$ac_tool_prefix"; then
5827 for ac_prog in cl.exe
5828 do
5829 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5830set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5832$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005833if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005834 $as_echo_n "(cached) " >&6
5835else
5836 if test -n "$CC"; then
5837 ac_cv_prog_CC="$CC" # Let the user override the test.
5838else
5839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840for as_dir in $PATH
5841do
5842 IFS=$as_save_IFS
5843 test -z "$as_dir" && as_dir=.
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5846 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5848 break 2
5849 fi
5850done
5851 done
5852IFS=$as_save_IFS
5853
5854fi
5855fi
5856CC=$ac_cv_prog_CC
5857if test -n "$CC"; then
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5859$as_echo "$CC" >&6; }
5860else
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862$as_echo "no" >&6; }
5863fi
5864
5865
5866 test -n "$CC" && break
5867 done
5868fi
5869if test -z "$CC"; then
5870 ac_ct_CC=$CC
5871 for ac_prog in cl.exe
5872do
5873 # Extract the first word of "$ac_prog", so it can be a program name with args.
5874set dummy $ac_prog; ac_word=$2
5875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005877if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005878 $as_echo_n "(cached) " >&6
5879else
5880 if test -n "$ac_ct_CC"; then
5881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5882else
5883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884for as_dir in $PATH
5885do
5886 IFS=$as_save_IFS
5887 test -z "$as_dir" && as_dir=.
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5890 ac_cv_prog_ac_ct_CC="$ac_prog"
5891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892 break 2
5893 fi
5894done
5895 done
5896IFS=$as_save_IFS
5897
5898fi
5899fi
5900ac_ct_CC=$ac_cv_prog_ac_ct_CC
5901if test -n "$ac_ct_CC"; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5903$as_echo "$ac_ct_CC" >&6; }
5904else
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906$as_echo "no" >&6; }
5907fi
5908
5909
5910 test -n "$ac_ct_CC" && break
5911done
5912
5913 if test "x$ac_ct_CC" = x; then
5914 CC=""
5915 else
5916 case $cross_compiling:$ac_tool_warned in
5917yes:)
5918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5920ac_tool_warned=yes ;;
5921esac
5922 CC=$ac_ct_CC
5923 fi
5924fi
5925
5926fi
5927
5928
5929test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5930$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005931as_fn_error $? "no acceptable C compiler found in \$PATH
5932See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005933
5934# Provide some information about the compiler.
5935$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5936set X $ac_compile
5937ac_compiler=$2
5938for ac_option in --version -v -V -qversion; do
5939 { { ac_try="$ac_compiler $ac_option >&5"
5940case "(($ac_try" in
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5943esac
5944eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5945$as_echo "$ac_try_echo"; } >&5
5946 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5947 ac_status=$?
5948 if test -s conftest.err; then
5949 sed '10a\
5950... rest of stderr output deleted ...
5951 10q' conftest.err >conftest.er1
5952 cat conftest.er1 >&5
5953 fi
5954 rm -f conftest.er1 conftest.err
5955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5956 test $ac_status = 0; }
5957done
5958
5959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5960$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005961if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005962 $as_echo_n "(cached) " >&6
5963else
5964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965/* end confdefs.h. */
5966
5967int
5968main ()
5969{
5970#ifndef __GNUC__
5971 choke me
5972#endif
5973
5974 ;
5975 return 0;
5976}
5977_ACEOF
5978if ac_fn_c_try_compile "$LINENO"; then :
5979 ac_compiler_gnu=yes
5980else
5981 ac_compiler_gnu=no
5982fi
5983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5984ac_cv_c_compiler_gnu=$ac_compiler_gnu
5985
5986fi
5987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5988$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5989if test $ac_compiler_gnu = yes; then
5990 GCC=yes
5991else
5992 GCC=
5993fi
5994ac_test_CFLAGS=${CFLAGS+set}
5995ac_save_CFLAGS=$CFLAGS
5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5997$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005998if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005999 $as_echo_n "(cached) " >&6
6000else
6001 ac_save_c_werror_flag=$ac_c_werror_flag
6002 ac_c_werror_flag=yes
6003 ac_cv_prog_cc_g=no
6004 CFLAGS="-g"
6005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6006/* end confdefs.h. */
6007
6008int
6009main ()
6010{
6011
6012 ;
6013 return 0;
6014}
6015_ACEOF
6016if ac_fn_c_try_compile "$LINENO"; then :
6017 ac_cv_prog_cc_g=yes
6018else
6019 CFLAGS=""
6020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6021/* end confdefs.h. */
6022
6023int
6024main ()
6025{
6026
6027 ;
6028 return 0;
6029}
6030_ACEOF
6031if ac_fn_c_try_compile "$LINENO"; then :
6032
6033else
6034 ac_c_werror_flag=$ac_save_c_werror_flag
6035 CFLAGS="-g"
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037/* end confdefs.h. */
6038
6039int
6040main ()
6041{
6042
6043 ;
6044 return 0;
6045}
6046_ACEOF
6047if ac_fn_c_try_compile "$LINENO"; then :
6048 ac_cv_prog_cc_g=yes
6049fi
6050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051fi
6052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053fi
6054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055 ac_c_werror_flag=$ac_save_c_werror_flag
6056fi
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6058$as_echo "$ac_cv_prog_cc_g" >&6; }
6059if test "$ac_test_CFLAGS" = set; then
6060 CFLAGS=$ac_save_CFLAGS
6061elif test $ac_cv_prog_cc_g = yes; then
6062 if test "$GCC" = yes; then
6063 CFLAGS="-g -O2"
6064 else
6065 CFLAGS="-g"
6066 fi
6067else
6068 if test "$GCC" = yes; then
6069 CFLAGS="-O2"
6070 else
6071 CFLAGS=
6072 fi
6073fi
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6075$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006076if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006077 $as_echo_n "(cached) " >&6
6078else
6079 ac_cv_prog_cc_c89=no
6080ac_save_CC=$CC
6081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082/* end confdefs.h. */
6083#include <stdarg.h>
6084#include <stdio.h>
6085#include <sys/types.h>
6086#include <sys/stat.h>
6087/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6088struct buf { int x; };
6089FILE * (*rcsopen) (struct buf *, struct stat *, int);
6090static char *e (p, i)
6091 char **p;
6092 int i;
6093{
6094 return p[i];
6095}
6096static char *f (char * (*g) (char **, int), char **p, ...)
6097{
6098 char *s;
6099 va_list v;
6100 va_start (v,p);
6101 s = g (p, va_arg (v,int));
6102 va_end (v);
6103 return s;
6104}
6105
6106/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6107 function prototypes and stuff, but not '\xHH' hex character constants.
6108 These don't provoke an error unfortunately, instead are silently treated
6109 as 'x'. The following induces an error, until -std is added to get
6110 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6111 array size at least. It's necessary to write '\x00'==0 to get something
6112 that's true only with -std. */
6113int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6114
6115/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6116 inside strings and character constants. */
6117#define FOO(x) 'x'
6118int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6119
6120int test (int i, double x);
6121struct s1 {int (*f) (int a);};
6122struct s2 {int (*f) (double a);};
6123int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6124int argc;
6125char **argv;
6126int
6127main ()
6128{
6129return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6130 ;
6131 return 0;
6132}
6133_ACEOF
6134for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6135 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6136do
6137 CC="$ac_save_CC $ac_arg"
6138 if ac_fn_c_try_compile "$LINENO"; then :
6139 ac_cv_prog_cc_c89=$ac_arg
6140fi
6141rm -f core conftest.err conftest.$ac_objext
6142 test "x$ac_cv_prog_cc_c89" != "xno" && break
6143done
6144rm -f conftest.$ac_ext
6145CC=$ac_save_CC
6146
6147fi
6148# AC_CACHE_VAL
6149case "x$ac_cv_prog_cc_c89" in
6150 x)
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6152$as_echo "none needed" >&6; } ;;
6153 xno)
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6155$as_echo "unsupported" >&6; } ;;
6156 *)
6157 CC="$CC $ac_cv_prog_cc_c89"
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6159$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6160esac
6161if test "x$ac_cv_prog_cc_c89" != xno; then :
6162
6163fi
6164
6165ac_ext=c
6166ac_cpp='$CPP $CPPFLAGS'
6167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6169ac_compiler_gnu=$ac_cv_c_compiler_gnu
6170
cristy73bd4a52010-10-05 11:24:23 +00006171depcc="$CC" am_compiler_list=
6172
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6174$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006175if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006176 $as_echo_n "(cached) " >&6
6177else
6178 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6179 # We make a subdir and do the tests there. Otherwise we can end up
6180 # making bogus files that we don't know about and never remove. For
6181 # instance it was reported that on HP-UX the gcc test will end up
6182 # making a dummy file named `D' -- because `-MD' means `put the output
6183 # in D'.
6184 mkdir conftest.dir
6185 # Copy depcomp to subdir because otherwise we won't find it if we're
6186 # using a relative directory.
6187 cp "$am_depcomp" conftest.dir
6188 cd conftest.dir
6189 # We will build objects and dependencies in a subdirectory because
6190 # it helps to detect inapplicable dependency modes. For instance
6191 # both Tru64's cc and ICC support -MD to output dependencies as a
6192 # side effect of compilation, but ICC will put the dependencies in
6193 # the current directory while Tru64 will put them in the object
6194 # directory.
6195 mkdir sub
6196
6197 am_cv_CC_dependencies_compiler_type=none
6198 if test "$am_compiler_list" = ""; then
6199 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6200 fi
6201 am__universal=false
6202 case " $depcc " in #(
6203 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6204 esac
6205
6206 for depmode in $am_compiler_list; do
6207 # Setup a source with many dependencies, because some compilers
6208 # like to wrap large dependency lists on column 80 (with \), and
6209 # we should not choose a depcomp mode which is confused by this.
6210 #
6211 # We need to recreate these files for each test, as the compiler may
6212 # overwrite some of them when testing with obscure command lines.
6213 # This happens at least with the AIX C compiler.
6214 : > sub/conftest.c
6215 for i in 1 2 3 4 5 6; do
6216 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6217 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6218 # Solaris 8's {/usr,}/bin/sh.
6219 touch sub/conftst$i.h
6220 done
6221 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6222
6223 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6224 # mode. It turns out that the SunPro C++ compiler does not properly
6225 # handle `-M -o', and we need to detect this. Also, some Intel
6226 # versions had trouble with output in subdirs
6227 am__obj=sub/conftest.${OBJEXT-o}
6228 am__minus_obj="-o $am__obj"
6229 case $depmode in
6230 gcc)
6231 # This depmode causes a compiler race in universal mode.
6232 test "$am__universal" = false || continue
6233 ;;
6234 nosideeffect)
6235 # after this tag, mechanisms are not by side-effect, so they'll
6236 # only be used when explicitly requested
6237 if test "x$enable_dependency_tracking" = xyes; then
6238 continue
6239 else
6240 break
6241 fi
6242 ;;
6243 msvisualcpp | msvcmsys)
6244 # This compiler won't grok `-c -o', but also, the minuso test has
6245 # not run yet. These depmodes are late enough in the game, and
6246 # so weak that their functioning should not be impacted.
6247 am__obj=conftest.${OBJEXT-o}
6248 am__minus_obj=
6249 ;;
6250 none) break ;;
6251 esac
6252 if depmode=$depmode \
6253 source=sub/conftest.c object=$am__obj \
6254 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6255 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6256 >/dev/null 2>conftest.err &&
6257 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6258 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6259 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6260 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6261 # icc doesn't choke on unknown options, it will just issue warnings
6262 # or remarks (even with -Werror). So we grep stderr for any message
6263 # that says an option was ignored or not supported.
6264 # When given -MP, icc 7.0 and 7.1 complain thusly:
6265 # icc: Command line warning: ignoring option '-M'; no argument required
6266 # The diagnosis changed in icc 8.0:
6267 # icc: Command line remark: option '-MP' not supported
6268 if (grep 'ignoring option' conftest.err ||
6269 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6270 am_cv_CC_dependencies_compiler_type=$depmode
6271 break
6272 fi
6273 fi
6274 done
6275
6276 cd ..
6277 rm -rf conftest.dir
6278else
6279 am_cv_CC_dependencies_compiler_type=none
6280fi
6281
6282fi
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6284$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6285CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6286
6287 if
6288 test "x$enable_dependency_tracking" != xno \
6289 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6290 am__fastdepCC_TRUE=
6291 am__fastdepCC_FALSE='#'
6292else
6293 am__fastdepCC_TRUE='#'
6294 am__fastdepCC_FALSE=
6295fi
6296
6297
cristy95646052009-11-28 23:05:30 +00006298ac_ext=cpp
6299ac_cpp='$CXXCPP $CPPFLAGS'
6300ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6301ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6302ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6303if test -z "$CXX"; then
6304 if test -n "$CCC"; then
6305 CXX=$CCC
6306 else
6307 if test -n "$ac_tool_prefix"; then
6308 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6309 do
6310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6311set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6313$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006314if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006315 $as_echo_n "(cached) " >&6
6316else
6317 if test -n "$CXX"; then
6318 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6319else
6320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321for as_dir in $PATH
6322do
6323 IFS=$as_save_IFS
6324 test -z "$as_dir" && as_dir=.
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6327 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6329 break 2
6330 fi
6331done
6332 done
6333IFS=$as_save_IFS
6334
6335fi
6336fi
6337CXX=$ac_cv_prog_CXX
6338if test -n "$CXX"; then
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6340$as_echo "$CXX" >&6; }
6341else
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6343$as_echo "no" >&6; }
6344fi
6345
6346
6347 test -n "$CXX" && break
6348 done
6349fi
6350if test -z "$CXX"; then
6351 ac_ct_CXX=$CXX
6352 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6353do
6354 # Extract the first word of "$ac_prog", so it can be a program name with args.
6355set dummy $ac_prog; ac_word=$2
6356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006358if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006359 $as_echo_n "(cached) " >&6
6360else
6361 if test -n "$ac_ct_CXX"; then
6362 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6363else
6364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365for as_dir in $PATH
6366do
6367 IFS=$as_save_IFS
6368 test -z "$as_dir" && as_dir=.
6369 for ac_exec_ext in '' $ac_executable_extensions; do
6370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6371 ac_cv_prog_ac_ct_CXX="$ac_prog"
6372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6373 break 2
6374 fi
6375done
6376 done
6377IFS=$as_save_IFS
6378
6379fi
6380fi
6381ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6382if test -n "$ac_ct_CXX"; then
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6384$as_echo "$ac_ct_CXX" >&6; }
6385else
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387$as_echo "no" >&6; }
6388fi
6389
6390
6391 test -n "$ac_ct_CXX" && break
6392done
6393
6394 if test "x$ac_ct_CXX" = x; then
6395 CXX="g++"
6396 else
6397 case $cross_compiling:$ac_tool_warned in
6398yes:)
6399{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6401ac_tool_warned=yes ;;
6402esac
6403 CXX=$ac_ct_CXX
6404 fi
6405fi
6406
6407 fi
6408fi
6409# Provide some information about the compiler.
6410$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6411set X $ac_compile
6412ac_compiler=$2
6413for ac_option in --version -v -V -qversion; do
6414 { { ac_try="$ac_compiler $ac_option >&5"
6415case "(($ac_try" in
6416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417 *) ac_try_echo=$ac_try;;
6418esac
6419eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6420$as_echo "$ac_try_echo"; } >&5
6421 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6422 ac_status=$?
6423 if test -s conftest.err; then
6424 sed '10a\
6425... rest of stderr output deleted ...
6426 10q' conftest.err >conftest.er1
6427 cat conftest.er1 >&5
6428 fi
6429 rm -f conftest.er1 conftest.err
6430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6431 test $ac_status = 0; }
6432done
6433
6434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6435$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006436if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006437 $as_echo_n "(cached) " >&6
6438else
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440/* end confdefs.h. */
6441
6442int
6443main ()
6444{
6445#ifndef __GNUC__
6446 choke me
6447#endif
6448
6449 ;
6450 return 0;
6451}
6452_ACEOF
6453if ac_fn_cxx_try_compile "$LINENO"; then :
6454 ac_compiler_gnu=yes
6455else
6456 ac_compiler_gnu=no
6457fi
6458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6459ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6460
6461fi
6462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6463$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6464if test $ac_compiler_gnu = yes; then
6465 GXX=yes
6466else
6467 GXX=
6468fi
6469ac_test_CXXFLAGS=${CXXFLAGS+set}
6470ac_save_CXXFLAGS=$CXXFLAGS
6471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6472$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006473if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006474 $as_echo_n "(cached) " >&6
6475else
6476 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6477 ac_cxx_werror_flag=yes
6478 ac_cv_prog_cxx_g=no
6479 CXXFLAGS="-g"
6480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6481/* end confdefs.h. */
6482
6483int
6484main ()
6485{
6486
6487 ;
6488 return 0;
6489}
6490_ACEOF
6491if ac_fn_cxx_try_compile "$LINENO"; then :
6492 ac_cv_prog_cxx_g=yes
6493else
6494 CXXFLAGS=""
6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496/* end confdefs.h. */
6497
6498int
6499main ()
6500{
6501
6502 ;
6503 return 0;
6504}
6505_ACEOF
6506if ac_fn_cxx_try_compile "$LINENO"; then :
6507
6508else
6509 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6510 CXXFLAGS="-g"
6511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512/* end confdefs.h. */
6513
6514int
6515main ()
6516{
6517
6518 ;
6519 return 0;
6520}
6521_ACEOF
6522if ac_fn_cxx_try_compile "$LINENO"; then :
6523 ac_cv_prog_cxx_g=yes
6524fi
6525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6526fi
6527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528fi
6529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6531fi
6532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6533$as_echo "$ac_cv_prog_cxx_g" >&6; }
6534if test "$ac_test_CXXFLAGS" = set; then
6535 CXXFLAGS=$ac_save_CXXFLAGS
6536elif test $ac_cv_prog_cxx_g = yes; then
6537 if test "$GXX" = yes; then
6538 CXXFLAGS="-g -O2"
6539 else
6540 CXXFLAGS="-g"
6541 fi
6542else
6543 if test "$GXX" = yes; then
6544 CXXFLAGS="-O2"
6545 else
6546 CXXFLAGS=
6547 fi
6548fi
6549ac_ext=c
6550ac_cpp='$CPP $CPPFLAGS'
6551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6553ac_compiler_gnu=$ac_cv_c_compiler_gnu
6554
cristy73bd4a52010-10-05 11:24:23 +00006555depcc="$CXX" am_compiler_list=
6556
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6558$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006559if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006560 $as_echo_n "(cached) " >&6
6561else
6562 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6563 # We make a subdir and do the tests there. Otherwise we can end up
6564 # making bogus files that we don't know about and never remove. For
6565 # instance it was reported that on HP-UX the gcc test will end up
6566 # making a dummy file named `D' -- because `-MD' means `put the output
6567 # in D'.
6568 mkdir conftest.dir
6569 # Copy depcomp to subdir because otherwise we won't find it if we're
6570 # using a relative directory.
6571 cp "$am_depcomp" conftest.dir
6572 cd conftest.dir
6573 # We will build objects and dependencies in a subdirectory because
6574 # it helps to detect inapplicable dependency modes. For instance
6575 # both Tru64's cc and ICC support -MD to output dependencies as a
6576 # side effect of compilation, but ICC will put the dependencies in
6577 # the current directory while Tru64 will put them in the object
6578 # directory.
6579 mkdir sub
6580
6581 am_cv_CXX_dependencies_compiler_type=none
6582 if test "$am_compiler_list" = ""; then
6583 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6584 fi
6585 am__universal=false
6586 case " $depcc " in #(
6587 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6588 esac
6589
6590 for depmode in $am_compiler_list; do
6591 # Setup a source with many dependencies, because some compilers
6592 # like to wrap large dependency lists on column 80 (with \), and
6593 # we should not choose a depcomp mode which is confused by this.
6594 #
6595 # We need to recreate these files for each test, as the compiler may
6596 # overwrite some of them when testing with obscure command lines.
6597 # This happens at least with the AIX C compiler.
6598 : > sub/conftest.c
6599 for i in 1 2 3 4 5 6; do
6600 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6601 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6602 # Solaris 8's {/usr,}/bin/sh.
6603 touch sub/conftst$i.h
6604 done
6605 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6606
6607 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6608 # mode. It turns out that the SunPro C++ compiler does not properly
6609 # handle `-M -o', and we need to detect this. Also, some Intel
6610 # versions had trouble with output in subdirs
6611 am__obj=sub/conftest.${OBJEXT-o}
6612 am__minus_obj="-o $am__obj"
6613 case $depmode in
6614 gcc)
6615 # This depmode causes a compiler race in universal mode.
6616 test "$am__universal" = false || continue
6617 ;;
6618 nosideeffect)
6619 # after this tag, mechanisms are not by side-effect, so they'll
6620 # only be used when explicitly requested
6621 if test "x$enable_dependency_tracking" = xyes; then
6622 continue
6623 else
6624 break
6625 fi
6626 ;;
6627 msvisualcpp | msvcmsys)
6628 # This compiler won't grok `-c -o', but also, the minuso test has
6629 # not run yet. These depmodes are late enough in the game, and
6630 # so weak that their functioning should not be impacted.
6631 am__obj=conftest.${OBJEXT-o}
6632 am__minus_obj=
6633 ;;
6634 none) break ;;
6635 esac
6636 if depmode=$depmode \
6637 source=sub/conftest.c object=$am__obj \
6638 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6639 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6640 >/dev/null 2>conftest.err &&
6641 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6642 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6643 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6644 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6645 # icc doesn't choke on unknown options, it will just issue warnings
6646 # or remarks (even with -Werror). So we grep stderr for any message
6647 # that says an option was ignored or not supported.
6648 # When given -MP, icc 7.0 and 7.1 complain thusly:
6649 # icc: Command line warning: ignoring option '-M'; no argument required
6650 # The diagnosis changed in icc 8.0:
6651 # icc: Command line remark: option '-MP' not supported
6652 if (grep 'ignoring option' conftest.err ||
6653 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6654 am_cv_CXX_dependencies_compiler_type=$depmode
6655 break
6656 fi
6657 fi
6658 done
6659
6660 cd ..
6661 rm -rf conftest.dir
6662else
6663 am_cv_CXX_dependencies_compiler_type=none
6664fi
6665
6666fi
6667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6668$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6669CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6670
6671 if
6672 test "x$enable_dependency_tracking" != xno \
6673 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6674 am__fastdepCXX_TRUE=
6675 am__fastdepCXX_FALSE='#'
6676else
6677 am__fastdepCXX_TRUE='#'
6678 am__fastdepCXX_FALSE=
6679fi
6680
6681
cristy8b350f62009-11-15 23:12:43 +00006682 case $ac_cv_prog_cc_stdc in #(
6683 no) :
6684 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6685 *) :
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006687$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006688if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006689 $as_echo_n "(cached) " >&6
6690else
6691 ac_cv_prog_cc_c99=no
6692ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006694/* end confdefs.h. */
6695#include <stdarg.h>
6696#include <stdbool.h>
6697#include <stdlib.h>
6698#include <wchar.h>
6699#include <stdio.h>
6700
6701// Check varargs macros. These examples are taken from C99 6.10.3.5.
6702#define debug(...) fprintf (stderr, __VA_ARGS__)
6703#define showlist(...) puts (#__VA_ARGS__)
6704#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6705static void
6706test_varargs_macros (void)
6707{
6708 int x = 1234;
6709 int y = 5678;
6710 debug ("Flag");
6711 debug ("X = %d\n", x);
6712 showlist (The first, second, and third items.);
6713 report (x>y, "x is %d but y is %d", x, y);
6714}
6715
6716// Check long long types.
6717#define BIG64 18446744073709551615ull
6718#define BIG32 4294967295ul
6719#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6720#if !BIG_OK
6721 your preprocessor is broken;
6722#endif
6723#if BIG_OK
6724#else
6725 your preprocessor is broken;
6726#endif
6727static long long int bignum = -9223372036854775807LL;
6728static unsigned long long int ubignum = BIG64;
6729
6730struct incomplete_array
6731{
6732 int datasize;
6733 double data[];
6734};
6735
6736struct named_init {
6737 int number;
6738 const wchar_t *name;
6739 double average;
6740};
6741
6742typedef const char *ccp;
6743
6744static inline int
6745test_restrict (ccp restrict text)
6746{
6747 // See if C++-style comments work.
6748 // Iterate through items via the restricted pointer.
6749 // Also check for declarations in for loops.
6750 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6751 continue;
6752 return 0;
6753}
6754
6755// Check varargs and va_copy.
6756static void
6757test_varargs (const char *format, ...)
6758{
6759 va_list args;
6760 va_start (args, format);
6761 va_list args_copy;
6762 va_copy (args_copy, args);
6763
6764 const char *str;
6765 int number;
6766 float fnumber;
6767
6768 while (*format)
6769 {
6770 switch (*format++)
6771 {
6772 case 's': // string
6773 str = va_arg (args_copy, const char *);
6774 break;
6775 case 'd': // int
6776 number = va_arg (args_copy, int);
6777 break;
6778 case 'f': // float
6779 fnumber = va_arg (args_copy, double);
6780 break;
6781 default:
6782 break;
6783 }
6784 }
6785 va_end (args_copy);
6786 va_end (args);
6787}
6788
6789int
6790main ()
6791{
6792
6793 // Check bool.
6794 _Bool success = false;
6795
6796 // Check restrict.
6797 if (test_restrict ("String literal") == 0)
6798 success = true;
6799 char *restrict newvar = "Another string";
6800
6801 // Check varargs.
6802 test_varargs ("s, d' f .", "string", 65, 34.234);
6803 test_varargs_macros ();
6804
6805 // Check flexible array members.
6806 struct incomplete_array *ia =
6807 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6808 ia->datasize = 10;
6809 for (int i = 0; i < ia->datasize; ++i)
6810 ia->data[i] = i * 1.234;
6811
6812 // Check named initializers.
6813 struct named_init ni = {
6814 .number = 34,
6815 .name = L"Test wide string",
6816 .average = 543.34343,
6817 };
6818
6819 ni.number = 58;
6820
6821 int dynamic_array[ni.number];
6822 dynamic_array[ni.number - 1] = 543;
6823
6824 // work around unused variable warnings
6825 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6826 || dynamic_array[ni.number - 1] != 543);
6827
6828 ;
6829 return 0;
6830}
6831_ACEOF
6832for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6833do
6834 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006835 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006836 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006837fi
cristy3ed852e2009-09-05 21:47:34 +00006838rm -f core conftest.err conftest.$ac_objext
6839 test "x$ac_cv_prog_cc_c99" != "xno" && break
6840done
6841rm -f conftest.$ac_ext
6842CC=$ac_save_CC
6843
6844fi
6845# AC_CACHE_VAL
6846case "x$ac_cv_prog_cc_c99" in
6847 x)
cristy8b350f62009-11-15 23:12:43 +00006848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006849$as_echo "none needed" >&6; } ;;
6850 xno)
cristy8b350f62009-11-15 23:12:43 +00006851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006852$as_echo "unsupported" >&6; } ;;
6853 *)
6854 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006856$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6857esac
cristy8b350f62009-11-15 23:12:43 +00006858if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006859 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6860else
cristy8b350f62009-11-15 23:12:43 +00006861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006862$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006863if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006864 $as_echo_n "(cached) " >&6
6865else
6866 ac_cv_prog_cc_c89=no
6867ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006869/* end confdefs.h. */
6870#include <stdarg.h>
6871#include <stdio.h>
6872#include <sys/types.h>
6873#include <sys/stat.h>
6874/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6875struct buf { int x; };
6876FILE * (*rcsopen) (struct buf *, struct stat *, int);
6877static char *e (p, i)
6878 char **p;
6879 int i;
6880{
6881 return p[i];
6882}
6883static char *f (char * (*g) (char **, int), char **p, ...)
6884{
6885 char *s;
6886 va_list v;
6887 va_start (v,p);
6888 s = g (p, va_arg (v,int));
6889 va_end (v);
6890 return s;
6891}
6892
6893/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6894 function prototypes and stuff, but not '\xHH' hex character constants.
6895 These don't provoke an error unfortunately, instead are silently treated
6896 as 'x'. The following induces an error, until -std is added to get
6897 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6898 array size at least. It's necessary to write '\x00'==0 to get something
6899 that's true only with -std. */
6900int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6901
6902/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6903 inside strings and character constants. */
6904#define FOO(x) 'x'
6905int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6906
6907int test (int i, double x);
6908struct s1 {int (*f) (int a);};
6909struct s2 {int (*f) (double a);};
6910int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6911int argc;
6912char **argv;
6913int
6914main ()
6915{
6916return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6917 ;
6918 return 0;
6919}
6920_ACEOF
6921for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6922 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6923do
6924 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006925 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006926 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006927fi
cristy3ed852e2009-09-05 21:47:34 +00006928rm -f core conftest.err conftest.$ac_objext
6929 test "x$ac_cv_prog_cc_c89" != "xno" && break
6930done
6931rm -f conftest.$ac_ext
6932CC=$ac_save_CC
6933
6934fi
6935# AC_CACHE_VAL
6936case "x$ac_cv_prog_cc_c89" in
6937 x)
cristy8b350f62009-11-15 23:12:43 +00006938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006939$as_echo "none needed" >&6; } ;;
6940 xno)
cristy8b350f62009-11-15 23:12:43 +00006941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006942$as_echo "unsupported" >&6; } ;;
6943 *)
6944 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006946$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6947esac
cristy8b350f62009-11-15 23:12:43 +00006948if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006949 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6950else
6951 ac_cv_prog_cc_stdc=no
6952fi
6953
cristy3ed852e2009-09-05 21:47:34 +00006954fi
cristy3ed852e2009-09-05 21:47:34 +00006955 ;;
6956esac
cristy8b350f62009-11-15 23:12:43 +00006957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006958$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006959 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006960 $as_echo_n "(cached) " >&6
6961fi
6962
cristy8b350f62009-11-15 23:12:43 +00006963 case $ac_cv_prog_cc_stdc in #(
6964 no) :
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6966$as_echo "unsupported" >&6; } ;; #(
6967 '') :
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6969$as_echo "none needed" >&6; } ;; #(
6970 *) :
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006972$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6973esac
6974
cristy3ed852e2009-09-05 21:47:34 +00006975ac_ext=c
6976ac_cpp='$CPP $CPPFLAGS'
6977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6979ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006981$as_echo_n "checking how to run the C preprocessor... " >&6; }
6982# On Suns, sometimes $CPP names a directory.
6983if test -n "$CPP" && test -d "$CPP"; then
6984 CPP=
6985fi
6986if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00006987 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006988 $as_echo_n "(cached) " >&6
6989else
6990 # Double quotes because CPP needs to be expanded
6991 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6992 do
6993 ac_preproc_ok=false
6994for ac_c_preproc_warn_flag in '' yes
6995do
6996 # Use a header file that comes with gcc, so configuring glibc
6997 # with a fresh cross-compiler works.
6998 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6999 # <limits.h> exists even on freestanding compilers.
7000 # On the NeXT, cc -E runs the code through the compiler's parser,
7001 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007003/* end confdefs.h. */
7004#ifdef __STDC__
7005# include <limits.h>
7006#else
7007# include <assert.h>
7008#endif
7009 Syntax error
7010_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007011if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007012
cristy8b350f62009-11-15 23:12:43 +00007013else
cristy3ed852e2009-09-05 21:47:34 +00007014 # Broken: fails on valid input.
7015continue
7016fi
cristyda16f162011-02-19 23:52:17 +00007017rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007018
7019 # OK, works on sane cases. Now check whether nonexistent headers
7020 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007022/* end confdefs.h. */
7023#include <ac_nonexistent.h>
7024_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007025if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007026 # Broken: success on invalid input.
7027continue
7028else
cristy3ed852e2009-09-05 21:47:34 +00007029 # Passes both tests.
7030ac_preproc_ok=:
7031break
7032fi
cristyda16f162011-02-19 23:52:17 +00007033rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007034
7035done
7036# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007037rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007038if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007039 break
7040fi
7041
7042 done
7043 ac_cv_prog_CPP=$CPP
7044
7045fi
7046 CPP=$ac_cv_prog_CPP
7047else
7048 ac_cv_prog_CPP=$CPP
7049fi
cristy8b350f62009-11-15 23:12:43 +00007050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007051$as_echo "$CPP" >&6; }
7052ac_preproc_ok=false
7053for ac_c_preproc_warn_flag in '' yes
7054do
7055 # Use a header file that comes with gcc, so configuring glibc
7056 # with a fresh cross-compiler works.
7057 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7058 # <limits.h> exists even on freestanding compilers.
7059 # On the NeXT, cc -E runs the code through the compiler's parser,
7060 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007062/* end confdefs.h. */
7063#ifdef __STDC__
7064# include <limits.h>
7065#else
7066# include <assert.h>
7067#endif
7068 Syntax error
7069_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007070if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007071
cristy8b350f62009-11-15 23:12:43 +00007072else
cristy3ed852e2009-09-05 21:47:34 +00007073 # Broken: fails on valid input.
7074continue
7075fi
cristyda16f162011-02-19 23:52:17 +00007076rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007077
7078 # OK, works on sane cases. Now check whether nonexistent headers
7079 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007081/* end confdefs.h. */
7082#include <ac_nonexistent.h>
7083_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007084if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007085 # Broken: success on invalid input.
7086continue
7087else
cristy3ed852e2009-09-05 21:47:34 +00007088 # Passes both tests.
7089ac_preproc_ok=:
7090break
7091fi
cristyda16f162011-02-19 23:52:17 +00007092rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007093
7094done
7095# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007096rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007097if $ac_preproc_ok; then :
7098
cristy3ed852e2009-09-05 21:47:34 +00007099else
cristy8b350f62009-11-15 23:12:43 +00007100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007102as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7103See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007104fi
7105
7106ac_ext=c
7107ac_cpp='$CPP $CPPFLAGS'
7108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7110ac_compiler_gnu=$ac_cv_c_compiler_gnu
7111
cristy73bd4a52010-10-05 11:24:23 +00007112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7113$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007114if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007115 $as_echo_n "(cached) " >&6
7116else
7117 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7118 for ac_i in 1 2 3 4 5 6 7; do
7119 ac_script="$ac_script$as_nl$ac_script"
7120 done
7121 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7122 { ac_script=; unset ac_script;}
7123 if test -z "$SED"; then
7124 ac_path_SED_found=false
7125 # Loop through the user's path and test for each of PROGNAME-LIST
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127for as_dir in $PATH
7128do
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
7131 for ac_prog in sed gsed; do
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7134 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7135# Check for GNU ac_path_SED and select it if it is found.
7136 # Check for GNU $ac_path_SED
7137case `"$ac_path_SED" --version 2>&1` in
7138*GNU*)
7139 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7140*)
7141 ac_count=0
7142 $as_echo_n 0123456789 >"conftest.in"
7143 while :
7144 do
7145 cat "conftest.in" "conftest.in" >"conftest.tmp"
7146 mv "conftest.tmp" "conftest.in"
7147 cp "conftest.in" "conftest.nl"
7148 $as_echo '' >> "conftest.nl"
7149 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7150 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7151 as_fn_arith $ac_count + 1 && ac_count=$as_val
7152 if test $ac_count -gt ${ac_path_SED_max-0}; then
7153 # Best one so far, save it but keep looking for a better one
7154 ac_cv_path_SED="$ac_path_SED"
7155 ac_path_SED_max=$ac_count
7156 fi
7157 # 10*(2^10) chars as input seems more than enough
7158 test $ac_count -gt 10 && break
7159 done
7160 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7161esac
7162
7163 $ac_path_SED_found && break 3
7164 done
7165 done
7166 done
7167IFS=$as_save_IFS
7168 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007169 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007170 fi
7171else
7172 ac_cv_path_SED=$SED
7173fi
7174
7175fi
7176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7177$as_echo "$ac_cv_path_SED" >&6; }
7178 SED="$ac_cv_path_SED"
7179 rm -f conftest.sed
7180
7181test -z "$SED" && SED=sed
7182Xsed="$SED -e 1s/^X//"
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7195$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007196if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007197 $as_echo_n "(cached) " >&6
7198else
7199 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7200 then ac_cv_path_FGREP="$GREP -F"
7201 else
7202 if test -z "$FGREP"; then
7203 ac_path_FGREP_found=false
7204 # Loop through the user's path and test for each of PROGNAME-LIST
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7207do
7208 IFS=$as_save_IFS
7209 test -z "$as_dir" && as_dir=.
7210 for ac_prog in fgrep; do
7211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7213 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7214# Check for GNU ac_path_FGREP and select it if it is found.
7215 # Check for GNU $ac_path_FGREP
7216case `"$ac_path_FGREP" --version 2>&1` in
7217*GNU*)
7218 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7219*)
7220 ac_count=0
7221 $as_echo_n 0123456789 >"conftest.in"
7222 while :
7223 do
7224 cat "conftest.in" "conftest.in" >"conftest.tmp"
7225 mv "conftest.tmp" "conftest.in"
7226 cp "conftest.in" "conftest.nl"
7227 $as_echo 'FGREP' >> "conftest.nl"
7228 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7229 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7230 as_fn_arith $ac_count + 1 && ac_count=$as_val
7231 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7232 # Best one so far, save it but keep looking for a better one
7233 ac_cv_path_FGREP="$ac_path_FGREP"
7234 ac_path_FGREP_max=$ac_count
7235 fi
7236 # 10*(2^10) chars as input seems more than enough
7237 test $ac_count -gt 10 && break
7238 done
7239 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7240esac
7241
7242 $ac_path_FGREP_found && break 3
7243 done
7244 done
7245 done
7246IFS=$as_save_IFS
7247 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007248 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007249 fi
7250else
7251 ac_cv_path_FGREP=$FGREP
7252fi
7253
7254 fi
7255fi
7256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7257$as_echo "$ac_cv_path_FGREP" >&6; }
7258 FGREP="$ac_cv_path_FGREP"
7259
7260
7261test -z "$GREP" && GREP=grep
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
cristy0c60a692010-11-04 01:09:47 +00007279ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7280ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7281ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7282
7283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7284$as_echo_n "checking how to print strings... " >&6; }
7285# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007286if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007287 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7288 ECHO='print -r --'
7289elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7290 ECHO='printf %s\n'
7291else
7292 # Use this function as a fallback that always works.
7293 func_fallback_echo ()
7294 {
7295 eval 'cat <<_LTECHO_EOF
7296$1
7297_LTECHO_EOF'
7298 }
7299 ECHO='func_fallback_echo'
7300fi
7301
7302# func_echo_all arg...
7303# Invoke $ECHO with all args, space-separated.
7304func_echo_all ()
7305{
7306 $ECHO ""
7307}
7308
7309case "$ECHO" in
7310 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7311$as_echo "printf" >&6; } ;;
7312 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7313$as_echo "print -r" >&6; } ;;
7314 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7315$as_echo "cat" >&6; } ;;
7316esac
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
cristy73bd4a52010-10-05 11:24:23 +00007331
7332
7333# Check whether --with-gnu-ld was given.
7334if test "${with_gnu_ld+set}" = set; then :
7335 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7336else
7337 with_gnu_ld=no
7338fi
7339
7340ac_prog=ld
7341if test "$GCC" = yes; then
7342 # Check if gcc -print-prog-name=ld gives a path.
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7344$as_echo_n "checking for ld used by $CC... " >&6; }
7345 case $host in
7346 *-*-mingw*)
7347 # gcc leaves a trailing carriage return which upsets mingw
7348 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7349 *)
7350 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7351 esac
7352 case $ac_prog in
7353 # Accept absolute paths.
7354 [\\/]* | ?:[\\/]*)
7355 re_direlt='/[^/][^/]*/\.\./'
7356 # Canonicalize the pathname of ld
7357 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7358 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7359 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7360 done
7361 test -z "$LD" && LD="$ac_prog"
7362 ;;
7363 "")
7364 # If it fails, then pretend we aren't using GCC.
7365 ac_prog=ld
7366 ;;
7367 *)
7368 # If it is relative, then search for the first ld in PATH.
7369 with_gnu_ld=unknown
7370 ;;
7371 esac
7372elif test "$with_gnu_ld" = yes; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7374$as_echo_n "checking for GNU ld... " >&6; }
7375else
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7377$as_echo_n "checking for non-GNU ld... " >&6; }
7378fi
cristyda16f162011-02-19 23:52:17 +00007379if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007380 $as_echo_n "(cached) " >&6
7381else
7382 if test -z "$LD"; then
7383 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7384 for ac_dir in $PATH; do
7385 IFS="$lt_save_ifs"
7386 test -z "$ac_dir" && ac_dir=.
7387 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7388 lt_cv_path_LD="$ac_dir/$ac_prog"
7389 # Check to see if the program is GNU ld. I'd rather use --version,
7390 # but apparently some variants of GNU ld only accept -v.
7391 # Break only if it was the GNU/non-GNU ld that we prefer.
7392 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7393 *GNU* | *'with BFD'*)
7394 test "$with_gnu_ld" != no && break
7395 ;;
7396 *)
7397 test "$with_gnu_ld" != yes && break
7398 ;;
7399 esac
7400 fi
7401 done
7402 IFS="$lt_save_ifs"
7403else
7404 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7405fi
7406fi
7407
7408LD="$lt_cv_path_LD"
7409if test -n "$LD"; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7411$as_echo "$LD" >&6; }
7412else
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414$as_echo "no" >&6; }
7415fi
cristy98dddb52010-11-04 00:30:15 +00007416test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7418$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007419if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007420 $as_echo_n "(cached) " >&6
7421else
7422 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7423case `$LD -v 2>&1 </dev/null` in
7424*GNU* | *'with BFD'*)
7425 lt_cv_prog_gnu_ld=yes
7426 ;;
7427*)
7428 lt_cv_prog_gnu_ld=no
7429 ;;
7430esac
7431fi
7432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7433$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7434with_gnu_ld=$lt_cv_prog_gnu_ld
7435
7436
7437
7438
7439
7440
7441
7442
7443
cristy3ed852e2009-09-05 21:47:34 +00007444
cristy837d6dc2010-02-27 01:16:57 +00007445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7446$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007447if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007448 $as_echo_n "(cached) " >&6
7449else
7450 ac_cv_prog_cc_c99=no
7451ac_save_CC=$CC
7452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453/* end confdefs.h. */
7454#include <stdarg.h>
7455#include <stdbool.h>
7456#include <stdlib.h>
7457#include <wchar.h>
7458#include <stdio.h>
7459
7460// Check varargs macros. These examples are taken from C99 6.10.3.5.
7461#define debug(...) fprintf (stderr, __VA_ARGS__)
7462#define showlist(...) puts (#__VA_ARGS__)
7463#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7464static void
7465test_varargs_macros (void)
7466{
7467 int x = 1234;
7468 int y = 5678;
7469 debug ("Flag");
7470 debug ("X = %d\n", x);
7471 showlist (The first, second, and third items.);
7472 report (x>y, "x is %d but y is %d", x, y);
7473}
7474
7475// Check long long types.
7476#define BIG64 18446744073709551615ull
7477#define BIG32 4294967295ul
7478#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7479#if !BIG_OK
7480 your preprocessor is broken;
7481#endif
7482#if BIG_OK
7483#else
7484 your preprocessor is broken;
7485#endif
7486static long long int bignum = -9223372036854775807LL;
7487static unsigned long long int ubignum = BIG64;
7488
7489struct incomplete_array
7490{
7491 int datasize;
7492 double data[];
7493};
7494
7495struct named_init {
7496 int number;
7497 const wchar_t *name;
7498 double average;
7499};
7500
7501typedef const char *ccp;
7502
7503static inline int
7504test_restrict (ccp restrict text)
7505{
7506 // See if C++-style comments work.
7507 // Iterate through items via the restricted pointer.
7508 // Also check for declarations in for loops.
7509 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7510 continue;
7511 return 0;
7512}
7513
7514// Check varargs and va_copy.
7515static void
7516test_varargs (const char *format, ...)
7517{
7518 va_list args;
7519 va_start (args, format);
7520 va_list args_copy;
7521 va_copy (args_copy, args);
7522
7523 const char *str;
7524 int number;
7525 float fnumber;
7526
7527 while (*format)
7528 {
7529 switch (*format++)
7530 {
7531 case 's': // string
7532 str = va_arg (args_copy, const char *);
7533 break;
7534 case 'd': // int
7535 number = va_arg (args_copy, int);
7536 break;
7537 case 'f': // float
7538 fnumber = va_arg (args_copy, double);
7539 break;
7540 default:
7541 break;
7542 }
7543 }
7544 va_end (args_copy);
7545 va_end (args);
7546}
7547
7548int
7549main ()
7550{
7551
7552 // Check bool.
7553 _Bool success = false;
7554
7555 // Check restrict.
7556 if (test_restrict ("String literal") == 0)
7557 success = true;
7558 char *restrict newvar = "Another string";
7559
7560 // Check varargs.
7561 test_varargs ("s, d' f .", "string", 65, 34.234);
7562 test_varargs_macros ();
7563
7564 // Check flexible array members.
7565 struct incomplete_array *ia =
7566 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7567 ia->datasize = 10;
7568 for (int i = 0; i < ia->datasize; ++i)
7569 ia->data[i] = i * 1.234;
7570
7571 // Check named initializers.
7572 struct named_init ni = {
7573 .number = 34,
7574 .name = L"Test wide string",
7575 .average = 543.34343,
7576 };
7577
7578 ni.number = 58;
7579
7580 int dynamic_array[ni.number];
7581 dynamic_array[ni.number - 1] = 543;
7582
7583 // work around unused variable warnings
7584 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7585 || dynamic_array[ni.number - 1] != 543);
7586
7587 ;
7588 return 0;
7589}
7590_ACEOF
7591for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7592do
7593 CC="$ac_save_CC $ac_arg"
7594 if ac_fn_c_try_compile "$LINENO"; then :
7595 ac_cv_prog_cc_c99=$ac_arg
7596fi
7597rm -f core conftest.err conftest.$ac_objext
7598 test "x$ac_cv_prog_cc_c99" != "xno" && break
7599done
7600rm -f conftest.$ac_ext
7601CC=$ac_save_CC
7602
7603fi
7604# AC_CACHE_VAL
7605case "x$ac_cv_prog_cc_c99" in
7606 x)
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7608$as_echo "none needed" >&6; } ;;
7609 xno)
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7611$as_echo "unsupported" >&6; } ;;
7612 *)
7613 CC="$CC $ac_cv_prog_cc_c99"
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7615$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7616esac
7617if test "x$ac_cv_prog_cc_c99" != xno; then :
7618
7619fi
7620
7621
cristy73bd4a52010-10-05 11:24:23 +00007622if test "x$CC" != xcc; then
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7624$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7625else
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7627$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7628fi
7629set dummy $CC; ac_cc=`$as_echo "$2" |
7630 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007631if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007632 $as_echo_n "(cached) " >&6
7633else
cristy73bd4a52010-10-05 11:24:23 +00007634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635/* end confdefs.h. */
7636
7637int
7638main ()
7639{
7640
7641 ;
7642 return 0;
7643}
7644_ACEOF
7645# Make sure it works both with $CC and with simple cc.
7646# We do the test twice because some compilers refuse to overwrite an
7647# existing .o file with -o, though they will create one.
7648ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7649rm -f conftest2.*
7650if { { case "(($ac_try" in
7651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652 *) ac_try_echo=$ac_try;;
7653esac
7654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7655$as_echo "$ac_try_echo"; } >&5
7656 (eval "$ac_try") 2>&5
7657 ac_status=$?
7658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7659 test $ac_status = 0; } &&
7660 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7662 *) ac_try_echo=$ac_try;;
7663esac
7664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7665$as_echo "$ac_try_echo"; } >&5
7666 (eval "$ac_try") 2>&5
7667 ac_status=$?
7668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7669 test $ac_status = 0; };
7670then
7671 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7672 if test "x$CC" != xcc; then
7673 # Test first that cc exists at all.
7674 if { ac_try='cc -c conftest.$ac_ext >&5'
7675 { { case "(($ac_try" in
7676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7677 *) ac_try_echo=$ac_try;;
7678esac
7679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7680$as_echo "$ac_try_echo"; } >&5
7681 (eval "$ac_try") 2>&5
7682 ac_status=$?
7683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7684 test $ac_status = 0; }; }; then
7685 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7686 rm -f conftest2.*
7687 if { { case "(($ac_try" in
7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7690esac
7691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7692$as_echo "$ac_try_echo"; } >&5
7693 (eval "$ac_try") 2>&5
7694 ac_status=$?
7695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7696 test $ac_status = 0; } &&
7697 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7699 *) ac_try_echo=$ac_try;;
7700esac
7701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7702$as_echo "$ac_try_echo"; } >&5
7703 (eval "$ac_try") 2>&5
7704 ac_status=$?
7705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7706 test $ac_status = 0; };
7707 then
7708 # cc works too.
7709 :
7710 else
7711 # cc exists but doesn't like -o.
7712 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7713 fi
7714 fi
7715 fi
7716else
7717 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7718fi
7719rm -f core conftest*
7720
7721fi
7722if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7724$as_echo "yes" >&6; }
7725else
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727$as_echo "no" >&6; }
7728
7729$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7730
7731fi
7732
7733# FIXME: we rely on the cache variable name because
7734# there is no other way.
7735set dummy $CC
7736am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7737eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7738if test "$am_t" != yes; then
7739 # Losing compiler, so override with the script.
7740 # FIXME: It is wrong to rewrite CC.
7741 # But if we don't then we get into trouble of one sort or another.
7742 # A longer-term fix would be to have automake use am__CC in this case,
7743 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7744 CC="$am_aux_dir/compile $CC"
7745fi
7746
7747
7748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7749$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007750if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007751 $as_echo_n "(cached) " >&6
7752else
7753 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007754 ac_ext=c
7755ac_cpp='$CPP $CPPFLAGS'
7756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7758ac_compiler_gnu=$ac_cv_c_compiler_gnu
7759
7760 ac_save_CFLAGS="$CFLAGS"
7761for 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" #
7762do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764/* end confdefs.h. */
7765
7766int
7767main ()
7768{
cristy24fc1fe2010-10-23 21:13:01 +00007769
cristy73bd4a52010-10-05 11:24:23 +00007770 ;
7771 return 0;
7772}
7773_ACEOF
7774if ac_fn_c_try_compile "$LINENO"; then :
7775 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7776fi
7777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7778done
7779 CFLAGS="$ac_save_CFLAGS"
7780 ac_ext=c
7781ac_cpp='$CPP $CPPFLAGS'
7782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7784ac_compiler_gnu=$ac_cv_c_compiler_gnu
7785
7786
7787fi
7788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7789$as_echo "$ac_cv_cflags_warn_all" >&6; }
7790case ".$ac_cv_cflags_warn_all" in
7791 .ok|.ok,*) ;;
7792 .|.no|.no,*)
7793 ;;
7794 *)
7795 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7796 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7797 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7798 ac_status=$?
7799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7800 test $ac_status = 0; }
7801 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7802 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7803 ac_status=$?
7804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7805 test $ac_status = 0; }
7806 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7807 fi
7808 ;;
nicolas6237c462010-10-05 06:11:49 +00007809esac
cristy3ed852e2009-09-05 21:47:34 +00007810
cristya0b81c32010-01-22 02:54:33 +00007811
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7813$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7814set x ${MAKE-make}
7815ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007816if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007817 $as_echo_n "(cached) " >&6
7818else
7819 cat >conftest.make <<\_ACEOF
7820SHELL = /bin/sh
7821all:
7822 @echo '@@@%%%=$(MAKE)=@@@%%%'
7823_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007824# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007825case `${MAKE-make} -f conftest.make 2>/dev/null` in
7826 *@@@%%%=?*=@@@%%%*)
7827 eval ac_cv_prog_make_${ac_make}_set=yes;;
7828 *)
7829 eval ac_cv_prog_make_${ac_make}_set=no;;
7830esac
7831rm -f conftest.make
7832fi
7833if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7835$as_echo "yes" >&6; }
7836 SET_MAKE=
7837else
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839$as_echo "no" >&6; }
7840 SET_MAKE="MAKE=${MAKE-make}"
7841fi
7842
cristy8b350f62009-11-15 23:12:43 +00007843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007844$as_echo_n "checking whether ln -s works... " >&6; }
7845LN_S=$as_ln_s
7846if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007848$as_echo "yes" >&6; }
7849else
cristy8b350f62009-11-15 23:12:43 +00007850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007851$as_echo "no, using $LN_S" >&6; }
7852fi
7853
cristy73bd4a52010-10-05 11:24:23 +00007854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7855$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7856
7857# Check whether --with-dmalloc was given.
7858if test "${with_dmalloc+set}" = set; then :
7859 withval=$with_dmalloc; if test "$withval" = yes; then
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7861$as_echo "yes" >&6; }
7862
7863$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7864
7865 LIBS="$LIBS -ldmalloc"
7866 LDFLAGS="$LDFLAGS -g"
7867else
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869$as_echo "no" >&6; }
7870fi
7871else
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873$as_echo "no" >&6; }
7874fi
7875
7876
7877
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7879$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007880if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007881 $as_echo_n "(cached) " >&6
7882else
7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884/* end confdefs.h. */
7885#include <stdlib.h>
7886 static void foo(void) __attribute__ ((unused));
7887 static void
7888 foo(void) {
7889 exit(1);
7890 }
7891
7892int
7893main ()
7894{
7895
7896 ;
7897 return 0;
7898}
7899_ACEOF
7900if ac_fn_c_try_compile "$LINENO"; then :
7901 ax_cv___attribute__=yes
7902else
7903 ax_cv___attribute__=no
7904
7905fi
7906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7907
7908fi
7909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7910$as_echo "$ax_cv___attribute__" >&6; }
7911 if test "$ax_cv___attribute__" = "yes"; then
7912
7913$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7914
7915 fi
7916
7917
7918
7919if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7920 if test -n "$ac_tool_prefix"; then
7921 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7922set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7924$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007925if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007926 $as_echo_n "(cached) " >&6
7927else
7928 case $PKG_CONFIG in
7929 [\\/]* | ?:[\\/]*)
7930 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7931 ;;
7932 *)
7933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934for as_dir in $PATH
7935do
7936 IFS=$as_save_IFS
7937 test -z "$as_dir" && as_dir=.
7938 for ac_exec_ext in '' $ac_executable_extensions; do
7939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7940 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7942 break 2
7943 fi
7944done
7945 done
7946IFS=$as_save_IFS
7947
7948 ;;
7949esac
7950fi
7951PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7952if test -n "$PKG_CONFIG"; then
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7954$as_echo "$PKG_CONFIG" >&6; }
7955else
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957$as_echo "no" >&6; }
7958fi
7959
7960
7961fi
7962if test -z "$ac_cv_path_PKG_CONFIG"; then
7963 ac_pt_PKG_CONFIG=$PKG_CONFIG
7964 # Extract the first word of "pkg-config", so it can be a program name with args.
7965set dummy pkg-config; ac_word=$2
7966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7967$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007968if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007969 $as_echo_n "(cached) " >&6
7970else
7971 case $ac_pt_PKG_CONFIG in
7972 [\\/]* | ?:[\\/]*)
7973 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7974 ;;
7975 *)
7976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977for as_dir in $PATH
7978do
7979 IFS=$as_save_IFS
7980 test -z "$as_dir" && as_dir=.
7981 for ac_exec_ext in '' $ac_executable_extensions; do
7982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7983 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7985 break 2
7986 fi
7987done
7988 done
7989IFS=$as_save_IFS
7990
7991 ;;
7992esac
7993fi
7994ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7995if test -n "$ac_pt_PKG_CONFIG"; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7997$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7998else
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000$as_echo "no" >&6; }
8001fi
8002
8003 if test "x$ac_pt_PKG_CONFIG" = x; then
8004 PKG_CONFIG=""
8005 else
8006 case $cross_compiling:$ac_tool_warned in
8007yes:)
8008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8010ac_tool_warned=yes ;;
8011esac
8012 PKG_CONFIG=$ac_pt_PKG_CONFIG
8013 fi
8014else
8015 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8016fi
8017
8018fi
8019if test -n "$PKG_CONFIG"; then
8020 _pkg_min_version=0.9.0
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8022$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8023 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8025$as_echo "yes" >&6; }
8026 else
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028$as_echo "no" >&6; }
8029 PKG_CONFIG=""
8030 fi
8031
8032fi
cristy3ed852e2009-09-05 21:47:34 +00008033
8034#
cristy3ed852e2009-09-05 21:47:34 +00008035# Enable run-time checking.
8036#
8037# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008038if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008039 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8040else
8041 enable_bounds_checking='no'
8042fi
8043
8044
8045if test "$enable_bounds_checking" = yes; then
8046
cristy8b350f62009-11-15 23:12:43 +00008047$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008048
8049fi
8050
8051#
8052# Tests for Windows
8053#
8054
8055
cristy73bd4a52010-10-05 11:24:23 +00008056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8057$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008058if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008059 $as_echo_n "(cached) " >&6
8060else
8061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8062/* end confdefs.h. */
8063
8064int
8065main ()
8066{
8067#ifndef _MSC_VER
8068 choke me
8069#endif
8070
8071 ;
8072 return 0;
8073}
8074_ACEOF
8075if ac_fn_c_try_compile "$LINENO"; then :
8076 ax_compiler_ms=yes
8077else
8078 ax_compiler_ms=no
8079fi
8080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8081ax_cv_c_compiler_ms=$ax_compiler_ms
8082
8083fi
8084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8085$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008086
8087GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008088native_win32_build='no'
8089cygwin_build='no'
8090case "${host_os}" in
8091 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008092 cygwin_build='yes'
8093 GDI32_LIBS='-lgdi32'
8094 ;;
8095 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008096 native_win32_build='yes'
8097 GDI32_LIBS='-lgdi32'
8098 ;;
8099esac
8100if test "${GDI32_LIBS}x" != 'x'; then
8101
cristy8b350f62009-11-15 23:12:43 +00008102$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008103
8104fi
8105
cristy73bd4a52010-10-05 11:24:23 +00008106 if test "${GDI32_LIBS}x" != 'x' ; then
8107 WINGDI32_DELEGATE_TRUE=
8108 WINGDI32_DELEGATE_FALSE='#'
8109else
8110 WINGDI32_DELEGATE_TRUE='#'
8111 WINGDI32_DELEGATE_FALSE=
8112fi
8113
8114 if test "${native_win32_build}" = 'yes' ; then
8115 WIN32_NATIVE_BUILD_TRUE=
8116 WIN32_NATIVE_BUILD_FALSE='#'
8117else
8118 WIN32_NATIVE_BUILD_TRUE='#'
8119 WIN32_NATIVE_BUILD_FALSE=
8120fi
8121
8122 if test "${cygwin_build}" = 'yes' ; then
8123 CYGWIN_BUILD_TRUE=
8124 CYGWIN_BUILD_FALSE='#'
8125else
8126 CYGWIN_BUILD_TRUE='#'
8127 CYGWIN_BUILD_FALSE=
8128fi
8129
8130 if test "x${CC}" = 'xcl.exe' ; then
8131 USING_CL_TRUE=
8132 USING_CL_FALSE='#'
8133else
8134 USING_CL_TRUE='#'
8135 USING_CL_FALSE=
8136fi
8137
cristy3ed852e2009-09-05 21:47:34 +00008138
8139WinPathScript="${srcdirfull}/winpath.sh"
8140
8141
8142#
8143# Compiler flags tweaks
8144#
8145if test "${GCC}" != "yes"; then
8146 case "${host}" in
8147 *-*-hpux* )
8148 # aCC: HP ANSI C++ B3910B A.03.34
8149 CFLAGS="${CFLAGS} -Wp,-H30000"
8150 if test -n "${CXXFLAGS}"; then
8151 CXXFLAGS='-AA'
8152 else
8153 CXXFLAGS="${CXXFLAGS} -AA"
8154 fi
8155 ;;
8156 *-dec-osf5.* )
8157 # Compaq alphaev68-dec-osf5.1 compiler
8158 if test -n "${CXXFLAGS}"; then
8159 CXXFLAGS='-std strict_ansi -noimplicit_include'
8160 else
8161 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8162 fi
8163 esac
8164fi
8165
8166# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008168$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008169if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008170 $as_echo_n "(cached) " >&6
8171else
8172
8173im_cv_ld_lazyload='none'
8174case "${host}" in
8175 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8176 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8177 im_cv_ld_lazyload='-Wl,-zlazyload'
8178 fi
8179 ;;
8180esac
8181
8182fi
cristy8b350f62009-11-15 23:12:43 +00008183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008184$as_echo "$im_cv_ld_lazyload" >&6; }
8185if test "${im_cv_ld_lazyload}" != 'none' ; then
8186 if test -z "${LDFLAGS}" ; then
8187 LDFLAGS="${im_cv_ld_lazyload}"
8188 else
8189 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8190 fi
8191fi
8192
8193case "$host" in
8194*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008195 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008196if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008197 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8198else
8199 build_osxuniversal=no
8200fi
8201
8202
8203 if test "${build_osxuniversal}" != no ; then
8204 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008205 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008206Please re-run configure with these options:
8207 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008208 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008209 fi
8210 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8211 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8212 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8213 fi
8214 ;;
8215esac
8216
8217# Enable support for threads
8218
8219# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008220if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008221 withval=$with_threads; with_threads=$withval
8222else
8223 with_threads='yes'
8224fi
8225
8226
8227have_threads=no
8228if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008229
8230
8231
8232ac_ext=c
8233ac_cpp='$CPP $CPPFLAGS'
8234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8236ac_compiler_gnu=$ac_cv_c_compiler_gnu
8237
8238ax_pthread_ok=no
8239
8240# We used to check for pthread.h first, but this fails if pthread.h
8241# requires special compiler flags (e.g. on True64 or Sequent).
8242# It gets checked for in the link test anyway.
8243
8244# First of all, check if the user has set any of the PTHREAD_LIBS,
8245# etcetera environment variables, and if threads linking works using
8246# them:
8247if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8248 save_CFLAGS="$CFLAGS"
8249 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8250 save_LIBS="$LIBS"
8251 LIBS="$PTHREAD_LIBS $LIBS"
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8253$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255/* end confdefs.h. */
8256
8257/* Override any GCC internal prototype to avoid an error.
8258 Use char because int might match the return type of a GCC
8259 builtin and then its argument prototype would still apply. */
8260#ifdef __cplusplus
8261extern "C"
8262#endif
8263char pthread_join ();
8264int
8265main ()
8266{
8267return pthread_join ();
8268 ;
8269 return 0;
8270}
8271_ACEOF
8272if ac_fn_c_try_link "$LINENO"; then :
8273 ax_pthread_ok=yes
8274fi
8275rm -f core conftest.err conftest.$ac_objext \
8276 conftest$ac_exeext conftest.$ac_ext
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8278$as_echo "$ax_pthread_ok" >&6; }
8279 if test x"$ax_pthread_ok" = xno; then
8280 PTHREAD_LIBS=""
8281 PTHREAD_CFLAGS=""
8282 fi
8283 LIBS="$save_LIBS"
8284 CFLAGS="$save_CFLAGS"
8285fi
8286
8287# We must check for the threads library under a number of different
8288# names; the ordering is very important because some systems
8289# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8290# libraries is broken (non-POSIX).
8291
8292# Create a list of thread flags to try. Items starting with a "-" are
8293# C compiler flags, and other items are library names, except for "none"
8294# which indicates that we try without any flags at all, and "pthread-config"
8295# which is a program returning the flags for the Pth emulation library.
8296
8297ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8298
8299# The ordering *is* (sometimes) important. Some notes on the
8300# individual items follow:
8301
8302# pthreads: AIX (must check this before -lpthread)
8303# none: in case threads are in libc; should be tried before -Kthread and
8304# other compiler flags to prevent continual compiler warnings
8305# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8306# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8307# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8308# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8309# -pthreads: Solaris/gcc
8310# -mthreads: Mingw32/gcc, Lynx/gcc
8311# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8312# doesn't hurt to check since this sometimes defines pthreads too;
8313# also defines -D_REENTRANT)
8314# ... -mt is also the pthreads flag for HP/aCC
8315# pthread: Linux, etcetera
8316# --thread-safe: KAI C++
8317# pthread-config: use pthread-config program (for GNU Pth library)
8318
8319case "${host_cpu}-${host_os}" in
8320 *solaris*)
8321
8322 # On Solaris (at least, for some versions), libc contains stubbed
8323 # (non-functional) versions of the pthreads routines, so link-based
8324 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8325 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8326 # a function called by this macro, so we could check for that, but
8327 # who knows whether they'll stub that too in a future libc.) So,
8328 # we'll just look for -pthreads and -lpthread first:
8329
8330 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8331 ;;
8332
8333 *-darwin*)
8334 ax_pthread_flags="-pthread $ax_pthread_flags"
8335 ;;
8336esac
8337
8338if test x"$ax_pthread_ok" = xno; then
8339for flag in $ax_pthread_flags; do
8340
8341 case $flag in
8342 none)
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8344$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8345 ;;
8346
8347 -*)
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8349$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8350 PTHREAD_CFLAGS="$flag"
8351 ;;
8352
8353 pthread-config)
8354 # Extract the first word of "pthread-config", so it can be a program name with args.
8355set dummy pthread-config; 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; }
cristyda16f162011-02-19 23:52:17 +00008358if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008359 $as_echo_n "(cached) " >&6
8360else
8361 if test -n "$ax_pthread_config"; then
8362 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # 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_ax_pthread_config="yes"
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
8379 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8380fi
8381fi
8382ax_pthread_config=$ac_cv_prog_ax_pthread_config
8383if test -n "$ax_pthread_config"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8385$as_echo "$ax_pthread_config" >&6; }
8386else
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388$as_echo "no" >&6; }
8389fi
8390
8391
8392 if test x"$ax_pthread_config" = xno; then continue; fi
8393 PTHREAD_CFLAGS="`pthread-config --cflags`"
8394 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8395 ;;
8396
8397 *)
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8399$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8400 PTHREAD_LIBS="-l$flag"
8401 ;;
8402 esac
8403
8404 save_LIBS="$LIBS"
8405 save_CFLAGS="$CFLAGS"
8406 LIBS="$PTHREAD_LIBS $LIBS"
8407 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8408
8409 # Check for various functions. We must include pthread.h,
8410 # since some functions may be macros. (On the Sequent, we
8411 # need a special flag -Kthread to make this header compile.)
8412 # We check for pthread_join because it is in -lpthread on IRIX
8413 # while pthread_create is in libc. We check for pthread_attr_init
8414 # due to DEC craziness with -lpthreads. We check for
8415 # pthread_cleanup_push because it is one of the few pthread
8416 # functions on Solaris that doesn't have a non-functional libc stub.
8417 # We try pthread_create on general principles.
8418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8419/* end confdefs.h. */
8420#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008421 static void routine(void* a) {a=0;}
8422 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008423int
8424main ()
8425{
8426pthread_t th; pthread_attr_t attr;
8427 pthread_create(&th,0,start_routine,0);
8428 pthread_join(th, 0);
8429 pthread_attr_init(&attr);
8430 pthread_cleanup_push(routine, 0);
8431 pthread_cleanup_pop(0);
8432 ;
8433 return 0;
8434}
8435_ACEOF
8436if ac_fn_c_try_link "$LINENO"; then :
8437 ax_pthread_ok=yes
8438fi
8439rm -f core conftest.err conftest.$ac_objext \
8440 conftest$ac_exeext conftest.$ac_ext
8441
8442 LIBS="$save_LIBS"
8443 CFLAGS="$save_CFLAGS"
8444
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8446$as_echo "$ax_pthread_ok" >&6; }
8447 if test "x$ax_pthread_ok" = xyes; then
8448 break;
8449 fi
8450
8451 PTHREAD_LIBS=""
8452 PTHREAD_CFLAGS=""
8453done
8454fi
8455
8456# Various other checks:
8457if test "x$ax_pthread_ok" = xyes; then
8458 save_LIBS="$LIBS"
8459 LIBS="$PTHREAD_LIBS $LIBS"
8460 save_CFLAGS="$CFLAGS"
8461 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8462
8463 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8465$as_echo_n "checking for joinable pthread attribute... " >&6; }
8466 attr_name=unknown
8467 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8469/* end confdefs.h. */
8470#include <pthread.h>
8471int
8472main ()
8473{
8474int attr=$attr; return attr;
8475 ;
8476 return 0;
8477}
8478_ACEOF
8479if ac_fn_c_try_link "$LINENO"; then :
8480 attr_name=$attr; break
8481fi
8482rm -f core conftest.err conftest.$ac_objext \
8483 conftest$ac_exeext conftest.$ac_ext
8484 done
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8486$as_echo "$attr_name" >&6; }
8487 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8488
8489cat >>confdefs.h <<_ACEOF
8490#define PTHREAD_CREATE_JOINABLE $attr_name
8491_ACEOF
8492
8493 fi
8494
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8496$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8497 flag=no
8498 case "${host_cpu}-${host_os}" in
8499 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8500 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8501 esac
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8503$as_echo "${flag}" >&6; }
8504 if test "x$flag" != xno; then
8505 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8506 fi
8507
8508 LIBS="$save_LIBS"
8509 CFLAGS="$save_CFLAGS"
8510
8511 # More AIX lossage: must compile with xlc_r or cc_r
8512 if test x"$GCC" != xyes; then
8513 for ac_prog in xlc_r cc_r
8514do
8515 # Extract the first word of "$ac_prog", so it can be a program name with args.
8516set dummy $ac_prog; ac_word=$2
8517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008519if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008520 $as_echo_n "(cached) " >&6
8521else
8522 if test -n "$PTHREAD_CC"; then
8523 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8524else
8525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8526for as_dir in $PATH
8527do
8528 IFS=$as_save_IFS
8529 test -z "$as_dir" && as_dir=.
8530 for ac_exec_ext in '' $ac_executable_extensions; do
8531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8532 ac_cv_prog_PTHREAD_CC="$ac_prog"
8533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8534 break 2
8535 fi
8536done
8537 done
8538IFS=$as_save_IFS
8539
8540fi
8541fi
8542PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8543if test -n "$PTHREAD_CC"; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8545$as_echo "$PTHREAD_CC" >&6; }
8546else
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548$as_echo "no" >&6; }
8549fi
8550
8551
8552 test -n "$PTHREAD_CC" && break
8553done
8554test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8555
8556 else
8557 PTHREAD_CC=$CC
8558 fi
8559else
8560 PTHREAD_CC="$CC"
8561fi
8562
8563
8564
8565
8566
8567# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8568if test x"$ax_pthread_ok" = xyes; then
8569
8570$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8571
8572 :
8573else
8574 ax_pthread_ok=no
8575
8576fi
8577ac_ext=c
8578ac_cpp='$CPP $CPPFLAGS'
8579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8581ac_compiler_gnu=$ac_cv_c_compiler_gnu
8582
8583
cristy7acf8fb2010-09-23 19:58:53 +00008584 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008585 have_threads=yes
8586 DEF_THREAD="$PTHREAD_CFLAGS"
8587 CFLAGS="$CFLAGS $DEF_THREAD"
8588 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8589 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008590 { $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 +00008591$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8592 CC="$PTHREAD_CC"
8593 fi
cristy55bf91c2010-09-24 00:29:41 +00008594
8595$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8596
cristy3ed852e2009-09-05 21:47:34 +00008597 fi
8598fi
8599
8600# Enable support for OpenMP
8601if test "$have_threads" != 'yes'; then
8602 ac_cv_prog_c_openmp=unsupported
8603fi
8604
8605 OPENMP_CFLAGS=
8606 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008607if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008608 enableval=$enable_openmp;
8609fi
8610
8611 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008613$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008614if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008615 $as_echo_n "(cached) " >&6
8616else
cristy8b350f62009-11-15 23:12:43 +00008617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008619
8620#ifndef _OPENMP
8621 choke me
8622#endif
8623#include <omp.h>
8624int main () { return omp_get_num_threads (); }
8625
8626_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008627if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008628 ac_cv_prog_c_openmp='none needed'
8629else
cristy8b350f62009-11-15 23:12:43 +00008630 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008631 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8632 ac_save_CFLAGS=$CFLAGS
8633 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008636
8637#ifndef _OPENMP
8638 choke me
8639#endif
8640#include <omp.h>
8641int main () { return omp_get_num_threads (); }
8642
8643_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008644if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008645 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008646fi
cristy8b350f62009-11-15 23:12:43 +00008647rm -f core conftest.err conftest.$ac_objext \
8648 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008649 CFLAGS=$ac_save_CFLAGS
8650 if test "$ac_cv_prog_c_openmp" != unsupported; then
8651 break
8652 fi
8653 done
8654fi
cristy8b350f62009-11-15 23:12:43 +00008655rm -f core conftest.err conftest.$ac_objext \
8656 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008657fi
cristy8b350f62009-11-15 23:12:43 +00008658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008659$as_echo "$ac_cv_prog_c_openmp" >&6; }
8660 case $ac_cv_prog_c_openmp in #(
8661 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008662 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008663 *)
cristy8b350f62009-11-15 23:12:43 +00008664 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008665 esac
8666 fi
8667
8668
8669CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8670MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8671
cristy391f1ce2010-09-09 17:23:28 +00008672if test "$enable_openmp" != no; then
8673 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8674 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8675 fi
8676fi
cristy3ed852e2009-09-05 21:47:34 +00008677
cristy736173a2009-09-20 21:18:22 +00008678# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008679
8680
8681
8682ac_ext=c
8683ac_cpp='$CPP $CPPFLAGS'
8684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8686ac_compiler_gnu=$ac_cv_c_compiler_gnu
8687
8688ax_pthread_ok=no
8689
8690# We used to check for pthread.h first, but this fails if pthread.h
8691# requires special compiler flags (e.g. on True64 or Sequent).
8692# It gets checked for in the link test anyway.
8693
8694# First of all, check if the user has set any of the PTHREAD_LIBS,
8695# etcetera environment variables, and if threads linking works using
8696# them:
8697if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8698 save_CFLAGS="$CFLAGS"
8699 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8700 save_LIBS="$LIBS"
8701 LIBS="$PTHREAD_LIBS $LIBS"
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8703$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705/* end confdefs.h. */
8706
8707/* Override any GCC internal prototype to avoid an error.
8708 Use char because int might match the return type of a GCC
8709 builtin and then its argument prototype would still apply. */
8710#ifdef __cplusplus
8711extern "C"
8712#endif
8713char pthread_join ();
8714int
8715main ()
8716{
8717return pthread_join ();
8718 ;
8719 return 0;
8720}
8721_ACEOF
8722if ac_fn_c_try_link "$LINENO"; then :
8723 ax_pthread_ok=yes
8724fi
8725rm -f core conftest.err conftest.$ac_objext \
8726 conftest$ac_exeext conftest.$ac_ext
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8728$as_echo "$ax_pthread_ok" >&6; }
8729 if test x"$ax_pthread_ok" = xno; then
8730 PTHREAD_LIBS=""
8731 PTHREAD_CFLAGS=""
8732 fi
8733 LIBS="$save_LIBS"
8734 CFLAGS="$save_CFLAGS"
8735fi
8736
8737# We must check for the threads library under a number of different
8738# names; the ordering is very important because some systems
8739# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8740# libraries is broken (non-POSIX).
8741
8742# Create a list of thread flags to try. Items starting with a "-" are
8743# C compiler flags, and other items are library names, except for "none"
8744# which indicates that we try without any flags at all, and "pthread-config"
8745# which is a program returning the flags for the Pth emulation library.
8746
8747ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8748
8749# The ordering *is* (sometimes) important. Some notes on the
8750# individual items follow:
8751
8752# pthreads: AIX (must check this before -lpthread)
8753# none: in case threads are in libc; should be tried before -Kthread and
8754# other compiler flags to prevent continual compiler warnings
8755# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8756# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8757# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8758# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8759# -pthreads: Solaris/gcc
8760# -mthreads: Mingw32/gcc, Lynx/gcc
8761# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8762# doesn't hurt to check since this sometimes defines pthreads too;
8763# also defines -D_REENTRANT)
8764# ... -mt is also the pthreads flag for HP/aCC
8765# pthread: Linux, etcetera
8766# --thread-safe: KAI C++
8767# pthread-config: use pthread-config program (for GNU Pth library)
8768
8769case "${host_cpu}-${host_os}" in
8770 *solaris*)
8771
8772 # On Solaris (at least, for some versions), libc contains stubbed
8773 # (non-functional) versions of the pthreads routines, so link-based
8774 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8775 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8776 # a function called by this macro, so we could check for that, but
8777 # who knows whether they'll stub that too in a future libc.) So,
8778 # we'll just look for -pthreads and -lpthread first:
8779
8780 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8781 ;;
8782
8783 *-darwin*)
8784 ax_pthread_flags="-pthread $ax_pthread_flags"
8785 ;;
8786esac
8787
8788if test x"$ax_pthread_ok" = xno; then
8789for flag in $ax_pthread_flags; do
8790
8791 case $flag in
8792 none)
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8794$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8795 ;;
8796
8797 -*)
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8799$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8800 PTHREAD_CFLAGS="$flag"
8801 ;;
8802
8803 pthread-config)
8804 # Extract the first word of "pthread-config", so it can be a program name with args.
8805set dummy pthread-config; 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; }
cristyda16f162011-02-19 23:52:17 +00008808if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008809 $as_echo_n "(cached) " >&6
8810else
8811 if test -n "$ax_pthread_config"; then
8812 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # 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_ax_pthread_config="yes"
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
8829 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8830fi
8831fi
8832ax_pthread_config=$ac_cv_prog_ax_pthread_config
8833if test -n "$ax_pthread_config"; then
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8835$as_echo "$ax_pthread_config" >&6; }
8836else
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838$as_echo "no" >&6; }
8839fi
8840
8841
8842 if test x"$ax_pthread_config" = xno; then continue; fi
8843 PTHREAD_CFLAGS="`pthread-config --cflags`"
8844 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8845 ;;
8846
8847 *)
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8849$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8850 PTHREAD_LIBS="-l$flag"
8851 ;;
8852 esac
8853
8854 save_LIBS="$LIBS"
8855 save_CFLAGS="$CFLAGS"
8856 LIBS="$PTHREAD_LIBS $LIBS"
8857 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8858
8859 # Check for various functions. We must include pthread.h,
8860 # since some functions may be macros. (On the Sequent, we
8861 # need a special flag -Kthread to make this header compile.)
8862 # We check for pthread_join because it is in -lpthread on IRIX
8863 # while pthread_create is in libc. We check for pthread_attr_init
8864 # due to DEC craziness with -lpthreads. We check for
8865 # pthread_cleanup_push because it is one of the few pthread
8866 # functions on Solaris that doesn't have a non-functional libc stub.
8867 # We try pthread_create on general principles.
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869/* end confdefs.h. */
8870#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008871 static void routine(void* a) {a=0;}
8872 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008873int
8874main ()
8875{
8876pthread_t th; pthread_attr_t attr;
8877 pthread_create(&th,0,start_routine,0);
8878 pthread_join(th, 0);
8879 pthread_attr_init(&attr);
8880 pthread_cleanup_push(routine, 0);
8881 pthread_cleanup_pop(0);
8882 ;
8883 return 0;
8884}
8885_ACEOF
8886if ac_fn_c_try_link "$LINENO"; then :
8887 ax_pthread_ok=yes
8888fi
8889rm -f core conftest.err conftest.$ac_objext \
8890 conftest$ac_exeext conftest.$ac_ext
8891
8892 LIBS="$save_LIBS"
8893 CFLAGS="$save_CFLAGS"
8894
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8896$as_echo "$ax_pthread_ok" >&6; }
8897 if test "x$ax_pthread_ok" = xyes; then
8898 break;
8899 fi
8900
8901 PTHREAD_LIBS=""
8902 PTHREAD_CFLAGS=""
8903done
8904fi
8905
8906# Various other checks:
8907if test "x$ax_pthread_ok" = xyes; then
8908 save_LIBS="$LIBS"
8909 LIBS="$PTHREAD_LIBS $LIBS"
8910 save_CFLAGS="$CFLAGS"
8911 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8912
8913 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8915$as_echo_n "checking for joinable pthread attribute... " >&6; }
8916 attr_name=unknown
8917 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919/* end confdefs.h. */
8920#include <pthread.h>
8921int
8922main ()
8923{
8924int attr=$attr; return attr;
8925 ;
8926 return 0;
8927}
8928_ACEOF
8929if ac_fn_c_try_link "$LINENO"; then :
8930 attr_name=$attr; break
8931fi
8932rm -f core conftest.err conftest.$ac_objext \
8933 conftest$ac_exeext conftest.$ac_ext
8934 done
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8936$as_echo "$attr_name" >&6; }
8937 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8938
8939cat >>confdefs.h <<_ACEOF
8940#define PTHREAD_CREATE_JOINABLE $attr_name
8941_ACEOF
8942
8943 fi
8944
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8946$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8947 flag=no
8948 case "${host_cpu}-${host_os}" in
8949 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8950 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8951 esac
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8953$as_echo "${flag}" >&6; }
8954 if test "x$flag" != xno; then
8955 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8956 fi
8957
8958 LIBS="$save_LIBS"
8959 CFLAGS="$save_CFLAGS"
8960
8961 # More AIX lossage: must compile with xlc_r or cc_r
8962 if test x"$GCC" != xyes; then
8963 for ac_prog in xlc_r cc_r
8964do
8965 # Extract the first word of "$ac_prog", so it can be a program name with args.
8966set dummy $ac_prog; ac_word=$2
8967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8968$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008969if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008970 $as_echo_n "(cached) " >&6
8971else
8972 if test -n "$PTHREAD_CC"; then
8973 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8974else
8975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8976for as_dir in $PATH
8977do
8978 IFS=$as_save_IFS
8979 test -z "$as_dir" && as_dir=.
8980 for ac_exec_ext in '' $ac_executable_extensions; do
8981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8982 ac_cv_prog_PTHREAD_CC="$ac_prog"
8983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8984 break 2
8985 fi
8986done
8987 done
8988IFS=$as_save_IFS
8989
8990fi
8991fi
8992PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8993if test -n "$PTHREAD_CC"; then
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8995$as_echo "$PTHREAD_CC" >&6; }
8996else
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8998$as_echo "no" >&6; }
8999fi
9000
9001
9002 test -n "$PTHREAD_CC" && break
9003done
9004test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9005
9006 else
9007 PTHREAD_CC=$CC
9008 fi
9009else
9010 PTHREAD_CC="$CC"
9011fi
9012
9013
9014
9015
9016
9017# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9018if test x"$ax_pthread_ok" = xyes; then
9019
9020$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9021
9022 :
9023else
9024 ax_pthread_ok=no
9025
9026fi
9027ac_ext=c
9028ac_cpp='$CPP $CPPFLAGS'
9029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9031ac_compiler_gnu=$ac_cv_c_compiler_gnu
9032
9033
9034
9035# Check whether --enable-opencl was given.
9036if test "${enable_opencl+set}" = set; then :
9037 enableval=$enable_opencl; disable_opencl=$enableval
9038else
9039 disable_opencl='yes'
9040fi
9041
9042
9043if test "$disable_opencl" = 'yes'; then
9044 ac_ext=c
9045ac_cpp='$CPP $CPPFLAGS'
9046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9048ac_compiler_gnu=$ac_cv_c_compiler_gnu
9049
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9051$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009052if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009053 $as_echo_n "(cached) " >&6
9054else
9055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056/* end confdefs.h. */
9057
9058int
9059main ()
9060{
9061#ifndef _MSC_VER
9062 choke me
9063#endif
9064
9065 ;
9066 return 0;
9067}
9068_ACEOF
9069if ac_fn_c_try_compile "$LINENO"; then :
9070 ax_compiler_ms=yes
9071else
9072 ax_compiler_ms=no
9073fi
9074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9075ax_cv_c_compiler_ms=$ax_compiler_ms
9076
9077fi
9078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9079$as_echo "$ax_cv_c_compiler_ms" >&6; }
9080 if test X$ax_compiler_ms = Xno; then :
9081 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9082fi
9083
9084 ax_save_CPPFLAGS=$CPPFLAGS
9085 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9086 for ac_header in CL/cl.h OpenCL/cl.h
9087do :
9088 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9089ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009090if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009091 cat >>confdefs.h <<_ACEOF
9092#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9093_ACEOF
9094
9095fi
9096
9097done
9098
9099 CPPFLAGS=$ax_save_CPPFLAGS
9100
9101 for ac_header in windows.h
9102do :
9103 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009104if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009105 cat >>confdefs.h <<_ACEOF
9106#define HAVE_WINDOWS_H 1
9107_ACEOF
9108
9109fi
9110
9111done
9112
9113
9114
9115
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9117$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009118if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009119 $as_echo_n "(cached) " >&6
9120else
9121 ax_cv_check_cl_libcl=no
9122 case $host_cpu in
9123 x86_64) ax_check_cl_libdir=lib64 ;;
9124 *) ax_check_cl_libdir=lib ;;
9125 esac
9126 ax_save_CPPFLAGS=$CPPFLAGS
9127 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9128 ax_save_LIBS=$LIBS
9129 LIBS=""
9130 ax_check_libs="-lOpenCL -lCL -lclparser"
9131 for ax_lib in $ax_check_libs; do
9132 if test X$ax_compiler_ms = Xyes; then :
9133 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9134else
9135 ax_try_lib=$ax_lib
9136fi
9137 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139/* end confdefs.h. */
9140
9141 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9142 # include <windows.h>
9143 # endif
9144 # ifdef HAVE_CL_CL_H
9145 # include <CL/cl.h>
9146 # elif defined(HAVE_OPENCL_CL_H)
9147 # include <OpenCL/cl.h>
9148 # else
9149 # error no CL.h
9150 # endif
9151int
9152main ()
9153{
9154clCreateContextFromType(0,0,0,0,0)
9155 ;
9156 return 0;
9157}
9158_ACEOF
9159if ac_fn_c_try_link "$LINENO"; then :
9160 ax_cv_check_cl_libcl=$ax_try_lib; break
9161else
9162 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"
9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164/* end confdefs.h. */
9165
9166 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9167 # include <windows.h>
9168 # endif
9169 # ifdef HAVE_CL_CL_H
9170 # include <CL/cl.h>
9171 # elif defined(HAVE_OPENCL_CL_H)
9172 # include <OpenCL/cl.h>
9173 # else
9174 # error no CL.h
9175 # endif
9176int
9177main ()
9178{
9179clCreateContextFromType(0,0,0,0,0)
9180 ;
9181 return 0;
9182}
9183_ACEOF
9184if ac_fn_c_try_link "$LINENO"; then :
9185 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9186else
cristy78c5a0c2010-12-04 20:00:59 +00009187 ax_check_cl_dylib_flag='-Wl,-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"
cristy73bd4a52010-10-05 11:24:23 +00009188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189/* end confdefs.h. */
9190
9191 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9192 # include <windows.h>
9193 # endif
9194 # ifdef HAVE_CL_CL_H
9195 # include <CL/cl.h>
9196 # elif defined(HAVE_OPENCL_CL_H)
9197 # include <OpenCL/cl.h>
9198 # else
9199 # error no CL.h
9200 # endif
9201int
9202main ()
9203{
9204clCreateContextFromType(0,0,0,0,0)
9205 ;
9206 return 0;
9207}
9208_ACEOF
9209if ac_fn_c_try_link "$LINENO"; then :
9210 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9211fi
9212rm -f core conftest.err conftest.$ac_objext \
9213 conftest$ac_exeext conftest.$ac_ext
9214fi
9215rm -f core conftest.err conftest.$ac_objext \
9216 conftest$ac_exeext conftest.$ac_ext
9217fi
9218rm -f core conftest.err conftest.$ac_objext \
9219 conftest$ac_exeext conftest.$ac_ext
9220 done
9221
9222 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy78c5a0c2010-12-04 20:00:59 +00009223 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225/* end confdefs.h. */
9226
9227 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9228 # include <windows.h>
9229 # endif
9230 # ifdef HAVE_CL_CL_H
9231 # include <CL/cl.h>
9232 # elif defined(HAVE_OPENCL_CL_H)
9233 # include <OpenCL/cl.h>
9234 # else
9235 # error no CL.h
9236 # endif
9237int
9238main ()
9239{
9240clCreateContextFromType(0,0,0,0,0)
9241 ;
9242 return 0;
9243}
9244_ACEOF
9245if ac_fn_c_try_link "$LINENO"; then :
9246 ax_cv_check_cl_libcl=$LIBS
9247fi
9248rm -f core conftest.err conftest.$ac_objext \
9249 conftest$ac_exeext conftest.$ac_ext
9250fi
9251
9252 LIBS=$ax_save_LIBS
9253 CPPFLAGS=$ax_save_CPPFLAGS
9254fi
9255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9256$as_echo "$ax_cv_check_cl_libcl" >&6; }
9257
9258 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9259 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9260else
9261 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9262$as_echo "#define _OPENCL 1" >>confdefs.h
9263
9264fi
9265 ac_ext=c
9266ac_cpp='$CPP $CPPFLAGS'
9267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9269ac_compiler_gnu=$ac_cv_c_compiler_gnu
9270
9271fi
9272
9273
9274
9275
cristyc7083c12009-10-14 03:16:55 +00009276CFLAGS="$CL_CFLAGS $CFLAGS"
9277LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009278
cristy391f1ce2010-09-09 17:23:28 +00009279if test "$enable_opencl" != no; then
9280 if test "_OPENCL" = '1'; then
9281 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9282 fi
cristyfd9dcd42010-08-08 18:07:02 +00009283fi
cristy2e8b51d2009-10-17 18:26:15 +00009284
cristy3ed852e2009-09-05 21:47:34 +00009285########
9286#
9287# Check for large file support
9288#
9289########
9290# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009291if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009292 enableval=$enable_largefile;
9293fi
9294
9295if test "$enable_largefile" != no; then
9296
cristy8b350f62009-11-15 23:12:43 +00009297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009298$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009299if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009300 $as_echo_n "(cached) " >&6
9301else
9302 ac_cv_sys_largefile_CC=no
9303 if test "$GCC" != yes; then
9304 ac_save_CC=$CC
9305 while :; do
9306 # IRIX 6.2 and later do not support large files by default,
9307 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009309/* end confdefs.h. */
9310#include <sys/types.h>
9311 /* Check that off_t can represent 2**63 - 1 correctly.
9312 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9313 since some C++ compilers masquerading as C compilers
9314 incorrectly reject 9223372036854775807. */
9315#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9316 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9317 && LARGE_OFF_T % 2147483647 == 1)
9318 ? 1 : -1];
9319int
9320main ()
9321{
9322
9323 ;
9324 return 0;
9325}
9326_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009327 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009328 break
cristy3ed852e2009-09-05 21:47:34 +00009329fi
cristy3ed852e2009-09-05 21:47:34 +00009330rm -f core conftest.err conftest.$ac_objext
9331 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009332 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009333 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009334fi
cristy3ed852e2009-09-05 21:47:34 +00009335rm -f core conftest.err conftest.$ac_objext
9336 break
9337 done
9338 CC=$ac_save_CC
9339 rm -f conftest.$ac_ext
9340 fi
9341fi
cristy8b350f62009-11-15 23:12:43 +00009342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009343$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9344 if test "$ac_cv_sys_largefile_CC" != no; then
9345 CC=$CC$ac_cv_sys_largefile_CC
9346 fi
9347
cristy8b350f62009-11-15 23:12:43 +00009348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009349$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009350if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009351 $as_echo_n "(cached) " >&6
9352else
9353 while :; do
cristy8b350f62009-11-15 23:12:43 +00009354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009355/* end confdefs.h. */
9356#include <sys/types.h>
9357 /* Check that off_t can represent 2**63 - 1 correctly.
9358 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9359 since some C++ compilers masquerading as C compilers
9360 incorrectly reject 9223372036854775807. */
9361#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9362 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9363 && LARGE_OFF_T % 2147483647 == 1)
9364 ? 1 : -1];
9365int
9366main ()
9367{
9368
9369 ;
9370 return 0;
9371}
9372_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009373if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009374 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009375fi
cristy3ed852e2009-09-05 21:47:34 +00009376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009378/* end confdefs.h. */
9379#define _FILE_OFFSET_BITS 64
9380#include <sys/types.h>
9381 /* Check that off_t can represent 2**63 - 1 correctly.
9382 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9383 since some C++ compilers masquerading as C compilers
9384 incorrectly reject 9223372036854775807. */
9385#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9386 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9387 && LARGE_OFF_T % 2147483647 == 1)
9388 ? 1 : -1];
9389int
9390main ()
9391{
9392
9393 ;
9394 return 0;
9395}
9396_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009397if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009398 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009399fi
cristy3ed852e2009-09-05 21:47:34 +00009400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9401 ac_cv_sys_file_offset_bits=unknown
9402 break
9403done
9404fi
cristy8b350f62009-11-15 23:12:43 +00009405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009406$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9407case $ac_cv_sys_file_offset_bits in #(
9408 no | unknown) ;;
9409 *)
9410cat >>confdefs.h <<_ACEOF
9411#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9412_ACEOF
9413;;
9414esac
9415rm -rf conftest*
9416 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009418$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009419if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009420 $as_echo_n "(cached) " >&6
9421else
9422 while :; do
cristy8b350f62009-11-15 23:12:43 +00009423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009424/* end confdefs.h. */
9425#include <sys/types.h>
9426 /* Check that off_t can represent 2**63 - 1 correctly.
9427 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9428 since some C++ compilers masquerading as C compilers
9429 incorrectly reject 9223372036854775807. */
9430#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9431 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9432 && LARGE_OFF_T % 2147483647 == 1)
9433 ? 1 : -1];
9434int
9435main ()
9436{
9437
9438 ;
9439 return 0;
9440}
9441_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009442if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009443 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009444fi
cristy3ed852e2009-09-05 21:47:34 +00009445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009447/* end confdefs.h. */
9448#define _LARGE_FILES 1
9449#include <sys/types.h>
9450 /* Check that off_t can represent 2**63 - 1 correctly.
9451 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9452 since some C++ compilers masquerading as C compilers
9453 incorrectly reject 9223372036854775807. */
9454#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9455 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9456 && LARGE_OFF_T % 2147483647 == 1)
9457 ? 1 : -1];
9458int
9459main ()
9460{
9461
9462 ;
9463 return 0;
9464}
9465_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009466if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009467 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009468fi
cristy3ed852e2009-09-05 21:47:34 +00009469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9470 ac_cv_sys_large_files=unknown
9471 break
9472done
9473fi
cristy8b350f62009-11-15 23:12:43 +00009474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009475$as_echo "$ac_cv_sys_large_files" >&6; }
9476case $ac_cv_sys_large_files in #(
9477 no | unknown) ;;
9478 *)
9479cat >>confdefs.h <<_ACEOF
9480#define _LARGE_FILES $ac_cv_sys_large_files
9481_ACEOF
9482;;
9483esac
9484rm -rf conftest*
9485 fi
9486fi
9487
cristy8b350f62009-11-15 23:12:43 +00009488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009489$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009490if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009491 $as_echo_n "(cached) " >&6
9492else
9493 while :; do
cristy8b350f62009-11-15 23:12:43 +00009494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009495/* end confdefs.h. */
9496#include <sys/types.h> /* for off_t */
9497 #include <stdio.h>
9498int
9499main ()
9500{
9501int (*fp) (FILE *, off_t, int) = fseeko;
9502 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9503 ;
9504 return 0;
9505}
9506_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009507if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009508 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009509fi
cristy8b350f62009-11-15 23:12:43 +00009510rm -f core conftest.err conftest.$ac_objext \
9511 conftest$ac_exeext conftest.$ac_ext
9512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009513/* end confdefs.h. */
9514#define _LARGEFILE_SOURCE 1
9515#include <sys/types.h> /* for off_t */
9516 #include <stdio.h>
9517int
9518main ()
9519{
9520int (*fp) (FILE *, off_t, int) = fseeko;
9521 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9522 ;
9523 return 0;
9524}
9525_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009526if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009527 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009528fi
cristy8b350f62009-11-15 23:12:43 +00009529rm -f core conftest.err conftest.$ac_objext \
9530 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009531 ac_cv_sys_largefile_source=unknown
9532 break
9533done
9534fi
cristy8b350f62009-11-15 23:12:43 +00009535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009536$as_echo "$ac_cv_sys_largefile_source" >&6; }
9537case $ac_cv_sys_largefile_source in #(
9538 no | unknown) ;;
9539 *)
9540cat >>confdefs.h <<_ACEOF
9541#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9542_ACEOF
9543;;
9544esac
9545rm -rf conftest*
9546
9547# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9548# in glibc 2.1.3, but that breaks too many other things.
9549# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9550if test $ac_cv_sys_largefile_source != unknown; then
9551
cristy8b350f62009-11-15 23:12:43 +00009552$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009553
9554fi
9555
9556LFS_CPPFLAGS=''
9557if test "$enable_largefile" != no; then
9558 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9559 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9560 else
cristy8b350f62009-11-15 23:12:43 +00009561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009562$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009563 if test "$cross_compiling" = yes; then :
9564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009565$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009566as_fn_error $? "cannot run test program while cross compiling
9567See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009568else
cristy8b350f62009-11-15 23:12:43 +00009569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009571#include <unistd.h>
9572 main () {
9573 exit(!(sizeof(off_t) == 8));
9574 }
cristyda16f162011-02-19 23:52:17 +00009575int
9576main ()
9577{
9578
9579 ;
9580 return 0;
9581}
cristy3ed852e2009-09-05 21:47:34 +00009582_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009583if ac_fn_c_try_run "$LINENO"; then :
9584 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009585
cristy8b350f62009-11-15 23:12:43 +00009586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009587$as_echo "yes" >&6; }
9588else
cristy8b350f62009-11-15 23:12:43 +00009589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009590$as_echo "no" >&6; }
9591fi
cristy8b350f62009-11-15 23:12:43 +00009592rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9593 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009594fi
9595
cristy3ed852e2009-09-05 21:47:34 +00009596 fi
9597 if test "$ac_cv_sys_large_files" != 'no'; then
9598 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9599 fi
9600 if test "$ac_cv_sys_largefile_source" != 'no'; then
9601 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9602 fi
9603fi
9604
9605
9606#
9607# Configure libtool & libltdl
9608#
9609# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009610enable_dlopen=yes
9611
9612
9613
9614case `pwd` in
9615 *\ * | *\ *)
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9617$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9618esac
9619
9620
9621
cristyda16f162011-02-19 23:52:17 +00009622macro_version='2.4'
9623macro_revision='1.3293'
cristy73bd4a52010-10-05 11:24:23 +00009624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637ltmain="$ac_aux_dir/ltmain.sh"
9638
cristy0c60a692010-11-04 01:09:47 +00009639# Backslashify metacharacters that are still active within
9640# double-quoted strings.
9641sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9642
9643# Same as above, but do not quote variable references.
9644double_quote_subst='s/\(["`\\]\)/\\\1/g'
9645
9646# Sed substitution to delay expansion of an escaped shell variable in a
9647# double_quote_subst'ed string.
9648delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9649
9650# Sed substitution to delay expansion of an escaped single quote.
9651delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9652
9653# Sed substitution to avoid accidental globbing in evaled expressions
9654no_glob_subst='s/\*/\\\*/g'
9655
cristy73bd4a52010-10-05 11:24:23 +00009656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9657$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009658if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009659 $as_echo_n "(cached) " >&6
9660else
9661 if test -n "$NM"; then
9662 # Let the user override the test.
9663 lt_cv_path_NM="$NM"
9664else
9665 lt_nm_to_check="${ac_tool_prefix}nm"
9666 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9667 lt_nm_to_check="$lt_nm_to_check nm"
9668 fi
9669 for lt_tmp_nm in $lt_nm_to_check; do
9670 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9671 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9672 IFS="$lt_save_ifs"
9673 test -z "$ac_dir" && ac_dir=.
9674 tmp_nm="$ac_dir/$lt_tmp_nm"
9675 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9676 # Check to see if the nm accepts a BSD-compat flag.
9677 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9678 # nm: unknown option "B" ignored
9679 # Tru64's nm complains that /dev/null is an invalid object file
9680 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9681 */dev/null* | *'Invalid file or object type'*)
9682 lt_cv_path_NM="$tmp_nm -B"
9683 break
9684 ;;
9685 *)
9686 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9687 */dev/null*)
9688 lt_cv_path_NM="$tmp_nm -p"
9689 break
9690 ;;
9691 *)
9692 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9693 continue # so that we can try to find one that supports BSD flags
9694 ;;
9695 esac
9696 ;;
9697 esac
9698 fi
9699 done
9700 IFS="$lt_save_ifs"
9701 done
9702 : ${lt_cv_path_NM=no}
9703fi
9704fi
9705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9706$as_echo "$lt_cv_path_NM" >&6; }
9707if test "$lt_cv_path_NM" != "no"; then
9708 NM="$lt_cv_path_NM"
9709else
9710 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009711 if test -n "$DUMPBIN"; then :
9712 # Let the user override the test.
9713 else
9714 if test -n "$ac_tool_prefix"; then
9715 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009716 do
9717 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9718set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9720$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009721if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009722 $as_echo_n "(cached) " >&6
9723else
9724 if test -n "$DUMPBIN"; then
9725 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9726else
9727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9728for as_dir in $PATH
9729do
9730 IFS=$as_save_IFS
9731 test -z "$as_dir" && as_dir=.
9732 for ac_exec_ext in '' $ac_executable_extensions; do
9733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9734 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9736 break 2
9737 fi
9738done
9739 done
9740IFS=$as_save_IFS
9741
9742fi
9743fi
9744DUMPBIN=$ac_cv_prog_DUMPBIN
9745if test -n "$DUMPBIN"; then
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9747$as_echo "$DUMPBIN" >&6; }
9748else
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9750$as_echo "no" >&6; }
9751fi
9752
9753
9754 test -n "$DUMPBIN" && break
9755 done
9756fi
9757if test -z "$DUMPBIN"; then
9758 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009759 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009760do
9761 # Extract the first word of "$ac_prog", so it can be a program name with args.
9762set dummy $ac_prog; ac_word=$2
9763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9764$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009765if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009766 $as_echo_n "(cached) " >&6
9767else
9768 if test -n "$ac_ct_DUMPBIN"; then
9769 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9770else
9771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9772for as_dir in $PATH
9773do
9774 IFS=$as_save_IFS
9775 test -z "$as_dir" && as_dir=.
9776 for ac_exec_ext in '' $ac_executable_extensions; do
9777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9778 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9780 break 2
9781 fi
9782done
9783 done
9784IFS=$as_save_IFS
9785
9786fi
9787fi
9788ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9789if test -n "$ac_ct_DUMPBIN"; then
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9791$as_echo "$ac_ct_DUMPBIN" >&6; }
9792else
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794$as_echo "no" >&6; }
9795fi
9796
9797
9798 test -n "$ac_ct_DUMPBIN" && break
9799done
9800
9801 if test "x$ac_ct_DUMPBIN" = x; then
9802 DUMPBIN=":"
9803 else
9804 case $cross_compiling:$ac_tool_warned in
9805yes:)
9806{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9808ac_tool_warned=yes ;;
9809esac
9810 DUMPBIN=$ac_ct_DUMPBIN
9811 fi
9812fi
9813
cristy0c60a692010-11-04 01:09:47 +00009814 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9815 *COFF*)
9816 DUMPBIN="$DUMPBIN -symbols"
9817 ;;
9818 *)
9819 DUMPBIN=:
9820 ;;
9821 esac
9822 fi
cristy73bd4a52010-10-05 11:24:23 +00009823
9824 if test "$DUMPBIN" != ":"; then
9825 NM="$DUMPBIN"
9826 fi
9827fi
9828test -z "$NM" && NM=nm
9829
9830
9831
9832
9833
9834
9835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9836$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009837if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009838 $as_echo_n "(cached) " >&6
9839else
9840 lt_cv_nm_interface="BSD nm"
9841 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009842 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009843 (eval "$ac_compile" 2>conftest.err)
9844 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009845 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009846 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9847 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009848 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009849 cat conftest.out >&5
9850 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9851 lt_cv_nm_interface="MS dumpbin"
9852 fi
9853 rm -f conftest*
9854fi
9855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9856$as_echo "$lt_cv_nm_interface" >&6; }
9857
9858# find the maximum length of command line arguments
9859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9860$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009861if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009862 $as_echo_n "(cached) " >&6
9863else
9864 i=0
9865 teststring="ABCD"
9866
9867 case $build_os in
9868 msdosdjgpp*)
9869 # On DJGPP, this test can blow up pretty badly due to problems in libc
9870 # (any single argument exceeding 2000 bytes causes a buffer overrun
9871 # during glob expansion). Even if it were fixed, the result of this
9872 # check would be larger than it should be.
9873 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9874 ;;
9875
9876 gnu*)
9877 # Under GNU Hurd, this test is not required because there is
9878 # no limit to the length of command line arguments.
9879 # Libtool will interpret -1 as no limit whatsoever
9880 lt_cv_sys_max_cmd_len=-1;
9881 ;;
9882
9883 cygwin* | mingw* | cegcc*)
9884 # On Win9x/ME, this test blows up -- it succeeds, but takes
9885 # about 5 minutes as the teststring grows exponentially.
9886 # Worse, since 9x/ME are not pre-emptively multitasking,
9887 # you end up with a "frozen" computer, even though with patience
9888 # the test eventually succeeds (with a max line length of 256k).
9889 # Instead, let's just punt: use the minimum linelength reported by
9890 # all of the supported platforms: 8192 (on NT/2K/XP).
9891 lt_cv_sys_max_cmd_len=8192;
9892 ;;
9893
cristy0c60a692010-11-04 01:09:47 +00009894 mint*)
9895 # On MiNT this can take a long time and run out of memory.
9896 lt_cv_sys_max_cmd_len=8192;
9897 ;;
9898
cristy73bd4a52010-10-05 11:24:23 +00009899 amigaos*)
9900 # On AmigaOS with pdksh, this test takes hours, literally.
9901 # So we just punt and use a minimum line length of 8192.
9902 lt_cv_sys_max_cmd_len=8192;
9903 ;;
9904
9905 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9906 # This has been around since 386BSD, at least. Likely further.
9907 if test -x /sbin/sysctl; then
9908 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9909 elif test -x /usr/sbin/sysctl; then
9910 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9911 else
9912 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9913 fi
9914 # And add a safety zone
9915 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9916 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9917 ;;
9918
9919 interix*)
9920 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9921 lt_cv_sys_max_cmd_len=196608
9922 ;;
9923
9924 osf*)
9925 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9926 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9927 # nice to cause kernel panics so lets avoid the loop below.
9928 # First set a reasonable default.
9929 lt_cv_sys_max_cmd_len=16384
9930 #
9931 if test -x /sbin/sysconfig; then
9932 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9933 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9934 esac
9935 fi
9936 ;;
9937 sco3.2v5*)
9938 lt_cv_sys_max_cmd_len=102400
9939 ;;
9940 sysv5* | sco5v6* | sysv4.2uw2*)
9941 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9942 if test -n "$kargmax"; then
9943 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9944 else
9945 lt_cv_sys_max_cmd_len=32768
9946 fi
9947 ;;
9948 *)
9949 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9950 if test -n "$lt_cv_sys_max_cmd_len"; then
9951 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9952 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9953 else
9954 # Make teststring a little bigger before we do anything with it.
9955 # a 1K string should be a reasonable start.
9956 for i in 1 2 3 4 5 6 7 8 ; do
9957 teststring=$teststring$teststring
9958 done
9959 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9960 # If test is not a shell built-in, we'll probably end up computing a
9961 # maximum length that is only half of the actual maximum length, but
9962 # we can't tell.
cristy0c60a692010-11-04 01:09:47 +00009963 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9964 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +00009965 test $i != 17 # 1/2 MB should be enough
9966 do
9967 i=`expr $i + 1`
9968 teststring=$teststring$teststring
9969 done
9970 # Only check the string length outside the loop.
9971 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9972 teststring=
9973 # Add a significant safety factor because C++ compilers can tack on
9974 # massive amounts of additional arguments before passing them to the
9975 # linker. It appears as though 1/2 is a usable value.
9976 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9977 fi
9978 ;;
9979 esac
9980
9981fi
9982
9983if test -n $lt_cv_sys_max_cmd_len ; then
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9985$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9986else
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9988$as_echo "none" >&6; }
9989fi
9990max_cmd_len=$lt_cv_sys_max_cmd_len
9991
9992
9993
9994
9995
9996
9997: ${CP="cp -f"}
9998: ${MV="mv -f"}
9999: ${RM="rm -f"}
10000
10001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10002$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10003# Try some XSI features
10004xsi_shell=no
10005( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010006 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10007 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010008 && eval 'test $(( 1 + 1 )) -eq 2 \
10009 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10010 && xsi_shell=yes
10011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10012$as_echo "$xsi_shell" >&6; }
10013
10014
10015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10016$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10017lt_shell_append=no
10018( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10019 >/dev/null 2>&1 \
10020 && lt_shell_append=yes
10021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10022$as_echo "$lt_shell_append" >&6; }
10023
10024
10025if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10026 lt_unset=unset
10027else
10028 lt_unset=false
10029fi
10030
10031
10032
10033
10034
10035# test EBCDIC or ASCII
10036case `echo X|tr X '\101'` in
10037 A) # ASCII based system
10038 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10039 lt_SP2NL='tr \040 \012'
10040 lt_NL2SP='tr \015\012 \040\040'
10041 ;;
10042 *) # EBCDIC based system
10043 lt_SP2NL='tr \100 \n'
10044 lt_NL2SP='tr \r\n \100\100'
10045 ;;
10046esac
10047
10048
10049
10050
10051
10052
10053
10054
10055
cristyda16f162011-02-19 23:52:17 +000010056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10057$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10058if ${lt_cv_to_host_file_cmd+:} false; then :
10059 $as_echo_n "(cached) " >&6
10060else
10061 case $host in
10062 *-*-mingw* )
10063 case $build in
10064 *-*-mingw* ) # actually msys
10065 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10066 ;;
10067 *-*-cygwin* )
10068 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10069 ;;
10070 * ) # otherwise, assume *nix
10071 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10072 ;;
10073 esac
10074 ;;
10075 *-*-cygwin* )
10076 case $build in
10077 *-*-mingw* ) # actually msys
10078 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10079 ;;
10080 *-*-cygwin* )
10081 lt_cv_to_host_file_cmd=func_convert_file_noop
10082 ;;
10083 * ) # otherwise, assume *nix
10084 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10085 ;;
10086 esac
10087 ;;
10088 * ) # unhandled hosts (and "normal" native builds)
10089 lt_cv_to_host_file_cmd=func_convert_file_noop
10090 ;;
10091esac
10092
10093fi
10094
10095to_host_file_cmd=$lt_cv_to_host_file_cmd
10096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10097$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10098
10099
10100
10101
10102
10103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10104$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10105if ${lt_cv_to_tool_file_cmd+:} false; then :
10106 $as_echo_n "(cached) " >&6
10107else
10108 #assume ordinary cross tools, or native build.
10109lt_cv_to_tool_file_cmd=func_convert_file_noop
10110case $host in
10111 *-*-mingw* )
10112 case $build in
10113 *-*-mingw* ) # actually msys
10114 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10115 ;;
10116 esac
10117 ;;
10118esac
10119
10120fi
10121
10122to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10124$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10125
10126
10127
10128
10129
cristy73bd4a52010-10-05 11:24:23 +000010130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10131$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010132if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010133 $as_echo_n "(cached) " >&6
10134else
10135 lt_cv_ld_reload_flag='-r'
10136fi
10137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10138$as_echo "$lt_cv_ld_reload_flag" >&6; }
10139reload_flag=$lt_cv_ld_reload_flag
10140case $reload_flag in
10141"" | " "*) ;;
10142*) reload_flag=" $reload_flag" ;;
10143esac
10144reload_cmds='$LD$reload_flag -o $output$reload_objs'
10145case $host_os in
cristyda16f162011-02-19 23:52:17 +000010146 cygwin* | mingw* | pw32* | cegcc*)
10147 if test "$GCC" != yes; then
10148 reload_cmds=false
10149 fi
10150 ;;
cristy73bd4a52010-10-05 11:24:23 +000010151 darwin*)
10152 if test "$GCC" = yes; then
10153 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10154 else
10155 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10156 fi
10157 ;;
10158esac
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168if test -n "$ac_tool_prefix"; then
10169 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10170set dummy ${ac_tool_prefix}objdump; ac_word=$2
10171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10172$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010173if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010174 $as_echo_n "(cached) " >&6
10175else
10176 if test -n "$OBJDUMP"; then
10177 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10178else
10179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10180for as_dir in $PATH
10181do
10182 IFS=$as_save_IFS
10183 test -z "$as_dir" && as_dir=.
10184 for ac_exec_ext in '' $ac_executable_extensions; do
10185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10186 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10188 break 2
10189 fi
10190done
10191 done
10192IFS=$as_save_IFS
10193
10194fi
10195fi
10196OBJDUMP=$ac_cv_prog_OBJDUMP
10197if test -n "$OBJDUMP"; then
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10199$as_echo "$OBJDUMP" >&6; }
10200else
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10202$as_echo "no" >&6; }
10203fi
10204
10205
10206fi
10207if test -z "$ac_cv_prog_OBJDUMP"; then
10208 ac_ct_OBJDUMP=$OBJDUMP
10209 # Extract the first word of "objdump", so it can be a program name with args.
10210set dummy objdump; ac_word=$2
10211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10212$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010213if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010214 $as_echo_n "(cached) " >&6
10215else
10216 if test -n "$ac_ct_OBJDUMP"; then
10217 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10218else
10219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10220for as_dir in $PATH
10221do
10222 IFS=$as_save_IFS
10223 test -z "$as_dir" && as_dir=.
10224 for ac_exec_ext in '' $ac_executable_extensions; do
10225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10226 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10228 break 2
10229 fi
10230done
10231 done
10232IFS=$as_save_IFS
10233
10234fi
10235fi
10236ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10237if test -n "$ac_ct_OBJDUMP"; then
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10239$as_echo "$ac_ct_OBJDUMP" >&6; }
10240else
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10242$as_echo "no" >&6; }
10243fi
10244
10245 if test "x$ac_ct_OBJDUMP" = x; then
10246 OBJDUMP="false"
10247 else
10248 case $cross_compiling:$ac_tool_warned in
10249yes:)
10250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10252ac_tool_warned=yes ;;
10253esac
10254 OBJDUMP=$ac_ct_OBJDUMP
10255 fi
10256else
10257 OBJDUMP="$ac_cv_prog_OBJDUMP"
10258fi
10259
10260test -z "$OBJDUMP" && OBJDUMP=objdump
10261
10262
10263
10264
10265
10266
10267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10268$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010269if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010270 $as_echo_n "(cached) " >&6
10271else
10272 lt_cv_file_magic_cmd='$MAGIC_CMD'
10273lt_cv_file_magic_test_file=
10274lt_cv_deplibs_check_method='unknown'
10275# Need to set the preceding variable on all platforms that support
10276# interlibrary dependencies.
10277# 'none' -- dependencies not supported.
10278# `unknown' -- same as none, but documents that we really don't know.
10279# 'pass_all' -- all dependencies passed with no checks.
10280# 'test_compile' -- check by making test program.
10281# 'file_magic [[regex]]' -- check by looking for files in library path
10282# which responds to the $file_magic_cmd with a given extended regex.
10283# If you have `file' or equivalent on your system and you're not sure
10284# whether `pass_all' will *always* work, you probably want this one.
10285
10286case $host_os in
10287aix[4-9]*)
10288 lt_cv_deplibs_check_method=pass_all
10289 ;;
10290
10291beos*)
10292 lt_cv_deplibs_check_method=pass_all
10293 ;;
10294
10295bsdi[45]*)
10296 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10297 lt_cv_file_magic_cmd='/usr/bin/file -L'
10298 lt_cv_file_magic_test_file=/shlib/libc.so
10299 ;;
10300
10301cygwin*)
10302 # func_win32_libid is a shell function defined in ltmain.sh
10303 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10304 lt_cv_file_magic_cmd='func_win32_libid'
10305 ;;
10306
10307mingw* | pw32*)
10308 # Base MSYS/MinGW do not provide the 'file' command needed by
10309 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10310 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010311 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10312 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010313 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10314 lt_cv_file_magic_cmd='func_win32_libid'
10315 else
cristy0c60a692010-11-04 01:09:47 +000010316 # Keep this pattern in sync with the one in func_win32_libid.
10317 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 +000010318 lt_cv_file_magic_cmd='$OBJDUMP -f'
10319 fi
10320 ;;
10321
cristy0c60a692010-11-04 01:09:47 +000010322cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010323 # use the weaker test based on 'objdump'. See mingw*.
10324 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10325 lt_cv_file_magic_cmd='$OBJDUMP -f'
10326 ;;
10327
10328darwin* | rhapsody*)
10329 lt_cv_deplibs_check_method=pass_all
10330 ;;
10331
10332freebsd* | dragonfly*)
10333 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10334 case $host_cpu in
10335 i*86 )
10336 # Not sure whether the presence of OpenBSD here was a mistake.
10337 # Let's accept both of them until this is cleared up.
10338 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10339 lt_cv_file_magic_cmd=/usr/bin/file
10340 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10341 ;;
10342 esac
10343 else
10344 lt_cv_deplibs_check_method=pass_all
10345 fi
10346 ;;
10347
10348gnu*)
10349 lt_cv_deplibs_check_method=pass_all
10350 ;;
10351
cristy0c60a692010-11-04 01:09:47 +000010352haiku*)
10353 lt_cv_deplibs_check_method=pass_all
10354 ;;
10355
cristy73bd4a52010-10-05 11:24:23 +000010356hpux10.20* | hpux11*)
10357 lt_cv_file_magic_cmd=/usr/bin/file
10358 case $host_cpu in
10359 ia64*)
10360 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10361 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10362 ;;
10363 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010364 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 +000010365 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10366 ;;
10367 *)
cristy0c60a692010-11-04 01:09:47 +000010368 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 +000010369 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10370 ;;
10371 esac
10372 ;;
10373
10374interix[3-9]*)
10375 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10377 ;;
10378
10379irix5* | irix6* | nonstopux*)
10380 case $LD in
10381 *-32|*"-32 ") libmagic=32-bit;;
10382 *-n32|*"-n32 ") libmagic=N32;;
10383 *-64|*"-64 ") libmagic=64-bit;;
10384 *) libmagic=never-match;;
10385 esac
10386 lt_cv_deplibs_check_method=pass_all
10387 ;;
10388
10389# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000010390linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010391 lt_cv_deplibs_check_method=pass_all
10392 ;;
10393
10394netbsd*)
10395 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10397 else
10398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10399 fi
10400 ;;
10401
10402newos6*)
10403 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10404 lt_cv_file_magic_cmd=/usr/bin/file
10405 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10406 ;;
10407
10408*nto* | *qnx*)
10409 lt_cv_deplibs_check_method=pass_all
10410 ;;
10411
10412openbsd*)
10413 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10414 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10415 else
10416 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10417 fi
10418 ;;
10419
10420osf3* | osf4* | osf5*)
10421 lt_cv_deplibs_check_method=pass_all
10422 ;;
10423
10424rdos*)
10425 lt_cv_deplibs_check_method=pass_all
10426 ;;
10427
10428solaris*)
10429 lt_cv_deplibs_check_method=pass_all
10430 ;;
10431
10432sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10433 lt_cv_deplibs_check_method=pass_all
10434 ;;
10435
10436sysv4 | sysv4.3*)
10437 case $host_vendor in
10438 motorola)
10439 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]'
10440 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10441 ;;
10442 ncr)
10443 lt_cv_deplibs_check_method=pass_all
10444 ;;
10445 sequent)
10446 lt_cv_file_magic_cmd='/bin/file'
10447 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10448 ;;
10449 sni)
10450 lt_cv_file_magic_cmd='/bin/file'
10451 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10452 lt_cv_file_magic_test_file=/lib/libc.so
10453 ;;
10454 siemens)
10455 lt_cv_deplibs_check_method=pass_all
10456 ;;
10457 pc)
10458 lt_cv_deplibs_check_method=pass_all
10459 ;;
10460 esac
10461 ;;
10462
10463tpf*)
10464 lt_cv_deplibs_check_method=pass_all
10465 ;;
10466esac
10467
10468fi
10469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10470$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010471
10472file_magic_glob=
10473want_nocaseglob=no
10474if test "$build" = "$host"; then
10475 case $host_os in
10476 mingw* | pw32*)
10477 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10478 want_nocaseglob=yes
10479 else
10480 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10481 fi
10482 ;;
10483 esac
10484fi
10485
cristy73bd4a52010-10-05 11:24:23 +000010486file_magic_cmd=$lt_cv_file_magic_cmd
10487deplibs_check_method=$lt_cv_deplibs_check_method
10488test -z "$deplibs_check_method" && deplibs_check_method=unknown
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
cristyda16f162011-02-19 23:52:17 +000010501
10502
10503
10504
10505
10506
10507
10508
10509
10510
cristy73bd4a52010-10-05 11:24:23 +000010511if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010512 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10513set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10515$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010516if ${ac_cv_prog_DLLTOOL+:} false; then :
10517 $as_echo_n "(cached) " >&6
10518else
10519 if test -n "$DLLTOOL"; then
10520 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10521else
10522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10523for as_dir in $PATH
10524do
10525 IFS=$as_save_IFS
10526 test -z "$as_dir" && as_dir=.
10527 for ac_exec_ext in '' $ac_executable_extensions; do
10528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10529 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10531 break 2
10532 fi
10533done
10534 done
10535IFS=$as_save_IFS
10536
10537fi
10538fi
10539DLLTOOL=$ac_cv_prog_DLLTOOL
10540if test -n "$DLLTOOL"; then
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10542$as_echo "$DLLTOOL" >&6; }
10543else
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545$as_echo "no" >&6; }
10546fi
10547
10548
10549fi
10550if test -z "$ac_cv_prog_DLLTOOL"; then
10551 ac_ct_DLLTOOL=$DLLTOOL
10552 # Extract the first word of "dlltool", so it can be a program name with args.
10553set dummy dlltool; ac_word=$2
10554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10555$as_echo_n "checking for $ac_word... " >&6; }
10556if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10557 $as_echo_n "(cached) " >&6
10558else
10559 if test -n "$ac_ct_DLLTOOL"; then
10560 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10561else
10562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10563for as_dir in $PATH
10564do
10565 IFS=$as_save_IFS
10566 test -z "$as_dir" && as_dir=.
10567 for ac_exec_ext in '' $ac_executable_extensions; do
10568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10569 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10571 break 2
10572 fi
10573done
10574 done
10575IFS=$as_save_IFS
10576
10577fi
10578fi
10579ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10580if test -n "$ac_ct_DLLTOOL"; then
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10582$as_echo "$ac_ct_DLLTOOL" >&6; }
10583else
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10585$as_echo "no" >&6; }
10586fi
10587
10588 if test "x$ac_ct_DLLTOOL" = x; then
10589 DLLTOOL="false"
10590 else
10591 case $cross_compiling:$ac_tool_warned in
10592yes:)
10593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10595ac_tool_warned=yes ;;
10596esac
10597 DLLTOOL=$ac_ct_DLLTOOL
10598 fi
10599else
10600 DLLTOOL="$ac_cv_prog_DLLTOOL"
10601fi
10602
10603test -z "$DLLTOOL" && DLLTOOL=dlltool
10604
10605
10606
10607
10608
10609
10610
10611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10612$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10613if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10614 $as_echo_n "(cached) " >&6
10615else
10616 lt_cv_sharedlib_from_linklib_cmd='unknown'
10617
10618case $host_os in
10619cygwin* | mingw* | pw32* | cegcc*)
10620 # two different shell functions defined in ltmain.sh
10621 # decide which to use based on capabilities of $DLLTOOL
10622 case `$DLLTOOL --help 2>&1` in
10623 *--identify-strict*)
10624 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10625 ;;
10626 *)
10627 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10628 ;;
10629 esac
10630 ;;
10631*)
10632 # fallback: assume linklib IS sharedlib
10633 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10634 ;;
10635esac
10636
10637fi
10638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10639$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10640sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10641test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10642
10643
10644
10645
10646
10647
10648
10649if test -n "$ac_tool_prefix"; then
10650 for ac_prog in ar
10651 do
10652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10653set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10655$as_echo_n "checking for $ac_word... " >&6; }
10656if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010657 $as_echo_n "(cached) " >&6
10658else
10659 if test -n "$AR"; then
10660 ac_cv_prog_AR="$AR" # Let the user override the test.
10661else
10662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10663for as_dir in $PATH
10664do
10665 IFS=$as_save_IFS
10666 test -z "$as_dir" && as_dir=.
10667 for ac_exec_ext in '' $ac_executable_extensions; do
10668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristyda16f162011-02-19 23:52:17 +000010669 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10671 break 2
10672 fi
10673done
10674 done
10675IFS=$as_save_IFS
10676
10677fi
10678fi
10679AR=$ac_cv_prog_AR
10680if test -n "$AR"; then
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10682$as_echo "$AR" >&6; }
10683else
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685$as_echo "no" >&6; }
10686fi
10687
10688
cristyda16f162011-02-19 23:52:17 +000010689 test -n "$AR" && break
10690 done
cristy73bd4a52010-10-05 11:24:23 +000010691fi
cristyda16f162011-02-19 23:52:17 +000010692if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010693 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010694 for ac_prog in ar
10695do
10696 # Extract the first word of "$ac_prog", so it can be a program name with args.
10697set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10699$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010700if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010701 $as_echo_n "(cached) " >&6
10702else
10703 if test -n "$ac_ct_AR"; then
10704 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10705else
10706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10707for as_dir in $PATH
10708do
10709 IFS=$as_save_IFS
10710 test -z "$as_dir" && as_dir=.
10711 for ac_exec_ext in '' $ac_executable_extensions; do
10712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristyda16f162011-02-19 23:52:17 +000010713 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10715 break 2
10716 fi
10717done
10718 done
10719IFS=$as_save_IFS
10720
10721fi
10722fi
10723ac_ct_AR=$ac_cv_prog_ac_ct_AR
10724if test -n "$ac_ct_AR"; then
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10726$as_echo "$ac_ct_AR" >&6; }
10727else
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10729$as_echo "no" >&6; }
10730fi
10731
cristyda16f162011-02-19 23:52:17 +000010732
10733 test -n "$ac_ct_AR" && break
10734done
10735
cristy73bd4a52010-10-05 11:24:23 +000010736 if test "x$ac_ct_AR" = x; then
10737 AR="false"
10738 else
10739 case $cross_compiling:$ac_tool_warned in
10740yes:)
10741{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10743ac_tool_warned=yes ;;
10744esac
10745 AR=$ac_ct_AR
10746 fi
cristy73bd4a52010-10-05 11:24:23 +000010747fi
10748
cristyda16f162011-02-19 23:52:17 +000010749: ${AR=ar}
10750: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
cristyda16f162011-02-19 23:52:17 +000010762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10763$as_echo_n "checking for archiver @FILE support... " >&6; }
10764if ${lt_cv_ar_at_file+:} false; then :
10765 $as_echo_n "(cached) " >&6
10766else
10767 lt_cv_ar_at_file=no
10768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10769/* end confdefs.h. */
10770
10771int
10772main ()
10773{
10774
10775 ;
10776 return 0;
10777}
10778_ACEOF
10779if ac_fn_c_try_compile "$LINENO"; then :
10780 echo conftest.$ac_objext > conftest.lst
10781 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10783 (eval $lt_ar_try) 2>&5
10784 ac_status=$?
10785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10786 test $ac_status = 0; }
10787 if test "$ac_status" -eq 0; then
10788 # Ensure the archiver fails upon bogus file names.
10789 rm -f conftest.$ac_objext libconftest.a
10790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10791 (eval $lt_ar_try) 2>&5
10792 ac_status=$?
10793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10794 test $ac_status = 0; }
10795 if test "$ac_status" -ne 0; then
10796 lt_cv_ar_at_file=@
10797 fi
10798 fi
10799 rm -f conftest.* libconftest.a
10800
10801fi
10802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10803
10804fi
10805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10806$as_echo "$lt_cv_ar_at_file" >&6; }
10807
10808if test "x$lt_cv_ar_at_file" = xno; then
10809 archiver_list_spec=
10810else
10811 archiver_list_spec=$lt_cv_ar_at_file
10812fi
10813
10814
10815
10816
10817
10818
10819
cristy73bd4a52010-10-05 11:24:23 +000010820if test -n "$ac_tool_prefix"; then
10821 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10822set dummy ${ac_tool_prefix}strip; ac_word=$2
10823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10824$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010825if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010826 $as_echo_n "(cached) " >&6
10827else
10828 if test -n "$STRIP"; then
10829 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10830else
10831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10832for as_dir in $PATH
10833do
10834 IFS=$as_save_IFS
10835 test -z "$as_dir" && as_dir=.
10836 for ac_exec_ext in '' $ac_executable_extensions; do
10837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10838 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10840 break 2
10841 fi
10842done
10843 done
10844IFS=$as_save_IFS
10845
10846fi
10847fi
10848STRIP=$ac_cv_prog_STRIP
10849if test -n "$STRIP"; then
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10851$as_echo "$STRIP" >&6; }
10852else
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10854$as_echo "no" >&6; }
10855fi
10856
10857
10858fi
10859if test -z "$ac_cv_prog_STRIP"; then
10860 ac_ct_STRIP=$STRIP
10861 # Extract the first word of "strip", so it can be a program name with args.
10862set dummy strip; ac_word=$2
10863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10864$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010865if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010866 $as_echo_n "(cached) " >&6
10867else
10868 if test -n "$ac_ct_STRIP"; then
10869 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10870else
10871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10872for as_dir in $PATH
10873do
10874 IFS=$as_save_IFS
10875 test -z "$as_dir" && as_dir=.
10876 for ac_exec_ext in '' $ac_executable_extensions; do
10877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10878 ac_cv_prog_ac_ct_STRIP="strip"
10879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10880 break 2
10881 fi
10882done
10883 done
10884IFS=$as_save_IFS
10885
10886fi
10887fi
10888ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10889if test -n "$ac_ct_STRIP"; then
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10891$as_echo "$ac_ct_STRIP" >&6; }
10892else
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894$as_echo "no" >&6; }
10895fi
10896
10897 if test "x$ac_ct_STRIP" = x; then
10898 STRIP=":"
10899 else
10900 case $cross_compiling:$ac_tool_warned in
10901yes:)
10902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10904ac_tool_warned=yes ;;
10905esac
10906 STRIP=$ac_ct_STRIP
10907 fi
10908else
10909 STRIP="$ac_cv_prog_STRIP"
10910fi
10911
10912test -z "$STRIP" && STRIP=:
10913
10914
10915
10916
10917
10918
10919if test -n "$ac_tool_prefix"; then
10920 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10921set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10923$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010924if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010925 $as_echo_n "(cached) " >&6
10926else
10927 if test -n "$RANLIB"; then
10928 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10929else
10930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10931for as_dir in $PATH
10932do
10933 IFS=$as_save_IFS
10934 test -z "$as_dir" && as_dir=.
10935 for ac_exec_ext in '' $ac_executable_extensions; do
10936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10937 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10939 break 2
10940 fi
10941done
10942 done
10943IFS=$as_save_IFS
10944
10945fi
10946fi
10947RANLIB=$ac_cv_prog_RANLIB
10948if test -n "$RANLIB"; then
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10950$as_echo "$RANLIB" >&6; }
10951else
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10953$as_echo "no" >&6; }
10954fi
10955
10956
10957fi
10958if test -z "$ac_cv_prog_RANLIB"; then
10959 ac_ct_RANLIB=$RANLIB
10960 # Extract the first word of "ranlib", so it can be a program name with args.
10961set dummy ranlib; ac_word=$2
10962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10963$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010964if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010965 $as_echo_n "(cached) " >&6
10966else
10967 if test -n "$ac_ct_RANLIB"; then
10968 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10969else
10970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10971for as_dir in $PATH
10972do
10973 IFS=$as_save_IFS
10974 test -z "$as_dir" && as_dir=.
10975 for ac_exec_ext in '' $ac_executable_extensions; do
10976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10977 ac_cv_prog_ac_ct_RANLIB="ranlib"
10978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10979 break 2
10980 fi
10981done
10982 done
10983IFS=$as_save_IFS
10984
10985fi
10986fi
10987ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10988if test -n "$ac_ct_RANLIB"; then
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10990$as_echo "$ac_ct_RANLIB" >&6; }
10991else
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10993$as_echo "no" >&6; }
10994fi
10995
10996 if test "x$ac_ct_RANLIB" = x; then
10997 RANLIB=":"
10998 else
10999 case $cross_compiling:$ac_tool_warned in
11000yes:)
11001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11003ac_tool_warned=yes ;;
11004esac
11005 RANLIB=$ac_ct_RANLIB
11006 fi
11007else
11008 RANLIB="$ac_cv_prog_RANLIB"
11009fi
11010
11011test -z "$RANLIB" && RANLIB=:
11012
11013
11014
11015
11016
11017
11018# Determine commands to create old-style static archives.
11019old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11020old_postinstall_cmds='chmod 644 $oldlib'
11021old_postuninstall_cmds=
11022
11023if test -n "$RANLIB"; then
11024 case $host_os in
11025 openbsd*)
11026 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11027 ;;
11028 *)
11029 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11030 ;;
11031 esac
11032 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11033fi
11034
cristy0c60a692010-11-04 01:09:47 +000011035case $host_os in
11036 darwin*)
11037 lock_old_archive_extraction=yes ;;
11038 *)
11039 lock_old_archive_extraction=no ;;
11040esac
11041
11042
11043
11044
11045
11046
cristy73bd4a52010-10-05 11:24:23 +000011047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080# If no C compiler was specified, use CC.
11081LTCC=${LTCC-"$CC"}
11082
11083# If no C compiler flags were specified, use CFLAGS.
11084LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11085
11086# Allow CC to be a program name with arguments.
11087compiler=$CC
11088
11089
11090# Check for command to grab the raw symbol name followed by C symbol from nm.
11091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11092$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011093if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011094 $as_echo_n "(cached) " >&6
11095else
11096
11097# These are sane defaults that work on at least a few old systems.
11098# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11099
11100# Character class describing NM global symbol codes.
11101symcode='[BCDEGRST]'
11102
11103# Regexp to match symbols that can be accessed directly from C.
11104sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11105
11106# Define system-specific variables.
11107case $host_os in
11108aix*)
11109 symcode='[BCDT]'
11110 ;;
11111cygwin* | mingw* | pw32* | cegcc*)
11112 symcode='[ABCDGISTW]'
11113 ;;
11114hpux*)
11115 if test "$host_cpu" = ia64; then
11116 symcode='[ABCDEGRST]'
11117 fi
11118 ;;
11119irix* | nonstopux*)
11120 symcode='[BCDEGRST]'
11121 ;;
11122osf*)
11123 symcode='[BCDEGQRST]'
11124 ;;
11125solaris*)
11126 symcode='[BDRT]'
11127 ;;
11128sco3.2v5*)
11129 symcode='[DT]'
11130 ;;
11131sysv4.2uw2*)
11132 symcode='[DT]'
11133 ;;
11134sysv5* | sco5v6* | unixware* | OpenUNIX*)
11135 symcode='[ABDT]'
11136 ;;
11137sysv4)
11138 symcode='[DFNSTU]'
11139 ;;
11140esac
11141
11142# If we're using GNU nm, then use its standard symbol codes.
11143case `$NM -V 2>&1` in
11144*GNU* | *'with BFD'*)
11145 symcode='[ABCDGIRSTW]' ;;
11146esac
11147
11148# Transform an extracted symbol line into a proper C declaration.
11149# Some systems (esp. on ia64) link data and code symbols differently,
11150# so use this general approach.
11151lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11152
11153# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011154lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11155lt_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'"
cristy73bd4a52010-10-05 11:24:23 +000011156
11157# Handle CRLF in mingw tool chain
11158opt_cr=
11159case $build_os in
11160mingw*)
11161 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11162 ;;
11163esac
11164
11165# Try without a prefix underscore, then with it.
11166for ac_symprfx in "" "_"; do
11167
11168 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11169 symxfrm="\\1 $ac_symprfx\\2 \\2"
11170
11171 # Write the raw and C identifiers.
11172 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11173 # Fake it for dumpbin and say T for any non-static function
11174 # and D for any global variable.
11175 # Also find C++ and __fastcall symbols from MSVC++,
11176 # which start with @ or ?.
11177 lt_cv_sys_global_symbol_pipe="$AWK '"\
11178" {last_section=section; section=\$ 3};"\
11179" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11180" \$ 0!~/External *\|/{next};"\
11181" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11182" {if(hide[section]) next};"\
11183" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11184" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11185" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11186" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11187" ' prfx=^$ac_symprfx"
11188 else
11189 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11190 fi
cristyda16f162011-02-19 23:52:17 +000011191 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011192
11193 # Check to see that the pipe works correctly.
11194 pipe_works=no
11195
11196 rm -f conftest*
11197 cat > conftest.$ac_ext <<_LT_EOF
11198#ifdef __cplusplus
11199extern "C" {
11200#endif
11201char nm_test_var;
11202void nm_test_func(void);
11203void nm_test_func(void){}
11204#ifdef __cplusplus
11205}
11206#endif
11207int main(){nm_test_var='a';nm_test_func();return(0);}
11208_LT_EOF
11209
11210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11211 (eval $ac_compile) 2>&5
11212 ac_status=$?
11213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11214 test $ac_status = 0; }; then
11215 # Now try to grab the symbols.
11216 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11218 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011219 ac_status=$?
11220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11221 test $ac_status = 0; } && test -s "$nlist"; then
11222 # Try sorting and uniquifying the output.
11223 if sort "$nlist" | uniq > "$nlist"T; then
11224 mv -f "$nlist"T "$nlist"
11225 else
11226 rm -f "$nlist"T
11227 fi
11228
11229 # Make sure that we snagged all the symbols we need.
11230 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11231 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11232 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011233/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11234#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11235/* DATA imports from DLLs on WIN32 con't be const, because runtime
11236 relocations are performed -- see ld's documentation on pseudo-relocs. */
11237# define LT_DLSYM_CONST
11238#elif defined(__osf__)
11239/* This system does not cope well with relocations in const data. */
11240# define LT_DLSYM_CONST
11241#else
11242# define LT_DLSYM_CONST const
11243#endif
11244
cristy73bd4a52010-10-05 11:24:23 +000011245#ifdef __cplusplus
11246extern "C" {
11247#endif
11248
11249_LT_EOF
11250 # Now generate the symbol file.
11251 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11252
11253 cat <<_LT_EOF >> conftest.$ac_ext
11254
11255/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011256LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011257 const char *name;
11258 void *address;
11259}
11260lt__PROGRAM__LTX_preloaded_symbols[] =
11261{
11262 { "@PROGRAM@", (void *) 0 },
11263_LT_EOF
11264 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11265 cat <<\_LT_EOF >> conftest.$ac_ext
11266 {0, (void *) 0}
11267};
11268
11269/* This works around a problem in FreeBSD linker */
11270#ifdef FREEBSD_WORKAROUND
11271static const void *lt_preloaded_setup() {
11272 return lt__PROGRAM__LTX_preloaded_symbols;
11273}
11274#endif
11275
11276#ifdef __cplusplus
11277}
11278#endif
11279_LT_EOF
11280 # Now try linking the two files.
11281 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011282 lt_globsym_save_LIBS=$LIBS
11283 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011284 LIBS="conftstm.$ac_objext"
11285 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11287 (eval $ac_link) 2>&5
11288 ac_status=$?
11289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11290 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11291 pipe_works=yes
11292 fi
cristyda16f162011-02-19 23:52:17 +000011293 LIBS=$lt_globsym_save_LIBS
11294 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011295 else
11296 echo "cannot find nm_test_func in $nlist" >&5
11297 fi
11298 else
11299 echo "cannot find nm_test_var in $nlist" >&5
11300 fi
11301 else
11302 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11303 fi
11304 else
11305 echo "$progname: failed program was:" >&5
11306 cat conftest.$ac_ext >&5
11307 fi
11308 rm -rf conftest* conftst*
11309
11310 # Do not use the global_symbol_pipe unless it works.
11311 if test "$pipe_works" = yes; then
11312 break
11313 else
11314 lt_cv_sys_global_symbol_pipe=
11315 fi
11316done
11317
11318fi
11319
11320if test -z "$lt_cv_sys_global_symbol_pipe"; then
11321 lt_cv_sys_global_symbol_to_cdecl=
11322fi
11323if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11325$as_echo "failed" >&6; }
11326else
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11328$as_echo "ok" >&6; }
11329fi
11330
cristyda16f162011-02-19 23:52:17 +000011331# Response file support.
11332if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11333 nm_file_list_spec='@'
11334elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11335 nm_file_list_spec='@'
11336fi
cristy73bd4a52010-10-05 11:24:23 +000011337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
cristyda16f162011-02-19 23:52:17 +000011358
11359
11360
11361
11362
11363
11364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11365$as_echo_n "checking for sysroot... " >&6; }
11366
11367# Check whether --with-sysroot was given.
11368if test "${with_sysroot+set}" = set; then :
11369 withval=$with_sysroot;
11370else
11371 with_sysroot=no
11372fi
11373
11374
11375lt_sysroot=
11376case ${with_sysroot} in #(
11377 yes)
11378 if test "$GCC" = yes; then
11379 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11380 fi
11381 ;; #(
11382 /*)
11383 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11384 ;; #(
11385 no|'')
11386 ;; #(
11387 *)
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11389$as_echo "${with_sysroot}" >&6; }
11390 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11391 ;;
11392esac
11393
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11395$as_echo "${lt_sysroot:-no}" >&6; }
11396
11397
11398
11399
11400
cristy73bd4a52010-10-05 11:24:23 +000011401# Check whether --enable-libtool-lock was given.
11402if test "${enable_libtool_lock+set}" = set; then :
11403 enableval=$enable_libtool_lock;
11404fi
11405
11406test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11407
11408# Some flags need to be propagated to the compiler or linker for good
11409# libtool support.
11410case $host in
11411ia64-*-hpux*)
11412 # Find out which ABI we are using.
11413 echo 'int i;' > conftest.$ac_ext
11414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11415 (eval $ac_compile) 2>&5
11416 ac_status=$?
11417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11418 test $ac_status = 0; }; then
11419 case `/usr/bin/file conftest.$ac_objext` in
11420 *ELF-32*)
11421 HPUX_IA64_MODE="32"
11422 ;;
11423 *ELF-64*)
11424 HPUX_IA64_MODE="64"
11425 ;;
11426 esac
11427 fi
11428 rm -rf conftest*
11429 ;;
11430*-*-irix6*)
11431 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011432 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11434 (eval $ac_compile) 2>&5
11435 ac_status=$?
11436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11437 test $ac_status = 0; }; then
11438 if test "$lt_cv_prog_gnu_ld" = yes; then
11439 case `/usr/bin/file conftest.$ac_objext` in
11440 *32-bit*)
11441 LD="${LD-ld} -melf32bsmip"
11442 ;;
11443 *N32*)
11444 LD="${LD-ld} -melf32bmipn32"
11445 ;;
11446 *64-bit*)
11447 LD="${LD-ld} -melf64bmip"
11448 ;;
11449 esac
11450 else
11451 case `/usr/bin/file conftest.$ac_objext` in
11452 *32-bit*)
11453 LD="${LD-ld} -32"
11454 ;;
11455 *N32*)
11456 LD="${LD-ld} -n32"
11457 ;;
11458 *64-bit*)
11459 LD="${LD-ld} -64"
11460 ;;
11461 esac
11462 fi
11463 fi
11464 rm -rf conftest*
11465 ;;
11466
11467x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11468s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11469 # Find out which ABI we are using.
11470 echo 'int i;' > conftest.$ac_ext
11471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11472 (eval $ac_compile) 2>&5
11473 ac_status=$?
11474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11475 test $ac_status = 0; }; then
11476 case `/usr/bin/file conftest.o` in
11477 *32-bit*)
11478 case $host in
11479 x86_64-*kfreebsd*-gnu)
11480 LD="${LD-ld} -m elf_i386_fbsd"
11481 ;;
11482 x86_64-*linux*)
11483 LD="${LD-ld} -m elf_i386"
11484 ;;
11485 ppc64-*linux*|powerpc64-*linux*)
11486 LD="${LD-ld} -m elf32ppclinux"
11487 ;;
11488 s390x-*linux*)
11489 LD="${LD-ld} -m elf_s390"
11490 ;;
11491 sparc64-*linux*)
11492 LD="${LD-ld} -m elf32_sparc"
11493 ;;
11494 esac
11495 ;;
11496 *64-bit*)
11497 case $host in
11498 x86_64-*kfreebsd*-gnu)
11499 LD="${LD-ld} -m elf_x86_64_fbsd"
11500 ;;
11501 x86_64-*linux*)
11502 LD="${LD-ld} -m elf_x86_64"
11503 ;;
11504 ppc*-*linux*|powerpc*-*linux*)
11505 LD="${LD-ld} -m elf64ppc"
11506 ;;
11507 s390*-*linux*|s390*-*tpf*)
11508 LD="${LD-ld} -m elf64_s390"
11509 ;;
11510 sparc*-*linux*)
11511 LD="${LD-ld} -m elf64_sparc"
11512 ;;
11513 esac
11514 ;;
11515 esac
11516 fi
11517 rm -rf conftest*
11518 ;;
11519
11520*-*-sco3.2v5*)
11521 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11522 SAVE_CFLAGS="$CFLAGS"
11523 CFLAGS="$CFLAGS -belf"
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11525$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011526if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011527 $as_echo_n "(cached) " >&6
11528else
11529 ac_ext=c
11530ac_cpp='$CPP $CPPFLAGS'
11531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11533ac_compiler_gnu=$ac_cv_c_compiler_gnu
11534
11535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536/* end confdefs.h. */
11537
11538int
11539main ()
11540{
11541
11542 ;
11543 return 0;
11544}
11545_ACEOF
11546if ac_fn_c_try_link "$LINENO"; then :
11547 lt_cv_cc_needs_belf=yes
11548else
11549 lt_cv_cc_needs_belf=no
11550fi
11551rm -f core conftest.err conftest.$ac_objext \
11552 conftest$ac_exeext conftest.$ac_ext
11553 ac_ext=c
11554ac_cpp='$CPP $CPPFLAGS'
11555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11557ac_compiler_gnu=$ac_cv_c_compiler_gnu
11558
11559fi
11560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11561$as_echo "$lt_cv_cc_needs_belf" >&6; }
11562 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11563 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11564 CFLAGS="$SAVE_CFLAGS"
11565 fi
11566 ;;
11567sparc*-*solaris*)
11568 # Find out which ABI we are using.
11569 echo 'int i;' > conftest.$ac_ext
11570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11571 (eval $ac_compile) 2>&5
11572 ac_status=$?
11573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11574 test $ac_status = 0; }; then
11575 case `/usr/bin/file conftest.o` in
11576 *64-bit*)
11577 case $lt_cv_prog_gnu_ld in
11578 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11579 *)
11580 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11581 LD="${LD-ld} -64"
11582 fi
11583 ;;
11584 esac
11585 ;;
11586 esac
11587 fi
11588 rm -rf conftest*
11589 ;;
11590esac
11591
11592need_locks="$enable_libtool_lock"
11593
cristyda16f162011-02-19 23:52:17 +000011594if test -n "$ac_tool_prefix"; then
11595 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11596set dummy ${ac_tool_prefix}mt; ac_word=$2
11597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11598$as_echo_n "checking for $ac_word... " >&6; }
11599if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11600 $as_echo_n "(cached) " >&6
11601else
11602 if test -n "$MANIFEST_TOOL"; then
11603 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11604else
11605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11606for as_dir in $PATH
11607do
11608 IFS=$as_save_IFS
11609 test -z "$as_dir" && as_dir=.
11610 for ac_exec_ext in '' $ac_executable_extensions; do
11611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11612 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11614 break 2
11615 fi
11616done
11617 done
11618IFS=$as_save_IFS
11619
11620fi
11621fi
11622MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11623if test -n "$MANIFEST_TOOL"; then
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11625$as_echo "$MANIFEST_TOOL" >&6; }
11626else
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11628$as_echo "no" >&6; }
11629fi
11630
11631
11632fi
11633if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11634 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11635 # Extract the first word of "mt", so it can be a program name with args.
11636set dummy mt; ac_word=$2
11637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11638$as_echo_n "checking for $ac_word... " >&6; }
11639if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11640 $as_echo_n "(cached) " >&6
11641else
11642 if test -n "$ac_ct_MANIFEST_TOOL"; then
11643 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11644else
11645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11646for as_dir in $PATH
11647do
11648 IFS=$as_save_IFS
11649 test -z "$as_dir" && as_dir=.
11650 for ac_exec_ext in '' $ac_executable_extensions; do
11651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11652 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11654 break 2
11655 fi
11656done
11657 done
11658IFS=$as_save_IFS
11659
11660fi
11661fi
11662ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11663if test -n "$ac_ct_MANIFEST_TOOL"; then
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11665$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11666else
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11668$as_echo "no" >&6; }
11669fi
11670
11671 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11672 MANIFEST_TOOL=":"
11673 else
11674 case $cross_compiling:$ac_tool_warned in
11675yes:)
11676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11678ac_tool_warned=yes ;;
11679esac
11680 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11681 fi
11682else
11683 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11684fi
11685
11686test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11688$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11689if ${lt_cv_path_mainfest_tool+:} false; then :
11690 $as_echo_n "(cached) " >&6
11691else
11692 lt_cv_path_mainfest_tool=no
11693 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11694 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11695 cat conftest.err >&5
11696 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11697 lt_cv_path_mainfest_tool=yes
11698 fi
11699 rm -f conftest*
11700fi
11701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11702$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11703if test "x$lt_cv_path_mainfest_tool" != xyes; then
11704 MANIFEST_TOOL=:
11705fi
11706
11707
11708
11709
11710
cristy73bd4a52010-10-05 11:24:23 +000011711
11712 case $host_os in
11713 rhapsody* | darwin*)
11714 if test -n "$ac_tool_prefix"; then
11715 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11716set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11718$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011719if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011720 $as_echo_n "(cached) " >&6
11721else
11722 if test -n "$DSYMUTIL"; then
11723 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11724else
11725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11726for as_dir in $PATH
11727do
11728 IFS=$as_save_IFS
11729 test -z "$as_dir" && as_dir=.
11730 for ac_exec_ext in '' $ac_executable_extensions; do
11731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11732 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11734 break 2
11735 fi
11736done
11737 done
11738IFS=$as_save_IFS
11739
11740fi
11741fi
11742DSYMUTIL=$ac_cv_prog_DSYMUTIL
11743if test -n "$DSYMUTIL"; then
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11745$as_echo "$DSYMUTIL" >&6; }
11746else
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11748$as_echo "no" >&6; }
11749fi
11750
11751
11752fi
11753if test -z "$ac_cv_prog_DSYMUTIL"; then
11754 ac_ct_DSYMUTIL=$DSYMUTIL
11755 # Extract the first word of "dsymutil", so it can be a program name with args.
11756set dummy dsymutil; ac_word=$2
11757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11758$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011759if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011760 $as_echo_n "(cached) " >&6
11761else
11762 if test -n "$ac_ct_DSYMUTIL"; then
11763 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11764else
11765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11766for as_dir in $PATH
11767do
11768 IFS=$as_save_IFS
11769 test -z "$as_dir" && as_dir=.
11770 for ac_exec_ext in '' $ac_executable_extensions; do
11771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11772 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11774 break 2
11775 fi
11776done
11777 done
11778IFS=$as_save_IFS
11779
11780fi
11781fi
11782ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11783if test -n "$ac_ct_DSYMUTIL"; then
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11785$as_echo "$ac_ct_DSYMUTIL" >&6; }
11786else
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11788$as_echo "no" >&6; }
11789fi
11790
11791 if test "x$ac_ct_DSYMUTIL" = x; then
11792 DSYMUTIL=":"
11793 else
11794 case $cross_compiling:$ac_tool_warned in
11795yes:)
11796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11798ac_tool_warned=yes ;;
11799esac
11800 DSYMUTIL=$ac_ct_DSYMUTIL
11801 fi
11802else
11803 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11804fi
11805
11806 if test -n "$ac_tool_prefix"; then
11807 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11808set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11810$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011811if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011812 $as_echo_n "(cached) " >&6
11813else
11814 if test -n "$NMEDIT"; then
11815 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11816else
11817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11818for as_dir in $PATH
11819do
11820 IFS=$as_save_IFS
11821 test -z "$as_dir" && as_dir=.
11822 for ac_exec_ext in '' $ac_executable_extensions; do
11823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11824 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11826 break 2
11827 fi
11828done
11829 done
11830IFS=$as_save_IFS
11831
11832fi
11833fi
11834NMEDIT=$ac_cv_prog_NMEDIT
11835if test -n "$NMEDIT"; then
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11837$as_echo "$NMEDIT" >&6; }
11838else
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840$as_echo "no" >&6; }
11841fi
11842
11843
11844fi
11845if test -z "$ac_cv_prog_NMEDIT"; then
11846 ac_ct_NMEDIT=$NMEDIT
11847 # Extract the first word of "nmedit", so it can be a program name with args.
11848set dummy nmedit; ac_word=$2
11849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11850$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011851if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011852 $as_echo_n "(cached) " >&6
11853else
11854 if test -n "$ac_ct_NMEDIT"; then
11855 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11856else
11857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11858for as_dir in $PATH
11859do
11860 IFS=$as_save_IFS
11861 test -z "$as_dir" && as_dir=.
11862 for ac_exec_ext in '' $ac_executable_extensions; do
11863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11864 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11866 break 2
11867 fi
11868done
11869 done
11870IFS=$as_save_IFS
11871
11872fi
11873fi
11874ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11875if test -n "$ac_ct_NMEDIT"; then
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11877$as_echo "$ac_ct_NMEDIT" >&6; }
11878else
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880$as_echo "no" >&6; }
11881fi
11882
11883 if test "x$ac_ct_NMEDIT" = x; then
11884 NMEDIT=":"
11885 else
11886 case $cross_compiling:$ac_tool_warned in
11887yes:)
11888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11890ac_tool_warned=yes ;;
11891esac
11892 NMEDIT=$ac_ct_NMEDIT
11893 fi
11894else
11895 NMEDIT="$ac_cv_prog_NMEDIT"
11896fi
11897
11898 if test -n "$ac_tool_prefix"; then
11899 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11900set dummy ${ac_tool_prefix}lipo; ac_word=$2
11901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11902$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011903if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011904 $as_echo_n "(cached) " >&6
11905else
11906 if test -n "$LIPO"; then
11907 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11908else
11909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910for as_dir in $PATH
11911do
11912 IFS=$as_save_IFS
11913 test -z "$as_dir" && as_dir=.
11914 for ac_exec_ext in '' $ac_executable_extensions; do
11915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11916 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11918 break 2
11919 fi
11920done
11921 done
11922IFS=$as_save_IFS
11923
11924fi
11925fi
11926LIPO=$ac_cv_prog_LIPO
11927if test -n "$LIPO"; then
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11929$as_echo "$LIPO" >&6; }
11930else
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11932$as_echo "no" >&6; }
11933fi
11934
11935
11936fi
11937if test -z "$ac_cv_prog_LIPO"; then
11938 ac_ct_LIPO=$LIPO
11939 # Extract the first word of "lipo", so it can be a program name with args.
11940set dummy lipo; ac_word=$2
11941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11942$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011943if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011944 $as_echo_n "(cached) " >&6
11945else
11946 if test -n "$ac_ct_LIPO"; then
11947 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11948else
11949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950for as_dir in $PATH
11951do
11952 IFS=$as_save_IFS
11953 test -z "$as_dir" && as_dir=.
11954 for ac_exec_ext in '' $ac_executable_extensions; do
11955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11956 ac_cv_prog_ac_ct_LIPO="lipo"
11957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11958 break 2
11959 fi
11960done
11961 done
11962IFS=$as_save_IFS
11963
11964fi
11965fi
11966ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11967if test -n "$ac_ct_LIPO"; then
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11969$as_echo "$ac_ct_LIPO" >&6; }
11970else
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972$as_echo "no" >&6; }
11973fi
11974
11975 if test "x$ac_ct_LIPO" = x; then
11976 LIPO=":"
11977 else
11978 case $cross_compiling:$ac_tool_warned in
11979yes:)
11980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11982ac_tool_warned=yes ;;
11983esac
11984 LIPO=$ac_ct_LIPO
11985 fi
11986else
11987 LIPO="$ac_cv_prog_LIPO"
11988fi
11989
11990 if test -n "$ac_tool_prefix"; then
11991 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11992set dummy ${ac_tool_prefix}otool; ac_word=$2
11993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11994$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011995if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011996 $as_echo_n "(cached) " >&6
11997else
11998 if test -n "$OTOOL"; then
11999 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12000else
12001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12002for as_dir in $PATH
12003do
12004 IFS=$as_save_IFS
12005 test -z "$as_dir" && as_dir=.
12006 for ac_exec_ext in '' $ac_executable_extensions; do
12007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12008 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12010 break 2
12011 fi
12012done
12013 done
12014IFS=$as_save_IFS
12015
12016fi
12017fi
12018OTOOL=$ac_cv_prog_OTOOL
12019if test -n "$OTOOL"; then
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12021$as_echo "$OTOOL" >&6; }
12022else
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024$as_echo "no" >&6; }
12025fi
12026
12027
12028fi
12029if test -z "$ac_cv_prog_OTOOL"; then
12030 ac_ct_OTOOL=$OTOOL
12031 # Extract the first word of "otool", so it can be a program name with args.
12032set dummy otool; ac_word=$2
12033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12034$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012035if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012036 $as_echo_n "(cached) " >&6
12037else
12038 if test -n "$ac_ct_OTOOL"; then
12039 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12040else
12041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12042for as_dir in $PATH
12043do
12044 IFS=$as_save_IFS
12045 test -z "$as_dir" && as_dir=.
12046 for ac_exec_ext in '' $ac_executable_extensions; do
12047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12048 ac_cv_prog_ac_ct_OTOOL="otool"
12049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12050 break 2
12051 fi
12052done
12053 done
12054IFS=$as_save_IFS
12055
12056fi
12057fi
12058ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12059if test -n "$ac_ct_OTOOL"; then
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12061$as_echo "$ac_ct_OTOOL" >&6; }
12062else
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12064$as_echo "no" >&6; }
12065fi
12066
12067 if test "x$ac_ct_OTOOL" = x; then
12068 OTOOL=":"
12069 else
12070 case $cross_compiling:$ac_tool_warned in
12071yes:)
12072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12074ac_tool_warned=yes ;;
12075esac
12076 OTOOL=$ac_ct_OTOOL
12077 fi
12078else
12079 OTOOL="$ac_cv_prog_OTOOL"
12080fi
12081
12082 if test -n "$ac_tool_prefix"; then
12083 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12084set dummy ${ac_tool_prefix}otool64; ac_word=$2
12085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12086$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012087if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012088 $as_echo_n "(cached) " >&6
12089else
12090 if test -n "$OTOOL64"; then
12091 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12092else
12093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12094for as_dir in $PATH
12095do
12096 IFS=$as_save_IFS
12097 test -z "$as_dir" && as_dir=.
12098 for ac_exec_ext in '' $ac_executable_extensions; do
12099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12100 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12102 break 2
12103 fi
12104done
12105 done
12106IFS=$as_save_IFS
12107
12108fi
12109fi
12110OTOOL64=$ac_cv_prog_OTOOL64
12111if test -n "$OTOOL64"; then
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12113$as_echo "$OTOOL64" >&6; }
12114else
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12116$as_echo "no" >&6; }
12117fi
12118
12119
12120fi
12121if test -z "$ac_cv_prog_OTOOL64"; then
12122 ac_ct_OTOOL64=$OTOOL64
12123 # Extract the first word of "otool64", so it can be a program name with args.
12124set dummy otool64; ac_word=$2
12125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12126$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012127if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012128 $as_echo_n "(cached) " >&6
12129else
12130 if test -n "$ac_ct_OTOOL64"; then
12131 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12132else
12133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12134for as_dir in $PATH
12135do
12136 IFS=$as_save_IFS
12137 test -z "$as_dir" && as_dir=.
12138 for ac_exec_ext in '' $ac_executable_extensions; do
12139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12140 ac_cv_prog_ac_ct_OTOOL64="otool64"
12141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12142 break 2
12143 fi
12144done
12145 done
12146IFS=$as_save_IFS
12147
12148fi
12149fi
12150ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12151if test -n "$ac_ct_OTOOL64"; then
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12153$as_echo "$ac_ct_OTOOL64" >&6; }
12154else
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12156$as_echo "no" >&6; }
12157fi
12158
12159 if test "x$ac_ct_OTOOL64" = x; then
12160 OTOOL64=":"
12161 else
12162 case $cross_compiling:$ac_tool_warned in
12163yes:)
12164{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12165$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12166ac_tool_warned=yes ;;
12167esac
12168 OTOOL64=$ac_ct_OTOOL64
12169 fi
12170else
12171 OTOOL64="$ac_cv_prog_OTOOL64"
12172fi
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12201$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012202if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012203 $as_echo_n "(cached) " >&6
12204else
12205 lt_cv_apple_cc_single_mod=no
12206 if test -z "${LT_MULTI_MODULE}"; then
12207 # By default we will add the -single_module flag. You can override
12208 # by either setting the environment variable LT_MULTI_MODULE
12209 # non-empty at configure time, or by adding -multi_module to the
12210 # link flags.
12211 rm -rf libconftest.dylib*
12212 echo "int foo(void){return 1;}" > conftest.c
12213 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12214-dynamiclib -Wl,-single_module conftest.c" >&5
12215 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12216 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12217 _lt_result=$?
12218 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12219 lt_cv_apple_cc_single_mod=yes
12220 else
12221 cat conftest.err >&5
12222 fi
12223 rm -rf libconftest.dylib*
12224 rm -f conftest.*
12225 fi
12226fi
12227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12228$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12230$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012231if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012232 $as_echo_n "(cached) " >&6
12233else
12234 lt_cv_ld_exported_symbols_list=no
12235 save_LDFLAGS=$LDFLAGS
12236 echo "_main" > conftest.sym
12237 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12239/* end confdefs.h. */
12240
12241int
12242main ()
12243{
12244
12245 ;
12246 return 0;
12247}
12248_ACEOF
12249if ac_fn_c_try_link "$LINENO"; then :
12250 lt_cv_ld_exported_symbols_list=yes
12251else
12252 lt_cv_ld_exported_symbols_list=no
12253fi
12254rm -f core conftest.err conftest.$ac_objext \
12255 conftest$ac_exeext conftest.$ac_ext
12256 LDFLAGS="$save_LDFLAGS"
12257
12258fi
12259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12260$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy0c60a692010-11-04 01:09:47 +000012261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12262$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012263if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012264 $as_echo_n "(cached) " >&6
12265else
12266 lt_cv_ld_force_load=no
12267 cat > conftest.c << _LT_EOF
12268int forced_loaded() { return 2;}
12269_LT_EOF
12270 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12271 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12272 echo "$AR cru libconftest.a conftest.o" >&5
12273 $AR cru libconftest.a conftest.o 2>&5
12274 echo "$RANLIB libconftest.a" >&5
12275 $RANLIB libconftest.a 2>&5
12276 cat > conftest.c << _LT_EOF
12277int main() { return 0;}
12278_LT_EOF
12279 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12280 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12281 _lt_result=$?
12282 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12283 lt_cv_ld_force_load=yes
12284 else
12285 cat conftest.err >&5
12286 fi
12287 rm -f conftest.err libconftest.a conftest conftest.c
12288 rm -rf conftest.dSYM
12289
12290fi
12291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12292$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012293 case $host_os in
12294 rhapsody* | darwin1.[012])
12295 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12296 darwin1.*)
12297 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12298 darwin*) # darwin 5.x on
12299 # if running on 10.5 or later, the deployment target defaults
12300 # to the OS version, if on x86, and 10.4, the deployment
12301 # target defaults to 10.4. Don't you love it?
12302 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12303 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12304 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12305 10.[012]*)
12306 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12307 10.*)
12308 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12309 esac
12310 ;;
12311 esac
12312 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12313 _lt_dar_single_mod='$single_module'
12314 fi
12315 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12316 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12317 else
12318 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12319 fi
cristy0c60a692010-11-04 01:09:47 +000012320 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012321 _lt_dsymutil='~$DSYMUTIL $lib || :'
12322 else
12323 _lt_dsymutil=
12324 fi
12325 ;;
12326 esac
12327
12328for ac_header in dlfcn.h
12329do :
12330 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12331"
cristyda16f162011-02-19 23:52:17 +000012332if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012333 cat >>confdefs.h <<_ACEOF
12334#define HAVE_DLFCN_H 1
12335_ACEOF
12336
12337fi
12338
12339done
12340
12341
12342
cristy73bd4a52010-10-05 11:24:23 +000012343
cristyda16f162011-02-19 23:52:17 +000012344func_stripname_cnf ()
12345{
12346 case ${2} in
12347 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12348 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12349 esac
12350} # func_stripname_cnf
12351
12352
12353
cristy73bd4a52010-10-05 11:24:23 +000012354
12355
12356# Set options
12357enable_win32_dll=yes
12358
12359case $host in
cristy0c60a692010-11-04 01:09:47 +000012360*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012361 if test -n "$ac_tool_prefix"; then
12362 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12363set dummy ${ac_tool_prefix}as; ac_word=$2
12364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12365$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012366if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012367 $as_echo_n "(cached) " >&6
12368else
12369 if test -n "$AS"; then
12370 ac_cv_prog_AS="$AS" # Let the user override the test.
12371else
12372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12373for as_dir in $PATH
12374do
12375 IFS=$as_save_IFS
12376 test -z "$as_dir" && as_dir=.
12377 for ac_exec_ext in '' $ac_executable_extensions; do
12378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12379 ac_cv_prog_AS="${ac_tool_prefix}as"
12380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12381 break 2
12382 fi
12383done
12384 done
12385IFS=$as_save_IFS
12386
12387fi
12388fi
12389AS=$ac_cv_prog_AS
12390if test -n "$AS"; then
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12392$as_echo "$AS" >&6; }
12393else
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12395$as_echo "no" >&6; }
12396fi
12397
12398
12399fi
12400if test -z "$ac_cv_prog_AS"; then
12401 ac_ct_AS=$AS
12402 # Extract the first word of "as", so it can be a program name with args.
12403set dummy as; ac_word=$2
12404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12405$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012406if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012407 $as_echo_n "(cached) " >&6
12408else
12409 if test -n "$ac_ct_AS"; then
12410 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12411else
12412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413for as_dir in $PATH
12414do
12415 IFS=$as_save_IFS
12416 test -z "$as_dir" && as_dir=.
12417 for ac_exec_ext in '' $ac_executable_extensions; do
12418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12419 ac_cv_prog_ac_ct_AS="as"
12420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12421 break 2
12422 fi
12423done
12424 done
12425IFS=$as_save_IFS
12426
12427fi
12428fi
12429ac_ct_AS=$ac_cv_prog_ac_ct_AS
12430if test -n "$ac_ct_AS"; then
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12432$as_echo "$ac_ct_AS" >&6; }
12433else
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12435$as_echo "no" >&6; }
12436fi
12437
12438 if test "x$ac_ct_AS" = x; then
12439 AS="false"
12440 else
12441 case $cross_compiling:$ac_tool_warned in
12442yes:)
12443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12445ac_tool_warned=yes ;;
12446esac
12447 AS=$ac_ct_AS
12448 fi
12449else
12450 AS="$ac_cv_prog_AS"
12451fi
12452
12453 if test -n "$ac_tool_prefix"; then
12454 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12455set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12457$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012458if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012459 $as_echo_n "(cached) " >&6
12460else
12461 if test -n "$DLLTOOL"; then
12462 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12463else
12464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12465for as_dir in $PATH
12466do
12467 IFS=$as_save_IFS
12468 test -z "$as_dir" && as_dir=.
12469 for ac_exec_ext in '' $ac_executable_extensions; do
12470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12471 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12473 break 2
12474 fi
12475done
12476 done
12477IFS=$as_save_IFS
12478
12479fi
12480fi
12481DLLTOOL=$ac_cv_prog_DLLTOOL
12482if test -n "$DLLTOOL"; then
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12484$as_echo "$DLLTOOL" >&6; }
12485else
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12487$as_echo "no" >&6; }
12488fi
12489
12490
12491fi
12492if test -z "$ac_cv_prog_DLLTOOL"; then
12493 ac_ct_DLLTOOL=$DLLTOOL
12494 # Extract the first word of "dlltool", so it can be a program name with args.
12495set dummy dlltool; ac_word=$2
12496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12497$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012498if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012499 $as_echo_n "(cached) " >&6
12500else
12501 if test -n "$ac_ct_DLLTOOL"; then
12502 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12503else
12504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505for as_dir in $PATH
12506do
12507 IFS=$as_save_IFS
12508 test -z "$as_dir" && as_dir=.
12509 for ac_exec_ext in '' $ac_executable_extensions; do
12510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12511 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12513 break 2
12514 fi
12515done
12516 done
12517IFS=$as_save_IFS
12518
12519fi
12520fi
12521ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12522if test -n "$ac_ct_DLLTOOL"; then
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12524$as_echo "$ac_ct_DLLTOOL" >&6; }
12525else
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527$as_echo "no" >&6; }
12528fi
12529
12530 if test "x$ac_ct_DLLTOOL" = x; then
12531 DLLTOOL="false"
12532 else
12533 case $cross_compiling:$ac_tool_warned in
12534yes:)
12535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12537ac_tool_warned=yes ;;
12538esac
12539 DLLTOOL=$ac_ct_DLLTOOL
12540 fi
12541else
12542 DLLTOOL="$ac_cv_prog_DLLTOOL"
12543fi
12544
12545 if test -n "$ac_tool_prefix"; then
12546 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12547set dummy ${ac_tool_prefix}objdump; ac_word=$2
12548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12549$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012550if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012551 $as_echo_n "(cached) " >&6
12552else
12553 if test -n "$OBJDUMP"; then
12554 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12555else
12556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12557for as_dir in $PATH
12558do
12559 IFS=$as_save_IFS
12560 test -z "$as_dir" && as_dir=.
12561 for ac_exec_ext in '' $ac_executable_extensions; do
12562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12563 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12565 break 2
12566 fi
12567done
12568 done
12569IFS=$as_save_IFS
12570
12571fi
12572fi
12573OBJDUMP=$ac_cv_prog_OBJDUMP
12574if test -n "$OBJDUMP"; then
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12576$as_echo "$OBJDUMP" >&6; }
12577else
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12579$as_echo "no" >&6; }
12580fi
12581
12582
12583fi
12584if test -z "$ac_cv_prog_OBJDUMP"; then
12585 ac_ct_OBJDUMP=$OBJDUMP
12586 # Extract the first word of "objdump", so it can be a program name with args.
12587set dummy objdump; ac_word=$2
12588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12589$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012590if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012591 $as_echo_n "(cached) " >&6
12592else
12593 if test -n "$ac_ct_OBJDUMP"; then
12594 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12595else
12596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597for as_dir in $PATH
12598do
12599 IFS=$as_save_IFS
12600 test -z "$as_dir" && as_dir=.
12601 for ac_exec_ext in '' $ac_executable_extensions; do
12602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12603 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12605 break 2
12606 fi
12607done
12608 done
12609IFS=$as_save_IFS
12610
12611fi
12612fi
12613ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12614if test -n "$ac_ct_OBJDUMP"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12616$as_echo "$ac_ct_OBJDUMP" >&6; }
12617else
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619$as_echo "no" >&6; }
12620fi
12621
12622 if test "x$ac_ct_OBJDUMP" = x; then
12623 OBJDUMP="false"
12624 else
12625 case $cross_compiling:$ac_tool_warned in
12626yes:)
12627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12629ac_tool_warned=yes ;;
12630esac
12631 OBJDUMP=$ac_ct_OBJDUMP
12632 fi
12633else
12634 OBJDUMP="$ac_cv_prog_OBJDUMP"
12635fi
12636
12637 ;;
12638esac
12639
12640test -z "$AS" && AS=as
12641
12642
12643
12644
12645
12646test -z "$DLLTOOL" && DLLTOOL=dlltool
12647
12648
12649
12650
12651
12652test -z "$OBJDUMP" && OBJDUMP=objdump
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662 # Check whether --enable-shared was given.
12663if test "${enable_shared+set}" = set; then :
12664 enableval=$enable_shared; p=${PACKAGE-default}
12665 case $enableval in
12666 yes) enable_shared=yes ;;
12667 no) enable_shared=no ;;
12668 *)
12669 enable_shared=no
12670 # Look at the argument we got. We use all the common list separators.
12671 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12672 for pkg in $enableval; do
12673 IFS="$lt_save_ifs"
12674 if test "X$pkg" = "X$p"; then
12675 enable_shared=yes
12676 fi
12677 done
12678 IFS="$lt_save_ifs"
12679 ;;
12680 esac
12681else
12682 enable_shared=yes
12683fi
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693 # Check whether --enable-static was given.
12694if test "${enable_static+set}" = set; then :
12695 enableval=$enable_static; p=${PACKAGE-default}
12696 case $enableval in
12697 yes) enable_static=yes ;;
12698 no) enable_static=no ;;
12699 *)
12700 enable_static=no
12701 # Look at the argument we got. We use all the common list separators.
12702 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12703 for pkg in $enableval; do
12704 IFS="$lt_save_ifs"
12705 if test "X$pkg" = "X$p"; then
12706 enable_static=yes
12707 fi
12708 done
12709 IFS="$lt_save_ifs"
12710 ;;
12711 esac
12712else
12713 enable_static=yes
12714fi
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725# Check whether --with-pic was given.
12726if test "${with_pic+set}" = set; then :
12727 withval=$with_pic; pic_mode="$withval"
12728else
12729 pic_mode=default
12730fi
12731
12732
12733test -z "$pic_mode" && pic_mode=default
12734
12735
12736
12737
12738
12739
12740
12741 # Check whether --enable-fast-install was given.
12742if test "${enable_fast_install+set}" = set; then :
12743 enableval=$enable_fast_install; p=${PACKAGE-default}
12744 case $enableval in
12745 yes) enable_fast_install=yes ;;
12746 no) enable_fast_install=no ;;
12747 *)
12748 enable_fast_install=no
12749 # Look at the argument we got. We use all the common list separators.
12750 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12751 for pkg in $enableval; do
12752 IFS="$lt_save_ifs"
12753 if test "X$pkg" = "X$p"; then
12754 enable_fast_install=yes
12755 fi
12756 done
12757 IFS="$lt_save_ifs"
12758 ;;
12759 esac
12760else
12761 enable_fast_install=yes
12762fi
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774# This can be used to rebuild libtool when needed
12775LIBTOOL_DEPS="$ltmain"
12776
12777# Always use our own libtool.
12778LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
cristy0c60a692010-11-04 01:09:47 +000012804
cristy73bd4a52010-10-05 11:24:23 +000012805test -z "$LN_S" && LN_S="ln -s"
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820if test -n "${ZSH_VERSION+set}" ; then
12821 setopt NO_GLOB_SUBST
12822fi
12823
12824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12825$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012826if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012827 $as_echo_n "(cached) " >&6
12828else
12829 rm -f .libs 2>/dev/null
12830mkdir .libs 2>/dev/null
12831if test -d .libs; then
12832 lt_cv_objdir=.libs
12833else
12834 # MS-DOS does not allow filenames that begin with a dot.
12835 lt_cv_objdir=_libs
12836fi
12837rmdir .libs 2>/dev/null
12838fi
12839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12840$as_echo "$lt_cv_objdir" >&6; }
12841objdir=$lt_cv_objdir
12842
12843
12844
12845
12846
12847cat >>confdefs.h <<_ACEOF
12848#define LT_OBJDIR "$lt_cv_objdir/"
12849_ACEOF
12850
12851
12852
12853
cristy73bd4a52010-10-05 11:24:23 +000012854case $host_os in
12855aix3*)
12856 # AIX sometimes has problems with the GCC collect2 program. For some
12857 # reason, if we set the COLLECT_NAMES environment variable, the problems
12858 # vanish in a puff of smoke.
12859 if test "X${COLLECT_NAMES+set}" != Xset; then
12860 COLLECT_NAMES=
12861 export COLLECT_NAMES
12862 fi
12863 ;;
12864esac
12865
cristy73bd4a52010-10-05 11:24:23 +000012866# Global variables:
12867ofile=libtool
12868can_build_shared=yes
12869
12870# All known linkers require a `.a' archive for static linking (except MSVC,
12871# which needs '.lib').
12872libext=a
12873
12874with_gnu_ld="$lt_cv_prog_gnu_ld"
12875
12876old_CC="$CC"
12877old_CFLAGS="$CFLAGS"
12878
12879# Set sane defaults for various variables
12880test -z "$CC" && CC=cc
12881test -z "$LTCC" && LTCC=$CC
12882test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12883test -z "$LD" && LD=ld
12884test -z "$ac_objext" && ac_objext=o
12885
12886for cc_temp in $compiler""; do
12887 case $cc_temp in
12888 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12889 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12890 \-*) ;;
12891 *) break;;
12892 esac
12893done
cristy0c60a692010-11-04 01:09:47 +000012894cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000012895
12896
12897# Only perform the check for file, if the check method requires it
12898test -z "$MAGIC_CMD" && MAGIC_CMD=file
12899case $deplibs_check_method in
12900file_magic*)
12901 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12903$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012904if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012905 $as_echo_n "(cached) " >&6
12906else
12907 case $MAGIC_CMD in
12908[\\/*] | ?:[\\/]*)
12909 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12910 ;;
12911*)
12912 lt_save_MAGIC_CMD="$MAGIC_CMD"
12913 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12914 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12915 for ac_dir in $ac_dummy; do
12916 IFS="$lt_save_ifs"
12917 test -z "$ac_dir" && ac_dir=.
12918 if test -f $ac_dir/${ac_tool_prefix}file; then
12919 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12920 if test -n "$file_magic_test_file"; then
12921 case $deplibs_check_method in
12922 "file_magic "*)
12923 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12924 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12925 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12926 $EGREP "$file_magic_regex" > /dev/null; then
12927 :
12928 else
12929 cat <<_LT_EOF 1>&2
12930
12931*** Warning: the command libtool uses to detect shared libraries,
12932*** $file_magic_cmd, produces output that libtool cannot recognize.
12933*** The result is that libtool may fail to recognize shared libraries
12934*** as such. This will affect the creation of libtool libraries that
12935*** depend on shared libraries, but programs linked with such libtool
12936*** libraries will work regardless of this problem. Nevertheless, you
12937*** may want to report the problem to your system manager and/or to
12938*** bug-libtool@gnu.org
12939
12940_LT_EOF
12941 fi ;;
12942 esac
12943 fi
12944 break
12945 fi
12946 done
12947 IFS="$lt_save_ifs"
12948 MAGIC_CMD="$lt_save_MAGIC_CMD"
12949 ;;
12950esac
12951fi
12952
12953MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12954if test -n "$MAGIC_CMD"; then
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12956$as_echo "$MAGIC_CMD" >&6; }
12957else
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12959$as_echo "no" >&6; }
12960fi
12961
12962
12963
12964
12965
12966if test -z "$lt_cv_path_MAGIC_CMD"; then
12967 if test -n "$ac_tool_prefix"; then
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12969$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012970if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012971 $as_echo_n "(cached) " >&6
12972else
12973 case $MAGIC_CMD in
12974[\\/*] | ?:[\\/]*)
12975 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12976 ;;
12977*)
12978 lt_save_MAGIC_CMD="$MAGIC_CMD"
12979 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12980 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12981 for ac_dir in $ac_dummy; do
12982 IFS="$lt_save_ifs"
12983 test -z "$ac_dir" && ac_dir=.
12984 if test -f $ac_dir/file; then
12985 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12986 if test -n "$file_magic_test_file"; then
12987 case $deplibs_check_method in
12988 "file_magic "*)
12989 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12991 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12992 $EGREP "$file_magic_regex" > /dev/null; then
12993 :
12994 else
12995 cat <<_LT_EOF 1>&2
12996
12997*** Warning: the command libtool uses to detect shared libraries,
12998*** $file_magic_cmd, produces output that libtool cannot recognize.
12999*** The result is that libtool may fail to recognize shared libraries
13000*** as such. This will affect the creation of libtool libraries that
13001*** depend on shared libraries, but programs linked with such libtool
13002*** libraries will work regardless of this problem. Nevertheless, you
13003*** may want to report the problem to your system manager and/or to
13004*** bug-libtool@gnu.org
13005
13006_LT_EOF
13007 fi ;;
13008 esac
13009 fi
13010 break
13011 fi
13012 done
13013 IFS="$lt_save_ifs"
13014 MAGIC_CMD="$lt_save_MAGIC_CMD"
13015 ;;
13016esac
13017fi
13018
13019MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13020if test -n "$MAGIC_CMD"; then
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13022$as_echo "$MAGIC_CMD" >&6; }
13023else
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13025$as_echo "no" >&6; }
13026fi
13027
13028
13029 else
13030 MAGIC_CMD=:
13031 fi
13032fi
13033
13034 fi
13035 ;;
13036esac
13037
13038# Use C for the default configuration in the libtool script
13039
13040lt_save_CC="$CC"
13041ac_ext=c
13042ac_cpp='$CPP $CPPFLAGS'
13043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13045ac_compiler_gnu=$ac_cv_c_compiler_gnu
13046
13047
13048# Source file extension for C test sources.
13049ac_ext=c
13050
13051# Object file extension for compiled C test sources.
13052objext=o
13053objext=$objext
13054
13055# Code to be used in simple compile tests
13056lt_simple_compile_test_code="int some_variable = 0;"
13057
13058# Code to be used in simple link tests
13059lt_simple_link_test_code='int main(){return(0);}'
13060
13061
13062
13063
13064
13065
13066
13067# If no C compiler was specified, use CC.
13068LTCC=${LTCC-"$CC"}
13069
13070# If no C compiler flags were specified, use CFLAGS.
13071LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13072
13073# Allow CC to be a program name with arguments.
13074compiler=$CC
13075
13076# Save the default compiler, since it gets overwritten when the other
13077# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13078compiler_DEFAULT=$CC
13079
13080# save warnings/boilerplate of simple test code
13081ac_outfile=conftest.$ac_objext
13082echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13083eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13084_lt_compiler_boilerplate=`cat conftest.err`
13085$RM conftest*
13086
13087ac_outfile=conftest.$ac_objext
13088echo "$lt_simple_link_test_code" >conftest.$ac_ext
13089eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13090_lt_linker_boilerplate=`cat conftest.err`
13091$RM -r conftest*
13092
13093
13094## CAVEAT EMPTOR:
13095## There is no encapsulation within the following macros, do not change
13096## the running order or otherwise move them around unless you know exactly
13097## what you are doing...
13098if test -n "$compiler"; then
13099
13100lt_prog_compiler_no_builtin_flag=
13101
13102if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013103 case $cc_basename in
13104 nvcc*)
13105 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13106 *)
13107 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13108 esac
cristy73bd4a52010-10-05 11:24:23 +000013109
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13111$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013112if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013113 $as_echo_n "(cached) " >&6
13114else
13115 lt_cv_prog_compiler_rtti_exceptions=no
13116 ac_outfile=conftest.$ac_objext
13117 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13118 lt_compiler_flag="-fno-rtti -fno-exceptions"
13119 # Insert the option either (1) after the last *FLAGS variable, or
13120 # (2) before a word containing "conftest.", or (3) at the end.
13121 # Note that $ac_compile itself does not contain backslashes and begins
13122 # with a dollar sign (not a hyphen), so the echo should work correctly.
13123 # The option is referenced via a variable to avoid confusing sed.
13124 lt_compile=`echo "$ac_compile" | $SED \
13125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13127 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013128 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013129 (eval "$lt_compile" 2>conftest.err)
13130 ac_status=$?
13131 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013133 if (exit $ac_status) && test -s "$ac_outfile"; then
13134 # The compiler can only warn and ignore the option if not recognized
13135 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013136 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013137 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13138 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13139 lt_cv_prog_compiler_rtti_exceptions=yes
13140 fi
13141 fi
13142 $RM conftest*
13143
13144fi
13145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13146$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13147
13148if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13149 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13150else
13151 :
13152fi
13153
13154fi
13155
13156
13157
13158
13159
13160
13161 lt_prog_compiler_wl=
13162lt_prog_compiler_pic=
13163lt_prog_compiler_static=
13164
cristy73bd4a52010-10-05 11:24:23 +000013165
13166 if test "$GCC" = yes; then
13167 lt_prog_compiler_wl='-Wl,'
13168 lt_prog_compiler_static='-static'
13169
13170 case $host_os in
13171 aix*)
13172 # All AIX code is PIC.
13173 if test "$host_cpu" = ia64; then
13174 # AIX 5 now supports IA64 processor
13175 lt_prog_compiler_static='-Bstatic'
13176 fi
13177 ;;
13178
13179 amigaos*)
13180 case $host_cpu in
13181 powerpc)
13182 # see comment about AmigaOS4 .so support
13183 lt_prog_compiler_pic='-fPIC'
13184 ;;
13185 m68k)
13186 # FIXME: we need at least 68020 code to build shared libraries, but
13187 # adding the `-m68020' flag to GCC prevents building anything better,
13188 # like `-m68040'.
13189 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13190 ;;
13191 esac
13192 ;;
13193
13194 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13195 # PIC is the default for these OSes.
13196 ;;
13197
13198 mingw* | cygwin* | pw32* | os2* | cegcc*)
13199 # This hack is so that the source file can tell whether it is being
13200 # built for inclusion in a dll (and should export symbols for example).
13201 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13202 # (--disable-auto-import) libraries
13203 lt_prog_compiler_pic='-DDLL_EXPORT'
13204 ;;
13205
13206 darwin* | rhapsody*)
13207 # PIC is the default on this platform
13208 # Common symbols not allowed in MH_DYLIB files
13209 lt_prog_compiler_pic='-fno-common'
13210 ;;
13211
cristy0c60a692010-11-04 01:09:47 +000013212 haiku*)
13213 # PIC is the default for Haiku.
13214 # The "-static" flag exists, but is broken.
13215 lt_prog_compiler_static=
13216 ;;
13217
cristy73bd4a52010-10-05 11:24:23 +000013218 hpux*)
13219 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13220 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13221 # sets the default TLS model and affects inlining.
13222 case $host_cpu in
13223 hppa*64*)
13224 # +Z the default
13225 ;;
13226 *)
13227 lt_prog_compiler_pic='-fPIC'
13228 ;;
13229 esac
13230 ;;
13231
13232 interix[3-9]*)
13233 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13234 # Instead, we relocate shared libraries at runtime.
13235 ;;
13236
13237 msdosdjgpp*)
13238 # Just because we use GCC doesn't mean we suddenly get shared libraries
13239 # on systems that don't support them.
13240 lt_prog_compiler_can_build_shared=no
13241 enable_shared=no
13242 ;;
13243
13244 *nto* | *qnx*)
13245 # QNX uses GNU C++, but need to define -shared option too, otherwise
13246 # it will coredump.
13247 lt_prog_compiler_pic='-fPIC -shared'
13248 ;;
13249
13250 sysv4*MP*)
13251 if test -d /usr/nec; then
13252 lt_prog_compiler_pic=-Kconform_pic
13253 fi
13254 ;;
13255
13256 *)
13257 lt_prog_compiler_pic='-fPIC'
13258 ;;
13259 esac
cristy0c60a692010-11-04 01:09:47 +000013260
13261 case $cc_basename in
13262 nvcc*) # Cuda Compiler Driver 2.2
13263 lt_prog_compiler_wl='-Xlinker '
13264 lt_prog_compiler_pic='-Xcompiler -fPIC'
13265 ;;
13266 esac
cristy73bd4a52010-10-05 11:24:23 +000013267 else
13268 # PORTME Check for flag to pass linker flags through the system compiler.
13269 case $host_os in
13270 aix*)
13271 lt_prog_compiler_wl='-Wl,'
13272 if test "$host_cpu" = ia64; then
13273 # AIX 5 now supports IA64 processor
13274 lt_prog_compiler_static='-Bstatic'
13275 else
13276 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13277 fi
13278 ;;
13279
13280 mingw* | cygwin* | pw32* | os2* | cegcc*)
13281 # This hack is so that the source file can tell whether it is being
13282 # built for inclusion in a dll (and should export symbols for example).
13283 lt_prog_compiler_pic='-DDLL_EXPORT'
13284 ;;
13285
13286 hpux9* | hpux10* | hpux11*)
13287 lt_prog_compiler_wl='-Wl,'
13288 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13289 # not for PA HP-UX.
13290 case $host_cpu in
13291 hppa*64*|ia64*)
13292 # +Z the default
13293 ;;
13294 *)
13295 lt_prog_compiler_pic='+Z'
13296 ;;
13297 esac
13298 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13299 lt_prog_compiler_static='${wl}-a ${wl}archive'
13300 ;;
13301
13302 irix5* | irix6* | nonstopux*)
13303 lt_prog_compiler_wl='-Wl,'
13304 # PIC (with -KPIC) is the default.
13305 lt_prog_compiler_static='-non_shared'
13306 ;;
13307
cristy0c60a692010-11-04 01:09:47 +000013308 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013309 case $cc_basename in
13310 # old Intel for x86_64 which still supported -KPIC.
13311 ecc*)
13312 lt_prog_compiler_wl='-Wl,'
13313 lt_prog_compiler_pic='-KPIC'
13314 lt_prog_compiler_static='-static'
13315 ;;
13316 # icc used to be incompatible with GCC.
13317 # ICC 10 doesn't accept -KPIC any more.
13318 icc* | ifort*)
13319 lt_prog_compiler_wl='-Wl,'
13320 lt_prog_compiler_pic='-fPIC'
13321 lt_prog_compiler_static='-static'
13322 ;;
13323 # Lahey Fortran 8.1.
13324 lf95*)
13325 lt_prog_compiler_wl='-Wl,'
13326 lt_prog_compiler_pic='--shared'
13327 lt_prog_compiler_static='--static'
13328 ;;
cristyda16f162011-02-19 23:52:17 +000013329 nagfor*)
13330 # NAG Fortran compiler
13331 lt_prog_compiler_wl='-Wl,-Wl,,'
13332 lt_prog_compiler_pic='-PIC'
13333 lt_prog_compiler_static='-Bstatic'
13334 ;;
cristy0c60a692010-11-04 01:09:47 +000013335 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013336 # Portland Group compilers (*not* the Pentium gcc compiler,
13337 # which looks to be a dead project)
13338 lt_prog_compiler_wl='-Wl,'
13339 lt_prog_compiler_pic='-fpic'
13340 lt_prog_compiler_static='-Bstatic'
13341 ;;
13342 ccc*)
13343 lt_prog_compiler_wl='-Wl,'
13344 # All Alpha code is PIC.
13345 lt_prog_compiler_static='-non_shared'
13346 ;;
cristy0c60a692010-11-04 01:09:47 +000013347 xl* | bgxl* | bgf* | mpixl*)
13348 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013349 lt_prog_compiler_wl='-Wl,'
13350 lt_prog_compiler_pic='-qpic'
13351 lt_prog_compiler_static='-qstaticlink'
13352 ;;
13353 *)
13354 case `$CC -V 2>&1 | sed 5q` in
cristy0c60a692010-11-04 01:09:47 +000013355 *Sun\ F* | *Sun*Fortran*)
13356 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13357 lt_prog_compiler_pic='-KPIC'
13358 lt_prog_compiler_static='-Bstatic'
13359 lt_prog_compiler_wl=''
13360 ;;
cristy73bd4a52010-10-05 11:24:23 +000013361 *Sun\ C*)
13362 # Sun C 5.9
13363 lt_prog_compiler_pic='-KPIC'
13364 lt_prog_compiler_static='-Bstatic'
13365 lt_prog_compiler_wl='-Wl,'
13366 ;;
cristy73bd4a52010-10-05 11:24:23 +000013367 esac
13368 ;;
13369 esac
13370 ;;
13371
13372 newsos6)
13373 lt_prog_compiler_pic='-KPIC'
13374 lt_prog_compiler_static='-Bstatic'
13375 ;;
13376
13377 *nto* | *qnx*)
13378 # QNX uses GNU C++, but need to define -shared option too, otherwise
13379 # it will coredump.
13380 lt_prog_compiler_pic='-fPIC -shared'
13381 ;;
13382
13383 osf3* | osf4* | osf5*)
13384 lt_prog_compiler_wl='-Wl,'
13385 # All OSF/1 code is PIC.
13386 lt_prog_compiler_static='-non_shared'
13387 ;;
13388
13389 rdos*)
13390 lt_prog_compiler_static='-non_shared'
13391 ;;
13392
13393 solaris*)
13394 lt_prog_compiler_pic='-KPIC'
13395 lt_prog_compiler_static='-Bstatic'
13396 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013397 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013398 lt_prog_compiler_wl='-Qoption ld ';;
13399 *)
13400 lt_prog_compiler_wl='-Wl,';;
13401 esac
13402 ;;
13403
13404 sunos4*)
13405 lt_prog_compiler_wl='-Qoption ld '
13406 lt_prog_compiler_pic='-PIC'
13407 lt_prog_compiler_static='-Bstatic'
13408 ;;
13409
13410 sysv4 | sysv4.2uw2* | sysv4.3*)
13411 lt_prog_compiler_wl='-Wl,'
13412 lt_prog_compiler_pic='-KPIC'
13413 lt_prog_compiler_static='-Bstatic'
13414 ;;
13415
13416 sysv4*MP*)
13417 if test -d /usr/nec ;then
13418 lt_prog_compiler_pic='-Kconform_pic'
13419 lt_prog_compiler_static='-Bstatic'
13420 fi
13421 ;;
13422
13423 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13424 lt_prog_compiler_wl='-Wl,'
13425 lt_prog_compiler_pic='-KPIC'
13426 lt_prog_compiler_static='-Bstatic'
13427 ;;
13428
13429 unicos*)
13430 lt_prog_compiler_wl='-Wl,'
13431 lt_prog_compiler_can_build_shared=no
13432 ;;
13433
13434 uts4*)
13435 lt_prog_compiler_pic='-pic'
13436 lt_prog_compiler_static='-Bstatic'
13437 ;;
13438
13439 *)
13440 lt_prog_compiler_can_build_shared=no
13441 ;;
13442 esac
13443 fi
13444
13445case $host_os in
13446 # For platforms which do not support PIC, -DPIC is meaningless:
13447 *djgpp*)
13448 lt_prog_compiler_pic=
13449 ;;
13450 *)
13451 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13452 ;;
13453esac
cristy73bd4a52010-10-05 11:24:23 +000013454
cristyda16f162011-02-19 23:52:17 +000013455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13456$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13457if ${lt_cv_prog_compiler_pic+:} false; then :
13458 $as_echo_n "(cached) " >&6
13459else
13460 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13461fi
13462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13463$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13464lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013465
13466#
13467# Check to make sure the PIC flag actually works.
13468#
13469if test -n "$lt_prog_compiler_pic"; then
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13471$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013472if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013473 $as_echo_n "(cached) " >&6
13474else
13475 lt_cv_prog_compiler_pic_works=no
13476 ac_outfile=conftest.$ac_objext
13477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13478 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13479 # Insert the option either (1) after the last *FLAGS variable, or
13480 # (2) before a word containing "conftest.", or (3) at the end.
13481 # Note that $ac_compile itself does not contain backslashes and begins
13482 # with a dollar sign (not a hyphen), so the echo should work correctly.
13483 # The option is referenced via a variable to avoid confusing sed.
13484 lt_compile=`echo "$ac_compile" | $SED \
13485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13487 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013488 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013489 (eval "$lt_compile" 2>conftest.err)
13490 ac_status=$?
13491 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013493 if (exit $ac_status) && test -s "$ac_outfile"; then
13494 # The compiler can only warn and ignore the option if not recognized
13495 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013496 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13498 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13499 lt_cv_prog_compiler_pic_works=yes
13500 fi
13501 fi
13502 $RM conftest*
13503
13504fi
13505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13506$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13507
13508if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13509 case $lt_prog_compiler_pic in
13510 "" | " "*) ;;
13511 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13512 esac
13513else
13514 lt_prog_compiler_pic=
13515 lt_prog_compiler_can_build_shared=no
13516fi
13517
13518fi
13519
13520
13521
13522
13523
13524
cristyda16f162011-02-19 23:52:17 +000013525
13526
13527
13528
13529
cristy73bd4a52010-10-05 11:24:23 +000013530#
13531# Check to make sure the static flag actually works.
13532#
13533wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13535$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013536if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013537 $as_echo_n "(cached) " >&6
13538else
13539 lt_cv_prog_compiler_static_works=no
13540 save_LDFLAGS="$LDFLAGS"
13541 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13542 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13543 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13544 # The linker can only warn and ignore the option if not recognized
13545 # So say no if there are warnings
13546 if test -s conftest.err; then
13547 # Append any errors to the config.log.
13548 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013549 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013550 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13551 if diff conftest.exp conftest.er2 >/dev/null; then
13552 lt_cv_prog_compiler_static_works=yes
13553 fi
13554 else
13555 lt_cv_prog_compiler_static_works=yes
13556 fi
13557 fi
13558 $RM -r conftest*
13559 LDFLAGS="$save_LDFLAGS"
13560
13561fi
13562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13563$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13564
13565if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13566 :
13567else
13568 lt_prog_compiler_static=
13569fi
13570
13571
13572
13573
13574
13575
13576
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13578$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013579if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013580 $as_echo_n "(cached) " >&6
13581else
13582 lt_cv_prog_compiler_c_o=no
13583 $RM -r conftest 2>/dev/null
13584 mkdir conftest
13585 cd conftest
13586 mkdir out
13587 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13588
13589 lt_compiler_flag="-o out/conftest2.$ac_objext"
13590 # Insert the option either (1) after the last *FLAGS variable, or
13591 # (2) before a word containing "conftest.", or (3) at the end.
13592 # Note that $ac_compile itself does not contain backslashes and begins
13593 # with a dollar sign (not a hyphen), so the echo should work correctly.
13594 lt_compile=`echo "$ac_compile" | $SED \
13595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13597 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013598 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013599 (eval "$lt_compile" 2>out/conftest.err)
13600 ac_status=$?
13601 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013603 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13604 then
13605 # The compiler can only warn and ignore the option if not recognized
13606 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013607 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013608 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13609 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13610 lt_cv_prog_compiler_c_o=yes
13611 fi
13612 fi
13613 chmod u+w . 2>&5
13614 $RM conftest*
13615 # SGI C++ compiler will create directory out/ii_files/ for
13616 # template instantiation
13617 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13618 $RM out/* && rmdir out
13619 cd ..
13620 $RM -r conftest
13621 $RM conftest*
13622
13623fi
13624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13625$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13626
13627
13628
13629
13630
13631
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13633$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013634if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013635 $as_echo_n "(cached) " >&6
13636else
13637 lt_cv_prog_compiler_c_o=no
13638 $RM -r conftest 2>/dev/null
13639 mkdir conftest
13640 cd conftest
13641 mkdir out
13642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13643
13644 lt_compiler_flag="-o out/conftest2.$ac_objext"
13645 # Insert the option either (1) after the last *FLAGS variable, or
13646 # (2) before a word containing "conftest.", or (3) at the end.
13647 # Note that $ac_compile itself does not contain backslashes and begins
13648 # with a dollar sign (not a hyphen), so the echo should work correctly.
13649 lt_compile=`echo "$ac_compile" | $SED \
13650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13652 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013653 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013654 (eval "$lt_compile" 2>out/conftest.err)
13655 ac_status=$?
13656 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013658 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13659 then
13660 # The compiler can only warn and ignore the option if not recognized
13661 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013662 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013663 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13664 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13665 lt_cv_prog_compiler_c_o=yes
13666 fi
13667 fi
13668 chmod u+w . 2>&5
13669 $RM conftest*
13670 # SGI C++ compiler will create directory out/ii_files/ for
13671 # template instantiation
13672 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13673 $RM out/* && rmdir out
13674 cd ..
13675 $RM -r conftest
13676 $RM conftest*
13677
13678fi
13679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13680$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13681
13682
13683
13684
13685hard_links="nottested"
13686if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13687 # do not overwrite the value of need_locks provided by the user
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13689$as_echo_n "checking if we can lock with hard links... " >&6; }
13690 hard_links=yes
13691 $RM conftest*
13692 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13693 touch conftest.a
13694 ln conftest.a conftest.b 2>&5 || hard_links=no
13695 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13697$as_echo "$hard_links" >&6; }
13698 if test "$hard_links" = no; then
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13700$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13701 need_locks=warn
13702 fi
13703else
13704 need_locks=no
13705fi
13706
13707
13708
13709
13710
13711
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13713$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13714
13715 runpath_var=
13716 allow_undefined_flag=
13717 always_export_symbols=no
13718 archive_cmds=
13719 archive_expsym_cmds=
13720 compiler_needs_object=no
13721 enable_shared_with_static_runtimes=no
13722 export_dynamic_flag_spec=
13723 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13724 hardcode_automatic=no
13725 hardcode_direct=no
13726 hardcode_direct_absolute=no
13727 hardcode_libdir_flag_spec=
13728 hardcode_libdir_flag_spec_ld=
13729 hardcode_libdir_separator=
13730 hardcode_minus_L=no
13731 hardcode_shlibpath_var=unsupported
13732 inherit_rpath=no
13733 link_all_deplibs=unknown
13734 module_cmds=
13735 module_expsym_cmds=
13736 old_archive_from_new_cmds=
13737 old_archive_from_expsyms_cmds=
13738 thread_safe_flag_spec=
13739 whole_archive_flag_spec=
13740 # include_expsyms should be a list of space-separated symbols to be *always*
13741 # included in the symbol list
13742 include_expsyms=
13743 # exclude_expsyms can be an extended regexp of symbols to exclude
13744 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13745 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13746 # as well as any symbol that contains `d'.
13747 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13748 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13749 # platforms (ab)use it in PIC code, but their linkers get confused if
13750 # the symbol is explicitly referenced. Since portable code cannot
13751 # rely on this symbol name, it's probably fine to never include it in
13752 # preloaded symbol tables.
13753 # Exclude shared library initialization/finalization symbols.
13754 extract_expsyms_cmds=
13755
13756 case $host_os in
13757 cygwin* | mingw* | pw32* | cegcc*)
13758 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13759 # When not using gcc, we currently assume that we are using
13760 # Microsoft Visual C++.
13761 if test "$GCC" != yes; then
13762 with_gnu_ld=no
13763 fi
13764 ;;
13765 interix*)
13766 # we just hope/assume this is gcc and not c89 (= MSVC++)
13767 with_gnu_ld=yes
13768 ;;
13769 openbsd*)
13770 with_gnu_ld=no
13771 ;;
13772 esac
13773
13774 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013775
13776 # On some targets, GNU ld is compatible enough with the native linker
13777 # that we're better off using the native interface for both.
13778 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013779 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013780 case $host_os in
13781 aix*)
13782 # The AIX port of GNU ld has always aspired to compatibility
13783 # with the native linker. However, as the warning in the GNU ld
13784 # block says, versions before 2.19.5* couldn't really create working
13785 # shared libraries, regardless of the interface used.
13786 case `$LD -v 2>&1` in
13787 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13788 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13789 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13790 *)
13791 lt_use_gnu_ld_interface=yes
13792 ;;
13793 esac
13794 ;;
13795 *)
13796 lt_use_gnu_ld_interface=yes
13797 ;;
13798 esac
13799 fi
13800
13801 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000013802 # If archive_cmds runs LD, not CC, wlarc should be empty
13803 wlarc='${wl}'
13804
13805 # Set some defaults for GNU ld with shared library support. These
13806 # are reset later if shared libraries are not supported. Putting them
13807 # here allows them to be overridden if necessary.
13808 runpath_var=LD_RUN_PATH
13809 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13810 export_dynamic_flag_spec='${wl}--export-dynamic'
13811 # ancient GNU ld didn't support --whole-archive et. al.
13812 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13813 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13814 else
13815 whole_archive_flag_spec=
13816 fi
13817 supports_anon_versioning=no
13818 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000013819 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000013820 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13821 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13822 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13823 *\ 2.11.*) ;; # other 2.11 versions
13824 *) supports_anon_versioning=yes ;;
13825 esac
13826
13827 # See if GNU ld supports shared libraries.
13828 case $host_os in
13829 aix[3-9]*)
13830 # On AIX/PPC, the GNU linker is very broken
13831 if test "$host_cpu" != ia64; then
13832 ld_shlibs=no
13833 cat <<_LT_EOF 1>&2
13834
cristy0c60a692010-11-04 01:09:47 +000013835*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000013836*** to be unable to reliably create shared libraries on AIX.
13837*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000013838*** really care for shared libraries, you may want to install binutils
13839*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13840*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000013841
13842_LT_EOF
13843 fi
13844 ;;
13845
13846 amigaos*)
13847 case $host_cpu in
13848 powerpc)
13849 # see comment about AmigaOS4 .so support
13850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13851 archive_expsym_cmds=''
13852 ;;
13853 m68k)
13854 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)'
13855 hardcode_libdir_flag_spec='-L$libdir'
13856 hardcode_minus_L=yes
13857 ;;
13858 esac
13859 ;;
13860
13861 beos*)
13862 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13863 allow_undefined_flag=unsupported
13864 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13865 # support --undefined. This deserves some investigation. FIXME
13866 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13867 else
13868 ld_shlibs=no
13869 fi
13870 ;;
13871
13872 cygwin* | mingw* | pw32* | cegcc*)
13873 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13874 # as there is no search path for DLLs.
13875 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000013876 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000013877 allow_undefined_flag=unsupported
13878 always_export_symbols=no
13879 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000013880 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13881 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
cristy73bd4a52010-10-05 11:24:23 +000013882
13883 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13885 # If the export-symbols file already is a .def file (1st line
13886 # is EXPORTS), use it as is; otherwise, prepend...
13887 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13888 cp $export_symbols $output_objdir/$soname.def;
13889 else
13890 echo EXPORTS > $output_objdir/$soname.def;
13891 cat $export_symbols >> $output_objdir/$soname.def;
13892 fi~
13893 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13894 else
13895 ld_shlibs=no
13896 fi
13897 ;;
13898
cristy0c60a692010-11-04 01:09:47 +000013899 haiku*)
13900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13901 link_all_deplibs=yes
13902 ;;
13903
cristy73bd4a52010-10-05 11:24:23 +000013904 interix[3-9]*)
13905 hardcode_direct=no
13906 hardcode_shlibpath_var=no
13907 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13908 export_dynamic_flag_spec='${wl}-E'
13909 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13910 # Instead, shared libraries are loaded at an image base (0x10000000 by
13911 # default) and relocated if they conflict, which is a slow very memory
13912 # consuming and fragmenting process. To avoid this, we pick a random,
13913 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13914 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13915 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13916 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'
13917 ;;
13918
cristy0c60a692010-11-04 01:09:47 +000013919 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013920 tmp_diet=no
13921 if test "$host_os" = linux-dietlibc; then
13922 case $cc_basename in
13923 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13924 esac
13925 fi
13926 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13927 && test "$tmp_diet" = no
13928 then
cristyda16f162011-02-19 23:52:17 +000013929 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000013930 tmp_sharedflag='-shared'
13931 case $cc_basename,$host_cpu in
13932 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000013933 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 +000013934 tmp_addflag=' $pic_flag'
13935 ;;
cristy0c60a692010-11-04 01:09:47 +000013936 pgf77* | pgf90* | pgf95* | pgfortran*)
13937 # Portland Group f77 and f90 compilers
13938 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 +000013939 tmp_addflag=' $pic_flag -Mnomain' ;;
13940 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13941 tmp_addflag=' -i_dynamic' ;;
13942 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13943 tmp_addflag=' -i_dynamic -nofor_main' ;;
13944 ifc* | ifort*) # Intel Fortran compiler
13945 tmp_addflag=' -nofor_main' ;;
13946 lf95*) # Lahey Fortran 8.1
13947 whole_archive_flag_spec=
13948 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000013949 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000013950 tmp_sharedflag='-qmkshrobj'
13951 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000013952 nvcc*) # Cuda Compiler Driver 2.2
13953 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'
13954 compiler_needs_object=yes
13955 ;;
cristy73bd4a52010-10-05 11:24:23 +000013956 esac
13957 case `$CC -V 2>&1 | sed 5q` in
13958 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000013959 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 +000013960 compiler_needs_object=yes
13961 tmp_sharedflag='-G' ;;
13962 *Sun\ F*) # Sun Fortran 8.3
13963 tmp_sharedflag='-G' ;;
13964 esac
13965 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13966
13967 if test "x$supports_anon_versioning" = xyes; then
13968 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13969 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13970 echo "local: *; };" >> $output_objdir/$libname.ver~
13971 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13972 fi
13973
13974 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013975 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000013976 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13977 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13978 hardcode_libdir_flag_spec=
13979 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy0c60a692010-11-04 01:09:47 +000013980 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013981 if test "x$supports_anon_versioning" = xyes; then
13982 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13983 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13984 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000013985 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013986 fi
13987 ;;
13988 esac
13989 else
13990 ld_shlibs=no
13991 fi
13992 ;;
13993
13994 netbsd*)
13995 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13996 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13997 wlarc=
13998 else
cristyda16f162011-02-19 23:52:17 +000013999 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14000 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014001 fi
14002 ;;
14003
14004 solaris*)
14005 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14006 ld_shlibs=no
14007 cat <<_LT_EOF 1>&2
14008
14009*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14010*** create shared libraries on Solaris systems. Therefore, libtool
14011*** is disabling shared libraries support. We urge you to upgrade GNU
14012*** binutils to release 2.9.1 or newer. Another option is to modify
14013*** your PATH or compiler configuration so that the native linker is
14014*** used, and then restart.
14015
14016_LT_EOF
14017 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014018 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14019 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014020 else
14021 ld_shlibs=no
14022 fi
14023 ;;
14024
14025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14026 case `$LD -v 2>&1` in
14027 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14028 ld_shlibs=no
14029 cat <<_LT_EOF 1>&2
14030
14031*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14032*** reliably create shared libraries on SCO systems. Therefore, libtool
14033*** is disabling shared libraries support. We urge you to upgrade GNU
14034*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14035*** your PATH or compiler configuration so that the native linker is
14036*** used, and then restart.
14037
14038_LT_EOF
14039 ;;
14040 *)
14041 # For security reasons, it is highly recommended that you always
14042 # use absolute paths for naming shared libraries, and exclude the
14043 # DT_RUNPATH tag from executables and libraries. But doing so
14044 # requires that you compile everything twice, which is a pain.
14045 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14046 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14049 else
14050 ld_shlibs=no
14051 fi
14052 ;;
14053 esac
14054 ;;
14055
14056 sunos4*)
14057 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14058 wlarc=
14059 hardcode_direct=yes
14060 hardcode_shlibpath_var=no
14061 ;;
14062
14063 *)
14064 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014065 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14066 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014067 else
14068 ld_shlibs=no
14069 fi
14070 ;;
14071 esac
14072
14073 if test "$ld_shlibs" = no; then
14074 runpath_var=
14075 hardcode_libdir_flag_spec=
14076 export_dynamic_flag_spec=
14077 whole_archive_flag_spec=
14078 fi
14079 else
14080 # PORTME fill in a description of your system's linker (not GNU ld)
14081 case $host_os in
14082 aix3*)
14083 allow_undefined_flag=unsupported
14084 always_export_symbols=yes
14085 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'
14086 # Note: this linker hardcodes the directories in LIBPATH if there
14087 # are no directories specified by -L.
14088 hardcode_minus_L=yes
14089 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14090 # Neither direct hardcoding nor static linking is supported with a
14091 # broken collect2.
14092 hardcode_direct=unsupported
14093 fi
14094 ;;
14095
14096 aix[4-9]*)
14097 if test "$host_cpu" = ia64; then
14098 # On IA64, the linker does run time linking by default, so we don't
14099 # have to do anything special.
14100 aix_use_runtimelinking=no
14101 exp_sym_flag='-Bexport'
14102 no_entry_flag=""
14103 else
14104 # If we're using GNU nm, then we don't want the "-C" option.
14105 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014106 # Also, AIX nm treats weak defined symbols like other global
14107 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014108 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014109 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 +000014110 else
14111 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'
14112 fi
14113 aix_use_runtimelinking=no
14114
14115 # Test if we are trying to use run time linking or normal
14116 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14117 # need to do runtime linking.
14118 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14119 for ld_flag in $LDFLAGS; do
14120 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14121 aix_use_runtimelinking=yes
14122 break
14123 fi
14124 done
14125 ;;
14126 esac
14127
14128 exp_sym_flag='-bexport'
14129 no_entry_flag='-bnoentry'
14130 fi
14131
14132 # When large executables or shared objects are built, AIX ld can
14133 # have problems creating the table of contents. If linking a library
14134 # or program results in "error TOC overflow" add -mminimal-toc to
14135 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14136 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14137
14138 archive_cmds=''
14139 hardcode_direct=yes
14140 hardcode_direct_absolute=yes
14141 hardcode_libdir_separator=':'
14142 link_all_deplibs=yes
14143 file_list_spec='${wl}-f,'
14144
14145 if test "$GCC" = yes; then
14146 case $host_os in aix4.[012]|aix4.[012].*)
14147 # We only want to do this on AIX 4.2 and lower, the check
14148 # below for broken collect2 doesn't work under 4.3+
14149 collect2name=`${CC} -print-prog-name=collect2`
14150 if test -f "$collect2name" &&
14151 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14152 then
14153 # We have reworked collect2
14154 :
14155 else
14156 # We have old collect2
14157 hardcode_direct=unsupported
14158 # It fails to find uninstalled libraries when the uninstalled
14159 # path is not listed in the libpath. Setting hardcode_minus_L
14160 # to unsupported forces relinking
14161 hardcode_minus_L=yes
14162 hardcode_libdir_flag_spec='-L$libdir'
14163 hardcode_libdir_separator=
14164 fi
14165 ;;
14166 esac
14167 shared_flag='-shared'
14168 if test "$aix_use_runtimelinking" = yes; then
14169 shared_flag="$shared_flag "'${wl}-G'
14170 fi
14171 else
14172 # not using gcc
14173 if test "$host_cpu" = ia64; then
14174 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14175 # chokes on -Wl,-G. The following line is correct:
14176 shared_flag='-G'
14177 else
14178 if test "$aix_use_runtimelinking" = yes; then
14179 shared_flag='${wl}-G'
14180 else
14181 shared_flag='${wl}-bM:SRE'
14182 fi
14183 fi
14184 fi
14185
14186 export_dynamic_flag_spec='${wl}-bexpall'
14187 # It seems that -bexpall does not export symbols beginning with
14188 # underscore (_), so it is better to generate a list of symbols to export.
14189 always_export_symbols=yes
14190 if test "$aix_use_runtimelinking" = yes; then
14191 # Warning - without using the other runtime loading flags (-brtl),
14192 # -berok will link without error, but may produce a broken library.
14193 allow_undefined_flag='-berok'
14194 # Determine the default libpath from the value encoded in an
14195 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014196 if test "${lt_cv_aix_libpath+set}" = set; then
14197 aix_libpath=$lt_cv_aix_libpath
14198else
14199 if ${lt_cv_aix_libpath_+:} false; then :
14200 $as_echo_n "(cached) " >&6
14201else
14202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014203/* end confdefs.h. */
14204
14205int
14206main ()
14207{
14208
14209 ;
14210 return 0;
14211}
14212_ACEOF
14213if ac_fn_c_try_link "$LINENO"; then :
14214
cristyda16f162011-02-19 23:52:17 +000014215 lt_aix_libpath_sed='
14216 /Import File Strings/,/^$/ {
14217 /^0/ {
14218 s/^0 *\([^ ]*\) *$/\1/
14219 p
14220 }
14221 }'
14222 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14223 # Check for a 64-bit object if we didn't find anything.
14224 if test -z "$lt_cv_aix_libpath_"; then
14225 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14226 fi
cristy73bd4a52010-10-05 11:24:23 +000014227fi
14228rm -f core conftest.err conftest.$ac_objext \
14229 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014230 if test -z "$lt_cv_aix_libpath_"; then
14231 lt_cv_aix_libpath_="/usr/lib:/lib"
14232 fi
14233
14234fi
14235
14236 aix_libpath=$lt_cv_aix_libpath_
14237fi
cristy73bd4a52010-10-05 11:24:23 +000014238
14239 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014240 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 +000014241 else
14242 if test "$host_cpu" = ia64; then
14243 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14244 allow_undefined_flag="-z nodefs"
14245 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"
14246 else
14247 # Determine the default libpath from the value encoded in an
14248 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014249 if test "${lt_cv_aix_libpath+set}" = set; then
14250 aix_libpath=$lt_cv_aix_libpath
14251else
14252 if ${lt_cv_aix_libpath_+:} false; then :
14253 $as_echo_n "(cached) " >&6
14254else
14255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014256/* end confdefs.h. */
14257
14258int
14259main ()
14260{
14261
14262 ;
14263 return 0;
14264}
14265_ACEOF
14266if ac_fn_c_try_link "$LINENO"; then :
14267
cristyda16f162011-02-19 23:52:17 +000014268 lt_aix_libpath_sed='
14269 /Import File Strings/,/^$/ {
14270 /^0/ {
14271 s/^0 *\([^ ]*\) *$/\1/
14272 p
14273 }
14274 }'
14275 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14276 # Check for a 64-bit object if we didn't find anything.
14277 if test -z "$lt_cv_aix_libpath_"; then
14278 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14279 fi
cristy73bd4a52010-10-05 11:24:23 +000014280fi
14281rm -f core conftest.err conftest.$ac_objext \
14282 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014283 if test -z "$lt_cv_aix_libpath_"; then
14284 lt_cv_aix_libpath_="/usr/lib:/lib"
14285 fi
14286
14287fi
14288
14289 aix_libpath=$lt_cv_aix_libpath_
14290fi
cristy73bd4a52010-10-05 11:24:23 +000014291
14292 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14293 # Warning - without using the other run time loading flags,
14294 # -berok will link without error, but may produce a broken library.
14295 no_undefined_flag=' ${wl}-bernotok'
14296 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014297 if test "$with_gnu_ld" = yes; then
14298 # We only use this code for GNU lds that support --whole-archive.
14299 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14300 else
14301 # Exported symbols can be pulled into shared objects from archives
14302 whole_archive_flag_spec='$convenience'
14303 fi
cristy73bd4a52010-10-05 11:24:23 +000014304 archive_cmds_need_lc=yes
14305 # This is similar to how AIX traditionally builds its shared libraries.
14306 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'
14307 fi
14308 fi
14309 ;;
14310
14311 amigaos*)
14312 case $host_cpu in
14313 powerpc)
14314 # see comment about AmigaOS4 .so support
14315 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14316 archive_expsym_cmds=''
14317 ;;
14318 m68k)
14319 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)'
14320 hardcode_libdir_flag_spec='-L$libdir'
14321 hardcode_minus_L=yes
14322 ;;
14323 esac
14324 ;;
14325
14326 bsdi[45]*)
14327 export_dynamic_flag_spec=-rdynamic
14328 ;;
14329
14330 cygwin* | mingw* | pw32* | cegcc*)
14331 # When not using gcc, we currently assume that we are using
14332 # Microsoft Visual C++.
14333 # hardcode_libdir_flag_spec is actually meaningless, as there is
14334 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014335 case $cc_basename in
14336 cl*)
14337 # Native MSVC
14338 hardcode_libdir_flag_spec=' '
14339 allow_undefined_flag=unsupported
14340 always_export_symbols=yes
14341 file_list_spec='@'
14342 # Tell ltmain to make .lib files, not .a files.
14343 libext=lib
14344 # Tell ltmain to make .dll files, not .so files.
14345 shrext_cmds=".dll"
14346 # FIXME: Setting linknames here is a bad hack.
14347 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14348 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14349 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14350 else
14351 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14352 fi~
14353 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14354 linknames='
14355 # The linker will not automatically build a static lib if we build a DLL.
14356 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14357 enable_shared_with_static_runtimes=yes
14358 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14359 # Don't use ranlib
14360 old_postinstall_cmds='chmod 644 $oldlib'
14361 postlink_cmds='lt_outputfile="@OUTPUT@"~
14362 lt_tool_outputfile="@TOOL_OUTPUT@"~
14363 case $lt_outputfile in
14364 *.exe|*.EXE) ;;
14365 *)
14366 lt_outputfile="$lt_outputfile.exe"
14367 lt_tool_outputfile="$lt_tool_outputfile.exe"
14368 ;;
14369 esac~
14370 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14371 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14372 $RM "$lt_outputfile.manifest";
14373 fi'
14374 ;;
14375 *)
14376 # Assume MSVC wrapper
14377 hardcode_libdir_flag_spec=' '
14378 allow_undefined_flag=unsupported
14379 # Tell ltmain to make .lib files, not .a files.
14380 libext=lib
14381 # Tell ltmain to make .dll files, not .so files.
14382 shrext_cmds=".dll"
14383 # FIXME: Setting linknames here is a bad hack.
14384 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14385 # The linker will automatically build a .lib file if we build a DLL.
14386 old_archive_from_new_cmds='true'
14387 # FIXME: Should let the user specify the lib program.
14388 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14389 enable_shared_with_static_runtimes=yes
14390 ;;
14391 esac
cristy73bd4a52010-10-05 11:24:23 +000014392 ;;
14393
14394 darwin* | rhapsody*)
14395
14396
14397 archive_cmds_need_lc=no
14398 hardcode_direct=no
14399 hardcode_automatic=yes
14400 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014401 if test "$lt_cv_ld_force_load" = "yes"; then
14402 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\"`'
14403 else
14404 whole_archive_flag_spec=''
14405 fi
cristy73bd4a52010-10-05 11:24:23 +000014406 link_all_deplibs=yes
14407 allow_undefined_flag="$_lt_dar_allow_undefined"
14408 case $cc_basename in
14409 ifort*) _lt_dar_can_shared=yes ;;
14410 *) _lt_dar_can_shared=$GCC ;;
14411 esac
14412 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014413 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014414 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14415 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14416 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}"
14417 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}"
14418
14419 else
14420 ld_shlibs=no
14421 fi
14422
14423 ;;
14424
14425 dgux*)
14426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14427 hardcode_libdir_flag_spec='-L$libdir'
14428 hardcode_shlibpath_var=no
14429 ;;
14430
14431 freebsd1*)
14432 ld_shlibs=no
14433 ;;
14434
14435 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14436 # support. Future versions do this automatically, but an explicit c++rt0.o
14437 # does not break anything, and helps significantly (at the cost of a little
14438 # extra space).
14439 freebsd2.2*)
14440 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14441 hardcode_libdir_flag_spec='-R$libdir'
14442 hardcode_direct=yes
14443 hardcode_shlibpath_var=no
14444 ;;
14445
14446 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14447 freebsd2*)
14448 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14449 hardcode_direct=yes
14450 hardcode_minus_L=yes
14451 hardcode_shlibpath_var=no
14452 ;;
14453
14454 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14455 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014456 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014457 hardcode_libdir_flag_spec='-R$libdir'
14458 hardcode_direct=yes
14459 hardcode_shlibpath_var=no
14460 ;;
14461
14462 hpux9*)
14463 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014464 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cristy73bd4a52010-10-05 11:24:23 +000014465 else
14466 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'
14467 fi
14468 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14469 hardcode_libdir_separator=:
14470 hardcode_direct=yes
14471
14472 # hardcode_minus_L: Not really in the search PATH,
14473 # but as the default location of the library.
14474 hardcode_minus_L=yes
14475 export_dynamic_flag_spec='${wl}-E'
14476 ;;
14477
14478 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014479 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014480 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014481 else
14482 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14483 fi
14484 if test "$with_gnu_ld" = no; then
14485 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14486 hardcode_libdir_flag_spec_ld='+b $libdir'
14487 hardcode_libdir_separator=:
14488 hardcode_direct=yes
14489 hardcode_direct_absolute=yes
14490 export_dynamic_flag_spec='${wl}-E'
14491 # hardcode_minus_L: Not really in the search PATH,
14492 # but as the default location of the library.
14493 hardcode_minus_L=yes
14494 fi
14495 ;;
14496
14497 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014498 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014499 case $host_cpu in
14500 hppa*64*)
14501 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14502 ;;
14503 ia64*)
cristyda16f162011-02-19 23:52:17 +000014504 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014505 ;;
14506 *)
cristyda16f162011-02-19 23:52:17 +000014507 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014508 ;;
14509 esac
14510 else
14511 case $host_cpu in
14512 hppa*64*)
14513 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14514 ;;
14515 ia64*)
14516 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14517 ;;
14518 *)
cristy0c60a692010-11-04 01:09:47 +000014519
14520 # Older versions of the 11.00 compiler do not understand -b yet
14521 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14523$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014524if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014525 $as_echo_n "(cached) " >&6
14526else
14527 lt_cv_prog_compiler__b=no
14528 save_LDFLAGS="$LDFLAGS"
14529 LDFLAGS="$LDFLAGS -b"
14530 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14531 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14532 # The linker can only warn and ignore the option if not recognized
14533 # So say no if there are warnings
14534 if test -s conftest.err; then
14535 # Append any errors to the config.log.
14536 cat conftest.err 1>&5
14537 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14538 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14539 if diff conftest.exp conftest.er2 >/dev/null; then
14540 lt_cv_prog_compiler__b=yes
14541 fi
14542 else
14543 lt_cv_prog_compiler__b=yes
14544 fi
14545 fi
14546 $RM -r conftest*
14547 LDFLAGS="$save_LDFLAGS"
14548
14549fi
14550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14551$as_echo "$lt_cv_prog_compiler__b" >&6; }
14552
14553if test x"$lt_cv_prog_compiler__b" = xyes; then
14554 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14555else
14556 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14557fi
14558
cristy73bd4a52010-10-05 11:24:23 +000014559 ;;
14560 esac
14561 fi
14562 if test "$with_gnu_ld" = no; then
14563 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14564 hardcode_libdir_separator=:
14565
14566 case $host_cpu in
14567 hppa*64*|ia64*)
14568 hardcode_direct=no
14569 hardcode_shlibpath_var=no
14570 ;;
14571 *)
14572 hardcode_direct=yes
14573 hardcode_direct_absolute=yes
14574 export_dynamic_flag_spec='${wl}-E'
14575
14576 # hardcode_minus_L: Not really in the search PATH,
14577 # but as the default location of the library.
14578 hardcode_minus_L=yes
14579 ;;
14580 esac
14581 fi
14582 ;;
14583
14584 irix5* | irix6* | nonstopux*)
14585 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014586 archive_cmds='$CC -shared $pic_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 +000014587 # Try to use the -exported_symbol ld option, if it does not
14588 # work, assume that -exports_file does not work either and
14589 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014590 # This should be the same for all languages, so no per-tag cache variable.
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14592$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14593if ${lt_cv_irix_exported_symbol+:} false; then :
14594 $as_echo_n "(cached) " >&6
14595else
14596 save_LDFLAGS="$LDFLAGS"
14597 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014599/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014600int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014601_ACEOF
14602if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014603 lt_cv_irix_exported_symbol=yes
14604else
14605 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014606fi
14607rm -f core conftest.err conftest.$ac_objext \
14608 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014609 LDFLAGS="$save_LDFLAGS"
14610fi
14611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14612$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14613 if test "$lt_cv_irix_exported_symbol" = yes; then
14614 archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
14615 fi
cristy73bd4a52010-10-05 11:24:23 +000014616 else
cristy0c60a692010-11-04 01:09:47 +000014617 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'
14618 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 +000014619 fi
14620 archive_cmds_need_lc='no'
14621 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14622 hardcode_libdir_separator=:
14623 inherit_rpath=yes
14624 link_all_deplibs=yes
14625 ;;
14626
14627 netbsd*)
14628 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14629 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14630 else
14631 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14632 fi
14633 hardcode_libdir_flag_spec='-R$libdir'
14634 hardcode_direct=yes
14635 hardcode_shlibpath_var=no
14636 ;;
14637
14638 newsos6)
14639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14640 hardcode_direct=yes
14641 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14642 hardcode_libdir_separator=:
14643 hardcode_shlibpath_var=no
14644 ;;
14645
14646 *nto* | *qnx*)
14647 ;;
14648
14649 openbsd*)
14650 if test -f /usr/libexec/ld.so; then
14651 hardcode_direct=yes
14652 hardcode_shlibpath_var=no
14653 hardcode_direct_absolute=yes
14654 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14655 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14656 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14657 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14658 export_dynamic_flag_spec='${wl}-E'
14659 else
14660 case $host_os in
14661 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14662 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14663 hardcode_libdir_flag_spec='-R$libdir'
14664 ;;
14665 *)
14666 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14667 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14668 ;;
14669 esac
14670 fi
14671 else
14672 ld_shlibs=no
14673 fi
14674 ;;
14675
14676 os2*)
14677 hardcode_libdir_flag_spec='-L$libdir'
14678 hardcode_minus_L=yes
14679 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014680 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 +000014681 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14682 ;;
14683
14684 osf3*)
14685 if test "$GCC" = yes; then
14686 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014687 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 +000014688 else
14689 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014690 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 +000014691 fi
14692 archive_cmds_need_lc='no'
14693 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14694 hardcode_libdir_separator=:
14695 ;;
14696
14697 osf4* | osf5*) # as osf3* with the addition of -msym flag
14698 if test "$GCC" = yes; then
14699 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014700 archive_cmds='$CC -shared${allow_undefined_flag} $pic_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 +000014701 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14702 else
14703 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014704 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 +000014705 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 +000014706 $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 +000014707
14708 # Both c and cxx compiler support -rpath directly
14709 hardcode_libdir_flag_spec='-rpath $libdir'
14710 fi
14711 archive_cmds_need_lc='no'
14712 hardcode_libdir_separator=:
14713 ;;
14714
14715 solaris*)
14716 no_undefined_flag=' -z defs'
14717 if test "$GCC" = yes; then
14718 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014719 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014720 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cristyda16f162011-02-19 23:52:17 +000014721 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000014722 else
14723 case `$CC -V 2>&1` in
14724 *"Compilers 5.0"*)
14725 wlarc=''
14726 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14727 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14728 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14729 ;;
14730 *)
14731 wlarc='${wl}'
14732 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14733 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14734 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14735 ;;
14736 esac
14737 fi
14738 hardcode_libdir_flag_spec='-R$libdir'
14739 hardcode_shlibpath_var=no
14740 case $host_os in
14741 solaris2.[0-5] | solaris2.[0-5].*) ;;
14742 *)
14743 # The compiler driver will combine and reorder linker options,
14744 # but understands `-z linker_flag'. GCC discards it without `$wl',
14745 # but is careful enough not to reorder.
14746 # Supported since Solaris 2.6 (maybe 2.5.1?)
14747 if test "$GCC" = yes; then
14748 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14749 else
14750 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14751 fi
14752 ;;
14753 esac
14754 link_all_deplibs=yes
14755 ;;
14756
14757 sunos4*)
14758 if test "x$host_vendor" = xsequent; then
14759 # Use $CC to link under sequent, because it throws in some extra .o
14760 # files that make .init and .fini sections work.
14761 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14762 else
14763 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14764 fi
14765 hardcode_libdir_flag_spec='-L$libdir'
14766 hardcode_direct=yes
14767 hardcode_minus_L=yes
14768 hardcode_shlibpath_var=no
14769 ;;
14770
14771 sysv4)
14772 case $host_vendor in
14773 sni)
14774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14775 hardcode_direct=yes # is this really true???
14776 ;;
14777 siemens)
14778 ## LD is ld it makes a PLAMLIB
14779 ## CC just makes a GrossModule.
14780 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14781 reload_cmds='$CC -r -o $output$reload_objs'
14782 hardcode_direct=no
14783 ;;
14784 motorola)
14785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14786 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14787 ;;
14788 esac
14789 runpath_var='LD_RUN_PATH'
14790 hardcode_shlibpath_var=no
14791 ;;
14792
14793 sysv4.3*)
14794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14795 hardcode_shlibpath_var=no
14796 export_dynamic_flag_spec='-Bexport'
14797 ;;
14798
14799 sysv4*MP*)
14800 if test -d /usr/nec; then
14801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14802 hardcode_shlibpath_var=no
14803 runpath_var=LD_RUN_PATH
14804 hardcode_runpath_var=yes
14805 ld_shlibs=yes
14806 fi
14807 ;;
14808
14809 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14810 no_undefined_flag='${wl}-z,text'
14811 archive_cmds_need_lc=no
14812 hardcode_shlibpath_var=no
14813 runpath_var='LD_RUN_PATH'
14814
14815 if test "$GCC" = yes; then
14816 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14817 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14818 else
14819 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14820 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14821 fi
14822 ;;
14823
14824 sysv5* | sco3.2v5* | sco5v6*)
14825 # Note: We can NOT use -z defs as we might desire, because we do not
14826 # link with -lc, and that would cause any symbols used from libc to
14827 # always be unresolved, which means just about no library would
14828 # ever link correctly. If we're not using GNU ld we use -z text
14829 # though, which does catch some bad symbols but isn't as heavy-handed
14830 # as -z defs.
14831 no_undefined_flag='${wl}-z,text'
14832 allow_undefined_flag='${wl}-z,nodefs'
14833 archive_cmds_need_lc=no
14834 hardcode_shlibpath_var=no
14835 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14836 hardcode_libdir_separator=':'
14837 link_all_deplibs=yes
14838 export_dynamic_flag_spec='${wl}-Bexport'
14839 runpath_var='LD_RUN_PATH'
14840
14841 if test "$GCC" = yes; then
14842 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14843 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14844 else
14845 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14846 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14847 fi
14848 ;;
14849
14850 uts4*)
14851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14852 hardcode_libdir_flag_spec='-L$libdir'
14853 hardcode_shlibpath_var=no
14854 ;;
14855
14856 *)
14857 ld_shlibs=no
14858 ;;
14859 esac
14860
14861 if test x$host_vendor = xsni; then
14862 case $host in
14863 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14864 export_dynamic_flag_spec='${wl}-Blargedynsym'
14865 ;;
14866 esac
14867 fi
14868 fi
14869
14870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14871$as_echo "$ld_shlibs" >&6; }
14872test "$ld_shlibs" = no && can_build_shared=no
14873
14874with_gnu_ld=$with_gnu_ld
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890#
14891# Do we need to explicitly link libc?
14892#
14893case "x$archive_cmds_need_lc" in
14894x|xyes)
14895 # Assume -lc should be added
14896 archive_cmds_need_lc=yes
14897
14898 if test "$enable_shared" = yes && test "$GCC" = yes; then
14899 case $archive_cmds in
14900 *'~'*)
14901 # FIXME: we may have to deal with multi-command sequences.
14902 ;;
14903 '$CC '*)
14904 # Test whether the compiler implicitly links with -lc since on some
14905 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14906 # to ld, don't add -lc before -lgcc.
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14908$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014909if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014910 $as_echo_n "(cached) " >&6
14911else
14912 $RM conftest*
14913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014914
cristy0c60a692010-11-04 01:09:47 +000014915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000014916 (eval $ac_compile) 2>&5
14917 ac_status=$?
14918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14919 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000014920 soname=conftest
14921 lib=conftest
14922 libobjs=conftest.$ac_objext
14923 deplibs=
14924 wl=$lt_prog_compiler_wl
14925 pic_flag=$lt_prog_compiler_pic
14926 compiler_flags=-v
14927 linker_flags=-v
14928 verstring=
14929 output_objdir=.
14930 libname=conftest
14931 lt_save_allow_undefined_flag=$allow_undefined_flag
14932 allow_undefined_flag=
14933 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 +000014934 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14935 ac_status=$?
14936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14937 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000014938 then
14939 lt_cv_archive_cmds_need_lc=no
14940 else
14941 lt_cv_archive_cmds_need_lc=yes
14942 fi
14943 allow_undefined_flag=$lt_save_allow_undefined_flag
14944 else
14945 cat conftest.err 1>&5
14946 fi
14947 $RM conftest*
14948
14949fi
14950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14951$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14952 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000014953 ;;
14954 esac
14955 fi
14956 ;;
14957esac
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15116$as_echo_n "checking dynamic linker characteristics... " >&6; }
15117
15118if test "$GCC" = yes; then
15119 case $host_os in
15120 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15121 *) lt_awk_arg="/^libraries:/" ;;
15122 esac
cristy0c60a692010-11-04 01:09:47 +000015123 case $host_os in
15124 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15125 *) lt_sed_strip_eq="s,=/,/,g" ;;
15126 esac
15127 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15128 case $lt_search_path_spec in
15129 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015130 # if the path contains ";" then we assume it to be the separator
15131 # otherwise default to the standard path separator (i.e. ":") - it is
15132 # assumed that no part of a normal pathname contains ";" but that should
15133 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015134 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15135 ;;
15136 *)
15137 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15138 ;;
15139 esac
cristy73bd4a52010-10-05 11:24:23 +000015140 # Ok, now we have the path, separated by spaces, we can step through it
15141 # and add multilib dir if necessary.
15142 lt_tmp_lt_search_path_spec=
15143 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15144 for lt_sys_path in $lt_search_path_spec; do
15145 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15146 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15147 else
15148 test -d "$lt_sys_path" && \
15149 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15150 fi
15151 done
cristy0c60a692010-11-04 01:09:47 +000015152 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015153BEGIN {RS=" "; FS="/|\n";} {
15154 lt_foo="";
15155 lt_count=0;
15156 for (lt_i = NF; lt_i > 0; lt_i--) {
15157 if ($lt_i != "" && $lt_i != ".") {
15158 if ($lt_i == "..") {
15159 lt_count++;
15160 } else {
15161 if (lt_count == 0) {
15162 lt_foo="/" $lt_i lt_foo;
15163 } else {
15164 lt_count--;
15165 }
15166 }
15167 }
15168 }
15169 if (lt_foo != "") { lt_freq[lt_foo]++; }
15170 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15171}'`
cristy0c60a692010-11-04 01:09:47 +000015172 # AWK program above erroneously prepends '/' to C:/dos/paths
15173 # for these hosts.
15174 case $host_os in
15175 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15176 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15177 esac
15178 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015179else
15180 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15181fi
15182library_names_spec=
15183libname_spec='lib$name'
15184soname_spec=
15185shrext_cmds=".so"
15186postinstall_cmds=
15187postuninstall_cmds=
15188finish_cmds=
15189finish_eval=
15190shlibpath_var=
15191shlibpath_overrides_runpath=unknown
15192version_type=none
15193dynamic_linker="$host_os ld.so"
15194sys_lib_dlsearch_path_spec="/lib /usr/lib"
15195need_lib_prefix=unknown
15196hardcode_into_libs=no
15197
15198# when you set need_version to no, make sure it does not cause -set_version
15199# flags to be left without arguments
15200need_version=unknown
15201
15202case $host_os in
15203aix3*)
15204 version_type=linux
15205 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15206 shlibpath_var=LIBPATH
15207
15208 # AIX 3 has no versioning support, so we append a major version to the name.
15209 soname_spec='${libname}${release}${shared_ext}$major'
15210 ;;
15211
15212aix[4-9]*)
15213 version_type=linux
15214 need_lib_prefix=no
15215 need_version=no
15216 hardcode_into_libs=yes
15217 if test "$host_cpu" = ia64; then
15218 # AIX 5 supports IA64
15219 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15220 shlibpath_var=LD_LIBRARY_PATH
15221 else
15222 # With GCC up to 2.95.x, collect2 would create an import file
15223 # for dependence libraries. The import file would start with
15224 # the line `#! .'. This would cause the generated library to
15225 # depend on `.', always an invalid library. This was fixed in
15226 # development snapshots of GCC prior to 3.0.
15227 case $host_os in
15228 aix4 | aix4.[01] | aix4.[01].*)
15229 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15230 echo ' yes '
15231 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15232 :
15233 else
15234 can_build_shared=no
15235 fi
15236 ;;
15237 esac
15238 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15239 # soname into executable. Probably we can add versioning support to
15240 # collect2, so additional links can be useful in future.
15241 if test "$aix_use_runtimelinking" = yes; then
15242 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15243 # instead of lib<name>.a to let people know that these are not
15244 # typical AIX shared libraries.
15245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15246 else
15247 # We preserve .a as extension for shared libraries through AIX4.2
15248 # and later when we are not doing run time linking.
15249 library_names_spec='${libname}${release}.a $libname.a'
15250 soname_spec='${libname}${release}${shared_ext}$major'
15251 fi
15252 shlibpath_var=LIBPATH
15253 fi
15254 ;;
15255
15256amigaos*)
15257 case $host_cpu in
15258 powerpc)
15259 # Since July 2007 AmigaOS4 officially supports .so libraries.
15260 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15262 ;;
15263 m68k)
15264 library_names_spec='$libname.ixlibrary $libname.a'
15265 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015266 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 +000015267 ;;
15268 esac
15269 ;;
15270
15271beos*)
15272 library_names_spec='${libname}${shared_ext}'
15273 dynamic_linker="$host_os ld.so"
15274 shlibpath_var=LIBRARY_PATH
15275 ;;
15276
15277bsdi[45]*)
15278 version_type=linux
15279 need_version=no
15280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15281 soname_spec='${libname}${release}${shared_ext}$major'
15282 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15283 shlibpath_var=LD_LIBRARY_PATH
15284 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15285 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15286 # the default ld.so.conf also contains /usr/contrib/lib and
15287 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15288 # libtool to hard-code these into programs
15289 ;;
15290
15291cygwin* | mingw* | pw32* | cegcc*)
15292 version_type=windows
15293 shrext_cmds=".dll"
15294 need_version=no
15295 need_lib_prefix=no
15296
cristyda16f162011-02-19 23:52:17 +000015297 case $GCC,$cc_basename in
15298 yes,*)
15299 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015300 library_names_spec='$libname.dll.a'
15301 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15302 postinstall_cmds='base_file=`basename \${file}`~
15303 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15304 dldir=$destdir/`dirname \$dlpath`~
15305 test -d \$dldir || mkdir -p \$dldir~
15306 $install_prog $dir/$dlname \$dldir/$dlname~
15307 chmod a+x \$dldir/$dlname~
15308 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15309 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15310 fi'
15311 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15312 dlpath=$dir/\$dldll~
15313 $RM \$dlpath'
15314 shlibpath_overrides_runpath=yes
15315
15316 case $host_os in
15317 cygwin*)
15318 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15319 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015320
15321 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015322 ;;
15323 mingw* | cegcc*)
15324 # MinGW DLLs use traditional 'lib' prefix
15325 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015326 ;;
15327 pw32*)
15328 # pw32 DLLs use 'pw' prefix rather than 'lib'
15329 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15330 ;;
15331 esac
cristyda16f162011-02-19 23:52:17 +000015332 dynamic_linker='Win32 ld.exe'
15333 ;;
15334
15335 *,cl*)
15336 # Native MSVC
15337 libname_spec='$name'
15338 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15339 library_names_spec='${libname}.dll.lib'
15340
15341 case $build_os in
15342 mingw*)
15343 sys_lib_search_path_spec=
15344 lt_save_ifs=$IFS
15345 IFS=';'
15346 for lt_path in $LIB
15347 do
15348 IFS=$lt_save_ifs
15349 # Let DOS variable expansion print the short 8.3 style file name.
15350 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15351 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15352 done
15353 IFS=$lt_save_ifs
15354 # Convert to MSYS style.
15355 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15356 ;;
15357 cygwin*)
15358 # Convert to unix form, then to dos form, then back to unix form
15359 # but this time dos style (no spaces!) so that the unix form looks
15360 # like /cygdrive/c/PROGRA~1:/cygdr...
15361 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15362 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15363 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15364 ;;
15365 *)
15366 sys_lib_search_path_spec="$LIB"
15367 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15368 # It is most probably a Windows format PATH.
15369 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15370 else
15371 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15372 fi
15373 # FIXME: find the short name or the path components, as spaces are
15374 # common. (e.g. "Program Files" -> "PROGRA~1")
15375 ;;
15376 esac
15377
15378 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15379 postinstall_cmds='base_file=`basename \${file}`~
15380 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15381 dldir=$destdir/`dirname \$dlpath`~
15382 test -d \$dldir || mkdir -p \$dldir~
15383 $install_prog $dir/$dlname \$dldir/$dlname'
15384 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15385 dlpath=$dir/\$dldll~
15386 $RM \$dlpath'
15387 shlibpath_overrides_runpath=yes
15388 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015389 ;;
15390
15391 *)
cristyda16f162011-02-19 23:52:17 +000015392 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015393 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015394 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015395 ;;
15396 esac
cristy73bd4a52010-10-05 11:24:23 +000015397 # FIXME: first we should search . and the directory the executable is in
15398 shlibpath_var=PATH
15399 ;;
15400
15401darwin* | rhapsody*)
15402 dynamic_linker="$host_os dyld"
15403 version_type=darwin
15404 need_lib_prefix=no
15405 need_version=no
15406 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15407 soname_spec='${libname}${release}${major}$shared_ext'
15408 shlibpath_overrides_runpath=yes
15409 shlibpath_var=DYLD_LIBRARY_PATH
15410 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15411
15412 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15413 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15414 ;;
15415
15416dgux*)
15417 version_type=linux
15418 need_lib_prefix=no
15419 need_version=no
15420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15421 soname_spec='${libname}${release}${shared_ext}$major'
15422 shlibpath_var=LD_LIBRARY_PATH
15423 ;;
15424
15425freebsd1*)
15426 dynamic_linker=no
15427 ;;
15428
15429freebsd* | dragonfly*)
15430 # DragonFly does not have aout. When/if they implement a new
15431 # versioning mechanism, adjust this.
15432 if test -x /usr/bin/objformat; then
15433 objformat=`/usr/bin/objformat`
15434 else
15435 case $host_os in
15436 freebsd[123]*) objformat=aout ;;
15437 *) objformat=elf ;;
15438 esac
15439 fi
15440 version_type=freebsd-$objformat
15441 case $version_type in
15442 freebsd-elf*)
15443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15444 need_version=no
15445 need_lib_prefix=no
15446 ;;
15447 freebsd-*)
15448 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15449 need_version=yes
15450 ;;
15451 esac
15452 shlibpath_var=LD_LIBRARY_PATH
15453 case $host_os in
15454 freebsd2*)
15455 shlibpath_overrides_runpath=yes
15456 ;;
15457 freebsd3.[01]* | freebsdelf3.[01]*)
15458 shlibpath_overrides_runpath=yes
15459 hardcode_into_libs=yes
15460 ;;
15461 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15462 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15463 shlibpath_overrides_runpath=no
15464 hardcode_into_libs=yes
15465 ;;
15466 *) # from 4.6 on, and DragonFly
15467 shlibpath_overrides_runpath=yes
15468 hardcode_into_libs=yes
15469 ;;
15470 esac
15471 ;;
15472
15473gnu*)
15474 version_type=linux
15475 need_lib_prefix=no
15476 need_version=no
15477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15478 soname_spec='${libname}${release}${shared_ext}$major'
15479 shlibpath_var=LD_LIBRARY_PATH
15480 hardcode_into_libs=yes
15481 ;;
15482
cristy0c60a692010-11-04 01:09:47 +000015483haiku*)
15484 version_type=linux
15485 need_lib_prefix=no
15486 need_version=no
15487 dynamic_linker="$host_os runtime_loader"
15488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15489 soname_spec='${libname}${release}${shared_ext}$major'
15490 shlibpath_var=LIBRARY_PATH
15491 shlibpath_overrides_runpath=yes
15492 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15493 hardcode_into_libs=yes
15494 ;;
15495
cristy73bd4a52010-10-05 11:24:23 +000015496hpux9* | hpux10* | hpux11*)
15497 # Give a soname corresponding to the major version so that dld.sl refuses to
15498 # link against other versions.
15499 version_type=sunos
15500 need_lib_prefix=no
15501 need_version=no
15502 case $host_cpu in
15503 ia64*)
15504 shrext_cmds='.so'
15505 hardcode_into_libs=yes
15506 dynamic_linker="$host_os dld.so"
15507 shlibpath_var=LD_LIBRARY_PATH
15508 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15510 soname_spec='${libname}${release}${shared_ext}$major'
15511 if test "X$HPUX_IA64_MODE" = X32; then
15512 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15513 else
15514 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15515 fi
15516 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15517 ;;
15518 hppa*64*)
15519 shrext_cmds='.sl'
15520 hardcode_into_libs=yes
15521 dynamic_linker="$host_os dld.sl"
15522 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15523 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15525 soname_spec='${libname}${release}${shared_ext}$major'
15526 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15527 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15528 ;;
15529 *)
15530 shrext_cmds='.sl'
15531 dynamic_linker="$host_os dld.sl"
15532 shlibpath_var=SHLIB_PATH
15533 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15535 soname_spec='${libname}${release}${shared_ext}$major'
15536 ;;
15537 esac
cristy0c60a692010-11-04 01:09:47 +000015538 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015539 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015540 # or fails outright, so override atomically:
15541 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015542 ;;
15543
15544interix[3-9]*)
15545 version_type=linux
15546 need_lib_prefix=no
15547 need_version=no
15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15549 soname_spec='${libname}${release}${shared_ext}$major'
15550 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15551 shlibpath_var=LD_LIBRARY_PATH
15552 shlibpath_overrides_runpath=no
15553 hardcode_into_libs=yes
15554 ;;
15555
15556irix5* | irix6* | nonstopux*)
15557 case $host_os in
15558 nonstopux*) version_type=nonstopux ;;
15559 *)
15560 if test "$lt_cv_prog_gnu_ld" = yes; then
15561 version_type=linux
15562 else
15563 version_type=irix
15564 fi ;;
15565 esac
15566 need_lib_prefix=no
15567 need_version=no
15568 soname_spec='${libname}${release}${shared_ext}$major'
15569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15570 case $host_os in
15571 irix5* | nonstopux*)
15572 libsuff= shlibsuff=
15573 ;;
15574 *)
15575 case $LD in # libtool.m4 will add one of these switches to LD
15576 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15577 libsuff= shlibsuff= libmagic=32-bit;;
15578 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15579 libsuff=32 shlibsuff=N32 libmagic=N32;;
15580 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15581 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15582 *) libsuff= shlibsuff= libmagic=never-match;;
15583 esac
15584 ;;
15585 esac
15586 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15587 shlibpath_overrides_runpath=no
15588 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15589 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15590 hardcode_into_libs=yes
15591 ;;
15592
15593# No shared lib support for Linux oldld, aout, or coff.
15594linux*oldld* | linux*aout* | linux*coff*)
15595 dynamic_linker=no
15596 ;;
15597
15598# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000015599linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015600 version_type=linux
15601 need_lib_prefix=no
15602 need_version=no
15603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15604 soname_spec='${libname}${release}${shared_ext}$major'
15605 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15606 shlibpath_var=LD_LIBRARY_PATH
15607 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015608
cristy73bd4a52010-10-05 11:24:23 +000015609 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015610 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015611 $as_echo_n "(cached) " >&6
15612else
15613 lt_cv_shlibpath_overrides_runpath=no
15614 save_LDFLAGS=$LDFLAGS
15615 save_libdir=$libdir
15616 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15617 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015619/* end confdefs.h. */
15620
15621int
15622main ()
15623{
15624
15625 ;
15626 return 0;
15627}
15628_ACEOF
15629if ac_fn_c_try_link "$LINENO"; then :
15630 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015631 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015632fi
15633fi
15634rm -f core conftest.err conftest.$ac_objext \
15635 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015636 LDFLAGS=$save_LDFLAGS
15637 libdir=$save_libdir
15638
15639fi
15640
15641 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015642
15643 # This implies no fast_install, which is unacceptable.
15644 # Some rework will be needed to allow for fast_install
15645 # before this can be enabled.
15646 hardcode_into_libs=yes
15647
15648 # Add ABI-specific directories to the system library path.
15649 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15650
15651 # Append ld.so.conf contents to the search path
15652 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015653 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 +000015654 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015655
cristy73bd4a52010-10-05 11:24:23 +000015656 fi
15657
15658 # We used to test for /lib/ld.so.1 and disable shared libraries on
15659 # powerpc, because MkLinux only supported shared libraries with the
15660 # GNU dynamic linker. Since this was broken with cross compilers,
15661 # most powerpc-linux boxes support dynamic linking these days and
15662 # people can always --disable-shared, the test was removed, and we
15663 # assume the GNU/Linux dynamic linker is in use.
15664 dynamic_linker='GNU/Linux ld.so'
15665 ;;
15666
15667netbsd*)
15668 version_type=sunos
15669 need_lib_prefix=no
15670 need_version=no
15671 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15673 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15674 dynamic_linker='NetBSD (a.out) ld.so'
15675 else
15676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15677 soname_spec='${libname}${release}${shared_ext}$major'
15678 dynamic_linker='NetBSD ld.elf_so'
15679 fi
15680 shlibpath_var=LD_LIBRARY_PATH
15681 shlibpath_overrides_runpath=yes
15682 hardcode_into_libs=yes
15683 ;;
15684
15685newsos6)
15686 version_type=linux
15687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15688 shlibpath_var=LD_LIBRARY_PATH
15689 shlibpath_overrides_runpath=yes
15690 ;;
15691
15692*nto* | *qnx*)
15693 version_type=qnx
15694 need_lib_prefix=no
15695 need_version=no
15696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15697 soname_spec='${libname}${release}${shared_ext}$major'
15698 shlibpath_var=LD_LIBRARY_PATH
15699 shlibpath_overrides_runpath=no
15700 hardcode_into_libs=yes
15701 dynamic_linker='ldqnx.so'
15702 ;;
15703
15704openbsd*)
15705 version_type=sunos
15706 sys_lib_dlsearch_path_spec="/usr/lib"
15707 need_lib_prefix=no
15708 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15709 case $host_os in
15710 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15711 *) need_version=no ;;
15712 esac
15713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15715 shlibpath_var=LD_LIBRARY_PATH
15716 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15717 case $host_os in
15718 openbsd2.[89] | openbsd2.[89].*)
15719 shlibpath_overrides_runpath=no
15720 ;;
15721 *)
15722 shlibpath_overrides_runpath=yes
15723 ;;
15724 esac
15725 else
15726 shlibpath_overrides_runpath=yes
15727 fi
15728 ;;
15729
15730os2*)
15731 libname_spec='$name'
15732 shrext_cmds=".dll"
15733 need_lib_prefix=no
15734 library_names_spec='$libname${shared_ext} $libname.a'
15735 dynamic_linker='OS/2 ld.exe'
15736 shlibpath_var=LIBPATH
15737 ;;
15738
15739osf3* | osf4* | osf5*)
15740 version_type=osf
15741 need_lib_prefix=no
15742 need_version=no
15743 soname_spec='${libname}${release}${shared_ext}$major'
15744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15745 shlibpath_var=LD_LIBRARY_PATH
15746 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15747 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15748 ;;
15749
15750rdos*)
15751 dynamic_linker=no
15752 ;;
15753
15754solaris*)
15755 version_type=linux
15756 need_lib_prefix=no
15757 need_version=no
15758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15759 soname_spec='${libname}${release}${shared_ext}$major'
15760 shlibpath_var=LD_LIBRARY_PATH
15761 shlibpath_overrides_runpath=yes
15762 hardcode_into_libs=yes
15763 # ldd complains unless libraries are executable
15764 postinstall_cmds='chmod +x $lib'
15765 ;;
15766
15767sunos4*)
15768 version_type=sunos
15769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15770 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15771 shlibpath_var=LD_LIBRARY_PATH
15772 shlibpath_overrides_runpath=yes
15773 if test "$with_gnu_ld" = yes; then
15774 need_lib_prefix=no
15775 fi
15776 need_version=yes
15777 ;;
15778
15779sysv4 | sysv4.3*)
15780 version_type=linux
15781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15782 soname_spec='${libname}${release}${shared_ext}$major'
15783 shlibpath_var=LD_LIBRARY_PATH
15784 case $host_vendor in
15785 sni)
15786 shlibpath_overrides_runpath=no
15787 need_lib_prefix=no
15788 runpath_var=LD_RUN_PATH
15789 ;;
15790 siemens)
15791 need_lib_prefix=no
15792 ;;
15793 motorola)
15794 need_lib_prefix=no
15795 need_version=no
15796 shlibpath_overrides_runpath=no
15797 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15798 ;;
15799 esac
15800 ;;
15801
15802sysv4*MP*)
15803 if test -d /usr/nec ;then
15804 version_type=linux
15805 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15806 soname_spec='$libname${shared_ext}.$major'
15807 shlibpath_var=LD_LIBRARY_PATH
15808 fi
15809 ;;
15810
15811sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15812 version_type=freebsd-elf
15813 need_lib_prefix=no
15814 need_version=no
15815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15816 soname_spec='${libname}${release}${shared_ext}$major'
15817 shlibpath_var=LD_LIBRARY_PATH
15818 shlibpath_overrides_runpath=yes
15819 hardcode_into_libs=yes
15820 if test "$with_gnu_ld" = yes; then
15821 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15822 else
15823 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15824 case $host_os in
15825 sco3.2v5*)
15826 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15827 ;;
15828 esac
15829 fi
15830 sys_lib_dlsearch_path_spec='/usr/lib'
15831 ;;
15832
15833tpf*)
15834 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15835 version_type=linux
15836 need_lib_prefix=no
15837 need_version=no
15838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15839 shlibpath_var=LD_LIBRARY_PATH
15840 shlibpath_overrides_runpath=no
15841 hardcode_into_libs=yes
15842 ;;
15843
15844uts4*)
15845 version_type=linux
15846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15847 soname_spec='${libname}${release}${shared_ext}$major'
15848 shlibpath_var=LD_LIBRARY_PATH
15849 ;;
15850
15851*)
15852 dynamic_linker=no
15853 ;;
15854esac
15855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15856$as_echo "$dynamic_linker" >&6; }
15857test "$dynamic_linker" = no && can_build_shared=no
15858
15859variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15860if test "$GCC" = yes; then
15861 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15862fi
15863
15864if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15865 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15866fi
15867if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15868 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15869fi
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
cristy0c60a692010-11-04 01:09:47 +000015957
15958
15959
15960
15961
cristy73bd4a52010-10-05 11:24:23 +000015962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15963$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15964hardcode_action=
15965if test -n "$hardcode_libdir_flag_spec" ||
15966 test -n "$runpath_var" ||
15967 test "X$hardcode_automatic" = "Xyes" ; then
15968
15969 # We can hardcode non-existent directories.
15970 if test "$hardcode_direct" != no &&
15971 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15972 # have to relink, otherwise we might link with an installed library
15973 # when we should be linking with a yet-to-be-installed one
15974 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15975 test "$hardcode_minus_L" != no; then
15976 # Linking always hardcodes the temporary library directory.
15977 hardcode_action=relink
15978 else
15979 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15980 hardcode_action=immediate
15981 fi
15982else
15983 # We cannot hardcode anything, or else we can only hardcode existing
15984 # directories.
15985 hardcode_action=unsupported
15986fi
15987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15988$as_echo "$hardcode_action" >&6; }
15989
15990if test "$hardcode_action" = relink ||
15991 test "$inherit_rpath" = yes; then
15992 # Fast installation is not supported
15993 enable_fast_install=no
15994elif test "$shlibpath_overrides_runpath" = yes ||
15995 test "$enable_shared" = no; then
15996 # Fast installation is not necessary
15997 enable_fast_install=needless
15998fi
15999
16000
16001
16002
16003
16004
16005 if test "x$enable_dlopen" != xyes; then
16006 enable_dlopen=unknown
16007 enable_dlopen_self=unknown
16008 enable_dlopen_self_static=unknown
16009else
16010 lt_cv_dlopen=no
16011 lt_cv_dlopen_libs=
16012
16013 case $host_os in
16014 beos*)
16015 lt_cv_dlopen="load_add_on"
16016 lt_cv_dlopen_libs=
16017 lt_cv_dlopen_self=yes
16018 ;;
16019
16020 mingw* | pw32* | cegcc*)
16021 lt_cv_dlopen="LoadLibrary"
16022 lt_cv_dlopen_libs=
16023 ;;
16024
16025 cygwin*)
16026 lt_cv_dlopen="dlopen"
16027 lt_cv_dlopen_libs=
16028 ;;
16029
16030 darwin*)
16031 # if libdl is installed we need to link against it
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16033$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016034if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016035 $as_echo_n "(cached) " >&6
16036else
16037 ac_check_lib_save_LIBS=$LIBS
16038LIBS="-ldl $LIBS"
16039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16040/* end confdefs.h. */
16041
16042/* Override any GCC internal prototype to avoid an error.
16043 Use char because int might match the return type of a GCC
16044 builtin and then its argument prototype would still apply. */
16045#ifdef __cplusplus
16046extern "C"
16047#endif
16048char dlopen ();
16049int
16050main ()
16051{
16052return dlopen ();
16053 ;
16054 return 0;
16055}
16056_ACEOF
16057if ac_fn_c_try_link "$LINENO"; then :
16058 ac_cv_lib_dl_dlopen=yes
16059else
16060 ac_cv_lib_dl_dlopen=no
16061fi
16062rm -f core conftest.err conftest.$ac_objext \
16063 conftest$ac_exeext conftest.$ac_ext
16064LIBS=$ac_check_lib_save_LIBS
16065fi
16066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16067$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016068if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016069 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16070else
16071
16072 lt_cv_dlopen="dyld"
16073 lt_cv_dlopen_libs=
16074 lt_cv_dlopen_self=yes
16075
16076fi
16077
16078 ;;
16079
16080 *)
16081 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016082if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016083 lt_cv_dlopen="shl_load"
16084else
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16086$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016087if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016088 $as_echo_n "(cached) " >&6
16089else
16090 ac_check_lib_save_LIBS=$LIBS
16091LIBS="-ldld $LIBS"
16092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16093/* end confdefs.h. */
16094
16095/* Override any GCC internal prototype to avoid an error.
16096 Use char because int might match the return type of a GCC
16097 builtin and then its argument prototype would still apply. */
16098#ifdef __cplusplus
16099extern "C"
16100#endif
16101char shl_load ();
16102int
16103main ()
16104{
16105return shl_load ();
16106 ;
16107 return 0;
16108}
16109_ACEOF
16110if ac_fn_c_try_link "$LINENO"; then :
16111 ac_cv_lib_dld_shl_load=yes
16112else
16113 ac_cv_lib_dld_shl_load=no
16114fi
16115rm -f core conftest.err conftest.$ac_objext \
16116 conftest$ac_exeext conftest.$ac_ext
16117LIBS=$ac_check_lib_save_LIBS
16118fi
16119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16120$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016121if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016122 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16123else
16124 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016125if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016126 lt_cv_dlopen="dlopen"
16127else
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16129$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016130if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016131 $as_echo_n "(cached) " >&6
16132else
16133 ac_check_lib_save_LIBS=$LIBS
16134LIBS="-ldl $LIBS"
16135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16136/* end confdefs.h. */
16137
16138/* Override any GCC internal prototype to avoid an error.
16139 Use char because int might match the return type of a GCC
16140 builtin and then its argument prototype would still apply. */
16141#ifdef __cplusplus
16142extern "C"
16143#endif
16144char dlopen ();
16145int
16146main ()
16147{
16148return dlopen ();
16149 ;
16150 return 0;
16151}
16152_ACEOF
16153if ac_fn_c_try_link "$LINENO"; then :
16154 ac_cv_lib_dl_dlopen=yes
16155else
16156 ac_cv_lib_dl_dlopen=no
16157fi
16158rm -f core conftest.err conftest.$ac_objext \
16159 conftest$ac_exeext conftest.$ac_ext
16160LIBS=$ac_check_lib_save_LIBS
16161fi
16162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16163$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016164if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016165 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16166else
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16168$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016169if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016170 $as_echo_n "(cached) " >&6
16171else
16172 ac_check_lib_save_LIBS=$LIBS
16173LIBS="-lsvld $LIBS"
16174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16175/* end confdefs.h. */
16176
16177/* Override any GCC internal prototype to avoid an error.
16178 Use char because int might match the return type of a GCC
16179 builtin and then its argument prototype would still apply. */
16180#ifdef __cplusplus
16181extern "C"
16182#endif
16183char dlopen ();
16184int
16185main ()
16186{
16187return dlopen ();
16188 ;
16189 return 0;
16190}
16191_ACEOF
16192if ac_fn_c_try_link "$LINENO"; then :
16193 ac_cv_lib_svld_dlopen=yes
16194else
16195 ac_cv_lib_svld_dlopen=no
16196fi
16197rm -f core conftest.err conftest.$ac_objext \
16198 conftest$ac_exeext conftest.$ac_ext
16199LIBS=$ac_check_lib_save_LIBS
16200fi
16201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16202$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016203if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016204 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16205else
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16207$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016208if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016209 $as_echo_n "(cached) " >&6
16210else
16211 ac_check_lib_save_LIBS=$LIBS
16212LIBS="-ldld $LIBS"
16213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16214/* end confdefs.h. */
16215
16216/* Override any GCC internal prototype to avoid an error.
16217 Use char because int might match the return type of a GCC
16218 builtin and then its argument prototype would still apply. */
16219#ifdef __cplusplus
16220extern "C"
16221#endif
16222char dld_link ();
16223int
16224main ()
16225{
16226return dld_link ();
16227 ;
16228 return 0;
16229}
16230_ACEOF
16231if ac_fn_c_try_link "$LINENO"; then :
16232 ac_cv_lib_dld_dld_link=yes
16233else
16234 ac_cv_lib_dld_dld_link=no
16235fi
16236rm -f core conftest.err conftest.$ac_objext \
16237 conftest$ac_exeext conftest.$ac_ext
16238LIBS=$ac_check_lib_save_LIBS
16239fi
16240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16241$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016242if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016243 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16244fi
16245
16246
16247fi
16248
16249
16250fi
16251
16252
16253fi
16254
16255
16256fi
16257
16258
16259fi
16260
16261 ;;
16262 esac
16263
16264 if test "x$lt_cv_dlopen" != xno; then
16265 enable_dlopen=yes
16266 else
16267 enable_dlopen=no
16268 fi
16269
16270 case $lt_cv_dlopen in
16271 dlopen)
16272 save_CPPFLAGS="$CPPFLAGS"
16273 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16274
16275 save_LDFLAGS="$LDFLAGS"
16276 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16277
16278 save_LIBS="$LIBS"
16279 LIBS="$lt_cv_dlopen_libs $LIBS"
16280
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16282$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016283if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016284 $as_echo_n "(cached) " >&6
16285else
16286 if test "$cross_compiling" = yes; then :
16287 lt_cv_dlopen_self=cross
16288else
16289 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16290 lt_status=$lt_dlunknown
16291 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016292#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016293#include "confdefs.h"
16294
16295#if HAVE_DLFCN_H
16296#include <dlfcn.h>
16297#endif
16298
16299#include <stdio.h>
16300
16301#ifdef RTLD_GLOBAL
16302# define LT_DLGLOBAL RTLD_GLOBAL
16303#else
16304# ifdef DL_GLOBAL
16305# define LT_DLGLOBAL DL_GLOBAL
16306# else
16307# define LT_DLGLOBAL 0
16308# endif
16309#endif
16310
16311/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16312 find out it does not work in some platform. */
16313#ifndef LT_DLLAZY_OR_NOW
16314# ifdef RTLD_LAZY
16315# define LT_DLLAZY_OR_NOW RTLD_LAZY
16316# else
16317# ifdef DL_LAZY
16318# define LT_DLLAZY_OR_NOW DL_LAZY
16319# else
16320# ifdef RTLD_NOW
16321# define LT_DLLAZY_OR_NOW RTLD_NOW
16322# else
16323# ifdef DL_NOW
16324# define LT_DLLAZY_OR_NOW DL_NOW
16325# else
16326# define LT_DLLAZY_OR_NOW 0
16327# endif
16328# endif
16329# endif
16330# endif
16331#endif
16332
cristy0c60a692010-11-04 01:09:47 +000016333/* When -fvisbility=hidden is used, assume the code has been annotated
16334 correspondingly for the symbols needed. */
16335#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016336int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016337#endif
16338
cristyda16f162011-02-19 23:52:17 +000016339int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016340int main ()
16341{
16342 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16343 int status = $lt_dlunknown;
16344
16345 if (self)
16346 {
16347 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016348 else
16349 {
16350 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16351 else puts (dlerror ());
16352 }
cristy73bd4a52010-10-05 11:24:23 +000016353 /* dlclose (self); */
16354 }
16355 else
16356 puts (dlerror ());
16357
16358 return status;
16359}
16360_LT_EOF
16361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16362 (eval $ac_link) 2>&5
16363 ac_status=$?
16364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16365 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16366 (./conftest; exit; ) >&5 2>/dev/null
16367 lt_status=$?
16368 case x$lt_status in
16369 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16370 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16371 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16372 esac
16373 else :
16374 # compilation failed
16375 lt_cv_dlopen_self=no
16376 fi
16377fi
16378rm -fr conftest*
16379
16380
16381fi
16382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16383$as_echo "$lt_cv_dlopen_self" >&6; }
16384
16385 if test "x$lt_cv_dlopen_self" = xyes; then
16386 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16388$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016389if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016390 $as_echo_n "(cached) " >&6
16391else
16392 if test "$cross_compiling" = yes; then :
16393 lt_cv_dlopen_self_static=cross
16394else
16395 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16396 lt_status=$lt_dlunknown
16397 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016398#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016399#include "confdefs.h"
16400
16401#if HAVE_DLFCN_H
16402#include <dlfcn.h>
16403#endif
16404
16405#include <stdio.h>
16406
16407#ifdef RTLD_GLOBAL
16408# define LT_DLGLOBAL RTLD_GLOBAL
16409#else
16410# ifdef DL_GLOBAL
16411# define LT_DLGLOBAL DL_GLOBAL
16412# else
16413# define LT_DLGLOBAL 0
16414# endif
16415#endif
16416
16417/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16418 find out it does not work in some platform. */
16419#ifndef LT_DLLAZY_OR_NOW
16420# ifdef RTLD_LAZY
16421# define LT_DLLAZY_OR_NOW RTLD_LAZY
16422# else
16423# ifdef DL_LAZY
16424# define LT_DLLAZY_OR_NOW DL_LAZY
16425# else
16426# ifdef RTLD_NOW
16427# define LT_DLLAZY_OR_NOW RTLD_NOW
16428# else
16429# ifdef DL_NOW
16430# define LT_DLLAZY_OR_NOW DL_NOW
16431# else
16432# define LT_DLLAZY_OR_NOW 0
16433# endif
16434# endif
16435# endif
16436# endif
16437#endif
16438
cristy0c60a692010-11-04 01:09:47 +000016439/* When -fvisbility=hidden is used, assume the code has been annotated
16440 correspondingly for the symbols needed. */
16441#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016442int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016443#endif
16444
cristyda16f162011-02-19 23:52:17 +000016445int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016446int main ()
16447{
16448 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16449 int status = $lt_dlunknown;
16450
16451 if (self)
16452 {
16453 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016454 else
16455 {
16456 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16457 else puts (dlerror ());
16458 }
cristy73bd4a52010-10-05 11:24:23 +000016459 /* dlclose (self); */
16460 }
16461 else
16462 puts (dlerror ());
16463
16464 return status;
16465}
16466_LT_EOF
16467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16468 (eval $ac_link) 2>&5
16469 ac_status=$?
16470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16471 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16472 (./conftest; exit; ) >&5 2>/dev/null
16473 lt_status=$?
16474 case x$lt_status in
16475 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16476 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16477 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16478 esac
16479 else :
16480 # compilation failed
16481 lt_cv_dlopen_self_static=no
16482 fi
16483fi
16484rm -fr conftest*
16485
16486
16487fi
16488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16489$as_echo "$lt_cv_dlopen_self_static" >&6; }
16490 fi
16491
16492 CPPFLAGS="$save_CPPFLAGS"
16493 LDFLAGS="$save_LDFLAGS"
16494 LIBS="$save_LIBS"
16495 ;;
16496 esac
16497
16498 case $lt_cv_dlopen_self in
16499 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16500 *) enable_dlopen_self=unknown ;;
16501 esac
16502
16503 case $lt_cv_dlopen_self_static in
16504 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16505 *) enable_dlopen_self_static=unknown ;;
16506 esac
16507fi
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525striplib=
16526old_striplib=
16527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16528$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16529if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16530 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16531 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16533$as_echo "yes" >&6; }
16534else
16535# FIXME - insert some real tests, host_os isn't really good enough
16536 case $host_os in
16537 darwin*)
16538 if test -n "$STRIP" ; then
16539 striplib="$STRIP -x"
16540 old_striplib="$STRIP -S"
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16542$as_echo "yes" >&6; }
16543 else
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16545$as_echo "no" >&6; }
16546 fi
16547 ;;
16548 *)
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16550$as_echo "no" >&6; }
16551 ;;
16552 esac
16553fi
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566 # Report which library types will actually be built
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16568$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16570$as_echo "$can_build_shared" >&6; }
16571
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16573$as_echo_n "checking whether to build shared libraries... " >&6; }
16574 test "$can_build_shared" = "no" && enable_shared=no
16575
16576 # On AIX, shared libraries and static libraries use the same namespace, and
16577 # are all built from PIC.
16578 case $host_os in
16579 aix3*)
16580 test "$enable_shared" = yes && enable_static=no
16581 if test -n "$RANLIB"; then
16582 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16583 postinstall_cmds='$RANLIB $lib'
16584 fi
16585 ;;
16586
16587 aix[4-9]*)
16588 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16589 test "$enable_shared" = yes && enable_static=no
16590 fi
16591 ;;
16592 esac
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16594$as_echo "$enable_shared" >&6; }
16595
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16597$as_echo_n "checking whether to build static libraries... " >&6; }
16598 # Make sure either enable_shared or enable_static is yes.
16599 test "$enable_shared" = yes || enable_static=yes
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16601$as_echo "$enable_static" >&6; }
16602
16603
16604
16605
16606fi
16607ac_ext=c
16608ac_cpp='$CPP $CPPFLAGS'
16609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16611ac_compiler_gnu=$ac_cv_c_compiler_gnu
16612
16613CC="$lt_save_CC"
16614
cristy0c60a692010-11-04 01:09:47 +000016615 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16616 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16617 (test "X$CXX" != "Xg++"))) ; then
16618 ac_ext=cpp
16619ac_cpp='$CXXCPP $CPPFLAGS'
16620ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16621ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16622ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16624$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16625if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016626 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016627 $as_echo_n "(cached) " >&6
16628else
16629 # Double quotes because CXXCPP needs to be expanded
16630 for CXXCPP in "$CXX -E" "/lib/cpp"
16631 do
16632 ac_preproc_ok=false
16633for ac_cxx_preproc_warn_flag in '' yes
16634do
16635 # Use a header file that comes with gcc, so configuring glibc
16636 # with a fresh cross-compiler works.
16637 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16638 # <limits.h> exists even on freestanding compilers.
16639 # On the NeXT, cc -E runs the code through the compiler's parser,
16640 # not just through cpp. "Syntax error" is here to catch this case.
16641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16642/* end confdefs.h. */
16643#ifdef __STDC__
16644# include <limits.h>
16645#else
16646# include <assert.h>
16647#endif
16648 Syntax error
16649_ACEOF
16650if ac_fn_cxx_try_cpp "$LINENO"; then :
16651
16652else
16653 # Broken: fails on valid input.
16654continue
16655fi
cristyda16f162011-02-19 23:52:17 +000016656rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016657
16658 # OK, works on sane cases. Now check whether nonexistent headers
16659 # can be detected and how.
16660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16661/* end confdefs.h. */
16662#include <ac_nonexistent.h>
16663_ACEOF
16664if ac_fn_cxx_try_cpp "$LINENO"; then :
16665 # Broken: success on invalid input.
16666continue
16667else
16668 # Passes both tests.
16669ac_preproc_ok=:
16670break
16671fi
cristyda16f162011-02-19 23:52:17 +000016672rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016673
16674done
16675# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016676rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016677if $ac_preproc_ok; then :
16678 break
16679fi
16680
16681 done
16682 ac_cv_prog_CXXCPP=$CXXCPP
16683
16684fi
16685 CXXCPP=$ac_cv_prog_CXXCPP
16686else
16687 ac_cv_prog_CXXCPP=$CXXCPP
16688fi
16689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16690$as_echo "$CXXCPP" >&6; }
16691ac_preproc_ok=false
16692for ac_cxx_preproc_warn_flag in '' yes
16693do
16694 # Use a header file that comes with gcc, so configuring glibc
16695 # with a fresh cross-compiler works.
16696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16697 # <limits.h> exists even on freestanding compilers.
16698 # On the NeXT, cc -E runs the code through the compiler's parser,
16699 # not just through cpp. "Syntax error" is here to catch this case.
16700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16701/* end confdefs.h. */
16702#ifdef __STDC__
16703# include <limits.h>
16704#else
16705# include <assert.h>
16706#endif
16707 Syntax error
16708_ACEOF
16709if ac_fn_cxx_try_cpp "$LINENO"; then :
16710
16711else
16712 # Broken: fails on valid input.
16713continue
16714fi
cristyda16f162011-02-19 23:52:17 +000016715rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016716
16717 # OK, works on sane cases. Now check whether nonexistent headers
16718 # can be detected and how.
16719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16720/* end confdefs.h. */
16721#include <ac_nonexistent.h>
16722_ACEOF
16723if ac_fn_cxx_try_cpp "$LINENO"; then :
16724 # Broken: success on invalid input.
16725continue
16726else
16727 # Passes both tests.
16728ac_preproc_ok=:
16729break
16730fi
cristyda16f162011-02-19 23:52:17 +000016731rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016732
16733done
16734# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016735rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016736if $ac_preproc_ok; then :
16737
16738else
16739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16740$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16741as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16742See \`config.log' for more details" "$LINENO" 5; }
16743fi
16744
16745ac_ext=c
16746ac_cpp='$CPP $CPPFLAGS'
16747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16749ac_compiler_gnu=$ac_cv_c_compiler_gnu
16750
16751else
16752 _lt_caught_CXX_error=yes
16753fi
cristy73bd4a52010-10-05 11:24:23 +000016754
16755ac_ext=cpp
16756ac_cpp='$CXXCPP $CPPFLAGS'
16757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16760
16761archive_cmds_need_lc_CXX=no
16762allow_undefined_flag_CXX=
16763always_export_symbols_CXX=no
16764archive_expsym_cmds_CXX=
16765compiler_needs_object_CXX=no
16766export_dynamic_flag_spec_CXX=
16767hardcode_direct_CXX=no
16768hardcode_direct_absolute_CXX=no
16769hardcode_libdir_flag_spec_CXX=
16770hardcode_libdir_flag_spec_ld_CXX=
16771hardcode_libdir_separator_CXX=
16772hardcode_minus_L_CXX=no
16773hardcode_shlibpath_var_CXX=unsupported
16774hardcode_automatic_CXX=no
16775inherit_rpath_CXX=no
16776module_cmds_CXX=
16777module_expsym_cmds_CXX=
16778link_all_deplibs_CXX=unknown
16779old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000016780reload_flag_CXX=$reload_flag
16781reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000016782no_undefined_flag_CXX=
16783whole_archive_flag_spec_CXX=
16784enable_shared_with_static_runtimes_CXX=no
16785
16786# Source file extension for C++ test sources.
16787ac_ext=cpp
16788
16789# Object file extension for compiled C++ test sources.
16790objext=o
16791objext_CXX=$objext
16792
16793# No sense in running all these tests if we already determined that
16794# the CXX compiler isn't working. Some variables (like enable_shared)
16795# are currently assumed to apply to all compilers on this platform,
16796# and will be corrupted by setting them based on a non-working compiler.
16797if test "$_lt_caught_CXX_error" != yes; then
16798 # Code to be used in simple compile tests
16799 lt_simple_compile_test_code="int some_variable = 0;"
16800
16801 # Code to be used in simple link tests
16802 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16803
16804 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16805
16806
16807
16808
16809
16810
16811# If no C compiler was specified, use CC.
16812LTCC=${LTCC-"$CC"}
16813
16814# If no C compiler flags were specified, use CFLAGS.
16815LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16816
16817# Allow CC to be a program name with arguments.
16818compiler=$CC
16819
16820
16821 # save warnings/boilerplate of simple test code
16822 ac_outfile=conftest.$ac_objext
16823echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16824eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16825_lt_compiler_boilerplate=`cat conftest.err`
16826$RM conftest*
16827
16828 ac_outfile=conftest.$ac_objext
16829echo "$lt_simple_link_test_code" >conftest.$ac_ext
16830eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16831_lt_linker_boilerplate=`cat conftest.err`
16832$RM -r conftest*
16833
16834
16835 # Allow CC to be a program name with arguments.
16836 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000016837 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016838 lt_save_LD=$LD
16839 lt_save_GCC=$GCC
16840 GCC=$GXX
16841 lt_save_with_gnu_ld=$with_gnu_ld
16842 lt_save_path_LD=$lt_cv_path_LD
16843 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16844 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16845 else
16846 $as_unset lt_cv_prog_gnu_ld
16847 fi
16848 if test -n "${lt_cv_path_LDCXX+set}"; then
16849 lt_cv_path_LD=$lt_cv_path_LDCXX
16850 else
16851 $as_unset lt_cv_path_LD
16852 fi
16853 test -z "${LDCXX+set}" || LD=$LDCXX
16854 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000016855 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016856 compiler=$CC
16857 compiler_CXX=$CC
16858 for cc_temp in $compiler""; do
16859 case $cc_temp in
16860 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16861 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16862 \-*) ;;
16863 *) break;;
16864 esac
16865done
cristy0c60a692010-11-04 01:09:47 +000016866cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000016867
16868
16869 if test -n "$compiler"; then
16870 # We don't want -fno-exception when compiling C++ code, so set the
16871 # no_builtin_flag separately
16872 if test "$GXX" = yes; then
16873 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16874 else
16875 lt_prog_compiler_no_builtin_flag_CXX=
16876 fi
16877
16878 if test "$GXX" = yes; then
16879 # Set up default GNU C++ configuration
16880
16881
16882
16883# Check whether --with-gnu-ld was given.
16884if test "${with_gnu_ld+set}" = set; then :
16885 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16886else
16887 with_gnu_ld=no
16888fi
16889
16890ac_prog=ld
16891if test "$GCC" = yes; then
16892 # Check if gcc -print-prog-name=ld gives a path.
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16894$as_echo_n "checking for ld used by $CC... " >&6; }
16895 case $host in
16896 *-*-mingw*)
16897 # gcc leaves a trailing carriage return which upsets mingw
16898 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16899 *)
16900 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16901 esac
16902 case $ac_prog in
16903 # Accept absolute paths.
16904 [\\/]* | ?:[\\/]*)
16905 re_direlt='/[^/][^/]*/\.\./'
16906 # Canonicalize the pathname of ld
16907 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16908 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16909 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16910 done
16911 test -z "$LD" && LD="$ac_prog"
16912 ;;
16913 "")
16914 # If it fails, then pretend we aren't using GCC.
16915 ac_prog=ld
16916 ;;
16917 *)
16918 # If it is relative, then search for the first ld in PATH.
16919 with_gnu_ld=unknown
16920 ;;
16921 esac
16922elif test "$with_gnu_ld" = yes; then
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16924$as_echo_n "checking for GNU ld... " >&6; }
16925else
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16927$as_echo_n "checking for non-GNU ld... " >&6; }
16928fi
cristyda16f162011-02-19 23:52:17 +000016929if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016930 $as_echo_n "(cached) " >&6
16931else
16932 if test -z "$LD"; then
16933 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16934 for ac_dir in $PATH; do
16935 IFS="$lt_save_ifs"
16936 test -z "$ac_dir" && ac_dir=.
16937 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16938 lt_cv_path_LD="$ac_dir/$ac_prog"
16939 # Check to see if the program is GNU ld. I'd rather use --version,
16940 # but apparently some variants of GNU ld only accept -v.
16941 # Break only if it was the GNU/non-GNU ld that we prefer.
16942 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16943 *GNU* | *'with BFD'*)
16944 test "$with_gnu_ld" != no && break
16945 ;;
16946 *)
16947 test "$with_gnu_ld" != yes && break
16948 ;;
16949 esac
16950 fi
16951 done
16952 IFS="$lt_save_ifs"
16953else
16954 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16955fi
16956fi
16957
16958LD="$lt_cv_path_LD"
16959if test -n "$LD"; then
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16961$as_echo "$LD" >&6; }
16962else
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16964$as_echo "no" >&6; }
16965fi
cristy98dddb52010-11-04 00:30:15 +000016966test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000016967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16968$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016969if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016970 $as_echo_n "(cached) " >&6
16971else
16972 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16973case `$LD -v 2>&1 </dev/null` in
16974*GNU* | *'with BFD'*)
16975 lt_cv_prog_gnu_ld=yes
16976 ;;
16977*)
16978 lt_cv_prog_gnu_ld=no
16979 ;;
16980esac
16981fi
16982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16983$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16984with_gnu_ld=$lt_cv_prog_gnu_ld
16985
16986
16987
16988
16989
16990
16991
16992 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16993 # archiving commands below assume that GNU ld is being used.
16994 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000016995 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16996 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016997
16998 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16999 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17000
17001 # If archive_cmds runs LD, not CC, wlarc should be empty
17002 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17003 # investigate it a little bit more. (MM)
17004 wlarc='${wl}'
17005
17006 # ancient GNU ld didn't support --whole-archive et. al.
17007 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17008 $GREP 'no-whole-archive' > /dev/null; then
17009 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17010 else
17011 whole_archive_flag_spec_CXX=
17012 fi
17013 else
17014 with_gnu_ld=no
17015 wlarc=
17016
17017 # A generic and very simple default shared library creation
17018 # command for GNU C++ for the case where it uses the native
17019 # linker, instead of GNU ld. If possible, this setting should
17020 # overridden to take advantage of the native linker features on
17021 # the platform it is being used on.
17022 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17023 fi
17024
17025 # Commands to make compiler produce verbose output that lists
17026 # what "hidden" libraries, object files and flags are used when
17027 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017028 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017029
17030 else
17031 GXX=no
17032 with_gnu_ld=no
17033 wlarc=
17034 fi
17035
17036 # PORTME: fill in a description of your system's C++ link characteristics
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17038$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17039 ld_shlibs_CXX=yes
17040 case $host_os in
17041 aix3*)
17042 # FIXME: insert proper C++ library support
17043 ld_shlibs_CXX=no
17044 ;;
17045 aix[4-9]*)
17046 if test "$host_cpu" = ia64; then
17047 # On IA64, the linker does run time linking by default, so we don't
17048 # have to do anything special.
17049 aix_use_runtimelinking=no
17050 exp_sym_flag='-Bexport'
17051 no_entry_flag=""
17052 else
17053 aix_use_runtimelinking=no
17054
17055 # Test if we are trying to use run time linking or normal
17056 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17057 # need to do runtime linking.
17058 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17059 for ld_flag in $LDFLAGS; do
17060 case $ld_flag in
17061 *-brtl*)
17062 aix_use_runtimelinking=yes
17063 break
17064 ;;
17065 esac
17066 done
17067 ;;
17068 esac
17069
17070 exp_sym_flag='-bexport'
17071 no_entry_flag='-bnoentry'
17072 fi
17073
17074 # When large executables or shared objects are built, AIX ld can
17075 # have problems creating the table of contents. If linking a library
17076 # or program results in "error TOC overflow" add -mminimal-toc to
17077 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17078 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17079
17080 archive_cmds_CXX=''
17081 hardcode_direct_CXX=yes
17082 hardcode_direct_absolute_CXX=yes
17083 hardcode_libdir_separator_CXX=':'
17084 link_all_deplibs_CXX=yes
17085 file_list_spec_CXX='${wl}-f,'
17086
17087 if test "$GXX" = yes; then
17088 case $host_os in aix4.[012]|aix4.[012].*)
17089 # We only want to do this on AIX 4.2 and lower, the check
17090 # below for broken collect2 doesn't work under 4.3+
17091 collect2name=`${CC} -print-prog-name=collect2`
17092 if test -f "$collect2name" &&
17093 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17094 then
17095 # We have reworked collect2
17096 :
17097 else
17098 # We have old collect2
17099 hardcode_direct_CXX=unsupported
17100 # It fails to find uninstalled libraries when the uninstalled
17101 # path is not listed in the libpath. Setting hardcode_minus_L
17102 # to unsupported forces relinking
17103 hardcode_minus_L_CXX=yes
17104 hardcode_libdir_flag_spec_CXX='-L$libdir'
17105 hardcode_libdir_separator_CXX=
17106 fi
17107 esac
17108 shared_flag='-shared'
17109 if test "$aix_use_runtimelinking" = yes; then
17110 shared_flag="$shared_flag "'${wl}-G'
17111 fi
17112 else
17113 # not using gcc
17114 if test "$host_cpu" = ia64; then
17115 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17116 # chokes on -Wl,-G. The following line is correct:
17117 shared_flag='-G'
17118 else
17119 if test "$aix_use_runtimelinking" = yes; then
17120 shared_flag='${wl}-G'
17121 else
17122 shared_flag='${wl}-bM:SRE'
17123 fi
17124 fi
17125 fi
17126
17127 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17128 # It seems that -bexpall does not export symbols beginning with
17129 # underscore (_), so it is better to generate a list of symbols to
17130 # export.
17131 always_export_symbols_CXX=yes
17132 if test "$aix_use_runtimelinking" = yes; then
17133 # Warning - without using the other runtime loading flags (-brtl),
17134 # -berok will link without error, but may produce a broken library.
17135 allow_undefined_flag_CXX='-berok'
17136 # Determine the default libpath from the value encoded in an empty
17137 # executable.
cristyda16f162011-02-19 23:52:17 +000017138 if test "${lt_cv_aix_libpath+set}" = set; then
17139 aix_libpath=$lt_cv_aix_libpath
17140else
17141 if ${lt_cv_aix_libpath__CXX+:} false; then :
17142 $as_echo_n "(cached) " >&6
17143else
17144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017145/* end confdefs.h. */
17146
17147int
17148main ()
17149{
17150
17151 ;
17152 return 0;
17153}
17154_ACEOF
17155if ac_fn_cxx_try_link "$LINENO"; then :
17156
cristyda16f162011-02-19 23:52:17 +000017157 lt_aix_libpath_sed='
17158 /Import File Strings/,/^$/ {
17159 /^0/ {
17160 s/^0 *\([^ ]*\) *$/\1/
17161 p
17162 }
17163 }'
17164 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17165 # Check for a 64-bit object if we didn't find anything.
17166 if test -z "$lt_cv_aix_libpath__CXX"; then
17167 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17168 fi
cristy73bd4a52010-10-05 11:24:23 +000017169fi
17170rm -f core conftest.err conftest.$ac_objext \
17171 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017172 if test -z "$lt_cv_aix_libpath__CXX"; then
17173 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17174 fi
17175
17176fi
17177
17178 aix_libpath=$lt_cv_aix_libpath__CXX
17179fi
cristy73bd4a52010-10-05 11:24:23 +000017180
17181 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17182
cristy0c60a692010-11-04 01:09:47 +000017183 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 +000017184 else
17185 if test "$host_cpu" = ia64; then
17186 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17187 allow_undefined_flag_CXX="-z nodefs"
17188 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"
17189 else
17190 # Determine the default libpath from the value encoded in an
17191 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017192 if test "${lt_cv_aix_libpath+set}" = set; then
17193 aix_libpath=$lt_cv_aix_libpath
17194else
17195 if ${lt_cv_aix_libpath__CXX+:} false; then :
17196 $as_echo_n "(cached) " >&6
17197else
17198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017199/* end confdefs.h. */
17200
17201int
17202main ()
17203{
17204
17205 ;
17206 return 0;
17207}
17208_ACEOF
17209if ac_fn_cxx_try_link "$LINENO"; then :
17210
cristyda16f162011-02-19 23:52:17 +000017211 lt_aix_libpath_sed='
17212 /Import File Strings/,/^$/ {
17213 /^0/ {
17214 s/^0 *\([^ ]*\) *$/\1/
17215 p
17216 }
17217 }'
17218 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17219 # Check for a 64-bit object if we didn't find anything.
17220 if test -z "$lt_cv_aix_libpath__CXX"; then
17221 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17222 fi
cristy73bd4a52010-10-05 11:24:23 +000017223fi
17224rm -f core conftest.err conftest.$ac_objext \
17225 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017226 if test -z "$lt_cv_aix_libpath__CXX"; then
17227 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17228 fi
17229
17230fi
17231
17232 aix_libpath=$lt_cv_aix_libpath__CXX
17233fi
cristy73bd4a52010-10-05 11:24:23 +000017234
17235 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17236 # Warning - without using the other run time loading flags,
17237 # -berok will link without error, but may produce a broken library.
17238 no_undefined_flag_CXX=' ${wl}-bernotok'
17239 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017240 if test "$with_gnu_ld" = yes; then
17241 # We only use this code for GNU lds that support --whole-archive.
17242 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17243 else
17244 # Exported symbols can be pulled into shared objects from archives
17245 whole_archive_flag_spec_CXX='$convenience'
17246 fi
cristy73bd4a52010-10-05 11:24:23 +000017247 archive_cmds_need_lc_CXX=yes
17248 # This is similar to how AIX traditionally builds its shared
17249 # libraries.
17250 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'
17251 fi
17252 fi
17253 ;;
17254
17255 beos*)
17256 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17257 allow_undefined_flag_CXX=unsupported
17258 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17259 # support --undefined. This deserves some investigation. FIXME
17260 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17261 else
17262 ld_shlibs_CXX=no
17263 fi
17264 ;;
17265
17266 chorus*)
17267 case $cc_basename in
17268 *)
17269 # FIXME: insert proper C++ library support
17270 ld_shlibs_CXX=no
17271 ;;
17272 esac
17273 ;;
17274
17275 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017276 case $GXX,$cc_basename in
17277 ,cl* | no,cl*)
17278 # Native MSVC
17279 # hardcode_libdir_flag_spec is actually meaningless, as there is
17280 # no search path for DLLs.
17281 hardcode_libdir_flag_spec_CXX=' '
17282 allow_undefined_flag_CXX=unsupported
17283 always_export_symbols_CXX=yes
17284 file_list_spec_CXX='@'
17285 # Tell ltmain to make .lib files, not .a files.
17286 libext=lib
17287 # Tell ltmain to make .dll files, not .so files.
17288 shrext_cmds=".dll"
17289 # FIXME: Setting linknames here is a bad hack.
17290 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17291 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17292 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17293 else
17294 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17295 fi~
17296 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17297 linknames='
17298 # The linker will not automatically build a static lib if we build a DLL.
17299 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17300 enable_shared_with_static_runtimes_CXX=yes
17301 # Don't use ranlib
17302 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17303 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17304 lt_tool_outputfile="@TOOL_OUTPUT@"~
17305 case $lt_outputfile in
17306 *.exe|*.EXE) ;;
17307 *)
17308 lt_outputfile="$lt_outputfile.exe"
17309 lt_tool_outputfile="$lt_tool_outputfile.exe"
17310 ;;
17311 esac~
17312 func_to_tool_file "$lt_outputfile"~
17313 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17314 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17315 $RM "$lt_outputfile.manifest";
17316 fi'
17317 ;;
17318 *)
17319 # g++
17320 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17321 # as there is no search path for DLLs.
17322 hardcode_libdir_flag_spec_CXX='-L$libdir'
17323 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17324 allow_undefined_flag_CXX=unsupported
17325 always_export_symbols_CXX=no
17326 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017327
cristyda16f162011-02-19 23:52:17 +000017328 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17329 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'
17330 # If the export-symbols file already is a .def file (1st line
17331 # is EXPORTS), use it as is; otherwise, prepend...
17332 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17333 cp $export_symbols $output_objdir/$soname.def;
17334 else
17335 echo EXPORTS > $output_objdir/$soname.def;
17336 cat $export_symbols >> $output_objdir/$soname.def;
17337 fi~
17338 $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'
17339 else
17340 ld_shlibs_CXX=no
17341 fi
17342 ;;
17343 esac
17344 ;;
cristy73bd4a52010-10-05 11:24:23 +000017345 darwin* | rhapsody*)
17346
17347
17348 archive_cmds_need_lc_CXX=no
17349 hardcode_direct_CXX=no
17350 hardcode_automatic_CXX=yes
17351 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017352 if test "$lt_cv_ld_force_load" = "yes"; then
17353 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\"`'
17354 else
17355 whole_archive_flag_spec_CXX=''
17356 fi
cristy73bd4a52010-10-05 11:24:23 +000017357 link_all_deplibs_CXX=yes
17358 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17359 case $cc_basename in
17360 ifort*) _lt_dar_can_shared=yes ;;
17361 *) _lt_dar_can_shared=$GCC ;;
17362 esac
17363 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017364 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017365 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}"
17366 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17367 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}"
17368 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}"
17369 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17370 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}"
17371 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}"
17372 fi
17373
17374 else
17375 ld_shlibs_CXX=no
17376 fi
17377
17378 ;;
17379
17380 dgux*)
17381 case $cc_basename in
17382 ec++*)
17383 # FIXME: insert proper C++ library support
17384 ld_shlibs_CXX=no
17385 ;;
17386 ghcx*)
17387 # Green Hills C++ Compiler
17388 # FIXME: insert proper C++ library support
17389 ld_shlibs_CXX=no
17390 ;;
17391 *)
17392 # FIXME: insert proper C++ library support
17393 ld_shlibs_CXX=no
17394 ;;
17395 esac
17396 ;;
17397
17398 freebsd[12]*)
17399 # C++ shared libraries reported to be fairly broken before
17400 # switch to ELF
17401 ld_shlibs_CXX=no
17402 ;;
17403
17404 freebsd-elf*)
17405 archive_cmds_need_lc_CXX=no
17406 ;;
17407
17408 freebsd* | dragonfly*)
17409 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17410 # conventions
17411 ld_shlibs_CXX=yes
17412 ;;
17413
17414 gnu*)
17415 ;;
17416
cristy0c60a692010-11-04 01:09:47 +000017417 haiku*)
17418 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17419 link_all_deplibs_CXX=yes
17420 ;;
17421
cristy73bd4a52010-10-05 11:24:23 +000017422 hpux9*)
17423 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17424 hardcode_libdir_separator_CXX=:
17425 export_dynamic_flag_spec_CXX='${wl}-E'
17426 hardcode_direct_CXX=yes
17427 hardcode_minus_L_CXX=yes # Not in the search PATH,
17428 # but as the default
17429 # location of the library.
17430
17431 case $cc_basename in
17432 CC*)
17433 # FIXME: insert proper C++ library support
17434 ld_shlibs_CXX=no
17435 ;;
17436 aCC*)
17437 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'
17438 # Commands to make compiler produce verbose output that lists
17439 # what "hidden" libraries, object files and flags are used when
17440 # linking a shared library.
17441 #
17442 # There doesn't appear to be a way to prevent this compiler from
17443 # explicitly linking system object files so we need to strip them
17444 # from the output so that they don't get included in the library
17445 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017446 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 +000017447 ;;
17448 *)
17449 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017450 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
cristy73bd4a52010-10-05 11:24:23 +000017451 else
17452 # FIXME: insert proper C++ library support
17453 ld_shlibs_CXX=no
17454 fi
17455 ;;
17456 esac
17457 ;;
17458
17459 hpux10*|hpux11*)
17460 if test $with_gnu_ld = no; then
17461 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17462 hardcode_libdir_separator_CXX=:
17463
17464 case $host_cpu in
17465 hppa*64*|ia64*)
17466 ;;
17467 *)
17468 export_dynamic_flag_spec_CXX='${wl}-E'
17469 ;;
17470 esac
17471 fi
17472 case $host_cpu in
17473 hppa*64*|ia64*)
17474 hardcode_direct_CXX=no
17475 hardcode_shlibpath_var_CXX=no
17476 ;;
17477 *)
17478 hardcode_direct_CXX=yes
17479 hardcode_direct_absolute_CXX=yes
17480 hardcode_minus_L_CXX=yes # Not in the search PATH,
17481 # but as the default
17482 # location of the library.
17483 ;;
17484 esac
17485
17486 case $cc_basename in
17487 CC*)
17488 # FIXME: insert proper C++ library support
17489 ld_shlibs_CXX=no
17490 ;;
17491 aCC*)
17492 case $host_cpu in
17493 hppa*64*)
17494 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17495 ;;
17496 ia64*)
17497 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17498 ;;
17499 *)
17500 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17501 ;;
17502 esac
17503 # Commands to make compiler produce verbose output that lists
17504 # what "hidden" libraries, object files and flags are used when
17505 # linking a shared library.
17506 #
17507 # There doesn't appear to be a way to prevent this compiler from
17508 # explicitly linking system object files so we need to strip them
17509 # from the output so that they don't get included in the library
17510 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017511 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 +000017512 ;;
17513 *)
17514 if test "$GXX" = yes; then
17515 if test $with_gnu_ld = no; then
17516 case $host_cpu in
17517 hppa*64*)
17518 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17519 ;;
17520 ia64*)
cristyda16f162011-02-19 23:52:17 +000017521 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000017522 ;;
17523 *)
cristyda16f162011-02-19 23:52:17 +000017524 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000017525 ;;
17526 esac
17527 fi
17528 else
17529 # FIXME: insert proper C++ library support
17530 ld_shlibs_CXX=no
17531 fi
17532 ;;
17533 esac
17534 ;;
17535
17536 interix[3-9]*)
17537 hardcode_direct_CXX=no
17538 hardcode_shlibpath_var_CXX=no
17539 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17540 export_dynamic_flag_spec_CXX='${wl}-E'
17541 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17542 # Instead, shared libraries are loaded at an image base (0x10000000 by
17543 # default) and relocated if they conflict, which is a slow very memory
17544 # consuming and fragmenting process. To avoid this, we pick a random,
17545 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17546 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17547 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'
17548 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'
17549 ;;
17550 irix5* | irix6*)
17551 case $cc_basename in
17552 CC*)
17553 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017554 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 +000017555
17556 # Archives containing C++ object files must be created using
17557 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17558 # necessary to make sure instantiated templates are included
17559 # in the archive.
17560 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17561 ;;
17562 *)
17563 if test "$GXX" = yes; then
17564 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017565 archive_cmds_CXX='$CC -shared $pic_flag -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 +000017566 else
cristyda16f162011-02-19 23:52:17 +000017567 archive_cmds_CXX='$CC -shared $pic_flag -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 +000017568 fi
17569 fi
17570 link_all_deplibs_CXX=yes
17571 ;;
17572 esac
17573 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17574 hardcode_libdir_separator_CXX=:
17575 inherit_rpath_CXX=yes
17576 ;;
17577
cristy0c60a692010-11-04 01:09:47 +000017578 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017579 case $cc_basename in
17580 KCC*)
17581 # Kuck and Associates, Inc. (KAI) C++ Compiler
17582
17583 # KCC will only create a shared library if the output file
17584 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17585 # to its proper name (with version) after linking.
17586 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'
17587 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'
17588 # Commands to make compiler produce verbose output that lists
17589 # what "hidden" libraries, object files and flags are used when
17590 # linking a shared library.
17591 #
17592 # There doesn't appear to be a way to prevent this compiler from
17593 # explicitly linking system object files so we need to strip them
17594 # from the output so that they don't get included in the library
17595 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017596 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 +000017597
17598 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17599 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17600
17601 # Archives containing C++ object files must be created using
17602 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17603 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17604 ;;
17605 icpc* | ecpc* )
17606 # Intel C++
17607 with_gnu_ld=yes
17608 # version 8.0 and above of icpc choke on multiply defined symbols
17609 # if we add $predep_objects and $postdep_objects, however 7.1 and
17610 # earlier do not add the objects themselves.
17611 case `$CC -V 2>&1` in
17612 *"Version 7."*)
17613 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17614 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'
17615 ;;
17616 *) # Version 8.0 or newer
17617 tmp_idyn=
17618 case $host_cpu in
17619 ia64*) tmp_idyn=' -i_dynamic';;
17620 esac
17621 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17622 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'
17623 ;;
17624 esac
17625 archive_cmds_need_lc_CXX=no
17626 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17627 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17628 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17629 ;;
17630 pgCC* | pgcpp*)
17631 # Portland Group C++ compiler
17632 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017633 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017634 prelink_cmds_CXX='tpldir=Template.dir~
17635 rm -rf $tpldir~
17636 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017637 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017638 old_archive_cmds_CXX='tpldir=Template.dir~
17639 rm -rf $tpldir~
17640 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017641 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017642 $RANLIB $oldlib'
17643 archive_cmds_CXX='tpldir=Template.dir~
17644 rm -rf $tpldir~
17645 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017646 $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 +000017647 archive_expsym_cmds_CXX='tpldir=Template.dir~
17648 rm -rf $tpldir~
17649 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017650 $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 +000017651 ;;
cristy0c60a692010-11-04 01:09:47 +000017652 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017653 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17654 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'
17655 ;;
17656 esac
17657
17658 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17659 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017660 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 +000017661 ;;
17662 cxx*)
17663 # Compaq C++
17664 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17665 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'
17666
17667 runpath_var=LD_RUN_PATH
17668 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17669 hardcode_libdir_separator_CXX=:
17670
17671 # Commands to make compiler produce verbose output that lists
17672 # what "hidden" libraries, object files and flags are used when
17673 # linking a shared library.
17674 #
17675 # There doesn't appear to be a way to prevent this compiler from
17676 # explicitly linking system object files so we need to strip them
17677 # from the output so that they don't get included in the library
17678 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017679 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 +000017680 ;;
cristy0c60a692010-11-04 01:09:47 +000017681 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017682 # IBM XL 8.0 on PPC, with GNU ld
17683 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17684 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17685 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17686 if test "x$supports_anon_versioning" = xyes; then
17687 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17688 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17689 echo "local: *; };" >> $output_objdir/$libname.ver~
17690 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17691 fi
17692 ;;
17693 *)
17694 case `$CC -V 2>&1 | sed 5q` in
17695 *Sun\ C*)
17696 # Sun C++ 5.9
17697 no_undefined_flag_CXX=' -zdefs'
17698 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17699 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'
17700 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017701 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 +000017702 compiler_needs_object_CXX=yes
17703
17704 # Not sure whether something based on
17705 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17706 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017707 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017708
17709 # Archives containing C++ object files must be created using
17710 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17711 # necessary to make sure instantiated templates are included
17712 # in the archive.
17713 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17714 ;;
17715 esac
17716 ;;
17717 esac
17718 ;;
17719
17720 lynxos*)
17721 # FIXME: insert proper C++ library support
17722 ld_shlibs_CXX=no
17723 ;;
17724
17725 m88k*)
17726 # FIXME: insert proper C++ library support
17727 ld_shlibs_CXX=no
17728 ;;
17729
17730 mvs*)
17731 case $cc_basename in
17732 cxx*)
17733 # FIXME: insert proper C++ library support
17734 ld_shlibs_CXX=no
17735 ;;
17736 *)
17737 # FIXME: insert proper C++ library support
17738 ld_shlibs_CXX=no
17739 ;;
17740 esac
17741 ;;
17742
17743 netbsd*)
17744 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17745 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17746 wlarc=
17747 hardcode_libdir_flag_spec_CXX='-R$libdir'
17748 hardcode_direct_CXX=yes
17749 hardcode_shlibpath_var_CXX=no
17750 fi
17751 # Workaround some broken pre-1.5 toolchains
17752 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17753 ;;
17754
17755 *nto* | *qnx*)
17756 ld_shlibs_CXX=yes
17757 ;;
17758
17759 openbsd2*)
17760 # C++ shared libraries are fairly broken
17761 ld_shlibs_CXX=no
17762 ;;
17763
17764 openbsd*)
17765 if test -f /usr/libexec/ld.so; then
17766 hardcode_direct_CXX=yes
17767 hardcode_shlibpath_var_CXX=no
17768 hardcode_direct_absolute_CXX=yes
17769 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17770 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17771 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17772 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17773 export_dynamic_flag_spec_CXX='${wl}-E'
17774 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17775 fi
cristy0c60a692010-11-04 01:09:47 +000017776 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017777 else
17778 ld_shlibs_CXX=no
17779 fi
17780 ;;
17781
17782 osf3* | osf4* | osf5*)
17783 case $cc_basename in
17784 KCC*)
17785 # Kuck and Associates, Inc. (KAI) C++ Compiler
17786
17787 # KCC will only create a shared library if the output file
17788 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17789 # to its proper name (with version) after linking.
17790 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'
17791
17792 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17793 hardcode_libdir_separator_CXX=:
17794
17795 # Archives containing C++ object files must be created using
17796 # the KAI C++ compiler.
17797 case $host in
17798 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17799 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17800 esac
17801 ;;
17802 RCC*)
17803 # Rational C++ 2.4.1
17804 # FIXME: insert proper C++ library support
17805 ld_shlibs_CXX=no
17806 ;;
17807 cxx*)
17808 case $host in
17809 osf3*)
17810 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000017811 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 +000017812 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17813 ;;
17814 *)
17815 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000017816 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 +000017817 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17818 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000017819 $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 +000017820 $RM $lib.exp'
17821 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17822 ;;
17823 esac
17824
17825 hardcode_libdir_separator_CXX=:
17826
17827 # Commands to make compiler produce verbose output that lists
17828 # what "hidden" libraries, object files and flags are used when
17829 # linking a shared library.
17830 #
17831 # There doesn't appear to be a way to prevent this compiler from
17832 # explicitly linking system object files so we need to strip them
17833 # from the output so that they don't get included in the library
17834 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017835 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 +000017836 ;;
17837 *)
17838 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17839 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17840 case $host in
17841 osf3*)
cristy0c60a692010-11-04 01:09:47 +000017842 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 +000017843 ;;
17844 *)
cristyda16f162011-02-19 23:52:17 +000017845 archive_cmds_CXX='$CC -shared $pic_flag -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 +000017846 ;;
17847 esac
17848
17849 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17850 hardcode_libdir_separator_CXX=:
17851
17852 # Commands to make compiler produce verbose output that lists
17853 # what "hidden" libraries, object files and flags are used when
17854 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017855 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017856
17857 else
17858 # FIXME: insert proper C++ library support
17859 ld_shlibs_CXX=no
17860 fi
17861 ;;
17862 esac
17863 ;;
17864
17865 psos*)
17866 # FIXME: insert proper C++ library support
17867 ld_shlibs_CXX=no
17868 ;;
17869
17870 sunos4*)
17871 case $cc_basename in
17872 CC*)
17873 # Sun C++ 4.x
17874 # FIXME: insert proper C++ library support
17875 ld_shlibs_CXX=no
17876 ;;
17877 lcc*)
17878 # Lucid
17879 # FIXME: insert proper C++ library support
17880 ld_shlibs_CXX=no
17881 ;;
17882 *)
17883 # FIXME: insert proper C++ library support
17884 ld_shlibs_CXX=no
17885 ;;
17886 esac
17887 ;;
17888
17889 solaris*)
17890 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000017891 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000017892 # Sun C++ 4.2, 5.x and Centerline C++
17893 archive_cmds_need_lc_CXX=yes
17894 no_undefined_flag_CXX=' -zdefs'
17895 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17896 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17897 $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'
17898
17899 hardcode_libdir_flag_spec_CXX='-R$libdir'
17900 hardcode_shlibpath_var_CXX=no
17901 case $host_os in
17902 solaris2.[0-5] | solaris2.[0-5].*) ;;
17903 *)
17904 # The compiler driver will combine and reorder linker options,
17905 # but understands `-z linker_flag'.
17906 # Supported since Solaris 2.6 (maybe 2.5.1?)
17907 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17908 ;;
17909 esac
17910 link_all_deplibs_CXX=yes
17911
cristy0c60a692010-11-04 01:09:47 +000017912 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017913
17914 # Archives containing C++ object files must be created using
17915 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17916 # necessary to make sure instantiated templates are included
17917 # in the archive.
17918 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17919 ;;
17920 gcx*)
17921 # Green Hills C++ Compiler
17922 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17923
17924 # The C++ compiler must be used to create the archive.
17925 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17926 ;;
17927 *)
17928 # GNU C++ compiler with Solaris linker
17929 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17930 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17931 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000017932 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017933 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cristyda16f162011-02-19 23:52:17 +000017934 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000017935
17936 # Commands to make compiler produce verbose output that lists
17937 # what "hidden" libraries, object files and flags are used when
17938 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017939 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017940 else
17941 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17942 # platform.
17943 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17944 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17945 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17946
17947 # Commands to make compiler produce verbose output that lists
17948 # what "hidden" libraries, object files and flags are used when
17949 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017950 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017951 fi
17952
17953 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17954 case $host_os in
17955 solaris2.[0-5] | solaris2.[0-5].*) ;;
17956 *)
17957 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17958 ;;
17959 esac
17960 fi
17961 ;;
17962 esac
17963 ;;
17964
17965 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17966 no_undefined_flag_CXX='${wl}-z,text'
17967 archive_cmds_need_lc_CXX=no
17968 hardcode_shlibpath_var_CXX=no
17969 runpath_var='LD_RUN_PATH'
17970
17971 case $cc_basename in
17972 CC*)
17973 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17974 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17975 ;;
17976 *)
17977 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17978 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17979 ;;
17980 esac
17981 ;;
17982
17983 sysv5* | sco3.2v5* | sco5v6*)
17984 # Note: We can NOT use -z defs as we might desire, because we do not
17985 # link with -lc, and that would cause any symbols used from libc to
17986 # always be unresolved, which means just about no library would
17987 # ever link correctly. If we're not using GNU ld we use -z text
17988 # though, which does catch some bad symbols but isn't as heavy-handed
17989 # as -z defs.
17990 no_undefined_flag_CXX='${wl}-z,text'
17991 allow_undefined_flag_CXX='${wl}-z,nodefs'
17992 archive_cmds_need_lc_CXX=no
17993 hardcode_shlibpath_var_CXX=no
17994 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17995 hardcode_libdir_separator_CXX=':'
17996 link_all_deplibs_CXX=yes
17997 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17998 runpath_var='LD_RUN_PATH'
17999
18000 case $cc_basename in
18001 CC*)
18002 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18003 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 +000018004 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18005 '"$old_archive_cmds_CXX"
18006 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18007 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018008 ;;
18009 *)
18010 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18011 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18012 ;;
18013 esac
18014 ;;
18015
18016 tandem*)
18017 case $cc_basename in
18018 NCC*)
18019 # NonStop-UX NCC 3.20
18020 # FIXME: insert proper C++ library support
18021 ld_shlibs_CXX=no
18022 ;;
18023 *)
18024 # FIXME: insert proper C++ library support
18025 ld_shlibs_CXX=no
18026 ;;
18027 esac
18028 ;;
18029
18030 vxworks*)
18031 # FIXME: insert proper C++ library support
18032 ld_shlibs_CXX=no
18033 ;;
18034
18035 *)
18036 # FIXME: insert proper C++ library support
18037 ld_shlibs_CXX=no
18038 ;;
18039 esac
18040
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18042$as_echo "$ld_shlibs_CXX" >&6; }
18043 test "$ld_shlibs_CXX" = no && can_build_shared=no
18044
18045 GCC_CXX="$GXX"
18046 LD_CXX="$LD"
18047
18048 ## CAVEAT EMPTOR:
18049 ## There is no encapsulation within the following macros, do not change
18050 ## the running order or otherwise move them around unless you know exactly
18051 ## what you are doing...
18052 # Dependencies to place before and after the object being linked:
18053predep_objects_CXX=
18054postdep_objects_CXX=
18055predeps_CXX=
18056postdeps_CXX=
18057compiler_lib_search_path_CXX=
18058
18059cat > conftest.$ac_ext <<_LT_EOF
18060class Foo
18061{
18062public:
18063 Foo (void) { a = 0; }
18064private:
18065 int a;
18066};
18067_LT_EOF
18068
cristyda16f162011-02-19 23:52:17 +000018069
18070_lt_libdeps_save_CFLAGS=$CFLAGS
18071case "$CC $CFLAGS " in #(
18072*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18073*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18074esac
18075
cristy73bd4a52010-10-05 11:24:23 +000018076if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18077 (eval $ac_compile) 2>&5
18078 ac_status=$?
18079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18080 test $ac_status = 0; }; then
18081 # Parse the compiler output and extract the necessary
18082 # objects, libraries and library flags.
18083
18084 # Sentinel used to keep track of whether or not we are before
18085 # the conftest object file.
18086 pre_test_object_deps_done=no
18087
18088 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018089 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018090
18091 -L* | -R* | -l*)
18092 # Some compilers place space between "-{L,R}" and the path.
18093 # Remove the space.
18094 if test $p = "-L" ||
18095 test $p = "-R"; then
18096 prev=$p
18097 continue
cristy73bd4a52010-10-05 11:24:23 +000018098 fi
18099
cristyda16f162011-02-19 23:52:17 +000018100 # Expand the sysroot to ease extracting the directories later.
18101 if test -z "$prev"; then
18102 case $p in
18103 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18104 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18105 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18106 esac
18107 fi
18108 case $p in
18109 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18110 esac
cristy73bd4a52010-10-05 11:24:23 +000018111 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018112 case ${prev} in
18113 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018114 # Internal compiler library paths should come after those
18115 # provided the user. The postdeps already come after the
18116 # user supplied libs so there is no need to process them.
18117 if test -z "$compiler_lib_search_path_CXX"; then
18118 compiler_lib_search_path_CXX="${prev}${p}"
18119 else
18120 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18121 fi
18122 ;;
18123 # The "-l" case would never come before the object being
18124 # linked, so don't bother handling this case.
18125 esac
18126 else
18127 if test -z "$postdeps_CXX"; then
18128 postdeps_CXX="${prev}${p}"
18129 else
18130 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18131 fi
18132 fi
cristyda16f162011-02-19 23:52:17 +000018133 prev=
cristy73bd4a52010-10-05 11:24:23 +000018134 ;;
18135
cristyda16f162011-02-19 23:52:17 +000018136 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018137 *.$objext)
18138 # This assumes that the test object file only shows up
18139 # once in the compiler output.
18140 if test "$p" = "conftest.$objext"; then
18141 pre_test_object_deps_done=yes
18142 continue
18143 fi
18144
18145 if test "$pre_test_object_deps_done" = no; then
18146 if test -z "$predep_objects_CXX"; then
18147 predep_objects_CXX="$p"
18148 else
18149 predep_objects_CXX="$predep_objects_CXX $p"
18150 fi
18151 else
18152 if test -z "$postdep_objects_CXX"; then
18153 postdep_objects_CXX="$p"
18154 else
18155 postdep_objects_CXX="$postdep_objects_CXX $p"
18156 fi
18157 fi
18158 ;;
18159
18160 *) ;; # Ignore the rest.
18161
18162 esac
18163 done
18164
18165 # Clean up.
18166 rm -f a.out a.exe
18167else
18168 echo "libtool.m4: error: problem compiling CXX test program"
18169fi
18170
18171$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018172CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018173
18174# PORTME: override above test on systems where it is broken
18175case $host_os in
18176interix[3-9]*)
18177 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18178 # hack all around it, let's just trust "g++" to DTRT.
18179 predep_objects_CXX=
18180 postdep_objects_CXX=
18181 postdeps_CXX=
18182 ;;
18183
18184linux*)
18185 case `$CC -V 2>&1 | sed 5q` in
18186 *Sun\ C*)
18187 # Sun C++ 5.9
18188
18189 # The more standards-conforming stlport4 library is
18190 # incompatible with the Cstd library. Avoid specifying
18191 # it if it's in CXXFLAGS. Ignore libCrun as
18192 # -library=stlport4 depends on it.
18193 case " $CXX $CXXFLAGS " in
18194 *" -library=stlport4 "*)
18195 solaris_use_stlport4=yes
18196 ;;
18197 esac
18198
18199 if test "$solaris_use_stlport4" != yes; then
18200 postdeps_CXX='-library=Cstd -library=Crun'
18201 fi
18202 ;;
18203 esac
18204 ;;
18205
18206solaris*)
18207 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018208 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018209 # The more standards-conforming stlport4 library is
18210 # incompatible with the Cstd library. Avoid specifying
18211 # it if it's in CXXFLAGS. Ignore libCrun as
18212 # -library=stlport4 depends on it.
18213 case " $CXX $CXXFLAGS " in
18214 *" -library=stlport4 "*)
18215 solaris_use_stlport4=yes
18216 ;;
18217 esac
18218
18219 # Adding this requires a known-good setup of shared libraries for
18220 # Sun compiler versions before 5.6, else PIC objects from an old
18221 # archive will be linked into the output, leading to subtle bugs.
18222 if test "$solaris_use_stlport4" != yes; then
18223 postdeps_CXX='-library=Cstd -library=Crun'
18224 fi
18225 ;;
18226 esac
18227 ;;
18228esac
18229
18230
18231case " $postdeps_CXX " in
18232*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18233esac
18234 compiler_lib_search_dirs_CXX=
18235if test -n "${compiler_lib_search_path_CXX}"; then
18236 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18237fi
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269 lt_prog_compiler_wl_CXX=
18270lt_prog_compiler_pic_CXX=
18271lt_prog_compiler_static_CXX=
18272
cristy73bd4a52010-10-05 11:24:23 +000018273
18274 # C++ specific cases for pic, static, wl, etc.
18275 if test "$GXX" = yes; then
18276 lt_prog_compiler_wl_CXX='-Wl,'
18277 lt_prog_compiler_static_CXX='-static'
18278
18279 case $host_os in
18280 aix*)
18281 # All AIX code is PIC.
18282 if test "$host_cpu" = ia64; then
18283 # AIX 5 now supports IA64 processor
18284 lt_prog_compiler_static_CXX='-Bstatic'
18285 fi
18286 ;;
18287
18288 amigaos*)
18289 case $host_cpu in
18290 powerpc)
18291 # see comment about AmigaOS4 .so support
18292 lt_prog_compiler_pic_CXX='-fPIC'
18293 ;;
18294 m68k)
18295 # FIXME: we need at least 68020 code to build shared libraries, but
18296 # adding the `-m68020' flag to GCC prevents building anything better,
18297 # like `-m68040'.
18298 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18299 ;;
18300 esac
18301 ;;
18302
18303 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18304 # PIC is the default for these OSes.
18305 ;;
18306 mingw* | cygwin* | os2* | pw32* | cegcc*)
18307 # This hack is so that the source file can tell whether it is being
18308 # built for inclusion in a dll (and should export symbols for example).
18309 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18310 # (--disable-auto-import) libraries
18311 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18312 ;;
18313 darwin* | rhapsody*)
18314 # PIC is the default on this platform
18315 # Common symbols not allowed in MH_DYLIB files
18316 lt_prog_compiler_pic_CXX='-fno-common'
18317 ;;
18318 *djgpp*)
18319 # DJGPP does not support shared libraries at all
18320 lt_prog_compiler_pic_CXX=
18321 ;;
cristy0c60a692010-11-04 01:09:47 +000018322 haiku*)
18323 # PIC is the default for Haiku.
18324 # The "-static" flag exists, but is broken.
18325 lt_prog_compiler_static_CXX=
18326 ;;
cristy73bd4a52010-10-05 11:24:23 +000018327 interix[3-9]*)
18328 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18329 # Instead, we relocate shared libraries at runtime.
18330 ;;
18331 sysv4*MP*)
18332 if test -d /usr/nec; then
18333 lt_prog_compiler_pic_CXX=-Kconform_pic
18334 fi
18335 ;;
18336 hpux*)
18337 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18338 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18339 # sets the default TLS model and affects inlining.
18340 case $host_cpu in
18341 hppa*64*)
18342 ;;
18343 *)
18344 lt_prog_compiler_pic_CXX='-fPIC'
18345 ;;
18346 esac
18347 ;;
18348 *qnx* | *nto*)
18349 # QNX uses GNU C++, but need to define -shared option too, otherwise
18350 # it will coredump.
18351 lt_prog_compiler_pic_CXX='-fPIC -shared'
18352 ;;
18353 *)
18354 lt_prog_compiler_pic_CXX='-fPIC'
18355 ;;
18356 esac
18357 else
18358 case $host_os in
18359 aix[4-9]*)
18360 # All AIX code is PIC.
18361 if test "$host_cpu" = ia64; then
18362 # AIX 5 now supports IA64 processor
18363 lt_prog_compiler_static_CXX='-Bstatic'
18364 else
18365 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18366 fi
18367 ;;
18368 chorus*)
18369 case $cc_basename in
18370 cxch68*)
18371 # Green Hills C++ Compiler
18372 # _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"
18373 ;;
18374 esac
18375 ;;
cristyda16f162011-02-19 23:52:17 +000018376 mingw* | cygwin* | os2* | pw32* | cegcc*)
18377 # This hack is so that the source file can tell whether it is being
18378 # built for inclusion in a dll (and should export symbols for example).
18379 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18380 ;;
cristy73bd4a52010-10-05 11:24:23 +000018381 dgux*)
18382 case $cc_basename in
18383 ec++*)
18384 lt_prog_compiler_pic_CXX='-KPIC'
18385 ;;
18386 ghcx*)
18387 # Green Hills C++ Compiler
18388 lt_prog_compiler_pic_CXX='-pic'
18389 ;;
18390 *)
18391 ;;
18392 esac
18393 ;;
18394 freebsd* | dragonfly*)
18395 # FreeBSD uses GNU C++
18396 ;;
18397 hpux9* | hpux10* | hpux11*)
18398 case $cc_basename in
18399 CC*)
18400 lt_prog_compiler_wl_CXX='-Wl,'
18401 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18402 if test "$host_cpu" != ia64; then
18403 lt_prog_compiler_pic_CXX='+Z'
18404 fi
18405 ;;
18406 aCC*)
18407 lt_prog_compiler_wl_CXX='-Wl,'
18408 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18409 case $host_cpu in
18410 hppa*64*|ia64*)
18411 # +Z the default
18412 ;;
18413 *)
18414 lt_prog_compiler_pic_CXX='+Z'
18415 ;;
18416 esac
18417 ;;
18418 *)
18419 ;;
18420 esac
18421 ;;
18422 interix*)
18423 # This is c89, which is MS Visual C++ (no shared libs)
18424 # Anyone wants to do a port?
18425 ;;
18426 irix5* | irix6* | nonstopux*)
18427 case $cc_basename in
18428 CC*)
18429 lt_prog_compiler_wl_CXX='-Wl,'
18430 lt_prog_compiler_static_CXX='-non_shared'
18431 # CC pic flag -KPIC is the default.
18432 ;;
18433 *)
18434 ;;
18435 esac
18436 ;;
cristy0c60a692010-11-04 01:09:47 +000018437 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018438 case $cc_basename in
18439 KCC*)
18440 # KAI C++ Compiler
18441 lt_prog_compiler_wl_CXX='--backend -Wl,'
18442 lt_prog_compiler_pic_CXX='-fPIC'
18443 ;;
18444 ecpc* )
18445 # old Intel C++ for x86_64 which still supported -KPIC.
18446 lt_prog_compiler_wl_CXX='-Wl,'
18447 lt_prog_compiler_pic_CXX='-KPIC'
18448 lt_prog_compiler_static_CXX='-static'
18449 ;;
18450 icpc* )
18451 # Intel C++, used to be incompatible with GCC.
18452 # ICC 10 doesn't accept -KPIC any more.
18453 lt_prog_compiler_wl_CXX='-Wl,'
18454 lt_prog_compiler_pic_CXX='-fPIC'
18455 lt_prog_compiler_static_CXX='-static'
18456 ;;
18457 pgCC* | pgcpp*)
18458 # Portland Group C++ compiler
18459 lt_prog_compiler_wl_CXX='-Wl,'
18460 lt_prog_compiler_pic_CXX='-fpic'
18461 lt_prog_compiler_static_CXX='-Bstatic'
18462 ;;
18463 cxx*)
18464 # Compaq C++
18465 # Make sure the PIC flag is empty. It appears that all Alpha
18466 # Linux and Compaq Tru64 Unix objects are PIC.
18467 lt_prog_compiler_pic_CXX=
18468 lt_prog_compiler_static_CXX='-non_shared'
18469 ;;
cristy0c60a692010-11-04 01:09:47 +000018470 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18471 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018472 lt_prog_compiler_wl_CXX='-Wl,'
18473 lt_prog_compiler_pic_CXX='-qpic'
18474 lt_prog_compiler_static_CXX='-qstaticlink'
18475 ;;
18476 *)
18477 case `$CC -V 2>&1 | sed 5q` in
18478 *Sun\ C*)
18479 # Sun C++ 5.9
18480 lt_prog_compiler_pic_CXX='-KPIC'
18481 lt_prog_compiler_static_CXX='-Bstatic'
18482 lt_prog_compiler_wl_CXX='-Qoption ld '
18483 ;;
18484 esac
18485 ;;
18486 esac
18487 ;;
18488 lynxos*)
18489 ;;
18490 m88k*)
18491 ;;
18492 mvs*)
18493 case $cc_basename in
18494 cxx*)
18495 lt_prog_compiler_pic_CXX='-W c,exportall'
18496 ;;
18497 *)
18498 ;;
18499 esac
18500 ;;
18501 netbsd*)
18502 ;;
18503 *qnx* | *nto*)
18504 # QNX uses GNU C++, but need to define -shared option too, otherwise
18505 # it will coredump.
18506 lt_prog_compiler_pic_CXX='-fPIC -shared'
18507 ;;
18508 osf3* | osf4* | osf5*)
18509 case $cc_basename in
18510 KCC*)
18511 lt_prog_compiler_wl_CXX='--backend -Wl,'
18512 ;;
18513 RCC*)
18514 # Rational C++ 2.4.1
18515 lt_prog_compiler_pic_CXX='-pic'
18516 ;;
18517 cxx*)
18518 # Digital/Compaq C++
18519 lt_prog_compiler_wl_CXX='-Wl,'
18520 # Make sure the PIC flag is empty. It appears that all Alpha
18521 # Linux and Compaq Tru64 Unix objects are PIC.
18522 lt_prog_compiler_pic_CXX=
18523 lt_prog_compiler_static_CXX='-non_shared'
18524 ;;
18525 *)
18526 ;;
18527 esac
18528 ;;
18529 psos*)
18530 ;;
18531 solaris*)
18532 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018533 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018534 # Sun C++ 4.2, 5.x and Centerline C++
18535 lt_prog_compiler_pic_CXX='-KPIC'
18536 lt_prog_compiler_static_CXX='-Bstatic'
18537 lt_prog_compiler_wl_CXX='-Qoption ld '
18538 ;;
18539 gcx*)
18540 # Green Hills C++ Compiler
18541 lt_prog_compiler_pic_CXX='-PIC'
18542 ;;
18543 *)
18544 ;;
18545 esac
18546 ;;
18547 sunos4*)
18548 case $cc_basename in
18549 CC*)
18550 # Sun C++ 4.x
18551 lt_prog_compiler_pic_CXX='-pic'
18552 lt_prog_compiler_static_CXX='-Bstatic'
18553 ;;
18554 lcc*)
18555 # Lucid
18556 lt_prog_compiler_pic_CXX='-pic'
18557 ;;
18558 *)
18559 ;;
18560 esac
18561 ;;
18562 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18563 case $cc_basename in
18564 CC*)
18565 lt_prog_compiler_wl_CXX='-Wl,'
18566 lt_prog_compiler_pic_CXX='-KPIC'
18567 lt_prog_compiler_static_CXX='-Bstatic'
18568 ;;
18569 esac
18570 ;;
18571 tandem*)
18572 case $cc_basename in
18573 NCC*)
18574 # NonStop-UX NCC 3.20
18575 lt_prog_compiler_pic_CXX='-KPIC'
18576 ;;
18577 *)
18578 ;;
18579 esac
18580 ;;
18581 vxworks*)
18582 ;;
18583 *)
18584 lt_prog_compiler_can_build_shared_CXX=no
18585 ;;
18586 esac
18587 fi
18588
18589case $host_os in
18590 # For platforms which do not support PIC, -DPIC is meaningless:
18591 *djgpp*)
18592 lt_prog_compiler_pic_CXX=
18593 ;;
18594 *)
18595 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18596 ;;
18597esac
cristy73bd4a52010-10-05 11:24:23 +000018598
cristyda16f162011-02-19 23:52:17 +000018599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18600$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18601if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18602 $as_echo_n "(cached) " >&6
18603else
18604 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18605fi
18606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18607$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18608lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018609
18610#
18611# Check to make sure the PIC flag actually works.
18612#
18613if test -n "$lt_prog_compiler_pic_CXX"; then
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18615$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018616if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018617 $as_echo_n "(cached) " >&6
18618else
18619 lt_cv_prog_compiler_pic_works_CXX=no
18620 ac_outfile=conftest.$ac_objext
18621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18622 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18623 # Insert the option either (1) after the last *FLAGS variable, or
18624 # (2) before a word containing "conftest.", or (3) at the end.
18625 # Note that $ac_compile itself does not contain backslashes and begins
18626 # with a dollar sign (not a hyphen), so the echo should work correctly.
18627 # The option is referenced via a variable to avoid confusing sed.
18628 lt_compile=`echo "$ac_compile" | $SED \
18629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18631 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018632 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018633 (eval "$lt_compile" 2>conftest.err)
18634 ac_status=$?
18635 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018637 if (exit $ac_status) && test -s "$ac_outfile"; then
18638 # The compiler can only warn and ignore the option if not recognized
18639 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018640 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18642 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18643 lt_cv_prog_compiler_pic_works_CXX=yes
18644 fi
18645 fi
18646 $RM conftest*
18647
18648fi
18649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18650$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18651
18652if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18653 case $lt_prog_compiler_pic_CXX in
18654 "" | " "*) ;;
18655 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18656 esac
18657else
18658 lt_prog_compiler_pic_CXX=
18659 lt_prog_compiler_can_build_shared_CXX=no
18660fi
18661
18662fi
18663
18664
18665
cristyda16f162011-02-19 23:52:17 +000018666
18667
cristy73bd4a52010-10-05 11:24:23 +000018668#
18669# Check to make sure the static flag actually works.
18670#
18671wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18673$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018674if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018675 $as_echo_n "(cached) " >&6
18676else
18677 lt_cv_prog_compiler_static_works_CXX=no
18678 save_LDFLAGS="$LDFLAGS"
18679 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18680 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18681 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18682 # The linker can only warn and ignore the option if not recognized
18683 # So say no if there are warnings
18684 if test -s conftest.err; then
18685 # Append any errors to the config.log.
18686 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018687 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018688 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18689 if diff conftest.exp conftest.er2 >/dev/null; then
18690 lt_cv_prog_compiler_static_works_CXX=yes
18691 fi
18692 else
18693 lt_cv_prog_compiler_static_works_CXX=yes
18694 fi
18695 fi
18696 $RM -r conftest*
18697 LDFLAGS="$save_LDFLAGS"
18698
18699fi
18700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18701$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18702
18703if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18704 :
18705else
18706 lt_prog_compiler_static_CXX=
18707fi
18708
18709
18710
18711
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18713$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018714if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018715 $as_echo_n "(cached) " >&6
18716else
18717 lt_cv_prog_compiler_c_o_CXX=no
18718 $RM -r conftest 2>/dev/null
18719 mkdir conftest
18720 cd conftest
18721 mkdir out
18722 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18723
18724 lt_compiler_flag="-o out/conftest2.$ac_objext"
18725 # Insert the option either (1) after the last *FLAGS variable, or
18726 # (2) before a word containing "conftest.", or (3) at the end.
18727 # Note that $ac_compile itself does not contain backslashes and begins
18728 # with a dollar sign (not a hyphen), so the echo should work correctly.
18729 lt_compile=`echo "$ac_compile" | $SED \
18730 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18732 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018733 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018734 (eval "$lt_compile" 2>out/conftest.err)
18735 ac_status=$?
18736 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018738 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18739 then
18740 # The compiler can only warn and ignore the option if not recognized
18741 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018742 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018743 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18744 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18745 lt_cv_prog_compiler_c_o_CXX=yes
18746 fi
18747 fi
18748 chmod u+w . 2>&5
18749 $RM conftest*
18750 # SGI C++ compiler will create directory out/ii_files/ for
18751 # template instantiation
18752 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18753 $RM out/* && rmdir out
18754 cd ..
18755 $RM -r conftest
18756 $RM conftest*
18757
18758fi
18759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18760$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18761
18762
18763
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18765$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018766if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018767 $as_echo_n "(cached) " >&6
18768else
18769 lt_cv_prog_compiler_c_o_CXX=no
18770 $RM -r conftest 2>/dev/null
18771 mkdir conftest
18772 cd conftest
18773 mkdir out
18774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18775
18776 lt_compiler_flag="-o out/conftest2.$ac_objext"
18777 # Insert the option either (1) after the last *FLAGS variable, or
18778 # (2) before a word containing "conftest.", or (3) at the end.
18779 # Note that $ac_compile itself does not contain backslashes and begins
18780 # with a dollar sign (not a hyphen), so the echo should work correctly.
18781 lt_compile=`echo "$ac_compile" | $SED \
18782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18784 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018785 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018786 (eval "$lt_compile" 2>out/conftest.err)
18787 ac_status=$?
18788 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018790 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18791 then
18792 # The compiler can only warn and ignore the option if not recognized
18793 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018794 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018795 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18796 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18797 lt_cv_prog_compiler_c_o_CXX=yes
18798 fi
18799 fi
18800 chmod u+w . 2>&5
18801 $RM conftest*
18802 # SGI C++ compiler will create directory out/ii_files/ for
18803 # template instantiation
18804 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18805 $RM out/* && rmdir out
18806 cd ..
18807 $RM -r conftest
18808 $RM conftest*
18809
18810fi
18811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18812$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18813
18814
18815
18816
18817hard_links="nottested"
18818if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18819 # do not overwrite the value of need_locks provided by the user
18820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18821$as_echo_n "checking if we can lock with hard links... " >&6; }
18822 hard_links=yes
18823 $RM conftest*
18824 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18825 touch conftest.a
18826 ln conftest.a conftest.b 2>&5 || hard_links=no
18827 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18829$as_echo "$hard_links" >&6; }
18830 if test "$hard_links" = no; then
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18832$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18833 need_locks=warn
18834 fi
18835else
18836 need_locks=no
18837fi
18838
18839
18840
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18842$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18843
18844 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018845 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000018846 case $host_os in
18847 aix[4-9]*)
18848 # If we're using GNU nm, then we don't want the "-C" option.
18849 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000018850 # Also, AIX nm treats weak defined symbols like other global defined
18851 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000018852 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000018853 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 +000018854 else
18855 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'
18856 fi
18857 ;;
18858 pw32*)
18859 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000018860 ;;
cristy73bd4a52010-10-05 11:24:23 +000018861 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018862 case $cc_basename in
18863 cl*) ;;
18864 *)
18865 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
18866 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18867 ;;
18868 esac
18869 ;;
cristy73bd4a52010-10-05 11:24:23 +000018870 *)
18871 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018872 ;;
cristy73bd4a52010-10-05 11:24:23 +000018873 esac
cristy73bd4a52010-10-05 11:24:23 +000018874
18875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18876$as_echo "$ld_shlibs_CXX" >&6; }
18877test "$ld_shlibs_CXX" = no && can_build_shared=no
18878
18879with_gnu_ld_CXX=$with_gnu_ld
18880
18881
18882
18883
18884
18885
18886#
18887# Do we need to explicitly link libc?
18888#
18889case "x$archive_cmds_need_lc_CXX" in
18890x|xyes)
18891 # Assume -lc should be added
18892 archive_cmds_need_lc_CXX=yes
18893
18894 if test "$enable_shared" = yes && test "$GCC" = yes; then
18895 case $archive_cmds_CXX in
18896 *'~'*)
18897 # FIXME: we may have to deal with multi-command sequences.
18898 ;;
18899 '$CC '*)
18900 # Test whether the compiler implicitly links with -lc since on some
18901 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18902 # to ld, don't add -lc before -lgcc.
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18904$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018905if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018906 $as_echo_n "(cached) " >&6
18907else
18908 $RM conftest*
18909 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018910
cristy0c60a692010-11-04 01:09:47 +000018911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000018912 (eval $ac_compile) 2>&5
18913 ac_status=$?
18914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18915 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000018916 soname=conftest
18917 lib=conftest
18918 libobjs=conftest.$ac_objext
18919 deplibs=
18920 wl=$lt_prog_compiler_wl_CXX
18921 pic_flag=$lt_prog_compiler_pic_CXX
18922 compiler_flags=-v
18923 linker_flags=-v
18924 verstring=
18925 output_objdir=.
18926 libname=conftest
18927 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18928 allow_undefined_flag_CXX=
18929 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 +000018930 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18931 ac_status=$?
18932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18933 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000018934 then
18935 lt_cv_archive_cmds_need_lc_CXX=no
18936 else
18937 lt_cv_archive_cmds_need_lc_CXX=yes
18938 fi
18939 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18940 else
18941 cat conftest.err 1>&5
18942 fi
18943 $RM conftest*
18944
18945fi
18946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18947$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18948 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000018949 ;;
18950 esac
18951 fi
18952 ;;
18953esac
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19019$as_echo_n "checking dynamic linker characteristics... " >&6; }
19020
19021library_names_spec=
19022libname_spec='lib$name'
19023soname_spec=
19024shrext_cmds=".so"
19025postinstall_cmds=
19026postuninstall_cmds=
19027finish_cmds=
19028finish_eval=
19029shlibpath_var=
19030shlibpath_overrides_runpath=unknown
19031version_type=none
19032dynamic_linker="$host_os ld.so"
19033sys_lib_dlsearch_path_spec="/lib /usr/lib"
19034need_lib_prefix=unknown
19035hardcode_into_libs=no
19036
19037# when you set need_version to no, make sure it does not cause -set_version
19038# flags to be left without arguments
19039need_version=unknown
19040
19041case $host_os in
19042aix3*)
19043 version_type=linux
19044 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19045 shlibpath_var=LIBPATH
19046
19047 # AIX 3 has no versioning support, so we append a major version to the name.
19048 soname_spec='${libname}${release}${shared_ext}$major'
19049 ;;
19050
19051aix[4-9]*)
19052 version_type=linux
19053 need_lib_prefix=no
19054 need_version=no
19055 hardcode_into_libs=yes
19056 if test "$host_cpu" = ia64; then
19057 # AIX 5 supports IA64
19058 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19059 shlibpath_var=LD_LIBRARY_PATH
19060 else
19061 # With GCC up to 2.95.x, collect2 would create an import file
19062 # for dependence libraries. The import file would start with
19063 # the line `#! .'. This would cause the generated library to
19064 # depend on `.', always an invalid library. This was fixed in
19065 # development snapshots of GCC prior to 3.0.
19066 case $host_os in
19067 aix4 | aix4.[01] | aix4.[01].*)
19068 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19069 echo ' yes '
19070 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19071 :
19072 else
19073 can_build_shared=no
19074 fi
19075 ;;
19076 esac
19077 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19078 # soname into executable. Probably we can add versioning support to
19079 # collect2, so additional links can be useful in future.
19080 if test "$aix_use_runtimelinking" = yes; then
19081 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19082 # instead of lib<name>.a to let people know that these are not
19083 # typical AIX shared libraries.
19084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19085 else
19086 # We preserve .a as extension for shared libraries through AIX4.2
19087 # and later when we are not doing run time linking.
19088 library_names_spec='${libname}${release}.a $libname.a'
19089 soname_spec='${libname}${release}${shared_ext}$major'
19090 fi
19091 shlibpath_var=LIBPATH
19092 fi
19093 ;;
19094
19095amigaos*)
19096 case $host_cpu in
19097 powerpc)
19098 # Since July 2007 AmigaOS4 officially supports .so libraries.
19099 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19101 ;;
19102 m68k)
19103 library_names_spec='$libname.ixlibrary $libname.a'
19104 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019105 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 +000019106 ;;
19107 esac
19108 ;;
19109
19110beos*)
19111 library_names_spec='${libname}${shared_ext}'
19112 dynamic_linker="$host_os ld.so"
19113 shlibpath_var=LIBRARY_PATH
19114 ;;
19115
19116bsdi[45]*)
19117 version_type=linux
19118 need_version=no
19119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19120 soname_spec='${libname}${release}${shared_ext}$major'
19121 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19122 shlibpath_var=LD_LIBRARY_PATH
19123 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19124 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19125 # the default ld.so.conf also contains /usr/contrib/lib and
19126 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19127 # libtool to hard-code these into programs
19128 ;;
19129
19130cygwin* | mingw* | pw32* | cegcc*)
19131 version_type=windows
19132 shrext_cmds=".dll"
19133 need_version=no
19134 need_lib_prefix=no
19135
cristyda16f162011-02-19 23:52:17 +000019136 case $GCC,$cc_basename in
19137 yes,*)
19138 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019139 library_names_spec='$libname.dll.a'
19140 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19141 postinstall_cmds='base_file=`basename \${file}`~
19142 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19143 dldir=$destdir/`dirname \$dlpath`~
19144 test -d \$dldir || mkdir -p \$dldir~
19145 $install_prog $dir/$dlname \$dldir/$dlname~
19146 chmod a+x \$dldir/$dlname~
19147 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19148 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19149 fi'
19150 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19151 dlpath=$dir/\$dldll~
19152 $RM \$dlpath'
19153 shlibpath_overrides_runpath=yes
19154
19155 case $host_os in
19156 cygwin*)
19157 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19158 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019159
cristy73bd4a52010-10-05 11:24:23 +000019160 ;;
19161 mingw* | cegcc*)
19162 # MinGW DLLs use traditional 'lib' prefix
19163 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019164 ;;
19165 pw32*)
19166 # pw32 DLLs use 'pw' prefix rather than 'lib'
19167 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19168 ;;
19169 esac
cristyda16f162011-02-19 23:52:17 +000019170 dynamic_linker='Win32 ld.exe'
19171 ;;
19172
19173 *,cl*)
19174 # Native MSVC
19175 libname_spec='$name'
19176 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19177 library_names_spec='${libname}.dll.lib'
19178
19179 case $build_os in
19180 mingw*)
19181 sys_lib_search_path_spec=
19182 lt_save_ifs=$IFS
19183 IFS=';'
19184 for lt_path in $LIB
19185 do
19186 IFS=$lt_save_ifs
19187 # Let DOS variable expansion print the short 8.3 style file name.
19188 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19189 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19190 done
19191 IFS=$lt_save_ifs
19192 # Convert to MSYS style.
19193 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19194 ;;
19195 cygwin*)
19196 # Convert to unix form, then to dos form, then back to unix form
19197 # but this time dos style (no spaces!) so that the unix form looks
19198 # like /cygdrive/c/PROGRA~1:/cygdr...
19199 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19200 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19201 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19202 ;;
19203 *)
19204 sys_lib_search_path_spec="$LIB"
19205 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19206 # It is most probably a Windows format PATH.
19207 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19208 else
19209 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19210 fi
19211 # FIXME: find the short name or the path components, as spaces are
19212 # common. (e.g. "Program Files" -> "PROGRA~1")
19213 ;;
19214 esac
19215
19216 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19217 postinstall_cmds='base_file=`basename \${file}`~
19218 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19219 dldir=$destdir/`dirname \$dlpath`~
19220 test -d \$dldir || mkdir -p \$dldir~
19221 $install_prog $dir/$dlname \$dldir/$dlname'
19222 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19223 dlpath=$dir/\$dldll~
19224 $RM \$dlpath'
19225 shlibpath_overrides_runpath=yes
19226 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019227 ;;
19228
19229 *)
cristyda16f162011-02-19 23:52:17 +000019230 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019231 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019232 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019233 ;;
19234 esac
cristy73bd4a52010-10-05 11:24:23 +000019235 # FIXME: first we should search . and the directory the executable is in
19236 shlibpath_var=PATH
19237 ;;
19238
19239darwin* | rhapsody*)
19240 dynamic_linker="$host_os dyld"
19241 version_type=darwin
19242 need_lib_prefix=no
19243 need_version=no
19244 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19245 soname_spec='${libname}${release}${major}$shared_ext'
19246 shlibpath_overrides_runpath=yes
19247 shlibpath_var=DYLD_LIBRARY_PATH
19248 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19249
19250 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19251 ;;
19252
19253dgux*)
19254 version_type=linux
19255 need_lib_prefix=no
19256 need_version=no
19257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19258 soname_spec='${libname}${release}${shared_ext}$major'
19259 shlibpath_var=LD_LIBRARY_PATH
19260 ;;
19261
19262freebsd1*)
19263 dynamic_linker=no
19264 ;;
19265
19266freebsd* | dragonfly*)
19267 # DragonFly does not have aout. When/if they implement a new
19268 # versioning mechanism, adjust this.
19269 if test -x /usr/bin/objformat; then
19270 objformat=`/usr/bin/objformat`
19271 else
19272 case $host_os in
19273 freebsd[123]*) objformat=aout ;;
19274 *) objformat=elf ;;
19275 esac
19276 fi
19277 version_type=freebsd-$objformat
19278 case $version_type in
19279 freebsd-elf*)
19280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19281 need_version=no
19282 need_lib_prefix=no
19283 ;;
19284 freebsd-*)
19285 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19286 need_version=yes
19287 ;;
19288 esac
19289 shlibpath_var=LD_LIBRARY_PATH
19290 case $host_os in
19291 freebsd2*)
19292 shlibpath_overrides_runpath=yes
19293 ;;
19294 freebsd3.[01]* | freebsdelf3.[01]*)
19295 shlibpath_overrides_runpath=yes
19296 hardcode_into_libs=yes
19297 ;;
19298 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19299 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19300 shlibpath_overrides_runpath=no
19301 hardcode_into_libs=yes
19302 ;;
19303 *) # from 4.6 on, and DragonFly
19304 shlibpath_overrides_runpath=yes
19305 hardcode_into_libs=yes
19306 ;;
19307 esac
19308 ;;
19309
19310gnu*)
19311 version_type=linux
19312 need_lib_prefix=no
19313 need_version=no
19314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19315 soname_spec='${libname}${release}${shared_ext}$major'
19316 shlibpath_var=LD_LIBRARY_PATH
19317 hardcode_into_libs=yes
19318 ;;
19319
cristy0c60a692010-11-04 01:09:47 +000019320haiku*)
19321 version_type=linux
19322 need_lib_prefix=no
19323 need_version=no
19324 dynamic_linker="$host_os runtime_loader"
19325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19326 soname_spec='${libname}${release}${shared_ext}$major'
19327 shlibpath_var=LIBRARY_PATH
19328 shlibpath_overrides_runpath=yes
19329 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19330 hardcode_into_libs=yes
19331 ;;
19332
cristy73bd4a52010-10-05 11:24:23 +000019333hpux9* | hpux10* | hpux11*)
19334 # Give a soname corresponding to the major version so that dld.sl refuses to
19335 # link against other versions.
19336 version_type=sunos
19337 need_lib_prefix=no
19338 need_version=no
19339 case $host_cpu in
19340 ia64*)
19341 shrext_cmds='.so'
19342 hardcode_into_libs=yes
19343 dynamic_linker="$host_os dld.so"
19344 shlibpath_var=LD_LIBRARY_PATH
19345 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19347 soname_spec='${libname}${release}${shared_ext}$major'
19348 if test "X$HPUX_IA64_MODE" = X32; then
19349 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19350 else
19351 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19352 fi
19353 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19354 ;;
19355 hppa*64*)
19356 shrext_cmds='.sl'
19357 hardcode_into_libs=yes
19358 dynamic_linker="$host_os dld.sl"
19359 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19360 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19362 soname_spec='${libname}${release}${shared_ext}$major'
19363 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19364 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19365 ;;
19366 *)
19367 shrext_cmds='.sl'
19368 dynamic_linker="$host_os dld.sl"
19369 shlibpath_var=SHLIB_PATH
19370 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19372 soname_spec='${libname}${release}${shared_ext}$major'
19373 ;;
19374 esac
cristy0c60a692010-11-04 01:09:47 +000019375 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019376 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019377 # or fails outright, so override atomically:
19378 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019379 ;;
19380
19381interix[3-9]*)
19382 version_type=linux
19383 need_lib_prefix=no
19384 need_version=no
19385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19386 soname_spec='${libname}${release}${shared_ext}$major'
19387 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19388 shlibpath_var=LD_LIBRARY_PATH
19389 shlibpath_overrides_runpath=no
19390 hardcode_into_libs=yes
19391 ;;
19392
19393irix5* | irix6* | nonstopux*)
19394 case $host_os in
19395 nonstopux*) version_type=nonstopux ;;
19396 *)
19397 if test "$lt_cv_prog_gnu_ld" = yes; then
19398 version_type=linux
19399 else
19400 version_type=irix
19401 fi ;;
19402 esac
19403 need_lib_prefix=no
19404 need_version=no
19405 soname_spec='${libname}${release}${shared_ext}$major'
19406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19407 case $host_os in
19408 irix5* | nonstopux*)
19409 libsuff= shlibsuff=
19410 ;;
19411 *)
19412 case $LD in # libtool.m4 will add one of these switches to LD
19413 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19414 libsuff= shlibsuff= libmagic=32-bit;;
19415 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19416 libsuff=32 shlibsuff=N32 libmagic=N32;;
19417 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19418 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19419 *) libsuff= shlibsuff= libmagic=never-match;;
19420 esac
19421 ;;
19422 esac
19423 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19424 shlibpath_overrides_runpath=no
19425 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19426 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19427 hardcode_into_libs=yes
19428 ;;
19429
19430# No shared lib support for Linux oldld, aout, or coff.
19431linux*oldld* | linux*aout* | linux*coff*)
19432 dynamic_linker=no
19433 ;;
19434
19435# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000019436linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019437 version_type=linux
19438 need_lib_prefix=no
19439 need_version=no
19440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19441 soname_spec='${libname}${release}${shared_ext}$major'
19442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19443 shlibpath_var=LD_LIBRARY_PATH
19444 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019445
cristy73bd4a52010-10-05 11:24:23 +000019446 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019447 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019448 $as_echo_n "(cached) " >&6
19449else
19450 lt_cv_shlibpath_overrides_runpath=no
19451 save_LDFLAGS=$LDFLAGS
19452 save_libdir=$libdir
19453 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19454 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019456/* end confdefs.h. */
19457
19458int
19459main ()
19460{
19461
19462 ;
19463 return 0;
19464}
19465_ACEOF
19466if ac_fn_cxx_try_link "$LINENO"; then :
19467 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019468 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019469fi
19470fi
19471rm -f core conftest.err conftest.$ac_objext \
19472 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019473 LDFLAGS=$save_LDFLAGS
19474 libdir=$save_libdir
19475
19476fi
19477
19478 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019479
19480 # This implies no fast_install, which is unacceptable.
19481 # Some rework will be needed to allow for fast_install
19482 # before this can be enabled.
19483 hardcode_into_libs=yes
19484
19485 # Add ABI-specific directories to the system library path.
19486 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19487
19488 # Append ld.so.conf contents to the search path
19489 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019490 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 +000019491 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019492
cristy73bd4a52010-10-05 11:24:23 +000019493 fi
19494
19495 # We used to test for /lib/ld.so.1 and disable shared libraries on
19496 # powerpc, because MkLinux only supported shared libraries with the
19497 # GNU dynamic linker. Since this was broken with cross compilers,
19498 # most powerpc-linux boxes support dynamic linking these days and
19499 # people can always --disable-shared, the test was removed, and we
19500 # assume the GNU/Linux dynamic linker is in use.
19501 dynamic_linker='GNU/Linux ld.so'
19502 ;;
19503
19504netbsd*)
19505 version_type=sunos
19506 need_lib_prefix=no
19507 need_version=no
19508 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19510 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19511 dynamic_linker='NetBSD (a.out) ld.so'
19512 else
19513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19514 soname_spec='${libname}${release}${shared_ext}$major'
19515 dynamic_linker='NetBSD ld.elf_so'
19516 fi
19517 shlibpath_var=LD_LIBRARY_PATH
19518 shlibpath_overrides_runpath=yes
19519 hardcode_into_libs=yes
19520 ;;
19521
19522newsos6)
19523 version_type=linux
19524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19525 shlibpath_var=LD_LIBRARY_PATH
19526 shlibpath_overrides_runpath=yes
19527 ;;
19528
19529*nto* | *qnx*)
19530 version_type=qnx
19531 need_lib_prefix=no
19532 need_version=no
19533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19534 soname_spec='${libname}${release}${shared_ext}$major'
19535 shlibpath_var=LD_LIBRARY_PATH
19536 shlibpath_overrides_runpath=no
19537 hardcode_into_libs=yes
19538 dynamic_linker='ldqnx.so'
19539 ;;
19540
19541openbsd*)
19542 version_type=sunos
19543 sys_lib_dlsearch_path_spec="/usr/lib"
19544 need_lib_prefix=no
19545 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19546 case $host_os in
19547 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19548 *) need_version=no ;;
19549 esac
19550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19551 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19552 shlibpath_var=LD_LIBRARY_PATH
19553 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19554 case $host_os in
19555 openbsd2.[89] | openbsd2.[89].*)
19556 shlibpath_overrides_runpath=no
19557 ;;
19558 *)
19559 shlibpath_overrides_runpath=yes
19560 ;;
19561 esac
19562 else
19563 shlibpath_overrides_runpath=yes
19564 fi
19565 ;;
19566
19567os2*)
19568 libname_spec='$name'
19569 shrext_cmds=".dll"
19570 need_lib_prefix=no
19571 library_names_spec='$libname${shared_ext} $libname.a'
19572 dynamic_linker='OS/2 ld.exe'
19573 shlibpath_var=LIBPATH
19574 ;;
19575
19576osf3* | osf4* | osf5*)
19577 version_type=osf
19578 need_lib_prefix=no
19579 need_version=no
19580 soname_spec='${libname}${release}${shared_ext}$major'
19581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19582 shlibpath_var=LD_LIBRARY_PATH
19583 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19584 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19585 ;;
19586
19587rdos*)
19588 dynamic_linker=no
19589 ;;
19590
19591solaris*)
19592 version_type=linux
19593 need_lib_prefix=no
19594 need_version=no
19595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19596 soname_spec='${libname}${release}${shared_ext}$major'
19597 shlibpath_var=LD_LIBRARY_PATH
19598 shlibpath_overrides_runpath=yes
19599 hardcode_into_libs=yes
19600 # ldd complains unless libraries are executable
19601 postinstall_cmds='chmod +x $lib'
19602 ;;
19603
19604sunos4*)
19605 version_type=sunos
19606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19607 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19608 shlibpath_var=LD_LIBRARY_PATH
19609 shlibpath_overrides_runpath=yes
19610 if test "$with_gnu_ld" = yes; then
19611 need_lib_prefix=no
19612 fi
19613 need_version=yes
19614 ;;
19615
19616sysv4 | sysv4.3*)
19617 version_type=linux
19618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19619 soname_spec='${libname}${release}${shared_ext}$major'
19620 shlibpath_var=LD_LIBRARY_PATH
19621 case $host_vendor in
19622 sni)
19623 shlibpath_overrides_runpath=no
19624 need_lib_prefix=no
19625 runpath_var=LD_RUN_PATH
19626 ;;
19627 siemens)
19628 need_lib_prefix=no
19629 ;;
19630 motorola)
19631 need_lib_prefix=no
19632 need_version=no
19633 shlibpath_overrides_runpath=no
19634 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19635 ;;
19636 esac
19637 ;;
19638
19639sysv4*MP*)
19640 if test -d /usr/nec ;then
19641 version_type=linux
19642 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19643 soname_spec='$libname${shared_ext}.$major'
19644 shlibpath_var=LD_LIBRARY_PATH
19645 fi
19646 ;;
19647
19648sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19649 version_type=freebsd-elf
19650 need_lib_prefix=no
19651 need_version=no
19652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19653 soname_spec='${libname}${release}${shared_ext}$major'
19654 shlibpath_var=LD_LIBRARY_PATH
19655 shlibpath_overrides_runpath=yes
19656 hardcode_into_libs=yes
19657 if test "$with_gnu_ld" = yes; then
19658 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19659 else
19660 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19661 case $host_os in
19662 sco3.2v5*)
19663 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19664 ;;
19665 esac
19666 fi
19667 sys_lib_dlsearch_path_spec='/usr/lib'
19668 ;;
19669
19670tpf*)
19671 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19672 version_type=linux
19673 need_lib_prefix=no
19674 need_version=no
19675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19676 shlibpath_var=LD_LIBRARY_PATH
19677 shlibpath_overrides_runpath=no
19678 hardcode_into_libs=yes
19679 ;;
19680
19681uts4*)
19682 version_type=linux
19683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19684 soname_spec='${libname}${release}${shared_ext}$major'
19685 shlibpath_var=LD_LIBRARY_PATH
19686 ;;
19687
19688*)
19689 dynamic_linker=no
19690 ;;
19691esac
19692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19693$as_echo "$dynamic_linker" >&6; }
19694test "$dynamic_linker" = no && can_build_shared=no
19695
19696variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19697if test "$GCC" = yes; then
19698 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19699fi
19700
19701if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19702 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19703fi
19704if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19705 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19706fi
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
cristy0c60a692010-11-04 01:09:47 +000019743
19744
cristy73bd4a52010-10-05 11:24:23 +000019745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19746$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19747hardcode_action_CXX=
19748if test -n "$hardcode_libdir_flag_spec_CXX" ||
19749 test -n "$runpath_var_CXX" ||
19750 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19751
19752 # We can hardcode non-existent directories.
19753 if test "$hardcode_direct_CXX" != no &&
19754 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19755 # have to relink, otherwise we might link with an installed library
19756 # when we should be linking with a yet-to-be-installed one
19757 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19758 test "$hardcode_minus_L_CXX" != no; then
19759 # Linking always hardcodes the temporary library directory.
19760 hardcode_action_CXX=relink
19761 else
19762 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19763 hardcode_action_CXX=immediate
19764 fi
19765else
19766 # We cannot hardcode anything, or else we can only hardcode existing
19767 # directories.
19768 hardcode_action_CXX=unsupported
19769fi
19770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19771$as_echo "$hardcode_action_CXX" >&6; }
19772
19773if test "$hardcode_action_CXX" = relink ||
19774 test "$inherit_rpath_CXX" = yes; then
19775 # Fast installation is not supported
19776 enable_fast_install=no
19777elif test "$shlibpath_overrides_runpath" = yes ||
19778 test "$enable_shared" = no; then
19779 # Fast installation is not necessary
19780 enable_fast_install=needless
19781fi
19782
19783
19784
19785
19786
19787
19788
19789 fi # test -n "$compiler"
19790
19791 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000019792 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019793 LDCXX=$LD
19794 LD=$lt_save_LD
19795 GCC=$lt_save_GCC
19796 with_gnu_ld=$lt_save_with_gnu_ld
19797 lt_cv_path_LDCXX=$lt_cv_path_LD
19798 lt_cv_path_LD=$lt_save_path_LD
19799 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19800 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19801fi # test "$_lt_caught_CXX_error" != yes
19802
19803ac_ext=c
19804ac_cpp='$CPP $CPPFLAGS'
19805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19807ac_compiler_gnu=$ac_cv_c_compiler_gnu
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821 ac_config_commands="$ac_config_commands libtool"
19822
19823
19824
19825
19826# Only expand once:
19827
19828
19829
cristy3ed852e2009-09-05 21:47:34 +000019830
19831
19832# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000019833
19834
19835
19836
19837
19838
19839
cristy73bd4a52010-10-05 11:24:23 +000019840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19841$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019842if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019843 $as_echo_n "(cached) " >&6
19844else
19845
19846module=yes
19847eval libltdl_cv_shlibext=$shrext_cmds
19848
19849fi
19850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19851$as_echo "$libltdl_cv_shlibext" >&6; }
19852if test -n "$libltdl_cv_shlibext"; then
19853
19854cat >>confdefs.h <<_ACEOF
19855#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19856_ACEOF
19857
19858fi
19859
19860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19861$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019862if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019863 $as_echo_n "(cached) " >&6
19864else
19865 lt_cv_module_path_var="$shlibpath_var"
19866fi
19867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19868$as_echo "$lt_cv_module_path_var" >&6; }
19869if test -n "$lt_cv_module_path_var"; then
19870
19871cat >>confdefs.h <<_ACEOF
19872#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19873_ACEOF
19874
19875fi
19876
19877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19878$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019879if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019880 $as_echo_n "(cached) " >&6
19881else
19882 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19883fi
19884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19885$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19886if test -n "$lt_cv_sys_dlsearch_path"; then
19887 sys_dlsearch_path=
19888 for dir in $lt_cv_sys_dlsearch_path; do
19889 if test -z "$sys_dlsearch_path"; then
19890 sys_dlsearch_path="$dir"
19891 else
19892 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19893 fi
19894 done
19895
19896cat >>confdefs.h <<_ACEOF
19897#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19898_ACEOF
19899
19900fi
19901
19902
19903LT_DLLOADERS=
19904
19905
19906ac_ext=c
19907ac_cpp='$CPP $CPPFLAGS'
19908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19910ac_compiler_gnu=$ac_cv_c_compiler_gnu
19911
19912
19913LIBADD_DLOPEN=
19914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19915$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019916if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019917 $as_echo_n "(cached) " >&6
19918else
19919 ac_func_search_save_LIBS=$LIBS
19920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19921/* end confdefs.h. */
19922
19923/* Override any GCC internal prototype to avoid an error.
19924 Use char because int might match the return type of a GCC
19925 builtin and then its argument prototype would still apply. */
19926#ifdef __cplusplus
19927extern "C"
19928#endif
19929char dlopen ();
19930int
19931main ()
19932{
19933return dlopen ();
19934 ;
19935 return 0;
19936}
19937_ACEOF
19938for ac_lib in '' dl; do
19939 if test -z "$ac_lib"; then
19940 ac_res="none required"
19941 else
19942 ac_res=-l$ac_lib
19943 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19944 fi
19945 if ac_fn_c_try_link "$LINENO"; then :
19946 ac_cv_search_dlopen=$ac_res
19947fi
19948rm -f core conftest.err conftest.$ac_objext \
19949 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000019950 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019951 break
19952fi
19953done
cristyda16f162011-02-19 23:52:17 +000019954if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019955
19956else
19957 ac_cv_search_dlopen=no
19958fi
19959rm conftest.$ac_ext
19960LIBS=$ac_func_search_save_LIBS
19961fi
19962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19963$as_echo "$ac_cv_search_dlopen" >&6; }
19964ac_res=$ac_cv_search_dlopen
19965if test "$ac_res" != no; then :
19966 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19967
19968$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19969
19970 if test "$ac_cv_search_dlopen" != "none required" ; then
19971 LIBADD_DLOPEN="-ldl"
19972 fi
19973 libltdl_cv_lib_dl_dlopen="yes"
19974 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19975else
19976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19977/* end confdefs.h. */
19978#if HAVE_DLFCN_H
19979# include <dlfcn.h>
19980#endif
19981
19982int
19983main ()
19984{
19985dlopen(0, 0);
19986 ;
19987 return 0;
19988}
19989_ACEOF
19990if ac_fn_c_try_link "$LINENO"; then :
19991
19992$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19993
19994 libltdl_cv_func_dlopen="yes"
19995 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19996else
19997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19998$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019999if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020000 $as_echo_n "(cached) " >&6
20001else
20002 ac_check_lib_save_LIBS=$LIBS
20003LIBS="-lsvld $LIBS"
20004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20005/* end confdefs.h. */
20006
20007/* Override any GCC internal prototype to avoid an error.
20008 Use char because int might match the return type of a GCC
20009 builtin and then its argument prototype would still apply. */
20010#ifdef __cplusplus
20011extern "C"
20012#endif
20013char dlopen ();
20014int
20015main ()
20016{
20017return dlopen ();
20018 ;
20019 return 0;
20020}
20021_ACEOF
20022if ac_fn_c_try_link "$LINENO"; then :
20023 ac_cv_lib_svld_dlopen=yes
20024else
20025 ac_cv_lib_svld_dlopen=no
20026fi
20027rm -f core conftest.err conftest.$ac_objext \
20028 conftest$ac_exeext conftest.$ac_ext
20029LIBS=$ac_check_lib_save_LIBS
20030fi
20031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20032$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020033if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020034
20035$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20036
20037 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20038 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20039fi
20040
20041fi
20042rm -f core conftest.err conftest.$ac_objext \
20043 conftest$ac_exeext conftest.$ac_ext
20044fi
20045
20046if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20047then
20048 lt_save_LIBS="$LIBS"
20049 LIBS="$LIBS $LIBADD_DLOPEN"
20050 for ac_func in dlerror
20051do :
20052 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020053if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020054 cat >>confdefs.h <<_ACEOF
20055#define HAVE_DLERROR 1
20056_ACEOF
20057
20058fi
20059done
20060
20061 LIBS="$lt_save_LIBS"
20062fi
20063
20064
20065LIBADD_SHL_LOAD=
20066ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020067if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020068
20069$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20070
20071 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20072else
20073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20074$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020075if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020076 $as_echo_n "(cached) " >&6
20077else
20078 ac_check_lib_save_LIBS=$LIBS
20079LIBS="-ldld $LIBS"
20080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20081/* end confdefs.h. */
20082
20083/* Override any GCC internal prototype to avoid an error.
20084 Use char because int might match the return type of a GCC
20085 builtin and then its argument prototype would still apply. */
20086#ifdef __cplusplus
20087extern "C"
20088#endif
20089char shl_load ();
20090int
20091main ()
20092{
20093return shl_load ();
20094 ;
20095 return 0;
20096}
20097_ACEOF
20098if ac_fn_c_try_link "$LINENO"; then :
20099 ac_cv_lib_dld_shl_load=yes
20100else
20101 ac_cv_lib_dld_shl_load=no
20102fi
20103rm -f core conftest.err conftest.$ac_objext \
20104 conftest$ac_exeext conftest.$ac_ext
20105LIBS=$ac_check_lib_save_LIBS
20106fi
20107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20108$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020109if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020110
20111$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20112
20113 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20114 LIBADD_SHL_LOAD="-ldld"
20115fi
20116
20117fi
20118
20119
20120
20121case $host_os in
20122darwin[1567].*)
20123# We only want this for pre-Mac OS X 10.4.
20124 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020125if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020126
20127$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20128
20129 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20130fi
20131
20132 ;;
20133beos*)
20134 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20135 ;;
20136cygwin* | mingw* | os2* | pw32*)
20137 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20138"
cristyda16f162011-02-19 23:52:17 +000020139if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020140 ac_have_decl=1
20141else
20142 ac_have_decl=0
20143fi
20144
20145cat >>confdefs.h <<_ACEOF
20146#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20147_ACEOF
20148
20149 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20150 ;;
20151esac
20152
20153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20154$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020155if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020156 $as_echo_n "(cached) " >&6
20157else
20158 ac_check_lib_save_LIBS=$LIBS
20159LIBS="-ldld $LIBS"
20160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20161/* end confdefs.h. */
20162
20163/* Override any GCC internal prototype to avoid an error.
20164 Use char because int might match the return type of a GCC
20165 builtin and then its argument prototype would still apply. */
20166#ifdef __cplusplus
20167extern "C"
20168#endif
20169char dld_link ();
20170int
20171main ()
20172{
20173return dld_link ();
20174 ;
20175 return 0;
20176}
20177_ACEOF
20178if ac_fn_c_try_link "$LINENO"; then :
20179 ac_cv_lib_dld_dld_link=yes
20180else
20181 ac_cv_lib_dld_dld_link=no
20182fi
20183rm -f core conftest.err conftest.$ac_objext \
20184 conftest$ac_exeext conftest.$ac_ext
20185LIBS=$ac_check_lib_save_LIBS
20186fi
20187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20188$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020189if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020190
20191$as_echo "#define HAVE_DLD 1" >>confdefs.h
20192
20193 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20194fi
20195
20196
20197
20198
20199LT_DLPREOPEN=
20200if test -n "$LT_DLLOADERS"
20201then
20202 for lt_loader in $LT_DLLOADERS; do
20203 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20204 done
20205
20206$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20207
20208fi
20209
20210
20211LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20212
20213
20214ac_ext=c
20215ac_cpp='$CPP $CPPFLAGS'
20216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20218ac_compiler_gnu=$ac_cv_c_compiler_gnu
20219
20220
20221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20222$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020223if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020224 $as_echo_n "(cached) " >&6
20225else
20226 lt_cv_sys_symbol_underscore=no
20227 cat > conftest.$ac_ext <<_LT_EOF
20228void nm_test_func(){}
20229int main(){nm_test_func;return 0;}
20230_LT_EOF
20231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20232 (eval $ac_compile) 2>&5
20233 ac_status=$?
20234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20235 test $ac_status = 0; }; then
20236 # Now try to grab the symbols.
20237 ac_nlist=conftest.nm
20238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20239 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20240 ac_status=$?
20241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20242 test $ac_status = 0; } && test -s "$ac_nlist"; then
20243 # See whether the symbols have a leading underscore.
20244 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20245 lt_cv_sys_symbol_underscore=yes
20246 else
20247 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20248 :
20249 else
20250 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20251 fi
20252 fi
20253 else
20254 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20255 fi
20256 else
20257 echo "configure: failed program was:" >&5
20258 cat conftest.c >&5
20259 fi
20260 rm -rf conftest*
20261
20262fi
20263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20264$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20265 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20266
20267
20268if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20269 if test x"$libltdl_cv_func_dlopen" = xyes ||
20270 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20272$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020273if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020274 $as_echo_n "(cached) " >&6
20275else
20276 libltdl_cv_need_uscore=unknown
20277 save_LIBS="$LIBS"
20278 LIBS="$LIBS $LIBADD_DLOPEN"
20279 if test "$cross_compiling" = yes; then :
20280 libltdl_cv_need_uscore=cross
20281else
20282 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20283 lt_status=$lt_dlunknown
20284 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020285#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020286#include "confdefs.h"
20287
20288#if HAVE_DLFCN_H
20289#include <dlfcn.h>
20290#endif
20291
20292#include <stdio.h>
20293
20294#ifdef RTLD_GLOBAL
20295# define LT_DLGLOBAL RTLD_GLOBAL
20296#else
20297# ifdef DL_GLOBAL
20298# define LT_DLGLOBAL DL_GLOBAL
20299# else
20300# define LT_DLGLOBAL 0
20301# endif
20302#endif
20303
20304/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20305 find out it does not work in some platform. */
20306#ifndef LT_DLLAZY_OR_NOW
20307# ifdef RTLD_LAZY
20308# define LT_DLLAZY_OR_NOW RTLD_LAZY
20309# else
20310# ifdef DL_LAZY
20311# define LT_DLLAZY_OR_NOW DL_LAZY
20312# else
20313# ifdef RTLD_NOW
20314# define LT_DLLAZY_OR_NOW RTLD_NOW
20315# else
20316# ifdef DL_NOW
20317# define LT_DLLAZY_OR_NOW DL_NOW
20318# else
20319# define LT_DLLAZY_OR_NOW 0
20320# endif
20321# endif
20322# endif
20323# endif
20324#endif
20325
cristy0c60a692010-11-04 01:09:47 +000020326/* When -fvisbility=hidden is used, assume the code has been annotated
20327 correspondingly for the symbols needed. */
20328#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020329int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020330#endif
20331
cristyda16f162011-02-19 23:52:17 +000020332int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020333int main ()
20334{
20335 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20336 int status = $lt_dlunknown;
20337
20338 if (self)
20339 {
20340 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020341 else
20342 {
20343 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20344 else puts (dlerror ());
20345 }
cristy73bd4a52010-10-05 11:24:23 +000020346 /* dlclose (self); */
20347 }
20348 else
20349 puts (dlerror ());
20350
20351 return status;
20352}
20353_LT_EOF
20354 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20355 (eval $ac_link) 2>&5
20356 ac_status=$?
20357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20358 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20359 (./conftest; exit; ) >&5 2>/dev/null
20360 lt_status=$?
20361 case x$lt_status in
20362 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20363 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20364 x$lt_dlunknown|x*) ;;
20365 esac
20366 else :
20367 # compilation failed
20368
20369 fi
20370fi
20371rm -fr conftest*
20372
20373 LIBS="$save_LIBS"
20374
20375fi
20376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20377$as_echo "$libltdl_cv_need_uscore" >&6; }
20378 fi
20379fi
20380
20381if test x"$libltdl_cv_need_uscore" = xyes; then
20382
20383$as_echo "#define NEED_USCORE 1" >>confdefs.h
20384
20385fi
20386
20387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20388$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020389if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020390 $as_echo_n "(cached) " >&6
20391else
20392 # PORTME does your system automatically load deplibs for dlopen?
20393 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20394 # For now, we just catch OSes we know something about -- in the
20395 # future, we'll try test this programmatically.
20396 lt_cv_sys_dlopen_deplibs=unknown
20397 case $host_os in
20398 aix3*|aix4.1.*|aix4.2.*)
20399 # Unknown whether this is true for these versions of AIX, but
20400 # we want this `case' here to explicitly catch those versions.
20401 lt_cv_sys_dlopen_deplibs=unknown
20402 ;;
20403 aix[4-9]*)
20404 lt_cv_sys_dlopen_deplibs=yes
20405 ;;
20406 amigaos*)
20407 case $host_cpu in
20408 powerpc)
20409 lt_cv_sys_dlopen_deplibs=no
20410 ;;
20411 esac
20412 ;;
20413 darwin*)
20414 # Assuming the user has installed a libdl from somewhere, this is true
20415 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20416 lt_cv_sys_dlopen_deplibs=yes
20417 ;;
20418 freebsd* | dragonfly*)
20419 lt_cv_sys_dlopen_deplibs=yes
20420 ;;
cristy0c60a692010-11-04 01:09:47 +000020421 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020422 # GNU and its variants, using gnu ld.so (Glibc)
20423 lt_cv_sys_dlopen_deplibs=yes
20424 ;;
20425 hpux10*|hpux11*)
20426 lt_cv_sys_dlopen_deplibs=yes
20427 ;;
20428 interix*)
20429 lt_cv_sys_dlopen_deplibs=yes
20430 ;;
20431 irix[12345]*|irix6.[01]*)
20432 # Catch all versions of IRIX before 6.2, and indicate that we don't
20433 # know how it worked for any of those versions.
20434 lt_cv_sys_dlopen_deplibs=unknown
20435 ;;
20436 irix*)
20437 # The case above catches anything before 6.2, and it's known that
20438 # at 6.2 and later dlopen does load deplibs.
20439 lt_cv_sys_dlopen_deplibs=yes
20440 ;;
20441 netbsd*)
20442 lt_cv_sys_dlopen_deplibs=yes
20443 ;;
20444 openbsd*)
20445 lt_cv_sys_dlopen_deplibs=yes
20446 ;;
20447 osf[1234]*)
20448 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20449 # it did *not* use an RPATH in a shared library to find objects the
20450 # library depends on, so we explicitly say `no'.
20451 lt_cv_sys_dlopen_deplibs=no
20452 ;;
20453 osf5.0|osf5.0a|osf5.1)
20454 # dlopen *does* load deplibs and with the right loader patch applied
20455 # it even uses RPATH in a shared library to search for shared objects
20456 # that the library depends on, but there's no easy way to know if that
20457 # patch is installed. Since this is the case, all we can really
20458 # say is unknown -- it depends on the patch being installed. If
20459 # it is, this changes to `yes'. Without it, it would be `no'.
20460 lt_cv_sys_dlopen_deplibs=unknown
20461 ;;
20462 osf*)
20463 # the two cases above should catch all versions of osf <= 5.1. Read
20464 # the comments above for what we know about them.
20465 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20466 # is used to find them so we can finally say `yes'.
20467 lt_cv_sys_dlopen_deplibs=yes
20468 ;;
20469 qnx*)
20470 lt_cv_sys_dlopen_deplibs=yes
20471 ;;
20472 solaris*)
20473 lt_cv_sys_dlopen_deplibs=yes
20474 ;;
20475 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20476 libltdl_cv_sys_dlopen_deplibs=yes
20477 ;;
20478 esac
20479
20480fi
20481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20482$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20483if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20484
20485$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20486
20487fi
20488
20489:
20490
20491for ac_header in argz.h
20492do :
20493 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20494"
cristyda16f162011-02-19 23:52:17 +000020495if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020496 cat >>confdefs.h <<_ACEOF
20497#define HAVE_ARGZ_H 1
20498_ACEOF
20499
20500fi
20501
20502done
20503
20504
20505ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20506# include <argz.h>
20507#endif
20508"
cristyda16f162011-02-19 23:52:17 +000020509if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020510
20511cat >>confdefs.h <<_ACEOF
20512#define HAVE_ERROR_T 1
20513_ACEOF
20514
20515
20516else
20517
20518$as_echo "#define error_t int" >>confdefs.h
20519
20520
20521$as_echo "#define __error_t_defined 1" >>confdefs.h
20522
20523fi
20524
20525
20526ARGZ_H=
20527for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20528 argz_next argz_stringify
20529do :
20530 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20531ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020532if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020533 cat >>confdefs.h <<_ACEOF
20534#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20535_ACEOF
20536
20537else
20538 ARGZ_H=argz.h;
20539
20540 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20541
20542fi
20543done
20544
20545
20546if test -z "$ARGZ_H"; then :
20547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20548$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020549if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020550 $as_echo_n "(cached) " >&6
20551else
20552 case $host_os in #(
20553 *cygwin*)
20554 lt_cv_sys_argz_works=no
20555 if test "$cross_compiling" != no; then
20556 lt_cv_sys_argz_works="guessing no"
20557 else
20558 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20559 save_IFS=$IFS
20560 IFS=-.
20561 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20562 IFS=$save_IFS
20563 lt_os_major=${2-0}
20564 lt_os_minor=${3-0}
20565 lt_os_micro=${4-0}
20566 if test "$lt_os_major" -gt 1 \
20567 || { test "$lt_os_major" -eq 1 \
20568 && { test "$lt_os_minor" -gt 5 \
20569 || { test "$lt_os_minor" -eq 5 \
20570 && test "$lt_os_micro" -gt 24; }; }; }; then
20571 lt_cv_sys_argz_works=yes
20572 fi
20573 fi
20574 ;; #(
20575 *) lt_cv_sys_argz_works=yes ;;
20576 esac
20577fi
20578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20579$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020580 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020581
20582$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20583
20584else
20585 ARGZ_H=argz.h
20586
20587
20588 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20589
20590fi
20591fi
20592
20593
20594
20595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20596$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020597if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020598 $as_echo_n "(cached) " >&6
20599else
20600 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20601 libltdl_cv_preloaded_symbols=yes
20602 else
20603 libltdl_cv_preloaded_symbols=no
20604 fi
20605
20606fi
20607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20608$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20609if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20610
20611$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20612
20613fi
20614
20615# Set options
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627# Check whether --with-included_ltdl was given.
20628if test "${with_included_ltdl+set}" = set; then :
20629 withval=$with_included_ltdl;
20630fi
20631
20632
20633if test "x$with_included_ltdl" != xyes; then
20634 # We are not being forced to use the included libltdl sources, so
20635 # decide whether there is a useful installed version we can use.
20636 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20637
20638"
cristyda16f162011-02-19 23:52:17 +000020639if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020640 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20641 #include <ltdl.h>
20642"
cristyda16f162011-02-19 23:52:17 +000020643if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20645$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020646if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020647 $as_echo_n "(cached) " >&6
20648else
20649 ac_check_lib_save_LIBS=$LIBS
20650LIBS="-lltdl $LIBS"
20651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20652/* end confdefs.h. */
20653
20654/* Override any GCC internal prototype to avoid an error.
20655 Use char because int might match the return type of a GCC
20656 builtin and then its argument prototype would still apply. */
20657#ifdef __cplusplus
20658extern "C"
20659#endif
20660char lt_dladvise_preload ();
20661int
20662main ()
20663{
20664return lt_dladvise_preload ();
20665 ;
20666 return 0;
20667}
20668_ACEOF
20669if ac_fn_c_try_link "$LINENO"; then :
20670 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20671else
20672 ac_cv_lib_ltdl_lt_dladvise_preload=no
20673fi
20674rm -f core conftest.err conftest.$ac_objext \
20675 conftest$ac_exeext conftest.$ac_ext
20676LIBS=$ac_check_lib_save_LIBS
20677fi
20678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20679$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020680if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020681 with_included_ltdl=no
20682else
20683 with_included_ltdl=yes
20684fi
20685
20686else
20687 with_included_ltdl=yes
20688fi
20689
20690else
20691 with_included_ltdl=yes
20692fi
20693
20694
20695fi
20696
20697
20698
20699
20700# Check whether --with-ltdl_include was given.
20701if test "${with_ltdl_include+set}" = set; then :
20702 withval=$with_ltdl_include;
20703fi
20704
20705
20706if test -n "$with_ltdl_include"; then
20707 if test -f "$with_ltdl_include/ltdl.h"; then :
20708 else
cristy98dddb52010-11-04 00:30:15 +000020709 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020710 fi
20711else
20712 with_ltdl_include=no
20713fi
20714
20715
20716# Check whether --with-ltdl_lib was given.
20717if test "${with_ltdl_lib+set}" = set; then :
20718 withval=$with_ltdl_lib;
20719fi
20720
20721
20722if test -n "$with_ltdl_lib"; then
20723 if test -f "$with_ltdl_lib/libltdl.la"; then :
20724 else
cristy98dddb52010-11-04 00:30:15 +000020725 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020726 fi
20727else
20728 with_ltdl_lib=no
20729fi
20730
20731case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20732 ,yes,no,no,)
20733 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000020734 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000020735 "") enable_ltdl_convenience=yes
20736 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20737esac
20738LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20739LTDLDEPS=$LIBLTDL
20740LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20741
20742
20743
20744
20745
20746# For backwards non-gettext consistent compatibility...
20747INCLTDL="$LTDLINCL"
20748
20749
20750 ;;
20751 ,no,no,no,)
20752 # If the included ltdl is not to be used, then use the
20753 # preinstalled libltdl we found.
20754
20755$as_echo "#define HAVE_LTDL 1" >>confdefs.h
20756
20757 LIBLTDL=-lltdl
20758 LTDLDEPS=
20759 LTDLINCL=
20760 ;;
20761 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000020762 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020763 ;;
20764 *) with_included_ltdl=no
20765 LIBLTDL="-L$with_ltdl_lib -lltdl"
20766 LTDLDEPS=
20767 LTDLINCL="-I$with_ltdl_include"
20768 ;;
20769esac
20770INCLTDL="$LTDLINCL"
20771
20772# Report our decision...
20773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20774$as_echo_n "checking where to find libltdl headers... " >&6; }
20775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20776$as_echo "$LTDLINCL" >&6; }
20777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20778$as_echo_n "checking where to find libltdl library... " >&6; }
20779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20780$as_echo "$LIBLTDL" >&6; }
20781
20782
20783
20784# Check whether --enable-ltdl-install was given.
20785if test "${enable_ltdl_install+set}" = set; then :
20786 enableval=$enable_ltdl_install;
20787fi
20788
20789
20790case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20791 *yes*) ;;
20792 *) enable_ltdl_convenience=yes ;;
20793esac
20794
20795 if test x"${enable_ltdl_install-no}" != xno; then
20796 INSTALL_LTDL_TRUE=
20797 INSTALL_LTDL_FALSE='#'
20798else
20799 INSTALL_LTDL_TRUE='#'
20800 INSTALL_LTDL_FALSE=
20801fi
20802
20803 if test x"${enable_ltdl_convenience-no}" != xno; then
20804 CONVENIENCE_LTDL_TRUE=
20805 CONVENIENCE_LTDL_FALSE='#'
20806else
20807 CONVENIENCE_LTDL_TRUE='#'
20808 CONVENIENCE_LTDL_FALSE=
20809fi
20810
20811
20812
20813
20814
20815
cristy73bd4a52010-10-05 11:24:23 +000020816# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20817# the user used. This is so that ltdl.h can pick up the parent projects
20818# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20819# definitions required by ltdl.c.
20820# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20821
20822
20823
20824for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20825do :
20826 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20827ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20828"
cristy98dddb52010-11-04 00:30:15 +000020829if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020830 cat >>confdefs.h <<_ACEOF
20831#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20832_ACEOF
20833
20834fi
20835
20836done
20837
20838
20839for ac_func in closedir opendir readdir
20840do :
20841 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20842ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020843if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020844 cat >>confdefs.h <<_ACEOF
20845#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20846_ACEOF
20847
20848else
20849
20850
20851 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20852
20853fi
20854done
20855
20856for ac_func in strlcat strlcpy
20857do :
20858 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20859ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020860if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020861 cat >>confdefs.h <<_ACEOF
20862#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20863_ACEOF
20864
20865else
20866
20867
20868 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20869
20870fi
20871done
20872
20873
20874
20875cat >>confdefs.h <<_ACEOF
20876#define LT_LIBEXT "$libext"
20877_ACEOF
20878
20879
cristyda16f162011-02-19 23:52:17 +000020880name=
20881eval "lt_libprefix=\"$libname_spec\""
20882
20883cat >>confdefs.h <<_ACEOF
20884#define LT_LIBPREFIX "$lt_libprefix"
20885_ACEOF
20886
20887
cristy73bd4a52010-10-05 11:24:23 +000020888name=ltdl
cristyda16f162011-02-19 23:52:17 +000020889eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000020890
20891
20892
20893
20894
20895
20896
20897
20898# Only expand once:
20899
20900
cristy3ed852e2009-09-05 21:47:34 +000020901
20902# Check to see if building shared libraries
20903libtool_build_shared_libs='no'
20904if test "$enable_shared" = 'yes'; then
20905 libtool_build_shared_libs='yes'
20906fi
20907
20908# Check to see if building static libraries
20909libtool_build_static_libs='no'
20910if test "$enable_static" = 'yes'; then
20911 libtool_build_static_libs='yes'
20912fi
20913
cristy73bd4a52010-10-05 11:24:23 +000020914 if test "${libtool_build_shared_libs}" = 'yes'; then
20915 WITH_SHARED_LIBS_TRUE=
20916 WITH_SHARED_LIBS_FALSE='#'
20917else
20918 WITH_SHARED_LIBS_TRUE='#'
20919 WITH_SHARED_LIBS_FALSE=
20920fi
20921
cristy3ed852e2009-09-05 21:47:34 +000020922#
20923# Enable support for building loadable modules
20924#
20925
20926# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020927if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020928 withval=$with_modules; with_modules=$withval
20929else
cristy5a1cefd2010-01-06 20:42:35 +000020930 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020931fi
20932
20933
20934# Only allow building loadable modules if we are building shared libraries
20935if test "$with_modules" != 'no' ; then
20936 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020937 { $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 +000020938$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20939 with_modules='no'
20940 fi
20941fi
20942if test "$with_modules" != 'no'; then
20943
cristy8b350f62009-11-15 23:12:43 +000020944$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020945
20946fi
cristy73bd4a52010-10-05 11:24:23 +000020947 if test "$with_modules" != 'no'; then
20948 WITH_MODULES_TRUE=
20949 WITH_MODULES_FALSE='#'
20950else
20951 WITH_MODULES_TRUE='#'
20952 WITH_MODULES_FALSE=
20953fi
20954
cristy3ed852e2009-09-05 21:47:34 +000020955
20956# Enable building/use of libltdl if we are building shared libraries regardless
20957# of whether modules are built or not.
20958with_ltdl='no'
20959if test "$libtool_build_shared_libs" != 'no'; then
20960 with_ltdl='yes'
20961fi
20962
cristy73bd4a52010-10-05 11:24:23 +000020963 if test "$with_ltdl" != 'no'; then
20964 WITH_LTDL_TRUE=
20965 WITH_LTDL_FALSE='#'
20966else
20967 WITH_LTDL_TRUE='#'
20968 WITH_LTDL_FALSE=
20969fi
20970
cristy3ed852e2009-09-05 21:47:34 +000020971if test "$with_ltdl" != 'no'; then
20972
cristy8b350f62009-11-15 23:12:43 +000020973$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020974
20975
20976 # Set DLLDFLAGS
20977 if test X"$enable_shared" = Xyes; then
20978 DLLDFLAGS=-export-dynamic
20979
20980 fi
20981fi
20982
20983# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020984# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020985# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020986if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020987 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20988else
20989 enable_delegate_build='no'
20990fi
20991
20992
20993# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020994if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020995 enableval=$enable_deprecated; enable_deprecated=$enableval
20996else
20997 enable_deprecated='no'
20998fi
20999
21000
21001if test "$enable_deprecated" = 'yes'; then
21002
cristy8b350f62009-11-15 23:12:43 +000021003$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021004
21005else
21006 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21007fi
21008
21009# Build a version of ImageMagick which operates uninstalled.
21010# Used to build distributions located via MAGICK_HOME / executable path
21011# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021012if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021013 enableval=$enable_installed; enable_installed=$enableval
21014else
21015 enable_installed='yes'
21016fi
21017
21018
21019if test "$enable_installed" = 'yes'; then
21020
cristy8b350f62009-11-15 23:12:43 +000021021$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021022
21023else
21024 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21025fi
21026
21027# Permit enciphering and deciphering image pixels.
21028# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021029if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021030 enableval=$enable_cipher; enable_cipher=$enableval
21031else
21032 enable_cipher='yes'
21033fi
21034
21035
21036if test "$enable_cipher" = 'yes'; then
21037
cristy8b350f62009-11-15 23:12:43 +000021038$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021039
21040fi
21041
21042# Build an embeddable version of ImageMagick.
21043# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000021044if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021045 enableval=$enable_embeddable; enable_embeddable=$enableval
21046else
21047 enable_embeddable='no'
21048fi
21049
21050
21051if test "$enable_embeddable" = 'yes'; then
21052
cristy8b350f62009-11-15 23:12:43 +000021053$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021054
21055fi
21056
21057# Build a high dynamic range version of ImageMagick.
21058# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021059if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021060 enableval=$enable_hdri; enable_hdri=$enableval
21061else
21062 enable_hdri='no'
21063fi
21064
21065
21066MAGICK_HDRI=""
21067if test "$enable_hdri" = 'yes'; then
21068 MAGICK_HDRI="HDRI"
21069
cristy8b350f62009-11-15 23:12:43 +000021070$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021071
cristyfd9dcd42010-08-08 18:07:02 +000021072 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021073fi
21074
cristy3ed852e2009-09-05 21:47:34 +000021075# Build a version of ImageMagick with assert statements.
21076# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021077if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021078 enableval=$enable_assert; enable_assert=$enableval
21079else
21080 enable_assert='yes'
21081fi
21082
21083
21084if test "$enable_assert" = 'no'; then
21085
cristy8b350f62009-11-15 23:12:43 +000021086$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021087
21088fi
21089
21090# Add configure option --enable-maintainer-mode which enables dependency
21091# checking and generation useful to package maintainers. This is made an
21092# option to avoid confusing end users.
cristy73bd4a52010-10-05 11:24:23 +000021093
21094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21095$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21096 # Check whether --enable-maintainer-mode was given.
21097if test "${enable_maintainer_mode+set}" = set; then :
21098 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21099else
21100 USE_MAINTAINER_MODE=no
21101fi
21102
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21104$as_echo "$USE_MAINTAINER_MODE" >&6; }
21105 if test $USE_MAINTAINER_MODE = yes; then
21106 MAINTAINER_MODE_TRUE=
21107 MAINTAINER_MODE_FALSE='#'
21108else
21109 MAINTAINER_MODE_TRUE='#'
21110 MAINTAINER_MODE_FALSE=
21111fi
21112
21113 MAINT=$MAINTAINER_MODE_TRUE
21114
21115
cristy3ed852e2009-09-05 21:47:34 +000021116
21117
21118# Enable ccmalloc memory debugging support
21119# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021120if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021121 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21122else
21123 enable_ccmalloc='no'
21124fi
21125
21126
21127# Enable Electric Fence memory debugging support
21128# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021129if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021130 enableval=$enable_efence; enable_efence=$enableval
21131else
21132 enable_efence='no'
21133fi
21134
21135
21136# Enable prof-based profiling support
21137# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021138if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021139 enableval=$enable_prof; enable_prof=$enableval
21140else
21141 enable_prof='no'
21142fi
21143
21144
21145# Enable gprof-based profiling support
21146# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021147if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021148 enableval=$enable_gprof; enable_gprof=$enableval
21149else
21150 enable_gprof='no'
21151fi
21152
21153
21154# Enable gcov-based profiling support
21155# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021156if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021157 enableval=$enable_gcov; enable_gcov=$enableval
21158else
21159 enable_gcov='no'
21160fi
21161
21162
21163enable_profiling='no'
21164if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21165 enable_profiling='yes'
21166 if test "$libtool_build_shared_libs" = 'yes'; then
21167 echo "Warning: Can not profile code using shared libraries"
21168 fi
21169fi
21170
21171# Magick API method prefix
21172
21173# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021174if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021175 withval=$with_method_prefix; with_method_prefix=$enableval
21176else
21177 with_method_prefix=''
21178fi
21179
21180
21181if test "$with_method_prefix" != ''; then
21182
21183cat >>confdefs.h <<_ACEOF
21184#define NAMESPACE_PREFIX $with_method_prefix
21185_ACEOF
21186
21187fi
21188
21189# Number of bits in a Quantum
21190
21191# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021192if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021193 withval=$with_quantum_depth; with_quantum_depth=$withval
21194else
21195 with_quantum_depth=16
21196fi
21197
21198
21199if test "$with_quantum_depth" != '8'; then
21200 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21201fi
21202
21203case "${with_quantum_depth}" in
21204 8 ) ;;
21205 16 ) ;;
21206 32 ) ;;
21207 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021208 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021209esac
21210QUANTUM_DEPTH="$with_quantum_depth"
21211
21212cat >>confdefs.h <<_ACEOF
21213#define QUANTUM_DEPTH $QUANTUM_DEPTH
21214_ACEOF
21215
21216
21217# Set pixel cache threshold
21218
21219# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021220if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021221 withval=$with_cache; with_cache=$withval
21222else
21223 with_cache=''
21224fi
21225
21226
21227if test "$with_cache" != ''; then
21228
21229cat >>confdefs.h <<_ACEOF
21230#define PixelCacheThreshold $with_cache
21231_ACEOF
21232
21233 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21234fi
21235
21236# Disable/Enable support for full delegate paths
21237
21238# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021239if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021240 withval=$with_frozenpaths; with_frozenpaths=$withval
21241else
21242 with_frozenpaths='no'
21243fi
21244
21245
21246# Enable build/install of Magick++
21247
21248# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021249if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021250 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21251else
21252 with_magick_plus_plus='yes'
21253fi
21254
21255
21256# Disable build/install of PerlMagick.
21257
21258# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021259if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021260 withval=$with_perl; with_perl=$withval
21261else
cristyb5f4e2f2010-04-25 00:49:11 +000021262 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021263fi
21264
21265
21266# Options to pass when configuring PerlMagick
21267
21268# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021269if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021270 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021271fi
21272
21273
cristy3ed852e2009-09-05 21:47:34 +000021274
21275# Enable umem, object-caching memory allocation library.
21276
21277# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021278if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021279 withval=$with_umem; with_umem=$withval
21280else
21281 with_umem='no'
21282fi
21283
21284if test "$with_umem" != 'yes' ; then
21285 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21286fi
21287
21288#
21289# Specify path to shared libstdc++ if not in normal location
21290#
21291
21292# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021293if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021294 withval=$with_libstdc; with_libstdc=$withval
21295else
21296 with_libstdc=''
21297fi
21298
21299
21300if test "$with_libstdc" != ''; then
21301 if test -d "$with_libstdc"; then
21302 LIBSTDCLDFLAGS="-L$with_libstdc"
21303 fi
21304fi
21305
21306
21307# Does gcc required -traditional?
21308if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021310$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021311if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021312 $as_echo_n "(cached) " >&6
21313else
21314 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021316/* end confdefs.h. */
21317#include <sgtty.h>
21318Autoconf TIOCGETP
21319_ACEOF
21320if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021321 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021322 ac_cv_prog_gcc_traditional=yes
21323else
21324 ac_cv_prog_gcc_traditional=no
21325fi
21326rm -f conftest*
21327
21328
21329 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021331/* end confdefs.h. */
21332#include <termio.h>
21333Autoconf TCGETA
21334_ACEOF
21335if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021336 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021337 ac_cv_prog_gcc_traditional=yes
21338fi
21339rm -f conftest*
21340
21341 fi
21342fi
cristy8b350f62009-11-15 23:12:43 +000021343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021344$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21345 if test $ac_cv_prog_gcc_traditional = yes; then
21346 CC="$CC -traditional"
21347 fi
21348fi
21349
21350
21351########
21352#
21353# Set defines required to build DLLs and modules using MinGW
21354#
21355########
21356# These options are set for multi-thread DLL module build
21357# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21358# module: _DLL
21359# executable/Magick++: _DLL _MAGICKMOD_
21360MODULE_EXTRA_CPPFLAGS=''
21361LIBRARY_EXTRA_CPPFLAGS=''
21362if test "${native_win32_build}" = 'yes'; then
21363 if test "${libtool_build_shared_libs}" = 'yes'; then
21364 CPPFLAGS="$CPPFLAGS -D_DLL"
21365 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21366 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21367 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21368 if test "$with_modules" = 'yes'; then
21369 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21370 else
21371 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21372 fi
21373 else
21374 CPPFLAGS="$CPPFLAGS -D_LIB"
21375 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21376 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21377 fi
21378 if test "$with_threads" = 'yes'; then
21379 CPPFLAGS="$CPPFLAGS -D_MT"
21380 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21381 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21382 fi
21383fi
21384
21385
21386
21387# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021389$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021390if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021391 $as_echo_n "(cached) " >&6
21392else
cristy8b350f62009-11-15 23:12:43 +000021393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021394/* end confdefs.h. */
21395#include <stdlib.h>
21396#include <stdarg.h>
21397#include <string.h>
21398#include <float.h>
21399
21400int
21401main ()
21402{
21403
21404 ;
21405 return 0;
21406}
21407_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021408if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021409 ac_cv_header_stdc=yes
21410else
cristy8b350f62009-11-15 23:12:43 +000021411 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021412fi
cristy3ed852e2009-09-05 21:47:34 +000021413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21414
21415if test $ac_cv_header_stdc = yes; then
21416 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021418/* end confdefs.h. */
21419#include <string.h>
21420
21421_ACEOF
21422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021423 $EGREP "memchr" >/dev/null 2>&1; then :
21424
cristy3ed852e2009-09-05 21:47:34 +000021425else
21426 ac_cv_header_stdc=no
21427fi
21428rm -f conftest*
21429
21430fi
21431
21432if test $ac_cv_header_stdc = yes; then
21433 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021435/* end confdefs.h. */
21436#include <stdlib.h>
21437
21438_ACEOF
21439if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021440 $EGREP "free" >/dev/null 2>&1; then :
21441
cristy3ed852e2009-09-05 21:47:34 +000021442else
21443 ac_cv_header_stdc=no
21444fi
21445rm -f conftest*
21446
21447fi
21448
21449if test $ac_cv_header_stdc = yes; then
21450 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021451 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021452 :
21453else
cristy8b350f62009-11-15 23:12:43 +000021454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021455/* end confdefs.h. */
21456#include <ctype.h>
21457#include <stdlib.h>
21458#if ((' ' & 0x0FF) == 0x020)
21459# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21460# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21461#else
21462# define ISLOWER(c) \
21463 (('a' <= (c) && (c) <= 'i') \
21464 || ('j' <= (c) && (c) <= 'r') \
21465 || ('s' <= (c) && (c) <= 'z'))
21466# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21467#endif
21468
21469#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21470int
21471main ()
21472{
21473 int i;
21474 for (i = 0; i < 256; i++)
21475 if (XOR (islower (i), ISLOWER (i))
21476 || toupper (i) != TOUPPER (i))
21477 return 2;
21478 return 0;
21479}
21480_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021481if ac_fn_c_try_run "$LINENO"; then :
21482
cristy3ed852e2009-09-05 21:47:34 +000021483else
cristy8b350f62009-11-15 23:12:43 +000021484 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021485fi
cristy8b350f62009-11-15 23:12:43 +000021486rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21487 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021488fi
21489
cristy3ed852e2009-09-05 21:47:34 +000021490fi
21491fi
cristy8b350f62009-11-15 23:12:43 +000021492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021493$as_echo "$ac_cv_header_stdc" >&6; }
21494if test $ac_cv_header_stdc = yes; then
21495
cristy8b350f62009-11-15 23:12:43 +000021496$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021497
21498fi
21499
21500if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021501 { $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 +000021502 header files. Compilation cannot proceed. Please install the ANSI C
21503 headers and rerun this script." >&5
21504$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21505 header files. Compilation cannot proceed. Please install the ANSI C
21506 headers and rerun this script." >&2;};
21507fi
cristya0b81c32010-01-22 02:54:33 +000021508
21509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21510$as_echo_n "checking whether to enable assertions... " >&6; }
21511 # Check whether --enable-assert was given.
21512if test "${enable_assert+set}" = set; then :
21513 enableval=$enable_assert; ac_enable_assert=$enableval
21514 if test "x$enableval" = xno; then :
21515
21516$as_echo "#define NDEBUG 1" >>confdefs.h
21517
21518elif test "x$enableval" != xyes; then :
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21520$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21521 ac_enable_assert=yes
21522fi
21523else
21524 ac_enable_assert=yes
21525fi
21526
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21528$as_echo "$ac_enable_assert" >&6; }
21529
cristy3ed852e2009-09-05 21:47:34 +000021530ac_header_dirent=no
21531for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21532 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021534$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021535if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021536 $as_echo_n "(cached) " >&6
21537else
cristy8b350f62009-11-15 23:12:43 +000021538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021539/* end confdefs.h. */
21540#include <sys/types.h>
21541#include <$ac_hdr>
21542
21543int
21544main ()
21545{
21546if ((DIR *) 0)
21547return 0;
21548 ;
21549 return 0;
21550}
21551_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021552if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021553 eval "$as_ac_Header=yes"
21554else
cristy8b350f62009-11-15 23:12:43 +000021555 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021556fi
cristy3ed852e2009-09-05 21:47:34 +000021557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21558fi
cristy8b350f62009-11-15 23:12:43 +000021559eval ac_res=\$$as_ac_Header
21560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021561$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021562if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021563 cat >>confdefs.h <<_ACEOF
21564#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21565_ACEOF
21566
21567ac_header_dirent=$ac_hdr; break
21568fi
21569
21570done
21571# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21572if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021574$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021575if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021576 $as_echo_n "(cached) " >&6
21577else
21578 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021580/* end confdefs.h. */
21581
21582/* Override any GCC internal prototype to avoid an error.
21583 Use char because int might match the return type of a GCC
21584 builtin and then its argument prototype would still apply. */
21585#ifdef __cplusplus
21586extern "C"
21587#endif
21588char opendir ();
21589int
21590main ()
21591{
21592return opendir ();
21593 ;
21594 return 0;
21595}
21596_ACEOF
21597for ac_lib in '' dir; do
21598 if test -z "$ac_lib"; then
21599 ac_res="none required"
21600 else
21601 ac_res=-l$ac_lib
21602 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21603 fi
cristy8b350f62009-11-15 23:12:43 +000021604 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021605 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021606fi
cristy8b350f62009-11-15 23:12:43 +000021607rm -f core conftest.err conftest.$ac_objext \
21608 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021609 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021610 break
21611fi
21612done
cristyda16f162011-02-19 23:52:17 +000021613if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021614
cristy3ed852e2009-09-05 21:47:34 +000021615else
21616 ac_cv_search_opendir=no
21617fi
21618rm conftest.$ac_ext
21619LIBS=$ac_func_search_save_LIBS
21620fi
cristy8b350f62009-11-15 23:12:43 +000021621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021622$as_echo "$ac_cv_search_opendir" >&6; }
21623ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021624if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021625 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21626
21627fi
21628
21629else
cristy8b350f62009-11-15 23:12:43 +000021630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021631$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021632if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021633 $as_echo_n "(cached) " >&6
21634else
21635 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021637/* end confdefs.h. */
21638
21639/* Override any GCC internal prototype to avoid an error.
21640 Use char because int might match the return type of a GCC
21641 builtin and then its argument prototype would still apply. */
21642#ifdef __cplusplus
21643extern "C"
21644#endif
21645char opendir ();
21646int
21647main ()
21648{
21649return opendir ();
21650 ;
21651 return 0;
21652}
21653_ACEOF
21654for ac_lib in '' x; do
21655 if test -z "$ac_lib"; then
21656 ac_res="none required"
21657 else
21658 ac_res=-l$ac_lib
21659 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21660 fi
cristy8b350f62009-11-15 23:12:43 +000021661 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021662 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021663fi
cristy8b350f62009-11-15 23:12:43 +000021664rm -f core conftest.err conftest.$ac_objext \
21665 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021666 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021667 break
21668fi
21669done
cristyda16f162011-02-19 23:52:17 +000021670if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021671
cristy3ed852e2009-09-05 21:47:34 +000021672else
21673 ac_cv_search_opendir=no
21674fi
21675rm conftest.$ac_ext
21676LIBS=$ac_func_search_save_LIBS
21677fi
cristy8b350f62009-11-15 23:12:43 +000021678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021679$as_echo "$ac_cv_search_opendir" >&6; }
21680ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021681if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021682 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21683
21684fi
21685
21686fi
21687
21688
21689# Check additional headers
cristya8549b12011-05-18 19:05:08 +000021690for 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 xlocale.h
cristy8b350f62009-11-15 23:12:43 +000021691do :
21692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21693ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021694if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021695 cat >>confdefs.h <<_ACEOF
21696#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21697_ACEOF
21698
21699fi
21700
21701done
21702
21703
21704########
21705#
21706# Checks for typedefs, structures, and compiler characteristics.
21707#
21708########
21709
cristy8b350f62009-11-15 23:12:43 +000021710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021711$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021712if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021713 $as_echo_n "(cached) " >&6
21714else
cristy8b350f62009-11-15 23:12:43 +000021715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021716/* end confdefs.h. */
21717
21718#include <stdbool.h>
21719#ifndef bool
21720 "error: bool is not defined"
21721#endif
21722#ifndef false
21723 "error: false is not defined"
21724#endif
21725#if false
21726 "error: false is not 0"
21727#endif
21728#ifndef true
21729 "error: true is not defined"
21730#endif
21731#if true != 1
21732 "error: true is not 1"
21733#endif
21734#ifndef __bool_true_false_are_defined
21735 "error: __bool_true_false_are_defined is not defined"
21736#endif
21737
21738 struct s { _Bool s: 1; _Bool t; } s;
21739
21740 char a[true == 1 ? 1 : -1];
21741 char b[false == 0 ? 1 : -1];
21742 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21743 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000021744 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000021745 char f[(_Bool) 0.0 == false ? 1 : -1];
21746 char g[true];
21747 char h[sizeof (_Bool)];
21748 char i[sizeof s.t];
21749 enum { j = false, k = true, l = false * true, m = true * 256 };
21750 /* The following fails for
21751 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21752 _Bool n[m];
21753 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21754 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000021755 /* Catch a bug in an HP-UX C compiler. See
21756 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21757 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21758 */
21759 _Bool q = true;
21760 _Bool *pq = &q;
21761
21762int
21763main ()
21764{
21765
cristyda16f162011-02-19 23:52:17 +000021766 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000021767 *pq |= q;
21768 *pq |= ! q;
21769 /* Refer to every declared value, to avoid compiler optimizations. */
21770 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21771 + !m + !n + !o + !p + !q + !pq);
21772
21773 ;
21774 return 0;
21775}
21776_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021777if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021778 ac_cv_header_stdbool_h=yes
21779else
cristy8b350f62009-11-15 23:12:43 +000021780 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021781fi
cristy3ed852e2009-09-05 21:47:34 +000021782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21783fi
cristy8b350f62009-11-15 23:12:43 +000021784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021785$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021786ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021787if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021788
21789cat >>confdefs.h <<_ACEOF
21790#define HAVE__BOOL 1
21791_ACEOF
21792
21793
21794fi
21795
21796if test $ac_cv_header_stdbool_h = yes; then
21797
cristy8b350f62009-11-15 23:12:43 +000021798$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021799
21800fi
21801
cristy8b350f62009-11-15 23:12:43 +000021802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021803$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021804if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021805 $as_echo_n "(cached) " >&6
21806else
cristy8b350f62009-11-15 23:12:43 +000021807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021808/* end confdefs.h. */
21809
21810int
21811main ()
21812{
21813
21814volatile int x;
21815int * volatile y = (int *) 0;
21816return !x && !y;
21817 ;
21818 return 0;
21819}
21820_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021821if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021822 ac_cv_c_volatile=yes
21823else
cristy8b350f62009-11-15 23:12:43 +000021824 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021825fi
cristy3ed852e2009-09-05 21:47:34 +000021826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21827fi
cristy8b350f62009-11-15 23:12:43 +000021828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021829$as_echo "$ac_cv_c_volatile" >&6; }
21830if test $ac_cv_c_volatile = no; then
21831
cristy8b350f62009-11-15 23:12:43 +000021832$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021833
21834fi
21835
cristy8b350f62009-11-15 23:12:43 +000021836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021837$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021838if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021839 $as_echo_n "(cached) " >&6
21840else
cristy8b350f62009-11-15 23:12:43 +000021841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021842/* end confdefs.h. */
21843#define x(y) #y
21844
21845char *s = x(teststring);
21846_ACEOF
21847if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021848 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021849 ac_cv_c_stringize=no
21850else
21851 ac_cv_c_stringize=yes
21852fi
21853rm -f conftest*
21854
21855fi
cristy8b350f62009-11-15 23:12:43 +000021856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021857$as_echo "$ac_cv_c_stringize" >&6; }
21858if test $ac_cv_c_stringize = yes; then
21859
cristy8b350f62009-11-15 23:12:43 +000021860$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021861
21862fi
21863
cristy8b350f62009-11-15 23:12:43 +000021864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021865$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021866if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021867 $as_echo_n "(cached) " >&6
21868else
cristy8b350f62009-11-15 23:12:43 +000021869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021870/* end confdefs.h. */
21871#include <sys/types.h>
21872#include <sys/stat.h>
21873
21874#if defined S_ISBLK && defined S_IFDIR
21875extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21876#endif
21877
21878#if defined S_ISBLK && defined S_IFCHR
21879extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21880#endif
21881
21882#if defined S_ISLNK && defined S_IFREG
21883extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21884#endif
21885
21886#if defined S_ISSOCK && defined S_IFREG
21887extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21888#endif
21889
21890_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021891if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021892 ac_cv_header_stat_broken=no
21893else
cristy8b350f62009-11-15 23:12:43 +000021894 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021895fi
cristy3ed852e2009-09-05 21:47:34 +000021896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21897fi
cristy8b350f62009-11-15 23:12:43 +000021898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021899$as_echo "$ac_cv_header_stat_broken" >&6; }
21900if test $ac_cv_header_stat_broken = yes; then
21901
cristy8b350f62009-11-15 23:12:43 +000021902$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021903
21904fi
21905
cristy8b350f62009-11-15 23:12:43 +000021906{ $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 +000021907$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021908if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021909 $as_echo_n "(cached) " >&6
21910else
cristy8b350f62009-11-15 23:12:43 +000021911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021912/* end confdefs.h. */
21913#include <sys/types.h>
21914#include <sys/time.h>
21915#include <time.h>
21916
21917int
21918main ()
21919{
21920if ((struct tm *) 0)
21921return 0;
21922 ;
21923 return 0;
21924}
21925_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021926if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021927 ac_cv_header_time=yes
21928else
cristy8b350f62009-11-15 23:12:43 +000021929 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021930fi
cristy3ed852e2009-09-05 21:47:34 +000021931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21932fi
cristy8b350f62009-11-15 23:12:43 +000021933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021934$as_echo "$ac_cv_header_time" >&6; }
21935if test $ac_cv_header_time = yes; then
21936
cristy8b350f62009-11-15 23:12:43 +000021937$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021938
21939fi
21940
cristy8b350f62009-11-15 23:12:43 +000021941{ $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 +000021942$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021943if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021944 $as_echo_n "(cached) " >&6
21945else
cristy8b350f62009-11-15 23:12:43 +000021946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021947/* end confdefs.h. */
21948#include <sys/types.h>
21949#include <time.h>
21950
21951int
21952main ()
21953{
21954struct tm tm;
21955 int *p = &tm.tm_sec;
21956 return !p;
21957 ;
21958 return 0;
21959}
21960_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021961if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021962 ac_cv_struct_tm=time.h
21963else
cristy8b350f62009-11-15 23:12:43 +000021964 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021965fi
cristy3ed852e2009-09-05 21:47:34 +000021966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21967fi
cristy8b350f62009-11-15 23:12:43 +000021968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021969$as_echo "$ac_cv_struct_tm" >&6; }
21970if test $ac_cv_struct_tm = sys/time.h; then
21971
cristy8b350f62009-11-15 23:12:43 +000021972$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021973
21974fi
21975
cristy92703d82010-04-26 00:18:18 +000021976ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21977#include <$ac_cv_struct_tm>
21978
21979"
cristyda16f162011-02-19 23:52:17 +000021980if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021981
21982cat >>confdefs.h <<_ACEOF
21983#define HAVE_STRUCT_TM_TM_ZONE 1
21984_ACEOF
21985
21986
21987fi
21988
21989if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21990
21991$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21992
21993else
21994 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21995"
cristyda16f162011-02-19 23:52:17 +000021996if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021997 ac_have_decl=1
21998else
21999 ac_have_decl=0
22000fi
22001
22002cat >>confdefs.h <<_ACEOF
22003#define HAVE_DECL_TZNAME $ac_have_decl
22004_ACEOF
22005
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22007$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022008if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022009 $as_echo_n "(cached) " >&6
22010else
22011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22012/* end confdefs.h. */
22013#include <time.h>
22014#if !HAVE_DECL_TZNAME
22015extern char *tzname[];
22016#endif
22017
22018int
22019main ()
22020{
22021return tzname[0][0];
22022 ;
22023 return 0;
22024}
22025_ACEOF
22026if ac_fn_c_try_link "$LINENO"; then :
22027 ac_cv_var_tzname=yes
22028else
22029 ac_cv_var_tzname=no
22030fi
22031rm -f core conftest.err conftest.$ac_objext \
22032 conftest$ac_exeext conftest.$ac_ext
22033fi
22034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22035$as_echo "$ac_cv_var_tzname" >&6; }
22036 if test $ac_cv_var_tzname = yes; then
22037
22038$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22039
22040 fi
22041fi
22042
cristy8b350f62009-11-15 23:12:43 +000022043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022044$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022045if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022046 $as_echo_n "(cached) " >&6
22047else
22048 echo '#! /bin/cat
22049exit 69
22050' >conftest
22051chmod u+x conftest
22052(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22053if test $? -ne 69; then
22054 ac_cv_sys_interpreter=yes
22055else
22056 ac_cv_sys_interpreter=no
22057fi
22058rm -f conftest
22059fi
cristy8b350f62009-11-15 23:12:43 +000022060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022061$as_echo "$ac_cv_sys_interpreter" >&6; }
22062interpval=$ac_cv_sys_interpreter
22063
22064
cristy3ed852e2009-09-05 21:47:34 +000022065# If the C compiler supports the keyword inline, do nothing. Otherwise
22066# define inline to __inline__ or __inline if it accepts one of those,
22067# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022069$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022070if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022071 $as_echo_n "(cached) " >&6
22072else
22073 ac_cv_c_inline=no
22074for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022076/* end confdefs.h. */
22077#ifndef __cplusplus
22078typedef int foo_t;
22079static $ac_kw foo_t static_foo () {return 0; }
22080$ac_kw foo_t foo () {return 0; }
22081#endif
22082
22083_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022084if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022085 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022086fi
cristy3ed852e2009-09-05 21:47:34 +000022087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22088 test "$ac_cv_c_inline" != no && break
22089done
22090
22091fi
cristy8b350f62009-11-15 23:12:43 +000022092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022093$as_echo "$ac_cv_c_inline" >&6; }
22094
cristy3ed852e2009-09-05 21:47:34 +000022095case $ac_cv_c_inline in
22096 inline | yes) ;;
22097 *)
22098 case $ac_cv_c_inline in
22099 no) ac_val=;;
22100 *) ac_val=$ac_cv_c_inline;;
22101 esac
22102 cat >>confdefs.h <<_ACEOF
22103#ifndef __cplusplus
22104#define inline $ac_val
22105#endif
22106_ACEOF
22107 ;;
22108esac
22109
22110
22111# If the C compiler supports the keyword restrict, do nothing. Otherwise
22112# define restrict to __restrict__ or __restrict if it accepts one of those,
22113# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022115$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022116if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022117 $as_echo_n "(cached) " >&6
22118else
22119 ac_cv_c_restrict=no
22120 # The order here caters to the fact that C++ does not require restrict.
22121 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022123/* end confdefs.h. */
22124typedef int * int_ptr;
22125 int foo (int_ptr $ac_kw ip) {
22126 return ip[0];
22127 }
22128int
22129main ()
22130{
22131int s[1];
22132 int * $ac_kw t = s;
22133 t[0] = 0;
22134 return foo(t)
22135 ;
22136 return 0;
22137}
22138_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022139if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022140 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022141fi
cristy3ed852e2009-09-05 21:47:34 +000022142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22143 test "$ac_cv_c_restrict" != no && break
22144 done
22145
22146fi
cristy8b350f62009-11-15 23:12:43 +000022147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022148$as_echo "$ac_cv_c_restrict" >&6; }
22149
cristy3ed852e2009-09-05 21:47:34 +000022150 case $ac_cv_c_restrict in
22151 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022152 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022153 ;;
22154 *) cat >>confdefs.h <<_ACEOF
22155#define restrict $ac_cv_c_restrict
22156_ACEOF
22157 ;;
22158 esac
22159
22160
22161# If words are stored with the most significant byte first (like
22162# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022164$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022165if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022166 $as_echo_n "(cached) " >&6
22167else
22168 ac_cv_c_bigendian=unknown
22169 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022171/* end confdefs.h. */
22172#ifndef __APPLE_CC__
22173 not a universal capable compiler
22174 #endif
22175 typedef int dummy;
22176
22177_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022178if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022179
22180 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022181 # there are at least two -arch flags with different values.
22182 ac_arch=
22183 ac_prev=
22184 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22185 if test -n "$ac_prev"; then
22186 case $ac_word in
22187 i?86 | x86_64 | ppc | ppc64)
22188 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22189 ac_arch=$ac_word
22190 else
22191 ac_cv_c_bigendian=universal
22192 break
22193 fi
22194 ;;
22195 esac
22196 ac_prev=
22197 elif test "x$ac_word" = "x-arch"; then
22198 ac_prev=arch
22199 fi
22200 done
cristy3ed852e2009-09-05 21:47:34 +000022201fi
cristy3ed852e2009-09-05 21:47:34 +000022202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22203 if test $ac_cv_c_bigendian = unknown; then
22204 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022206/* end confdefs.h. */
22207#include <sys/types.h>
22208 #include <sys/param.h>
22209
22210int
22211main ()
22212{
22213#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22214 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22215 && LITTLE_ENDIAN)
22216 bogus endian macros
22217 #endif
22218
22219 ;
22220 return 0;
22221}
22222_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022223if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022224 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022226/* end confdefs.h. */
22227#include <sys/types.h>
22228 #include <sys/param.h>
22229
22230int
22231main ()
22232{
22233#if BYTE_ORDER != BIG_ENDIAN
22234 not big endian
22235 #endif
22236
22237 ;
22238 return 0;
22239}
22240_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022241if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022242 ac_cv_c_bigendian=yes
22243else
cristy8b350f62009-11-15 23:12:43 +000022244 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022245fi
cristy3ed852e2009-09-05 21:47:34 +000022246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022247fi
cristy3ed852e2009-09-05 21:47:34 +000022248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22249 fi
22250 if test $ac_cv_c_bigendian = unknown; then
22251 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022253/* end confdefs.h. */
22254#include <limits.h>
22255
22256int
22257main ()
22258{
22259#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22260 bogus endian macros
22261 #endif
22262
22263 ;
22264 return 0;
22265}
22266_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022267if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022268 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022270/* end confdefs.h. */
22271#include <limits.h>
22272
22273int
22274main ()
22275{
22276#ifndef _BIG_ENDIAN
22277 not big endian
22278 #endif
22279
22280 ;
22281 return 0;
22282}
22283_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022284if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022285 ac_cv_c_bigendian=yes
22286else
cristy8b350f62009-11-15 23:12:43 +000022287 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022288fi
cristy3ed852e2009-09-05 21:47:34 +000022289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022290fi
cristy3ed852e2009-09-05 21:47:34 +000022291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22292 fi
22293 if test $ac_cv_c_bigendian = unknown; then
22294 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022295 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022296 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022298/* end confdefs.h. */
22299short int ascii_mm[] =
22300 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22301 short int ascii_ii[] =
22302 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22303 int use_ascii (int i) {
22304 return ascii_mm[i] + ascii_ii[i];
22305 }
22306 short int ebcdic_ii[] =
22307 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22308 short int ebcdic_mm[] =
22309 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22310 int use_ebcdic (int i) {
22311 return ebcdic_mm[i] + ebcdic_ii[i];
22312 }
22313 extern int foo;
22314
22315int
22316main ()
22317{
22318return use_ascii (foo) == use_ebcdic (foo);
22319 ;
22320 return 0;
22321}
22322_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022323if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022324 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22325 ac_cv_c_bigendian=yes
22326 fi
22327 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22328 if test "$ac_cv_c_bigendian" = unknown; then
22329 ac_cv_c_bigendian=no
22330 else
22331 # finding both strings is unlikely to happen, but who knows?
22332 ac_cv_c_bigendian=unknown
22333 fi
22334 fi
cristy3ed852e2009-09-05 21:47:34 +000022335fi
cristy3ed852e2009-09-05 21:47:34 +000022336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22337else
cristy8b350f62009-11-15 23:12:43 +000022338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022339/* end confdefs.h. */
22340$ac_includes_default
22341int
22342main ()
22343{
22344
22345 /* Are we little or big endian? From Harbison&Steele. */
22346 union
22347 {
22348 long int l;
22349 char c[sizeof (long int)];
22350 } u;
22351 u.l = 1;
22352 return u.c[sizeof (long int) - 1] == 1;
22353
22354 ;
22355 return 0;
22356}
22357_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022358if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022359 ac_cv_c_bigendian=no
22360else
cristy8b350f62009-11-15 23:12:43 +000022361 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022362fi
cristy8b350f62009-11-15 23:12:43 +000022363rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22364 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022365fi
22366
cristy3ed852e2009-09-05 21:47:34 +000022367 fi
22368fi
cristy8b350f62009-11-15 23:12:43 +000022369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022370$as_echo "$ac_cv_c_bigendian" >&6; }
22371 case $ac_cv_c_bigendian in #(
22372 yes)
cristy8b350f62009-11-15 23:12:43 +000022373 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022374;; #(
22375 no)
22376 ;; #(
22377 universal)
22378
cristy8b350f62009-11-15 23:12:43 +000022379$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022380
22381 ;; #(
22382 *)
cristy98dddb52010-11-04 00:30:15 +000022383 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022384 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022385 esac
22386
22387
cristy501c8042011-05-26 17:46:28 +000022388# Define to a suitable type, if standard headers do not define it.
22389ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22390case $ac_cv_c_int8_t in #(
22391 no|yes) ;; #(
22392 *)
cristy3ed852e2009-09-05 21:47:34 +000022393
22394cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022395#define int8_t $ac_cv_c_int8_t
22396_ACEOF
22397;;
22398esac
22399
22400ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22401case $ac_cv_c_int16_t in #(
22402 no|yes) ;; #(
22403 *)
22404
22405cat >>confdefs.h <<_ACEOF
22406#define int16_t $ac_cv_c_int16_t
22407_ACEOF
22408;;
22409esac
22410
22411ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22412case $ac_cv_c_int32_t in #(
22413 no|yes) ;; #(
22414 *)
22415
22416cat >>confdefs.h <<_ACEOF
22417#define int32_t $ac_cv_c_int32_t
22418_ACEOF
22419;;
22420esac
22421
22422ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22423case $ac_cv_c_int64_t in #(
22424 no|yes) ;; #(
22425 *)
22426
22427cat >>confdefs.h <<_ACEOF
22428#define int64_t $ac_cv_c_int64_t
22429_ACEOF
22430;;
22431esac
22432
22433
22434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22435$as_echo_n "checking for long long int... " >&6; }
22436if ${ac_cv_type_long_long_int+:} false; then :
22437 $as_echo_n "(cached) " >&6
22438else
22439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22440/* end confdefs.h. */
22441
22442 /* For now, do not test the preprocessor; as of 2007 there are too many
22443 implementations with broken preprocessors. Perhaps this can
22444 be revisited in 2012. In the meantime, code should not expect
22445 #if to work with literals wider than 32 bits. */
22446 /* Test literals. */
22447 long long int ll = 9223372036854775807ll;
22448 long long int nll = -9223372036854775807LL;
22449 unsigned long long int ull = 18446744073709551615ULL;
22450 /* Test constant expressions. */
22451 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22452 ? 1 : -1)];
22453 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22454 ? 1 : -1)];
22455 int i = 63;
22456int
22457main ()
22458{
22459/* Test availability of runtime routines for shift and division. */
22460 long long int llmax = 9223372036854775807ll;
22461 unsigned long long int ullmax = 18446744073709551615ull;
22462 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22463 | (llmax / ll) | (llmax % ll)
22464 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22465 | (ullmax / ull) | (ullmax % ull));
22466 ;
22467 return 0;
22468}
22469
22470_ACEOF
22471if ac_fn_c_try_link "$LINENO"; then :
22472 if test "$cross_compiling" = yes; then :
22473 ac_cv_type_long_long_int=yes
22474else
22475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22476/* end confdefs.h. */
22477#include <limits.h>
22478 #ifndef LLONG_MAX
22479 # define HALF \
22480 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22481 # define LLONG_MAX (HALF - 1 + HALF)
22482 #endif
22483int
22484main ()
22485{
22486long long int n = 1;
22487 int i;
22488 for (i = 0; ; i++)
22489 {
22490 long long int m = n << i;
22491 if (m >> i != n)
22492 return 1;
22493 if (LLONG_MAX / 2 < m)
22494 break;
22495 }
22496 return 0;
22497 ;
22498 return 0;
22499}
22500_ACEOF
22501if ac_fn_c_try_run "$LINENO"; then :
22502 ac_cv_type_long_long_int=yes
22503else
22504 ac_cv_type_long_long_int=no
22505fi
22506rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22507 conftest.$ac_objext conftest.beam conftest.$ac_ext
22508fi
22509
22510else
22511 ac_cv_type_long_long_int=no
22512fi
22513rm -f core conftest.err conftest.$ac_objext \
22514 conftest$ac_exeext conftest.$ac_ext
22515fi
22516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22517$as_echo "$ac_cv_type_long_long_int" >&6; }
22518 if test $ac_cv_type_long_long_int = yes; then
22519
22520$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22521
22522 fi
22523
22524
22525
22526 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22527if test "x$ac_cv_type_intmax_t" = xyes; then :
22528
22529$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22530
22531else
22532 test $ac_cv_type_long_long_int = yes \
22533 && ac_type='long long int' \
22534 || ac_type='long int'
22535
22536cat >>confdefs.h <<_ACEOF
22537#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022538_ACEOF
22539
22540fi
22541
22542
cristy501c8042011-05-26 17:46:28 +000022543
22544 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22545if test "x$ac_cv_type_intptr_t" = xyes; then :
22546
22547$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022548
cristy3ed852e2009-09-05 21:47:34 +000022549else
cristy501c8042011-05-26 17:46:28 +000022550 for ac_type in 'int' 'long int' 'long long int'; do
22551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22552/* end confdefs.h. */
22553$ac_includes_default
22554int
22555main ()
22556{
22557static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22558test_array [0] = 0
22559
22560 ;
22561 return 0;
22562}
22563_ACEOF
22564if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022565
22566cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022567#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022568_ACEOF
22569
cristy501c8042011-05-26 17:46:28 +000022570 ac_type=
22571fi
22572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22573 test -z "$ac_type" && break
22574 done
cristy3ed852e2009-09-05 21:47:34 +000022575fi
22576
22577
cristy3ed852e2009-09-05 21:47:34 +000022578
cristy501c8042011-05-26 17:46:28 +000022579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22580$as_echo_n "checking for long double... " >&6; }
22581if ${ac_cv_type_long_double+:} false; then :
22582 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022583else
cristy501c8042011-05-26 17:46:28 +000022584 if test "$GCC" = yes; then
22585 ac_cv_type_long_double=yes
22586 else
22587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22588/* end confdefs.h. */
22589/* The Stardent Vistra knows sizeof (long double), but does
22590 not support it. */
22591 long double foo = 0.0L;
22592int
22593main ()
22594{
22595static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22596 sizeof (double) <= sizeof (long double))];
22597test_array [0] = 0
cristy3ed852e2009-09-05 21:47:34 +000022598
cristy501c8042011-05-26 17:46:28 +000022599 ;
22600 return 0;
22601}
cristy3ed852e2009-09-05 21:47:34 +000022602_ACEOF
cristy501c8042011-05-26 17:46:28 +000022603if ac_fn_c_try_compile "$LINENO"; then :
22604 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022605else
cristy501c8042011-05-26 17:46:28 +000022606 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022607fi
cristy501c8042011-05-26 17:46:28 +000022608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22609 fi
cristy3ed852e2009-09-05 21:47:34 +000022610fi
cristy501c8042011-05-26 17:46:28 +000022611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22612$as_echo "$ac_cv_type_long_double" >&6; }
22613 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022614
cristy501c8042011-05-26 17:46:28 +000022615$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022616
cristy501c8042011-05-26 17:46:28 +000022617 fi
22618
cristy3ed852e2009-09-05 21:47:34 +000022619
cristy8b350f62009-11-15 23:12:43 +000022620 { $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 +000022621$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022622if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022623 $as_echo_n "(cached) " >&6
22624else
cristy8b350f62009-11-15 23:12:43 +000022625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022626/* end confdefs.h. */
22627#include <float.h>
22628 long double const a[] =
22629 {
22630 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22631 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22632 };
22633 long double
22634 f (long double x)
22635 {
22636 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22637 + (x ? f (x) : 'c'));
22638 }
22639
22640int
22641main ()
22642{
22643static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22644 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22645 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22646 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22647 && (int) LDBL_EPSILON == 0
22648 )];
22649test_array [0] = 0
22650
22651 ;
22652 return 0;
22653}
22654_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022655if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022656 ac_cv_type_long_double_wider=yes
22657else
cristy8b350f62009-11-15 23:12:43 +000022658 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022659fi
cristy3ed852e2009-09-05 21:47:34 +000022660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22661fi
cristy8b350f62009-11-15 23:12:43 +000022662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022663$as_echo "$ac_cv_type_long_double_wider" >&6; }
22664 if test $ac_cv_type_long_double_wider = yes; then
22665
cristy8b350f62009-11-15 23:12:43 +000022666$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022667
22668 fi
22669
22670
cristy501c8042011-05-26 17:46:28 +000022671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22672$as_echo_n "checking for long long int... " >&6; }
22673if ${ac_cv_type_long_long_int+:} false; then :
22674 $as_echo_n "(cached) " >&6
22675else
22676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22677/* end confdefs.h. */
22678
22679 /* For now, do not test the preprocessor; as of 2007 there are too many
22680 implementations with broken preprocessors. Perhaps this can
22681 be revisited in 2012. In the meantime, code should not expect
22682 #if to work with literals wider than 32 bits. */
22683 /* Test literals. */
22684 long long int ll = 9223372036854775807ll;
22685 long long int nll = -9223372036854775807LL;
22686 unsigned long long int ull = 18446744073709551615ULL;
22687 /* Test constant expressions. */
22688 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22689 ? 1 : -1)];
22690 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22691 ? 1 : -1)];
22692 int i = 63;
22693int
22694main ()
22695{
22696/* Test availability of runtime routines for shift and division. */
22697 long long int llmax = 9223372036854775807ll;
22698 unsigned long long int ullmax = 18446744073709551615ull;
22699 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22700 | (llmax / ll) | (llmax % ll)
22701 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22702 | (ullmax / ull) | (ullmax % ull));
22703 ;
22704 return 0;
22705}
22706
22707_ACEOF
22708if ac_fn_c_try_link "$LINENO"; then :
22709 if test "$cross_compiling" = yes; then :
22710 ac_cv_type_long_long_int=yes
22711else
22712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22713/* end confdefs.h. */
22714#include <limits.h>
22715 #ifndef LLONG_MAX
22716 # define HALF \
22717 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22718 # define LLONG_MAX (HALF - 1 + HALF)
22719 #endif
22720int
22721main ()
22722{
22723long long int n = 1;
22724 int i;
22725 for (i = 0; ; i++)
22726 {
22727 long long int m = n << i;
22728 if (m >> i != n)
22729 return 1;
22730 if (LLONG_MAX / 2 < m)
22731 break;
22732 }
22733 return 0;
22734 ;
22735 return 0;
22736}
22737_ACEOF
22738if ac_fn_c_try_run "$LINENO"; then :
22739 ac_cv_type_long_long_int=yes
22740else
22741 ac_cv_type_long_long_int=no
22742fi
22743rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22744 conftest.$ac_objext conftest.beam conftest.$ac_ext
22745fi
22746
22747else
22748 ac_cv_type_long_long_int=no
22749fi
22750rm -f core conftest.err conftest.$ac_objext \
22751 conftest$ac_exeext conftest.$ac_ext
22752fi
22753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22754$as_echo "$ac_cv_type_long_long_int" >&6; }
22755 if test $ac_cv_type_long_long_int = yes; then
22756
22757$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22758
22759 fi
22760
22761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22762$as_echo_n "checking for mbstate_t... " >&6; }
22763if ${ac_cv_type_mbstate_t+:} false; then :
22764 $as_echo_n "(cached) " >&6
22765else
22766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22767/* end confdefs.h. */
22768$ac_includes_default
22769# include <wchar.h>
22770int
22771main ()
22772{
22773mbstate_t x; return sizeof x;
22774 ;
22775 return 0;
22776}
22777_ACEOF
22778if ac_fn_c_try_compile "$LINENO"; then :
22779 ac_cv_type_mbstate_t=yes
22780else
22781 ac_cv_type_mbstate_t=no
22782fi
22783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22784fi
22785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22786$as_echo "$ac_cv_type_mbstate_t" >&6; }
22787 if test $ac_cv_type_mbstate_t = yes; then
22788
22789$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22790
22791 else
22792
22793$as_echo "#define mbstate_t int" >>confdefs.h
22794
22795 fi
22796ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22797if test "x$ac_cv_type_mode_t" = xyes; then :
22798
22799else
22800
22801cat >>confdefs.h <<_ACEOF
22802#define mode_t int
22803_ACEOF
22804
22805fi
22806
22807ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22808if test "x$ac_cv_type_off_t" = xyes; then :
22809
22810else
22811
22812cat >>confdefs.h <<_ACEOF
22813#define off_t long int
22814_ACEOF
22815
22816fi
22817
22818ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22819if test "x$ac_cv_type_pid_t" = xyes; then :
22820
22821else
22822
22823cat >>confdefs.h <<_ACEOF
22824#define pid_t int
22825_ACEOF
22826
22827fi
22828
22829ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22830if test "x$ac_cv_type_size_t" = xyes; then :
22831
22832else
22833
22834cat >>confdefs.h <<_ACEOF
22835#define size_t unsigned int
22836_ACEOF
22837
22838fi
22839
22840ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22841if test "x$ac_cv_type_ssize_t" = xyes; then :
22842
22843else
22844
22845cat >>confdefs.h <<_ACEOF
22846#define ssize_t int
22847_ACEOF
22848
22849fi
22850
22851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22852$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22853if ${ac_cv_type_uid_t+:} false; then :
22854 $as_echo_n "(cached) " >&6
22855else
22856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22857/* end confdefs.h. */
22858#include <sys/types.h>
22859
22860_ACEOF
22861if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22862 $EGREP "uid_t" >/dev/null 2>&1; then :
22863 ac_cv_type_uid_t=yes
22864else
22865 ac_cv_type_uid_t=no
22866fi
22867rm -f conftest*
22868
22869fi
22870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22871$as_echo "$ac_cv_type_uid_t" >&6; }
22872if test $ac_cv_type_uid_t = no; then
22873
22874$as_echo "#define uid_t int" >>confdefs.h
22875
22876
22877$as_echo "#define gid_t int" >>confdefs.h
22878
22879fi
22880
22881ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22882case $ac_cv_c_uint8_t in #(
22883 no|yes) ;; #(
22884 *)
22885
22886$as_echo "#define _UINT8_T 1" >>confdefs.h
22887
22888
22889cat >>confdefs.h <<_ACEOF
22890#define uint8_t $ac_cv_c_uint8_t
22891_ACEOF
22892;;
22893 esac
22894
22895ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
22896case $ac_cv_c_uint16_t in #(
22897 no|yes) ;; #(
22898 *)
22899
22900
22901cat >>confdefs.h <<_ACEOF
22902#define uint16_t $ac_cv_c_uint16_t
22903_ACEOF
22904;;
22905 esac
22906
22907ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
22908case $ac_cv_c_uint32_t in #(
22909 no|yes) ;; #(
22910 *)
22911
22912$as_echo "#define _UINT32_T 1" >>confdefs.h
22913
22914
22915cat >>confdefs.h <<_ACEOF
22916#define uint32_t $ac_cv_c_uint32_t
22917_ACEOF
22918;;
22919 esac
22920
22921ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
22922case $ac_cv_c_uint64_t in #(
22923 no|yes) ;; #(
22924 *)
22925
22926$as_echo "#define _UINT64_T 1" >>confdefs.h
22927
22928
22929cat >>confdefs.h <<_ACEOF
22930#define uint64_t $ac_cv_c_uint64_t
22931_ACEOF
22932;;
22933 esac
22934
22935
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22937$as_echo_n "checking for unsigned long long int... " >&6; }
22938if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22939 $as_echo_n "(cached) " >&6
22940else
22941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22942/* end confdefs.h. */
22943
22944 /* For now, do not test the preprocessor; as of 2007 there are too many
22945 implementations with broken preprocessors. Perhaps this can
22946 be revisited in 2012. In the meantime, code should not expect
22947 #if to work with literals wider than 32 bits. */
22948 /* Test literals. */
22949 long long int ll = 9223372036854775807ll;
22950 long long int nll = -9223372036854775807LL;
22951 unsigned long long int ull = 18446744073709551615ULL;
22952 /* Test constant expressions. */
22953 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22954 ? 1 : -1)];
22955 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22956 ? 1 : -1)];
22957 int i = 63;
22958int
22959main ()
22960{
22961/* Test availability of runtime routines for shift and division. */
22962 long long int llmax = 9223372036854775807ll;
22963 unsigned long long int ullmax = 18446744073709551615ull;
22964 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22965 | (llmax / ll) | (llmax % ll)
22966 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22967 | (ullmax / ull) | (ullmax % ull));
22968 ;
22969 return 0;
22970}
22971
22972_ACEOF
22973if ac_fn_c_try_link "$LINENO"; then :
22974 ac_cv_type_unsigned_long_long_int=yes
22975else
22976 ac_cv_type_unsigned_long_long_int=no
22977fi
22978rm -f core conftest.err conftest.$ac_objext \
22979 conftest$ac_exeext conftest.$ac_ext
22980fi
22981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22982$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22983 if test $ac_cv_type_unsigned_long_long_int = yes; then
22984
22985$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22986
22987 fi
22988
22989
22990
22991 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
22992if test "x$ac_cv_type_uintmax_t" = xyes; then :
22993
22994$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
22995
22996else
22997 test $ac_cv_type_unsigned_long_long_int = yes \
22998 && ac_type='unsigned long long int' \
22999 || ac_type='unsigned long int'
23000
23001cat >>confdefs.h <<_ACEOF
23002#define uintmax_t $ac_type
23003_ACEOF
23004
23005fi
23006
23007
23008
23009 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23010if test "x$ac_cv_type_uintptr_t" = xyes; then :
23011
23012$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23013
23014else
23015 for ac_type in 'unsigned int' 'unsigned long int' \
23016 'unsigned long long int'; do
23017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23018/* end confdefs.h. */
23019$ac_includes_default
23020int
23021main ()
23022{
23023static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23024test_array [0] = 0
23025
23026 ;
23027 return 0;
23028}
23029_ACEOF
23030if ac_fn_c_try_compile "$LINENO"; then :
23031
23032cat >>confdefs.h <<_ACEOF
23033#define uintptr_t $ac_type
23034_ACEOF
23035
23036 ac_type=
23037fi
23038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23039 test -z "$ac_type" && break
23040 done
23041fi
23042
23043
23044
23045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23046$as_echo_n "checking for unsigned long long int... " >&6; }
23047if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23048 $as_echo_n "(cached) " >&6
23049else
23050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23051/* end confdefs.h. */
23052
23053 /* For now, do not test the preprocessor; as of 2007 there are too many
23054 implementations with broken preprocessors. Perhaps this can
23055 be revisited in 2012. In the meantime, code should not expect
23056 #if to work with literals wider than 32 bits. */
23057 /* Test literals. */
23058 long long int ll = 9223372036854775807ll;
23059 long long int nll = -9223372036854775807LL;
23060 unsigned long long int ull = 18446744073709551615ULL;
23061 /* Test constant expressions. */
23062 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23063 ? 1 : -1)];
23064 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23065 ? 1 : -1)];
23066 int i = 63;
23067int
23068main ()
23069{
23070/* Test availability of runtime routines for shift and division. */
23071 long long int llmax = 9223372036854775807ll;
23072 unsigned long long int ullmax = 18446744073709551615ull;
23073 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23074 | (llmax / ll) | (llmax % ll)
23075 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23076 | (ullmax / ull) | (ullmax % ull));
23077 ;
23078 return 0;
23079}
23080
23081_ACEOF
23082if ac_fn_c_try_link "$LINENO"; then :
23083 ac_cv_type_unsigned_long_long_int=yes
23084else
23085 ac_cv_type_unsigned_long_long_int=no
23086fi
23087rm -f core conftest.err conftest.$ac_objext \
23088 conftest$ac_exeext conftest.$ac_ext
23089fi
23090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23091$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23092 if test $ac_cv_type_unsigned_long_long_int = yes; then
23093
23094$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23095
23096 fi
23097
23098
cristy3ed852e2009-09-05 21:47:34 +000023099# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23100# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023102$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023103if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023104 $as_echo_n "(cached) " >&6
23105else
cristy8b350f62009-11-15 23:12:43 +000023106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023107/* end confdefs.h. */
23108$ac_includes_default
23109int
23110main ()
23111{
23112static int test_array [1 - 2 * !(((char) -1) < 0)];
23113test_array [0] = 0
23114
23115 ;
23116 return 0;
23117}
23118_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023119if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023120 ac_cv_c_char_unsigned=no
23121else
cristy8b350f62009-11-15 23:12:43 +000023122 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023123fi
cristy3ed852e2009-09-05 21:47:34 +000023124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23125fi
cristy8b350f62009-11-15 23:12:43 +000023126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023127$as_echo "$ac_cv_c_char_unsigned" >&6; }
23128if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023129 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023130
23131fi
23132
23133
23134# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23135# The cast to long int works around a bug in the HP C Compiler
23136# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23137# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23138# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023140$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023141if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023142 $as_echo_n "(cached) " >&6
23143else
cristy8b350f62009-11-15 23:12:43 +000023144 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 +000023145
cristy3ed852e2009-09-05 21:47:34 +000023146else
cristy8b350f62009-11-15 23:12:43 +000023147 if test "$ac_cv_type_signed_short" = yes; then
23148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023149$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023150as_fn_error 77 "cannot compute sizeof (signed short)
23151See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023152 else
23153 ac_cv_sizeof_signed_short=0
23154 fi
23155fi
cristy8b350f62009-11-15 23:12:43 +000023156
cristy3ed852e2009-09-05 21:47:34 +000023157fi
cristy8b350f62009-11-15 23:12:43 +000023158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023159$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23160
23161
23162
23163cat >>confdefs.h <<_ACEOF
23164#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23165_ACEOF
23166
23167
23168
23169# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23170# The cast to long int works around a bug in the HP C Compiler
23171# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23172# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23173# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023175$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023176if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023177 $as_echo_n "(cached) " >&6
23178else
cristy8b350f62009-11-15 23:12:43 +000023179 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 +000023180
cristy3ed852e2009-09-05 21:47:34 +000023181else
cristy8b350f62009-11-15 23:12:43 +000023182 if test "$ac_cv_type_unsigned_short" = yes; then
23183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023185as_fn_error 77 "cannot compute sizeof (unsigned short)
23186See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023187 else
23188 ac_cv_sizeof_unsigned_short=0
23189 fi
23190fi
cristy8b350f62009-11-15 23:12:43 +000023191
cristy3ed852e2009-09-05 21:47:34 +000023192fi
cristy8b350f62009-11-15 23:12:43 +000023193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023194$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23195
23196
23197
23198cat >>confdefs.h <<_ACEOF
23199#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23200_ACEOF
23201
23202
23203
23204# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23205# The cast to long int works around a bug in the HP C Compiler
23206# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23207# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23208# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023210$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023211if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023212 $as_echo_n "(cached) " >&6
23213else
cristy8b350f62009-11-15 23:12:43 +000023214 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 +000023215
cristy3ed852e2009-09-05 21:47:34 +000023216else
cristy8b350f62009-11-15 23:12:43 +000023217 if test "$ac_cv_type_signed_int" = yes; then
23218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023220as_fn_error 77 "cannot compute sizeof (signed int)
23221See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023222 else
23223 ac_cv_sizeof_signed_int=0
23224 fi
23225fi
cristy8b350f62009-11-15 23:12:43 +000023226
cristy3ed852e2009-09-05 21:47:34 +000023227fi
cristy8b350f62009-11-15 23:12:43 +000023228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023229$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23230
23231
23232
23233cat >>confdefs.h <<_ACEOF
23234#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23235_ACEOF
23236
23237
23238
23239# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23240# The cast to long int works around a bug in the HP C Compiler
23241# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23242# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23243# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023245$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023246if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023247 $as_echo_n "(cached) " >&6
23248else
cristy8b350f62009-11-15 23:12:43 +000023249 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 +000023250
cristy3ed852e2009-09-05 21:47:34 +000023251else
cristy8b350f62009-11-15 23:12:43 +000023252 if test "$ac_cv_type_unsigned_int" = yes; then
23253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023255as_fn_error 77 "cannot compute sizeof (unsigned int)
23256See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023257 else
23258 ac_cv_sizeof_unsigned_int=0
23259 fi
23260fi
cristy8b350f62009-11-15 23:12:43 +000023261
cristy3ed852e2009-09-05 21:47:34 +000023262fi
cristy8b350f62009-11-15 23:12:43 +000023263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023264$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23265
23266
23267
23268cat >>confdefs.h <<_ACEOF
23269#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23270_ACEOF
23271
23272
23273
23274# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23275# The cast to long int works around a bug in the HP C Compiler
23276# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23277# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23278# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023280$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023281if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023282 $as_echo_n "(cached) " >&6
23283else
cristy8b350f62009-11-15 23:12:43 +000023284 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 +000023285
cristy3ed852e2009-09-05 21:47:34 +000023286else
cristy8b350f62009-11-15 23:12:43 +000023287 if test "$ac_cv_type_signed_long" = yes; then
23288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023290as_fn_error 77 "cannot compute sizeof (signed long)
23291See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023292 else
23293 ac_cv_sizeof_signed_long=0
23294 fi
23295fi
cristy8b350f62009-11-15 23:12:43 +000023296
cristy3ed852e2009-09-05 21:47:34 +000023297fi
cristy8b350f62009-11-15 23:12:43 +000023298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023299$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23300
23301
23302
23303cat >>confdefs.h <<_ACEOF
23304#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23305_ACEOF
23306
23307
23308
23309# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23310# The cast to long int works around a bug in the HP C Compiler
23311# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23312# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23313# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023315$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023316if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023317 $as_echo_n "(cached) " >&6
23318else
cristy8b350f62009-11-15 23:12:43 +000023319 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 +000023320
cristy3ed852e2009-09-05 21:47:34 +000023321else
cristy8b350f62009-11-15 23:12:43 +000023322 if test "$ac_cv_type_unsigned_long" = yes; then
23323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023325as_fn_error 77 "cannot compute sizeof (unsigned long)
23326See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023327 else
23328 ac_cv_sizeof_unsigned_long=0
23329 fi
23330fi
cristy8b350f62009-11-15 23:12:43 +000023331
cristy3ed852e2009-09-05 21:47:34 +000023332fi
cristy8b350f62009-11-15 23:12:43 +000023333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023334$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23335
23336
23337
23338cat >>confdefs.h <<_ACEOF
23339#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23340_ACEOF
23341
23342
23343
23344# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23345# 'signed long long' is not supported then the value defined is zero.
23346# The cast to long int works around a bug in the HP C Compiler
23347# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23348# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23349# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023351$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023352if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023353 $as_echo_n "(cached) " >&6
23354else
cristy8b350f62009-11-15 23:12:43 +000023355 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 +000023356
cristy3ed852e2009-09-05 21:47:34 +000023357else
cristy8b350f62009-11-15 23:12:43 +000023358 if test "$ac_cv_type_signed_long_long" = yes; then
23359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023361as_fn_error 77 "cannot compute sizeof (signed long long)
23362See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023363 else
23364 ac_cv_sizeof_signed_long_long=0
23365 fi
23366fi
cristy8b350f62009-11-15 23:12:43 +000023367
cristy3ed852e2009-09-05 21:47:34 +000023368fi
cristy8b350f62009-11-15 23:12:43 +000023369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023370$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23371
23372
23373
23374cat >>confdefs.h <<_ACEOF
23375#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23376_ACEOF
23377
23378
23379
23380# Obtain size of a 'unsigned long long' and define as
23381# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23382# supported then the value defined is zero.
23383# The cast to long int works around a bug in the HP C Compiler
23384# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23385# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23386# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023388$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023389if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023390 $as_echo_n "(cached) " >&6
23391else
cristy8b350f62009-11-15 23:12:43 +000023392 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 +000023393
cristy3ed852e2009-09-05 21:47:34 +000023394else
cristy8b350f62009-11-15 23:12:43 +000023395 if test "$ac_cv_type_unsigned_long_long" = yes; then
23396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023398as_fn_error 77 "cannot compute sizeof (unsigned long long)
23399See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023400 else
23401 ac_cv_sizeof_unsigned_long_long=0
23402 fi
23403fi
cristy8b350f62009-11-15 23:12:43 +000023404
cristy3ed852e2009-09-05 21:47:34 +000023405fi
cristy8b350f62009-11-15 23:12:43 +000023406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023407$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23408
23409
23410
23411cat >>confdefs.h <<_ACEOF
23412#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23413_ACEOF
23414
23415
23416
23417# Obtain size of off_t and define as SIZEOF_OFF_T
23418# The cast to long int works around a bug in the HP C Compiler
23419# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23420# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23421# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023423$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023424if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023425 $as_echo_n "(cached) " >&6
23426else
cristy8b350f62009-11-15 23:12:43 +000023427 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 +000023428
cristy3ed852e2009-09-05 21:47:34 +000023429else
cristy8b350f62009-11-15 23:12:43 +000023430 if test "$ac_cv_type_off_t" = yes; then
23431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023433as_fn_error 77 "cannot compute sizeof (off_t)
23434See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023435 else
23436 ac_cv_sizeof_off_t=0
23437 fi
23438fi
cristy8b350f62009-11-15 23:12:43 +000023439
cristy3ed852e2009-09-05 21:47:34 +000023440fi
cristy8b350f62009-11-15 23:12:43 +000023441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023442$as_echo "$ac_cv_sizeof_off_t" >&6; }
23443
23444
23445
23446cat >>confdefs.h <<_ACEOF
23447#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23448_ACEOF
23449
23450
23451
23452# Obtain size of size_t and define as SIZEOF_SIZE_T
23453# The cast to long int works around a bug in the HP C Compiler
23454# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23455# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23456# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023458$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023459if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023460 $as_echo_n "(cached) " >&6
23461else
cristy8b350f62009-11-15 23:12:43 +000023462 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 +000023463
cristy3ed852e2009-09-05 21:47:34 +000023464else
cristy8b350f62009-11-15 23:12:43 +000023465 if test "$ac_cv_type_size_t" = yes; then
23466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023468as_fn_error 77 "cannot compute sizeof (size_t)
23469See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023470 else
23471 ac_cv_sizeof_size_t=0
23472 fi
23473fi
cristy8b350f62009-11-15 23:12:43 +000023474
cristy3ed852e2009-09-05 21:47:34 +000023475fi
cristy8b350f62009-11-15 23:12:43 +000023476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023477$as_echo "$ac_cv_sizeof_size_t" >&6; }
23478
23479
23480
23481cat >>confdefs.h <<_ACEOF
23482#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23483_ACEOF
23484
23485
23486
cristy330e9352010-06-01 18:42:49 +000023487# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23488# The cast to long int works around a bug in the HP C Compiler
23489# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23490# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23491# This bug is HP SR number 8606223364.
23492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23493$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023494if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023495 $as_echo_n "(cached) " >&6
23496else
23497 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23498
23499else
23500 if test "$ac_cv_type_ssize_t" = yes; then
23501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23502$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023503as_fn_error 77 "cannot compute sizeof (ssize_t)
23504See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023505 else
23506 ac_cv_sizeof_ssize_t=0
23507 fi
23508fi
23509
23510fi
23511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23512$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23513
23514
23515
23516cat >>confdefs.h <<_ACEOF
23517#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23518_ACEOF
23519
23520
23521
cristy3ed852e2009-09-05 21:47:34 +000023522# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23523# The cast to long int works around a bug in the HP C Compiler
23524# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23525# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23526# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023528$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023529if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023530 $as_echo_n "(cached) " >&6
23531else
cristy8b350f62009-11-15 23:12:43 +000023532 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 +000023533
cristy3ed852e2009-09-05 21:47:34 +000023534else
cristy8b350f62009-11-15 23:12:43 +000023535 if test "$ac_cv_type_unsigned_intp" = yes; then
23536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023538as_fn_error 77 "cannot compute sizeof (unsigned int*)
23539See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023540 else
23541 ac_cv_sizeof_unsigned_intp=0
23542 fi
23543fi
cristy8b350f62009-11-15 23:12:43 +000023544
cristy3ed852e2009-09-05 21:47:34 +000023545fi
cristy8b350f62009-11-15 23:12:43 +000023546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023547$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23548
23549
23550
23551cat >>confdefs.h <<_ACEOF
23552#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23553_ACEOF
23554
23555
23556
23557#
23558# Compute sized types for current CPU and compiler options.
23559#
23560
cristy8b350f62009-11-15 23:12:43 +000023561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023562$as_echo_n "checking for signed 8-bit type... " >&6; }
23563INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000023564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023565$as_echo "$INT8_T" >&6; }
23566
23567
cristy8b350f62009-11-15 23:12:43 +000023568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023569$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23570UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000023571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023572$as_echo "$UINT8_T" >&6; }
23573
23574
cristy8b350f62009-11-15 23:12:43 +000023575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023576$as_echo_n "checking for signed 16-bit type... " >&6; }
23577INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000023578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023579$as_echo "$INT16_T" >&6; }
23580
23581
cristy8b350f62009-11-15 23:12:43 +000023582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023583$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23584UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000023585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023586$as_echo "$UINT16_T" >&6; }
23587
23588
cristy8b350f62009-11-15 23:12:43 +000023589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023590$as_echo_n "checking for signed 32-bit type... " >&6; }
23591INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023592INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023593if test $ac_cv_sizeof_signed_int -eq 4; then
23594 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023595 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023596elif test $ac_cv_sizeof_signed_long -eq 4; then
23597 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023598 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023599fi
cristy8b350f62009-11-15 23:12:43 +000023600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023601$as_echo "$INT32_T" >&6; }
23602
23603
cristy6d5e20f2011-04-25 13:48:54 +000023604
cristy8b350f62009-11-15 23:12:43 +000023605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023606$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23607UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023608UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023609if test $ac_cv_sizeof_unsigned_int -eq 4; then
23610 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023611 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023612elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23613 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023614 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023615fi
cristy8b350f62009-11-15 23:12:43 +000023616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023617$as_echo "$UINT32_T" >&6; }
23618
23619
cristy6d5e20f2011-04-25 13:48:54 +000023620
cristy8b350f62009-11-15 23:12:43 +000023621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023622$as_echo_n "checking for signed 64-bit type... " >&6; }
23623INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023624INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023625if test $ac_cv_sizeof_signed_long -eq 8; then
23626 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023627 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023628elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23629 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023630 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023631fi
cristy6d5e20f2011-04-25 13:48:54 +000023632case "${build_os}" in
23633 mingw* )
23634 INT64_F='"I64"'
23635 ;;
23636esac
cristy8b350f62009-11-15 23:12:43 +000023637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023638$as_echo "$INT64_T" >&6; }
23639
23640
cristy6d5e20f2011-04-25 13:48:54 +000023641
cristy8b350f62009-11-15 23:12:43 +000023642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023643$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23644UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023645UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023646if test $ac_cv_sizeof_unsigned_long -eq 8; then
23647 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023648 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023649elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23650 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023651 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023652fi
cristy6d5e20f2011-04-25 13:48:54 +000023653case "${build_os}" in
23654 mingw* )
23655 UINT64_F='"I64"'
23656 ;;
23657esac
cristy8b350f62009-11-15 23:12:43 +000023658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023659$as_echo "$UINT64_T" >&6; }
23660
23661
cristy6d5e20f2011-04-25 13:48:54 +000023662
cristy8b350f62009-11-15 23:12:43 +000023663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023664$as_echo_n "checking for unsigned maximum type... " >&6; }
23665UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023666UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023667if test "$UINT64_T" != 'none'; then
23668 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023669 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023670elif test "$UINT32_T" != 'none'; then
23671 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023672 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023673fi
cristy8b350f62009-11-15 23:12:43 +000023674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023675$as_echo "$UINTMAX_T" >&6; }
23676
23677
cristy6d5e20f2011-04-25 13:48:54 +000023678
cristy8b350f62009-11-15 23:12:43 +000023679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023680$as_echo_n "checking for pointer difference type... " >&6; }
23681UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023682UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023683if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23684 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023685 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023686elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23687 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023688 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023689fi
cristy8b350f62009-11-15 23:12:43 +000023690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000023691$as_echo "$UINTPTR_T" >&6; }
23692
23693
cristy6d5e20f2011-04-25 13:48:54 +000023694
cristy8b350f62009-11-15 23:12:43 +000023695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023696$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023698/* end confdefs.h. */
23699
23700int
23701main ()
23702{
23703{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23704 ;
23705 return 0;
23706}
23707_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023708if ac_fn_c_try_compile "$LINENO"; then :
23709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023710$as_echo "yes" >&6; }
23711else
cristy8b350f62009-11-15 23:12:43 +000023712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023713$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023715$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023717/* end confdefs.h. */
23718
23719int
23720main ()
23721{
23722{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23723 ;
23724 return 0;
23725}
23726_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023727if ac_fn_c_try_compile "$LINENO"; then :
23728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023729$as_echo "yes" >&6; }
23730
cristy8b350f62009-11-15 23:12:43 +000023731$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023732
23733else
cristy8b350f62009-11-15 23:12:43 +000023734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023735$as_echo "no" >&6; }
23736
cristy8b350f62009-11-15 23:12:43 +000023737$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023738
23739fi
cristy3ed852e2009-09-05 21:47:34 +000023740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23741fi
cristy3ed852e2009-09-05 21:47:34 +000023742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23743
23744########
23745#
23746# Check for functions
23747#
23748########
cristy73bd4a52010-10-05 11:24:23 +000023749for ac_header in stdlib.h unistd.h
23750do :
23751 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23752ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023753if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023754 cat >>confdefs.h <<_ACEOF
23755#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23756_ACEOF
23757
23758fi
23759
23760done
23761
23762for ac_func in getpagesize
23763do :
23764 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023765if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023766 cat >>confdefs.h <<_ACEOF
23767#define HAVE_GETPAGESIZE 1
23768_ACEOF
23769
23770fi
23771done
23772
23773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23774$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023775if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023776 $as_echo_n "(cached) " >&6
23777else
23778 if test "$cross_compiling" = yes; then :
23779 magick_cv_func_mmap_fileio=no
23780else
23781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23782/* end confdefs.h. */
23783$ac_includes_default
23784/* malloc might have been renamed as rpl_malloc. */
23785#undef malloc
23786
23787/*
23788 This test is derived from GNU Autoconf's similar macro.
23789 The purpose of this test is to verify that files may be memory
23790 mapped, and that memory mapping and file I/O are coherent.
23791
23792 The test creates a test file, memory maps the file, updates
23793 the file using the memory map, and then reads the file using
23794 file I/O to verify that the file contains the updates.
23795*/
23796
23797#include <fcntl.h>
23798#include <sys/mman.h>
23799
23800#if !STDC_HEADERS && !HAVE_STDLIB_H
23801char *malloc ();
23802#endif
23803
23804/* This mess was copied from the GNU getpagesize.h. */
23805#if !HAVE_GETPAGESIZE
23806/* Assume that all systems that can run configure have sys/param.h. */
23807# if !HAVE_SYS_PARAM_H
23808# define HAVE_SYS_PARAM_H 1
23809# endif
23810
23811# ifdef _SC_PAGESIZE
23812# define getpagesize() sysconf(_SC_PAGESIZE)
23813# else /* no _SC_PAGESIZE */
23814# if HAVE_SYS_PARAM_H
23815# include <sys/param.h>
23816# ifdef EXEC_PAGESIZE
23817# define getpagesize() EXEC_PAGESIZE
23818# else /* no EXEC_PAGESIZE */
23819# ifdef NBPG
23820# define getpagesize() NBPG * CLSIZE
23821# ifndef CLSIZE
23822# define CLSIZE 1
23823# endif /* no CLSIZE */
23824# else /* no NBPG */
23825# ifdef NBPC
23826# define getpagesize() NBPC
23827# else /* no NBPC */
23828# ifdef PAGESIZE
23829# define getpagesize() PAGESIZE
23830# endif /* PAGESIZE */
23831# endif /* no NBPC */
23832# endif /* no NBPG */
23833# endif /* no EXEC_PAGESIZE */
23834# else /* no HAVE_SYS_PARAM_H */
23835# define getpagesize() 8192 /* punt totally */
23836# endif /* no HAVE_SYS_PARAM_H */
23837# endif /* no _SC_PAGESIZE */
23838
23839#endif /* no HAVE_GETPAGESIZE */
23840
23841int
23842main ()
23843{
23844 char *data, *data2, *data3;
23845 int i, pagesize;
23846 int fd;
23847
23848 pagesize = getpagesize ();
23849
23850 /* First, make a file with some known garbage in it. */
23851 data = (char *) malloc (pagesize);
23852 if (!data)
23853 exit (1);
23854 for (i = 0; i < pagesize; ++i)
23855 *(data + i) = rand ();
23856 umask (0);
23857 fd = creat ("conftest.mmap", 0600);
23858 if (fd < 0)
23859 exit (1);
23860 if (write (fd, data, pagesize) != pagesize)
23861 exit (1);
23862 close (fd);
23863
23864 /* Mmap the file as read/write/shared and verify that we see the
23865 same garbage. */
23866 fd = open ("conftest.mmap", O_RDWR);
23867 if (fd < 0)
23868 exit (1);
23869 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23870 if (data2 == 0)
23871 exit (1);
23872 for (i = 0; i < pagesize; ++i)
23873 if (*(data + i) != *(data2 + i))
23874 exit (1);
23875
23876 /* Finally, make sure that changes to the mapped area
23877 percolate back to the file as seen by read(). */
23878 for (i = 0; i < pagesize; ++i)
23879 *(data2 + i) = *(data2 + i) + 1;
23880 data3 = (char *) malloc (pagesize);
23881 if (!data3)
23882 exit (1);
23883 if (read (fd, data3, pagesize) != pagesize)
23884 exit (1);
23885 for (i = 0; i < pagesize; ++i)
23886 if (*(data2 + i) != *(data3 + i))
23887 exit (1);
23888 close (fd);
23889 exit (0);
23890}
23891_ACEOF
23892if ac_fn_c_try_run "$LINENO"; then :
23893 magick_cv_func_mmap_fileio=yes
23894else
23895 magick_cv_func_mmap_fileio=no
23896fi
23897rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23898 conftest.$ac_objext conftest.beam conftest.$ac_ext
23899fi
23900
23901fi
23902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23903$as_echo "$magick_cv_func_mmap_fileio" >&6; }
23904if test $magick_cv_func_mmap_fileio = yes; then
23905
23906$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23907
23908fi
23909rm -f conftest.mmap
23910
cristy8b350f62009-11-15 23:12:43 +000023911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023912$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023913if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023914 $as_echo_n "(cached) " >&6
23915else
cristy8b350f62009-11-15 23:12:43 +000023916 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023917 ac_cv_func_closedir_void=yes
23918else
cristy8b350f62009-11-15 23:12:43 +000023919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023920/* end confdefs.h. */
23921$ac_includes_default
23922#include <$ac_header_dirent>
23923#ifndef __cplusplus
23924int closedir ();
23925#endif
23926
23927int
23928main ()
23929{
23930return closedir (opendir (".")) != 0;
23931 ;
23932 return 0;
23933}
23934_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023935if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023936 ac_cv_func_closedir_void=no
23937else
cristy8b350f62009-11-15 23:12:43 +000023938 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000023939fi
cristy8b350f62009-11-15 23:12:43 +000023940rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23941 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023942fi
23943
cristy3ed852e2009-09-05 21:47:34 +000023944fi
cristy8b350f62009-11-15 23:12:43 +000023945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023946$as_echo "$ac_cv_func_closedir_void" >&6; }
23947if test $ac_cv_func_closedir_void = yes; then
23948
cristy8b350f62009-11-15 23:12:43 +000023949$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023950
23951fi
23952
cristycd4c5312009-11-22 01:19:08 +000023953
23954
23955
23956 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000023957do :
23958 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000023959ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23960"
cristy98dddb52010-11-04 00:30:15 +000023961if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023962 cat >>confdefs.h <<_ACEOF
23963#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23964_ACEOF
23965
23966fi
23967
23968done
23969
cristycd4c5312009-11-22 01:19:08 +000023970
23971
23972
23973
23974
23975
23976
cristy3ed852e2009-09-05 21:47:34 +000023977for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000023978do :
23979 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023980if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023981 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023982#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000023983_ACEOF
23984
23985fi
23986done
23987
cristy8b350f62009-11-15 23:12:43 +000023988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000023989$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023990if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023991 $as_echo_n "(cached) " >&6
23992else
cristy8b350f62009-11-15 23:12:43 +000023993 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023994 ac_cv_func_mmap_fixed_mapped=no
23995else
cristy8b350f62009-11-15 23:12:43 +000023996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023997/* end confdefs.h. */
23998$ac_includes_default
23999/* malloc might have been renamed as rpl_malloc. */
24000#undef malloc
24001
24002/* Thanks to Mike Haertel and Jim Avera for this test.
24003 Here is a matrix of mmap possibilities:
24004 mmap private not fixed
24005 mmap private fixed at somewhere currently unmapped
24006 mmap private fixed at somewhere already mapped
24007 mmap shared not fixed
24008 mmap shared fixed at somewhere currently unmapped
24009 mmap shared fixed at somewhere already mapped
24010 For private mappings, we should verify that changes cannot be read()
24011 back from the file, nor mmap's back from the file at a different
24012 address. (There have been systems where private was not correctly
24013 implemented like the infamous i386 svr4.0, and systems where the
24014 VM page cache was not coherent with the file system buffer cache
24015 like early versions of FreeBSD and possibly contemporary NetBSD.)
24016 For shared mappings, we should conversely verify that changes get
24017 propagated back to all the places they're supposed to be.
24018
24019 Grep wants private fixed already mapped.
24020 The main things grep needs to know about mmap are:
24021 * does it exist and is it safe to write into the mmap'd area
24022 * how to use it (BSD variants) */
24023
24024#include <fcntl.h>
24025#include <sys/mman.h>
24026
24027#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24028char *malloc ();
24029#endif
24030
24031/* This mess was copied from the GNU getpagesize.h. */
24032#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024033# ifdef _SC_PAGESIZE
24034# define getpagesize() sysconf(_SC_PAGESIZE)
24035# else /* no _SC_PAGESIZE */
24036# ifdef HAVE_SYS_PARAM_H
24037# include <sys/param.h>
24038# ifdef EXEC_PAGESIZE
24039# define getpagesize() EXEC_PAGESIZE
24040# else /* no EXEC_PAGESIZE */
24041# ifdef NBPG
24042# define getpagesize() NBPG * CLSIZE
24043# ifndef CLSIZE
24044# define CLSIZE 1
24045# endif /* no CLSIZE */
24046# else /* no NBPG */
24047# ifdef NBPC
24048# define getpagesize() NBPC
24049# else /* no NBPC */
24050# ifdef PAGESIZE
24051# define getpagesize() PAGESIZE
24052# endif /* PAGESIZE */
24053# endif /* no NBPC */
24054# endif /* no NBPG */
24055# endif /* no EXEC_PAGESIZE */
24056# else /* no HAVE_SYS_PARAM_H */
24057# define getpagesize() 8192 /* punt totally */
24058# endif /* no HAVE_SYS_PARAM_H */
24059# endif /* no _SC_PAGESIZE */
24060
24061#endif /* no HAVE_GETPAGESIZE */
24062
24063int
24064main ()
24065{
24066 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024067 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024068 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024069 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024070
24071 pagesize = getpagesize ();
24072
24073 /* First, make a file with some known garbage in it. */
24074 data = (char *) malloc (pagesize);
24075 if (!data)
24076 return 1;
24077 for (i = 0; i < pagesize; ++i)
24078 *(data + i) = rand ();
24079 umask (0);
24080 fd = creat ("conftest.mmap", 0600);
24081 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024082 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024083 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024084 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024085 close (fd);
24086
cristycd4c5312009-11-22 01:19:08 +000024087 /* Next, check that the tail of a page is zero-filled. File must have
24088 non-zero length, otherwise we risk SIGBUS for entire page. */
24089 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24090 if (fd2 < 0)
24091 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024092 cdata2 = "";
24093 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024094 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024095 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024096 if (data2 == MAP_FAILED)
24097 return 6;
24098 for (i = 0; i < pagesize; ++i)
24099 if (*(data2 + i))
24100 return 7;
24101 close (fd2);
24102 if (munmap (data2, pagesize))
24103 return 8;
24104
cristy3ed852e2009-09-05 21:47:34 +000024105 /* Next, try to mmap the file at a fixed address which already has
24106 something else allocated at it. If we can, also make sure that
24107 we see the same garbage. */
24108 fd = open ("conftest.mmap", O_RDWR);
24109 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024110 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024111 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24112 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024113 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024114 for (i = 0; i < pagesize; ++i)
24115 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024116 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024117
24118 /* Finally, make sure that changes to the mapped area do not
24119 percolate back to the file as seen by read(). (This is a bug on
24120 some variants of i386 svr4.0.) */
24121 for (i = 0; i < pagesize; ++i)
24122 *(data2 + i) = *(data2 + i) + 1;
24123 data3 = (char *) malloc (pagesize);
24124 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024125 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024126 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024127 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024128 for (i = 0; i < pagesize; ++i)
24129 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024130 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024131 close (fd);
24132 return 0;
24133}
24134_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024135if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024136 ac_cv_func_mmap_fixed_mapped=yes
24137else
cristy8b350f62009-11-15 23:12:43 +000024138 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024139fi
cristy8b350f62009-11-15 23:12:43 +000024140rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24141 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024142fi
24143
cristy3ed852e2009-09-05 21:47:34 +000024144fi
cristy8b350f62009-11-15 23:12:43 +000024145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024146$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24147if test $ac_cv_func_mmap_fixed_mapped = yes; then
24148
cristy8b350f62009-11-15 23:12:43 +000024149$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024150
24151fi
cristycd4c5312009-11-22 01:19:08 +000024152rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024153
cristy3ed852e2009-09-05 21:47:34 +000024154for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024155do :
24156 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024157if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024158 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024159#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024160_ACEOF
24161
24162fi
24163
24164done
24165
cristy3ed852e2009-09-05 21:47:34 +000024166for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024167do :
24168 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24169ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024170if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024171 cat >>confdefs.h <<_ACEOF
24172#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24173_ACEOF
24174
24175fi
24176done
24177
24178if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024180$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024181if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024182 $as_echo_n "(cached) " >&6
24183else
cristy8b350f62009-11-15 23:12:43 +000024184 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024185 ac_cv_func_fork_works=cross
24186else
cristy8b350f62009-11-15 23:12:43 +000024187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024188/* end confdefs.h. */
24189$ac_includes_default
24190int
24191main ()
24192{
24193
24194 /* By Ruediger Kuhlmann. */
24195 return fork () < 0;
24196
24197 ;
24198 return 0;
24199}
24200_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024201if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024202 ac_cv_func_fork_works=yes
24203else
cristy8b350f62009-11-15 23:12:43 +000024204 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024205fi
cristy8b350f62009-11-15 23:12:43 +000024206rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24207 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024208fi
24209
cristy3ed852e2009-09-05 21:47:34 +000024210fi
cristy8b350f62009-11-15 23:12:43 +000024211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024212$as_echo "$ac_cv_func_fork_works" >&6; }
24213
24214else
24215 ac_cv_func_fork_works=$ac_cv_func_fork
24216fi
24217if test "x$ac_cv_func_fork_works" = xcross; then
24218 case $host in
24219 *-*-amigaos* | *-*-msdosdjgpp*)
24220 # Override, as these systems have only a dummy fork() stub
24221 ac_cv_func_fork_works=no
24222 ;;
24223 *)
24224 ac_cv_func_fork_works=yes
24225 ;;
24226 esac
cristy8b350f62009-11-15 23:12:43 +000024227 { $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 +000024228$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24229fi
24230ac_cv_func_vfork_works=$ac_cv_func_vfork
24231if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024233$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024234if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024235 $as_echo_n "(cached) " >&6
24236else
cristy8b350f62009-11-15 23:12:43 +000024237 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024238 ac_cv_func_vfork_works=cross
24239else
cristy8b350f62009-11-15 23:12:43 +000024240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024241/* end confdefs.h. */
24242/* Thanks to Paul Eggert for this test. */
24243$ac_includes_default
24244#include <sys/wait.h>
24245#ifdef HAVE_VFORK_H
24246# include <vfork.h>
24247#endif
24248/* On some sparc systems, changes by the child to local and incoming
24249 argument registers are propagated back to the parent. The compiler
24250 is told about this with #include <vfork.h>, but some compilers
24251 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24252 static variable whose address is put into a register that is
24253 clobbered by the vfork. */
24254static void
24255#ifdef __cplusplus
24256sparc_address_test (int arg)
24257# else
24258sparc_address_test (arg) int arg;
24259#endif
24260{
24261 static pid_t child;
24262 if (!child) {
24263 child = vfork ();
24264 if (child < 0) {
24265 perror ("vfork");
24266 _exit(2);
24267 }
24268 if (!child) {
24269 arg = getpid();
24270 write(-1, "", 0);
24271 _exit (arg);
24272 }
24273 }
24274}
24275
24276int
24277main ()
24278{
24279 pid_t parent = getpid ();
24280 pid_t child;
24281
24282 sparc_address_test (0);
24283
24284 child = vfork ();
24285
24286 if (child == 0) {
24287 /* Here is another test for sparc vfork register problems. This
24288 test uses lots of local variables, at least as many local
24289 variables as main has allocated so far including compiler
24290 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24291 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24292 reuse the register of parent for one of the local variables,
24293 since it will think that parent can't possibly be used any more
24294 in this routine. Assigning to the local variable will thus
24295 munge parent in the parent process. */
24296 pid_t
24297 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24298 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24299 /* Convince the compiler that p..p7 are live; otherwise, it might
24300 use the same hardware register for all 8 local variables. */
24301 if (p != p1 || p != p2 || p != p3 || p != p4
24302 || p != p5 || p != p6 || p != p7)
24303 _exit(1);
24304
24305 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24306 from child file descriptors. If the child closes a descriptor
24307 before it execs or exits, this munges the parent's descriptor
24308 as well. Test for this by closing stdout in the child. */
24309 _exit(close(fileno(stdout)) != 0);
24310 } else {
24311 int status;
24312 struct stat st;
24313
24314 while (wait(&status) != child)
24315 ;
24316 return (
24317 /* Was there some problem with vforking? */
24318 child < 0
24319
24320 /* Did the child fail? (This shouldn't happen.) */
24321 || status
24322
24323 /* Did the vfork/compiler bug occur? */
24324 || parent != getpid()
24325
24326 /* Did the file descriptor bug occur? */
24327 || fstat(fileno(stdout), &st) != 0
24328 );
24329 }
24330}
24331_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024332if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024333 ac_cv_func_vfork_works=yes
24334else
cristy8b350f62009-11-15 23:12:43 +000024335 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024336fi
cristy8b350f62009-11-15 23:12:43 +000024337rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24338 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024339fi
24340
cristy3ed852e2009-09-05 21:47:34 +000024341fi
cristy8b350f62009-11-15 23:12:43 +000024342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024343$as_echo "$ac_cv_func_vfork_works" >&6; }
24344
24345fi;
24346if test "x$ac_cv_func_fork_works" = xcross; then
24347 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024348 { $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 +000024349$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24350fi
24351
24352if test "x$ac_cv_func_vfork_works" = xyes; then
24353
cristy8b350f62009-11-15 23:12:43 +000024354$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024355
24356else
24357
cristy8b350f62009-11-15 23:12:43 +000024358$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024359
24360fi
24361if test "x$ac_cv_func_fork_works" = xyes; then
24362
cristy8b350f62009-11-15 23:12:43 +000024363$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024364
24365fi
24366
cristy8b350f62009-11-15 23:12:43 +000024367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024368$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024369if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024370 $as_echo_n "(cached) " >&6
24371else
cristy8b350f62009-11-15 23:12:43 +000024372 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024373 ac_cv_func_memcmp_working=no
24374else
cristy8b350f62009-11-15 23:12:43 +000024375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024376/* end confdefs.h. */
24377$ac_includes_default
24378int
24379main ()
24380{
24381
24382 /* Some versions of memcmp are not 8-bit clean. */
24383 char c0 = '\100', c1 = '\200', c2 = '\201';
24384 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24385 return 1;
24386
24387 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24388 or more and with at least one buffer not starting on a 4-byte boundary.
24389 William Lewis provided this test program. */
24390 {
24391 char foo[21];
24392 char bar[21];
24393 int i;
24394 for (i = 0; i < 4; i++)
24395 {
24396 char *a = foo + i;
24397 char *b = bar + i;
24398 strcpy (a, "--------01111111");
24399 strcpy (b, "--------10000000");
24400 if (memcmp (a, b, 16) >= 0)
24401 return 1;
24402 }
24403 return 0;
24404 }
24405
24406 ;
24407 return 0;
24408}
24409_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024410if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024411 ac_cv_func_memcmp_working=yes
24412else
cristy8b350f62009-11-15 23:12:43 +000024413 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024414fi
cristy8b350f62009-11-15 23:12:43 +000024415rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24416 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024417fi
24418
cristy3ed852e2009-09-05 21:47:34 +000024419fi
cristy8b350f62009-11-15 23:12:43 +000024420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024421$as_echo "$ac_cv_func_memcmp_working" >&6; }
24422test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24423 *" memcmp.$ac_objext "* ) ;;
24424 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24425 ;;
24426esac
24427
24428
cristy3ed852e2009-09-05 21:47:34 +000024429for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024430do :
24431 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24432ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024433if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024434 cat >>confdefs.h <<_ACEOF
24435#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24436_ACEOF
24437
24438fi
24439
24440done
24441
cristy8b350f62009-11-15 23:12:43 +000024442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024443$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024444if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024445 $as_echo_n "(cached) " >&6
24446else
24447 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24448 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24449 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024451/* end confdefs.h. */
24452$ac_includes_default
24453#ifdef HAVE_SYS_SELECT_H
24454# include <sys/select.h>
24455#endif
24456#ifdef HAVE_SYS_SOCKET_H
24457# include <sys/socket.h>
24458#endif
24459
24460int
24461main ()
24462{
24463extern int select ($ac_arg1,
24464 $ac_arg234, $ac_arg234, $ac_arg234,
24465 $ac_arg5);
24466 ;
24467 return 0;
24468}
24469_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024470if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024471 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024472fi
cristy3ed852e2009-09-05 21:47:34 +000024473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24474 done
24475 done
24476done
24477# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024478: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024479
24480fi
cristy8b350f62009-11-15 23:12:43 +000024481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024482$as_echo "$ac_cv_func_select_args" >&6; }
24483ac_save_IFS=$IFS; IFS=','
24484set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24485IFS=$ac_save_IFS
24486shift
24487
24488cat >>confdefs.h <<_ACEOF
24489#define SELECT_TYPE_ARG1 $1
24490_ACEOF
24491
24492
24493cat >>confdefs.h <<_ACEOF
24494#define SELECT_TYPE_ARG234 ($2)
24495_ACEOF
24496
24497
24498cat >>confdefs.h <<_ACEOF
24499#define SELECT_TYPE_ARG5 ($3)
24500_ACEOF
24501
24502rm -f conftest*
24503
cristyda16f162011-02-19 23:52:17 +000024504if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024505 $as_echo_n "(cached) " >&6
24506else
24507 ac_cv_func_setvbuf_reversed=no
24508fi
24509
24510
cristy8b350f62009-11-15 23:12:43 +000024511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024512$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024513if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024514 $as_echo_n "(cached) " >&6
24515else
cristy8b350f62009-11-15 23:12:43 +000024516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024517/* end confdefs.h. */
24518#include <sys/types.h>
24519#include <signal.h>
24520
24521int
24522main ()
24523{
24524return *(signal (0, 0)) (0) == 1;
24525 ;
24526 return 0;
24527}
24528_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024529if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024530 ac_cv_type_signal=int
24531else
cristy8b350f62009-11-15 23:12:43 +000024532 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024533fi
cristy3ed852e2009-09-05 21:47:34 +000024534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24535fi
cristy8b350f62009-11-15 23:12:43 +000024536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024537$as_echo "$ac_cv_type_signal" >&6; }
24538
24539cat >>confdefs.h <<_ACEOF
24540#define RETSIGTYPE $ac_cv_type_signal
24541_ACEOF
24542
24543
cristy8b350f62009-11-15 23:12:43 +000024544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024545$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024546if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024547 $as_echo_n "(cached) " >&6
24548else
cristy8b350f62009-11-15 23:12:43 +000024549 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024550 ac_cv_func_strtod=no
24551else
cristy8b350f62009-11-15 23:12:43 +000024552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024553/* end confdefs.h. */
24554
24555$ac_includes_default
24556#ifndef strtod
24557double strtod ();
24558#endif
24559int
24560main()
24561{
24562 {
24563 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24564 char *string = " +69";
24565 char *term;
24566 double value;
24567 value = strtod (string, &term);
24568 if (value != 69 || term != (string + 4))
24569 return 1;
24570 }
24571
24572 {
24573 /* Under Solaris 2.4, strtod returns the wrong value for the
24574 terminating character under some conditions. */
24575 char *string = "NaN";
24576 char *term;
24577 strtod (string, &term);
24578 if (term != string && *(term - 1) == 0)
24579 return 1;
24580 }
24581 return 0;
24582}
24583
24584_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024585if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024586 ac_cv_func_strtod=yes
24587else
cristy8b350f62009-11-15 23:12:43 +000024588 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024589fi
cristy8b350f62009-11-15 23:12:43 +000024590rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24591 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024592fi
24593
cristy3ed852e2009-09-05 21:47:34 +000024594fi
cristy8b350f62009-11-15 23:12:43 +000024595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024596$as_echo "$ac_cv_func_strtod" >&6; }
24597if test $ac_cv_func_strtod = no; then
24598 case " $LIBOBJS " in
24599 *" strtod.$ac_objext "* ) ;;
24600 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24601 ;;
24602esac
24603
cristy8b350f62009-11-15 23:12:43 +000024604ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024605if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024606
cristy3ed852e2009-09-05 21:47:34 +000024607fi
24608
cristy3ed852e2009-09-05 21:47:34 +000024609if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024611$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024612if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024613 $as_echo_n "(cached) " >&6
24614else
24615 ac_check_lib_save_LIBS=$LIBS
24616LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024618/* end confdefs.h. */
24619
24620/* Override any GCC internal prototype to avoid an error.
24621 Use char because int might match the return type of a GCC
24622 builtin and then its argument prototype would still apply. */
24623#ifdef __cplusplus
24624extern "C"
24625#endif
24626char pow ();
24627int
24628main ()
24629{
24630return pow ();
24631 ;
24632 return 0;
24633}
24634_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024635if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024636 ac_cv_lib_m_pow=yes
24637else
cristy8b350f62009-11-15 23:12:43 +000024638 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024639fi
cristy8b350f62009-11-15 23:12:43 +000024640rm -f core conftest.err conftest.$ac_objext \
24641 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024642LIBS=$ac_check_lib_save_LIBS
24643fi
cristy8b350f62009-11-15 23:12:43 +000024644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024645$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024646if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024647 POW_LIB=-lm
24648else
cristy8b350f62009-11-15 23:12:43 +000024649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024650$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24651fi
24652
24653fi
24654
24655fi
24656
cristy3ed852e2009-09-05 21:47:34 +000024657for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024658do :
24659 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024660if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024661 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024662#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024663_ACEOF
24664
cristy8b350f62009-11-15 23:12:43 +000024665ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024666if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024667
cristy8b350f62009-11-15 23:12:43 +000024668$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024669
24670fi
24671
24672fi
24673done
24674
24675
24676
cristy161b9262010-03-20 19:34:32 +000024677#
24678# Find math library
24679#
24680MATH_LIBS=''
24681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24682$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024683if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024684 $as_echo_n "(cached) " >&6
24685else
24686 ac_check_lib_save_LIBS=$LIBS
24687LIBS="-lm $LIBS"
24688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24689/* end confdefs.h. */
24690
24691/* Override any GCC internal prototype to avoid an error.
24692 Use char because int might match the return type of a GCC
24693 builtin and then its argument prototype would still apply. */
24694#ifdef __cplusplus
24695extern "C"
24696#endif
24697char sqrt ();
24698int
24699main ()
24700{
24701return sqrt ();
24702 ;
24703 return 0;
24704}
24705_ACEOF
24706if ac_fn_c_try_link "$LINENO"; then :
24707 ac_cv_lib_m_sqrt=yes
24708else
24709 ac_cv_lib_m_sqrt=no
24710fi
24711rm -f core conftest.err conftest.$ac_objext \
24712 conftest$ac_exeext conftest.$ac_ext
24713LIBS=$ac_check_lib_save_LIBS
24714fi
24715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24716$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024717if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024718 MATH_LIBS="-lm"
24719fi
24720
24721LIBS="$MATH_LIBS $LIBS"
24722
24723
cristyb33454f2011-08-03 02:10:45 +000024724for ac_func in acosh asinh atanh atoll atexit cabs carg cimag creal 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 newlocale _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 strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000024725do :
24726 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24727ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024728if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024729 cat >>confdefs.h <<_ACEOF
24730#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24731_ACEOF
24732
24733fi
24734done
24735
24736
cristye43a45e2009-09-28 14:49:00 +000024737#
24738# Check for clock_gettime().
24739#
cristy8b350f62009-11-15 23:12:43 +000024740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024741$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024742if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024743 $as_echo_n "(cached) " >&6
24744else
24745 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000024746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024747/* end confdefs.h. */
24748
24749/* Override any GCC internal prototype to avoid an error.
24750 Use char because int might match the return type of a GCC
24751 builtin and then its argument prototype would still apply. */
24752#ifdef __cplusplus
24753extern "C"
24754#endif
24755char clock_gettime ();
24756int
24757main ()
24758{
24759return clock_gettime ();
24760 ;
24761 return 0;
24762}
24763_ACEOF
24764for ac_lib in '' rt; do
24765 if test -z "$ac_lib"; then
24766 ac_res="none required"
24767 else
24768 ac_res=-l$ac_lib
24769 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24770 fi
cristy8b350f62009-11-15 23:12:43 +000024771 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024772 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000024773fi
cristy8b350f62009-11-15 23:12:43 +000024774rm -f core conftest.err conftest.$ac_objext \
24775 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024776 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024777 break
24778fi
24779done
cristyda16f162011-02-19 23:52:17 +000024780if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024781
cristye43a45e2009-09-28 14:49:00 +000024782else
24783 ac_cv_search_clock_gettime=no
24784fi
24785rm conftest.$ac_ext
24786LIBS=$ac_func_search_save_LIBS
24787fi
cristy8b350f62009-11-15 23:12:43 +000024788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024789$as_echo "$ac_cv_search_clock_gettime" >&6; }
24790ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000024791if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000024792 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24793
24794
cristy8b350f62009-11-15 23:12:43 +000024795$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024796
cristy8b350f62009-11-15 23:12:43 +000024797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000024798$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024800/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000024801
24802 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000024803int
24804main ()
24805{
24806clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000024807 ;
24808 return 0;
24809}
24810_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024811if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024812
cristy8b350f62009-11-15 23:12:43 +000024813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000024814$as_echo "yes" >&6; }
24815
cristy8b350f62009-11-15 23:12:43 +000024816$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024817
24818
24819else
cristy8b350f62009-11-15 23:12:43 +000024820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000024821$as_echo "no" >&6; }
24822
24823fi
cristye43a45e2009-09-28 14:49:00 +000024824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24825
24826else
24827
cristy8b350f62009-11-15 23:12:43 +000024828 for ac_func in gettimeofday ftime
24829do :
24830 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24831ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024832if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000024833 cat >>confdefs.h <<_ACEOF
24834#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24835_ACEOF
24836 break
24837fi
24838done
24839
24840
24841
24842fi
24843
24844
cristy3ed852e2009-09-05 21:47:34 +000024845########
24846#
24847# Check for function prototypes
24848#
24849########
24850
cristy8b350f62009-11-15 23:12:43 +000024851ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000024852#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024853"
cristyda16f162011-02-19 23:52:17 +000024854if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024855 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024856else
cristy8b350f62009-11-15 23:12:43 +000024857 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024858fi
24859
cristy3ed852e2009-09-05 21:47:34 +000024860cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024861#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024862_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024863ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000024864#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024865"
cristyda16f162011-02-19 23:52:17 +000024866if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024867 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024868else
cristy8b350f62009-11-15 23:12:43 +000024869 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024870fi
24871
cristy3ed852e2009-09-05 21:47:34 +000024872cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024873#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024874_ACEOF
24875
24876
cristy8b350f62009-11-15 23:12:43 +000024877ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000024878#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000024879"
cristyda16f162011-02-19 23:52:17 +000024880if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024881 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024882else
cristy8b350f62009-11-15 23:12:43 +000024883 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024884fi
24885
cristy3ed852e2009-09-05 21:47:34 +000024886cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024887#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024888_ACEOF
24889
24890
cristy8b350f62009-11-15 23:12:43 +000024891ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000024892#include <stdio.h>
24893#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000024894"
cristyda16f162011-02-19 23:52:17 +000024895if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024896 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024897else
cristy8b350f62009-11-15 23:12:43 +000024898 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024899fi
24900
cristy3ed852e2009-09-05 21:47:34 +000024901cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024902#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024903_ACEOF
24904
24905
cristy3ed852e2009-09-05 21:47:34 +000024906########
24907#
24908# C++ Support Tests (For Magick++)
24909#
24910########
24911have_magick_plus_plus='no'
24912if test "$with_magick_plus_plus" = 'yes'; then
24913 OLIBS="$LIBS"
24914 LIBS=''
24915 ac_ext=cpp
24916ac_cpp='$CXXCPP $CPPFLAGS'
24917ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24918ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24919ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24920
24921
24922 # Full set of headers used...
24923 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
24924 # functional iomanip iosfwd iostream iterator list string strstream utility
24925 ac_ext=cpp
24926ac_cpp='$CXXCPP $CPPFLAGS'
24927ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24928ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24929ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24930
24931 ac_ext=cpp
24932ac_cpp='$CXXCPP $CPPFLAGS'
24933ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24934ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24935ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24936if test -z "$CXX"; then
24937 if test -n "$CCC"; then
24938 CXX=$CCC
24939 else
24940 if test -n "$ac_tool_prefix"; then
24941 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24942 do
24943 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24944set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024946$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024947if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024948 $as_echo_n "(cached) " >&6
24949else
24950 if test -n "$CXX"; then
24951 ac_cv_prog_CXX="$CXX" # Let the user override the test.
24952else
24953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24954for as_dir in $PATH
24955do
24956 IFS=$as_save_IFS
24957 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024958 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24960 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000024961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024962 break 2
24963 fi
24964done
cristy8b350f62009-11-15 23:12:43 +000024965 done
cristy3ed852e2009-09-05 21:47:34 +000024966IFS=$as_save_IFS
24967
24968fi
24969fi
24970CXX=$ac_cv_prog_CXX
24971if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000024972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000024973$as_echo "$CXX" >&6; }
24974else
cristy8b350f62009-11-15 23:12:43 +000024975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024976$as_echo "no" >&6; }
24977fi
24978
24979
24980 test -n "$CXX" && break
24981 done
24982fi
24983if test -z "$CXX"; then
24984 ac_ct_CXX=$CXX
24985 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24986do
24987 # Extract the first word of "$ac_prog", so it can be a program name with args.
24988set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024990$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024991if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024992 $as_echo_n "(cached) " >&6
24993else
24994 if test -n "$ac_ct_CXX"; then
24995 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
24996else
24997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24998for as_dir in $PATH
24999do
25000 IFS=$as_save_IFS
25001 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025002 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25004 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025006 break 2
25007 fi
25008done
cristy8b350f62009-11-15 23:12:43 +000025009 done
cristy3ed852e2009-09-05 21:47:34 +000025010IFS=$as_save_IFS
25011
25012fi
25013fi
25014ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25015if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025017$as_echo "$ac_ct_CXX" >&6; }
25018else
cristy8b350f62009-11-15 23:12:43 +000025019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025020$as_echo "no" >&6; }
25021fi
25022
25023
25024 test -n "$ac_ct_CXX" && break
25025done
25026
25027 if test "x$ac_ct_CXX" = x; then
25028 CXX="g++"
25029 else
25030 case $cross_compiling:$ac_tool_warned in
25031yes:)
cristy8b350f62009-11-15 23:12:43 +000025032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25034ac_tool_warned=yes ;;
25035esac
25036 CXX=$ac_ct_CXX
25037 fi
25038fi
25039
25040 fi
25041fi
25042# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025043$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025044set X $ac_compile
25045ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025046for ac_option in --version -v -V -qversion; do
25047 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025048case "(($ac_try" in
25049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25050 *) ac_try_echo=$ac_try;;
25051esac
cristy8b350f62009-11-15 23:12:43 +000025052eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25053$as_echo "$ac_try_echo"; } >&5
25054 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025055 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025056 if test -s conftest.err; then
25057 sed '10a\
25058... rest of stderr output deleted ...
25059 10q' conftest.err >conftest.er1
25060 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025061 fi
cristycd4c5312009-11-22 01:19:08 +000025062 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25064 test $ac_status = 0; }
25065done
cristy3ed852e2009-09-05 21:47:34 +000025066
cristy8b350f62009-11-15 23:12:43 +000025067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025068$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025069if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025070 $as_echo_n "(cached) " >&6
25071else
cristy8b350f62009-11-15 23:12:43 +000025072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025073/* end confdefs.h. */
25074
25075int
25076main ()
25077{
25078#ifndef __GNUC__
25079 choke me
25080#endif
25081
25082 ;
25083 return 0;
25084}
25085_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025086if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025087 ac_compiler_gnu=yes
25088else
cristy8b350f62009-11-15 23:12:43 +000025089 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025090fi
cristy3ed852e2009-09-05 21:47:34 +000025091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25092ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25093
25094fi
cristy8b350f62009-11-15 23:12:43 +000025095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025096$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25097if test $ac_compiler_gnu = yes; then
25098 GXX=yes
25099else
25100 GXX=
25101fi
25102ac_test_CXXFLAGS=${CXXFLAGS+set}
25103ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025105$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025106if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025107 $as_echo_n "(cached) " >&6
25108else
25109 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25110 ac_cxx_werror_flag=yes
25111 ac_cv_prog_cxx_g=no
25112 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025114/* end confdefs.h. */
25115
25116int
25117main ()
25118{
25119
25120 ;
25121 return 0;
25122}
25123_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025124if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025125 ac_cv_prog_cxx_g=yes
25126else
cristy8b350f62009-11-15 23:12:43 +000025127 CXXFLAGS=""
25128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025129/* end confdefs.h. */
25130
25131int
25132main ()
25133{
25134
25135 ;
25136 return 0;
25137}
25138_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025139if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025140
cristy8b350f62009-11-15 23:12:43 +000025141else
25142 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025143 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025145/* end confdefs.h. */
25146
25147int
25148main ()
25149{
25150
25151 ;
25152 return 0;
25153}
25154_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025155if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025156 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025157fi
cristy3ed852e2009-09-05 21:47:34 +000025158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25159fi
cristy3ed852e2009-09-05 21:47:34 +000025160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25161fi
cristy3ed852e2009-09-05 21:47:34 +000025162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25163 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25164fi
cristy8b350f62009-11-15 23:12:43 +000025165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025166$as_echo "$ac_cv_prog_cxx_g" >&6; }
25167if test "$ac_test_CXXFLAGS" = set; then
25168 CXXFLAGS=$ac_save_CXXFLAGS
25169elif test $ac_cv_prog_cxx_g = yes; then
25170 if test "$GXX" = yes; then
25171 CXXFLAGS="-g -O2"
25172 else
25173 CXXFLAGS="-g"
25174 fi
25175else
25176 if test "$GXX" = yes; then
25177 CXXFLAGS="-O2"
25178 else
25179 CXXFLAGS=
25180 fi
25181fi
25182ac_ext=cpp
25183ac_cpp='$CXXCPP $CPPFLAGS'
25184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25187
cristy73bd4a52010-10-05 11:24:23 +000025188depcc="$CXX" am_compiler_list=
25189
25190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25191$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025192if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025193 $as_echo_n "(cached) " >&6
25194else
25195 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25196 # We make a subdir and do the tests there. Otherwise we can end up
25197 # making bogus files that we don't know about and never remove. For
25198 # instance it was reported that on HP-UX the gcc test will end up
25199 # making a dummy file named `D' -- because `-MD' means `put the output
25200 # in D'.
25201 mkdir conftest.dir
25202 # Copy depcomp to subdir because otherwise we won't find it if we're
25203 # using a relative directory.
25204 cp "$am_depcomp" conftest.dir
25205 cd conftest.dir
25206 # We will build objects and dependencies in a subdirectory because
25207 # it helps to detect inapplicable dependency modes. For instance
25208 # both Tru64's cc and ICC support -MD to output dependencies as a
25209 # side effect of compilation, but ICC will put the dependencies in
25210 # the current directory while Tru64 will put them in the object
25211 # directory.
25212 mkdir sub
25213
25214 am_cv_CXX_dependencies_compiler_type=none
25215 if test "$am_compiler_list" = ""; then
25216 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25217 fi
25218 am__universal=false
25219 case " $depcc " in #(
25220 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25221 esac
25222
25223 for depmode in $am_compiler_list; do
25224 # Setup a source with many dependencies, because some compilers
25225 # like to wrap large dependency lists on column 80 (with \), and
25226 # we should not choose a depcomp mode which is confused by this.
25227 #
25228 # We need to recreate these files for each test, as the compiler may
25229 # overwrite some of them when testing with obscure command lines.
25230 # This happens at least with the AIX C compiler.
25231 : > sub/conftest.c
25232 for i in 1 2 3 4 5 6; do
25233 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25234 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25235 # Solaris 8's {/usr,}/bin/sh.
25236 touch sub/conftst$i.h
25237 done
25238 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25239
25240 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25241 # mode. It turns out that the SunPro C++ compiler does not properly
25242 # handle `-M -o', and we need to detect this. Also, some Intel
25243 # versions had trouble with output in subdirs
25244 am__obj=sub/conftest.${OBJEXT-o}
25245 am__minus_obj="-o $am__obj"
25246 case $depmode in
25247 gcc)
25248 # This depmode causes a compiler race in universal mode.
25249 test "$am__universal" = false || continue
25250 ;;
25251 nosideeffect)
25252 # after this tag, mechanisms are not by side-effect, so they'll
25253 # only be used when explicitly requested
25254 if test "x$enable_dependency_tracking" = xyes; then
25255 continue
25256 else
25257 break
25258 fi
25259 ;;
25260 msvisualcpp | msvcmsys)
25261 # This compiler won't grok `-c -o', but also, the minuso test has
25262 # not run yet. These depmodes are late enough in the game, and
25263 # so weak that their functioning should not be impacted.
25264 am__obj=conftest.${OBJEXT-o}
25265 am__minus_obj=
25266 ;;
25267 none) break ;;
25268 esac
25269 if depmode=$depmode \
25270 source=sub/conftest.c object=$am__obj \
25271 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25272 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25273 >/dev/null 2>conftest.err &&
25274 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25275 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25276 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25277 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25278 # icc doesn't choke on unknown options, it will just issue warnings
25279 # or remarks (even with -Werror). So we grep stderr for any message
25280 # that says an option was ignored or not supported.
25281 # When given -MP, icc 7.0 and 7.1 complain thusly:
25282 # icc: Command line warning: ignoring option '-M'; no argument required
25283 # The diagnosis changed in icc 8.0:
25284 # icc: Command line remark: option '-MP' not supported
25285 if (grep 'ignoring option' conftest.err ||
25286 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25287 am_cv_CXX_dependencies_compiler_type=$depmode
25288 break
25289 fi
25290 fi
25291 done
25292
25293 cd ..
25294 rm -rf conftest.dir
25295else
25296 am_cv_CXX_dependencies_compiler_type=none
25297fi
25298
25299fi
25300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25301$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25302CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25303
25304 if
25305 test "x$enable_dependency_tracking" != xno \
25306 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25307 am__fastdepCXX_TRUE=
25308 am__fastdepCXX_FALSE='#'
25309else
25310 am__fastdepCXX_TRUE='#'
25311 am__fastdepCXX_FALSE=
25312fi
25313
25314
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25316$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025317if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025318 $as_echo_n "(cached) " >&6
25319else
25320
25321 ac_ext=cpp
25322ac_cpp='$CXXCPP $CPPFLAGS'
25323ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25324ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25325ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25326
25327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25328/* end confdefs.h. */
25329
25330int f(int x){return 1;}
25331int f(char x){return 1;}
25332int f(bool x){return 1;}
25333
25334int
25335main ()
25336{
25337bool b = true; return f(b);
25338 ;
25339 return 0;
25340}
25341_ACEOF
25342if ac_fn_cxx_try_compile "$LINENO"; then :
25343 ax_cv_cxx_bool=yes
25344else
25345 ax_cv_cxx_bool=no
25346fi
25347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25348 ac_ext=cpp
25349ac_cpp='$CXXCPP $CPPFLAGS'
25350ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25351ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25352ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25353
25354
25355fi
25356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25357$as_echo "$ax_cv_cxx_bool" >&6; }
25358if test "$ax_cv_cxx_bool" = yes; then
25359
25360$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25361
25362fi
25363
25364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25365$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025366if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025367 $as_echo_n "(cached) " >&6
25368else
25369
25370 ac_ext=cpp
25371ac_cpp='$CXXCPP $CPPFLAGS'
25372ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25373ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25374ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25375
25376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25377/* end confdefs.h. */
25378namespace Outer { namespace Inner { int i = 0; }}
25379int
25380main ()
25381{
25382using namespace Outer::Inner; return i;
25383 ;
25384 return 0;
25385}
25386_ACEOF
25387if ac_fn_cxx_try_compile "$LINENO"; then :
25388 ax_cv_cxx_namespaces=yes
25389else
25390 ax_cv_cxx_namespaces=no
25391fi
25392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25393 ac_ext=cpp
25394ac_cpp='$CXXCPP $CPPFLAGS'
25395ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25396ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25397ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25398
25399
25400fi
25401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25402$as_echo "$ax_cv_cxx_namespaces" >&6; }
25403if test "$ax_cv_cxx_namespaces" = yes; then
25404
25405$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25406
25407fi
25408
25409
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25411$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025412if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025413 $as_echo_n "(cached) " >&6
25414else
25415
25416 ac_ext=cpp
25417ac_cpp='$CXXCPP $CPPFLAGS'
25418ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25419ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25420ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25421
25422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25423/* end confdefs.h. */
25424#include <iostream>
25425 std::istream& is = std::cin;
25426int
25427main ()
25428{
25429
25430 ;
25431 return 0;
25432}
25433_ACEOF
25434if ac_fn_cxx_try_compile "$LINENO"; then :
25435 ax_cv_cxx_have_std_namespace=yes
25436else
25437 ax_cv_cxx_have_std_namespace=no
25438fi
25439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25440 ac_ext=cpp
25441ac_cpp='$CXXCPP $CPPFLAGS'
25442ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25443ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25444ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25445
25446
25447fi
25448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25449$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25450 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25451
25452$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25453
25454 fi
25455
25456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25457$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025458if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025459 $as_echo_n "(cached) " >&6
25460else
25461
25462
25463 ac_ext=cpp
25464ac_cpp='$CXXCPP $CPPFLAGS'
25465ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25466ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25467ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25468
25469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25470/* end confdefs.h. */
25471#include <iostream>
25472#include <map>
25473#include <iomanip>
25474#include <cmath>
25475#ifdef HAVE_NAMESPACES
25476using namespace std;
25477#endif
25478int
25479main ()
25480{
25481return 0;
25482 ;
25483 return 0;
25484}
25485_ACEOF
25486if ac_fn_cxx_try_compile "$LINENO"; then :
25487 ac_cv_cxx_have_std_libs=yes
25488else
25489 ac_cv_cxx_have_std_libs=no
25490fi
25491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25492 ac_ext=cpp
25493ac_cpp='$CXXCPP $CPPFLAGS'
25494ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25495ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25496ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25497
25498
25499fi
25500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25501$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25502if test "$ac_cv_cxx_have_std_libs" = yes; then
25503
25504$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25505
25506fi
25507
cristy3ed852e2009-09-05 21:47:34 +000025508
25509 OPENMP_CXXFLAGS=
25510 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025511if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025512 enableval=$enable_openmp;
25513fi
25514
25515 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25517$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025518if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025519 $as_echo_n "(cached) " >&6
25520else
cristy8b350f62009-11-15 23:12:43 +000025521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25522/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025523
25524#ifndef _OPENMP
25525 choke me
25526#endif
25527#include <omp.h>
25528int main () { return omp_get_num_threads (); }
25529
25530_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025531if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025532 ac_cv_prog_cxx_openmp='none needed'
25533else
cristy8b350f62009-11-15 23:12:43 +000025534 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000025535 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
25536 ac_save_CXXFLAGS=$CXXFLAGS
25537 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25539/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025540
25541#ifndef _OPENMP
25542 choke me
25543#endif
25544#include <omp.h>
25545int main () { return omp_get_num_threads (); }
25546
25547_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025548if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025549 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025550fi
cristy8b350f62009-11-15 23:12:43 +000025551rm -f core conftest.err conftest.$ac_objext \
25552 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025553 CXXFLAGS=$ac_save_CXXFLAGS
25554 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25555 break
25556 fi
25557 done
25558fi
cristy8b350f62009-11-15 23:12:43 +000025559rm -f core conftest.err conftest.$ac_objext \
25560 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025561fi
cristy8b350f62009-11-15 23:12:43 +000025562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025563$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25564 case $ac_cv_prog_cxx_openmp in #(
25565 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025566 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025567 *)
cristy8b350f62009-11-15 23:12:43 +000025568 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025569 esac
25570 fi
25571
25572
25573 ac_ext=c
25574ac_cpp='$CPP $CPPFLAGS'
25575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25577ac_compiler_gnu=$ac_cv_c_compiler_gnu
25578
25579
cristy8b350f62009-11-15 23:12:43 +000025580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025581$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25582 if \
cristy964cb7f2010-04-25 23:18:00 +000025583 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025584 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025585 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025586 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025587 have_magick_plus_plus='yes'
25588 else
25589 have_magick_plus_plus='no (failed tests)'
25590 fi
cristy8b350f62009-11-15 23:12:43 +000025591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000025592$as_echo "$have_magick_plus_plus" >&6; }
25593 LIBS="$OLIBS"
25594fi
cristy73bd4a52010-10-05 11:24:23 +000025595 if test "$have_magick_plus_plus" = 'yes'; then
25596 WITH_MAGICK_PLUS_PLUS_TRUE=
25597 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25598else
25599 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25600 WITH_MAGICK_PLUS_PLUS_FALSE=
25601fi
25602
cristy3ed852e2009-09-05 21:47:34 +000025603
25604# Only check for delegate libraries in subdirectories if requested.
25605if test "$enable_delegate_build" != 'no'; then
25606 # Check for delegate sub-directories and add -I & -L options as required.
25607 # This presumes that delegates are installed as detailed in the ImageMagick
25608 # README. If delegates are installed in a standard location where the
25609 # compiler will automatically find them then these options should not be
25610 # required.
25611
25612 #
25613 # Most delegates have includes in the same directory as the library, but not all...
25614 #
25615 # Includes
cristyfbb0ef02010-12-19 02:32:11 +000025616 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025617 if test -d "$builddir/$dir"; then
25618 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25619 else
25620 if test -d "$srcdirfull/$dir"; then
25621 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25622 fi
25623 fi
25624 done
25625
25626 # Libraries
cristyfbb0ef02010-12-19 02:32:11 +000025627 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025628 if test -d "$builddir/$dir/.libs"; then
25629 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25630 else
25631 if test -d "$srcdirfull/$dir/.libs"; then
25632 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25633 fi
25634 fi
25635 if test -d "$builddir/$dir"; then
25636 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25637 else
25638 if test -d "$srcdirfull/$dir"; then
25639 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25640 fi
25641 fi
25642 done
25643fi
25644
25645# Assume that delegate headers reside under same directory as ImageMagick
25646# installation prefix.
25647MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25648
25649#
25650# Find the X11 RGB database
25651#
cristy8b350f62009-11-15 23:12:43 +000025652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025653$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025654if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025655 $as_echo_n "(cached) " >&6
25656else
25657 # Look for the header file in a standard set of common directories.
25658# Check X11 before X11Rn because it is often a symlink to the current release.
25659 for ac_dir in \
25660 /lib/usr/lib/X11 \
25661 /usr/X11/lib \
25662 /usr/X11R4/lib \
25663 /usr/X11R5/lib \
25664 /usr/X11R6/lib \
25665 /usr/X11R7/lib \
25666 /usr/X386/lib \
25667 /usr/XFree86/lib/X11 \
25668 /usr/athena/lib \
25669 /usr/lib \
25670 /usr/lib/X11 \
25671 /usr/lib/X11R4 \
25672 /usr/lib/X11R5 \
25673 /usr/lib/X11R6 \
25674 /usr/lib/X11R7 \
25675 /usr/local/X11/lib \
25676 /usr/local/X11R4/lib \
25677 /usr/local/X11R5/lib \
25678 /usr/local/X11R6/lib \
25679 /usr/local/lib \
25680 /usr/local/lib/X11 \
25681 /usr/local/lib/X11R4 \
25682 /usr/local/lib/X11R5 \
25683 /usr/local/lib/X11R6 \
25684 /usr/local/lib/X11R7 \
25685 /usr/local/x11r5/lib \
25686 /usr/lpp/Xamples/lib \
25687 /usr/openwin/lib \
25688 /usr/openwin/share/lib \
25689 /usr/unsupported/lib \
25690 /usr/x386/lib \
25691 ; do
25692 if test -f "$ac_dir/X11/rgb.txt"; then
25693 im_cv_x_configure="$ac_dir/X11/"
25694 break
25695 elif test -f "$ac_dir/rgb.txt"; then
25696 im_cv_x_configure="$ac_dir/"
25697 break
25698 fi
25699
25700 done
25701fi
cristy8b350f62009-11-15 23:12:43 +000025702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000025703$as_echo "$im_cv_x_configure" >&6; }
25704X11_CONFIGURE_PATH="$im_cv_x_configure"
25705case "${build_os}" in
25706 mingw* )
25707 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25708 ;;
25709esac
25710
25711cat >>confdefs.h <<_ACEOF
25712#define X11_CONFIGURE_PATH "$X11ConfigurePath"
25713_ACEOF
25714
25715
25716#
25717# Find OpenMP library
25718#
25719GOMP_LIBS=''
25720if test "$enable_openmp" != 'no'; then
25721 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000025722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025723$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025724if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025725 $as_echo_n "(cached) " >&6
25726else
25727 ac_check_lib_save_LIBS=$LIBS
25728LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025730/* end confdefs.h. */
25731
25732/* Override any GCC internal prototype to avoid an error.
25733 Use char because int might match the return type of a GCC
25734 builtin and then its argument prototype would still apply. */
25735#ifdef __cplusplus
25736extern "C"
25737#endif
25738char GOMP_parallel_start ();
25739int
25740main ()
25741{
25742return GOMP_parallel_start ();
25743 ;
25744 return 0;
25745}
25746_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025747if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025748 ac_cv_lib_gomp_GOMP_parallel_start=yes
25749else
cristy8b350f62009-11-15 23:12:43 +000025750 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000025751fi
cristy8b350f62009-11-15 23:12:43 +000025752rm -f core conftest.err conftest.$ac_objext \
25753 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025754LIBS=$ac_check_lib_save_LIBS
25755fi
cristy8b350f62009-11-15 23:12:43 +000025756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000025757$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025758if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025759 GOMP_LIBS="-lgomp"
25760fi
25761 # gcc
25762 else
cristy8b350f62009-11-15 23:12:43 +000025763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025764$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025765if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025766 $as_echo_n "(cached) " >&6
25767else
25768 ac_check_lib_save_LIBS=$LIBS
25769LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025771/* end confdefs.h. */
25772
25773/* Override any GCC internal prototype to avoid an error.
25774 Use char because int might match the return type of a GCC
25775 builtin and then its argument prototype would still apply. */
25776#ifdef __cplusplus
25777extern "C"
25778#endif
25779char sunw_mp_register_warn ();
25780int
25781main ()
25782{
25783return sunw_mp_register_warn ();
25784 ;
25785 return 0;
25786}
25787_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025788if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025789 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25790else
cristy8b350f62009-11-15 23:12:43 +000025791 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000025792fi
cristy8b350f62009-11-15 23:12:43 +000025793rm -f core conftest.err conftest.$ac_objext \
25794 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025795LIBS=$ac_check_lib_save_LIBS
25796fi
cristy8b350f62009-11-15 23:12:43 +000025797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000025798$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000025799if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025800 GOMP_LIBS="-lmtsk"
25801fi
25802 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000025803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025804$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025805if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025806 $as_echo_n "(cached) " >&6
25807else
25808 ac_check_lib_save_LIBS=$LIBS
25809LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025811/* end confdefs.h. */
25812
25813/* Override any GCC internal prototype to avoid an error.
25814 Use char because int might match the return type of a GCC
25815 builtin and then its argument prototype would still apply. */
25816#ifdef __cplusplus
25817extern "C"
25818#endif
25819char _xlsmpFlush ();
25820int
25821main ()
25822{
25823return _xlsmpFlush ();
25824 ;
25825 return 0;
25826}
25827_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025828if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025829 ac_cv_lib_xlsmp__xlsmpFlush=yes
25830else
cristy8b350f62009-11-15 23:12:43 +000025831 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000025832fi
cristy8b350f62009-11-15 23:12:43 +000025833rm -f core conftest.err conftest.$ac_objext \
25834 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025835LIBS=$ac_check_lib_save_LIBS
25836fi
cristy8b350f62009-11-15 23:12:43 +000025837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000025838$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000025839if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025840 GOMP_LIBS="-lxlsmp"
25841fi
25842 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000025843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025844$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025845if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025846 $as_echo_n "(cached) " >&6
25847else
25848 ac_check_lib_save_LIBS=$LIBS
25849LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025851/* end confdefs.h. */
25852
25853/* Override any GCC internal prototype to avoid an error.
25854 Use char because int might match the return type of a GCC
25855 builtin and then its argument prototype would still apply. */
25856#ifdef __cplusplus
25857extern "C"
25858#endif
25859char mp_destroy ();
25860int
25861main ()
25862{
25863return mp_destroy ();
25864 ;
25865 return 0;
25866}
25867_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025868if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025869 ac_cv_lib_mp_mp_destroy=yes
25870else
cristy8b350f62009-11-15 23:12:43 +000025871 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000025872fi
cristy8b350f62009-11-15 23:12:43 +000025873rm -f core conftest.err conftest.$ac_objext \
25874 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025875LIBS=$ac_check_lib_save_LIBS
25876fi
cristy8b350f62009-11-15 23:12:43 +000025877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000025878$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000025879if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025880 GOMP_LIBS="-lmp"
25881fi
25882 # SGI IRIX 6.5 MIPSpro C/C++
25883 fi
25884 LIBS="$GOMP_LIBS $LIBS"
25885fi
25886
25887
25888#
25889# Find Posix threads library
25890#
25891THREAD_LIBS=''
25892if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
25893
25894 if test "x$PTHREAD_LIBS" = "x"; then
25895 case "${host_cpu}-${host_os}" in
25896 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000025897
25898
25899
25900ac_ext=c
25901ac_cpp='$CPP $CPPFLAGS'
25902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25904ac_compiler_gnu=$ac_cv_c_compiler_gnu
25905
25906magick_pthread_lib_ok=no
25907
25908LIB=-lc_r
25909save_LIBS="$LIBS"
25910LIBS="$LIBS $LIB"
25911
25912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25913$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25915/* end confdefs.h. */
25916#include <pthread.h>
25917int
25918main ()
25919{
25920 pthread_t th;
25921 pthread_join(th, 0);
25922 pthread_attr_init(0);
25923 pthread_cleanup_push(0, 0);
25924 pthread_create(0,0,0,0);
25925 pthread_cleanup_pop(0);
25926 ;
25927 return 0;
25928}
25929_ACEOF
25930if ac_fn_c_try_link "$LINENO"; then :
25931 magick_pthread_lib_ok=yes
25932fi
25933rm -f core conftest.err conftest.$ac_objext \
25934 conftest$ac_exeext conftest.$ac_ext
25935
25936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25937$as_echo "${magick_pthread_lib_ok}" >&6; }
25938if test "$magick_pthread_lib_ok" = yes
25939then
25940 PTHREAD_LIBS=-lc_r
25941 :
25942else
25943
25944 :
25945fi
25946
25947LIBS="$save_LIBS"
25948
25949ac_ext=c
25950ac_cpp='$CPP $CPPFLAGS'
25951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25953ac_compiler_gnu=$ac_cv_c_compiler_gnu
25954
25955 ;;
cristy3ed852e2009-09-05 21:47:34 +000025956 esac
25957 fi
25958
25959 for lib in pthread pthreads; do
25960 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000025961
25962
25963
25964ac_ext=c
25965ac_cpp='$CPP $CPPFLAGS'
25966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25968ac_compiler_gnu=$ac_cv_c_compiler_gnu
25969
25970magick_pthread_lib_ok=no
25971
25972LIB=-l$lib
25973save_LIBS="$LIBS"
25974LIBS="$LIBS $LIB"
25975
25976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25977$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25979/* end confdefs.h. */
25980#include <pthread.h>
25981int
25982main ()
25983{
25984 pthread_t th;
25985 pthread_join(th, 0);
25986 pthread_attr_init(0);
25987 pthread_cleanup_push(0, 0);
25988 pthread_create(0,0,0,0);
25989 pthread_cleanup_pop(0);
25990 ;
25991 return 0;
25992}
25993_ACEOF
25994if ac_fn_c_try_link "$LINENO"; then :
25995 magick_pthread_lib_ok=yes
25996fi
25997rm -f core conftest.err conftest.$ac_objext \
25998 conftest$ac_exeext conftest.$ac_ext
25999
26000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26001$as_echo "${magick_pthread_lib_ok}" >&6; }
26002if test "$magick_pthread_lib_ok" = yes
26003then
26004 PTHREAD_LIBS=-l$lib
26005 :
26006else
26007
26008 :
26009fi
26010
26011LIBS="$save_LIBS"
26012
26013ac_ext=c
26014ac_cpp='$CPP $CPPFLAGS'
26015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26017ac_compiler_gnu=$ac_cv_c_compiler_gnu
26018
26019
cristy3ed852e2009-09-05 21:47:34 +000026020 fi
26021 done
26022
26023 THREAD_LIBS="$PTHREAD_LIBS"
26024 LIBS="$LIBS $THREAD_LIBS"
26025fi
26026
26027
26028#
26029# Check for umem.
26030#
26031have_umem='no'
26032UMEM_LIBS=''
26033if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026035$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026037$as_echo "" >&6; }
26038 failed=0
26039 passed=0
cristy8b350f62009-11-15 23:12:43 +000026040 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026041if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026042 passed=`expr $passed + 1`
26043else
26044 failed=`expr $failed + 1`
26045fi
26046
26047
cristy8b350f62009-11-15 23:12:43 +000026048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026049$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026050if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026051 $as_echo_n "(cached) " >&6
26052else
26053 ac_check_lib_save_LIBS=$LIBS
26054LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026056/* end confdefs.h. */
26057
26058/* Override any GCC internal prototype to avoid an error.
26059 Use char because int might match the return type of a GCC
26060 builtin and then its argument prototype would still apply. */
26061#ifdef __cplusplus
26062extern "C"
26063#endif
26064char umem_alloc ();
26065int
26066main ()
26067{
26068return umem_alloc ();
26069 ;
26070 return 0;
26071}
26072_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026073if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026074 ac_cv_lib_umem_umem_alloc=yes
26075else
cristy8b350f62009-11-15 23:12:43 +000026076 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026077fi
cristy8b350f62009-11-15 23:12:43 +000026078rm -f core conftest.err conftest.$ac_objext \
26079 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026080LIBS=$ac_check_lib_save_LIBS
26081fi
cristy8b350f62009-11-15 23:12:43 +000026082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026083$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026084if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026085 passed=`expr $passed + 1`
26086else
26087 failed=`expr $failed + 1`
26088fi
26089
cristy8b350f62009-11-15 23:12:43 +000026090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026091$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026092if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026093 $as_echo_n "(cached) " >&6
26094else
26095 ac_check_lib_save_LIBS=$LIBS
26096LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026098/* end confdefs.h. */
26099
26100/* Override any GCC internal prototype to avoid an error.
26101 Use char because int might match the return type of a GCC
26102 builtin and then its argument prototype would still apply. */
26103#ifdef __cplusplus
26104extern "C"
26105#endif
26106char umem_free ();
26107int
26108main ()
26109{
26110return umem_free ();
26111 ;
26112 return 0;
26113}
26114_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026115if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026116 ac_cv_lib_umem_umem_free=yes
26117else
cristy8b350f62009-11-15 23:12:43 +000026118 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026119fi
cristy8b350f62009-11-15 23:12:43 +000026120rm -f core conftest.err conftest.$ac_objext \
26121 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026122LIBS=$ac_check_lib_save_LIBS
26123fi
cristy8b350f62009-11-15 23:12:43 +000026124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026125$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026126if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026127 passed=`expr $passed + 1`
26128else
26129 failed=`expr $failed + 1`
26130fi
26131
cristy8b350f62009-11-15 23:12:43 +000026132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026133$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26134 if test $passed -gt 0; then
26135 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026137$as_echo "no -- some components failed test" >&6; }
26138 have_umem='no (failed tests)'
26139 else
26140 UMEM_LIBS='-lumem'
26141 LIBS="$UMEM_LIBS $LIBS"
26142
cristy8b350f62009-11-15 23:12:43 +000026143$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026144
cristy8b350f62009-11-15 23:12:43 +000026145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026146$as_echo "yes" >&6; }
26147 have_umem='yes'
26148 fi
26149 else
cristy8b350f62009-11-15 23:12:43 +000026150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026151$as_echo "no" >&6; }
26152 fi
26153fi
cristy73bd4a52010-10-05 11:24:23 +000026154 if test "$have_umem" = 'yes'; then
26155 HasUMEM_TRUE=
26156 HasUMEM_FALSE='#'
26157else
26158 HasUMEM_TRUE='#'
26159 HasUMEM_FALSE=
26160fi
26161
cristy3ed852e2009-09-05 21:47:34 +000026162
26163
26164#
26165# Add support for ccmalloc memory debugging library if requested
26166#
26167have_ccmalloc='no'
26168CCMALLOC_LIBS=''
26169if test "$enable_ccmalloc" = 'yes'; then
26170 # Extract the first word of "ccmalloc", so it can be a program name with args.
26171set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026173$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026174if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026175 $as_echo_n "(cached) " >&6
26176else
26177 case $CCMALLOCDelegate in
26178 [\\/]* | ?:[\\/]*)
26179 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26180 ;;
26181 *)
26182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26183for as_dir in $PATH
26184do
26185 IFS=$as_save_IFS
26186 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026187 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26189 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026191 break 2
26192 fi
26193done
cristy8b350f62009-11-15 23:12:43 +000026194 done
cristy3ed852e2009-09-05 21:47:34 +000026195IFS=$as_save_IFS
26196
26197 ;;
26198esac
26199fi
26200CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26201if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026203$as_echo "$CCMALLOCDelegate" >&6; }
26204else
cristy8b350f62009-11-15 23:12:43 +000026205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026206$as_echo "no" >&6; }
26207fi
26208
26209
26210 if test -n "$CCMALLOCDelegate"; then
26211 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26212 OLIBS="$LIBS"
26213 # Assume that gcc is used with ccmalloc.
26214 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026216$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026217if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026218 $as_echo_n "(cached) " >&6
26219else
26220 ac_check_lib_save_LIBS=$LIBS
26221LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026223/* end confdefs.h. */
26224
26225/* Override any GCC internal prototype to avoid an error.
26226 Use char because int might match the return type of a GCC
26227 builtin and then its argument prototype would still apply. */
26228#ifdef __cplusplus
26229extern "C"
26230#endif
26231char ccmalloc_malloc ();
26232int
26233main ()
26234{
26235return ccmalloc_malloc ();
26236 ;
26237 return 0;
26238}
26239_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026240if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026241 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26242else
cristy8b350f62009-11-15 23:12:43 +000026243 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026244fi
cristy8b350f62009-11-15 23:12:43 +000026245rm -f core conftest.err conftest.$ac_objext \
26246 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026247LIBS=$ac_check_lib_save_LIBS
26248fi
cristy8b350f62009-11-15 23:12:43 +000026249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026250$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026251if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026252 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26253fi
26254
26255 if test -n "$CCMALLOC_LIBS"; then
26256 LIBS="$OLIBS"
26257 LIBS="$LIBS $CCMALLOC_LIBS"
26258 have_ccmalloc='yes'
26259 else
26260 LIBS="$OLIBS"
26261 fi
26262 fi
26263fi
26264
26265#
26266# Add support for efence memory debugging library if requested
26267#
26268if test "$enable_efence" = 'yes'; then
26269 EFENCE_LIBS='-lefence'
26270 LIBS="$EFENCE_LIBS $LIBS"
26271fi
26272
cristy3ed852e2009-09-05 21:47:34 +000026273
26274#
26275# Check for BZLIB
26276#
26277
26278
26279# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026280if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026281 withval=$with_bzlib; with_bzlib=$withval
26282else
26283 with_bzlib='yes'
26284fi
26285
26286
26287if test "$with_bzlib" != 'yes'; then
26288 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26289fi
26290
26291have_bzlib='no'
26292if test "$with_bzlib" != 'no'; then
26293 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026295$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026297$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026299$as_echo "" >&6; }
26300 failed=0
26301 passed=0
26302 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026303 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026304if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026305 passed=`expr $passed + 1`
26306else
26307 failed=`expr $failed + 1`
26308fi
26309
26310
cristy8b350f62009-11-15 23:12:43 +000026311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026312$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026313if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026314 $as_echo_n "(cached) " >&6
26315else
26316 ac_check_lib_save_LIBS=$LIBS
26317LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026319/* end confdefs.h. */
26320
26321/* Override any GCC internal prototype to avoid an error.
26322 Use char because int might match the return type of a GCC
26323 builtin and then its argument prototype would still apply. */
26324#ifdef __cplusplus
26325extern "C"
26326#endif
26327char BZ2_bzDecompress ();
26328int
26329main ()
26330{
26331return BZ2_bzDecompress ();
26332 ;
26333 return 0;
26334}
26335_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026336if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026337 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26338else
cristy8b350f62009-11-15 23:12:43 +000026339 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026340fi
cristy8b350f62009-11-15 23:12:43 +000026341rm -f core conftest.err conftest.$ac_objext \
26342 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026343LIBS=$ac_check_lib_save_LIBS
26344fi
cristy8b350f62009-11-15 23:12:43 +000026345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026346$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026347if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026348 found_libbz=`expr $found_libbz + 1`
26349fi
26350
26351 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026353$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026354if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026355 $as_echo_n "(cached) " >&6
26356else
26357 ac_check_lib_save_LIBS=$LIBS
26358LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026360/* end confdefs.h. */
26361
26362/* Override any GCC internal prototype to avoid an error.
26363 Use char because int might match the return type of a GCC
26364 builtin and then its argument prototype would still apply. */
26365#ifdef __cplusplus
26366extern "C"
26367#endif
26368char _imp__BZ2_decompress ();
26369int
26370main ()
26371{
26372return _imp__BZ2_decompress ();
26373 ;
26374 return 0;
26375}
26376_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026377if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026378 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26379else
cristy8b350f62009-11-15 23:12:43 +000026380 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026381fi
cristy8b350f62009-11-15 23:12:43 +000026382rm -f core conftest.err conftest.$ac_objext \
26383 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026384LIBS=$ac_check_lib_save_LIBS
26385fi
cristy8b350f62009-11-15 23:12:43 +000026386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026387$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026388if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026389 found_libbz=`expr $found_libbz + 1`
26390fi
26391
26392 fi
26393 if test $found_libbz -gt 0; then
26394 passed=`expr $passed + 1`
26395 else
26396 failed=`expr $failed + 1`
26397 fi
cristy8b350f62009-11-15 23:12:43 +000026398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026399$as_echo_n "checking if BZLIB package is complete... " >&6; }
26400 if test $passed -gt 0; then
26401 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026403$as_echo "no -- some components failed test" >&6; }
26404 have_bzlib='no (failed tests)'
26405 else
26406 BZLIB_LIBS='-lbz2'
26407 LIBS="$BZLIB_LIBS $LIBS"
26408
cristy8b350f62009-11-15 23:12:43 +000026409$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026410
cristy8b350f62009-11-15 23:12:43 +000026411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026412$as_echo "yes" >&6; }
26413 have_bzlib='yes'
26414 fi
26415 else
cristy8b350f62009-11-15 23:12:43 +000026416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026417$as_echo "no" >&6; }
26418 fi
26419fi
cristy73bd4a52010-10-05 11:24:23 +000026420 if test "$have_bzlib" = 'yes'; then
26421 BZLIB_DELEGATE_TRUE=
26422 BZLIB_DELEGATE_FALSE='#'
26423else
26424 BZLIB_DELEGATE_TRUE='#'
26425 BZLIB_DELEGATE_FALSE=
26426fi
26427
cristy3ed852e2009-09-05 21:47:34 +000026428
26429
26430#
26431# Find the X11 include and library directories.
26432#
26433IPC_LIBS=''
26434X11_LIBS=''
26435XEXT_LIBS=''
26436XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026438$as_echo_n "checking for X... " >&6; }
26439
26440
26441# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026442if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026443 withval=$with_x;
26444fi
26445
26446# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26447if test "x$with_x" = xno; then
26448 # The user explicitly disabled X.
26449 have_x=disabled
26450else
26451 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026452 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026453 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026454 $as_echo_n "(cached) " >&6
26455else
26456 # One or both of the vars are not set, and there is no cached value.
26457ac_x_includes=no ac_x_libraries=no
26458rm -f -r conftest.dir
26459if mkdir conftest.dir; then
26460 cd conftest.dir
26461 cat >Imakefile <<'_ACEOF'
26462incroot:
26463 @echo incroot='${INCROOT}'
26464usrlibdir:
26465 @echo usrlibdir='${USRLIBDIR}'
26466libdir:
26467 @echo libdir='${LIBDIR}'
26468_ACEOF
26469 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026470 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026471 for ac_var in incroot usrlibdir libdir; do
26472 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26473 done
26474 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26475 for ac_extension in a so sl dylib la dll; do
26476 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26477 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26478 ac_im_usrlibdir=$ac_im_libdir; break
26479 fi
26480 done
26481 # Screen out bogus values from the imake configuration. They are
26482 # bogus both because they are the default anyway, and because
26483 # using them would break gcc on systems where it needs fixed includes.
26484 case $ac_im_incroot in
26485 /usr/include) ac_x_includes= ;;
26486 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26487 esac
26488 case $ac_im_usrlibdir in
26489 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26490 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26491 esac
26492 fi
26493 cd ..
26494 rm -f -r conftest.dir
26495fi
26496
26497# Standard set of common directories for X headers.
26498# Check X11 before X11Rn because it is often a symlink to the current release.
26499ac_x_header_dirs='
26500/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026501/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026502/usr/X11R6/include
26503/usr/X11R5/include
26504/usr/X11R4/include
26505
26506/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026507/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026508/usr/include/X11R6
26509/usr/include/X11R5
26510/usr/include/X11R4
26511
26512/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026513/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026514/usr/local/X11R6/include
26515/usr/local/X11R5/include
26516/usr/local/X11R4/include
26517
26518/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026519/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026520/usr/local/include/X11R6
26521/usr/local/include/X11R5
26522/usr/local/include/X11R4
26523
26524/usr/X386/include
26525/usr/x386/include
26526/usr/XFree86/include/X11
26527
26528/usr/include
26529/usr/local/include
26530/usr/unsupported/include
26531/usr/athena/include
26532/usr/local/x11r5/include
26533/usr/lpp/Xamples/include
26534
26535/usr/openwin/include
26536/usr/openwin/share/include'
26537
26538if test "$ac_x_includes" = no; then
26539 # Guess where to find include files, by looking for Xlib.h.
26540 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026542/* end confdefs.h. */
26543#include <X11/Xlib.h>
26544_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026545if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026546 # We can compile using X headers with no special include directory.
26547ac_x_includes=
26548else
cristyc7083c12009-10-14 03:16:55 +000026549 for ac_dir in $ac_x_header_dirs; do
26550 if test -r "$ac_dir/X11/Xlib.h"; then
26551 ac_x_includes=$ac_dir
26552 break
26553 fi
26554done
26555fi
cristyda16f162011-02-19 23:52:17 +000026556rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026557fi # $ac_x_includes = no
26558
26559if test "$ac_x_libraries" = no; then
26560 # Check for the libraries.
26561 # See if we find them without any special options.
26562 # Don't add to $LIBS permanently.
26563 ac_save_LIBS=$LIBS
26564 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026566/* end confdefs.h. */
26567#include <X11/Xlib.h>
26568int
26569main ()
26570{
26571XrmInitialize ()
26572 ;
26573 return 0;
26574}
26575_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026576if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026577 LIBS=$ac_save_LIBS
26578# We can link X programs with no special library path.
26579ac_x_libraries=
26580else
cristy8b350f62009-11-15 23:12:43 +000026581 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026582for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26583do
26584 # Don't even attempt the hair of trying to link an X program!
26585 for ac_extension in a so sl dylib la dll; do
26586 if test -r "$ac_dir/libX11.$ac_extension"; then
26587 ac_x_libraries=$ac_dir
26588 break 2
26589 fi
26590 done
26591done
26592fi
cristy8b350f62009-11-15 23:12:43 +000026593rm -f core conftest.err conftest.$ac_objext \
26594 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026595fi # $ac_x_libraries = no
26596
26597case $ac_x_includes,$ac_x_libraries in #(
26598 no,* | *,no | *\'*)
26599 # Didn't find X, or a directory has "'" in its name.
26600 ac_cv_have_x="have_x=no";; #(
26601 *)
26602 # Record where we found X for the cache.
26603 ac_cv_have_x="have_x=yes\
26604 ac_x_includes='$ac_x_includes'\
26605 ac_x_libraries='$ac_x_libraries'"
26606esac
26607fi
26608;; #(
26609 *) have_x=yes;;
26610 esac
26611 eval "$ac_cv_have_x"
26612fi # $with_x != no
26613
26614if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026616$as_echo "$have_x" >&6; }
26617 no_x=yes
26618else
26619 # If each of the values was on the command line, it overrides each guess.
26620 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26621 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26622 # Update the cache value to reflect the command line values.
26623 ac_cv_have_x="have_x=yes\
26624 ac_x_includes='$x_includes'\
26625 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026627$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26628fi
26629
cristy3ed852e2009-09-05 21:47:34 +000026630if test "$no_x" = yes; then
26631 # Not all programs may use this symbol, but it does not hurt to define it.
26632
cristy8b350f62009-11-15 23:12:43 +000026633$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026634
26635 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26636else
26637 if test -n "$x_includes"; then
26638 X_CFLAGS="$X_CFLAGS -I$x_includes"
26639 fi
26640
26641 # It would also be nice to do this for all -L options, not just this one.
26642 if test -n "$x_libraries"; then
26643 X_LIBS="$X_LIBS -L$x_libraries"
26644 # For Solaris; some versions of Sun CC require a space after -R and
26645 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026647$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26648 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26649 ac_xsave_c_werror_flag=$ac_c_werror_flag
26650 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026652/* end confdefs.h. */
26653
26654int
26655main ()
26656{
26657
26658 ;
26659 return 0;
26660}
26661_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026662if ac_fn_c_try_link "$LINENO"; then :
26663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026664$as_echo "no" >&6; }
26665 X_LIBS="$X_LIBS -R$x_libraries"
26666else
cristy8b350f62009-11-15 23:12:43 +000026667 LIBS="$ac_xsave_LIBS -R $x_libraries"
26668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026669/* end confdefs.h. */
26670
26671int
26672main ()
26673{
26674
26675 ;
26676 return 0;
26677}
26678_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026679if ac_fn_c_try_link "$LINENO"; then :
26680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026681$as_echo "yes" >&6; }
26682 X_LIBS="$X_LIBS -R $x_libraries"
26683else
cristy8b350f62009-11-15 23:12:43 +000026684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026685$as_echo "neither works" >&6; }
26686fi
cristy8b350f62009-11-15 23:12:43 +000026687rm -f core conftest.err conftest.$ac_objext \
26688 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026689fi
cristy8b350f62009-11-15 23:12:43 +000026690rm -f core conftest.err conftest.$ac_objext \
26691 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026692 ac_c_werror_flag=$ac_xsave_c_werror_flag
26693 LIBS=$ac_xsave_LIBS
26694 fi
26695
26696 # Check for system-dependent libraries X programs must link with.
26697 # Do this before checking for the system-independent R6 libraries
26698 # (-lICE), since we may need -lsocket or whatever for X linking.
26699
26700 if test "$ISC" = yes; then
26701 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26702 else
26703 # Martyn Johnson says this is needed for Ultrix, if the X
26704 # libraries were built with DECnet support. And Karl Berry says
26705 # the Alpha needs dnet_stub (dnet does not exist).
26706 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000026707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026708/* end confdefs.h. */
26709
26710/* Override any GCC internal prototype to avoid an error.
26711 Use char because int might match the return type of a GCC
26712 builtin and then its argument prototype would still apply. */
26713#ifdef __cplusplus
26714extern "C"
26715#endif
26716char XOpenDisplay ();
26717int
26718main ()
26719{
26720return XOpenDisplay ();
26721 ;
26722 return 0;
26723}
26724_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026725if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026726
cristy8b350f62009-11-15 23:12:43 +000026727else
26728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026729$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026730if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026731 $as_echo_n "(cached) " >&6
26732else
26733 ac_check_lib_save_LIBS=$LIBS
26734LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026736/* end confdefs.h. */
26737
26738/* Override any GCC internal prototype to avoid an error.
26739 Use char because int might match the return type of a GCC
26740 builtin and then its argument prototype would still apply. */
26741#ifdef __cplusplus
26742extern "C"
26743#endif
26744char dnet_ntoa ();
26745int
26746main ()
26747{
26748return dnet_ntoa ();
26749 ;
26750 return 0;
26751}
26752_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026753if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026754 ac_cv_lib_dnet_dnet_ntoa=yes
26755else
cristy8b350f62009-11-15 23:12:43 +000026756 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026757fi
cristy8b350f62009-11-15 23:12:43 +000026758rm -f core conftest.err conftest.$ac_objext \
26759 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026760LIBS=$ac_check_lib_save_LIBS
26761fi
cristy8b350f62009-11-15 23:12:43 +000026762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026763$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026764if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026765 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26766fi
26767
26768 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000026769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000026770$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026771if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026772 $as_echo_n "(cached) " >&6
26773else
26774 ac_check_lib_save_LIBS=$LIBS
26775LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026777/* end confdefs.h. */
26778
26779/* Override any GCC internal prototype to avoid an error.
26780 Use char because int might match the return type of a GCC
26781 builtin and then its argument prototype would still apply. */
26782#ifdef __cplusplus
26783extern "C"
26784#endif
26785char dnet_ntoa ();
26786int
26787main ()
26788{
26789return dnet_ntoa ();
26790 ;
26791 return 0;
26792}
26793_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026794if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026795 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26796else
cristy8b350f62009-11-15 23:12:43 +000026797 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026798fi
cristy8b350f62009-11-15 23:12:43 +000026799rm -f core conftest.err conftest.$ac_objext \
26800 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026801LIBS=$ac_check_lib_save_LIBS
26802fi
cristy8b350f62009-11-15 23:12:43 +000026803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026804$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026805if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026806 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26807fi
26808
26809 fi
26810fi
cristy8b350f62009-11-15 23:12:43 +000026811rm -f core conftest.err conftest.$ac_objext \
26812 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026813 LIBS="$ac_xsave_LIBS"
26814
26815 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26816 # to get the SysV transport functions.
26817 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26818 # needs -lnsl.
26819 # The nsl library prevents programs from opening the X display
26820 # on Irix 5.2, according to T.E. Dickey.
26821 # The functions gethostbyname, getservbyname, and inet_addr are
26822 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000026823 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000026824if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026825
cristy3ed852e2009-09-05 21:47:34 +000026826fi
26827
cristy3ed852e2009-09-05 21:47:34 +000026828 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026830$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026831if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026832 $as_echo_n "(cached) " >&6
26833else
26834 ac_check_lib_save_LIBS=$LIBS
26835LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026837/* end confdefs.h. */
26838
26839/* Override any GCC internal prototype to avoid an error.
26840 Use char because int might match the return type of a GCC
26841 builtin and then its argument prototype would still apply. */
26842#ifdef __cplusplus
26843extern "C"
26844#endif
26845char gethostbyname ();
26846int
26847main ()
26848{
26849return gethostbyname ();
26850 ;
26851 return 0;
26852}
26853_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026854if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026855 ac_cv_lib_nsl_gethostbyname=yes
26856else
cristy8b350f62009-11-15 23:12:43 +000026857 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026858fi
cristy8b350f62009-11-15 23:12:43 +000026859rm -f core conftest.err conftest.$ac_objext \
26860 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026861LIBS=$ac_check_lib_save_LIBS
26862fi
cristy8b350f62009-11-15 23:12:43 +000026863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026864$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026865if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026866 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26867fi
26868
26869 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000026871$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026872if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026873 $as_echo_n "(cached) " >&6
26874else
26875 ac_check_lib_save_LIBS=$LIBS
26876LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026878/* end confdefs.h. */
26879
26880/* Override any GCC internal prototype to avoid an error.
26881 Use char because int might match the return type of a GCC
26882 builtin and then its argument prototype would still apply. */
26883#ifdef __cplusplus
26884extern "C"
26885#endif
26886char gethostbyname ();
26887int
26888main ()
26889{
26890return gethostbyname ();
26891 ;
26892 return 0;
26893}
26894_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026895if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026896 ac_cv_lib_bsd_gethostbyname=yes
26897else
cristy8b350f62009-11-15 23:12:43 +000026898 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026899fi
cristy8b350f62009-11-15 23:12:43 +000026900rm -f core conftest.err conftest.$ac_objext \
26901 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026902LIBS=$ac_check_lib_save_LIBS
26903fi
cristy8b350f62009-11-15 23:12:43 +000026904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026905$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026906if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026907 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26908fi
26909
26910 fi
26911 fi
26912
26913 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26914 # socket/setsockopt and other routines are undefined under SCO ODT
26915 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26916 # on later versions), says Simon Leinen: it contains gethostby*
26917 # variants that don't use the name server (or something). -lsocket
26918 # must be given before -lnsl if both are needed. We assume that
26919 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000026920 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000026921if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026922
cristy3ed852e2009-09-05 21:47:34 +000026923fi
26924
cristy3ed852e2009-09-05 21:47:34 +000026925 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000026926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000026927$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026928if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026929 $as_echo_n "(cached) " >&6
26930else
26931 ac_check_lib_save_LIBS=$LIBS
26932LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026934/* end confdefs.h. */
26935
26936/* Override any GCC internal prototype to avoid an error.
26937 Use char because int might match the return type of a GCC
26938 builtin and then its argument prototype would still apply. */
26939#ifdef __cplusplus
26940extern "C"
26941#endif
26942char connect ();
26943int
26944main ()
26945{
26946return connect ();
26947 ;
26948 return 0;
26949}
26950_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026951if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026952 ac_cv_lib_socket_connect=yes
26953else
cristy8b350f62009-11-15 23:12:43 +000026954 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000026955fi
cristy8b350f62009-11-15 23:12:43 +000026956rm -f core conftest.err conftest.$ac_objext \
26957 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026958LIBS=$ac_check_lib_save_LIBS
26959fi
cristy8b350f62009-11-15 23:12:43 +000026960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000026961$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000026962if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026963 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26964fi
26965
26966 fi
26967
26968 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000026969 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000026970if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026971
cristy3ed852e2009-09-05 21:47:34 +000026972fi
26973
cristy3ed852e2009-09-05 21:47:34 +000026974 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000026975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000026976$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026977if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026978 $as_echo_n "(cached) " >&6
26979else
26980 ac_check_lib_save_LIBS=$LIBS
26981LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026983/* end confdefs.h. */
26984
26985/* Override any GCC internal prototype to avoid an error.
26986 Use char because int might match the return type of a GCC
26987 builtin and then its argument prototype would still apply. */
26988#ifdef __cplusplus
26989extern "C"
26990#endif
26991char remove ();
26992int
26993main ()
26994{
26995return remove ();
26996 ;
26997 return 0;
26998}
26999_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027000if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027001 ac_cv_lib_posix_remove=yes
27002else
cristy8b350f62009-11-15 23:12:43 +000027003 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027004fi
cristy8b350f62009-11-15 23:12:43 +000027005rm -f core conftest.err conftest.$ac_objext \
27006 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027007LIBS=$ac_check_lib_save_LIBS
27008fi
cristy8b350f62009-11-15 23:12:43 +000027009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027010$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027011if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027012 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27013fi
27014
27015 fi
27016
27017 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027018 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027019if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027020
cristy3ed852e2009-09-05 21:47:34 +000027021fi
27022
cristy3ed852e2009-09-05 21:47:34 +000027023 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027025$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027026if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027027 $as_echo_n "(cached) " >&6
27028else
27029 ac_check_lib_save_LIBS=$LIBS
27030LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027032/* end confdefs.h. */
27033
27034/* Override any GCC internal prototype to avoid an error.
27035 Use char because int might match the return type of a GCC
27036 builtin and then its argument prototype would still apply. */
27037#ifdef __cplusplus
27038extern "C"
27039#endif
27040char shmat ();
27041int
27042main ()
27043{
27044return shmat ();
27045 ;
27046 return 0;
27047}
27048_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027049if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027050 ac_cv_lib_ipc_shmat=yes
27051else
cristy8b350f62009-11-15 23:12:43 +000027052 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027053fi
cristy8b350f62009-11-15 23:12:43 +000027054rm -f core conftest.err conftest.$ac_objext \
27055 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027056LIBS=$ac_check_lib_save_LIBS
27057fi
cristy8b350f62009-11-15 23:12:43 +000027058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027059$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027060if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027061 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27062fi
27063
27064 fi
27065 fi
27066
27067 # Check for libraries that X11R6 Xt/Xaw programs need.
27068 ac_save_LDFLAGS=$LDFLAGS
27069 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27070 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27071 # check for ICE first), but we must link in the order -lSM -lICE or
27072 # we get undefined symbols. So assume we have SM if we have ICE.
27073 # These have to be linked with before -lX11, unlike the other
27074 # libraries we check for below, so use a different variable.
27075 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027077$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027078if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027079 $as_echo_n "(cached) " >&6
27080else
27081 ac_check_lib_save_LIBS=$LIBS
27082LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027084/* end confdefs.h. */
27085
27086/* Override any GCC internal prototype to avoid an error.
27087 Use char because int might match the return type of a GCC
27088 builtin and then its argument prototype would still apply. */
27089#ifdef __cplusplus
27090extern "C"
27091#endif
27092char IceConnectionNumber ();
27093int
27094main ()
27095{
27096return IceConnectionNumber ();
27097 ;
27098 return 0;
27099}
27100_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027101if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027102 ac_cv_lib_ICE_IceConnectionNumber=yes
27103else
cristy8b350f62009-11-15 23:12:43 +000027104 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027105fi
cristy8b350f62009-11-15 23:12:43 +000027106rm -f core conftest.err conftest.$ac_objext \
27107 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027108LIBS=$ac_check_lib_save_LIBS
27109fi
cristy8b350f62009-11-15 23:12:43 +000027110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027111$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027112if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027113 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27114fi
27115
27116 LDFLAGS=$ac_save_LDFLAGS
27117
27118fi
27119
27120if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027122$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027124$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027126$as_echo "" >&6; }
27127 LDFLAGS="$LDFLAGS $X_LIBS"
27128 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27129 LIBS="$X11_LIBS $LIBS"
27130 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27131
27132
cristy8b350f62009-11-15 23:12:43 +000027133$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027134
27135 #
27136 # Check for X11 shared memory extension
27137 #
27138 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027139 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027140if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027141 have_shmctl='yes'
27142fi
27143
27144 if test "$have_shmctl" != 'yes'; then
27145 PERSIST_LIBS=$LIBS
27146 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027148/* end confdefs.h. */
27149
27150/* Override any GCC internal prototype to avoid an error.
27151 Use char because int might match the return type of a GCC
27152 builtin and then its argument prototype would still apply. */
27153#ifdef __cplusplus
27154extern "C"
27155#endif
27156char shmctl ();
27157int
27158main ()
27159{
27160return shmctl ();
27161 ;
27162 return 0;
27163}
27164_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027165if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027166 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027167fi
cristy8b350f62009-11-15 23:12:43 +000027168rm -f core conftest.err conftest.$ac_objext \
27169 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027170 LIBS=$PERSIST_LIBS
27171 fi
27172
27173 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027175$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027176if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027177 $as_echo_n "(cached) " >&6
27178else
27179 ac_check_lib_save_LIBS=$LIBS
27180LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027182/* end confdefs.h. */
27183
27184/* Override any GCC internal prototype to avoid an error.
27185 Use char because int might match the return type of a GCC
27186 builtin and then its argument prototype would still apply. */
27187#ifdef __cplusplus
27188extern "C"
27189#endif
27190char XShmAttach ();
27191int
27192main ()
27193{
27194return XShmAttach ();
27195 ;
27196 return 0;
27197}
27198_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027199if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027200 ac_cv_lib_Xext_XShmAttach=yes
27201else
cristy8b350f62009-11-15 23:12:43 +000027202 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027203fi
cristy8b350f62009-11-15 23:12:43 +000027204rm -f core conftest.err conftest.$ac_objext \
27205 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027206LIBS=$ac_check_lib_save_LIBS
27207fi
cristy8b350f62009-11-15 23:12:43 +000027208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027209$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027210if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027211 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027212$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027213
27214fi
27215
27216 fi
27217
27218 #
27219 # Check for X11 shape extension
27220 #
cristy8b350f62009-11-15 23:12:43 +000027221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027222$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027223if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027224 $as_echo_n "(cached) " >&6
27225else
27226 ac_check_lib_save_LIBS=$LIBS
27227LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027229/* end confdefs.h. */
27230
27231/* Override any GCC internal prototype to avoid an error.
27232 Use char because int might match the return type of a GCC
27233 builtin and then its argument prototype would still apply. */
27234#ifdef __cplusplus
27235extern "C"
27236#endif
27237char XShapeCombineMask ();
27238int
27239main ()
27240{
27241return XShapeCombineMask ();
27242 ;
27243 return 0;
27244}
27245_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027246if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027247 ac_cv_lib_Xext_XShapeCombineMask=yes
27248else
cristy8b350f62009-11-15 23:12:43 +000027249 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027250fi
cristy8b350f62009-11-15 23:12:43 +000027251rm -f core conftest.err conftest.$ac_objext \
27252 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027253LIBS=$ac_check_lib_save_LIBS
27254fi
cristy8b350f62009-11-15 23:12:43 +000027255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027256$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027257if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027258 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027259$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027260
27261fi
27262
cristy8b350f62009-11-15 23:12:43 +000027263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027264$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027265if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027266 $as_echo_n "(cached) " >&6
27267else
27268 ac_check_lib_save_LIBS=$LIBS
27269LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027271/* end confdefs.h. */
27272
27273/* Override any GCC internal prototype to avoid an error.
27274 Use char because int might match the return type of a GCC
27275 builtin and then its argument prototype would still apply. */
27276#ifdef __cplusplus
27277extern "C"
27278#endif
27279char XtSetEventDispatcher ();
27280int
27281main ()
27282{
27283return XtSetEventDispatcher ();
27284 ;
27285 return 0;
27286}
27287_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027288if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027289 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27290else
cristy8b350f62009-11-15 23:12:43 +000027291 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027292fi
cristy8b350f62009-11-15 23:12:43 +000027293rm -f core conftest.err conftest.$ac_objext \
27294 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027295LIBS=$ac_check_lib_save_LIBS
27296fi
cristy8b350f62009-11-15 23:12:43 +000027297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027298$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027299if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027300 XT_LIBS='-lXt'
27301fi
27302
27303 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27304fi
27305if test "$no_x" != 'yes'; then
27306 have_x='yes'
27307else
27308 have_x='no'
27309fi
cristy73bd4a52010-10-05 11:24:23 +000027310 if test "$have_x" = 'yes'; then
27311 X11_DELEGATE_TRUE=
27312 X11_DELEGATE_FALSE='#'
27313else
27314 X11_DELEGATE_TRUE='#'
27315 X11_DELEGATE_FALSE=
27316fi
27317
cristy3ed852e2009-09-05 21:47:34 +000027318
27319
27320
27321
27322#
27323# Check for ZLIB
27324#
27325
27326# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027327if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027328 withval=$with_zlib; with_zlib=$withval
27329else
27330 with_zlib='yes'
27331fi
27332
27333
27334if test "$with_zlib" != 'yes'; then
27335 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27336fi
27337
27338have_zlib='no'
27339ZLIB_LIBS=''
27340if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027342$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027344$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027346$as_echo "" >&6; }
27347 ZLIB_LIBS=''
27348 failed=0
27349 passed=0
cristy8b350f62009-11-15 23:12:43 +000027350 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027351if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027352 passed=`expr $passed + 1`
27353else
27354 failed=`expr $failed + 1`
27355fi
27356
27357
cristy8b350f62009-11-15 23:12:43 +000027358 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027359if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027360 passed=`expr $passed + 1`
27361else
27362 failed=`expr $failed + 1`
27363fi
27364
27365
cristy8b350f62009-11-15 23:12:43 +000027366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027367$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027368if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027369 $as_echo_n "(cached) " >&6
27370else
27371 ac_check_lib_save_LIBS=$LIBS
27372LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027374/* end confdefs.h. */
27375
27376/* Override any GCC internal prototype to avoid an error.
27377 Use char because int might match the return type of a GCC
27378 builtin and then its argument prototype would still apply. */
27379#ifdef __cplusplus
27380extern "C"
27381#endif
27382char compress ();
27383int
27384main ()
27385{
27386return compress ();
27387 ;
27388 return 0;
27389}
27390_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027391if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027392 ac_cv_lib_z_compress=yes
27393else
cristy8b350f62009-11-15 23:12:43 +000027394 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027395fi
cristy8b350f62009-11-15 23:12:43 +000027396rm -f core conftest.err conftest.$ac_objext \
27397 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027398LIBS=$ac_check_lib_save_LIBS
27399fi
cristy8b350f62009-11-15 23:12:43 +000027400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027401$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027402if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027403 passed=`expr $passed + 1`
27404else
27405 failed=`expr $failed + 1`
27406fi
27407
cristy8b350f62009-11-15 23:12:43 +000027408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027409$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027410if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027411 $as_echo_n "(cached) " >&6
27412else
27413 ac_check_lib_save_LIBS=$LIBS
27414LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027416/* end confdefs.h. */
27417
27418/* Override any GCC internal prototype to avoid an error.
27419 Use char because int might match the return type of a GCC
27420 builtin and then its argument prototype would still apply. */
27421#ifdef __cplusplus
27422extern "C"
27423#endif
27424char uncompress ();
27425int
27426main ()
27427{
27428return uncompress ();
27429 ;
27430 return 0;
27431}
27432_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027433if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027434 ac_cv_lib_z_uncompress=yes
27435else
cristy8b350f62009-11-15 23:12:43 +000027436 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027437fi
cristy8b350f62009-11-15 23:12:43 +000027438rm -f core conftest.err conftest.$ac_objext \
27439 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027440LIBS=$ac_check_lib_save_LIBS
27441fi
cristy8b350f62009-11-15 23:12:43 +000027442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027443$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027444if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027445 passed=`expr $passed + 1`
27446else
27447 failed=`expr $failed + 1`
27448fi
27449
cristy8b350f62009-11-15 23:12:43 +000027450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027451$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027452if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027453 $as_echo_n "(cached) " >&6
27454else
27455 ac_check_lib_save_LIBS=$LIBS
27456LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027458/* end confdefs.h. */
27459
27460/* Override any GCC internal prototype to avoid an error.
27461 Use char because int might match the return type of a GCC
27462 builtin and then its argument prototype would still apply. */
27463#ifdef __cplusplus
27464extern "C"
27465#endif
27466char deflate ();
27467int
27468main ()
27469{
27470return deflate ();
27471 ;
27472 return 0;
27473}
27474_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027475if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027476 ac_cv_lib_z_deflate=yes
27477else
cristy8b350f62009-11-15 23:12:43 +000027478 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027479fi
cristy8b350f62009-11-15 23:12:43 +000027480rm -f core conftest.err conftest.$ac_objext \
27481 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027482LIBS=$ac_check_lib_save_LIBS
27483fi
cristy8b350f62009-11-15 23:12:43 +000027484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027485$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027486if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027487 passed=`expr $passed + 1`
27488else
27489 failed=`expr $failed + 1`
27490fi
27491
cristy8b350f62009-11-15 23:12:43 +000027492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027493$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027494if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027495 $as_echo_n "(cached) " >&6
27496else
27497 ac_check_lib_save_LIBS=$LIBS
27498LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027500/* end confdefs.h. */
27501
27502/* Override any GCC internal prototype to avoid an error.
27503 Use char because int might match the return type of a GCC
27504 builtin and then its argument prototype would still apply. */
27505#ifdef __cplusplus
27506extern "C"
27507#endif
27508char inflate ();
27509int
27510main ()
27511{
27512return inflate ();
27513 ;
27514 return 0;
27515}
27516_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027517if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027518 ac_cv_lib_z_inflate=yes
27519else
cristy8b350f62009-11-15 23:12:43 +000027520 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027521fi
cristy8b350f62009-11-15 23:12:43 +000027522rm -f core conftest.err conftest.$ac_objext \
27523 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027524LIBS=$ac_check_lib_save_LIBS
27525fi
cristy8b350f62009-11-15 23:12:43 +000027526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027527$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027528if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027529 passed=`expr $passed + 1`
27530else
27531 failed=`expr $failed + 1`
27532fi
27533
cristy8b350f62009-11-15 23:12:43 +000027534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027535$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027536if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027537 $as_echo_n "(cached) " >&6
27538else
27539 ac_check_lib_save_LIBS=$LIBS
27540LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027542/* end confdefs.h. */
27543
27544/* Override any GCC internal prototype to avoid an error.
27545 Use char because int might match the return type of a GCC
27546 builtin and then its argument prototype would still apply. */
27547#ifdef __cplusplus
27548extern "C"
27549#endif
27550char gzseek ();
27551int
27552main ()
27553{
27554return gzseek ();
27555 ;
27556 return 0;
27557}
27558_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027559if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027560 ac_cv_lib_z_gzseek=yes
27561else
cristy8b350f62009-11-15 23:12:43 +000027562 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027563fi
cristy8b350f62009-11-15 23:12:43 +000027564rm -f core conftest.err conftest.$ac_objext \
27565 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027566LIBS=$ac_check_lib_save_LIBS
27567fi
cristy8b350f62009-11-15 23:12:43 +000027568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027569$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027570if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027571 passed=`expr $passed + 1`
27572else
27573 failed=`expr $failed + 1`
27574fi
27575
cristy8b350f62009-11-15 23:12:43 +000027576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027577$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027578if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027579 $as_echo_n "(cached) " >&6
27580else
27581 ac_check_lib_save_LIBS=$LIBS
27582LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027584/* end confdefs.h. */
27585
27586/* Override any GCC internal prototype to avoid an error.
27587 Use char because int might match the return type of a GCC
27588 builtin and then its argument prototype would still apply. */
27589#ifdef __cplusplus
27590extern "C"
27591#endif
27592char gztell ();
27593int
27594main ()
27595{
27596return gztell ();
27597 ;
27598 return 0;
27599}
27600_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027601if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027602 ac_cv_lib_z_gztell=yes
27603else
cristy8b350f62009-11-15 23:12:43 +000027604 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027605fi
cristy8b350f62009-11-15 23:12:43 +000027606rm -f core conftest.err conftest.$ac_objext \
27607 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027608LIBS=$ac_check_lib_save_LIBS
27609fi
cristy8b350f62009-11-15 23:12:43 +000027610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027611$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027612if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027613 passed=`expr $passed + 1`
27614else
27615 failed=`expr $failed + 1`
27616fi
27617
cristy8b350f62009-11-15 23:12:43 +000027618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027619$as_echo_n "checking if ZLIB package is complete... " >&6; }
27620 if test $passed -gt 0; then
27621 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027623$as_echo "no -- some components failed test" >&6; }
27624 have_zlib='no (failed tests)'
27625 else
27626 ZLIB_LIBS='-lz'
27627 LIBS="$ZLIB_LIBS $LIBS"
27628
cristy8b350f62009-11-15 23:12:43 +000027629$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027630
cristy8b350f62009-11-15 23:12:43 +000027631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027632$as_echo "yes" >&6; }
27633 have_zlib='yes'
27634 fi
27635 else
cristy8b350f62009-11-15 23:12:43 +000027636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027637$as_echo "no" >&6; }
27638 fi
27639fi
cristy73bd4a52010-10-05 11:24:23 +000027640 if test "$have_zlib" = 'yes'; then
27641 ZLIB_DELEGATE_TRUE=
27642 ZLIB_DELEGATE_FALSE='#'
27643else
27644 ZLIB_DELEGATE_TRUE='#'
27645 ZLIB_DELEGATE_FALSE=
27646fi
27647
cristy3ed852e2009-09-05 21:47:34 +000027648
27649
27650#
27651# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27652#
27653LIB_DL=''
27654if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027656$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027657if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027658 $as_echo_n "(cached) " >&6
27659else
27660 ac_check_lib_save_LIBS=$LIBS
27661LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027663/* end confdefs.h. */
27664
27665/* Override any GCC internal prototype to avoid an error.
27666 Use char because int might match the return type of a GCC
27667 builtin and then its argument prototype would still apply. */
27668#ifdef __cplusplus
27669extern "C"
27670#endif
27671char dlopen ();
27672int
27673main ()
27674{
27675return dlopen ();
27676 ;
27677 return 0;
27678}
27679_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027680if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027681 ac_cv_lib_dl_dlopen=yes
27682else
cristy8b350f62009-11-15 23:12:43 +000027683 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000027684fi
cristy8b350f62009-11-15 23:12:43 +000027685rm -f core conftest.err conftest.$ac_objext \
27686 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027687LIBS=$ac_check_lib_save_LIBS
27688fi
cristy8b350f62009-11-15 23:12:43 +000027689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027690$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000027691if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027692 LIB_DL='-ldl'
27693fi
27694
27695 LIBS="$LIB_DL $LIBS"
27696fi
27697
27698
27699
27700#
27701# Check for Autotrace delegate library.
27702#
27703
27704# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000027705if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027706 withval=$with_autotrace; with_autotrace=$withval
27707else
27708 with_autotrace='no'
27709fi
27710
27711
27712if test "$with_autotrace" != 'yes'; then
27713 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27714fi
27715
27716have_autotrace='no'
27717AUTOTRACE_CFLAGS=""
27718AUTOTRACE_LIBS=""
27719AUTOTRACE_PKG=""
27720if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027722$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027723
27724pkg_failed=no
27725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27726$as_echo_n "checking for AUTOTRACE... " >&6; }
27727
27728if test -n "$AUTOTRACE_CFLAGS"; then
27729 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27730 elif test -n "$PKG_CONFIG"; then
27731 if test -n "$PKG_CONFIG" && \
27732 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27733 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27734 ac_status=$?
27735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27736 test $ac_status = 0; }; then
27737 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27738else
27739 pkg_failed=yes
27740fi
27741 else
27742 pkg_failed=untried
27743fi
27744if test -n "$AUTOTRACE_LIBS"; then
27745 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27746 elif test -n "$PKG_CONFIG"; then
27747 if test -n "$PKG_CONFIG" && \
27748 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27749 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27750 ac_status=$?
27751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27752 test $ac_status = 0; }; then
27753 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27754else
27755 pkg_failed=yes
27756fi
27757 else
27758 pkg_failed=untried
27759fi
27760
27761
27762
27763if test $pkg_failed = yes; then
27764
27765if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27766 _pkg_short_errors_supported=yes
27767else
27768 _pkg_short_errors_supported=no
27769fi
27770 if test $_pkg_short_errors_supported = yes; then
27771 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27772 else
27773 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27774 fi
27775 # Put the nasty error message in config.log where it belongs
27776 echo "$AUTOTRACE_PKG_ERRORS" >&5
27777
27778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27779$as_echo "no" >&6; }
27780 have_autotrace=no
27781elif test $pkg_failed = untried; then
27782 have_autotrace=no
27783else
27784 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27785 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27787$as_echo "yes" >&6; }
27788 have_autotrace=yes
27789fi
cristy8b350f62009-11-15 23:12:43 +000027790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027791$as_echo "" >&6; }
27792fi
27793
27794if test "$have_autotrace" = 'yes'; then
27795 failed=0
27796
cristy8b350f62009-11-15 23:12:43 +000027797$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027798
27799 if test "$with_modules" = 'no'; then
27800 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27801 fi
27802fi
27803
cristy73bd4a52010-10-05 11:24:23 +000027804 if test "$have_autotrace" = 'yes'; then
27805 AUTOTRACE_DELEGATE_TRUE=
27806 AUTOTRACE_DELEGATE_FALSE='#'
27807else
27808 AUTOTRACE_DELEGATE_TRUE='#'
27809 AUTOTRACE_DELEGATE_FALSE=
27810fi
27811
cristy3ed852e2009-09-05 21:47:34 +000027812
27813
27814
27815
27816#
27817# Check for Display Postscript delegate library.
27818#
27819
27820# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000027821if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027822 withval=$with_dps; with_dps=$withval
27823else
27824 with_dps='yes'
27825fi
27826
27827
27828if test "$with_dps" != 'yes'; then
27829 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
27830fi
27831
27832have_dps='no'
27833DPS_LIBS=''
27834if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027836$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027838$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027840$as_echo "" >&6; }
27841 failed=0
27842 passed=0
27843 PERSIST_CPPFLAGS="$CPPFLAGS"
27844 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000027845 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027846if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027847 passed=`expr $passed + 1`
27848else
27849 failed=`expr $failed + 1`
27850fi
27851
27852
27853 # DPS issues:
27854 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
27855 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
27856 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
27857 # ImageMagick itself doesn't use -lXt.
27858 have_libdps='no'
27859 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000027860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027861$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027862if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027863 $as_echo_n "(cached) " >&6
27864else
27865 ac_check_lib_save_LIBS=$LIBS
27866LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027868/* end confdefs.h. */
27869
27870/* Override any GCC internal prototype to avoid an error.
27871 Use char because int might match the return type of a GCC
27872 builtin and then its argument prototype would still apply. */
27873#ifdef __cplusplus
27874extern "C"
27875#endif
27876char DPSInitialize ();
27877int
27878main ()
27879{
27880return DPSInitialize ();
27881 ;
27882 return 0;
27883}
27884_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027885if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027886 ac_cv_lib_dps_DPSInitialize=yes
27887else
cristy8b350f62009-11-15 23:12:43 +000027888 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027889fi
cristy8b350f62009-11-15 23:12:43 +000027890rm -f core conftest.err conftest.$ac_objext \
27891 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027892LIBS=$ac_check_lib_save_LIBS
27893fi
cristy8b350f62009-11-15 23:12:43 +000027894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027895$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027896if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027897 have_libdps='yes'
27898else
27899 have_libdps='no'
27900fi
27901
27902 if test "$have_libdps" != 'yes'; then
27903 # Unset cache variable so we can try again.
27904 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000027905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027906$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027907if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027908 $as_echo_n "(cached) " >&6
27909else
27910 ac_check_lib_save_LIBS=$LIBS
27911LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027913/* end confdefs.h. */
27914
27915/* Override any GCC internal prototype to avoid an error.
27916 Use char because int might match the return type of a GCC
27917 builtin and then its argument prototype would still apply. */
27918#ifdef __cplusplus
27919extern "C"
27920#endif
27921char DPSInitialize ();
27922int
27923main ()
27924{
27925return DPSInitialize ();
27926 ;
27927 return 0;
27928}
27929_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027930if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027931 ac_cv_lib_dps_DPSInitialize=yes
27932else
cristy8b350f62009-11-15 23:12:43 +000027933 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027934fi
cristy8b350f62009-11-15 23:12:43 +000027935rm -f core conftest.err conftest.$ac_objext \
27936 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027937LIBS=$ac_check_lib_save_LIBS
27938fi
cristy8b350f62009-11-15 23:12:43 +000027939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027940$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027941if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027942 have_libdps='yes'
27943else
27944 have_libdps='no'
27945fi
27946
27947 if test "$have_libdps" = 'yes'; then
27948 LIBDPS_XT='-lXt'
27949 fi
27950 fi
27951 if test "$have_libdps" = 'yes'; then
27952 passed=`expr $passed + 1`
27953 else
27954 failed=`expr $failed + 1`
27955 fi
cristy8b350f62009-11-15 23:12:43 +000027956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000027957$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027958if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027959 $as_echo_n "(cached) " >&6
27960else
27961 ac_check_lib_save_LIBS=$LIBS
27962LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027964/* end confdefs.h. */
27965
27966/* Override any GCC internal prototype to avoid an error.
27967 Use char because int might match the return type of a GCC
27968 builtin and then its argument prototype would still apply. */
27969#ifdef __cplusplus
27970extern "C"
27971#endif
27972char XDPSPixelsPerPoint ();
27973int
27974main ()
27975{
27976return XDPSPixelsPerPoint ();
27977 ;
27978 return 0;
27979}
27980_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027981if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027982 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
27983else
cristy8b350f62009-11-15 23:12:43 +000027984 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000027985fi
cristy8b350f62009-11-15 23:12:43 +000027986rm -f core conftest.err conftest.$ac_objext \
27987 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027988LIBS=$ac_check_lib_save_LIBS
27989fi
cristy8b350f62009-11-15 23:12:43 +000027990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000027991$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000027992if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027993 passed=`expr $passed + 1`
27994else
27995 failed=`expr $failed + 1`
27996fi
27997
cristy8b350f62009-11-15 23:12:43 +000027998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027999$as_echo_n "checking if DPS package is complete... " >&6; }
28000 if test $passed -gt 0; then
28001 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028003$as_echo "no -- some components failed test" >&6; }
28004 have_dps='no (failed tests)'
28005 CPPFLAGS="$PERSIST_CPPFLAGS"
28006 else
28007 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28008 LIBS="$DPS_LIBS $LIBS"
28009
cristy8b350f62009-11-15 23:12:43 +000028010$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028011
cristy8b350f62009-11-15 23:12:43 +000028012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028013$as_echo "yes" >&6; }
28014 have_dps='yes'
28015 fi
28016 else
cristy8b350f62009-11-15 23:12:43 +000028017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028018$as_echo "no" >&6; }
28019 CPPFLAGS=$PERSIST_CPPFLAGS
28020 fi
28021fi
cristy73bd4a52010-10-05 11:24:23 +000028022 if test "$have_dps" = 'yes'; then
28023 DPS_DELEGATE_TRUE=
28024 DPS_DELEGATE_FALSE='#'
28025else
28026 DPS_DELEGATE_TRUE='#'
28027 DPS_DELEGATE_FALSE=
28028fi
28029
cristy3ed852e2009-09-05 21:47:34 +000028030
28031
28032
28033#
28034# Check for DJVU delegate library.
28035#
28036
28037# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028038if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028039 withval=$with_djvu; with_djvu=$withval
28040else
28041 with_djvu='yes'
28042fi
28043
28044
28045if test "$with_djvu" != 'yes'; then
28046 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28047fi
28048
28049have_djvu='no'
28050DJVU_LIBS=''
28051if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028053$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028055$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028057$as_echo "" >&6; }
28058 failed=0
28059 passed=0
cristy8b350f62009-11-15 23:12:43 +000028060 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028061if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028062 passed=`expr $passed + 1`
28063else
28064 failed=`expr $failed + 1`
28065fi
28066
28067
cristy8b350f62009-11-15 23:12:43 +000028068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028069$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028070if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028071 $as_echo_n "(cached) " >&6
28072else
28073 ac_check_lib_save_LIBS=$LIBS
28074LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028076/* end confdefs.h. */
28077
28078/* Override any GCC internal prototype to avoid an error.
28079 Use char because int might match the return type of a GCC
28080 builtin and then its argument prototype would still apply. */
28081#ifdef __cplusplus
28082extern "C"
28083#endif
28084char ddjvu_context_create ();
28085int
28086main ()
28087{
28088return ddjvu_context_create ();
28089 ;
28090 return 0;
28091}
28092_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028093if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028094 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28095else
cristy8b350f62009-11-15 23:12:43 +000028096 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028097fi
cristy8b350f62009-11-15 23:12:43 +000028098rm -f core conftest.err conftest.$ac_objext \
28099 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028100LIBS=$ac_check_lib_save_LIBS
28101fi
cristy8b350f62009-11-15 23:12:43 +000028102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028103$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028104if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028105 passed=`expr $passed + 1`
28106else
28107 failed=`expr $failed + 1`
28108fi
28109
cristy8b350f62009-11-15 23:12:43 +000028110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028111$as_echo_n "checking if DJVU package is complete... " >&6; }
28112 if test $passed -gt 0; then
28113 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028115$as_echo "no -- some components failed test" >&6; }
28116 have_djvu='no (failed tests)'
28117 else
28118 DJVU_LIBS='-ldjvulibre'
28119 LIBS="$DJVU_LIBS $LIBS"
28120
cristy8b350f62009-11-15 23:12:43 +000028121$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028122
cristy8b350f62009-11-15 23:12:43 +000028123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028124$as_echo "yes" >&6; }
28125 have_djvu='yes'
28126 fi
28127 else
cristy8b350f62009-11-15 23:12:43 +000028128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028129$as_echo "no" >&6; }
28130 fi
28131fi
cristy73bd4a52010-10-05 11:24:23 +000028132 if test "$have_djvu" = 'yes'; then
28133 DJVU_DELEGATE_TRUE=
28134 DJVU_DELEGATE_FALSE='#'
28135else
28136 DJVU_DELEGATE_TRUE='#'
28137 DJVU_DELEGATE_FALSE=
28138fi
28139
cristy3ed852e2009-09-05 21:47:34 +000028140
28141
28142
28143#
cristy430a7312010-01-21 20:44:04 +000028144# Set DejaVu font directory.
28145#
28146
28147# Check whether --with-dejavu-font-dir was given.
28148if test "${with_dejavu_font_dir+set}" = set; then :
28149 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28150else
28151 with_dejavu_font_dir='default'
28152fi
28153
28154
28155if test "$with_dejavu_font_dir" != 'default'; then
28156 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28157fi
28158
28159
28160#
cristy3ed852e2009-09-05 21:47:34 +000028161# Check for FFTW delegate library.
28162#
28163
28164# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028165if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028166 withval=$with_fftw; with_fftw=$withval
28167else
28168 with_fftw='yes'
28169fi
28170
28171
28172if test "$with_fftw" != 'yes'; then
28173 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28174fi
28175
28176have_fftw='no'
28177FFTW_LIBS=''
28178if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028180$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000028182$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028184$as_echo "" >&6; }
28185 failed=0
28186 passed=0
cristy8b350f62009-11-15 23:12:43 +000028187 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028188if test "x$ac_cv_header_fftw3_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028189 passed=`expr $passed + 1`
28190else
28191 failed=`expr $failed + 1`
28192fi
28193
28194
cristy8b350f62009-11-15 23:12:43 +000028195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000028196$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028197if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028198 $as_echo_n "(cached) " >&6
28199else
28200 ac_check_lib_save_LIBS=$LIBS
28201LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028203/* end confdefs.h. */
28204
28205/* Override any GCC internal prototype to avoid an error.
28206 Use char because int might match the return type of a GCC
28207 builtin and then its argument prototype would still apply. */
28208#ifdef __cplusplus
28209extern "C"
28210#endif
28211char fftw_execute ();
28212int
28213main ()
28214{
28215return fftw_execute ();
28216 ;
28217 return 0;
28218}
28219_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028220if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028221 ac_cv_lib_fftw3_fftw_execute=yes
28222else
cristy8b350f62009-11-15 23:12:43 +000028223 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000028224fi
cristy8b350f62009-11-15 23:12:43 +000028225rm -f core conftest.err conftest.$ac_objext \
28226 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028227LIBS=$ac_check_lib_save_LIBS
28228fi
cristy8b350f62009-11-15 23:12:43 +000028229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000028230$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristyda16f162011-02-19 23:52:17 +000028231if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028232 passed=`expr $passed + 1`
28233else
28234 failed=`expr $failed + 1`
28235fi
28236
cristy8b350f62009-11-15 23:12:43 +000028237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028238$as_echo_n "checking if FFTW package is complete... " >&6; }
28239 if test $passed -gt 0; then
28240 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028242$as_echo "no -- some components failed test" >&6; }
28243 have_fftw='no (failed tests)'
28244 else
28245 FFTW_LIBS='-lfftw3'
28246 LIBS="$FFTW_LIBS $LIBS"
28247
cristy8b350f62009-11-15 23:12:43 +000028248$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028249
cristy8b350f62009-11-15 23:12:43 +000028250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028251$as_echo "yes" >&6; }
28252 have_fftw='yes'
28253 fi
28254 else
cristy8b350f62009-11-15 23:12:43 +000028255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028256$as_echo "no" >&6; }
28257 fi
28258fi
cristy73bd4a52010-10-05 11:24:23 +000028259 if test "$have_fftw" = 'yes'; then
28260 FFTW_DELEGATE_TRUE=
28261 FFTW_DELEGATE_FALSE='#'
28262else
28263 FFTW_DELEGATE_TRUE='#'
28264 FFTW_DELEGATE_FALSE=
28265fi
28266
cristy3ed852e2009-09-05 21:47:34 +000028267
28268
28269
28270#
28271# Check for FlashPIX delegate library.
28272#
28273
28274# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028275if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028276 withval=$with_fpx; with_fpx=$withval
28277else
28278 with_fpx='yes'
28279fi
28280
28281
28282if test "$with_fpx" != 'yes'; then
28283 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28284fi
28285
28286have_fpx='no'
28287FPX_LIBS=''
28288if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028290$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028292$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028294$as_echo "" >&6; }
28295 failed=0
28296 passed=0
28297 ac_ext=cpp
28298ac_cpp='$CXXCPP $CPPFLAGS'
28299ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28300ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28301ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28302
28303
cristy8b350f62009-11-15 23:12:43 +000028304ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028305if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028306 passed=`expr $passed + 1`
28307else
28308 failed=`expr $failed + 1`
28309fi
28310
28311
cristy8b350f62009-11-15 23:12:43 +000028312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028313$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028314if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028315 $as_echo_n "(cached) " >&6
28316else
28317 ac_check_lib_save_LIBS=$LIBS
28318LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028320/* end confdefs.h. */
28321
28322/* Override any GCC internal prototype to avoid an error.
28323 Use char because int might match the return type of a GCC
28324 builtin and then its argument prototype would still apply. */
28325#ifdef __cplusplus
28326extern "C"
28327#endif
28328char FPX_OpenImageByFilename ();
28329int
28330main ()
28331{
28332return FPX_OpenImageByFilename ();
28333 ;
28334 return 0;
28335}
28336_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028337if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028338 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28339else
cristy8b350f62009-11-15 23:12:43 +000028340 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028341fi
cristy8b350f62009-11-15 23:12:43 +000028342rm -f core conftest.err conftest.$ac_objext \
28343 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028344LIBS=$ac_check_lib_save_LIBS
28345fi
cristy8b350f62009-11-15 23:12:43 +000028346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028347$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028348if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028349 passed=`expr $passed + 1`
28350else
28351 failed=`expr $failed + 1`
28352fi
28353
28354 ac_ext=c
28355ac_cpp='$CPP $CPPFLAGS'
28356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28358ac_compiler_gnu=$ac_cv_c_compiler_gnu
28359
cristy8b350f62009-11-15 23:12:43 +000028360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028361$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28362 if test $passed -gt 0; then
28363 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028365$as_echo "no -- some components failed test" >&6; }
28366 have_fpx='no (failed tests)'
28367 else
28368 FPX_LIBS='-lfpx'
28369
cristy8b350f62009-11-15 23:12:43 +000028370$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028371
cristy8b350f62009-11-15 23:12:43 +000028372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028373$as_echo "yes" >&6; }
28374 have_fpx='yes'
28375 PERLMAINCC="$CXX"
28376 fi
28377 else
cristy8b350f62009-11-15 23:12:43 +000028378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028379$as_echo "no" >&6; }
28380 fi
28381fi
cristy73bd4a52010-10-05 11:24:23 +000028382 if test "$have_fpx" = 'yes'; then
28383 FPX_DELEGATE_TRUE=
28384 FPX_DELEGATE_FALSE='#'
28385else
28386 FPX_DELEGATE_TRUE='#'
28387 FPX_DELEGATE_FALSE=
28388fi
28389
cristy3ed852e2009-09-05 21:47:34 +000028390
28391
28392
28393#
28394# Check for fontconfig delegate library.
28395#
28396
28397# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028398if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028399 withval=$with_fontconfig; with_fontconfig=$withval
28400else
28401 with_fontconfig=$have_x
28402fi
28403
28404
28405if test "$with_fontconfig" != 'yes'; then
28406 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28407fi
28408
28409have_fontconfig='no'
28410FONTCONFIG_CFLAGS=""
28411FONTCONFIG_LIBS=""
28412FONTCONFIG_PKG=""
28413if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028415$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028416
28417pkg_failed=no
28418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28419$as_echo_n "checking for FONTCONFIG... " >&6; }
28420
28421if test -n "$FONTCONFIG_CFLAGS"; then
28422 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28423 elif test -n "$PKG_CONFIG"; then
28424 if test -n "$PKG_CONFIG" && \
28425 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28426 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28427 ac_status=$?
28428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28429 test $ac_status = 0; }; then
28430 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28431else
28432 pkg_failed=yes
28433fi
28434 else
28435 pkg_failed=untried
28436fi
28437if test -n "$FONTCONFIG_LIBS"; then
28438 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28439 elif test -n "$PKG_CONFIG"; then
28440 if test -n "$PKG_CONFIG" && \
28441 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28442 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28443 ac_status=$?
28444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28445 test $ac_status = 0; }; then
28446 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28447else
28448 pkg_failed=yes
28449fi
28450 else
28451 pkg_failed=untried
28452fi
28453
28454
28455
28456if test $pkg_failed = yes; then
28457
28458if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28459 _pkg_short_errors_supported=yes
28460else
28461 _pkg_short_errors_supported=no
28462fi
28463 if test $_pkg_short_errors_supported = yes; then
28464 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28465 else
28466 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28467 fi
28468 # Put the nasty error message in config.log where it belongs
28469 echo "$FONTCONFIG_PKG_ERRORS" >&5
28470
28471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28472$as_echo "no" >&6; }
28473 have_fontconfig=no
28474elif test $pkg_failed = untried; then
28475 have_fontconfig=no
28476else
28477 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28478 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28480$as_echo "yes" >&6; }
28481 have_fontconfig=yes
28482fi
cristy8b350f62009-11-15 23:12:43 +000028483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028484$as_echo "" >&6; }
28485fi
28486
28487if test "$have_fontconfig" = 'yes'; then
28488
cristy8b350f62009-11-15 23:12:43 +000028489$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028490
cristyd09bcf92010-03-25 03:04:45 +000028491 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028492 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028493 fi
cristy3ed852e2009-09-05 21:47:34 +000028494fi
28495
cristy73bd4a52010-10-05 11:24:23 +000028496 if test "$have_fontconfig" = 'yes'; then
28497 FONTCONFIG_DELEGATE_TRUE=
28498 FONTCONFIG_DELEGATE_FALSE='#'
28499else
28500 FONTCONFIG_DELEGATE_TRUE='#'
28501 FONTCONFIG_DELEGATE_FALSE=
28502fi
28503
cristy3ed852e2009-09-05 21:47:34 +000028504
28505
28506
28507
28508#
28509# Check for freetype delegate library.
28510#
28511
28512# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028513if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028514 withval=$with_freetype; with_freetype=$withval
28515else
28516 with_freetype='yes'
28517fi
28518
28519
28520
28521if test "$with_freetype" != 'yes'; then
28522 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28523fi
28524
28525have_freetype='no'
28526FREETYPE_LIBS=''
28527if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028529$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000028531$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028533$as_echo "" >&6; }
28534 failed=0
28535 passed=0
cristy66291112009-10-03 22:44:36 +000028536 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028537 PERSIST_CPPFLAGS="$CPPFLAGS"
28538 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
28539 :
28540 else
28541 freetype_config=''
28542 for ac_prog in freetype-config
28543do
28544 # Extract the first word of "$ac_prog", so it can be a program name with args.
28545set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028547$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028548if ${ac_cv_prog_freetype_config+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028549 $as_echo_n "(cached) " >&6
28550else
28551 if test -n "$freetype_config"; then
28552 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
28553else
28554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28555for as_dir in $PATH
28556do
28557 IFS=$as_save_IFS
28558 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028559 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28561 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000028562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028563 break 2
28564 fi
28565done
cristy8b350f62009-11-15 23:12:43 +000028566 done
cristy3ed852e2009-09-05 21:47:34 +000028567IFS=$as_save_IFS
28568
28569fi
28570fi
28571freetype_config=$ac_cv_prog_freetype_config
28572if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000028573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000028574$as_echo "$freetype_config" >&6; }
28575else
cristy8b350f62009-11-15 23:12:43 +000028576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028577$as_echo "no" >&6; }
28578fi
28579
28580
28581 test -n "$freetype_config" && break
28582done
28583 if test -n "$freetype_config"; then
28584 freetype_cflags=`$freetype_config --cflags`
28585 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000028586 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000028587 CPPFLAGS="$freetype_cflags $CPPFLAGS"
28588 fi
28589 fi
28590
28591 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000028592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000028593$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028594if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028595 $as_echo_n "(cached) " >&6
28596else
28597 ac_check_lib_save_LIBS=$LIBS
28598LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028600/* end confdefs.h. */
28601
28602/* Override any GCC internal prototype to avoid an error.
28603 Use char because int might match the return type of a GCC
28604 builtin and then its argument prototype would still apply. */
28605#ifdef __cplusplus
28606extern "C"
28607#endif
28608char FT_Init_FreeType ();
28609int
28610main ()
28611{
28612return FT_Init_FreeType ();
28613 ;
28614 return 0;
28615}
28616_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028617if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028618 ac_cv_lib_freetype_FT_Init_FreeType=yes
28619else
cristy8b350f62009-11-15 23:12:43 +000028620 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000028621fi
cristy8b350f62009-11-15 23:12:43 +000028622rm -f core conftest.err conftest.$ac_objext \
28623 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028624LIBS=$ac_check_lib_save_LIBS
28625fi
cristy8b350f62009-11-15 23:12:43 +000028626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000028627$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristyda16f162011-02-19 23:52:17 +000028628if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028629 FREETYPE_LIBS='-lfreetype'
28630fi
28631
28632 if test "$FREETYPE_LIBS" != ''; then
28633 passed=`expr $passed + 1`
28634 else
28635 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000028636 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028637 fi
28638 fi
28639
cristy8b350f62009-11-15 23:12:43 +000028640 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028641if test "x$ac_cv_header_ft2build_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028642 FT2BUILD_H='#include <ft2build.h>'
28643else
28644 ft2build=''
28645fi
28646
28647
cristy8b350f62009-11-15 23:12:43 +000028648 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28649"
cristyda16f162011-02-19 23:52:17 +000028650if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028651 have_freetype_h='yes'
28652else
28653 have_freetype_h='no'
28654fi
28655
28656
28657 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
28658 passed=`expr $passed + 1`
28659 else
28660 failed=`expr $failed + 1`
28661 CPPFLAGS="$PERSIST_CPPFLAGS"
28662 fi
28663
cristy8b350f62009-11-15 23:12:43 +000028664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028665$as_echo_n "checking if FreeType package is complete... " >&6; }
28666 if test $passed -gt 0; then
28667 if test $failed -gt 0; then
28668 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000028669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028670$as_echo "no -- some components failed test" >&6; }
28671 have_freetype='no (failed tests)'
28672 else
28673 LIBS="$FREETYPE_LIBS $LIBS"
28674
cristy8b350f62009-11-15 23:12:43 +000028675$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028676
28677 if test "$ac_cv_header_ft2build_h" = 'yes'; then
28678
cristy8b350f62009-11-15 23:12:43 +000028679$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028680
28681 fi
cristy8b350f62009-11-15 23:12:43 +000028682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028683$as_echo "yes" >&6; }
28684 have_freetype='yes'
28685 fi
28686 else
cristy8b350f62009-11-15 23:12:43 +000028687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028688$as_echo "no" >&6; }
28689 fi
28690fi
cristy73bd4a52010-10-05 11:24:23 +000028691 if test "$have_freetype" = 'yes'; then
28692 FREETYPE_DELEGATE_TRUE=
28693 FREETYPE_DELEGATE_FALSE='#'
28694else
28695 FREETYPE_DELEGATE_TRUE='#'
28696 FREETYPE_DELEGATE_FALSE=
28697fi
28698
cristy3ed852e2009-09-05 21:47:34 +000028699
28700
28701
28702
28703#
28704# Check for Ghostscript library or framework.
28705#
28706# Test for iapi.h & test for gsapi_new_instance in -lgs
28707# or -framework Ghostscript
28708
28709
28710# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000028711if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028712 withval=$with_gslib; with_gslib=$withval
28713else
28714 with_gslib='no'
28715fi
28716
28717
cristyb7931f12009-09-25 10:22:21 +000028718gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000028719if test "$with_gslib" != 'yes'; then
28720 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28721fi
28722
28723have_gslib='no'
28724GS_LIBS=''
28725if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028727$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000028729$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028731$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000028732 framework=0
cristy3ed852e2009-09-05 21:47:34 +000028733 failed=0
28734 passed=0
cristy8b350f62009-11-15 23:12:43 +000028735 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028736if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028737 passed=`expr $passed + 1`
28738else
28739 failed=`expr $failed + 1`
28740fi
28741
28742
cristy8b350f62009-11-15 23:12:43 +000028743 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028744if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028745 passed=`expr $passed + 1`
28746else
28747 failed=`expr $failed + 1`
28748fi
28749
28750
cristy73bd4a52010-10-05 11:24:23 +000028751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28752$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028753if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028754 $as_echo_n "(cached) " >&6
28755else
28756 ac_check_framework_save_LIBS=$LIBS
28757LIBS="-framework Ghostscript $LIBS"
28758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28759/* end confdefs.h. */
28760
28761/* Override any GCC internal prototype to avoid an error.
28762 Use char because int might match the return type of a GCC
28763 builtin and then its argument prototype would still apply. */
28764#ifdef __cplusplus
28765extern "C"
28766#endif
28767char gsapi_new_instance ();
28768int
28769main ()
28770{
28771return gsapi_new_instance ();
28772 ;
28773 return 0;
28774}
28775_ACEOF
28776if ac_fn_c_try_link "$LINENO"; then :
28777 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28778else
28779 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28780fi
28781rm -f core conftest.err conftest.$ac_objext \
28782 conftest$ac_exeext conftest.$ac_ext
28783LIBS=$ac_check_framework_save_LIBS
28784fi
28785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28786$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28787if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28788 framework=`expr $framework + 1`
28789else
28790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028791$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028792if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028793 $as_echo_n "(cached) " >&6
28794else
28795 ac_check_lib_save_LIBS=$LIBS
28796LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028798/* end confdefs.h. */
28799
28800/* Override any GCC internal prototype to avoid an error.
28801 Use char because int might match the return type of a GCC
28802 builtin and then its argument prototype would still apply. */
28803#ifdef __cplusplus
28804extern "C"
28805#endif
28806char gsapi_new_instance ();
28807int
28808main ()
28809{
28810return gsapi_new_instance ();
28811 ;
28812 return 0;
28813}
28814_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028815if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028816 ac_cv_lib_gs_gsapi_new_instance=yes
28817else
cristy8b350f62009-11-15 23:12:43 +000028818 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000028819fi
cristy8b350f62009-11-15 23:12:43 +000028820rm -f core conftest.err conftest.$ac_objext \
28821 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028822LIBS=$ac_check_lib_save_LIBS
28823fi
cristy8b350f62009-11-15 23:12:43 +000028824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000028825$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000028826if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028827 passed=`expr $passed + 1`
28828else
28829 failed=`expr $failed + 1`
28830fi
cristy73bd4a52010-10-05 11:24:23 +000028831
28832fi
cristy8b350f62009-11-15 23:12:43 +000028833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028834$as_echo_n "checking if Ghostscript package is complete... " >&6; }
28835 if test $passed -gt 0; then
28836 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028838$as_echo "no -- some components failed test" >&6; }
28839 have_gslib='no (failed tests)'
28840 else
28841 if test $framework -gt 0; then
28842 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000028843 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000028844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000028845$as_echo "yes, using framework." >&6; }
28846 else
cristy8b350f62009-11-15 23:12:43 +000028847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000028848$as_echo "yes, using library." >&6; }
28849 GS_LIBS='-lgs'
28850 fi
28851 LIBS="$GS_LIBS $LIBS"
28852
cristy8b350f62009-11-15 23:12:43 +000028853$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028854
28855 have_gslib='yes'
28856 fi
28857 else
cristy8b350f62009-11-15 23:12:43 +000028858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028859$as_echo "no" >&6; }
28860 fi
28861fi
cristy73bd4a52010-10-05 11:24:23 +000028862 if test "$have_gslib" = 'yes'; then
28863 GS_DELEGATE_TRUE=
28864 GS_DELEGATE_FALSE='#'
28865else
28866 GS_DELEGATE_TRUE='#'
28867 GS_DELEGATE_FALSE=
28868fi
28869
cristy3ed852e2009-09-05 21:47:34 +000028870
28871
28872# Set default font search path
28873
28874# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000028875if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028876 withval=$with_fontpath; with_fontpath=$withval
28877else
28878 with_fontpath=''
28879fi
28880
28881
28882if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
28883 with_fontpath=''
28884else
28885
28886cat >>confdefs.h <<_ACEOF
28887#define MAGICK_FONT_PATH "$with_fontpath"
28888_ACEOF
28889
28890fi
28891if test "$with_fontpath=" != ''; then
28892 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
28893fi
28894
28895# Set Ghostscript font directory
28896
28897# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000028898if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028899 withval=$with_gs_font_dir; with_gs_font_dir=$withval
28900else
28901 with_gs_font_dir='default'
28902fi
28903
28904
28905if test "$with_gs_font_dir" != 'default'; then
28906 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
28907fi
28908
28909
28910#
28911# Check for GVC delegate library.
28912#
28913
28914# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000028915if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028916 withval=$with_gvc; with_gvc=$withval
28917else
28918 with_gvc='yes'
28919fi
28920
28921
28922if test "$with_gvc" != 'yes'; then
28923 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
28924fi
28925
28926GVC_PKG=""
28927if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028929$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028930
28931pkg_failed=no
28932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
28933$as_echo_n "checking for GVC... " >&6; }
28934
28935if test -n "$GVC_CFLAGS"; then
28936 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
28937 elif test -n "$PKG_CONFIG"; then
28938 if test -n "$PKG_CONFIG" && \
28939 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28940 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28941 ac_status=$?
28942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28943 test $ac_status = 0; }; then
28944 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
28945else
28946 pkg_failed=yes
28947fi
28948 else
28949 pkg_failed=untried
28950fi
28951if test -n "$GVC_LIBS"; then
28952 pkg_cv_GVC_LIBS="$GVC_LIBS"
28953 elif test -n "$PKG_CONFIG"; then
28954 if test -n "$PKG_CONFIG" && \
28955 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28956 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28957 ac_status=$?
28958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28959 test $ac_status = 0; }; then
28960 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
28961else
28962 pkg_failed=yes
28963fi
28964 else
28965 pkg_failed=untried
28966fi
28967
28968
28969
28970if test $pkg_failed = yes; then
28971
28972if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28973 _pkg_short_errors_supported=yes
28974else
28975 _pkg_short_errors_supported=no
28976fi
28977 if test $_pkg_short_errors_supported = yes; then
28978 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
28979 else
28980 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
28981 fi
28982 # Put the nasty error message in config.log where it belongs
28983 echo "$GVC_PKG_ERRORS" >&5
28984
28985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28986$as_echo "no" >&6; }
28987 have_gvc=no
28988elif test $pkg_failed = untried; then
28989 have_gvc=no
28990else
28991 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
28992 GVC_LIBS=$pkg_cv_GVC_LIBS
28993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28994$as_echo "yes" >&6; }
28995 have_gvc=yes
28996fi
cristy8b350f62009-11-15 23:12:43 +000028997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028998$as_echo "" >&6; }
28999fi
29000
29001if test "$have_gvc" = 'yes'; then
29002
cristy8b350f62009-11-15 23:12:43 +000029003$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029004
29005 if test "$with_modules" = 'no'; then
29006 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29007 fi
29008fi
29009
cristy73bd4a52010-10-05 11:24:23 +000029010 if test "$have_gvc" = 'yes'; then
29011 GVC_DELEGATE_TRUE=
29012 GVC_DELEGATE_FALSE='#'
29013else
29014 GVC_DELEGATE_TRUE='#'
29015 GVC_DELEGATE_FALSE=
29016fi
29017
cristy3ed852e2009-09-05 21:47:34 +000029018
29019
29020
29021
29022#
29023# Check for JBIG delegate library.
29024#
29025
29026
29027# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029028if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029029 withval=$with_jbig; with_jbig=$withval
29030else
29031 with_jbig='yes'
29032fi
29033
29034
29035have_jbig='no'
29036JBIG_LIBS=''
29037if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029039$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029041$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029043$as_echo "" >&6; }
29044 failed=0
29045 passed=0
cristy8b350f62009-11-15 23:12:43 +000029046 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029047if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029048 passed=`expr $passed + 1`
29049else
29050 failed=`expr $failed + 1`
29051fi
29052
29053
cristy8b350f62009-11-15 23:12:43 +000029054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029055$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029056if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029057 $as_echo_n "(cached) " >&6
29058else
29059 ac_check_lib_save_LIBS=$LIBS
29060LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029062/* end confdefs.h. */
29063
29064/* Override any GCC internal prototype to avoid an error.
29065 Use char because int might match the return type of a GCC
29066 builtin and then its argument prototype would still apply. */
29067#ifdef __cplusplus
29068extern "C"
29069#endif
29070char jbg_dec_init ();
29071int
29072main ()
29073{
29074return jbg_dec_init ();
29075 ;
29076 return 0;
29077}
29078_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029079if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029080 ac_cv_lib_jbig_jbg_dec_init=yes
29081else
cristy8b350f62009-11-15 23:12:43 +000029082 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029083fi
cristy8b350f62009-11-15 23:12:43 +000029084rm -f core conftest.err conftest.$ac_objext \
29085 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029086LIBS=$ac_check_lib_save_LIBS
29087fi
cristy8b350f62009-11-15 23:12:43 +000029088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029089$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029090if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029091 passed=`expr $passed + 1`
29092else
29093 failed=`expr $failed + 1`
29094fi
29095
cristy8b350f62009-11-15 23:12:43 +000029096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029097$as_echo_n "checking if JBIG package is complete... " >&6; }
29098 if test $passed -gt 0; then
29099 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029101$as_echo "no -- some components failed test" >&6; }
29102 have_jbig='no (failed tests)'
29103 else
29104 JBIG_LIBS='-ljbig'
29105 LIBS="$JBIG_LIBS $LIBS"
29106
cristy8b350f62009-11-15 23:12:43 +000029107$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029108
cristy8b350f62009-11-15 23:12:43 +000029109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029110$as_echo "yes" >&6; }
29111 have_jbig='yes'
29112 fi
29113 else
cristy8b350f62009-11-15 23:12:43 +000029114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029115$as_echo "no" >&6; }
29116 fi
29117fi
cristy73bd4a52010-10-05 11:24:23 +000029118 if test "$have_jbig" = 'yes'; then
29119 JBIG_DELEGATE_TRUE=
29120 JBIG_DELEGATE_FALSE='#'
29121else
29122 JBIG_DELEGATE_TRUE='#'
29123 JBIG_DELEGATE_FALSE=
29124fi
29125
cristy3ed852e2009-09-05 21:47:34 +000029126
29127
29128
29129#
29130# Check for JPEG delegate library.
29131#
29132
29133# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029134if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029135 withval=$with_jpeg; with_jpeg=$withval
29136else
29137 with_jpeg='yes'
29138fi
29139
29140
29141if test "$with_jpeg" != 'yes'; then
29142 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29143fi
29144
29145have_jpeg='no'
29146JPEG_LIBS=''
29147if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029149$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029151$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029153$as_echo "" >&6; }
29154 failed=0
29155 passed=0
cristy8b350f62009-11-15 23:12:43 +000029156 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029157if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029158 passed=`expr $passed + 1`
29159else
29160 failed=`expr $failed + 1`
29161fi
29162
29163
cristy8b350f62009-11-15 23:12:43 +000029164 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029165if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029166 passed=`expr $passed + 1`
29167else
29168 failed=`expr $failed + 1`
29169fi
29170
29171
cristy8b350f62009-11-15 23:12:43 +000029172 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029173if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029174 passed=`expr $passed + 1`
29175else
29176 failed=`expr $failed + 1`
29177fi
29178
29179
cristy8b350f62009-11-15 23:12:43 +000029180 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029181if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029182 passed=`expr $passed + 1`
29183else
29184 failed=`expr $failed + 1`
29185fi
29186
29187
cristy8b350f62009-11-15 23:12:43 +000029188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029189$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029190if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029191 $as_echo_n "(cached) " >&6
29192else
29193 ac_check_lib_save_LIBS=$LIBS
29194LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029196/* end confdefs.h. */
29197
29198/* Override any GCC internal prototype to avoid an error.
29199 Use char because int might match the return type of a GCC
29200 builtin and then its argument prototype would still apply. */
29201#ifdef __cplusplus
29202extern "C"
29203#endif
29204char jpeg_read_header ();
29205int
29206main ()
29207{
29208return jpeg_read_header ();
29209 ;
29210 return 0;
29211}
29212_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029213if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029214 ac_cv_lib_jpeg_jpeg_read_header=yes
29215else
cristy8b350f62009-11-15 23:12:43 +000029216 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029217fi
cristy8b350f62009-11-15 23:12:43 +000029218rm -f core conftest.err conftest.$ac_objext \
29219 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029220LIBS=$ac_check_lib_save_LIBS
29221fi
cristy8b350f62009-11-15 23:12:43 +000029222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029223$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029224if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029225 passed=`expr $passed + 1`
29226else
29227 failed=`expr $failed + 1`
29228fi
29229
29230
29231# Test for compatible JPEG library
29232if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029234$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029235if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029236 $as_echo_n "(cached) " >&6
29237else
cristy8b350f62009-11-15 23:12:43 +000029238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029239/* end confdefs.h. */
29240#include <stdio.h>
29241#include <stdlib.h>
29242#include <jpeglib.h>
29243
29244int
29245main ()
29246{
29247
29248#if JPEG_LIB_VERSION < 62
29249#error IJG JPEG library must be version 6b or newer!
29250#endif
29251return 0;
29252
29253 ;
29254 return 0;
29255}
29256_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029257if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029258 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29259else
cristy8b350f62009-11-15 23:12:43 +000029260 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029261fi
cristy3ed852e2009-09-05 21:47:34 +000029262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29263fi
cristy8b350f62009-11-15 23:12:43 +000029264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029265$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29266fi
cristy8b350f62009-11-15 23:12:43 +000029267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029268$as_echo_n "checking if JPEG package is complete... " >&6; }
29269 if test $passed -gt 0; then
29270 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029272$as_echo "no -- some components failed test" >&6; }
29273 have_jpeg='no (failed tests)'
29274 else
29275 JPEG_LIBS='-ljpeg'
29276 LIBS="$JPEG_LIBS $LIBS"
29277
cristy8b350f62009-11-15 23:12:43 +000029278$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029279
cristy8b350f62009-11-15 23:12:43 +000029280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029281$as_echo "yes" >&6; }
29282 have_jpeg='yes'
29283 fi
29284 else
cristy8b350f62009-11-15 23:12:43 +000029285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029286$as_echo "no" >&6; }
29287 fi
29288fi
cristy73bd4a52010-10-05 11:24:23 +000029289 if test "$have_jpeg" = 'yes'; then
29290 JPEG_DELEGATE_TRUE=
29291 JPEG_DELEGATE_FALSE='#'
29292else
29293 JPEG_DELEGATE_TRUE='#'
29294 JPEG_DELEGATE_FALSE=
29295fi
29296
cristy3ed852e2009-09-05 21:47:34 +000029297
29298
29299
29300#
29301# Check for JPEG Version 2 delegate library.
29302#
29303
29304# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029305if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029306 withval=$with_jp2; with_jp2=$withval
29307else
29308 with_jp2='yes'
29309fi
29310
29311
29312if test "$with_jp2" != 'yes'; then
29313 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29314fi
29315
29316have_jp2='no'
29317JP2_LIBS=''
29318if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029320$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029322$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029324$as_echo "" >&6; }
29325 failed=0
29326 passed=0
cristy8b350f62009-11-15 23:12:43 +000029327 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029328if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029329 passed=`expr $passed + 1`
29330else
29331 failed=`expr $failed + 1`
29332fi
29333
29334
cristy8b350f62009-11-15 23:12:43 +000029335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029336$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029337if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029338 $as_echo_n "(cached) " >&6
29339else
29340 ac_check_lib_save_LIBS=$LIBS
29341LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029343/* end confdefs.h. */
29344
29345/* Override any GCC internal prototype to avoid an error.
29346 Use char because int might match the return type of a GCC
29347 builtin and then its argument prototype would still apply. */
29348#ifdef __cplusplus
29349extern "C"
29350#endif
29351char jas_stream_fopen ();
29352int
29353main ()
29354{
29355return jas_stream_fopen ();
29356 ;
29357 return 0;
29358}
29359_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029360if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029361 ac_cv_lib_jasper_jas_stream_fopen=yes
29362else
cristy8b350f62009-11-15 23:12:43 +000029363 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029364fi
cristy8b350f62009-11-15 23:12:43 +000029365rm -f core conftest.err conftest.$ac_objext \
29366 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029367LIBS=$ac_check_lib_save_LIBS
29368fi
cristy8b350f62009-11-15 23:12:43 +000029369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029370$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029371if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029372 passed=`expr $passed + 1`
29373else
29374 failed=`expr $failed + 1`
29375fi
29376
cristy8b350f62009-11-15 23:12:43 +000029377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029378$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29379 if test $passed -gt 0; then
29380 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029382$as_echo "no -- some components failed test" >&6; }
29383 have_jp2='no (failed tests)'
29384 else
29385 JP2_LIBS='-ljasper'
29386 LIBS="$JP2_LIBS $LIBS"
29387
cristy8b350f62009-11-15 23:12:43 +000029388$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029389
cristy8b350f62009-11-15 23:12:43 +000029390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029391$as_echo "yes" >&6; }
29392 have_jp2='yes'
29393 fi
29394 else
cristy8b350f62009-11-15 23:12:43 +000029395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029396$as_echo "no" >&6; }
29397 fi
29398fi
cristy73bd4a52010-10-05 11:24:23 +000029399 if test "$have_jp2" = 'yes'; then
29400 JP2_DELEGATE_TRUE=
29401 JP2_DELEGATE_FALSE='#'
29402else
29403 JP2_DELEGATE_TRUE='#'
29404 JP2_DELEGATE_FALSE=
29405fi
29406
cristy3ed852e2009-09-05 21:47:34 +000029407
29408
29409
29410#
29411# Check for LCMS delegate library.
29412#
cristy71203402010-06-18 13:12:03 +000029413# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029414
29415# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029416if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029417 withval=$with_lcms; with_lcms=$withval
29418else
29419 with_lcms='yes'
29420fi
29421
cristy71203402010-06-18 13:12:03 +000029422if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029423 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29424fi
29425
cristy71203402010-06-18 13:12:03 +000029426# Disable LCMS2.
29427
29428# Check whether --with-lcms2 was given.
29429if test "${with_lcms2+set}" = set; then :
29430 withval=$with_lcms2; with_lcms2=$withval
29431else
29432 with_lcms2='yes'
29433fi
29434
29435if test "$with_lcms2" != 'yes' ; then
29436 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29437fi
29438
29439have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029440LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029441if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029443$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29445$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029447$as_echo "" >&6; }
29448 failed=0
29449 passed=0
29450 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029451
29452 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029453 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029454if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029455 have_lcms_header='yes'
29456fi
29457
29458
29459 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029460
29461$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29462
cristy71203402010-06-18 13:12:03 +000029463 passed=`expr $passed + 1`
29464 fi
29465
29466 # Check for <lcms2/lcms2.h)
29467 if test "$have_lcms_header" != 'yes'; then
29468 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029469if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029470 have_lcms_header='yes'
29471fi
29472
29473
cristy71203402010-06-18 13:12:03 +000029474 if test "$have_lcms_header" = 'yes'; then
29475 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029476
cristy71203402010-06-18 13:12:03 +000029477$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029478
cristy71203402010-06-18 13:12:03 +000029479 fi
cristyd09bcf92010-03-25 03:04:45 +000029480 fi
cristy71203402010-06-18 13:12:03 +000029481
29482 # Failed to find lcms header?
29483 if test "$have_lcms_header" != 'yes'; then
29484 failed=`expr $failed + 1`
29485 fi
29486
29487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29488$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029489if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029490 $as_echo_n "(cached) " >&6
29491else
29492 ac_check_lib_save_LIBS=$LIBS
29493LIBS="-llcms2 $LIBS"
29494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29495/* end confdefs.h. */
29496
29497/* Override any GCC internal prototype to avoid an error.
29498 Use char because int might match the return type of a GCC
29499 builtin and then its argument prototype would still apply. */
29500#ifdef __cplusplus
29501extern "C"
29502#endif
cristy71203402010-06-18 13:12:03 +000029503char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029504int
29505main ()
29506{
cristy71203402010-06-18 13:12:03 +000029507return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029508 ;
29509 return 0;
29510}
29511_ACEOF
29512if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029513 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029514else
cristy71203402010-06-18 13:12:03 +000029515 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029516fi
29517rm -f core conftest.err conftest.$ac_objext \
29518 conftest$ac_exeext conftest.$ac_ext
29519LIBS=$ac_check_lib_save_LIBS
29520fi
cristy71203402010-06-18 13:12:03 +000029521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29522$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029523if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029524 passed=`expr $passed + 1`
29525else
29526 failed=`expr $failed + 1`
29527fi
29528
cristy71203402010-06-18 13:12:03 +000029529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29530$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029531 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029532 if test $failed -gt 0; then
29533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000029534$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029535 have_lcms2='no (failed tests)'
29536 else
29537 LCMS_LIBS='-llcms2'
29538 LIBS="$LCMS_LIBS $LIBS"
29539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000029540$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029541 have_lcms2='yes'
29542 fi
cristyd09bcf92010-03-25 03:04:45 +000029543 else
cristy71203402010-06-18 13:12:03 +000029544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000029545$as_echo "no" >&6; }
29546 fi
29547fi
29548
cristy71203402010-06-18 13:12:03 +000029549#
29550# Check for LCMS v1 (1.11 or later)
29551#
29552if test $have_lcms2 = 'yes'; then
29553 with_lcms='no'
29554fi
29555
29556have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029557if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000029558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29559$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000029560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29561$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29563$as_echo "" >&6; }
29564 failed=0
29565 passed=0
29566 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029567
29568 # Check for <lcms.h>
29569 if test "$have_lcms_header" != 'yes'; then
29570 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029571if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029572 have_lcms_header='yes'
29573fi
29574
29575
cristy71203402010-06-18 13:12:03 +000029576 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029577 passed=`expr $passed + 1`
29578
cristy8b350f62009-11-15 23:12:43 +000029579$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029580
cristy71203402010-06-18 13:12:03 +000029581 fi
29582 fi
29583
29584 # Check for <lcms/lcms.h>
29585 if test "$have_lcms_header" != 'yes'; then
29586 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029587if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029588 have_lcms_header='yes'
29589fi
29590
29591
cristy71203402010-06-18 13:12:03 +000029592 if test "$have_lcms_header" = 'yes'; then
29593 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029594
cristy8b350f62009-11-15 23:12:43 +000029595$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029596
cristy71203402010-06-18 13:12:03 +000029597 fi
cristy3ed852e2009-09-05 21:47:34 +000029598 fi
cristy71203402010-06-18 13:12:03 +000029599
29600 # Failed to find lcms header?
29601 if test "$have_lcms_header" != 'yes'; then
29602 failed=`expr $failed + 1`
29603 fi
29604
29605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29606$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029607if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029608 $as_echo_n "(cached) " >&6
29609else
29610 ac_check_lib_save_LIBS=$LIBS
29611LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029613/* end confdefs.h. */
29614
29615/* Override any GCC internal prototype to avoid an error.
29616 Use char because int might match the return type of a GCC
29617 builtin and then its argument prototype would still apply. */
29618#ifdef __cplusplus
29619extern "C"
29620#endif
cristy71203402010-06-18 13:12:03 +000029621char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029622int
29623main ()
29624{
cristy71203402010-06-18 13:12:03 +000029625return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029626 ;
29627 return 0;
29628}
29629_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029630if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029631 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029632else
cristy71203402010-06-18 13:12:03 +000029633 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029634fi
cristy8b350f62009-11-15 23:12:43 +000029635rm -f core conftest.err conftest.$ac_objext \
29636 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029637LIBS=$ac_check_lib_save_LIBS
29638fi
cristy71203402010-06-18 13:12:03 +000029639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29640$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029641if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029642 passed=`expr $passed + 1`
29643else
29644 failed=`expr $failed + 1`
29645fi
29646
cristy8b350f62009-11-15 23:12:43 +000029647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029648$as_echo_n "checking if LCMS package is complete... " >&6; }
29649 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029650 if test $failed -gt 0; then
29651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029652$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000029653 have_lcms='no (failed tests)'
29654 else
29655 LCMS_LIBS='-llcms'
29656 LIBS="$LCMS_LIBS $LIBS"
29657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029658$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000029659 have_lcms='yes'
29660 fi
cristy3ed852e2009-09-05 21:47:34 +000029661 else
cristy71203402010-06-18 13:12:03 +000029662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029663$as_echo "no" >&6; }
29664 fi
29665fi
cristy71203402010-06-18 13:12:03 +000029666
cristy73bd4a52010-10-05 11:24:23 +000029667 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29668 LCMS_DELEGATE_TRUE=
29669 LCMS_DELEGATE_FALSE='#'
29670else
29671 LCMS_DELEGATE_TRUE='#'
29672 LCMS_DELEGATE_FALSE=
29673fi
29674
cristy71203402010-06-18 13:12:03 +000029675if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29676
29677$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29678
29679fi
29680
cristy3ed852e2009-09-05 21:47:34 +000029681
29682
29683
29684#
29685# Check for the LQR (Liquid Rescale) delegate library.
29686#
29687
29688# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029689if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029690 withval=$with_lqr; with_lqr=$withval
29691else
29692 with_lqr='yes'
29693fi
29694
29695
29696if test "$with_lqr" != 'yes'; then
29697 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29698fi
29699
29700have_lqr='no'
29701LQR_CFLAGS=""
29702LQR_LIBS=""
29703LQR_PKG=""
29704if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029706$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029707
29708pkg_failed=no
29709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29710$as_echo_n "checking for LQR... " >&6; }
29711
29712if test -n "$LQR_CFLAGS"; then
29713 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29714 elif test -n "$PKG_CONFIG"; then
29715 if test -n "$PKG_CONFIG" && \
29716 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29717 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29718 ac_status=$?
29719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29720 test $ac_status = 0; }; then
29721 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29722else
29723 pkg_failed=yes
29724fi
29725 else
29726 pkg_failed=untried
29727fi
29728if test -n "$LQR_LIBS"; then
29729 pkg_cv_LQR_LIBS="$LQR_LIBS"
29730 elif test -n "$PKG_CONFIG"; then
29731 if test -n "$PKG_CONFIG" && \
29732 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29733 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29734 ac_status=$?
29735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29736 test $ac_status = 0; }; then
29737 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29738else
29739 pkg_failed=yes
29740fi
29741 else
29742 pkg_failed=untried
29743fi
29744
29745
29746
29747if test $pkg_failed = yes; then
29748
29749if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29750 _pkg_short_errors_supported=yes
29751else
29752 _pkg_short_errors_supported=no
29753fi
29754 if test $_pkg_short_errors_supported = yes; then
29755 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29756 else
29757 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29758 fi
29759 # Put the nasty error message in config.log where it belongs
29760 echo "$LQR_PKG_ERRORS" >&5
29761
29762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29763$as_echo "no" >&6; }
29764 have_lqr=no
29765elif test $pkg_failed = untried; then
29766 have_lqr=no
29767else
29768 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29769 LQR_LIBS=$pkg_cv_LQR_LIBS
29770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29771$as_echo "yes" >&6; }
29772 have_lqr=yes
29773fi
cristy8b350f62009-11-15 23:12:43 +000029774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029775$as_echo "" >&6; }
29776fi
29777
29778if test "$have_lqr" = 'yes'; then
29779
cristy8b350f62009-11-15 23:12:43 +000029780$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029781
29782 CFLAGS="$LQR_CFLAGS $CFLAGS"
29783fi
29784
cristy73bd4a52010-10-05 11:24:23 +000029785 if test "$have_lqr" = 'yes'; then
29786 LQR_DELEGATE_TRUE=
29787 LQR_DELEGATE_FALSE='#'
29788else
29789 LQR_DELEGATE_TRUE='#'
29790 LQR_DELEGATE_FALSE=
29791fi
29792
cristy3ed852e2009-09-05 21:47:34 +000029793
29794
29795
29796
cristyfbb0ef02010-12-19 02:32:11 +000029797# Disable LZMA (lzma library)
29798
29799# Check whether --with-lzma was given.
29800if test "${with_lzma+set}" = set; then :
29801 withval=$with_lzma; with_lzma=$withval
29802else
29803 with_lzma='yes'
29804fi
29805
29806if test "$with_lzma" != 'yes' ; then
29807 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29808fi
29809
29810#
29811# Check for LZMA
29812#
29813have_lzma='no'
29814LZMA_LIBS=''
29815if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
29816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29817$as_echo "-------------------------------------------------------------" >&6; }
29818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
29819$as_echo_n "checking for LZMA... " >&6; }
29820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29821$as_echo "" >&6; }
29822 failed=0
29823 passed=0
29824 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029825if test "x$ac_cv_header_lzma_h" = xyes; then :
cristyfbb0ef02010-12-19 02:32:11 +000029826 passed=`expr $passed + 1`
29827else
29828 failed=`expr $failed + 1`
29829fi
29830
29831
29832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
29833$as_echo_n "checking for lzma_code in -llzma... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029834if ${ac_cv_lib_lzma_lzma_code+:} false; then :
cristyfbb0ef02010-12-19 02:32:11 +000029835 $as_echo_n "(cached) " >&6
29836else
29837 ac_check_lib_save_LIBS=$LIBS
29838LIBS="-llzma $LIBS"
29839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29840/* end confdefs.h. */
29841
29842/* Override any GCC internal prototype to avoid an error.
29843 Use char because int might match the return type of a GCC
29844 builtin and then its argument prototype would still apply. */
29845#ifdef __cplusplus
29846extern "C"
29847#endif
29848char lzma_code ();
29849int
29850main ()
29851{
29852return lzma_code ();
29853 ;
29854 return 0;
29855}
29856_ACEOF
29857if ac_fn_c_try_link "$LINENO"; then :
29858 ac_cv_lib_lzma_lzma_code=yes
29859else
29860 ac_cv_lib_lzma_lzma_code=no
29861fi
29862rm -f core conftest.err conftest.$ac_objext \
29863 conftest$ac_exeext conftest.$ac_ext
29864LIBS=$ac_check_lib_save_LIBS
29865fi
29866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
29867$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
cristyda16f162011-02-19 23:52:17 +000029868if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
cristyfbb0ef02010-12-19 02:32:11 +000029869 passed=`expr $passed + 1`
29870else
29871 failed=`expr $failed + 1`
29872fi
29873
29874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
29875$as_echo_n "checking if LZMA package is complete... " >&6; }
29876 if test $passed -gt 0; then
29877 if test $failed -gt 0; then
29878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29879$as_echo "no -- some components failed test" >&6; }
29880 have_lzma='no (failed tests)'
29881 else
29882 LZMA_LIBS='-llzma'
29883 LIBS="$LZMA_LIBS $LIBS"
29884
29885$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
29886
29887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29888$as_echo "yes" >&6; }
29889 have_lzma='yes'
29890 fi
29891 else
29892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29893$as_echo "no" >&6; }
29894 fi
29895fi
29896 if test "$have_lzma" = 'yes'; then
29897 LZMA_DELEGATE_TRUE=
29898 LZMA_DELEGATE_FALSE='#'
29899else
29900 LZMA_DELEGATE_TRUE='#'
29901 LZMA_DELEGATE_FALSE=
29902fi
29903
29904
29905
29906
cristy3ed852e2009-09-05 21:47:34 +000029907#
29908# Check for the OpenEXR delegate library.
29909#
29910
29911# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000029912if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029913 withval=$with_openexr; with_openexr=$withval
29914else
29915 with_openexr='yes'
29916fi
29917
29918
29919if test "$with_openexr" != 'yes'; then
29920 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
29921fi
29922
29923have_openexr='no'
29924OPENEXR_CFLAGS=""
29925OPENEXR_LIBS=""
29926OPENEXR_PKG=""
29927if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029929$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029930
29931pkg_failed=no
29932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
29933$as_echo_n "checking for OPENEXR... " >&6; }
29934
29935if test -n "$OPENEXR_CFLAGS"; then
29936 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
29937 elif test -n "$PKG_CONFIG"; then
29938 if test -n "$PKG_CONFIG" && \
29939 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29940 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29941 ac_status=$?
29942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29943 test $ac_status = 0; }; then
29944 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
29945else
29946 pkg_failed=yes
29947fi
29948 else
29949 pkg_failed=untried
29950fi
29951if test -n "$OPENEXR_LIBS"; then
29952 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
29953 elif test -n "$PKG_CONFIG"; then
29954 if test -n "$PKG_CONFIG" && \
29955 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29956 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29957 ac_status=$?
29958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29959 test $ac_status = 0; }; then
29960 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
29961else
29962 pkg_failed=yes
29963fi
29964 else
29965 pkg_failed=untried
29966fi
29967
29968
29969
29970if test $pkg_failed = yes; then
29971
29972if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29973 _pkg_short_errors_supported=yes
29974else
29975 _pkg_short_errors_supported=no
29976fi
29977 if test $_pkg_short_errors_supported = yes; then
29978 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
29979 else
29980 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
29981 fi
29982 # Put the nasty error message in config.log where it belongs
29983 echo "$OPENEXR_PKG_ERRORS" >&5
29984
29985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29986$as_echo "no" >&6; }
29987 have_openexr=no
29988elif test $pkg_failed = untried; then
29989 have_openexr=no
29990else
29991 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
29992 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
29993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29994$as_echo "yes" >&6; }
29995 have_openexr=yes
29996fi
cristy8b350f62009-11-15 23:12:43 +000029997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029998$as_echo "" >&6; }
29999fi
30000
30001if test "$have_openexr" = 'yes'; then
30002
cristy8b350f62009-11-15 23:12:43 +000030003$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030004
30005 if test "$with_modules" = 'no'; then
30006 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30007 fi
30008fi
30009
cristy73bd4a52010-10-05 11:24:23 +000030010 if test "$have_openexr" = 'yes'; then
30011 OPENEXR_DELEGATE_TRUE=
30012 OPENEXR_DELEGATE_FALSE='#'
30013else
30014 OPENEXR_DELEGATE_TRUE='#'
30015 OPENEXR_DELEGATE_FALSE=
30016fi
30017
cristy3ed852e2009-09-05 21:47:34 +000030018
30019
30020
30021
30022#
30023# Check for PNG delegate library.
30024#
30025
30026# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030027if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030028 withval=$with_png; with_png=$withval
30029else
30030 with_png='yes'
30031fi
30032
30033
30034if test "$with_png" != 'yes'; then
30035 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30036fi
30037
30038have_png='no'
30039PNG_LIBS=''
30040if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030042$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030044$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030046$as_echo "" >&6; }
30047 failed=0
30048 passed=0
cristy8b350f62009-11-15 23:12:43 +000030049 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030050if test "x$ac_cv_header_png_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030051 passed=`expr $passed + 1`
30052else
30053 failed=`expr $failed + 1`
30054fi
30055
30056
cristy8b350f62009-11-15 23:12:43 +000030057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000030058$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030059if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030060 $as_echo_n "(cached) " >&6
30061else
30062 ac_check_lib_save_LIBS=$LIBS
30063LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030065/* end confdefs.h. */
30066
30067/* Override any GCC internal prototype to avoid an error.
30068 Use char because int might match the return type of a GCC
30069 builtin and then its argument prototype would still apply. */
30070#ifdef __cplusplus
30071extern "C"
30072#endif
30073char png_get_io_ptr ();
30074int
30075main ()
30076{
30077return png_get_io_ptr ();
30078 ;
30079 return 0;
30080}
30081_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030082if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030083 ac_cv_lib_png_png_get_io_ptr=yes
30084else
cristy8b350f62009-11-15 23:12:43 +000030085 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000030086fi
cristy8b350f62009-11-15 23:12:43 +000030087rm -f core conftest.err conftest.$ac_objext \
30088 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030089LIBS=$ac_check_lib_save_LIBS
30090fi
cristy8b350f62009-11-15 23:12:43 +000030091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000030092$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristyda16f162011-02-19 23:52:17 +000030093if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030094 passed=`expr $passed + 1`
30095else
30096 failed=`expr $failed + 1`
30097fi
30098
cristy8b350f62009-11-15 23:12:43 +000030099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030100$as_echo_n "checking if PNG package is complete... " >&6; }
30101 if test $passed -gt 0; then
30102 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000030103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000030104$as_echo "no -- some components failed test" >&6; }
30105 have_png='no (failed tests)'
30106 else
30107 PNG_LIBS='-lpng'
30108 LIBS="$PNG_LIBS $LIBS"
30109
cristy8b350f62009-11-15 23:12:43 +000030110$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030111
cristy8b350f62009-11-15 23:12:43 +000030112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030113$as_echo "yes" >&6; }
30114 have_png='yes'
30115 fi
30116 else
cristy8b350f62009-11-15 23:12:43 +000030117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030118$as_echo "no" >&6; }
30119 fi
30120fi
cristy73bd4a52010-10-05 11:24:23 +000030121 if test "$have_png" = 'yes'; then
30122 PNG_DELEGATE_TRUE=
30123 PNG_DELEGATE_FALSE='#'
30124else
30125 PNG_DELEGATE_TRUE='#'
30126 PNG_DELEGATE_FALSE=
30127fi
30128
cristy3ed852e2009-09-05 21:47:34 +000030129
30130
30131
30132#
30133# Check for RSVG delegate library.
30134#
30135
30136# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000030137if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030138 withval=$with_rsvg; with_rsvg=$withval
30139else
30140 with_rsvg=$have_x
30141fi
30142
30143
30144if test "$with_rsvg" != 'yes'; then
30145 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30146fi
30147
30148have_rsvg='no'
30149have_cairo='no'
30150RSVG_CFLAGS=""
30151RSVG_LIBS=""
30152RSVG_PKG=""
30153if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000030154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030155$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030156
30157pkg_failed=no
30158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30159$as_echo_n "checking for RSVG... " >&6; }
30160
30161if test -n "$RSVG_CFLAGS"; then
30162 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30163 elif test -n "$PKG_CONFIG"; then
30164 if test -n "$PKG_CONFIG" && \
30165 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30166 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30167 ac_status=$?
30168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30169 test $ac_status = 0; }; then
30170 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30171else
30172 pkg_failed=yes
30173fi
30174 else
30175 pkg_failed=untried
30176fi
30177if test -n "$RSVG_LIBS"; then
30178 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30179 elif test -n "$PKG_CONFIG"; then
30180 if test -n "$PKG_CONFIG" && \
30181 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30182 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30183 ac_status=$?
30184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30185 test $ac_status = 0; }; then
30186 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30187else
30188 pkg_failed=yes
30189fi
30190 else
30191 pkg_failed=untried
30192fi
30193
30194
30195
30196if test $pkg_failed = yes; then
30197
30198if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30199 _pkg_short_errors_supported=yes
30200else
30201 _pkg_short_errors_supported=no
30202fi
30203 if test $_pkg_short_errors_supported = yes; then
30204 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30205 else
30206 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30207 fi
30208 # Put the nasty error message in config.log where it belongs
30209 echo "$RSVG_PKG_ERRORS" >&5
30210
30211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30212$as_echo "no" >&6; }
30213 have_rsvg=no
30214elif test $pkg_failed = untried; then
30215 have_rsvg=no
30216else
30217 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30218 RSVG_LIBS=$pkg_cv_RSVG_LIBS
30219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30220$as_echo "yes" >&6; }
30221 have_rsvg=yes
30222fi
cristy8b350f62009-11-15 23:12:43 +000030223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030224$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030225
30226pkg_failed=no
30227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30228$as_echo_n "checking for CAIRO_SVG... " >&6; }
30229
30230if test -n "$CAIRO_SVG_CFLAGS"; then
30231 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30232 elif test -n "$PKG_CONFIG"; then
30233 if test -n "$PKG_CONFIG" && \
30234 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30235 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30236 ac_status=$?
30237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30238 test $ac_status = 0; }; then
30239 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30240else
30241 pkg_failed=yes
30242fi
30243 else
30244 pkg_failed=untried
30245fi
30246if test -n "$CAIRO_SVG_LIBS"; then
30247 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30248 elif test -n "$PKG_CONFIG"; then
30249 if test -n "$PKG_CONFIG" && \
30250 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30251 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30252 ac_status=$?
30253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30254 test $ac_status = 0; }; then
30255 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30256else
30257 pkg_failed=yes
30258fi
30259 else
30260 pkg_failed=untried
30261fi
30262
30263
30264
30265if test $pkg_failed = yes; then
30266
30267if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30268 _pkg_short_errors_supported=yes
30269else
30270 _pkg_short_errors_supported=no
30271fi
30272 if test $_pkg_short_errors_supported = yes; then
30273 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
30274 else
30275 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
30276 fi
30277 # Put the nasty error message in config.log where it belongs
30278 echo "$CAIRO_SVG_PKG_ERRORS" >&5
30279
30280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30281$as_echo "no" >&6; }
30282 have_cairo=no
30283elif test $pkg_failed = untried; then
30284 have_cairo=no
30285else
30286 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
30287 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
30288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30289$as_echo "yes" >&6; }
30290 have_cairo=yes
30291fi
cristy8b350f62009-11-15 23:12:43 +000030292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030293$as_echo "" >&6; }
30294fi
30295
30296if test "$have_rsvg" = 'yes'; then
30297
cristy8b350f62009-11-15 23:12:43 +000030298$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030299
30300 if test "$with_modules" = 'no'; then
30301 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
30302 fi
30303fi
30304
30305if test "$have_cairo" = 'yes'; then
30306
cristy8b350f62009-11-15 23:12:43 +000030307$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030308
30309 if test "$with_modules" = 'no'; then
30310 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
30311 fi
30312fi
30313
cristy73bd4a52010-10-05 11:24:23 +000030314 if test "$have_rsvg" = 'yes'; then
30315 RSVG_DELEGATE_TRUE=
30316 RSVG_DELEGATE_FALSE='#'
30317else
30318 RSVG_DELEGATE_TRUE='#'
30319 RSVG_DELEGATE_FALSE=
30320fi
30321
30322 if test "$have_cairo" = 'yes'; then
30323 CAIRO_DELEGATE_TRUE=
30324 CAIRO_DELEGATE_FALSE='#'
30325else
30326 CAIRO_DELEGATE_TRUE='#'
30327 CAIRO_DELEGATE_FALSE=
30328fi
30329
cristy3ed852e2009-09-05 21:47:34 +000030330
30331
30332
30333
30334#
30335# Check for TIFF delegate library.
30336#
30337
30338# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000030339if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030340 withval=$with_tiff; with_tiff=$withval
30341else
30342 with_tiff='yes'
30343fi
30344
30345
30346if test "$with_tiff" != 'yes'; then
30347 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
30348fi
30349
30350have_tiff='no'
30351TIFF_LIBS=''
30352if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030354$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000030356$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030358$as_echo "" >&6; }
30359 failed=0
30360 passed=0
cristy8b350f62009-11-15 23:12:43 +000030361 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030362if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030363 passed=`expr $passed + 1`
30364else
30365 failed=`expr $failed + 1`
30366fi
30367
30368
cristy8b350f62009-11-15 23:12:43 +000030369 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030370if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030371 passed=`expr $passed + 1`
30372else
30373 failed=`expr $failed + 1`
30374fi
30375
30376
cristy8b350f62009-11-15 23:12:43 +000030377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030378$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030379if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030380 $as_echo_n "(cached) " >&6
30381else
30382 ac_check_lib_save_LIBS=$LIBS
30383LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030385/* end confdefs.h. */
30386
30387/* Override any GCC internal prototype to avoid an error.
30388 Use char because int might match the return type of a GCC
30389 builtin and then its argument prototype would still apply. */
30390#ifdef __cplusplus
30391extern "C"
30392#endif
30393char TIFFOpen ();
30394int
30395main ()
30396{
30397return TIFFOpen ();
30398 ;
30399 return 0;
30400}
30401_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030402if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030403 ac_cv_lib_tiff_TIFFOpen=yes
30404else
cristy8b350f62009-11-15 23:12:43 +000030405 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000030406fi
cristy8b350f62009-11-15 23:12:43 +000030407rm -f core conftest.err conftest.$ac_objext \
30408 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030409LIBS=$ac_check_lib_save_LIBS
30410fi
cristy8b350f62009-11-15 23:12:43 +000030411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030412$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030413if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030414 passed=`expr $passed + 1`
30415else
30416 failed=`expr $failed + 1`
30417fi
30418
cristy8b350f62009-11-15 23:12:43 +000030419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030420$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030421if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030422 $as_echo_n "(cached) " >&6
30423else
30424 ac_check_lib_save_LIBS=$LIBS
30425LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030427/* end confdefs.h. */
30428
30429/* Override any GCC internal prototype to avoid an error.
30430 Use char because int might match the return type of a GCC
30431 builtin and then its argument prototype would still apply. */
30432#ifdef __cplusplus
30433extern "C"
30434#endif
30435char TIFFClientOpen ();
30436int
30437main ()
30438{
30439return TIFFClientOpen ();
30440 ;
30441 return 0;
30442}
30443_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030444if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030445 ac_cv_lib_tiff_TIFFClientOpen=yes
30446else
cristy8b350f62009-11-15 23:12:43 +000030447 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000030448fi
cristy8b350f62009-11-15 23:12:43 +000030449rm -f core conftest.err conftest.$ac_objext \
30450 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030451LIBS=$ac_check_lib_save_LIBS
30452fi
cristy8b350f62009-11-15 23:12:43 +000030453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030454$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030455if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030456 passed=`expr $passed + 1`
30457else
30458 failed=`expr $failed + 1`
30459fi
30460
cristyb97f1002010-07-26 14:02:57 +000030461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
30462$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030463if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
cristyb97f1002010-07-26 14:02:57 +000030464 $as_echo_n "(cached) " >&6
30465else
30466 ac_check_lib_save_LIBS=$LIBS
30467LIBS="-ltiff $LIBS"
30468cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30469/* end confdefs.h. */
30470
30471/* Override any GCC internal prototype to avoid an error.
30472 Use char because int might match the return type of a GCC
30473 builtin and then its argument prototype would still apply. */
30474#ifdef __cplusplus
30475extern "C"
30476#endif
30477char TIFFIsBigEndian ();
30478int
30479main ()
30480{
30481return TIFFIsBigEndian ();
30482 ;
30483 return 0;
30484}
30485_ACEOF
30486if ac_fn_c_try_link "$LINENO"; then :
30487 ac_cv_lib_tiff_TIFFIsBigEndian=yes
30488else
30489 ac_cv_lib_tiff_TIFFIsBigEndian=no
30490fi
30491rm -f core conftest.err conftest.$ac_objext \
30492 conftest$ac_exeext conftest.$ac_ext
30493LIBS=$ac_check_lib_save_LIBS
30494fi
30495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
30496$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
cristyda16f162011-02-19 23:52:17 +000030497if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
cristyb97f1002010-07-26 14:02:57 +000030498 passed=`expr $passed + 1`
30499else
30500 failed=`expr $failed + 1`
30501fi
30502
cristy8b350f62009-11-15 23:12:43 +000030503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030504$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030505if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030506 $as_echo_n "(cached) " >&6
30507else
30508 ac_check_lib_save_LIBS=$LIBS
30509LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030511/* end confdefs.h. */
30512
30513/* Override any GCC internal prototype to avoid an error.
30514 Use char because int might match the return type of a GCC
30515 builtin and then its argument prototype would still apply. */
30516#ifdef __cplusplus
30517extern "C"
30518#endif
30519char TIFFIsByteSwapped ();
30520int
30521main ()
30522{
30523return TIFFIsByteSwapped ();
30524 ;
30525 return 0;
30526}
30527_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030528if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030529 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
30530else
cristy8b350f62009-11-15 23:12:43 +000030531 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000030532fi
cristy8b350f62009-11-15 23:12:43 +000030533rm -f core conftest.err conftest.$ac_objext \
30534 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030535LIBS=$ac_check_lib_save_LIBS
30536fi
cristy8b350f62009-11-15 23:12:43 +000030537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000030538$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000030539if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030540 passed=`expr $passed + 1`
30541else
30542 failed=`expr $failed + 1`
30543fi
30544
cristy8b350f62009-11-15 23:12:43 +000030545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030546$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030547if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030548 $as_echo_n "(cached) " >&6
30549else
30550 ac_check_lib_save_LIBS=$LIBS
30551LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030553/* end confdefs.h. */
30554
30555/* Override any GCC internal prototype to avoid an error.
30556 Use char because int might match the return type of a GCC
30557 builtin and then its argument prototype would still apply. */
30558#ifdef __cplusplus
30559extern "C"
30560#endif
30561char TIFFReadRGBATile ();
30562int
30563main ()
30564{
30565return TIFFReadRGBATile ();
30566 ;
30567 return 0;
30568}
30569_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030570if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030571 ac_cv_lib_tiff_TIFFReadRGBATile=yes
30572else
cristy8b350f62009-11-15 23:12:43 +000030573 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000030574fi
cristy8b350f62009-11-15 23:12:43 +000030575rm -f core conftest.err conftest.$ac_objext \
30576 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030577LIBS=$ac_check_lib_save_LIBS
30578fi
cristy8b350f62009-11-15 23:12:43 +000030579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000030580$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000030581if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030582 passed=`expr $passed + 1`
30583else
30584 failed=`expr $failed + 1`
30585fi
30586
cristy8b350f62009-11-15 23:12:43 +000030587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030588$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030589if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030590 $as_echo_n "(cached) " >&6
30591else
30592 ac_check_lib_save_LIBS=$LIBS
30593LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030595/* end confdefs.h. */
30596
30597/* Override any GCC internal prototype to avoid an error.
30598 Use char because int might match the return type of a GCC
30599 builtin and then its argument prototype would still apply. */
30600#ifdef __cplusplus
30601extern "C"
30602#endif
30603char TIFFReadRGBAStrip ();
30604int
30605main ()
30606{
30607return TIFFReadRGBAStrip ();
30608 ;
30609 return 0;
30610}
30611_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030612if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030613 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
30614else
cristy8b350f62009-11-15 23:12:43 +000030615 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000030616fi
cristy8b350f62009-11-15 23:12:43 +000030617rm -f core conftest.err conftest.$ac_objext \
30618 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030619LIBS=$ac_check_lib_save_LIBS
30620fi
cristy8b350f62009-11-15 23:12:43 +000030621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000030622$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000030623if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030624 passed=`expr $passed + 1`
30625else
30626 failed=`expr $failed + 1`
30627fi
30628
cristy8b350f62009-11-15 23:12:43 +000030629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030630$as_echo_n "checking if TIFF package is complete... " >&6; }
30631 if test $passed -gt 0; then
30632 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000030633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000030634$as_echo "no -- some components failed test" >&6; }
30635 have_tiff='no (failed tests)'
30636 else
30637 TIFF_LIBS='-ltiff'
30638 LIBS="$TIFF_LIBS $LIBS"
30639
cristy8b350f62009-11-15 23:12:43 +000030640$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030641
cristy8b350f62009-11-15 23:12:43 +000030642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030643$as_echo "yes" >&6; }
30644 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000030645 for ac_header in tiffconf.h
30646do :
30647 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030648if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030649 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030650#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000030651_ACEOF
30652
30653fi
30654
30655done
30656
cristy8b350f62009-11-15 23:12:43 +000030657 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000030658 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
30659 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000030660do :
30661 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30662ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000030663if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000030664 cat >>confdefs.h <<_ACEOF
30665#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30666_ACEOF
30667
30668fi
30669done
30670
30671 fi
30672 else
cristy8b350f62009-11-15 23:12:43 +000030673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030674$as_echo "no" >&6; }
30675 fi
30676fi
cristy73bd4a52010-10-05 11:24:23 +000030677 if test "$have_tiff" = 'yes'; then
30678 TIFF_DELEGATE_TRUE=
30679 TIFF_DELEGATE_FALSE='#'
30680else
30681 TIFF_DELEGATE_TRUE='#'
30682 TIFF_DELEGATE_FALSE=
30683fi
30684
cristy3ed852e2009-09-05 21:47:34 +000030685
30686
30687
30688#
cristyb1860752011-03-14 00:27:46 +000030689# Check for WEBP delegate library.
30690#
30691
30692# Check whether --with-webp was given.
30693if test "${with_webp+set}" = set; then :
30694 withval=$with_webp; with_webp=$withval
30695else
30696 with_webp='yes'
30697fi
30698
30699
30700if test "$with_webp" != 'yes'; then
30701 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
30702fi
30703
30704have_webp='no'
30705WEBP_LIBS=''
30706if test "$with_webp" != 'no'; then
30707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30708$as_echo "-------------------------------------------------------------" >&6; }
30709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
30710$as_echo_n "checking for WEBP... " >&6; }
30711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30712$as_echo "" >&6; }
30713 failed=0
30714 passed=0
30715 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
30716if test "x$ac_cv_header_webp_decode_h" = xyes; then :
30717 passed=`expr $passed + 1`
30718else
30719 failed=`expr $failed + 1`
30720fi
30721
30722
30723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
30724$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
30725if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
30726 $as_echo_n "(cached) " >&6
30727else
30728 ac_check_lib_save_LIBS=$LIBS
30729LIBS="-lwebp $LIBS"
30730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30731/* end confdefs.h. */
30732
30733/* Override any GCC internal prototype to avoid an error.
30734 Use char because int might match the return type of a GCC
30735 builtin and then its argument prototype would still apply. */
30736#ifdef __cplusplus
30737extern "C"
30738#endif
30739char WebPDecodeRGB ();
30740int
30741main ()
30742{
30743return WebPDecodeRGB ();
30744 ;
30745 return 0;
30746}
30747_ACEOF
30748if ac_fn_c_try_link "$LINENO"; then :
30749 ac_cv_lib_webp_WebPDecodeRGB=yes
30750else
30751 ac_cv_lib_webp_WebPDecodeRGB=no
30752fi
30753rm -f core conftest.err conftest.$ac_objext \
30754 conftest$ac_exeext conftest.$ac_ext
30755LIBS=$ac_check_lib_save_LIBS
30756fi
30757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
30758$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
30759if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
30760 passed=`expr $passed + 1`
30761else
30762 failed=`expr $failed + 1`
30763fi
30764
30765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
30766$as_echo_n "checking if WEBP package is complete... " >&6; }
30767 if test $passed -gt 0; then
30768 if test $failed -gt 0; then
30769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30770$as_echo "no -- some components failed test" >&6; }
30771 have_webp='no (failed tests)'
30772 else
30773 WEBP_LIBS='-lwebp'
30774 LIBS="$WEBP_LIBS $LIBS"
30775
30776$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
30777
30778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30779$as_echo "yes" >&6; }
30780 have_webp='yes'
30781 fi
30782 else
30783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30784$as_echo "no" >&6; }
30785 fi
30786fi
30787 if test "$have_webp" = 'yes'; then
30788 WEBP_DELEGATE_TRUE=
30789 WEBP_DELEGATE_FALSE='#'
30790else
30791 WEBP_DELEGATE_TRUE='#'
30792 WEBP_DELEGATE_FALSE=
30793fi
30794
30795
30796
30797
30798#
cristy3ed852e2009-09-05 21:47:34 +000030799# Set Windows font directory.
30800#
30801
30802# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000030803if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030804 withval=$with_windows_font_dir; with_windows_font_dir=$withval
30805else
30806 with_windows_font_dir=''
30807fi
30808
30809if test "$with_windows_font_dir" != '' ; then
30810 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
30811fi
30812
30813
30814#
30815# Check for WMF delegate library.
30816#
30817
30818# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000030819if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030820 withval=$with_wmf; with_wmf=$withval
30821else
cristy8d63d1d2010-01-06 20:38:37 +000030822 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000030823fi
30824
30825
30826if test "$with_wmf" != 'yes'; then
30827 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
30828fi
30829
30830have_wmf='no'
30831WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000030832if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030834$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000030836$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030838$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000030839 failed=0
30840 passed=0
30841 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030842if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
cristy735e8942010-04-02 20:32:57 +000030843 passed=`expr $passed + 1`
30844else
30845 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030846fi
30847
30848
cristy735e8942010-04-02 20:32:57 +000030849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
30850$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030851if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030852 $as_echo_n "(cached) " >&6
30853else
30854 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000030855LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030857/* end confdefs.h. */
30858
30859/* Override any GCC internal prototype to avoid an error.
30860 Use char because int might match the return type of a GCC
30861 builtin and then its argument prototype would still apply. */
30862#ifdef __cplusplus
30863extern "C"
30864#endif
cristy735e8942010-04-02 20:32:57 +000030865char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000030866int
30867main ()
30868{
cristy735e8942010-04-02 20:32:57 +000030869return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000030870 ;
30871 return 0;
30872}
30873_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030874if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000030875 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000030876else
cristy735e8942010-04-02 20:32:57 +000030877 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000030878fi
cristy8b350f62009-11-15 23:12:43 +000030879rm -f core conftest.err conftest.$ac_objext \
30880 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030881LIBS=$ac_check_lib_save_LIBS
30882fi
cristy735e8942010-04-02 20:32:57 +000030883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
30884$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
cristyda16f162011-02-19 23:52:17 +000030885if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
cristy735e8942010-04-02 20:32:57 +000030886 passed=`expr $passed + 1`
30887else
30888 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030889fi
30890
cristy735e8942010-04-02 20:32:57 +000030891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
30892$as_echo_n "checking if WMF package is complete... " >&6; }
30893 if test $passed -gt 0; then
30894 if test $failed -gt 0; then
30895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30896$as_echo "no -- some components failed test" >&6; }
30897 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000030898 else
cristy735e8942010-04-02 20:32:57 +000030899 WMF_LIBS='-lwmf -lwmflite'
30900 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030901
cristy8b350f62009-11-15 23:12:43 +000030902$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030903
cristy735e8942010-04-02 20:32:57 +000030904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030905$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000030906 have_wmf='yes'
30907 fi
cristy3ed852e2009-09-05 21:47:34 +000030908 else
cristy8b350f62009-11-15 23:12:43 +000030909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030910$as_echo "no" >&6; }
30911 fi
30912fi
cristy73bd4a52010-10-05 11:24:23 +000030913 if test "$have_wmf" = 'yes'; then
30914 WMF_DELEGATE_TRUE=
30915 WMF_DELEGATE_FALSE='#'
30916else
30917 WMF_DELEGATE_TRUE='#'
30918 WMF_DELEGATE_FALSE=
30919fi
30920
cristy3ed852e2009-09-05 21:47:34 +000030921
30922
30923
30924
cristy735e8942010-04-02 20:32:57 +000030925
cristy3ed852e2009-09-05 21:47:34 +000030926#
30927# Check for XML delegate library.
30928#
30929
30930# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000030931if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030932 withval=$with_xml; with_xml=$withval
30933else
30934 with_xml=$have_x
30935fi
30936
30937
30938if test "$with_xml" != 'yes' ; then
30939 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
30940fi
30941
30942have_xml='no'
30943XML_LIBS=''
30944if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030946$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000030948$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030950$as_echo "" >&6; }
30951 PERSIST_LDFLAGS=$LDFLAGS
30952 PERSIST_CPPFLAGS=$CPPFLAGS
30953 xml2_config=''
30954 for ac_prog in xml2-config
30955do
30956 # Extract the first word of "$ac_prog", so it can be a program name with args.
30957set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030959$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030960if ${ac_cv_prog_xml2_config+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030961 $as_echo_n "(cached) " >&6
30962else
30963 if test -n "$xml2_config"; then
30964 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
30965else
30966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30967for as_dir in $PATH
30968do
30969 IFS=$as_save_IFS
30970 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030971 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30973 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030975 break 2
30976 fi
30977done
cristy8b350f62009-11-15 23:12:43 +000030978 done
cristy3ed852e2009-09-05 21:47:34 +000030979IFS=$as_save_IFS
30980
30981fi
30982fi
30983xml2_config=$ac_cv_prog_xml2_config
30984if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000030985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000030986$as_echo "$xml2_config" >&6; }
30987else
cristy8b350f62009-11-15 23:12:43 +000030988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030989$as_echo "no" >&6; }
30990fi
30991
30992
30993 test -n "$xml2_config" && break
30994done
30995 if test -n "$xml2_config"; then
30996 # Debian installs libxml headers under /usr/include/libxml2/libxml with
30997 # the shared library installed under /usr/lib, whereas the package
30998 # installs itself under $prefix/libxml and $prefix/lib.
30999 xml2_prefix=`xml2-config --prefix`
31000 if test -d "${xml2_prefix}/include/libxml2"; then
31001 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31002 fi
31003 if test "${xml2_prefix}" != '/usr'; then
31004 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31005 fi
31006 fi
31007 failed=0
31008 passed=0
cristy8b350f62009-11-15 23:12:43 +000031009 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031010if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031011 passed=`expr $passed + 1`
31012else
31013 failed=`expr $failed + 1`
31014fi
31015
31016
cristy8b350f62009-11-15 23:12:43 +000031017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000031018$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031019if ${ac_cv_lib_xml2_xmlParseExternalEntity+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031020 $as_echo_n "(cached) " >&6
31021else
31022 ac_check_lib_save_LIBS=$LIBS
31023LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031025/* end confdefs.h. */
31026
31027/* Override any GCC internal prototype to avoid an error.
31028 Use char because int might match the return type of a GCC
31029 builtin and then its argument prototype would still apply. */
31030#ifdef __cplusplus
31031extern "C"
31032#endif
31033char xmlParseExternalEntity ();
31034int
31035main ()
31036{
31037return xmlParseExternalEntity ();
31038 ;
31039 return 0;
31040}
31041_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031042if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031043 ac_cv_lib_xml2_xmlParseExternalEntity=yes
31044else
cristy8b350f62009-11-15 23:12:43 +000031045 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000031046fi
cristy8b350f62009-11-15 23:12:43 +000031047rm -f core conftest.err conftest.$ac_objext \
31048 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031049LIBS=$ac_check_lib_save_LIBS
31050fi
cristy8b350f62009-11-15 23:12:43 +000031051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000031052$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristyda16f162011-02-19 23:52:17 +000031053if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031054 passed=`expr $passed + 1`
31055else
31056 failed=`expr $failed + 1`
31057fi
31058
cristy8b350f62009-11-15 23:12:43 +000031059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031060$as_echo_n "checking if XML package is complete... " >&6; }
31061 if test $passed -gt 0; then
31062 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000031063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000031064$as_echo "no -- some components failed test" >&6; }
31065 have_xml='no (failed tests)'
31066 LDFLAGS="$PERSIST_LDFLAGS"
31067 CPPFLAGS="$PERSIST_CPPFLAGS"
31068 else
31069 XML_LIBS='-lxml2'
31070 LIBS="$XML_LIBS $LIBS"
31071
cristy8b350f62009-11-15 23:12:43 +000031072$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031073
cristy8b350f62009-11-15 23:12:43 +000031074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000031075$as_echo "yes" >&6; }
31076 have_xml='yes'
31077 fi
31078 else
cristy8b350f62009-11-15 23:12:43 +000031079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031080$as_echo "no" >&6; }
31081 fi
31082fi
cristy73bd4a52010-10-05 11:24:23 +000031083 if test "$have_xml" = 'yes'; then
31084 XML_DELEGATE_TRUE=
31085 XML_DELEGATE_FALSE='#'
31086else
31087 XML_DELEGATE_TRUE='#'
31088 XML_DELEGATE_FALSE=
31089fi
31090
cristy3ed852e2009-09-05 21:47:34 +000031091
31092
31093
31094# Substitute compiler name to build/link PerlMagick
31095#
31096
31097
31098#
31099# Configure install Paths
31100#
31101
31102# Subdirectory under lib to place ImageMagick lib files
31103LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31104
31105cat >>confdefs.h <<_ACEOF
31106#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31107_ACEOF
31108
31109
31110# Path to ImageMagick bin directory
31111EXECUTABLE_PATH="${BIN_DIR}"
31112DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31113case "${build_os}" in
31114 mingw* )
31115 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31116 ;;
31117esac
31118
31119cat >>confdefs.h <<_ACEOF
31120#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31121_ACEOF
31122
31123
31124
31125# Path to ImageMagick lib
31126LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31127DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31128case "${build_os}" in
31129 mingw* )
31130 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31131 ;;
31132esac
31133
31134cat >>confdefs.h <<_ACEOF
31135#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31136_ACEOF
31137
31138
31139
cristy3ed852e2009-09-05 21:47:34 +000031140#
31141# Subdirectory under lib to place ImageMagick coder module files
31142CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
31143
31144cat >>confdefs.h <<_ACEOF
31145#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
31146_ACEOF
31147
31148CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
31149DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
31150case "${build_os}" in
31151 mingw* )
31152 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
31153 ;;
31154esac
31155
31156cat >>confdefs.h <<_ACEOF
31157#define CODER_PATH "$DEFINE_CODER_PATH"
31158_ACEOF
31159
31160
31161
31162#
31163# Subdirectory under lib to place ImageMagick filter module files
31164FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
31165
31166cat >>confdefs.h <<_ACEOF
31167#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
31168_ACEOF
31169
31170FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
31171DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
31172case "${build_os}" in
31173 mingw* )
31174 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
31175 ;;
31176esac
31177
31178cat >>confdefs.h <<_ACEOF
31179#define FILTER_PATH "$DEFINE_FILTER_PATH"
31180_ACEOF
31181
31182
31183
31184#
31185# Path to ImageMagick documentation files
cristyd55889c2011-03-27 00:50:24 +000031186DOCUMENTATION_RELATIVE_PATH=""
31187DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
31188DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031189case "${build_os}" in
31190 mingw* )
31191 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
31192 ;;
31193esac
31194
31195cat >>confdefs.h <<_ACEOF
31196#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
31197_ACEOF
31198
31199
31200
cristy3cf8a722011-03-20 23:32:22 +000031201# Subdirectory to place ImageMagick configuration files
cristyba0f1972011-03-28 12:42:52 +000031202CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000031203
31204cat >>confdefs.h <<_ACEOF
31205#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
31206_ACEOF
31207
31208CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31209DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31210case "${build_os}" in
31211 mingw* )
31212 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
31213 ;;
31214esac
31215
31216cat >>confdefs.h <<_ACEOF
31217#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
31218_ACEOF
31219
31220
31221
31222# Subdirectory to place ImageMagick configuration files
cristy4f820712011-04-01 12:35:43 +000031223SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000031224
31225cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000031226#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000031227_ACEOF
31228
cristy4f820712011-04-01 12:35:43 +000031229SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
31230DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031231case "${build_os}" in
31232 mingw* )
cristy4f820712011-04-01 12:35:43 +000031233 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000031234 ;;
31235esac
31236
31237cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000031238#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000031239_ACEOF
31240
31241
31242
31243#
31244# program_transform_name is formed for use in a Makefile, so create a
31245# modified version for use in a shell script.
31246configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
31247
31248# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000031249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031250$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000031252$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031254$as_echo "" >&6; }
31255AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000031256BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000031257BZIPDelegateDefault='bzip2'
31258BrowseDelegateDefault='xdg-open'
31259CGMDecodeDelegateDefault='ralcgm'
31260CatDelegateDefault='cat'
31261DNGDecodeDelegateDefault='ufraw-batch'
31262GVCDecodeDelegateDefault='dot'
31263DVIDecodeDelegateDefault='dvips'
31264EchoDelegateDefault='echo'
31265EditorDelegateDefault='xterm'
31266FIGDecodeDelegateDefault='fig2dev'
31267ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
31268DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
31269MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
31270GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000031271HPGLDecodeDelegateDefault='hp2xx'
31272HTMLDecodeDelegateDefault='html2ps'
31273ILBMDecodeDelegateDefault='ilbmtoppm'
31274ILBMEncodeDelegateDefault='ppmtoilbm'
31275LPDelegateDefault='lp'
31276LPRDelegateDefault='lpr'
31277LZWDecodeDelegateDefault='uncompress'
31278LZWEncodeDelegateDefault='compress'
31279LaunchDelegateDefault='gimp'
31280MANDelegateDefault='groff'
31281MPEGDecodeDelegateDefault='ffmpeg'
31282MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000031283MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000031284MVDelegateDefault='mv'
31285PCLDelegateDefault='pcl6'
31286PGPDecodeDelegateDefault='pgpv'
31287POVDelegateDefault='povray'
31288if test "$native_win32_build" = 'yes'; then
31289 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000031290elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031291 PSDelegateDefault='gsc'
31292else
31293 PSDelegateDefault='gs'
31294fi
31295RLEEncodeDelegateDefault='rawtorle'
31296RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000031297RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000031298SCANDecodeDelegateDefault='scanimage'
31299TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000031300UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000031301WMFDecodeDelegateDefault='wmf2eps'
31302WWWDecodeDelegateDefault='curl'
31303XPSDelegateDefault='gxps'
31304ZipDelegateDefault='gzip'
31305
31306# Search for delegates
31307# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
31308set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031310$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031311if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031312 $as_echo_n "(cached) " >&6
31313else
31314 case $AutotraceDecodeDelegate in
31315 [\\/]* | ?:[\\/]*)
31316 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
31317 ;;
31318 *)
31319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31320for as_dir in $PATH
31321do
31322 IFS=$as_save_IFS
31323 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031324 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31326 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031328 break 2
31329 fi
31330done
cristy8b350f62009-11-15 23:12:43 +000031331 done
cristy3ed852e2009-09-05 21:47:34 +000031332IFS=$as_save_IFS
31333
31334 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
31335 ;;
31336esac
31337fi
31338AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
31339if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031341$as_echo "$AutotraceDecodeDelegate" >&6; }
31342else
cristy8b350f62009-11-15 23:12:43 +000031343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031344$as_echo "no" >&6; }
31345fi
31346
31347
cristy3ed852e2009-09-05 21:47:34 +000031348# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
31349set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031351$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031352if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031353 $as_echo_n "(cached) " >&6
31354else
31355 case $BlenderDecodeDelegate in
31356 [\\/]* | ?:[\\/]*)
31357 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
31358 ;;
31359 *)
31360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31361for as_dir in $PATH
31362do
31363 IFS=$as_save_IFS
31364 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031365 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31367 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031369 break 2
31370 fi
31371done
cristy8b350f62009-11-15 23:12:43 +000031372 done
cristy3ed852e2009-09-05 21:47:34 +000031373IFS=$as_save_IFS
31374
31375 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
31376 ;;
31377esac
31378fi
31379BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
31380if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031382$as_echo "$BlenderDecodeDelegate" >&6; }
31383else
cristy8b350f62009-11-15 23:12:43 +000031384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031385$as_echo "no" >&6; }
31386fi
31387
31388
31389# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
31390set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031392$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031393if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031394 $as_echo_n "(cached) " >&6
31395else
31396 case $BZIPDelegate in
31397 [\\/]* | ?:[\\/]*)
31398 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
31399 ;;
31400 *)
31401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31402for as_dir in $PATH
31403do
31404 IFS=$as_save_IFS
31405 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031406 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31408 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031410 break 2
31411 fi
31412done
cristy8b350f62009-11-15 23:12:43 +000031413 done
cristy3ed852e2009-09-05 21:47:34 +000031414IFS=$as_save_IFS
31415
31416 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
31417 ;;
31418esac
31419fi
31420BZIPDelegate=$ac_cv_path_BZIPDelegate
31421if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031423$as_echo "$BZIPDelegate" >&6; }
31424else
cristy8b350f62009-11-15 23:12:43 +000031425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031426$as_echo "no" >&6; }
31427fi
31428
31429
31430# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
31431set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031433$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031434if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031435 $as_echo_n "(cached) " >&6
31436else
31437 case $BrowseDelegate in
31438 [\\/]* | ?:[\\/]*)
31439 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
31440 ;;
31441 *)
31442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31443for as_dir in $PATH
31444do
31445 IFS=$as_save_IFS
31446 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031447 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31449 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031451 break 2
31452 fi
31453done
cristy8b350f62009-11-15 23:12:43 +000031454 done
cristy3ed852e2009-09-05 21:47:34 +000031455IFS=$as_save_IFS
31456
31457 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
31458 ;;
31459esac
31460fi
31461BrowseDelegate=$ac_cv_path_BrowseDelegate
31462if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031464$as_echo "$BrowseDelegate" >&6; }
31465else
cristy8b350f62009-11-15 23:12:43 +000031466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031467$as_echo "no" >&6; }
31468fi
31469
31470
31471# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
31472set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031474$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031475if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031476 $as_echo_n "(cached) " >&6
31477else
31478 case $CGMDecodeDelegate in
31479 [\\/]* | ?:[\\/]*)
31480 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
31481 ;;
31482 *)
31483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31484for as_dir in $PATH
31485do
31486 IFS=$as_save_IFS
31487 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031488 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31490 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031492 break 2
31493 fi
31494done
cristy8b350f62009-11-15 23:12:43 +000031495 done
cristy3ed852e2009-09-05 21:47:34 +000031496IFS=$as_save_IFS
31497
31498 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
31499 ;;
31500esac
31501fi
31502CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
31503if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031505$as_echo "$CGMDecodeDelegate" >&6; }
31506else
cristy8b350f62009-11-15 23:12:43 +000031507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031508$as_echo "no" >&6; }
31509fi
31510
31511
31512# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
31513set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031515$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031516if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031517 $as_echo_n "(cached) " >&6
31518else
31519 case $CatDelegate in
31520 [\\/]* | ?:[\\/]*)
31521 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
31522 ;;
31523 *)
31524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31525for as_dir in $PATH
31526do
31527 IFS=$as_save_IFS
31528 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031529 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31531 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031533 break 2
31534 fi
31535done
cristy8b350f62009-11-15 23:12:43 +000031536 done
cristy3ed852e2009-09-05 21:47:34 +000031537IFS=$as_save_IFS
31538
31539 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
31540 ;;
31541esac
31542fi
31543CatDelegate=$ac_cv_path_CatDelegate
31544if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031546$as_echo "$CatDelegate" >&6; }
31547else
cristy8b350f62009-11-15 23:12:43 +000031548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031549$as_echo "no" >&6; }
31550fi
31551
31552
31553# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
31554set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031556$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031557if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031558 $as_echo_n "(cached) " >&6
31559else
31560 case $DNGDecodeDelegate in
31561 [\\/]* | ?:[\\/]*)
31562 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
31563 ;;
31564 *)
31565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31566for as_dir in $PATH
31567do
31568 IFS=$as_save_IFS
31569 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031570 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31572 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031574 break 2
31575 fi
31576done
cristy8b350f62009-11-15 23:12:43 +000031577 done
cristy3ed852e2009-09-05 21:47:34 +000031578IFS=$as_save_IFS
31579
31580 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
31581 ;;
31582esac
31583fi
31584DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
31585if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031587$as_echo "$DNGDecodeDelegate" >&6; }
31588else
cristy8b350f62009-11-15 23:12:43 +000031589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031590$as_echo "no" >&6; }
31591fi
31592
31593
31594# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
31595set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031597$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031598if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031599 $as_echo_n "(cached) " >&6
31600else
31601 case $GVCDecodeDelegate in
31602 [\\/]* | ?:[\\/]*)
31603 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
31604 ;;
31605 *)
31606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31607for as_dir in $PATH
31608do
31609 IFS=$as_save_IFS
31610 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031611 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31613 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031615 break 2
31616 fi
31617done
cristy8b350f62009-11-15 23:12:43 +000031618 done
cristy3ed852e2009-09-05 21:47:34 +000031619IFS=$as_save_IFS
31620
31621 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
31622 ;;
31623esac
31624fi
31625GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
31626if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031628$as_echo "$GVCDecodeDelegate" >&6; }
31629else
cristy8b350f62009-11-15 23:12:43 +000031630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031631$as_echo "no" >&6; }
31632fi
31633
31634
31635# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
31636set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031638$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031639if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031640 $as_echo_n "(cached) " >&6
31641else
31642 case $DVIDecodeDelegate in
31643 [\\/]* | ?:[\\/]*)
31644 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
31645 ;;
31646 *)
31647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31648for as_dir in $PATH
31649do
31650 IFS=$as_save_IFS
31651 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031652 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31654 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031656 break 2
31657 fi
31658done
cristy8b350f62009-11-15 23:12:43 +000031659 done
cristy3ed852e2009-09-05 21:47:34 +000031660IFS=$as_save_IFS
31661
31662 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
31663 ;;
31664esac
31665fi
31666DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
31667if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031669$as_echo "$DVIDecodeDelegate" >&6; }
31670else
cristy8b350f62009-11-15 23:12:43 +000031671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031672$as_echo "no" >&6; }
31673fi
31674
31675
31676# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
31677set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031679$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031680if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031681 $as_echo_n "(cached) " >&6
31682else
31683 case $EchoDelegate in
31684 [\\/]* | ?:[\\/]*)
31685 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
31686 ;;
31687 *)
31688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31689for as_dir in $PATH
31690do
31691 IFS=$as_save_IFS
31692 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031693 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31695 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031697 break 2
31698 fi
31699done
cristy8b350f62009-11-15 23:12:43 +000031700 done
cristy3ed852e2009-09-05 21:47:34 +000031701IFS=$as_save_IFS
31702
31703 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
31704 ;;
31705esac
31706fi
31707EchoDelegate=$ac_cv_path_EchoDelegate
31708if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031710$as_echo "$EchoDelegate" >&6; }
31711else
cristy8b350f62009-11-15 23:12:43 +000031712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031713$as_echo "no" >&6; }
31714fi
31715
31716
31717# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
31718set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031720$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031721if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031722 $as_echo_n "(cached) " >&6
31723else
31724 case $EditorDelegate in
31725 [\\/]* | ?:[\\/]*)
31726 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
31727 ;;
31728 *)
31729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31730for as_dir in $PATH
31731do
31732 IFS=$as_save_IFS
31733 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031734 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31736 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031738 break 2
31739 fi
31740done
cristy8b350f62009-11-15 23:12:43 +000031741 done
cristy3ed852e2009-09-05 21:47:34 +000031742IFS=$as_save_IFS
31743
31744 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
31745 ;;
31746esac
31747fi
31748EditorDelegate=$ac_cv_path_EditorDelegate
31749if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031751$as_echo "$EditorDelegate" >&6; }
31752else
cristy8b350f62009-11-15 23:12:43 +000031753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031754$as_echo "no" >&6; }
31755fi
31756
31757
31758# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
31759set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031761$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031762if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031763 $as_echo_n "(cached) " >&6
31764else
31765 case $FIGDecodeDelegate in
31766 [\\/]* | ?:[\\/]*)
31767 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
31768 ;;
31769 *)
31770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31771for as_dir in $PATH
31772do
31773 IFS=$as_save_IFS
31774 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031775 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31777 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031779 break 2
31780 fi
31781done
cristy8b350f62009-11-15 23:12:43 +000031782 done
cristy3ed852e2009-09-05 21:47:34 +000031783IFS=$as_save_IFS
31784
31785 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
31786 ;;
31787esac
31788fi
31789FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
31790if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031792$as_echo "$FIGDecodeDelegate" >&6; }
31793else
cristy8b350f62009-11-15 23:12:43 +000031794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031795$as_echo "no" >&6; }
31796fi
31797
31798
31799# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
31800set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031802$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031803if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031804 $as_echo_n "(cached) " >&6
31805else
31806 case $ConvertDelegate in
31807 [\\/]* | ?:[\\/]*)
31808 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
31809 ;;
31810 *)
31811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31812for as_dir in $PATH
31813do
31814 IFS=$as_save_IFS
31815 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031816 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31818 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031820 break 2
31821 fi
31822done
cristy8b350f62009-11-15 23:12:43 +000031823 done
cristy3ed852e2009-09-05 21:47:34 +000031824IFS=$as_save_IFS
31825
31826 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
31827 ;;
31828esac
31829fi
31830ConvertDelegate=$ac_cv_path_ConvertDelegate
31831if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031833$as_echo "$ConvertDelegate" >&6; }
31834else
cristy8b350f62009-11-15 23:12:43 +000031835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031836$as_echo "no" >&6; }
31837fi
31838
31839
31840# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
31841set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031843$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031844if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031845 $as_echo_n "(cached) " >&6
31846else
31847 case $DisplayDelegate in
31848 [\\/]* | ?:[\\/]*)
31849 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
31850 ;;
31851 *)
31852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31853for as_dir in $PATH
31854do
31855 IFS=$as_save_IFS
31856 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031857 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31859 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031861 break 2
31862 fi
31863done
cristy8b350f62009-11-15 23:12:43 +000031864 done
cristy3ed852e2009-09-05 21:47:34 +000031865IFS=$as_save_IFS
31866
31867 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
31868 ;;
31869esac
31870fi
31871DisplayDelegate=$ac_cv_path_DisplayDelegate
31872if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031874$as_echo "$DisplayDelegate" >&6; }
31875else
cristy8b350f62009-11-15 23:12:43 +000031876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031877$as_echo "no" >&6; }
31878fi
31879
31880
31881# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
31882set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031884$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031885if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031886 $as_echo_n "(cached) " >&6
31887else
31888 case $MogrifyDelegate in
31889 [\\/]* | ?:[\\/]*)
31890 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
31891 ;;
31892 *)
31893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31894for as_dir in $PATH
31895do
31896 IFS=$as_save_IFS
31897 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031898 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31900 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031902 break 2
31903 fi
31904done
cristy8b350f62009-11-15 23:12:43 +000031905 done
cristy3ed852e2009-09-05 21:47:34 +000031906IFS=$as_save_IFS
31907
31908 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
31909 ;;
31910esac
31911fi
31912MogrifyDelegate=$ac_cv_path_MogrifyDelegate
31913if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031915$as_echo "$MogrifyDelegate" >&6; }
31916else
cristy8b350f62009-11-15 23:12:43 +000031917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031918$as_echo "no" >&6; }
31919fi
31920
31921
31922# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
31923set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031925$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031926if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031927 $as_echo_n "(cached) " >&6
31928else
31929 case $GnuplotDecodeDelegate in
31930 [\\/]* | ?:[\\/]*)
31931 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
31932 ;;
31933 *)
31934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31935for as_dir in $PATH
31936do
31937 IFS=$as_save_IFS
31938 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031939 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31941 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031943 break 2
31944 fi
31945done
cristy8b350f62009-11-15 23:12:43 +000031946 done
cristy3ed852e2009-09-05 21:47:34 +000031947IFS=$as_save_IFS
31948
31949 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
31950 ;;
31951esac
31952fi
31953GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
31954if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031956$as_echo "$GnuplotDecodeDelegate" >&6; }
31957else
cristy8b350f62009-11-15 23:12:43 +000031958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031959$as_echo "no" >&6; }
31960fi
31961
31962
cristy3ed852e2009-09-05 21:47:34 +000031963# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
31964set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031966$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031967if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031968 $as_echo_n "(cached) " >&6
31969else
31970 case $HPGLDecodeDelegate in
31971 [\\/]* | ?:[\\/]*)
31972 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
31973 ;;
31974 *)
31975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31976for as_dir in $PATH
31977do
31978 IFS=$as_save_IFS
31979 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031980 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31982 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031984 break 2
31985 fi
31986done
cristy8b350f62009-11-15 23:12:43 +000031987 done
cristy3ed852e2009-09-05 21:47:34 +000031988IFS=$as_save_IFS
31989
31990 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
31991 ;;
31992esac
31993fi
31994HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
31995if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031997$as_echo "$HPGLDecodeDelegate" >&6; }
31998else
cristy8b350f62009-11-15 23:12:43 +000031999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032000$as_echo "no" >&6; }
32001fi
32002
32003
32004# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32005set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032007$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032008if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032009 $as_echo_n "(cached) " >&6
32010else
32011 case $HTMLDecodeDelegate in
32012 [\\/]* | ?:[\\/]*)
32013 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32014 ;;
32015 *)
32016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32017for as_dir in $PATH
32018do
32019 IFS=$as_save_IFS
32020 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032021 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32023 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032025 break 2
32026 fi
32027done
cristy8b350f62009-11-15 23:12:43 +000032028 done
cristy3ed852e2009-09-05 21:47:34 +000032029IFS=$as_save_IFS
32030
32031 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32032 ;;
32033esac
32034fi
32035HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32036if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032038$as_echo "$HTMLDecodeDelegate" >&6; }
32039else
cristy8b350f62009-11-15 23:12:43 +000032040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032041$as_echo "no" >&6; }
32042fi
32043
32044
32045# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32046set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032048$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032049if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032050 $as_echo_n "(cached) " >&6
32051else
32052 case $ILBMDecodeDelegate in
32053 [\\/]* | ?:[\\/]*)
32054 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32055 ;;
32056 *)
32057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32058for as_dir in $PATH
32059do
32060 IFS=$as_save_IFS
32061 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032062 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32064 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032066 break 2
32067 fi
32068done
cristy8b350f62009-11-15 23:12:43 +000032069 done
cristy3ed852e2009-09-05 21:47:34 +000032070IFS=$as_save_IFS
32071
32072 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32073 ;;
32074esac
32075fi
32076ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32077if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032079$as_echo "$ILBMDecodeDelegate" >&6; }
32080else
cristy8b350f62009-11-15 23:12:43 +000032081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032082$as_echo "no" >&6; }
32083fi
32084
32085
32086# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32087set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032089$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032090if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032091 $as_echo_n "(cached) " >&6
32092else
32093 case $ILBMEncodeDelegate in
32094 [\\/]* | ?:[\\/]*)
32095 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32096 ;;
32097 *)
32098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32099for as_dir in $PATH
32100do
32101 IFS=$as_save_IFS
32102 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032103 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32105 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032107 break 2
32108 fi
32109done
cristy8b350f62009-11-15 23:12:43 +000032110 done
cristy3ed852e2009-09-05 21:47:34 +000032111IFS=$as_save_IFS
32112
32113 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32114 ;;
32115esac
32116fi
32117ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32118if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032120$as_echo "$ILBMEncodeDelegate" >&6; }
32121else
cristy8b350f62009-11-15 23:12:43 +000032122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032123$as_echo "no" >&6; }
32124fi
32125
32126
32127# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
32128set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032130$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032131if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032132 $as_echo_n "(cached) " >&6
32133else
32134 case $LPDelegate in
32135 [\\/]* | ?:[\\/]*)
32136 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
32137 ;;
32138 *)
32139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32140for as_dir in $PATH
32141do
32142 IFS=$as_save_IFS
32143 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032144 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32146 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032148 break 2
32149 fi
32150done
cristy8b350f62009-11-15 23:12:43 +000032151 done
cristy3ed852e2009-09-05 21:47:34 +000032152IFS=$as_save_IFS
32153
32154 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
32155 ;;
32156esac
32157fi
32158LPDelegate=$ac_cv_path_LPDelegate
32159if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032161$as_echo "$LPDelegate" >&6; }
32162else
cristy8b350f62009-11-15 23:12:43 +000032163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032164$as_echo "no" >&6; }
32165fi
32166
32167
32168# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
32169set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032171$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032172if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032173 $as_echo_n "(cached) " >&6
32174else
32175 case $LPRDelegate in
32176 [\\/]* | ?:[\\/]*)
32177 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
32178 ;;
32179 *)
32180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32181for as_dir in $PATH
32182do
32183 IFS=$as_save_IFS
32184 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032185 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32187 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032189 break 2
32190 fi
32191done
cristy8b350f62009-11-15 23:12:43 +000032192 done
cristy3ed852e2009-09-05 21:47:34 +000032193IFS=$as_save_IFS
32194
32195 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
32196 ;;
32197esac
32198fi
32199LPRDelegate=$ac_cv_path_LPRDelegate
32200if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032202$as_echo "$LPRDelegate" >&6; }
32203else
cristy8b350f62009-11-15 23:12:43 +000032204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032205$as_echo "no" >&6; }
32206fi
32207
32208
32209# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
32210set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032212$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032213if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032214 $as_echo_n "(cached) " >&6
32215else
32216 case $LZWDecodeDelegate in
32217 [\\/]* | ?:[\\/]*)
32218 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
32219 ;;
32220 *)
32221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32222for as_dir in $PATH
32223do
32224 IFS=$as_save_IFS
32225 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032226 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32228 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032230 break 2
32231 fi
32232done
cristy8b350f62009-11-15 23:12:43 +000032233 done
cristy3ed852e2009-09-05 21:47:34 +000032234IFS=$as_save_IFS
32235
32236 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
32237 ;;
32238esac
32239fi
32240LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
32241if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032243$as_echo "$LZWDecodeDelegate" >&6; }
32244else
cristy8b350f62009-11-15 23:12:43 +000032245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032246$as_echo "no" >&6; }
32247fi
32248
32249
32250# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
32251set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032253$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032254if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032255 $as_echo_n "(cached) " >&6
32256else
32257 case $LZWEncodeDelegate in
32258 [\\/]* | ?:[\\/]*)
32259 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
32260 ;;
32261 *)
32262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32263for as_dir in $PATH
32264do
32265 IFS=$as_save_IFS
32266 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032267 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32269 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032271 break 2
32272 fi
32273done
cristy8b350f62009-11-15 23:12:43 +000032274 done
cristy3ed852e2009-09-05 21:47:34 +000032275IFS=$as_save_IFS
32276
32277 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
32278 ;;
32279esac
32280fi
32281LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
32282if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032284$as_echo "$LZWEncodeDelegate" >&6; }
32285else
cristy8b350f62009-11-15 23:12:43 +000032286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032287$as_echo "no" >&6; }
32288fi
32289
32290
32291# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
32292set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032294$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032295if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032296 $as_echo_n "(cached) " >&6
32297else
32298 case $LaunchDelegate in
32299 [\\/]* | ?:[\\/]*)
32300 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
32301 ;;
32302 *)
32303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32304for as_dir in $PATH
32305do
32306 IFS=$as_save_IFS
32307 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032308 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32310 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032312 break 2
32313 fi
32314done
cristy8b350f62009-11-15 23:12:43 +000032315 done
cristy3ed852e2009-09-05 21:47:34 +000032316IFS=$as_save_IFS
32317
32318 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
32319 ;;
32320esac
32321fi
32322LaunchDelegate=$ac_cv_path_LaunchDelegate
32323if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032325$as_echo "$LaunchDelegate" >&6; }
32326else
cristy8b350f62009-11-15 23:12:43 +000032327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032328$as_echo "no" >&6; }
32329fi
32330
32331
32332# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
32333set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032335$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032336if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032337 $as_echo_n "(cached) " >&6
32338else
32339 case $MANDelegate in
32340 [\\/]* | ?:[\\/]*)
32341 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
32342 ;;
32343 *)
32344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32345for as_dir in $PATH
32346do
32347 IFS=$as_save_IFS
32348 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032349 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32351 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032353 break 2
32354 fi
32355done
cristy8b350f62009-11-15 23:12:43 +000032356 done
cristy3ed852e2009-09-05 21:47:34 +000032357IFS=$as_save_IFS
32358
32359 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
32360 ;;
32361esac
32362fi
32363MANDelegate=$ac_cv_path_MANDelegate
32364if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032366$as_echo "$MANDelegate" >&6; }
32367else
cristy8b350f62009-11-15 23:12:43 +000032368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032369$as_echo "no" >&6; }
32370fi
32371
32372
32373# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
32374set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032376$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032377if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032378 $as_echo_n "(cached) " >&6
32379else
32380 case $MPEGDecodeDelegate in
32381 [\\/]* | ?:[\\/]*)
32382 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
32383 ;;
32384 *)
32385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32386for as_dir in $PATH
32387do
32388 IFS=$as_save_IFS
32389 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032390 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32392 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032394 break 2
32395 fi
32396done
cristy8b350f62009-11-15 23:12:43 +000032397 done
cristy3ed852e2009-09-05 21:47:34 +000032398IFS=$as_save_IFS
32399
32400 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
32401 ;;
32402esac
32403fi
32404MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
32405if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032407$as_echo "$MPEGDecodeDelegate" >&6; }
32408else
cristy8b350f62009-11-15 23:12:43 +000032409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032410$as_echo "no" >&6; }
32411fi
32412
32413
32414# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
32415set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032417$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032418if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032419 $as_echo_n "(cached) " >&6
32420else
32421 case $MPEGEncodeDelegate in
32422 [\\/]* | ?:[\\/]*)
32423 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
32424 ;;
32425 *)
32426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32427for as_dir in $PATH
32428do
32429 IFS=$as_save_IFS
32430 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032431 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32433 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032435 break 2
32436 fi
32437done
cristy8b350f62009-11-15 23:12:43 +000032438 done
cristy3ed852e2009-09-05 21:47:34 +000032439IFS=$as_save_IFS
32440
32441 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
32442 ;;
32443esac
32444fi
32445MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
32446if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032448$as_echo "$MPEGEncodeDelegate" >&6; }
32449else
cristy8b350f62009-11-15 23:12:43 +000032450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032451$as_echo "no" >&6; }
32452fi
32453
32454
cristy935c86e2010-06-05 23:50:07 +000032455# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
32456set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
32457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32458$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032459if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000032460 $as_echo_n "(cached) " >&6
32461else
32462 case $MrSIDDecodeDelegate in
32463 [\\/]* | ?:[\\/]*)
32464 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
32465 ;;
32466 *)
32467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32468for as_dir in $PATH
32469do
32470 IFS=$as_save_IFS
32471 test -z "$as_dir" && as_dir=.
32472 for ac_exec_ext in '' $ac_executable_extensions; do
32473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32474 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32476 break 2
32477 fi
32478done
32479 done
32480IFS=$as_save_IFS
32481
32482 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
32483 ;;
32484esac
32485fi
32486MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
32487if test -n "$MrSIDDecodeDelegate"; then
32488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
32489$as_echo "$MrSIDDecodeDelegate" >&6; }
32490else
32491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32492$as_echo "no" >&6; }
32493fi
32494
32495
cristy3ed852e2009-09-05 21:47:34 +000032496# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
32497set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032499$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032500if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032501 $as_echo_n "(cached) " >&6
32502else
32503 case $MVDelegate in
32504 [\\/]* | ?:[\\/]*)
32505 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
32506 ;;
32507 *)
32508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32509for as_dir in $PATH
32510do
32511 IFS=$as_save_IFS
32512 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032513 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32515 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032517 break 2
32518 fi
32519done
cristy8b350f62009-11-15 23:12:43 +000032520 done
cristy3ed852e2009-09-05 21:47:34 +000032521IFS=$as_save_IFS
32522
32523 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
32524 ;;
32525esac
32526fi
32527MVDelegate=$ac_cv_path_MVDelegate
32528if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032530$as_echo "$MVDelegate" >&6; }
32531else
cristy8b350f62009-11-15 23:12:43 +000032532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032533$as_echo "no" >&6; }
32534fi
32535
32536
32537# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
32538set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032540$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032541if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032542 $as_echo_n "(cached) " >&6
32543else
32544 case $PCLDelegate in
32545 [\\/]* | ?:[\\/]*)
32546 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
32547 ;;
32548 *)
32549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32550for as_dir in $PATH
32551do
32552 IFS=$as_save_IFS
32553 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032554 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32556 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032558 break 2
32559 fi
32560done
cristy8b350f62009-11-15 23:12:43 +000032561 done
cristy3ed852e2009-09-05 21:47:34 +000032562IFS=$as_save_IFS
32563
32564 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
32565 ;;
32566esac
32567fi
32568PCLDelegate=$ac_cv_path_PCLDelegate
32569if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032571$as_echo "$PCLDelegate" >&6; }
32572else
cristy8b350f62009-11-15 23:12:43 +000032573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032574$as_echo "no" >&6; }
32575fi
32576
32577
32578# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
32579set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032581$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032582if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032583 $as_echo_n "(cached) " >&6
32584else
32585 case $PGPDecodeDelegate in
32586 [\\/]* | ?:[\\/]*)
32587 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
32588 ;;
32589 *)
32590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32591for as_dir in $PATH
32592do
32593 IFS=$as_save_IFS
32594 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032595 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32597 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032599 break 2
32600 fi
32601done
cristy8b350f62009-11-15 23:12:43 +000032602 done
cristy3ed852e2009-09-05 21:47:34 +000032603IFS=$as_save_IFS
32604
32605 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
32606 ;;
32607esac
32608fi
32609PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
32610if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032612$as_echo "$PGPDecodeDelegate" >&6; }
32613else
cristy8b350f62009-11-15 23:12:43 +000032614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032615$as_echo "no" >&6; }
32616fi
32617
32618
32619# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
32620set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032622$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032623if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032624 $as_echo_n "(cached) " >&6
32625else
32626 case $POVDelegate in
32627 [\\/]* | ?:[\\/]*)
32628 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
32629 ;;
32630 *)
32631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32632for as_dir in $PATH
32633do
32634 IFS=$as_save_IFS
32635 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032636 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32638 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032640 break 2
32641 fi
32642done
cristy8b350f62009-11-15 23:12:43 +000032643 done
cristy3ed852e2009-09-05 21:47:34 +000032644IFS=$as_save_IFS
32645
32646 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
32647 ;;
32648esac
32649fi
32650POVDelegate=$ac_cv_path_POVDelegate
32651if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032653$as_echo "$POVDelegate" >&6; }
32654else
cristy8b350f62009-11-15 23:12:43 +000032655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032656$as_echo "no" >&6; }
32657fi
32658
32659
32660for ac_prog in gsx gsc "$PSDelegateDefault"
32661do
32662 # Extract the first word of "$ac_prog", so it can be a program name with args.
32663set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032665$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032666if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032667 $as_echo_n "(cached) " >&6
32668else
32669 case $PSDelegate in
32670 [\\/]* | ?:[\\/]*)
32671 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
32672 ;;
32673 *)
32674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32675for as_dir in $PATH
32676do
32677 IFS=$as_save_IFS
32678 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032679 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32681 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032683 break 2
32684 fi
32685done
cristy8b350f62009-11-15 23:12:43 +000032686 done
cristy3ed852e2009-09-05 21:47:34 +000032687IFS=$as_save_IFS
32688
32689 ;;
32690esac
32691fi
32692PSDelegate=$ac_cv_path_PSDelegate
32693if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032695$as_echo "$PSDelegate" >&6; }
32696else
cristy8b350f62009-11-15 23:12:43 +000032697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032698$as_echo "no" >&6; }
32699fi
32700
32701
32702 test -n "$PSDelegate" && break
32703done
32704test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
32705
32706# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
32707set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032709$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032710if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032711 $as_echo_n "(cached) " >&6
32712else
32713 case $RLEEncodeDelegate in
32714 [\\/]* | ?:[\\/]*)
32715 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
32716 ;;
32717 *)
32718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32719for as_dir in $PATH
32720do
32721 IFS=$as_save_IFS
32722 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032723 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32725 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032727 break 2
32728 fi
32729done
cristy8b350f62009-11-15 23:12:43 +000032730 done
cristy3ed852e2009-09-05 21:47:34 +000032731IFS=$as_save_IFS
32732
32733 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
32734 ;;
32735esac
32736fi
32737RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
32738if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032740$as_echo "$RLEEncodeDelegate" >&6; }
32741else
cristy8b350f62009-11-15 23:12:43 +000032742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032743$as_echo "no" >&6; }
32744fi
32745
32746
32747# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
32748set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032750$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032751if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032752 $as_echo_n "(cached) " >&6
32753else
32754 case $RMDelegate in
32755 [\\/]* | ?:[\\/]*)
32756 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
32757 ;;
32758 *)
32759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32760for as_dir in $PATH
32761do
32762 IFS=$as_save_IFS
32763 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032764 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32766 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032768 break 2
32769 fi
32770done
cristy8b350f62009-11-15 23:12:43 +000032771 done
cristy3ed852e2009-09-05 21:47:34 +000032772IFS=$as_save_IFS
32773
32774 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
32775 ;;
32776esac
32777fi
32778RMDelegate=$ac_cv_path_RMDelegate
32779if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032781$as_echo "$RMDelegate" >&6; }
32782else
cristy8b350f62009-11-15 23:12:43 +000032783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032784$as_echo "no" >&6; }
32785fi
32786
32787
cristy4689cf02010-02-17 21:15:45 +000032788# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
32789set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
32790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32791$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032792if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000032793 $as_echo_n "(cached) " >&6
32794else
32795 case $RSVGDecodeDelegate in
32796 [\\/]* | ?:[\\/]*)
32797 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
32798 ;;
32799 *)
32800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32801for as_dir in $PATH
32802do
32803 IFS=$as_save_IFS
32804 test -z "$as_dir" && as_dir=.
32805 for ac_exec_ext in '' $ac_executable_extensions; do
32806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32807 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32809 break 2
32810 fi
32811done
32812 done
32813IFS=$as_save_IFS
32814
32815 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
32816 ;;
32817esac
32818fi
32819RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
32820if test -n "$RSVGDecodeDelegate"; then
32821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
32822$as_echo "$RSVGDecodeDelegate" >&6; }
32823else
32824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32825$as_echo "no" >&6; }
32826fi
32827
32828
cristy3ed852e2009-09-05 21:47:34 +000032829# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
32830set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032832$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032833if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032834 $as_echo_n "(cached) " >&6
32835else
32836 case $SCANDecodeDelegate in
32837 [\\/]* | ?:[\\/]*)
32838 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
32839 ;;
32840 *)
32841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32842for as_dir in $PATH
32843do
32844 IFS=$as_save_IFS
32845 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032846 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32848 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032850 break 2
32851 fi
32852done
cristy8b350f62009-11-15 23:12:43 +000032853 done
cristy3ed852e2009-09-05 21:47:34 +000032854IFS=$as_save_IFS
32855
32856 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
32857 ;;
32858esac
32859fi
32860SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
32861if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032863$as_echo "$SCANDecodeDelegate" >&6; }
32864else
cristy8b350f62009-11-15 23:12:43 +000032865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032866$as_echo "no" >&6; }
32867fi
32868
32869
32870# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
32871set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032873$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032874if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032875 $as_echo_n "(cached) " >&6
32876else
32877 case $TXTDelegate in
32878 [\\/]* | ?:[\\/]*)
32879 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
32880 ;;
32881 *)
32882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32883for as_dir in $PATH
32884do
32885 IFS=$as_save_IFS
32886 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032887 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32889 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032891 break 2
32892 fi
32893done
cristy8b350f62009-11-15 23:12:43 +000032894 done
cristy3ed852e2009-09-05 21:47:34 +000032895IFS=$as_save_IFS
32896
32897 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
32898 ;;
32899esac
32900fi
32901TXTDelegate=$ac_cv_path_TXTDelegate
32902if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032904$as_echo "$TXTDelegate" >&6; }
32905else
cristy8b350f62009-11-15 23:12:43 +000032906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032907$as_echo "no" >&6; }
32908fi
32909
32910
cristy5ac9ac82010-07-29 13:24:24 +000032911# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
32912set dummy "$UniconvertorDelegateDefault"; ac_word=$2
32913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32914$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032915if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000032916 $as_echo_n "(cached) " >&6
32917else
32918 case $UniconvertorDelegate in
32919 [\\/]* | ?:[\\/]*)
32920 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
32921 ;;
32922 *)
32923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32924for as_dir in $PATH
32925do
32926 IFS=$as_save_IFS
32927 test -z "$as_dir" && as_dir=.
32928 for ac_exec_ext in '' $ac_executable_extensions; do
32929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32930 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
32931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32932 break 2
32933 fi
32934done
32935 done
32936IFS=$as_save_IFS
32937
32938 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
32939 ;;
32940esac
32941fi
32942UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
32943if test -n "$UniconvertorDelegate"; then
32944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
32945$as_echo "$UniconvertorDelegate" >&6; }
32946else
32947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32948$as_echo "no" >&6; }
32949fi
32950
32951
cristy3ed852e2009-09-05 21:47:34 +000032952# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
32953set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032955$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032956if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032957 $as_echo_n "(cached) " >&6
32958else
32959 case $WMFDecodeDelegate in
32960 [\\/]* | ?:[\\/]*)
32961 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
32962 ;;
32963 *)
32964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32965for as_dir in $PATH
32966do
32967 IFS=$as_save_IFS
32968 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032969 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32971 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032973 break 2
32974 fi
32975done
cristy8b350f62009-11-15 23:12:43 +000032976 done
cristy3ed852e2009-09-05 21:47:34 +000032977IFS=$as_save_IFS
32978
32979 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
32980 ;;
32981esac
32982fi
32983WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
32984if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032986$as_echo "$WMFDecodeDelegate" >&6; }
32987else
cristy8b350f62009-11-15 23:12:43 +000032988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032989$as_echo "no" >&6; }
32990fi
32991
32992
32993# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
32994set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032996$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032997if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032998 $as_echo_n "(cached) " >&6
32999else
33000 case $WWWDecodeDelegate in
33001 [\\/]* | ?:[\\/]*)
33002 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33003 ;;
33004 *)
33005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33006for as_dir in $PATH
33007do
33008 IFS=$as_save_IFS
33009 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033010 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33012 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033014 break 2
33015 fi
33016done
cristy8b350f62009-11-15 23:12:43 +000033017 done
cristy3ed852e2009-09-05 21:47:34 +000033018IFS=$as_save_IFS
33019
33020 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33021 ;;
33022esac
33023fi
33024WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33025if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033027$as_echo "$WWWDecodeDelegate" >&6; }
33028else
cristy8b350f62009-11-15 23:12:43 +000033029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033030$as_echo "no" >&6; }
33031fi
33032
33033
33034# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33035set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033037$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033038if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033039 $as_echo_n "(cached) " >&6
33040else
33041 case $XPSDelegate in
33042 [\\/]* | ?:[\\/]*)
33043 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33044 ;;
33045 *)
33046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33047for as_dir in $PATH
33048do
33049 IFS=$as_save_IFS
33050 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033051 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33053 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033055 break 2
33056 fi
33057done
cristy8b350f62009-11-15 23:12:43 +000033058 done
cristy3ed852e2009-09-05 21:47:34 +000033059IFS=$as_save_IFS
33060
33061 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33062 ;;
33063esac
33064fi
33065XPSDelegate=$ac_cv_path_XPSDelegate
33066if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033068$as_echo "$XPSDelegate" >&6; }
33069else
cristy8b350f62009-11-15 23:12:43 +000033070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033071$as_echo "no" >&6; }
33072fi
33073
33074
33075# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33076set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033078$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033079if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033080 $as_echo_n "(cached) " >&6
33081else
33082 case $ZipDelegate in
33083 [\\/]* | ?:[\\/]*)
33084 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33085 ;;
33086 *)
33087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33088for as_dir in $PATH
33089do
33090 IFS=$as_save_IFS
33091 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033092 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33094 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033096 break 2
33097 fi
33098done
cristy8b350f62009-11-15 23:12:43 +000033099 done
cristy3ed852e2009-09-05 21:47:34 +000033100IFS=$as_save_IFS
33101
33102 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33103 ;;
33104esac
33105fi
33106ZipDelegate=$ac_cv_path_ZipDelegate
33107if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033109$as_echo "$ZipDelegate" >&6; }
33110else
cristy8b350f62009-11-15 23:12:43 +000033111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033112$as_echo "no" >&6; }
33113fi
33114
33115
33116
33117# Prefer lpr to lp; lp needs options tacked on.
33118if test "$LPRDelegate" != no; then
33119 PrintDelegate="$LPRDelegate"
33120else
33121 PrintDelegate="$LPDelegate -c -s"
33122fi
33123
33124
33125# Installed ImageMagick utiltity paths
33126ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33127DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33128MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33129
33130# Set delegate booleans
33131have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33132have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33133have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33134have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33135have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000033136have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033137have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
33138have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033139have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
33140have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
33141
33142#
33143# Test for font directories
33144#
33145type_include_files=''
33146
cristy430a7312010-01-21 20:44:04 +000033147# Dejavu fonts.
33148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
33149$as_echo_n "checking for Dejavu fonts directory... " >&6; }
33150dejavu_font_dir=''
33151if test "${with_dejavu_font_dir}" != 'default'; then
33152 dejavu_font_dir="${with_dejavu_font_dir}/"
33153else
33154 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
33155 if test -f "${font_dir}DejaVuSerif.ttf"; then
33156 dejavu_font_dir="${font_dir}"
33157 break 1
33158 fi
33159 done
33160fi
33161if test "${dejavu_font_dir}x" != 'x'; then
33162 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
33163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
33164$as_echo "$dejavu_font_dir" >&6; }
33165else
33166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
33167$as_echo "not found!" >&6; };
33168fi
33169
33170
cristy3ed852e2009-09-05 21:47:34 +000033171# Windows
33172windows_font_dir=''
33173if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
33174 windows_font_dir="${with_windows_font_dir}/"
33175fi
cristy430a7312010-01-21 20:44:04 +000033176if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033177 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
33178 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
33179 fi
33180 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
33181 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
33182 fi
33183 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
33184 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
33185 fi
33186fi
cristy430a7312010-01-21 20:44:04 +000033187if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033188 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
33189fi
33190
33191
33192# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000033193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000033194$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
33195ghostscript_font_dir=''
33196if test "${with_gs_font_dir}" != 'default'; then
33197 ghostscript_font_dir="${with_gs_font_dir}/"
33198else
33199 if test "${native_win32_build}" = 'yes'; then
33200 # Native Windows Build
33201 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
33202 if test -f "${font_dir}a010013l.pfb"; then
33203 ghostscript_font_dir="$font_dir"
33204 break 1
33205 fi
33206 done
33207 if test "${PSDelegate}" != 'gswin32c'; then
33208 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
33209 fi
33210 else
33211 # Linux / Mac OS X / Unix Build
33212 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
33213 if test -f "${font_dir}a010013l.pfb"; then
33214 ghostscript_font_dir="${font_dir}"
33215 break 1
33216 fi
33217 done
33218 if test "${ghostscript_font_dir}x" = 'x'; then
33219 if test "$PSDelegate" != 'gs'; then
33220 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
33221 fi
33222 fi
33223 fi
33224fi
33225if test "${ghostscript_font_dir}x" != 'x'; then
33226 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000033227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000033228$as_echo "$ghostscript_font_dir" >&6; }
33229else
cristy8b350f62009-11-15 23:12:43 +000033230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000033231$as_echo "not found!" >&6; };
33232fi
33233
33234case "${build_os}" in
33235 mingw* )
33236 PSDelegate=`$WinPathScript "$PSDelegate" 1`
33237 ;;
33238esac
33239
33240
33241
33242#
33243# Handle case where user doesn't want frozen paths
33244#
33245if test "$with_frozenpaths" != 'yes'; then
33246 # Re-set delegate definitions to default (no paths)
33247 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033248 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
33249 BZIPDelegate="$BZIPDelegateDefault"
33250 BrowseDelegate="$BrowseDelegateDefault"
33251 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
33252 CatDelegate="$CatDelegateDefault"
33253 ConvertDelegate="$ConvertDelegateDefault"
33254 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
33255 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
33256 EchoDelegate="$EchoDelegateDefault"
33257 EditorDelegate="$EditorDelegateDefault"
33258 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
33259 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
33260 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
33261 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
33262 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
33263 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
33264 LPDelegate="$LPDelegateDefault"
33265 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
33266 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
33267 LaunchDelegate="$LaunchDelegateDefault"
33268 MANDelegate="$MANDelegateDefault"
33269 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
33270 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033271 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000033272 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
33273 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033274 PCLDelegate="$PCLDelegateDefault"
33275 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
33276 POVDelegate="$POVDelegateDefault"
33277 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033278 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
33279 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000033280 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033281 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
33282 ShowImageDelegate="$ShowImageDelegateDefault"
33283 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000033284 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033285 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
33286 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
33287 XPSDelegate="$XPSDelegateDefault"
33288 ZipDelegate="$ZipDelegateDefault"
33289fi
33290
33291# Delegate substitutions
33292
33293
33294
33295
33296
33297
33298
33299
33300
33301
33302
33303
33304
33305
33306
33307
33308
33309
33310
33311
33312
33313
33314
33315
33316
33317
33318
33319
33320
33321
33322
33323
33324
33325
33326
33327
33328
33329
33330
33331
33332
33333
33334#
33335# RPM support.
33336#
33337RPM=''
33338for ac_prog in gnutar gtar tar
33339do
33340 # Extract the first word of "$ac_prog", so it can be a program name with args.
33341set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033343$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033344if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033345 $as_echo_n "(cached) " >&6
33346else
33347 if test -n "$TAR"; then
33348 ac_cv_prog_TAR="$TAR" # Let the user override the test.
33349else
33350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33351for as_dir in $PATH
33352do
33353 IFS=$as_save_IFS
33354 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033355 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33357 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033359 break 2
33360 fi
33361done
cristy8b350f62009-11-15 23:12:43 +000033362 done
cristy3ed852e2009-09-05 21:47:34 +000033363IFS=$as_save_IFS
33364
33365fi
33366fi
33367TAR=$ac_cv_prog_TAR
33368if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000033369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000033370$as_echo "$TAR" >&6; }
33371else
cristy8b350f62009-11-15 23:12:43 +000033372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033373$as_echo "no" >&6; }
33374fi
33375
33376
33377 test -n "$TAR" && break
33378done
33379
33380for ac_prog in perl
33381do
33382 # Extract the first word of "$ac_prog", so it can be a program name with args.
33383set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033385$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033386if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033387 $as_echo_n "(cached) " >&6
33388else
33389 if test -n "$PERL"; then
33390 ac_cv_prog_PERL="$PERL" # Let the user override the test.
33391else
33392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33393for as_dir in $PATH
33394do
33395 IFS=$as_save_IFS
33396 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033397 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33399 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033401 break 2
33402 fi
33403done
cristy8b350f62009-11-15 23:12:43 +000033404 done
cristy3ed852e2009-09-05 21:47:34 +000033405IFS=$as_save_IFS
33406
33407fi
33408fi
33409PERL=$ac_cv_prog_PERL
33410if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000033411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033412$as_echo "$PERL" >&6; }
33413else
cristy8b350f62009-11-15 23:12:43 +000033414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033415$as_echo "no" >&6; }
33416fi
33417
33418
33419 test -n "$PERL" && break
33420done
33421
33422for ac_prog in rpmbuild rpm
33423do
33424 # Extract the first word of "$ac_prog", so it can be a program name with args.
33425set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033427$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033428if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033429 $as_echo_n "(cached) " >&6
33430else
33431 if test -n "$RPM"; then
33432 ac_cv_prog_RPM="$RPM" # Let the user override the test.
33433else
33434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33435for as_dir in $PATH
33436do
33437 IFS=$as_save_IFS
33438 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033439 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33441 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033443 break 2
33444 fi
33445done
cristy8b350f62009-11-15 23:12:43 +000033446 done
cristy3ed852e2009-09-05 21:47:34 +000033447IFS=$as_save_IFS
33448
33449fi
33450fi
33451RPM=$ac_cv_prog_RPM
33452if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000033453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000033454$as_echo "$RPM" >&6; }
33455else
cristy8b350f62009-11-15 23:12:43 +000033456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033457$as_echo "no" >&6; }
33458fi
33459
33460
33461 test -n "$RPM" && break
33462done
33463
33464
cristy73bd4a52010-10-05 11:24:23 +000033465ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
33466
33467
33468AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
33469
33470
33471AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
33472
33473
33474AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
33475
33476
33477 if test "x$RPM" != "x" ; then
33478 RPM_DELEGATE_TRUE=
33479 RPM_DELEGATE_FALSE='#'
33480else
33481 RPM_DELEGATE_TRUE='#'
33482 RPM_DELEGATE_FALSE=
33483fi
33484
cristy3ed852e2009-09-05 21:47:34 +000033485
33486#
33487# 7ZIP support (http://p7zip.sourceforge.net/)
33488#
33489P7ZIP=''
33490for ac_prog in 7za
33491do
33492 # Extract the first word of "$ac_prog", so it can be a program name with args.
33493set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033495$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033496if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033497 $as_echo_n "(cached) " >&6
33498else
33499 if test -n "$P7ZIP"; then
33500 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
33501else
33502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33503for as_dir in $PATH
33504do
33505 IFS=$as_save_IFS
33506 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033507 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33509 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033511 break 2
33512 fi
33513done
cristy8b350f62009-11-15 23:12:43 +000033514 done
cristy3ed852e2009-09-05 21:47:34 +000033515IFS=$as_save_IFS
33516
33517fi
33518fi
33519P7ZIP=$ac_cv_prog_P7ZIP
33520if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000033521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000033522$as_echo "$P7ZIP" >&6; }
33523else
cristy8b350f62009-11-15 23:12:43 +000033524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033525$as_echo "no" >&6; }
33526fi
33527
33528
33529 test -n "$P7ZIP" && break
33530done
33531
33532
cristy73bd4a52010-10-05 11:24:23 +000033533 if test "x$P7ZIP" != "x" ; then
33534 P7ZIP_DELEGATE_TRUE=
33535 P7ZIP_DELEGATE_FALSE='#'
33536else
33537 P7ZIP_DELEGATE_TRUE='#'
33538 P7ZIP_DELEGATE_FALSE=
33539fi
33540
cristy3ed852e2009-09-05 21:47:34 +000033541
33542#
33543# ZIP support (http://www.info-zip.org/Zip.html)
33544#
33545ZIP=''
33546for ac_prog in zip
33547do
33548 # Extract the first word of "$ac_prog", so it can be a program name with args.
33549set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033551$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033552if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033553 $as_echo_n "(cached) " >&6
33554else
33555 if test -n "$ZIP"; then
33556 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
33557else
33558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33559for as_dir in $PATH
33560do
33561 IFS=$as_save_IFS
33562 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033563 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33565 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033567 break 2
33568 fi
33569done
cristy8b350f62009-11-15 23:12:43 +000033570 done
cristy3ed852e2009-09-05 21:47:34 +000033571IFS=$as_save_IFS
33572
33573fi
33574fi
33575ZIP=$ac_cv_prog_ZIP
33576if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000033577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000033578$as_echo "$ZIP" >&6; }
33579else
cristy8b350f62009-11-15 23:12:43 +000033580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033581$as_echo "no" >&6; }
33582fi
33583
33584
33585 test -n "$ZIP" && break
33586done
33587
33588
cristy73bd4a52010-10-05 11:24:23 +000033589 if test "x$ZIP" != "x" ; then
33590 ZIP_DELEGATE_TRUE=
33591 ZIP_DELEGATE_FALSE='#'
33592else
33593 ZIP_DELEGATE_TRUE='#'
33594 ZIP_DELEGATE_FALSE=
33595fi
33596
cristy3ed852e2009-09-05 21:47:34 +000033597
33598#
33599# GhostPCL related configuration.
33600#
33601PCLColorDevice=ppmraw
33602PCLCMYKDevice=bmpsep8
33603PCLMonoDevice=pbmraw
33604if test -z "$PCLVersion"; then
33605 PCLVersion='unknown'
33606fi
33607if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033609$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033611$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000033612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000033613$as_echo "" >&6; }
33614 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000033615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033616$as_echo_n "checking for pcl color device... " >&6; }
33617 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33618 :
33619 else
33620 PCLColorDevice=ppmraw
33621 fi
cristy8b350f62009-11-15 23:12:43 +000033622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033623$as_echo "$PCLColorDevice" >&6; }
33624
33625 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000033626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033627$as_echo_n "checking for pcl CMYK device... " >&6; }
33628 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33629 :
33630 else
33631 PCLCMYKDevice=$PCLColorDevice
33632 fi
cristy8b350f62009-11-15 23:12:43 +000033633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033634$as_echo "$PCLCMYKDevice" >&6; }
33635
33636 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000033637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033638$as_echo_n "checking for pcl mono device... " >&6; }
33639 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33640 :
33641 else
33642 PCLMonoDevice=$PCLColorDevice
33643 fi
cristy8b350f62009-11-15 23:12:43 +000033644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033645$as_echo "$PCLMonoDevice" >&6; }
33646fi
33647
33648
33649
33650
33651
33652
33653#
33654# GhostXPS related configuration.
33655#
33656XPSColorDevice=ppmraw
33657XPSCMYKDevice=bmpsep8
33658XPSMonoDevice=pbmraw
33659if test -z "$XPSVersion"; then
33660 XPSVersion='unknown'
33661fi
33662if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033664$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000033666$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000033667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000033668$as_echo "" >&6; }
33669 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000033670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033671$as_echo_n "checking for xps color device... " >&6; }
33672 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33673 :
33674 else
33675 XPSColorDevice=ppmraw
33676 fi
cristy8b350f62009-11-15 23:12:43 +000033677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033678$as_echo "$XPSColorDevice" >&6; }
33679
33680 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000033681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033682$as_echo_n "checking for xps CMYK device... " >&6; }
33683 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33684 :
33685 else
33686 XPSCMYKDevice=$XPSColorDevice
33687 fi
cristy8b350f62009-11-15 23:12:43 +000033688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033689$as_echo "$XPSCMYKDevice" >&6; }
33690
33691 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000033692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033693$as_echo_n "checking for xps mono device... " >&6; }
33694 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33695 :
33696 else
33697 XPSMonoDevice=$XPSColorDevice
33698 fi
cristy8b350f62009-11-15 23:12:43 +000033699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033700$as_echo "$XPSMonoDevice" >&6; }
33701fi
33702
33703
33704
33705
33706
33707
33708#
33709# Ghostscript related configuration.
33710#
cristya97426c2011-02-04 01:41:27 +000033711GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000033712GSColorDevice=pnmraw
33713GSCMYKDevice=pam
33714GSMonoDevice=pbmraw
33715GSPDFDevice=pdfwrite
33716GSPSDevice=pswrite
33717GSEPSDevice=epswrite
33718GSVersion='unknown'
33719if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033721$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000033723$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000033724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000033725$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000033727$as_echo_n "checking for Ghostscript version... " >&6; }
33728 if GSVersion=`$PSDelegate --version`; then
33729 :
33730 else
33731 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
33732 fi
cristy8b350f62009-11-15 23:12:43 +000033733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000033734$as_echo "$GSVersion" >&6; }
33735
33736 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000033737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033738$as_echo_n "checking for gs alpha device... " >&6; }
33739 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33740 :
33741 else
33742 GSAlphaDevice=pnmraw
33743 fi
cristy8b350f62009-11-15 23:12:43 +000033744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033745$as_echo "$GSAlphaDevice" >&6; }
33746
33747 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000033748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033749$as_echo_n "checking for gs color device... " >&6; }
33750 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33751 :
33752 else
33753 GSColorDevice=pnmraw
33754 fi
cristy8b350f62009-11-15 23:12:43 +000033755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033756$as_echo "$GSColorDevice" >&6; }
33757
33758 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000033759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033760$as_echo_n "checking for gs CMYK device... " >&6; }
33761 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33762 :
33763 else
33764 GSCMYKDevice=bmpsep8
33765 fi
cristy8b350f62009-11-15 23:12:43 +000033766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033767$as_echo "$GSCMYKDevice" >&6; }
33768
33769 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000033770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033771$as_echo_n "checking for gs mono device... " >&6; }
33772 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33773 :
33774 else
33775 GSMonoDevice=$GSColorDevice
33776 fi
cristy8b350f62009-11-15 23:12:43 +000033777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033778$as_echo "$GSMonoDevice" >&6; }
33779
33780 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000033781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033782$as_echo_n "checking for gs PDF writing device... " >&6; }
33783 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33784 :
33785 else
33786 GSPDFDevice=nodevice
33787 fi
cristy8b350f62009-11-15 23:12:43 +000033788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033789$as_echo "$GSPDFDevice" >&6; }
33790
33791 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000033792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033793$as_echo_n "checking for gs PS writing device... " >&6; }
33794 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33795 :
33796 else
33797 GSPSDevice=nodevice
33798 fi
cristy8b350f62009-11-15 23:12:43 +000033799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033800$as_echo "$GSPSDevice" >&6; }
33801
33802 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000033803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000033804$as_echo_n "checking for gs EPS writing device... " >&6; }
33805 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33806 :
33807 else
33808 GSEPSDevice=nodevice
33809 fi
cristy8b350f62009-11-15 23:12:43 +000033810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000033811$as_echo "$GSEPSDevice" >&6; }
33812fi
33813
33814
33815
33816
33817
33818
33819
33820
33821
33822
33823#
33824# PerlMagick-related configuration
33825#
33826
33827# Look for PERL if PerlMagick requested
33828# If name/path of desired PERL interpreter is specified, look for that one first
33829have_perl='no'
33830if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000033831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033832$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000033834$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000033835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000033836$as_echo "" >&6; }
33837 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000033839$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033840if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033841 $as_echo_n "(cached) " >&6
33842else
33843 ac_cv_path_PERL="$with_perl"
33844fi
cristy8b350f62009-11-15 23:12:43 +000033845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033846$as_echo "$ac_cv_path_PERL" >&6; };
33847 PERL=$ac_cv_path_PERL
33848 have_perl="$ac_cv_path_PERL"
33849 else
33850 for ac_prog in perl perl5
33851do
33852 # Extract the first word of "$ac_prog", so it can be a program name with args.
33853set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033855$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033856if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033857 $as_echo_n "(cached) " >&6
33858else
33859 case $PERL in
33860 [\\/]* | ?:[\\/]*)
33861 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
33862 ;;
33863 *)
33864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33865for as_dir in $PATH
33866do
33867 IFS=$as_save_IFS
33868 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033869 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33871 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033873 break 2
33874 fi
33875done
cristy8b350f62009-11-15 23:12:43 +000033876 done
cristy3ed852e2009-09-05 21:47:34 +000033877IFS=$as_save_IFS
33878
33879 ;;
33880esac
33881fi
33882PERL=$ac_cv_path_PERL
33883if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000033884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033885$as_echo "$PERL" >&6; }
33886else
cristy8b350f62009-11-15 23:12:43 +000033887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033888$as_echo "no" >&6; }
33889fi
33890
33891
33892 test -n "$PERL" && break
33893done
33894 if test "$ac_cv_path_PERL"; then
33895 have_perl="$ac_cv_path_PERL"
33896 fi
33897 fi
33898fi
33899
cristy949301e2010-01-06 01:38:40 +000033900if test "$with_perl" != 'yes' ; then
33901 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
33902fi
33903
33904PERL_SUPPORTS_DESTDIR='no'
33905
cristy3ed852e2009-09-05 21:47:34 +000033906with_perl_static='no'
33907with_perl_dynamic='no'
33908if test "$have_perl" != 'no'; then
33909 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
33910 with_perl_static='yes'
33911 fi
33912 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
33913 with_perl_dynamic='yes'
33914 fi
33915 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000033916
33917
33918
33919
33920 if test -n "$PERL"; then :
33921
33922 ax_perl_version="5.8.1"
33923
33924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
33925$as_echo_n "checking for perl version... " >&6; }
33926
33927 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
33928
33929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
33930$as_echo "$perl_version" >&6; }
33931
33932 PERL_VERSION=$perl_version
33933
33934
33935
33936
33937
33938 # Used to indicate true or false condition
33939 ax_compare_version=false
33940
33941 # Convert the two version strings to be compared into a format that
33942 # allows a simple string comparison. The end result is that a version
33943 # string of the form 1.12.5-r617 will be converted to the form
33944 # 0001001200050617. In other words, each number is zero padded to four
33945 # digits, and non digits are removed.
33946
33947 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33948 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33949 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33950 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33951 -e 's/[^0-9]//g'`
33952
33953
33954 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33955 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33956 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33957 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33958 -e 's/[^0-9]//g'`
33959
33960
33961 ax_compare_version=`echo "x$ax_compare_version_A
33962x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
33963
33964
33965
33966 if test "$ax_compare_version" = "true" ; then
33967
33968 :
33969 PERL_SUPPORTS_DESTDIR='yes'
33970
33971 else
33972 :
33973 PERL_SUPPORTS_DESTDIR='no'
33974
33975 fi
33976
33977
33978else
33979
33980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
33981$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
33982 PERL_SUPPORTS_DESTDIR='no'
33983
cristy3ed852e2009-09-05 21:47:34 +000033984fi
cristy73bd4a52010-10-05 11:24:23 +000033985
33986fi
33987 if test "$have_perl" != 'no'; then
33988 WITH_PERL_TRUE=
33989 WITH_PERL_FALSE='#'
33990else
33991 WITH_PERL_TRUE='#'
33992 WITH_PERL_FALSE=
33993fi
33994
33995 if test $with_perl_static = 'yes'; then
33996 WITH_PERL_STATIC_TRUE=
33997 WITH_PERL_STATIC_FALSE='#'
33998else
33999 WITH_PERL_STATIC_TRUE='#'
34000 WITH_PERL_STATIC_FALSE=
34001fi
34002
34003 if test $with_perl_dynamic = 'yes'; then
34004 WITH_PERL_DYNAMIC_TRUE=
34005 WITH_PERL_DYNAMIC_FALSE='#'
34006else
34007 WITH_PERL_DYNAMIC_TRUE='#'
34008 WITH_PERL_DYNAMIC_FALSE=
34009fi
34010
cristy3ed852e2009-09-05 21:47:34 +000034011
34012
34013# Determine path to pick up MagickCore library from for use with building PerlMagick
34014MAGICKCORE_PATH="${LIB_DIR}"
34015if test $with_perl_static = 'yes'; then
34016 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34017 libtool_objdir=$objdir
34018
34019 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000034020 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000034021fi
34022
34023
34024# Create a simple string containing format names for all delegate libraries
34025DELEGATES=''
34026if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34027if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34028if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34029if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34030if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34031if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34032if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34033if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34034if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34035if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34036if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34037if test "$have_jpeg" = 'yes'; then
34038 DELEGATES="$DELEGATES jpeg";
34039 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34040fi
34041if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000034042if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000034043if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34044if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000034045if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000034046if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34047if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
34048if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
34049if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34050if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34051if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34052if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34053if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34054if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34055
34056
34057
34058#
34059# Handle special compiler flags
34060#
34061
34062# Add '-p' if prof source profiling support enabled
34063if test "$enable_prof" = 'yes'; then
34064 CFLAGS="-p $CFLAGS"
34065 CXXFLAGS="-p $CXXFLAGS"
34066 LDFLAGS="-p $LDFLAGS"
34067fi
34068
34069# Add '-pg' if gprof source profiling support enabled
34070if test "$enable_gprof" = 'yes'; then
34071 CFLAGS="-pg $CFLAGS"
34072 CXXFLAGS="-pg $CXXFLAGS"
34073 LDFLAGS="-pg $LDFLAGS"
34074fi
34075
34076# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34077# This is a gcc-specific feature
34078if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034080$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034081if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034082 $as_echo_n "(cached) " >&6
34083else
34084 ac_check_lib_save_LIBS=$LIBS
34085LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034087/* end confdefs.h. */
34088
34089/* Override any GCC internal prototype to avoid an error.
34090 Use char because int might match the return type of a GCC
34091 builtin and then its argument prototype would still apply. */
34092#ifdef __cplusplus
34093extern "C"
34094#endif
34095char _gcov_init ();
34096int
34097main ()
34098{
34099return _gcov_init ();
34100 ;
34101 return 0;
34102}
34103_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034104if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034105 ac_cv_lib_gcov__gcov_init=yes
34106else
cristy8b350f62009-11-15 23:12:43 +000034107 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034108fi
cristy8b350f62009-11-15 23:12:43 +000034109rm -f core conftest.err conftest.$ac_objext \
34110 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034111LIBS=$ac_check_lib_save_LIBS
34112fi
cristy8b350f62009-11-15 23:12:43 +000034113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034114$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034115if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034116 cat >>confdefs.h <<_ACEOF
34117#define HAVE_LIBGCOV 1
34118_ACEOF
34119
34120 LIBS="-lgcov $LIBS"
34121
34122fi
34123
cristy8b350f62009-11-15 23:12:43 +000034124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034125$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034126if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034127 $as_echo_n "(cached) " >&6
34128else
34129 ac_check_lib_save_LIBS=$LIBS
34130LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034132/* end confdefs.h. */
34133
34134/* Override any GCC internal prototype to avoid an error.
34135 Use char because int might match the return type of a GCC
34136 builtin and then its argument prototype would still apply. */
34137#ifdef __cplusplus
34138extern "C"
34139#endif
34140char __gcov_init ();
34141int
34142main ()
34143{
34144return __gcov_init ();
34145 ;
34146 return 0;
34147}
34148_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034149if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034150 ac_cv_lib_gcov___gcov_init=yes
34151else
cristy8b350f62009-11-15 23:12:43 +000034152 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034153fi
cristy8b350f62009-11-15 23:12:43 +000034154rm -f core conftest.err conftest.$ac_objext \
34155 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034156LIBS=$ac_check_lib_save_LIBS
34157fi
cristy8b350f62009-11-15 23:12:43 +000034158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034159$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034160if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034161 cat >>confdefs.h <<_ACEOF
34162#define HAVE_LIBGCOV 1
34163_ACEOF
34164
34165 LIBS="-lgcov $LIBS"
34166
34167fi
34168
34169 case "$target_os" in
34170 darwin*)
34171 OSX_GCOV_LDFLAG="-Wl,-single_module"
34172 ;;
34173 *)
34174 OSX_GCOV_LDFLAG=""
34175 ;;
34176 esac
34177
34178 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
34179 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
34180 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
34181fi
34182
34183#
34184# Build library dependency list for libMagickCore
34185#
34186
34187MAGICK_LIBLTDL='' # Libltdl for build
34188MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
34189MAGICK_LTDLDEPS='' # extra libltdl dependencies
34190if test "$with_ltdl" != 'no'
34191then
34192 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
34193 MAGICK_API_LIBLTDL='-lltdl'
34194 fi
34195 MAGICK_LIBLTDL=${LIBLTDL}
34196 MAGICK_LTDLDEPS=${LTDLDEPS}
34197fi
34198
34199
34200
34201if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000034202 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 $LZMA_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 +000034203else
cristyb1860752011-03-14 00:27:46 +000034204 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 $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_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 +000034205fi
34206
34207
34208#
34209# Remove extraneous spaces from output variables (asthetic)
34210#
34211X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
34212X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
34213X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
34214X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
34215
34216CC=`echo $CC | sed -e 's/ */ /g'`
34217CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
34218CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
34219CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
34220DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
34221DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
34222LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
34223TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34224MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
34225#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34226
34227# Pass only user-provided LIBS as "global" libraries
34228LIBS=$USER_LIBS
34229
34230#AC_SUBST(CPPFLAGS)
34231
34232#AC_SUBST(LDFLAGS)
34233#AC_SUBST(X_PRE_LIBS)
34234#AC_SUBST(X_LIBS)
34235#AC_SUBST(X_EXTRA_LIBS)
34236
34237MAGICK_CFLAGS=$CFLAGS
34238MAGICK_CXXFLAGS="$CXXFLAGS"
34239MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
34240MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
34241MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
34242MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
34243
34244
34245
34246
34247
34248
34249
34250
cristyfd9dcd42010-08-08 18:07:02 +000034251
cristy3ed852e2009-09-05 21:47:34 +000034252# Set configured scripts to executable.
34253ac_config_commands="$ac_config_commands default"
34254
34255ac_config_commands="$ac_config_commands MagickCore-config.in"
34256
34257ac_config_commands="$ac_config_commands Magick-config.in"
34258
34259ac_config_commands="$ac_config_commands MagickWand-config.in"
34260
34261ac_config_commands="$ac_config_commands Wand-config.in"
34262
34263ac_config_commands="$ac_config_commands Magick++-config.in"
34264
34265ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
34266
34267
cristy8b350f62009-11-15 23:12:43 +000034268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000034269$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000034271$as_echo "Update ImageMagick configuration" >&6; }
34272cat >confcache <<\_ACEOF
34273# This file is a shell script that caches the results of configure
34274# tests run on this system so they can be shared between configure
34275# scripts and configure runs, see configure's option --config-cache.
34276# It is not useful on other systems. If it contains results you don't
34277# want to keep, you may remove or edit it.
34278#
34279# config.status only pays attention to the cache file if you give it
34280# the --recheck option to rerun configure.
34281#
34282# `ac_cv_env_foo' variables (set or unset) will be overridden when
34283# loading this file, other *unset* `ac_cv_foo' will be assigned the
34284# following values.
34285
34286_ACEOF
34287
34288# The following way of writing the cache mishandles newlines in values,
34289# but we know of no workaround that is simple, portable, and efficient.
34290# So, we kill variables containing newlines.
34291# Ultrix sh set writes to stderr and can't be redirected directly,
34292# and sets the high bit in the cache file unless we assign to the vars.
34293(
34294 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34295 eval ac_val=\$$ac_var
34296 case $ac_val in #(
34297 *${as_nl}*)
34298 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000034299 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000034300$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34301 esac
34302 case $ac_var in #(
34303 _ | IFS | as_nl) ;; #(
34304 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000034305 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000034306 esac ;;
34307 esac
34308 done
34309
34310 (set) 2>&1 |
34311 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34312 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000034313 # `set' does not quote correctly, so add quotes: double-quote
34314 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000034315 sed -n \
34316 "s/'/'\\\\''/g;
34317 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34318 ;; #(
34319 *)
34320 # `set' quotes correctly as required by POSIX, so do not add quotes.
34321 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34322 ;;
34323 esac |
34324 sort
34325) |
34326 sed '
34327 /^ac_cv_env_/b end
34328 t clear
34329 :clear
34330 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34331 t end
34332 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34333 :end' >>confcache
34334if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34335 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000034336 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000034337 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034338$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000034339 if test ! -f "$cache_file" || test -h "$cache_file"; then
34340 cat confcache >"$cache_file"
34341 else
34342 case $cache_file in #(
34343 */* | ?:*)
34344 mv -f confcache "$cache_file"$$ &&
34345 mv -f "$cache_file"$$ "$cache_file" ;; #(
34346 *)
34347 mv -f confcache "$cache_file" ;;
34348 esac
34349 fi
34350 fi
cristy3ed852e2009-09-05 21:47:34 +000034351 else
cristy8b350f62009-11-15 23:12:43 +000034352 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034353$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34354 fi
34355fi
34356rm -f confcache
34357
34358test "x$prefix" = xNONE && prefix=$ac_default_prefix
34359# Let make expand exec_prefix.
34360test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34361
34362DEFS=-DHAVE_CONFIG_H
34363
34364ac_libobjs=
34365ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000034366U=
cristy3ed852e2009-09-05 21:47:34 +000034367for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34368 # 1. Remove the extension, and $U if already installed.
34369 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34370 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
34371 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34372 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000034373 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34374 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000034375done
34376LIBOBJS=$ac_libobjs
34377
34378LTLIBOBJS=$ac_ltlibobjs
34379
34380
cristy73bd4a52010-10-05 11:24:23 +000034381 if test -n "$EXEEXT"; then
34382 am__EXEEXT_TRUE=
34383 am__EXEEXT_FALSE='#'
34384else
34385 am__EXEEXT_TRUE='#'
34386 am__EXEEXT_FALSE=
34387fi
cristy3ed852e2009-09-05 21:47:34 +000034388
cristy73bd4a52010-10-05 11:24:23 +000034389if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034390 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034391Usually this means the macro was only invoked conditionally." "$LINENO" 5
34392fi
34393if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034394 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034395Usually this means the macro was only invoked conditionally." "$LINENO" 5
34396fi
34397if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034398 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034399Usually this means the macro was only invoked conditionally." "$LINENO" 5
34400fi
34401if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034402 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034403Usually this means the macro was only invoked conditionally." "$LINENO" 5
34404fi
34405if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034406 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034407Usually this means the macro was only invoked conditionally." "$LINENO" 5
34408fi
34409if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034410 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034411Usually this means the macro was only invoked conditionally." "$LINENO" 5
34412fi
34413if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034414 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034415Usually this means the macro was only invoked conditionally." "$LINENO" 5
34416fi
34417if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034418 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034419Usually this means the macro was only invoked conditionally." "$LINENO" 5
34420fi
cristy73bd4a52010-10-05 11:24:23 +000034421if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034422 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034423Usually this means the macro was only invoked conditionally." "$LINENO" 5
34424fi
34425if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034426 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034427Usually this means the macro was only invoked conditionally." "$LINENO" 5
34428fi
34429LT_CONFIG_H=config/config.h
34430
34431 _ltdl_libobjs=
34432 _ltdl_ltlibobjs=
34433 if test -n "$_LT_LIBOBJS"; then
34434 # Remove the extension.
34435 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
34436 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
34437 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
34438 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
34439 done
34440 fi
34441 ltdl_LIBOBJS=$_ltdl_libobjs
34442
34443 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
34444
34445
34446if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034447 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034448Usually this means the macro was only invoked conditionally." "$LINENO" 5
34449fi
34450if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034451 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034452Usually this means the macro was only invoked conditionally." "$LINENO" 5
34453fi
34454if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034455 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034456Usually this means the macro was only invoked conditionally." "$LINENO" 5
34457fi
34458if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034459 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034460Usually this means the macro was only invoked conditionally." "$LINENO" 5
34461fi
34462
34463if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034464 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034465Usually this means the macro was only invoked conditionally." "$LINENO" 5
34466fi
34467if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034468 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034469Usually this means the macro was only invoked conditionally." "$LINENO" 5
34470fi
34471if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034472 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034473Usually this means the macro was only invoked conditionally." "$LINENO" 5
34474fi
34475if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034476 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034477Usually this means the macro was only invoked conditionally." "$LINENO" 5
34478fi
34479if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034480 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034481Usually this means the macro was only invoked conditionally." "$LINENO" 5
34482fi
34483if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034484 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034485Usually this means the macro was only invoked conditionally." "$LINENO" 5
34486fi
34487if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034488 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034489Usually this means the macro was only invoked conditionally." "$LINENO" 5
34490fi
34491if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034492 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034493Usually this means the macro was only invoked conditionally." "$LINENO" 5
34494fi
34495if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034496 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034497Usually this means the macro was only invoked conditionally." "$LINENO" 5
34498fi
34499if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034500 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034501Usually this means the macro was only invoked conditionally." "$LINENO" 5
34502fi
34503if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034504 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034505Usually this means the macro was only invoked conditionally." "$LINENO" 5
34506fi
34507if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034508 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034509Usually this means the macro was only invoked conditionally." "$LINENO" 5
34510fi
34511if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034512 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034513Usually this means the macro was only invoked conditionally." "$LINENO" 5
34514fi
34515if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034516 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034517Usually this means the macro was only invoked conditionally." "$LINENO" 5
34518fi
34519if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034520 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034521Usually this means the macro was only invoked conditionally." "$LINENO" 5
34522fi
34523if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034524 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034525Usually this means the macro was only invoked conditionally." "$LINENO" 5
34526fi
34527if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034528 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034529Usually this means the macro was only invoked conditionally." "$LINENO" 5
34530fi
34531if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034532 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034533Usually this means the macro was only invoked conditionally." "$LINENO" 5
34534fi
34535if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034536 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034537Usually this means the macro was only invoked conditionally." "$LINENO" 5
34538fi
34539if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034540 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034541Usually this means the macro was only invoked conditionally." "$LINENO" 5
34542fi
cristyfbb0ef02010-12-19 02:32:11 +000034543if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
34544 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
34545Usually this means the macro was only invoked conditionally." "$LINENO" 5
34546fi
cristy73bd4a52010-10-05 11:24:23 +000034547if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034548 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034549Usually this means the macro was only invoked conditionally." "$LINENO" 5
34550fi
34551if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034552 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034553Usually this means the macro was only invoked conditionally." "$LINENO" 5
34554fi
34555if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034556 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034557Usually this means the macro was only invoked conditionally." "$LINENO" 5
34558fi
34559if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034560 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034561Usually this means the macro was only invoked conditionally." "$LINENO" 5
34562fi
34563if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034564 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034565Usually this means the macro was only invoked conditionally." "$LINENO" 5
34566fi
cristyb1860752011-03-14 00:27:46 +000034567if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
34568 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
34569Usually this means the macro was only invoked conditionally." "$LINENO" 5
34570fi
cristy73bd4a52010-10-05 11:24:23 +000034571if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034572 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034573Usually this means the macro was only invoked conditionally." "$LINENO" 5
34574fi
34575if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034576 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034577Usually this means the macro was only invoked conditionally." "$LINENO" 5
34578fi
34579if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034580 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034581Usually this means the macro was only invoked conditionally." "$LINENO" 5
34582fi
34583if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034584 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034585Usually this means the macro was only invoked conditionally." "$LINENO" 5
34586fi
34587if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034588 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034589Usually this means the macro was only invoked conditionally." "$LINENO" 5
34590fi
34591if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034592 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034593Usually this means the macro was only invoked conditionally." "$LINENO" 5
34594fi
34595if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034596 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034597Usually this means the macro was only invoked conditionally." "$LINENO" 5
34598fi
34599if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034600 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034601Usually this means the macro was only invoked conditionally." "$LINENO" 5
34602fi
cristy3ed852e2009-09-05 21:47:34 +000034603
cristyda16f162011-02-19 23:52:17 +000034604: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000034605ac_write_fail=0
34606ac_clean_files_save=$ac_clean_files
34607ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000034608{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034609$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034610as_write_fail=0
34611cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000034612#! $SHELL
34613# Generated by $as_me.
34614# Run this file to recreate the current configuration.
34615# Compiler output produced by configure, useful for debugging
34616# configure, is in config.log if it exists.
34617
34618debug=false
34619ac_cs_recheck=false
34620ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000034621
cristy8b350f62009-11-15 23:12:43 +000034622SHELL=\${CONFIG_SHELL-$SHELL}
34623export SHELL
34624_ASEOF
34625cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
34626## -------------------- ##
34627## M4sh Initialization. ##
34628## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000034629
34630# Be more Bourne compatible
34631DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000034632if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000034633 emulate sh
34634 NULLCMD=:
34635 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
34636 # is contrary to our usage. Disable this feature.
34637 alias -g '${1+"$@"}'='"$@"'
34638 setopt NO_GLOB_SUBST
34639else
cristy8b350f62009-11-15 23:12:43 +000034640 case `(set -o) 2>/dev/null` in #(
34641 *posix*) :
34642 set -o posix ;; #(
34643 *) :
34644 ;;
cristy3ed852e2009-09-05 21:47:34 +000034645esac
cristy3ed852e2009-09-05 21:47:34 +000034646fi
34647
34648
cristy3ed852e2009-09-05 21:47:34 +000034649as_nl='
34650'
34651export as_nl
34652# Printing a long string crashes Solaris 7 /usr/bin/printf.
34653as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
34654as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
34655as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000034656# Prefer a ksh shell builtin over an external printf program on Solaris,
34657# but without wasting forks for bash or zsh.
34658if test -z "$BASH_VERSION$ZSH_VERSION" \
34659 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
34660 as_echo='print -r --'
34661 as_echo_n='print -rn --'
34662elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000034663 as_echo='printf %s\n'
34664 as_echo_n='printf %s'
34665else
34666 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
34667 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
34668 as_echo_n='/usr/ucb/echo -n'
34669 else
34670 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
34671 as_echo_n_body='eval
34672 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000034673 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000034674 *"$as_nl"*)
34675 expr "X$arg" : "X\\(.*\\)$as_nl";
34676 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
34677 esac;
34678 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
34679 '
34680 export as_echo_n_body
34681 as_echo_n='sh -c $as_echo_n_body as_echo'
34682 fi
34683 export as_echo_body
34684 as_echo='sh -c $as_echo_body as_echo'
34685fi
34686
34687# The user is always right.
34688if test "${PATH_SEPARATOR+set}" != set; then
34689 PATH_SEPARATOR=:
34690 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
34691 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
34692 PATH_SEPARATOR=';'
34693 }
34694fi
34695
cristy3ed852e2009-09-05 21:47:34 +000034696
34697# IFS
34698# We need space, tab and new line, in precisely that order. Quoting is
34699# there to prevent editors from complaining about space-tab.
34700# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34701# splitting by setting IFS to empty value.)
34702IFS=" "" $as_nl"
34703
34704# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000034705as_myself=
cristy8b350f62009-11-15 23:12:43 +000034706case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000034707 *[\\/]* ) as_myself=$0 ;;
34708 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34709for as_dir in $PATH
34710do
34711 IFS=$as_save_IFS
34712 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034713 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34714 done
cristy3ed852e2009-09-05 21:47:34 +000034715IFS=$as_save_IFS
34716
34717 ;;
34718esac
34719# We did not find ourselves, most probably we were run as `sh COMMAND'
34720# in which case we are not to be found in the path.
34721if test "x$as_myself" = x; then
34722 as_myself=$0
34723fi
34724if test ! -f "$as_myself"; then
34725 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000034726 exit 1
cristy3ed852e2009-09-05 21:47:34 +000034727fi
34728
cristy8b350f62009-11-15 23:12:43 +000034729# Unset variables that we do not need and which cause bugs (e.g. in
34730# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
34731# suppresses any "Segmentation fault" message there. '((' could
34732# trigger a bug in pdksh 5.2.14.
34733for as_var in BASH_ENV ENV MAIL MAILPATH
34734do eval test x\${$as_var+set} = xset \
34735 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000034736done
34737PS1='$ '
34738PS2='> '
34739PS4='+ '
34740
34741# NLS nuisances.
34742LC_ALL=C
34743export LC_ALL
34744LANGUAGE=C
34745export LANGUAGE
34746
cristy8b350f62009-11-15 23:12:43 +000034747# CDPATH.
34748(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34749
34750
cristy98dddb52010-11-04 00:30:15 +000034751# as_fn_error STATUS ERROR [LINENO LOG_FD]
34752# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000034753# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
34754# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000034755# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000034756as_fn_error ()
34757{
cristy98dddb52010-11-04 00:30:15 +000034758 as_status=$1; test $as_status -eq 0 && as_status=1
34759 if test "$4"; then
34760 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
34761 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000034762 fi
cristy98dddb52010-11-04 00:30:15 +000034763 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000034764 as_fn_exit $as_status
34765} # as_fn_error
34766
34767
34768# as_fn_set_status STATUS
34769# -----------------------
34770# Set $? to STATUS, without forking.
34771as_fn_set_status ()
34772{
34773 return $1
34774} # as_fn_set_status
34775
34776# as_fn_exit STATUS
34777# -----------------
34778# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
34779as_fn_exit ()
34780{
34781 set +e
34782 as_fn_set_status $1
34783 exit $1
34784} # as_fn_exit
34785
34786# as_fn_unset VAR
34787# ---------------
34788# Portably unset VAR.
34789as_fn_unset ()
34790{
34791 { eval $1=; unset $1;}
34792}
34793as_unset=as_fn_unset
34794# as_fn_append VAR VALUE
34795# ----------------------
34796# Append the text in VALUE to the end of the definition contained in VAR. Take
34797# advantage of any shell optimizations that allow amortized linear growth over
34798# repeated appends, instead of the typical quadratic growth present in naive
34799# implementations.
34800if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
34801 eval 'as_fn_append ()
34802 {
34803 eval $1+=\$2
34804 }'
34805else
34806 as_fn_append ()
34807 {
34808 eval $1=\$$1\$2
34809 }
34810fi # as_fn_append
34811
34812# as_fn_arith ARG...
34813# ------------------
34814# Perform arithmetic evaluation on the ARGs, and store the result in the
34815# global $as_val. Take advantage of shells that can avoid forks. The arguments
34816# must be portable across $(()) and expr.
34817if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
34818 eval 'as_fn_arith ()
34819 {
34820 as_val=$(( $* ))
34821 }'
34822else
34823 as_fn_arith ()
34824 {
34825 as_val=`expr "$@" || test $? -eq 1`
34826 }
34827fi # as_fn_arith
34828
34829
cristy3ed852e2009-09-05 21:47:34 +000034830if expr a : '\(a\)' >/dev/null 2>&1 &&
34831 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34832 as_expr=expr
34833else
34834 as_expr=false
34835fi
34836
34837if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34838 as_basename=basename
34839else
34840 as_basename=false
34841fi
34842
cristy8b350f62009-11-15 23:12:43 +000034843if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34844 as_dirname=dirname
34845else
34846 as_dirname=false
34847fi
cristy3ed852e2009-09-05 21:47:34 +000034848
cristy3ed852e2009-09-05 21:47:34 +000034849as_me=`$as_basename -- "$0" ||
34850$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34851 X"$0" : 'X\(//\)$' \| \
34852 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34853$as_echo X/"$0" |
34854 sed '/^.*\/\([^/][^/]*\)\/*$/{
34855 s//\1/
34856 q
34857 }
34858 /^X\/\(\/\/\)$/{
34859 s//\1/
34860 q
34861 }
34862 /^X\/\(\/\).*/{
34863 s//\1/
34864 q
34865 }
34866 s/.*/./; q'`
34867
cristy8b350f62009-11-15 23:12:43 +000034868# Avoid depending upon Character Ranges.
34869as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34870as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34871as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34872as_cr_digits='0123456789'
34873as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000034874
34875ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000034876case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000034877-n*)
cristy8b350f62009-11-15 23:12:43 +000034878 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000034879 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000034880 xy) ECHO_C='\c';;
34881 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
34882 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000034883 esac;;
34884*)
34885 ECHO_N='-n';;
34886esac
cristy3ed852e2009-09-05 21:47:34 +000034887
34888rm -f conf$$ conf$$.exe conf$$.file
34889if test -d conf$$.dir; then
34890 rm -f conf$$.dir/conf$$.file
34891else
34892 rm -f conf$$.dir
34893 mkdir conf$$.dir 2>/dev/null
34894fi
34895if (echo >conf$$.file) 2>/dev/null; then
34896 if ln -s conf$$.file conf$$ 2>/dev/null; then
34897 as_ln_s='ln -s'
34898 # ... but there are two gotchas:
34899 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34900 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34901 # In both cases, we have to default to `cp -p'.
34902 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34903 as_ln_s='cp -p'
34904 elif ln conf$$.file conf$$ 2>/dev/null; then
34905 as_ln_s=ln
34906 else
34907 as_ln_s='cp -p'
34908 fi
34909else
34910 as_ln_s='cp -p'
34911fi
34912rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34913rmdir conf$$.dir 2>/dev/null
34914
cristy8b350f62009-11-15 23:12:43 +000034915
34916# as_fn_mkdir_p
34917# -------------
34918# Create "$as_dir" as a directory, including parents if necessary.
34919as_fn_mkdir_p ()
34920{
34921
34922 case $as_dir in #(
34923 -*) as_dir=./$as_dir;;
34924 esac
34925 test -d "$as_dir" || eval $as_mkdir_p || {
34926 as_dirs=
34927 while :; do
34928 case $as_dir in #(
34929 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34930 *) as_qdir=$as_dir;;
34931 esac
34932 as_dirs="'$as_qdir' $as_dirs"
34933 as_dir=`$as_dirname -- "$as_dir" ||
34934$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34935 X"$as_dir" : 'X\(//\)[^/]' \| \
34936 X"$as_dir" : 'X\(//\)$' \| \
34937 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34938$as_echo X"$as_dir" |
34939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34940 s//\1/
34941 q
34942 }
34943 /^X\(\/\/\)[^/].*/{
34944 s//\1/
34945 q
34946 }
34947 /^X\(\/\/\)$/{
34948 s//\1/
34949 q
34950 }
34951 /^X\(\/\).*/{
34952 s//\1/
34953 q
34954 }
34955 s/.*/./; q'`
34956 test -d "$as_dir" && break
34957 done
34958 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000034959 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000034960
34961
34962} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034963if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034964 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000034965else
34966 test -d ./-p && rmdir ./-p
34967 as_mkdir_p=false
34968fi
34969
34970if test -x / >/dev/null 2>&1; then
34971 as_test_x='test -x'
34972else
34973 if ls -dL / >/dev/null 2>&1; then
34974 as_ls_L_option=L
34975 else
34976 as_ls_L_option=
34977 fi
34978 as_test_x='
34979 eval sh -c '\''
34980 if test -d "$1"; then
34981 test -d "$1/.";
34982 else
cristy8b350f62009-11-15 23:12:43 +000034983 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000034984 -*)set "./$1";;
34985 esac;
cristy8b350f62009-11-15 23:12:43 +000034986 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000034987 ???[sx]*):;;*)false;;esac;fi
34988 '\'' sh
34989 '
34990fi
34991as_executable_p=$as_test_x
34992
34993# Sed expression to map a string onto a valid CPP name.
34994as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34995
34996# Sed expression to map a string onto a valid variable name.
34997as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34998
34999
35000exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000035001## ----------------------------------- ##
35002## Main body of $CONFIG_STATUS script. ##
35003## ----------------------------------- ##
35004_ASEOF
35005test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035006
cristy8b350f62009-11-15 23:12:43 +000035007cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35008# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000035009# report actual input values of CONFIG_FILES etc. instead of their
35010# values after options handling.
35011ac_log="
cristy4c08aed2011-07-01 19:47:50 +000035012This file was extended by ImageMagick $as_me 7.0.0, which was
cristyda16f162011-02-19 23:52:17 +000035013generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000035014
35015 CONFIG_FILES = $CONFIG_FILES
35016 CONFIG_HEADERS = $CONFIG_HEADERS
35017 CONFIG_LINKS = $CONFIG_LINKS
35018 CONFIG_COMMANDS = $CONFIG_COMMANDS
35019 $ $0 $@
35020
35021on `(hostname || uname -n) 2>/dev/null | sed 1q`
35022"
35023
35024_ACEOF
35025
35026case $ac_config_files in *"
35027"*) set x $ac_config_files; shift; ac_config_files=$*;;
35028esac
35029
35030case $ac_config_headers in *"
35031"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35032esac
35033
35034
35035cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35036# Files that config.status was made for.
35037config_files="$ac_config_files"
35038config_headers="$ac_config_headers"
35039config_commands="$ac_config_commands"
35040
35041_ACEOF
35042
35043cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35044ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000035045\`$as_me' instantiates files and other configuration actions
35046from templates according to the current configuration. Unless the files
35047and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000035048
cristy8b350f62009-11-15 23:12:43 +000035049Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000035050
35051 -h, --help print this help, then exit
35052 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000035053 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000035054 -q, --quiet, --silent
35055 do not print progress messages
35056 -d, --debug don't remove temporary files
35057 --recheck update $as_me by reconfiguring in the same conditions
35058 --file=FILE[:TEMPLATE]
35059 instantiate the configuration file FILE
35060 --header=FILE[:TEMPLATE]
35061 instantiate the configuration header FILE
35062
35063Configuration files:
35064$config_files
35065
35066Configuration headers:
35067$config_headers
35068
35069Configuration commands:
35070$config_commands
35071
cristy8b350f62009-11-15 23:12:43 +000035072Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000035073
35074_ACEOF
35075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000035076ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000035077ac_cs_version="\\
cristy4c08aed2011-07-01 19:47:50 +000035078ImageMagick config.status 7.0.0
cristyda16f162011-02-19 23:52:17 +000035079configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000035080 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000035081
cristy98dddb52010-11-04 00:30:15 +000035082Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000035083This config.status script is free software; the Free Software Foundation
35084gives unlimited permission to copy, distribute and modify it."
35085
35086ac_pwd='$ac_pwd'
35087srcdir='$srcdir'
35088INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000035089MKDIR_P='$MKDIR_P'
35090AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000035091test -n "\$AWK" || AWK=awk
35092_ACEOF
35093
35094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35095# The default lists apply if the user does not specify any file.
35096ac_need_defaults=:
35097while test $# != 0
35098do
35099 case $1 in
cristyda16f162011-02-19 23:52:17 +000035100 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000035101 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35102 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35103 ac_shift=:
35104 ;;
cristyda16f162011-02-19 23:52:17 +000035105 --*=)
35106 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35107 ac_optarg=
35108 ac_shift=:
35109 ;;
cristy3ed852e2009-09-05 21:47:34 +000035110 *)
35111 ac_option=$1
35112 ac_optarg=$2
35113 ac_shift=shift
35114 ;;
35115 esac
35116
35117 case $ac_option in
35118 # Handling of the options.
35119 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35120 ac_cs_recheck=: ;;
35121 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35122 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000035123 --config | --confi | --conf | --con | --co | --c )
35124 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000035125 --debug | --debu | --deb | --de | --d | -d )
35126 debug=: ;;
35127 --file | --fil | --fi | --f )
35128 $ac_shift
35129 case $ac_optarg in
35130 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000035131 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000035132 esac
cristy8b350f62009-11-15 23:12:43 +000035133 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035134 ac_need_defaults=false;;
35135 --header | --heade | --head | --hea )
35136 $ac_shift
35137 case $ac_optarg in
35138 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35139 esac
cristy8b350f62009-11-15 23:12:43 +000035140 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035141 ac_need_defaults=false;;
35142 --he | --h)
35143 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000035144 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035145Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000035146 --help | --hel | -h )
35147 $as_echo "$ac_cs_usage"; exit ;;
35148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35149 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35150 ac_cs_silent=: ;;
35151
35152 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000035153 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035154Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000035155
cristy8b350f62009-11-15 23:12:43 +000035156 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000035157 ac_need_defaults=false ;;
35158
35159 esac
35160 shift
35161done
35162
35163ac_configure_extra_args=
35164
35165if $ac_cs_silent; then
35166 exec 6>/dev/null
35167 ac_configure_extra_args="$ac_configure_extra_args --silent"
35168fi
35169
35170_ACEOF
35171cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35172if \$ac_cs_recheck; then
35173 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35174 shift
35175 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35176 CONFIG_SHELL='$SHELL'
35177 export CONFIG_SHELL
35178 exec "\$@"
35179fi
35180
35181_ACEOF
35182cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35183exec 5>>config.log
35184{
35185 echo
35186 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35187## Running $as_me. ##
35188_ASBOX
35189 $as_echo "$ac_log"
35190} >&5
35191
35192_ACEOF
35193cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000035194#
35195# INIT-COMMANDS
35196#
35197PACKAGE="$PACKAGE"
35198AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
35199
35200
35201# The HP-UX ksh and POSIX shell print the target directory to stdout
35202# if CDPATH is set.
35203(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35204
35205sed_quote_subst='$sed_quote_subst'
35206double_quote_subst='$double_quote_subst'
35207delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000035208SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
35209Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
35210GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
35211EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
35212FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
35213SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
35214ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
35215LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
35216macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
35217macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
35218AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
35219DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
35220OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
35221enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
35222enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
35223pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
35224enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
35225host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
35226host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
35227host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
35228build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
35229build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
35230build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
35231NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
35232LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
35233max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
35234ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
35235exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
35236lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
35237lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
35238lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035239lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
35240lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035241reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
35242reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
35243deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
35244file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035245file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
35246want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
35247sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035248AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
35249AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035250archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035251STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
35252RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
35253old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35254old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35255old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
35256lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
35257CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
35258CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
35259compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
35260GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
35261lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
35262lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
35263lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
35264lt_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"`'
cristyda16f162011-02-19 23:52:17 +000035265nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
35266lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035267objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
35268MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
35269lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035270lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035271lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035272lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
35273lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
35274need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035275MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035276DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
35277NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
35278LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
35279OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
35280OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
35281libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
35282shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
35283extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35284archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
35285enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
35286export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
35287whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
35288compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
35289old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
35290old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35291archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
35292archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35293module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
35294module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35295with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
35296allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
35297no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
35298hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
35299hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
35300hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
35301hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
35302hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
35303hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
35304hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
35305hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
35306inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
35307link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035308always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
35309export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
35310exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
35311include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
35312prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035313postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035314file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
35315variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
35316need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
35317need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
35318version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
35319runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
35320shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
35321shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
35322libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
35323library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
35324soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
35325install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
35326postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35327postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35328finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
35329finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
35330hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
35331sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
35332sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
35333hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
35334enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
35335enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
35336enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
35337old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
35338striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
35339compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
35340predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
35341postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
35342predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
35343postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
35344compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
35345LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
35346reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
35347reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35348old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35349compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
35350GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
35351lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035352lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035353lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035354lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
35355lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
35356archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
35357enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
35358export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35359whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35360compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
35361old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35362old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35363archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35364archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35365module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35366module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35367with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
35368allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35369no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35370hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35371hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
35372hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
35373hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
35374hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
35375hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
35376hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
35377hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
35378inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
35379link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035380always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
35381export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35382exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35383include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35384prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035385postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035386file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
35387hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
35388compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
35389predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35390postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35391predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
35392postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
35393compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000035394
35395LTCC='$LTCC'
35396LTCFLAGS='$LTCFLAGS'
35397compiler='$compiler_DEFAULT'
35398
cristy0c60a692010-11-04 01:09:47 +000035399# A function that is used when there is no print builtin or printf.
35400func_fallback_echo ()
35401{
35402 eval 'cat <<_LTECHO_EOF
35403\$1
35404_LTECHO_EOF'
35405}
35406
cristy73bd4a52010-10-05 11:24:23 +000035407# Quote evaled strings.
35408for var in SED \
35409GREP \
35410EGREP \
35411FGREP \
cristy0c60a692010-11-04 01:09:47 +000035412SHELL \
35413ECHO \
cristy73bd4a52010-10-05 11:24:23 +000035414LD \
cristy0c60a692010-11-04 01:09:47 +000035415AS \
35416DLLTOOL \
35417OBJDUMP \
cristy73bd4a52010-10-05 11:24:23 +000035418NM \
35419LN_S \
35420lt_SP2NL \
35421lt_NL2SP \
35422reload_flag \
35423deplibs_check_method \
35424file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000035425file_magic_glob \
35426want_nocaseglob \
35427sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000035428AR \
35429AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000035430archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000035431STRIP \
35432RANLIB \
35433CC \
35434CFLAGS \
35435compiler \
35436lt_cv_sys_global_symbol_pipe \
35437lt_cv_sys_global_symbol_to_cdecl \
35438lt_cv_sys_global_symbol_to_c_name_address \
35439lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000035440nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000035441lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000035442lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000035443lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000035444lt_prog_compiler_static \
35445lt_cv_prog_compiler_c_o \
35446need_locks \
cristyda16f162011-02-19 23:52:17 +000035447MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000035448DSYMUTIL \
35449NMEDIT \
35450LIPO \
35451OTOOL \
35452OTOOL64 \
35453shrext_cmds \
35454export_dynamic_flag_spec \
35455whole_archive_flag_spec \
35456compiler_needs_object \
35457with_gnu_ld \
35458allow_undefined_flag \
35459no_undefined_flag \
35460hardcode_libdir_flag_spec \
35461hardcode_libdir_flag_spec_ld \
35462hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000035463exclude_expsyms \
35464include_expsyms \
35465file_list_spec \
35466variables_saved_for_relink \
35467libname_spec \
35468library_names_spec \
35469soname_spec \
cristy0c60a692010-11-04 01:09:47 +000035470install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000035471finish_eval \
35472old_striplib \
35473striplib \
35474compiler_lib_search_dirs \
35475predep_objects \
35476postdep_objects \
35477predeps \
35478postdeps \
35479compiler_lib_search_path \
35480LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000035481reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035482compiler_CXX \
35483lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035484lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000035485lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035486lt_prog_compiler_static_CXX \
35487lt_cv_prog_compiler_c_o_CXX \
35488export_dynamic_flag_spec_CXX \
35489whole_archive_flag_spec_CXX \
35490compiler_needs_object_CXX \
35491with_gnu_ld_CXX \
35492allow_undefined_flag_CXX \
35493no_undefined_flag_CXX \
35494hardcode_libdir_flag_spec_CXX \
35495hardcode_libdir_flag_spec_ld_CXX \
35496hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035497exclude_expsyms_CXX \
35498include_expsyms_CXX \
35499file_list_spec_CXX \
35500compiler_lib_search_dirs_CXX \
35501predep_objects_CXX \
35502postdep_objects_CXX \
35503predeps_CXX \
35504postdeps_CXX \
35505compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000035506 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000035507 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000035508 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000035509 ;;
35510 *)
35511 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35512 ;;
35513 esac
35514done
35515
35516# Double-quote double-evaled strings.
35517for var in reload_cmds \
35518old_postinstall_cmds \
35519old_postuninstall_cmds \
35520old_archive_cmds \
35521extract_expsyms_cmds \
35522old_archive_from_new_cmds \
35523old_archive_from_expsyms_cmds \
35524archive_cmds \
35525archive_expsym_cmds \
35526module_cmds \
35527module_expsym_cmds \
35528export_symbols_cmds \
35529prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000035530postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000035531postinstall_cmds \
35532postuninstall_cmds \
35533finish_cmds \
35534sys_lib_search_path_spec \
35535sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000035536reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000035537old_archive_cmds_CXX \
35538old_archive_from_new_cmds_CXX \
35539old_archive_from_expsyms_cmds_CXX \
35540archive_cmds_CXX \
35541archive_expsym_cmds_CXX \
35542module_cmds_CXX \
35543module_expsym_cmds_CXX \
35544export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000035545prelink_cmds_CXX \
35546postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000035547 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000035548 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000035549 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000035550 ;;
35551 *)
35552 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35553 ;;
35554 esac
35555done
35556
cristy73bd4a52010-10-05 11:24:23 +000035557ac_aux_dir='$ac_aux_dir'
35558xsi_shell='$xsi_shell'
35559lt_shell_append='$lt_shell_append'
35560
35561# See if we are running on zsh, and set the options which allow our
35562# commands through without removal of \ escapes INIT.
35563if test -n "\${ZSH_VERSION+set}" ; then
35564 setopt NO_GLOB_SUBST
35565fi
35566
35567
35568 PACKAGE='$PACKAGE'
35569 VERSION='$VERSION'
35570 TIMESTAMP='$TIMESTAMP'
35571 RM='$RM'
35572 ofile='$ofile'
35573
35574
35575
35576
35577
35578
cristy3ed852e2009-09-05 21:47:34 +000035579_ACEOF
35580
35581cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35582
35583# Handling of arguments.
35584for ac_config_target in $ac_config_targets
35585do
35586 case $ac_config_target in
35587 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000035588 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000035589 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
35590 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
35591 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
35592 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
35593 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000035594 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000035595 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
35596 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
35597 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
35598 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
35599 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000035600 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000035601 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
35602 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000035603 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
35604 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
35605 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000035606 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35607 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
35608 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
35609 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
35610 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
35611 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
35612 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
35613 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
35614 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
35615 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
35616 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
35617 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
35618 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
35619 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
35620 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
35621 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
35622 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000035623 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
35624 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000035625 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
35626 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000035627 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35628 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
35629 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
35630 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
35631 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
35632 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
35633 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
35634
cristy98dddb52010-11-04 00:30:15 +000035635 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035636 esac
35637done
35638
35639
35640# If the user did not use the arguments to specify the items to instantiate,
35641# then the envvar interface is used. Set only those that are not.
35642# We use the long form for the default assignment because of an extremely
35643# bizarre bug on SunOS 4.1.3.
35644if $ac_need_defaults; then
35645 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35646 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35647 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35648fi
35649
35650# Have a temporary directory for convenience. Make it in the build tree
35651# simply because there is no reason against having it here, and in addition,
35652# creating and moving files from /tmp can sometimes cause problems.
35653# Hook for its removal unless debugging.
35654# Note that there is a small window in which the directory will not be cleaned:
35655# after its creation but before its name has been assigned to `$tmp'.
35656$debug ||
35657{
cristyda16f162011-02-19 23:52:17 +000035658 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000035659 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000035660 : "${ac_tmp:=$tmp}"
35661 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000035662' 0
cristy8b350f62009-11-15 23:12:43 +000035663 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000035664}
35665# Create a (secure) tmp directory for tmp files.
35666
35667{
35668 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000035669 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000035670} ||
35671{
35672 tmp=./conf$$-$RANDOM
35673 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000035674} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000035675ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000035676
35677# Set up the scripts for CONFIG_FILES section.
35678# No need to generate them if there are no CONFIG_FILES.
35679# This happens for instance with `./config.status config.h'.
35680if test -n "$CONFIG_FILES"; then
35681
35682
cristy8b350f62009-11-15 23:12:43 +000035683ac_cr=`echo X | tr X '\015'`
35684# On cygwin, bash can eat \r inside `` if the user requested igncr.
35685# But we know of no other shell where ac_cr would be empty at this
35686# point, so we can use a bashism as a fallback.
35687if test "x$ac_cr" = x; then
35688 eval ac_cr=\$\'\\r\'
35689fi
cristy3ed852e2009-09-05 21:47:34 +000035690ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35691if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000035692 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000035693else
35694 ac_cs_awk_cr=$ac_cr
35695fi
35696
cristyda16f162011-02-19 23:52:17 +000035697echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000035698_ACEOF
35699
35700
35701{
35702 echo "cat >conf$$subs.awk <<_ACEOF" &&
35703 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35704 echo "_ACEOF"
35705} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000035706 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35707ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000035708ac_delim='%!_!# '
35709for ac_last_try in false false false false false :; do
35710 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000035711 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035712
35713 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
35714 if test $ac_delim_n = $ac_delim_num; then
35715 break
35716 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000035717 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035718 else
35719 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35720 fi
35721done
35722rm -f conf$$subs.sh
35723
35724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000035725cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000035726_ACEOF
35727sed -n '
35728h
35729s/^/S["/; s/!.*/"]=/
35730p
35731g
35732s/^[^!]*!//
35733:repl
35734t repl
35735s/'"$ac_delim"'$//
35736t delim
35737:nl
35738h
cristycd4c5312009-11-22 01:19:08 +000035739s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000035740t more1
35741s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35742p
35743n
35744b repl
35745:more1
35746s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35747p
35748g
35749s/.\{148\}//
35750t nl
35751:delim
35752h
cristycd4c5312009-11-22 01:19:08 +000035753s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000035754t more2
35755s/["\\]/\\&/g; s/^/"/; s/$/"/
35756p
35757b
35758:more2
35759s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35760p
35761g
35762s/.\{148\}//
35763t delim
35764' <conf$$subs.awk | sed '
35765/^[^""]/{
35766 N
35767 s/\n//
35768}
35769' >>$CONFIG_STATUS || ac_write_fail=1
35770rm -f conf$$subs.awk
35771cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35772_ACAWK
cristyda16f162011-02-19 23:52:17 +000035773cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000035774 for (key in S) S_is_set[key] = 1
35775 FS = ""
35776
35777}
35778{
35779 line = $ 0
35780 nfields = split(line, field, "@")
35781 substed = 0
35782 len = length(field[1])
35783 for (i = 2; i < nfields; i++) {
35784 key = field[i]
35785 keylen = length(key)
35786 if (S_is_set[key]) {
35787 value = S[key]
35788 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35789 len += length(value) + length(field[++i])
35790 substed = 1
35791 } else
35792 len += 1 + keylen
35793 }
35794
35795 print line
35796}
35797
35798_ACAWK
35799_ACEOF
35800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35801if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35802 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35803else
35804 cat
cristyda16f162011-02-19 23:52:17 +000035805fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000035806 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035807_ACEOF
35808
cristy98dddb52010-11-04 00:30:15 +000035809# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35810# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000035811# trailing colons and then remove the whole line if VPATH becomes empty
35812# (actually we leave an empty line to preserve line numbers).
35813if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000035814 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35815h
35816s///
35817s/^/:/
35818s/[ ]*$/:/
35819s/:\$(srcdir):/:/g
35820s/:\${srcdir}:/:/g
35821s/:@srcdir@:/:/g
35822s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000035823s/:*$//
cristy98dddb52010-11-04 00:30:15 +000035824x
35825s/\(=[ ]*\).*/\1/
35826G
35827s/\n//
cristy3ed852e2009-09-05 21:47:34 +000035828s/^[^=]*=[ ]*$//
35829}'
35830fi
35831
35832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35833fi # test -n "$CONFIG_FILES"
35834
35835# Set up the scripts for CONFIG_HEADERS section.
35836# No need to generate them if there are no CONFIG_HEADERS.
35837# This happens for instance with `./config.status Makefile'.
35838if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000035839cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000035840BEGIN {
35841_ACEOF
35842
35843# Transform confdefs.h into an awk script `defines.awk', embedded as
35844# here-document in config.status, that substitutes the proper values into
35845# config.h.in to produce config.h.
35846
35847# Create a delimiter string that does not exist in confdefs.h, to ease
35848# handling of long lines.
35849ac_delim='%!_!# '
35850for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000035851 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35852 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000035853 break
35854 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000035855 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035856 else
35857 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35858 fi
35859done
35860
35861# For the awk script, D is an array of macro values keyed by name,
35862# likewise P contains macro parameters if any. Preserve backslash
35863# newline sequences.
35864
35865ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35866sed -n '
35867s/.\{148\}/&'"$ac_delim"'/g
35868t rset
35869:rset
35870s/^[ ]*#[ ]*define[ ][ ]*/ /
35871t def
35872d
35873:def
35874s/\\$//
35875t bsnl
35876s/["\\]/\\&/g
35877s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35878D["\1"]=" \3"/p
35879s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
35880d
35881:bsnl
35882s/["\\]/\\&/g
35883s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35884D["\1"]=" \3\\\\\\n"\\/p
35885t cont
35886s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35887t cont
35888d
35889:cont
35890n
35891s/.\{148\}/&'"$ac_delim"'/g
35892t clear
35893:clear
35894s/\\$//
35895t bsnlc
35896s/["\\]/\\&/g; s/^/"/; s/$/"/p
35897d
35898:bsnlc
35899s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35900b cont
35901' <confdefs.h | sed '
35902s/'"$ac_delim"'/"\\\
35903"/g' >>$CONFIG_STATUS || ac_write_fail=1
35904
35905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35906 for (key in D) D_is_set[key] = 1
35907 FS = ""
35908}
35909/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35910 line = \$ 0
35911 split(line, arg, " ")
35912 if (arg[1] == "#") {
35913 defundef = arg[2]
35914 mac1 = arg[3]
35915 } else {
35916 defundef = substr(arg[1], 2)
35917 mac1 = arg[2]
35918 }
35919 split(mac1, mac2, "(") #)
35920 macro = mac2[1]
35921 prefix = substr(line, 1, index(line, defundef) - 1)
35922 if (D_is_set[macro]) {
35923 # Preserve the white space surrounding the "#".
35924 print prefix "define", macro P[macro] D[macro]
35925 next
35926 } else {
35927 # Replace #undef with comments. This is necessary, for example,
35928 # in the case of _POSIX_SOURCE, which is predefined and required
35929 # on some systems where configure will not decide to define it.
35930 if (defundef == "undef") {
35931 print "/*", prefix defundef, macro, "*/"
35932 next
35933 }
35934 }
35935}
35936{ print }
35937_ACAWK
35938_ACEOF
35939cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000035940 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035941fi # test -n "$CONFIG_HEADERS"
35942
35943
35944eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
35945shift
35946for ac_tag
35947do
35948 case $ac_tag in
35949 :[FHLC]) ac_mode=$ac_tag; continue;;
35950 esac
35951 case $ac_mode$ac_tag in
35952 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000035953 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035954 :[FH]-) ac_tag=-:-;;
35955 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35956 esac
35957 ac_save_IFS=$IFS
35958 IFS=:
35959 set x $ac_tag
35960 IFS=$ac_save_IFS
35961 shift
35962 ac_file=$1
35963 shift
35964
35965 case $ac_mode in
35966 :L) ac_source=$1;;
35967 :[FH])
35968 ac_file_inputs=
35969 for ac_f
35970 do
35971 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000035972 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000035973 *) # Look for the file first in the build tree, then in the source tree
35974 # (if the path is not absolute). The absolute path cannot be DOS-style,
35975 # because $ac_f cannot contain `:'.
35976 test -f "$ac_f" ||
35977 case $ac_f in
35978 [\\/$]*) false;;
35979 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35980 esac ||
cristy98dddb52010-11-04 00:30:15 +000035981 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035982 esac
35983 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000035984 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000035985 done
35986
35987 # Let's still pretend it is `configure' which instantiates (i.e., don't
35988 # use $as_me), people would be surprised to read:
35989 # /* config.h. Generated by config.status. */
35990 configure_input='Generated from '`
35991 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35992 `' by configure.'
35993 if test x"$ac_file" != x-; then
35994 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000035995 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035996$as_echo "$as_me: creating $ac_file" >&6;}
35997 fi
35998 # Neutralize special characters interpreted by sed in replacement strings.
35999 case $configure_input in #(
36000 *\&* | *\|* | *\\* )
36001 ac_sed_conf_input=`$as_echo "$configure_input" |
36002 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36003 *) ac_sed_conf_input=$configure_input;;
36004 esac
36005
36006 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000036007 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000036008 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000036009 esac
36010 ;;
36011 esac
36012
36013 ac_dir=`$as_dirname -- "$ac_file" ||
36014$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36015 X"$ac_file" : 'X\(//\)[^/]' \| \
36016 X"$ac_file" : 'X\(//\)$' \| \
36017 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36018$as_echo X"$ac_file" |
36019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36020 s//\1/
36021 q
36022 }
36023 /^X\(\/\/\)[^/].*/{
36024 s//\1/
36025 q
36026 }
36027 /^X\(\/\/\)$/{
36028 s//\1/
36029 q
36030 }
36031 /^X\(\/\).*/{
36032 s//\1/
36033 q
36034 }
36035 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000036036 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036037 ac_builddir=.
36038
36039case "$ac_dir" in
36040.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36041*)
36042 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36043 # A ".." for each directory in $ac_dir_suffix.
36044 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36045 case $ac_top_builddir_sub in
36046 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36047 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36048 esac ;;
36049esac
36050ac_abs_top_builddir=$ac_pwd
36051ac_abs_builddir=$ac_pwd$ac_dir_suffix
36052# for backward compatibility:
36053ac_top_builddir=$ac_top_build_prefix
36054
36055case $srcdir in
36056 .) # We are building in place.
36057 ac_srcdir=.
36058 ac_top_srcdir=$ac_top_builddir_sub
36059 ac_abs_top_srcdir=$ac_pwd ;;
36060 [\\/]* | ?:[\\/]* ) # Absolute name.
36061 ac_srcdir=$srcdir$ac_dir_suffix;
36062 ac_top_srcdir=$srcdir
36063 ac_abs_top_srcdir=$srcdir ;;
36064 *) # Relative name.
36065 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36066 ac_top_srcdir=$ac_top_build_prefix$srcdir
36067 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36068esac
36069ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36070
36071
36072 case $ac_mode in
36073 :F)
36074 #
36075 # CONFIG_FILE
36076 #
36077
36078 case $INSTALL in
36079 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36080 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36081 esac
cristy73bd4a52010-10-05 11:24:23 +000036082 ac_MKDIR_P=$MKDIR_P
36083 case $MKDIR_P in
36084 [\\/$]* | ?:[\\/]* ) ;;
36085 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36086 esac
cristy3ed852e2009-09-05 21:47:34 +000036087_ACEOF
36088
36089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36090# If the template does not know about datarootdir, expand it.
36091# FIXME: This hack should be removed a few years after 2.60.
36092ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000036093ac_sed_dataroot='
36094/datarootdir/ {
36095 p
36096 q
36097}
36098/@datadir@/p
36099/@docdir@/p
36100/@infodir@/p
36101/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000036102/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000036103case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36104*datarootdir*) ac_datarootdir_seen=yes;;
36105*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000036106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000036107$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36108_ACEOF
36109cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36110 ac_datarootdir_hack='
36111 s&@datadir@&$datadir&g
36112 s&@docdir@&$docdir&g
36113 s&@infodir@&$infodir&g
36114 s&@localedir@&$localedir&g
36115 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000036116 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000036117esac
36118_ACEOF
36119
36120# Neutralize VPATH when `$srcdir' = `.'.
36121# Shell code in configure.ac might set extrasub.
36122# FIXME: do we really want to maintain this feature?
36123cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36124ac_sed_extra="$ac_vpsub
36125$extrasub
36126_ACEOF
36127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36128:t
36129/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36130s|@configure_input@|$ac_sed_conf_input|;t t
36131s&@top_builddir@&$ac_top_builddir_sub&;t t
36132s&@top_build_prefix@&$ac_top_build_prefix&;t t
36133s&@srcdir@&$ac_srcdir&;t t
36134s&@abs_srcdir@&$ac_abs_srcdir&;t t
36135s&@top_srcdir@&$ac_top_srcdir&;t t
36136s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36137s&@builddir@&$ac_builddir&;t t
36138s&@abs_builddir@&$ac_abs_builddir&;t t
36139s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36140s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000036141s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000036142$ac_datarootdir_hack
36143"
cristyda16f162011-02-19 23:52:17 +000036144eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36145 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036146
36147test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000036148 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36149 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36150 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000036151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036152which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000036153$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036154which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000036155
cristyda16f162011-02-19 23:52:17 +000036156 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000036157 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000036158 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36159 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000036160 esac \
cristy98dddb52010-11-04 00:30:15 +000036161 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036162 ;;
36163 :H)
36164 #
36165 # CONFIG_HEADER
36166 #
36167 if test x"$ac_file" != x-; then
36168 {
36169 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036170 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36171 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000036172 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036173 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000036174 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000036175$as_echo "$as_me: $ac_file is unchanged" >&6;}
36176 else
36177 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000036178 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000036179 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036180 fi
36181 else
36182 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036183 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000036184 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036185 fi
cristy73bd4a52010-10-05 11:24:23 +000036186# Compute "$ac_file"'s index in $config_headers.
36187_am_arg="$ac_file"
36188_am_stamp_count=1
36189for _am_header in $config_headers :; do
36190 case $_am_header in
36191 $_am_arg | $_am_arg:* )
36192 break ;;
36193 * )
36194 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36195 esac
36196done
36197echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
36198$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36199 X"$_am_arg" : 'X\(//\)[^/]' \| \
36200 X"$_am_arg" : 'X\(//\)$' \| \
36201 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
36202$as_echo X"$_am_arg" |
36203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36204 s//\1/
36205 q
36206 }
36207 /^X\(\/\/\)[^/].*/{
36208 s//\1/
36209 q
36210 }
36211 /^X\(\/\/\)$/{
36212 s//\1/
36213 q
36214 }
36215 /^X\(\/\).*/{
36216 s//\1/
36217 q
36218 }
36219 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000036220 ;;
36221
cristy8b350f62009-11-15 23:12:43 +000036222 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000036223$as_echo "$as_me: executing $ac_file commands" >&6;}
36224 ;;
36225 esac
36226
36227
36228 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000036229 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000036230ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
36231ac_prefix_conf_PKG=`echo MagickCore`
36232ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
36233ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
36234ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
36235if test ".$ac_prefix_conf_INP" = "."; then
36236 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
36237 case "$ac_file" in
36238 *.h) ac_prefix_conf_INP=$ac_file ;;
36239 *)
36240 esac
36241 test ".$ac_prefix_conf_INP" != "." && break
36242 done
36243fi
36244if test ".$ac_prefix_conf_INP" = "."; then
36245 case "$ac_prefix_conf_OUT" in
36246 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
36247 ;;
36248 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
36249 ;;
36250 *) ac_prefix_conf_INP=config.h
36251 ;;
36252 esac
36253fi
36254if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000036255 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000036256else
36257 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
36258 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
36259 fi fi
36260 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
36261$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
36262 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000036263 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
36264 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
36265 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
36266 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
36267 $as_echo "#endif/" >> conftest.prefix
36268 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
36269 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
36270 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000036271 # now executing _script on _DEF input to create _OUT output file
36272 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
36273 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
36274 echo ' ' >>$tmp/pconfig.h
36275 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
36276
36277 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
36278 echo ' ' >>$tmp/pconfig.h
36279 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
36280 echo "#endif" >>$tmp/pconfig.h
36281 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
36282 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
36283$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
36284 else
36285 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
36286$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36287 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
36288 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
36289 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
36290$as_echo X"$ac_prefix_conf_OUT" |
36291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36292 s//\1/
36293 q
36294 }
36295 /^X\(\/\/\)[^/].*/{
36296 s//\1/
36297 q
36298 }
36299 /^X\(\/\/\)$/{
36300 s//\1/
36301 q
36302 }
36303 /^X\(\/\).*/{
36304 s//\1/
36305 q
36306 }
36307 s/.*/./; q'`
36308 as_dir="$ac_dir"; as_fn_mkdir_p
36309 rm -f "$ac_prefix_conf_OUT"
36310 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
36311 fi
36312 cp conftest.prefix _configs.sed
36313 else
cristy98dddb52010-11-04 00:30:15 +000036314 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 +000036315 fi
36316 rm -f conftest.*
36317fi
36318 ;;
36319 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
36320 # Autoconf 2.62 quotes --file arguments for eval, but not when files
36321 # are listed without --file. Let's play safe and only enable the eval
36322 # if we detect the quoting.
36323 case $CONFIG_FILES in
36324 *\'*) eval set x "$CONFIG_FILES" ;;
36325 *) set x $CONFIG_FILES ;;
36326 esac
36327 shift
36328 for mf
36329 do
36330 # Strip MF so we end up with the name of the file.
36331 mf=`echo "$mf" | sed -e 's/:.*$//'`
36332 # Check whether this is an Automake generated Makefile or not.
36333 # We used to match only the files named `Makefile.in', but
36334 # some people rename them; so instead we look at the file content.
36335 # Grep'ing the first line is not enough: some people post-process
36336 # each Makefile.in and add a new line on top of each file to say so.
36337 # Grep'ing the whole file is not good either: AIX grep has a line
36338 # limit of 2048, but all sed's we know have understand at least 4000.
36339 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
36340 dirpart=`$as_dirname -- "$mf" ||
36341$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36342 X"$mf" : 'X\(//\)[^/]' \| \
36343 X"$mf" : 'X\(//\)$' \| \
36344 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
36345$as_echo X"$mf" |
36346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36347 s//\1/
36348 q
36349 }
36350 /^X\(\/\/\)[^/].*/{
36351 s//\1/
36352 q
36353 }
36354 /^X\(\/\/\)$/{
36355 s//\1/
36356 q
36357 }
36358 /^X\(\/\).*/{
36359 s//\1/
36360 q
36361 }
36362 s/.*/./; q'`
36363 else
36364 continue
36365 fi
36366 # Extract the definition of DEPDIR, am__include, and am__quote
36367 # from the Makefile without running `make'.
36368 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
36369 test -z "$DEPDIR" && continue
36370 am__include=`sed -n 's/^am__include = //p' < "$mf"`
36371 test -z "am__include" && continue
36372 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
36373 # When using ansi2knr, U may be empty or an underscore; expand it
36374 U=`sed -n 's/^U = //p' < "$mf"`
36375 # Find all dependency output files, they are included files with
36376 # $(DEPDIR) in their names. We invoke sed twice because it is the
36377 # simplest approach to changing $(DEPDIR) to its actual value in the
36378 # expansion.
36379 for file in `sed -n "
36380 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
36381 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
36382 # Make sure the directory exists.
36383 test -f "$dirpart/$file" && continue
36384 fdir=`$as_dirname -- "$file" ||
36385$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36386 X"$file" : 'X\(//\)[^/]' \| \
36387 X"$file" : 'X\(//\)$' \| \
36388 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
36389$as_echo X"$file" |
36390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36391 s//\1/
36392 q
36393 }
36394 /^X\(\/\/\)[^/].*/{
36395 s//\1/
36396 q
36397 }
36398 /^X\(\/\/\)$/{
36399 s//\1/
36400 q
36401 }
36402 /^X\(\/\).*/{
36403 s//\1/
36404 q
36405 }
36406 s/.*/./; q'`
36407 as_dir=$dirpart/$fdir; as_fn_mkdir_p
36408 # echo "creating $dirpart/$file"
36409 echo '# dummy' > "$dirpart/$file"
36410 done
36411 done
36412}
36413 ;;
36414 "libtool":C)
36415
36416 # See if we are running on zsh, and set the options which allow our
36417 # commands through without removal of \ escapes.
36418 if test -n "${ZSH_VERSION+set}" ; then
36419 setopt NO_GLOB_SUBST
36420 fi
36421
36422 cfgfile="${ofile}T"
36423 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
36424 $RM "$cfgfile"
36425
36426 cat <<_LT_EOF >> "$cfgfile"
36427#! $SHELL
36428
36429# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
36430# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
36431# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
36432# NOTE: Changes made to this file will be lost: look at ltmain.sh.
36433#
36434# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy0c60a692010-11-04 01:09:47 +000036435# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
36436# Inc.
cristy73bd4a52010-10-05 11:24:23 +000036437# Written by Gordon Matzigkeit, 1996
36438#
36439# This file is part of GNU Libtool.
36440#
36441# GNU Libtool is free software; you can redistribute it and/or
36442# modify it under the terms of the GNU General Public License as
36443# published by the Free Software Foundation; either version 2 of
36444# the License, or (at your option) any later version.
36445#
36446# As a special exception to the GNU General Public License,
36447# if you distribute this file as part of a program or library that
36448# is built using GNU Libtool, you may include this file under the
36449# same distribution terms that you use for the rest of that program.
36450#
36451# GNU Libtool is distributed in the hope that it will be useful,
36452# but WITHOUT ANY WARRANTY; without even the implied warranty of
36453# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36454# GNU General Public License for more details.
36455#
36456# You should have received a copy of the GNU General Public License
36457# along with GNU Libtool; see the file COPYING. If not, a copy
36458# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
36459# obtained by writing to the Free Software Foundation, Inc.,
36460# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
36461
36462
36463# The names of the tagged configurations supported by this script.
36464available_tags="CXX "
36465
36466# ### BEGIN LIBTOOL CONFIG
36467
36468# A sed program that does not truncate output.
36469SED=$lt_SED
36470
36471# Sed that helps us avoid accidentally triggering echo(1) options like -n.
36472Xsed="\$SED -e 1s/^X//"
36473
36474# A grep program that handles long lines.
36475GREP=$lt_GREP
36476
36477# An ERE matcher.
36478EGREP=$lt_EGREP
36479
36480# A literal string matcher.
36481FGREP=$lt_FGREP
36482
cristy0c60a692010-11-04 01:09:47 +000036483# Shell to use when invoking shell scripts.
36484SHELL=$lt_SHELL
36485
36486# An echo program that protects backslashes.
36487ECHO=$lt_ECHO
36488
cristy73bd4a52010-10-05 11:24:23 +000036489# Which release of libtool.m4 was used?
36490macro_version=$macro_version
36491macro_revision=$macro_revision
36492
36493# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000036494AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000036495
36496# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000036497DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000036498
36499# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000036500OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000036501
36502# Whether or not to build shared libraries.
36503build_libtool_libs=$enable_shared
36504
36505# Whether or not to build static libraries.
36506build_old_libs=$enable_static
36507
36508# What type of objects to build.
36509pic_mode=$pic_mode
36510
36511# Whether or not to optimize for fast installation.
36512fast_install=$enable_fast_install
36513
36514# The host system.
36515host_alias=$host_alias
36516host=$host
36517host_os=$host_os
36518
36519# The build system.
36520build_alias=$build_alias
36521build=$build
36522build_os=$build_os
36523
36524# A BSD- or MS-compatible name lister.
36525NM=$lt_NM
36526
36527# Whether we need soft or hard links.
36528LN_S=$lt_LN_S
36529
36530# What is the maximum length of a command?
36531max_cmd_len=$max_cmd_len
36532
36533# Object file suffix (normally "o").
36534objext=$ac_objext
36535
36536# Executable file suffix (normally "").
36537exeext=$exeext
36538
36539# whether the shell understands "unset".
36540lt_unset=$lt_unset
36541
36542# turn spaces into newlines.
36543SP2NL=$lt_lt_SP2NL
36544
36545# turn newlines into spaces.
36546NL2SP=$lt_lt_NL2SP
36547
cristyda16f162011-02-19 23:52:17 +000036548# convert \$build file names to \$host format.
36549to_host_file_cmd=$lt_cv_to_host_file_cmd
36550
36551# convert \$build files to toolchain format.
36552to_tool_file_cmd=$lt_cv_to_tool_file_cmd
36553
cristy73bd4a52010-10-05 11:24:23 +000036554# Method to check whether dependent libraries are shared objects.
36555deplibs_check_method=$lt_deplibs_check_method
36556
cristyda16f162011-02-19 23:52:17 +000036557# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000036558file_magic_cmd=$lt_file_magic_cmd
36559
cristyda16f162011-02-19 23:52:17 +000036560# How to find potential files when deplibs_check_method = "file_magic".
36561file_magic_glob=$lt_file_magic_glob
36562
36563# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
36564want_nocaseglob=$lt_want_nocaseglob
36565
36566# Command to associate shared and link libraries.
36567sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
36568
cristy73bd4a52010-10-05 11:24:23 +000036569# The archiver.
36570AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000036571
36572# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000036573AR_FLAGS=$lt_AR_FLAGS
36574
cristyda16f162011-02-19 23:52:17 +000036575# How to feed a file listing to the archiver.
36576archiver_list_spec=$lt_archiver_list_spec
36577
cristy73bd4a52010-10-05 11:24:23 +000036578# A symbol stripping program.
36579STRIP=$lt_STRIP
36580
36581# Commands used to install an old-style archive.
36582RANLIB=$lt_RANLIB
36583old_postinstall_cmds=$lt_old_postinstall_cmds
36584old_postuninstall_cmds=$lt_old_postuninstall_cmds
36585
cristy0c60a692010-11-04 01:09:47 +000036586# Whether to use a lock for old archive extraction.
36587lock_old_archive_extraction=$lock_old_archive_extraction
36588
cristy73bd4a52010-10-05 11:24:23 +000036589# A C compiler.
36590LTCC=$lt_CC
36591
36592# LTCC compiler flags.
36593LTCFLAGS=$lt_CFLAGS
36594
36595# Take the output of nm and produce a listing of raw symbols and C names.
36596global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
36597
36598# Transform the output of nm in a proper C declaration.
36599global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
36600
36601# Transform the output of nm in a C name address pair.
36602global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
36603
36604# Transform the output of nm in a C name address pair when lib prefix is needed.
36605global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
36606
cristyda16f162011-02-19 23:52:17 +000036607# Specify filename containing input files for \$NM.
36608nm_file_list_spec=$lt_nm_file_list_spec
36609
36610# The root where to search for dependent libraries,and in which our libraries should be installed.
36611lt_sysroot=$lt_sysroot
36612
cristy73bd4a52010-10-05 11:24:23 +000036613# The name of the directory that contains temporary libtool files.
36614objdir=$objdir
36615
cristy73bd4a52010-10-05 11:24:23 +000036616# Used to examine libraries when file_magic_cmd begins with "file".
36617MAGIC_CMD=$MAGIC_CMD
36618
36619# Must we lock files when doing compilation?
36620need_locks=$lt_need_locks
36621
cristyda16f162011-02-19 23:52:17 +000036622# Manifest tool.
36623MANIFEST_TOOL=$lt_MANIFEST_TOOL
36624
cristy73bd4a52010-10-05 11:24:23 +000036625# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
36626DSYMUTIL=$lt_DSYMUTIL
36627
36628# Tool to change global to local symbols on Mac OS X.
36629NMEDIT=$lt_NMEDIT
36630
36631# Tool to manipulate fat objects and archives on Mac OS X.
36632LIPO=$lt_LIPO
36633
36634# ldd/readelf like tool for Mach-O binaries on Mac OS X.
36635OTOOL=$lt_OTOOL
36636
36637# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
36638OTOOL64=$lt_OTOOL64
36639
36640# Old archive suffix (normally "a").
36641libext=$libext
36642
36643# Shared library suffix (normally ".so").
36644shrext_cmds=$lt_shrext_cmds
36645
36646# The commands to extract the exported symbol list from a shared archive.
36647extract_expsyms_cmds=$lt_extract_expsyms_cmds
36648
36649# Variables whose values should be saved in libtool wrapper scripts and
36650# restored at link time.
36651variables_saved_for_relink=$lt_variables_saved_for_relink
36652
36653# Do we need the "lib" prefix for modules?
36654need_lib_prefix=$need_lib_prefix
36655
36656# Do we need a version for libraries?
36657need_version=$need_version
36658
36659# Library versioning type.
36660version_type=$version_type
36661
36662# Shared library runtime path variable.
36663runpath_var=$runpath_var
36664
36665# Shared library path variable.
36666shlibpath_var=$shlibpath_var
36667
36668# Is shlibpath searched before the hard-coded library search path?
36669shlibpath_overrides_runpath=$shlibpath_overrides_runpath
36670
36671# Format of library name prefix.
36672libname_spec=$lt_libname_spec
36673
36674# List of archive names. First name is the real one, the rest are links.
36675# The last name is the one that the linker finds with -lNAME
36676library_names_spec=$lt_library_names_spec
36677
36678# The coded name of the library, if different from the real name.
36679soname_spec=$lt_soname_spec
36680
cristy0c60a692010-11-04 01:09:47 +000036681# Permission mode override for installation of shared libraries.
36682install_override_mode=$lt_install_override_mode
36683
cristy73bd4a52010-10-05 11:24:23 +000036684# Command to use after installation of a shared archive.
36685postinstall_cmds=$lt_postinstall_cmds
36686
36687# Command to use after uninstallation of a shared archive.
36688postuninstall_cmds=$lt_postuninstall_cmds
36689
36690# Commands used to finish a libtool library installation in a directory.
36691finish_cmds=$lt_finish_cmds
36692
36693# As "finish_cmds", except a single script fragment to be evaled but
36694# not shown.
36695finish_eval=$lt_finish_eval
36696
36697# Whether we should hardcode library paths into libraries.
36698hardcode_into_libs=$hardcode_into_libs
36699
36700# Compile-time system search path for libraries.
36701sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
36702
36703# Run-time system search path for libraries.
36704sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
36705
36706# Whether dlopen is supported.
36707dlopen_support=$enable_dlopen
36708
36709# Whether dlopen of programs is supported.
36710dlopen_self=$enable_dlopen_self
36711
36712# Whether dlopen of statically linked programs is supported.
36713dlopen_self_static=$enable_dlopen_self_static
36714
36715# Commands to strip libraries.
36716old_striplib=$lt_old_striplib
36717striplib=$lt_striplib
36718
36719
36720# The linker used to build libraries.
36721LD=$lt_LD
36722
cristy0c60a692010-11-04 01:09:47 +000036723# How to create reloadable object files.
36724reload_flag=$lt_reload_flag
36725reload_cmds=$lt_reload_cmds
36726
cristy73bd4a52010-10-05 11:24:23 +000036727# Commands used to build an old-style archive.
36728old_archive_cmds=$lt_old_archive_cmds
36729
36730# A language specific compiler.
36731CC=$lt_compiler
36732
36733# Is the compiler the GNU compiler?
36734with_gcc=$GCC
36735
36736# Compiler flag to turn off builtin functions.
36737no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
36738
cristy73bd4a52010-10-05 11:24:23 +000036739# Additional compiler flags for building library objects.
36740pic_flag=$lt_lt_prog_compiler_pic
36741
cristyda16f162011-02-19 23:52:17 +000036742# How to pass a linker flag through the compiler.
36743wl=$lt_lt_prog_compiler_wl
36744
cristy73bd4a52010-10-05 11:24:23 +000036745# Compiler flag to prevent dynamic linking.
36746link_static_flag=$lt_lt_prog_compiler_static
36747
36748# Does compiler simultaneously support -c and -o options?
36749compiler_c_o=$lt_lt_cv_prog_compiler_c_o
36750
36751# Whether or not to add -lc for building shared libraries.
36752build_libtool_need_lc=$archive_cmds_need_lc
36753
36754# Whether or not to disallow shared libs when runtime libs are static.
36755allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
36756
36757# Compiler flag to allow reflexive dlopens.
36758export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
36759
36760# Compiler flag to generate shared objects directly from archives.
36761whole_archive_flag_spec=$lt_whole_archive_flag_spec
36762
36763# Whether the compiler copes with passing no objects directly.
36764compiler_needs_object=$lt_compiler_needs_object
36765
36766# Create an old-style archive from a shared archive.
36767old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
36768
36769# Create a temporary old-style archive to link instead of a shared archive.
36770old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
36771
36772# Commands used to build a shared archive.
36773archive_cmds=$lt_archive_cmds
36774archive_expsym_cmds=$lt_archive_expsym_cmds
36775
36776# Commands used to build a loadable module if different from building
36777# a shared archive.
36778module_cmds=$lt_module_cmds
36779module_expsym_cmds=$lt_module_expsym_cmds
36780
36781# Whether we are building with GNU ld or not.
36782with_gnu_ld=$lt_with_gnu_ld
36783
36784# Flag that allows shared libraries with undefined symbols to be built.
36785allow_undefined_flag=$lt_allow_undefined_flag
36786
36787# Flag that enforces no undefined symbols.
36788no_undefined_flag=$lt_no_undefined_flag
36789
36790# Flag to hardcode \$libdir into a binary during linking.
36791# This must work even if \$libdir does not exist
36792hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
36793
36794# If ld is used when linking, flag to hardcode \$libdir into a binary
36795# during linking. This must work even if \$libdir does not exist.
36796hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
36797
36798# Whether we need a single "-rpath" flag with a separated argument.
36799hardcode_libdir_separator=$lt_hardcode_libdir_separator
36800
36801# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36802# DIR into the resulting binary.
36803hardcode_direct=$hardcode_direct
36804
36805# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36806# DIR into the resulting binary and the resulting library dependency is
36807# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36808# library is relocated.
36809hardcode_direct_absolute=$hardcode_direct_absolute
36810
36811# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36812# into the resulting binary.
36813hardcode_minus_L=$hardcode_minus_L
36814
36815# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36816# into the resulting binary.
36817hardcode_shlibpath_var=$hardcode_shlibpath_var
36818
36819# Set to "yes" if building a shared library automatically hardcodes DIR
36820# into the library and all subsequent libraries and executables linked
36821# against it.
36822hardcode_automatic=$hardcode_automatic
36823
36824# Set to yes if linker adds runtime paths of dependent libraries
36825# to runtime path list.
36826inherit_rpath=$inherit_rpath
36827
36828# Whether libtool must link a program against all its dependency libraries.
36829link_all_deplibs=$link_all_deplibs
36830
cristy73bd4a52010-10-05 11:24:23 +000036831# Set to "yes" if exported symbols are required.
36832always_export_symbols=$always_export_symbols
36833
36834# The commands to list exported symbols.
36835export_symbols_cmds=$lt_export_symbols_cmds
36836
36837# Symbols that should not be listed in the preloaded symbols.
36838exclude_expsyms=$lt_exclude_expsyms
36839
36840# Symbols that must always be exported.
36841include_expsyms=$lt_include_expsyms
36842
36843# Commands necessary for linking programs (against libraries) with templates.
36844prelink_cmds=$lt_prelink_cmds
36845
cristyda16f162011-02-19 23:52:17 +000036846# Commands necessary for finishing linking programs.
36847postlink_cmds=$lt_postlink_cmds
36848
cristy73bd4a52010-10-05 11:24:23 +000036849# Specify filename containing input files.
36850file_list_spec=$lt_file_list_spec
36851
36852# How to hardcode a shared library path into an executable.
36853hardcode_action=$hardcode_action
36854
36855# The directories searched by this compiler when creating a shared library.
36856compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
36857
36858# Dependencies to place before and after the objects being linked to
36859# create a shared library.
36860predep_objects=$lt_predep_objects
36861postdep_objects=$lt_postdep_objects
36862predeps=$lt_predeps
36863postdeps=$lt_postdeps
36864
36865# The library search path used internally by the compiler when linking
36866# a shared library.
36867compiler_lib_search_path=$lt_compiler_lib_search_path
36868
36869# ### END LIBTOOL CONFIG
36870
36871_LT_EOF
36872
36873 case $host_os in
36874 aix3*)
36875 cat <<\_LT_EOF >> "$cfgfile"
36876# AIX sometimes has problems with the GCC collect2 program. For some
36877# reason, if we set the COLLECT_NAMES environment variable, the problems
36878# vanish in a puff of smoke.
36879if test "X${COLLECT_NAMES+set}" != Xset; then
36880 COLLECT_NAMES=
36881 export COLLECT_NAMES
36882fi
36883_LT_EOF
36884 ;;
36885 esac
36886
36887
36888ltmain="$ac_aux_dir/ltmain.sh"
36889
36890
36891 # We use sed instead of cat because bash on DJGPP gets confused if
36892 # if finds mixed CR/LF and LF-only lines. Since sed operates in
36893 # text mode, it properly converts lines to CR/LF. This bash problem
36894 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000036895 sed '$q' "$ltmain" >> "$cfgfile" \
36896 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000036897
cristyda16f162011-02-19 23:52:17 +000036898 if test x"$xsi_shell" = xyes; then
36899 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
36900func_dirname ()\
36901{\
36902\ case ${1} in\
36903\ */*) func_dirname_result="${1%/*}${2}" ;;\
36904\ * ) func_dirname_result="${3}" ;;\
36905\ esac\
36906} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
36907 && mv -f "$cfgfile.tmp" "$cfgfile" \
36908 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36909test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036910
36911
cristyda16f162011-02-19 23:52:17 +000036912 sed -e '/^func_basename ()$/,/^} # func_basename /c\
36913func_basename ()\
36914{\
36915\ func_basename_result="${1##*/}"\
36916} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
36917 && mv -f "$cfgfile.tmp" "$cfgfile" \
36918 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36919test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036920
36921
cristyda16f162011-02-19 23:52:17 +000036922 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
36923func_dirname_and_basename ()\
36924{\
36925\ case ${1} in\
36926\ */*) func_dirname_result="${1%/*}${2}" ;;\
36927\ * ) func_dirname_result="${3}" ;;\
36928\ esac\
36929\ func_basename_result="${1##*/}"\
36930} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
36931 && mv -f "$cfgfile.tmp" "$cfgfile" \
36932 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36933test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036934
cristyda16f162011-02-19 23:52:17 +000036935
36936 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
36937func_stripname ()\
36938{\
36939\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
36940\ # positional parameters, so assign one to ordinary parameter first.\
36941\ func_stripname_result=${3}\
36942\ func_stripname_result=${func_stripname_result#"${1}"}\
36943\ func_stripname_result=${func_stripname_result%"${2}"}\
36944} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
36945 && mv -f "$cfgfile.tmp" "$cfgfile" \
36946 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36947test 0 -eq $? || _lt_function_replace_fail=:
36948
36949
36950 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
36951func_split_long_opt ()\
36952{\
36953\ func_split_long_opt_name=${1%%=*}\
36954\ func_split_long_opt_arg=${1#*=}\
36955} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
36956 && mv -f "$cfgfile.tmp" "$cfgfile" \
36957 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36958test 0 -eq $? || _lt_function_replace_fail=:
36959
36960
36961 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
36962func_split_short_opt ()\
36963{\
36964\ func_split_short_opt_arg=${1#??}\
36965\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
36966} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
36967 && mv -f "$cfgfile.tmp" "$cfgfile" \
36968 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36969test 0 -eq $? || _lt_function_replace_fail=:
36970
36971
36972 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
36973func_lo2o ()\
36974{\
36975\ case ${1} in\
36976\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
36977\ *) func_lo2o_result=${1} ;;\
36978\ esac\
36979} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
36980 && mv -f "$cfgfile.tmp" "$cfgfile" \
36981 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36982test 0 -eq $? || _lt_function_replace_fail=:
36983
36984
36985 sed -e '/^func_xform ()$/,/^} # func_xform /c\
36986func_xform ()\
36987{\
36988 func_xform_result=${1%.*}.lo\
36989} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
36990 && mv -f "$cfgfile.tmp" "$cfgfile" \
36991 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36992test 0 -eq $? || _lt_function_replace_fail=:
36993
36994
36995 sed -e '/^func_arith ()$/,/^} # func_arith /c\
36996func_arith ()\
36997{\
36998 func_arith_result=$(( $* ))\
36999} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37000 && mv -f "$cfgfile.tmp" "$cfgfile" \
37001 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37002test 0 -eq $? || _lt_function_replace_fail=:
37003
37004
37005 sed -e '/^func_len ()$/,/^} # func_len /c\
37006func_len ()\
37007{\
37008 func_len_result=${#1}\
37009} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37010 && mv -f "$cfgfile.tmp" "$cfgfile" \
37011 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37012test 0 -eq $? || _lt_function_replace_fail=:
37013
37014fi
37015
37016if test x"$lt_shell_append" = xyes; then
37017 sed -e '/^func_append ()$/,/^} # func_append /c\
37018func_append ()\
37019{\
37020 eval "${1}+=\\${2}"\
37021} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37022 && mv -f "$cfgfile.tmp" "$cfgfile" \
37023 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37024test 0 -eq $? || _lt_function_replace_fail=:
37025
37026
37027 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37028func_append_quoted ()\
37029{\
37030\ func_quote_for_eval "${2}"\
37031\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37032} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37033 && mv -f "$cfgfile.tmp" "$cfgfile" \
37034 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37035test 0 -eq $? || _lt_function_replace_fail=:
37036
37037
37038 # Save a `func_append' function call where possible by direct use of '+='
37039 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37040 && mv -f "$cfgfile.tmp" "$cfgfile" \
37041 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37042 test 0 -eq $? || _lt_function_replace_fail=:
37043else
37044 # Save a `func_append' function call even when '+=' is not available
37045 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37046 && mv -f "$cfgfile.tmp" "$cfgfile" \
37047 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37048 test 0 -eq $? || _lt_function_replace_fail=:
37049fi
37050
37051if test x"$_lt_function_replace_fail" = x":"; then
37052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37053$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37054fi
37055
37056
37057 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000037058 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37059 chmod +x "$ofile"
37060
37061
37062 cat <<_LT_EOF >> "$ofile"
37063
37064# ### BEGIN LIBTOOL TAG CONFIG: CXX
37065
37066# The linker used to build libraries.
37067LD=$lt_LD_CXX
37068
cristy0c60a692010-11-04 01:09:47 +000037069# How to create reloadable object files.
37070reload_flag=$lt_reload_flag_CXX
37071reload_cmds=$lt_reload_cmds_CXX
37072
cristy73bd4a52010-10-05 11:24:23 +000037073# Commands used to build an old-style archive.
37074old_archive_cmds=$lt_old_archive_cmds_CXX
37075
37076# A language specific compiler.
37077CC=$lt_compiler_CXX
37078
37079# Is the compiler the GNU compiler?
37080with_gcc=$GCC_CXX
37081
37082# Compiler flag to turn off builtin functions.
37083no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37084
cristy73bd4a52010-10-05 11:24:23 +000037085# Additional compiler flags for building library objects.
37086pic_flag=$lt_lt_prog_compiler_pic_CXX
37087
cristyda16f162011-02-19 23:52:17 +000037088# How to pass a linker flag through the compiler.
37089wl=$lt_lt_prog_compiler_wl_CXX
37090
cristy73bd4a52010-10-05 11:24:23 +000037091# Compiler flag to prevent dynamic linking.
37092link_static_flag=$lt_lt_prog_compiler_static_CXX
37093
37094# Does compiler simultaneously support -c and -o options?
37095compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37096
37097# Whether or not to add -lc for building shared libraries.
37098build_libtool_need_lc=$archive_cmds_need_lc_CXX
37099
37100# Whether or not to disallow shared libs when runtime libs are static.
37101allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37102
37103# Compiler flag to allow reflexive dlopens.
37104export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37105
37106# Compiler flag to generate shared objects directly from archives.
37107whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37108
37109# Whether the compiler copes with passing no objects directly.
37110compiler_needs_object=$lt_compiler_needs_object_CXX
37111
37112# Create an old-style archive from a shared archive.
37113old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37114
37115# Create a temporary old-style archive to link instead of a shared archive.
37116old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37117
37118# Commands used to build a shared archive.
37119archive_cmds=$lt_archive_cmds_CXX
37120archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37121
37122# Commands used to build a loadable module if different from building
37123# a shared archive.
37124module_cmds=$lt_module_cmds_CXX
37125module_expsym_cmds=$lt_module_expsym_cmds_CXX
37126
37127# Whether we are building with GNU ld or not.
37128with_gnu_ld=$lt_with_gnu_ld_CXX
37129
37130# Flag that allows shared libraries with undefined symbols to be built.
37131allow_undefined_flag=$lt_allow_undefined_flag_CXX
37132
37133# Flag that enforces no undefined symbols.
37134no_undefined_flag=$lt_no_undefined_flag_CXX
37135
37136# Flag to hardcode \$libdir into a binary during linking.
37137# This must work even if \$libdir does not exist
37138hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37139
37140# If ld is used when linking, flag to hardcode \$libdir into a binary
37141# during linking. This must work even if \$libdir does not exist.
37142hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
37143
37144# Whether we need a single "-rpath" flag with a separated argument.
37145hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37146
37147# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37148# DIR into the resulting binary.
37149hardcode_direct=$hardcode_direct_CXX
37150
37151# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37152# DIR into the resulting binary and the resulting library dependency is
37153# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37154# library is relocated.
37155hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37156
37157# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37158# into the resulting binary.
37159hardcode_minus_L=$hardcode_minus_L_CXX
37160
37161# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37162# into the resulting binary.
37163hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37164
37165# Set to "yes" if building a shared library automatically hardcodes DIR
37166# into the library and all subsequent libraries and executables linked
37167# against it.
37168hardcode_automatic=$hardcode_automatic_CXX
37169
37170# Set to yes if linker adds runtime paths of dependent libraries
37171# to runtime path list.
37172inherit_rpath=$inherit_rpath_CXX
37173
37174# Whether libtool must link a program against all its dependency libraries.
37175link_all_deplibs=$link_all_deplibs_CXX
37176
cristy73bd4a52010-10-05 11:24:23 +000037177# Set to "yes" if exported symbols are required.
37178always_export_symbols=$always_export_symbols_CXX
37179
37180# The commands to list exported symbols.
37181export_symbols_cmds=$lt_export_symbols_cmds_CXX
37182
37183# Symbols that should not be listed in the preloaded symbols.
37184exclude_expsyms=$lt_exclude_expsyms_CXX
37185
37186# Symbols that must always be exported.
37187include_expsyms=$lt_include_expsyms_CXX
37188
37189# Commands necessary for linking programs (against libraries) with templates.
37190prelink_cmds=$lt_prelink_cmds_CXX
37191
cristyda16f162011-02-19 23:52:17 +000037192# Commands necessary for finishing linking programs.
37193postlink_cmds=$lt_postlink_cmds_CXX
37194
cristy73bd4a52010-10-05 11:24:23 +000037195# Specify filename containing input files.
37196file_list_spec=$lt_file_list_spec_CXX
37197
37198# How to hardcode a shared library path into an executable.
37199hardcode_action=$hardcode_action_CXX
37200
37201# The directories searched by this compiler when creating a shared library.
37202compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
37203
37204# Dependencies to place before and after the objects being linked to
37205# create a shared library.
37206predep_objects=$lt_predep_objects_CXX
37207postdep_objects=$lt_postdep_objects_CXX
37208predeps=$lt_predeps_CXX
37209postdeps=$lt_postdeps_CXX
37210
37211# The library search path used internally by the compiler when linking
37212# a shared library.
37213compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
37214
37215# ### END LIBTOOL TAG CONFIG: CXX
37216_LT_EOF
37217
37218 ;;
cristy4c08aed2011-07-01 19:47:50 +000037219 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
37220 "Magick-config.in":C) chmod +x MagickCore/Magick-config ;;
37221 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
37222 "Wand-config.in":C) chmod +x MagickWand/Wand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000037223 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
37224 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
37225
37226 esac
37227done # for ac_tag
37228
37229
cristy8b350f62009-11-15 23:12:43 +000037230as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000037231_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000037232ac_clean_files=$ac_clean_files_save
37233
37234test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000037235 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037236
37237
37238# configure is writing to config.log, and then calls config.status.
37239# config.status does its own redirection, appending to config.log.
37240# Unfortunately, on DOS this fails, as config.log is still kept open
37241# by configure, so config.status won't be able to write to it; its
37242# output is simply discarded. So we exec the FD to /dev/null,
37243# effectively closing config.log, so it can be properly (re)opened and
37244# appended to by config.status. When coming back to configure, we
37245# need to make the FD available again.
37246if test "$no_create" != yes; then
37247 ac_cs_success=:
37248 ac_config_status_args=
37249 test "$silent" = yes &&
37250 ac_config_status_args="$ac_config_status_args --quiet"
37251 exec 5>/dev/null
37252 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37253 exec 5>>config.log
37254 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37255 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000037256 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000037257fi
37258if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000037259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000037260$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
37261fi
37262
37263
37264rm -f magick-version
37265
cristy430a7312010-01-21 20:44:04 +000037266result_dejavu_font_dir='none'
37267if test "${dejavu_font_dir}x" != 'x'; then
37268 result_dejavu_font_dir=$dejavu_font_dir
37269fi
37270
cristy3ed852e2009-09-05 21:47:34 +000037271result_ghostscript_font_dir='none'
37272if test "${ghostscript_font_dir}x" != 'x'; then
37273 result_ghostscript_font_dir=$ghostscript_font_dir
37274fi
37275
37276result_windows_font_dir='none'
37277if test "${windows_font_dir}x" != 'x'; then
37278 result_windows_font_dir=${windows_font_dir}
37279fi
37280
cristy8b350f62009-11-15 23:12:43 +000037281{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000037282ImageMagick is configured as follows. Please verify that this configuration
37283matches your expectations.
37284
37285Host system type: $host
37286Build system type: $build
37287
37288 Option Value
37289-------------------------------------------------------------------------------
37290Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
37291Static libraries --enable-static=$enable_static $libtool_build_static_libs
37292Module support --with-modules=$with_modules $with_modules
37293GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
37294Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
37295High Dynamic Range Imagery
37296 --enable-hdri=$enable_hdri $enable_hdri
37297
37298Delegate Configuration:
37299BZLIB --with-bzlib=$with_bzlib $have_bzlib
37300Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000037301Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000037302DJVU --with-djvu=$with_djvu $have_djvu
37303DPS --with-dps=$with_dps $have_dps
37304FFTW --with-fftw=$with_fftw $have_fftw
37305FlashPIX --with-fpx=$with_fpx $have_fpx
37306FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
37307FreeType --with-freetype=$with_freetype $have_freetype
37308GhostPCL None $PCLDelegate ($PCLVersion)
37309GhostXPS None $XPSDelegate ($XPSVersion)
37310Ghostscript None $PSDelegate ($GSVersion)
37311Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
37312Ghostscript lib --with-gslib=$with_gslib $have_gslib
37313Graphviz --with-gvc=$with_gvc $have_gvc
37314JBIG --with-jbig=$with_jbig $have_jbig
37315JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
37316JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000037317LCMS v1 --with-lcms=$with_lcms $have_lcms
37318LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000037319LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000037320LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000037321Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
37322OpenEXR --with-openexr=$with_openexr $have_openexr
37323PERL --with-perl=$with_perl $have_perl
37324PNG --with-png=$with_png $have_png
37325RSVG --with-rsvg=$with_rsvg $have_rsvg
37326TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000037327WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000037328Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
37329WMF --with-wmf=$with_wmf $have_wmf
37330X11 --with-x=$with_x $have_x
37331XML --with-xml=$with_xml $have_xml
37332ZLIB --with-zlib=$with_zlib $have_zlib
37333
37334X11 Configuration:
37335 X_CFLAGS = $X_CFLAGS
37336 X_PRE_LIBS = $X_PRE_LIBS
37337 X_LIBS = $X_LIBS
37338 X_EXTRA_LIBS = $X_EXTRA_LIBS
37339
37340Options used to compile and link:
37341 PREFIX = $PREFIX_DIR
37342 EXEC-PREFIX = $EXEC_PREFIX_DIR
37343 VERSION = $PACKAGE_VERSION
37344 CC = $CC
37345 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000037346 CPPFLAGS = $MAGICK_CPPFLAGS
37347 PCFLAGS = $MAGICK_PCFLAGS
37348 DEFS = $DEFS
37349 LDFLAGS = $LDFLAGS
37350 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
37351 LIBS = $MAGICK_LIBS
37352 CXX = $CXX
37353 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000037354 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000037355" >&5
37356$as_echo "
37357ImageMagick is configured as follows. Please verify that this configuration
37358matches your expectations.
37359
37360Host system type: $host
37361Build system type: $build
37362
37363 Option Value
37364-------------------------------------------------------------------------------
37365Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
37366Static libraries --enable-static=$enable_static $libtool_build_static_libs
37367Module support --with-modules=$with_modules $with_modules
37368GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
37369Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
37370High Dynamic Range Imagery
37371 --enable-hdri=$enable_hdri $enable_hdri
37372
37373Delegate Configuration:
37374BZLIB --with-bzlib=$with_bzlib $have_bzlib
37375Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000037376Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000037377DJVU --with-djvu=$with_djvu $have_djvu
37378DPS --with-dps=$with_dps $have_dps
37379FFTW --with-fftw=$with_fftw $have_fftw
37380FlashPIX --with-fpx=$with_fpx $have_fpx
37381FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
37382FreeType --with-freetype=$with_freetype $have_freetype
37383GhostPCL None $PCLDelegate ($PCLVersion)
37384GhostXPS None $XPSDelegate ($XPSVersion)
37385Ghostscript None $PSDelegate ($GSVersion)
37386Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
37387Ghostscript lib --with-gslib=$with_gslib $have_gslib
37388Graphviz --with-gvc=$with_gvc $have_gvc
37389JBIG --with-jbig=$with_jbig $have_jbig
37390JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
37391JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000037392LCMS v1 --with-lcms=$with_lcms $have_lcms
37393LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000037394LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000037395LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000037396Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
37397OpenEXR --with-openexr=$with_openexr $have_openexr
37398PERL --with-perl=$with_perl $have_perl
37399PNG --with-png=$with_png $have_png
37400RSVG --with-rsvg=$with_rsvg $have_rsvg
37401TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000037402WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000037403Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
37404WMF --with-wmf=$with_wmf $have_wmf
37405X11 --with-x=$with_x $have_x
37406XML --with-xml=$with_xml $have_xml
37407ZLIB --with-zlib=$with_zlib $have_zlib
37408
37409X11 Configuration:
37410 X_CFLAGS = $X_CFLAGS
37411 X_PRE_LIBS = $X_PRE_LIBS
37412 X_LIBS = $X_LIBS
37413 X_EXTRA_LIBS = $X_EXTRA_LIBS
37414
37415Options used to compile and link:
37416 PREFIX = $PREFIX_DIR
37417 EXEC-PREFIX = $EXEC_PREFIX_DIR
37418 VERSION = $PACKAGE_VERSION
37419 CC = $CC
37420 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000037421 CPPFLAGS = $MAGICK_CPPFLAGS
37422 PCFLAGS = $MAGICK_PCFLAGS
37423 DEFS = $DEFS
37424 LDFLAGS = $LDFLAGS
37425 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
37426 LIBS = $MAGICK_LIBS
37427 CXX = $CXX
37428 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000037429 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000037430" >&6; }