blob: 425daf5914b70d16b7269c23e8d5e6cb0744a133 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy29eb34e2011-10-16 00:46:08 +00003# Generated by GNU Autoconf 2.68 for ImageMagick 7.0.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'
cristy09b53e12011-10-14 12:47:22 +0000576PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000577PACKAGE_VERSION='7.0.0-0'
578PACKAGE_STRING='ImageMagick 7.0.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
cristy81beccd2011-10-03 18:17:24 +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
cristy81beccd2011-10-03 18:17:24 +0000753PNG_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
cristy81beccd2011-10-03 18:17:24 +0000760LZMA_LIBS
cristyfbb0ef02010-12-19 02:32:11 +0000761LZMA_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
cristy81beccd2011-10-03 18:17:24 +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
cristy878c2f12011-08-19 00:25:19 +00001009PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001010MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001011MAGICK_LIBRARY_VERSION_INFO
1012MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001013MAGICK_LIBRARY_AGE
1014MAGICK_LIBRARY_REVISION
1015MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001016MAGICK_TARGET_OS
1017MAGICK_TARGET_VENDOR
1018MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001019target_os
1020target_vendor
1021target_cpu
1022target
1023host_os
1024host_vendor
1025host_cpu
1026host
1027build_os
1028build_vendor
1029build_cpu
1030build
1031CONFIGURE_ARGS
1032DISTCHECK_CONFIG_FLAGS
1033target_alias
1034host_alias
1035build_alias
1036LIBS
1037ECHO_T
1038ECHO_N
1039ECHO_C
1040DEFS
1041mandir
1042localedir
1043libdir
1044psdir
1045pdfdir
1046dvidir
1047htmldir
1048infodir
1049docdir
1050oldincludedir
1051includedir
1052localstatedir
1053sharedstatedir
1054sysconfdir
1055datadir
1056datarootdir
1057libexecdir
1058sbindir
1059bindir
1060program_transform_name
1061prefix
1062exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001063PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001064PACKAGE_BUGREPORT
1065PACKAGE_STRING
1066PACKAGE_VERSION
1067PACKAGE_TARNAME
1068PACKAGE_NAME
1069PATH_SEPARATOR
1070SHELL'
1071ac_subst_files=''
1072ac_user_opts='
1073enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001074enable_silent_rules
1075enable_dependency_tracking
1076with_gnu_ld
1077with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001078enable_bounds_checking
1079enable_osx_universal_binary
1080with_threads
1081enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001082enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001083enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001084enable_shared
1085enable_static
1086with_pic
1087enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001088with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001089enable_libtool_lock
1090with_included_ltdl
1091with_ltdl_include
1092with_ltdl_lib
1093enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001094with_modules
1095enable_delegate_build
1096enable_deprecated
1097enable_installed
1098enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001099enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001100enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001101enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001102enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001103enable_ccmalloc
1104enable_efence
1105enable_prof
1106enable_gprof
1107enable_gcov
1108with_method_prefix
1109with_quantum_depth
1110with_cache
1111with_frozenpaths
1112with_magick_plus_plus
1113with_perl
1114with_perl_options
1115with_umem
1116with_libstdc
1117with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001118with_x
cristy3ed852e2009-09-05 21:47:34 +00001119with_zlib
1120with_autotrace
1121with_dps
1122with_djvu
cristy430a7312010-01-21 20:44:04 +00001123with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001124with_fftw
1125with_fpx
1126with_fontconfig
1127with_freetype
1128with_gslib
1129with_fontpath
1130with_gs_font_dir
1131with_gvc
1132with_jbig
1133with_jpeg
1134with_jp2
1135with_lcms
cristy71203402010-06-18 13:12:03 +00001136with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001137with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001138with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001139with_openexr
1140with_png
1141with_rsvg
1142with_tiff
cristyb1860752011-03-14 00:27:46 +00001143with_webp
cristy3ed852e2009-09-05 21:47:34 +00001144with_windows_font_dir
1145with_wmf
1146with_xml
1147'
1148 ac_precious_vars='build_alias
1149host_alias
1150target_alias
1151CC
1152CFLAGS
1153LDFLAGS
1154LIBS
1155CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001156CPP
cristy3ed852e2009-09-05 21:47:34 +00001157CXX
1158CXXFLAGS
1159CCC
cristy73bd4a52010-10-05 11:24:23 +00001160PKG_CONFIG
1161CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001162XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001163AUTOTRACE_CFLAGS
1164AUTOTRACE_LIBS
1165FONTCONFIG_CFLAGS
1166FONTCONFIG_LIBS
1167GVC_CFLAGS
1168GVC_LIBS
1169LQR_CFLAGS
1170LQR_LIBS
1171OPENEXR_CFLAGS
1172OPENEXR_LIBS
1173RSVG_CFLAGS
1174RSVG_LIBS
1175CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001176CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001177
1178
1179# Initialize some variables set by options.
1180ac_init_help=
1181ac_init_version=false
1182ac_unrecognized_opts=
1183ac_unrecognized_sep=
1184# The variables have the same names as the options, with
1185# dashes changed to underlines.
1186cache_file=/dev/null
1187exec_prefix=NONE
1188no_create=
1189no_recursion=
1190prefix=NONE
1191program_prefix=NONE
1192program_suffix=NONE
1193program_transform_name=s,x,x,
1194silent=
1195site=
1196srcdir=
1197verbose=
1198x_includes=NONE
1199x_libraries=NONE
1200
1201# Installation directory options.
1202# These are left unexpanded so users can "make install exec_prefix=/foo"
1203# and all the variables that are supposed to be based on exec_prefix
1204# by default will actually change.
1205# Use braces instead of parens because sh, perl, etc. also accept them.
1206# (The list follows the same order as the GNU Coding Standards.)
1207bindir='${exec_prefix}/bin'
1208sbindir='${exec_prefix}/sbin'
1209libexecdir='${exec_prefix}/libexec'
1210datarootdir='${prefix}/share'
1211datadir='${datarootdir}'
1212sysconfdir='${prefix}/etc'
1213sharedstatedir='${prefix}/com'
1214localstatedir='${prefix}/var'
1215includedir='${prefix}/include'
1216oldincludedir='/usr/include'
1217docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1218infodir='${datarootdir}/info'
1219htmldir='${docdir}'
1220dvidir='${docdir}'
1221pdfdir='${docdir}'
1222psdir='${docdir}'
1223libdir='${exec_prefix}/lib'
1224localedir='${datarootdir}/locale'
1225mandir='${datarootdir}/man'
1226
1227ac_prev=
1228ac_dashdash=
1229for ac_option
1230do
1231 # If the previous option needs an argument, assign it.
1232 if test -n "$ac_prev"; then
1233 eval $ac_prev=\$ac_option
1234 ac_prev=
1235 continue
1236 fi
1237
1238 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001239 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1240 *=) ac_optarg= ;;
1241 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001242 esac
1243
1244 # Accept the important Cygnus configure options, so we can diagnose typos.
1245
1246 case $ac_dashdash$ac_option in
1247 --)
1248 ac_dashdash=yes ;;
1249
1250 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1251 ac_prev=bindir ;;
1252 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1253 bindir=$ac_optarg ;;
1254
1255 -build | --build | --buil | --bui | --bu)
1256 ac_prev=build_alias ;;
1257 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1258 build_alias=$ac_optarg ;;
1259
1260 -cache-file | --cache-file | --cache-fil | --cache-fi \
1261 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1262 ac_prev=cache_file ;;
1263 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1264 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1265 cache_file=$ac_optarg ;;
1266
1267 --config-cache | -C)
1268 cache_file=config.cache ;;
1269
1270 -datadir | --datadir | --datadi | --datad)
1271 ac_prev=datadir ;;
1272 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1273 datadir=$ac_optarg ;;
1274
1275 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1276 | --dataroo | --dataro | --datar)
1277 ac_prev=datarootdir ;;
1278 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1279 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1280 datarootdir=$ac_optarg ;;
1281
1282 -disable-* | --disable-*)
1283 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001286 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1290 *"
1291"enable_$ac_useropt"
1292"*) ;;
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1295 esac
1296 eval enable_$ac_useropt=no ;;
1297
1298 -docdir | --docdir | --docdi | --doc | --do)
1299 ac_prev=docdir ;;
1300 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1301 docdir=$ac_optarg ;;
1302
1303 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1304 ac_prev=dvidir ;;
1305 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1306 dvidir=$ac_optarg ;;
1307
1308 -enable-* | --enable-*)
1309 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001312 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001313 ac_useropt_orig=$ac_useropt
1314 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1316 *"
1317"enable_$ac_useropt"
1318"*) ;;
1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
1321 esac
1322 eval enable_$ac_useropt=\$ac_optarg ;;
1323
1324 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1325 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1326 | --exec | --exe | --ex)
1327 ac_prev=exec_prefix ;;
1328 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1329 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1330 | --exec=* | --exe=* | --ex=*)
1331 exec_prefix=$ac_optarg ;;
1332
1333 -gas | --gas | --ga | --g)
1334 # Obsolete; use --with-gas.
1335 with_gas=yes ;;
1336
1337 -help | --help | --hel | --he | -h)
1338 ac_init_help=long ;;
1339 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1340 ac_init_help=recursive ;;
1341 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1342 ac_init_help=short ;;
1343
1344 -host | --host | --hos | --ho)
1345 ac_prev=host_alias ;;
1346 -host=* | --host=* | --hos=* | --ho=*)
1347 host_alias=$ac_optarg ;;
1348
1349 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1350 ac_prev=htmldir ;;
1351 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1352 | --ht=*)
1353 htmldir=$ac_optarg ;;
1354
1355 -includedir | --includedir | --includedi | --included | --include \
1356 | --includ | --inclu | --incl | --inc)
1357 ac_prev=includedir ;;
1358 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1359 | --includ=* | --inclu=* | --incl=* | --inc=*)
1360 includedir=$ac_optarg ;;
1361
1362 -infodir | --infodir | --infodi | --infod | --info | --inf)
1363 ac_prev=infodir ;;
1364 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1365 infodir=$ac_optarg ;;
1366
1367 -libdir | --libdir | --libdi | --libd)
1368 ac_prev=libdir ;;
1369 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1370 libdir=$ac_optarg ;;
1371
1372 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1373 | --libexe | --libex | --libe)
1374 ac_prev=libexecdir ;;
1375 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1376 | --libexe=* | --libex=* | --libe=*)
1377 libexecdir=$ac_optarg ;;
1378
1379 -localedir | --localedir | --localedi | --localed | --locale)
1380 ac_prev=localedir ;;
1381 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1382 localedir=$ac_optarg ;;
1383
1384 -localstatedir | --localstatedir | --localstatedi | --localstated \
1385 | --localstate | --localstat | --localsta | --localst | --locals)
1386 ac_prev=localstatedir ;;
1387 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1388 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1389 localstatedir=$ac_optarg ;;
1390
1391 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1392 ac_prev=mandir ;;
1393 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1394 mandir=$ac_optarg ;;
1395
1396 -nfp | --nfp | --nf)
1397 # Obsolete; use --without-fp.
1398 with_fp=no ;;
1399
1400 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1401 | --no-cr | --no-c | -n)
1402 no_create=yes ;;
1403
1404 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1405 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1406 no_recursion=yes ;;
1407
1408 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1409 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1410 | --oldin | --oldi | --old | --ol | --o)
1411 ac_prev=oldincludedir ;;
1412 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1413 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1414 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1415 oldincludedir=$ac_optarg ;;
1416
1417 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1418 ac_prev=prefix ;;
1419 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1420 prefix=$ac_optarg ;;
1421
1422 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1423 | --program-pre | --program-pr | --program-p)
1424 ac_prev=program_prefix ;;
1425 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1426 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1427 program_prefix=$ac_optarg ;;
1428
1429 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1430 | --program-suf | --program-su | --program-s)
1431 ac_prev=program_suffix ;;
1432 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1433 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1434 program_suffix=$ac_optarg ;;
1435
1436 -program-transform-name | --program-transform-name \
1437 | --program-transform-nam | --program-transform-na \
1438 | --program-transform-n | --program-transform- \
1439 | --program-transform | --program-transfor \
1440 | --program-transfo | --program-transf \
1441 | --program-trans | --program-tran \
1442 | --progr-tra | --program-tr | --program-t)
1443 ac_prev=program_transform_name ;;
1444 -program-transform-name=* | --program-transform-name=* \
1445 | --program-transform-nam=* | --program-transform-na=* \
1446 | --program-transform-n=* | --program-transform-=* \
1447 | --program-transform=* | --program-transfor=* \
1448 | --program-transfo=* | --program-transf=* \
1449 | --program-trans=* | --program-tran=* \
1450 | --progr-tra=* | --program-tr=* | --program-t=*)
1451 program_transform_name=$ac_optarg ;;
1452
1453 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1454 ac_prev=pdfdir ;;
1455 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1456 pdfdir=$ac_optarg ;;
1457
1458 -psdir | --psdir | --psdi | --psd | --ps)
1459 ac_prev=psdir ;;
1460 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1461 psdir=$ac_optarg ;;
1462
1463 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1464 | -silent | --silent | --silen | --sile | --sil)
1465 silent=yes ;;
1466
1467 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1468 ac_prev=sbindir ;;
1469 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1470 | --sbi=* | --sb=*)
1471 sbindir=$ac_optarg ;;
1472
1473 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1474 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1475 | --sharedst | --shareds | --shared | --share | --shar \
1476 | --sha | --sh)
1477 ac_prev=sharedstatedir ;;
1478 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1479 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1480 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1481 | --sha=* | --sh=*)
1482 sharedstatedir=$ac_optarg ;;
1483
1484 -site | --site | --sit)
1485 ac_prev=site ;;
1486 -site=* | --site=* | --sit=*)
1487 site=$ac_optarg ;;
1488
1489 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1490 ac_prev=srcdir ;;
1491 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1492 srcdir=$ac_optarg ;;
1493
1494 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1495 | --syscon | --sysco | --sysc | --sys | --sy)
1496 ac_prev=sysconfdir ;;
1497 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1498 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1499 sysconfdir=$ac_optarg ;;
1500
1501 -target | --target | --targe | --targ | --tar | --ta | --t)
1502 ac_prev=target_alias ;;
1503 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1504 target_alias=$ac_optarg ;;
1505
1506 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1507 verbose=yes ;;
1508
1509 -version | --version | --versio | --versi | --vers | -V)
1510 ac_init_version=: ;;
1511
1512 -with-* | --with-*)
1513 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1514 # Reject names that are not valid shell variable names.
1515 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001516 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001517 ac_useropt_orig=$ac_useropt
1518 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1519 case $ac_user_opts in
1520 *"
1521"with_$ac_useropt"
1522"*) ;;
1523 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1524 ac_unrecognized_sep=', ';;
1525 esac
1526 eval with_$ac_useropt=\$ac_optarg ;;
1527
1528 -without-* | --without-*)
1529 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1530 # Reject names that are not valid shell variable names.
1531 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001532 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001533 ac_useropt_orig=$ac_useropt
1534 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1535 case $ac_user_opts in
1536 *"
1537"with_$ac_useropt"
1538"*) ;;
1539 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1540 ac_unrecognized_sep=', ';;
1541 esac
1542 eval with_$ac_useropt=no ;;
1543
1544 --x)
1545 # Obsolete; use --with-x.
1546 with_x=yes ;;
1547
1548 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1549 | --x-incl | --x-inc | --x-in | --x-i)
1550 ac_prev=x_includes ;;
1551 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1552 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1553 x_includes=$ac_optarg ;;
1554
1555 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1556 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1557 ac_prev=x_libraries ;;
1558 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1559 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1560 x_libraries=$ac_optarg ;;
1561
cristy98dddb52010-11-04 00:30:15 +00001562 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1563Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001564 ;;
1565
1566 *=*)
1567 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1568 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001569 case $ac_envvar in #(
1570 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001571 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001572 esac
cristy3ed852e2009-09-05 21:47:34 +00001573 eval $ac_envvar=\$ac_optarg
1574 export $ac_envvar ;;
1575
1576 *)
1577 # FIXME: should be removed in autoconf 3.0.
1578 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1579 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1580 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001581 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001582 ;;
1583
1584 esac
1585done
1586
1587if test -n "$ac_prev"; then
1588 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001589 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001590fi
1591
1592if test -n "$ac_unrecognized_opts"; then
1593 case $enable_option_checking in
1594 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001595 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001596 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1597 esac
1598fi
1599
1600# Check all directory arguments for consistency.
1601for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1602 datadir sysconfdir sharedstatedir localstatedir includedir \
1603 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1604 libdir localedir mandir
1605do
1606 eval ac_val=\$$ac_var
1607 # Remove trailing slashes.
1608 case $ac_val in
1609 */ )
1610 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1611 eval $ac_var=\$ac_val;;
1612 esac
1613 # Be sure to have absolute directory names.
1614 case $ac_val in
1615 [\\/$]* | ?:[\\/]* ) continue;;
1616 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1617 esac
cristy98dddb52010-11-04 00:30:15 +00001618 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001619done
1620
1621# There might be people who depend on the old broken behavior: `$host'
1622# used to hold the argument of --host etc.
1623# FIXME: To remove some day.
1624build=$build_alias
1625host=$host_alias
1626target=$target_alias
1627
1628# FIXME: To remove some day.
1629if test "x$host_alias" != x; then
1630 if test "x$build_alias" = x; then
1631 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001632 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1633 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001634 elif test "x$build_alias" != "x$host_alias"; then
1635 cross_compiling=yes
1636 fi
1637fi
1638
1639ac_tool_prefix=
1640test -n "$host_alias" && ac_tool_prefix=$host_alias-
1641
1642test "$silent" = yes && exec 6>/dev/null
1643
1644
1645ac_pwd=`pwd` && test -n "$ac_pwd" &&
1646ac_ls_di=`ls -di .` &&
1647ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001648 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001649test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001650 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001651
1652
1653# Find the source files, if location was not specified.
1654if test -z "$srcdir"; then
1655 ac_srcdir_defaulted=yes
1656 # Try the directory containing this script, then the parent directory.
1657 ac_confdir=`$as_dirname -- "$as_myself" ||
1658$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1659 X"$as_myself" : 'X\(//\)[^/]' \| \
1660 X"$as_myself" : 'X\(//\)$' \| \
1661 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1662$as_echo X"$as_myself" |
1663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1664 s//\1/
1665 q
1666 }
1667 /^X\(\/\/\)[^/].*/{
1668 s//\1/
1669 q
1670 }
1671 /^X\(\/\/\)$/{
1672 s//\1/
1673 q
1674 }
1675 /^X\(\/\).*/{
1676 s//\1/
1677 q
1678 }
1679 s/.*/./; q'`
1680 srcdir=$ac_confdir
1681 if test ! -r "$srcdir/$ac_unique_file"; then
1682 srcdir=..
1683 fi
1684else
1685 ac_srcdir_defaulted=no
1686fi
1687if test ! -r "$srcdir/$ac_unique_file"; then
1688 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001689 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001690fi
1691ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1692ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001693 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001694 pwd)`
1695# When building in place, set srcdir=.
1696if test "$ac_abs_confdir" = "$ac_pwd"; then
1697 srcdir=.
1698fi
1699# Remove unnecessary trailing slashes from srcdir.
1700# Double slashes in file names in object file debugging info
1701# mess up M-x gdb in Emacs.
1702case $srcdir in
1703*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1704esac
1705for ac_var in $ac_precious_vars; do
1706 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1707 eval ac_env_${ac_var}_value=\$${ac_var}
1708 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1709 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1710done
1711
1712#
1713# Report the --help message.
1714#
1715if test "$ac_init_help" = "long"; then
1716 # Omit some internal or obsolete options to make the list less imposing.
1717 # This message is too long to be a string in the A/UX 3.1 sh.
1718 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001719\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001720
1721Usage: $0 [OPTION]... [VAR=VALUE]...
1722
1723To assign environment variables (e.g., CC, CFLAGS...), specify them as
1724VAR=VALUE. See below for descriptions of some of the useful variables.
1725
1726Defaults for the options are specified in brackets.
1727
1728Configuration:
1729 -h, --help display this help and exit
1730 --help=short display options specific to this package
1731 --help=recursive display the short help of all the included packages
1732 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001733 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001734 --cache-file=FILE cache test results in FILE [disabled]
1735 -C, --config-cache alias for \`--cache-file=config.cache'
1736 -n, --no-create do not create output files
1737 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1738
1739Installation directories:
1740 --prefix=PREFIX install architecture-independent files in PREFIX
1741 [$ac_default_prefix]
1742 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1743 [PREFIX]
1744
1745By default, \`make install' will install all the files in
1746\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1747an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1748for instance \`--prefix=\$HOME'.
1749
1750For better control, use the options below.
1751
1752Fine tuning of the installation directories:
1753 --bindir=DIR user executables [EPREFIX/bin]
1754 --sbindir=DIR system admin executables [EPREFIX/sbin]
1755 --libexecdir=DIR program executables [EPREFIX/libexec]
1756 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1757 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1758 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1759 --libdir=DIR object code libraries [EPREFIX/lib]
1760 --includedir=DIR C header files [PREFIX/include]
1761 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1762 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1763 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1764 --infodir=DIR info documentation [DATAROOTDIR/info]
1765 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1766 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001767 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
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
cristy29eb34e2011-10-16 00:46:08 +00001794 short | recursive ) echo "Configuration of ImageMagick 7.0.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
cristy6e3607c2011-09-13 13:59:17 +00001823 --enable-zero-configuration
1824 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001825 zero-configuration ImageMagick
1826 --enable-hdri accurately represent the wide range of intensity
1827 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001828 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001829 --enable-maintainer-mode enable make rules and dependencies not useful
1830 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001831 --enable-ccmalloc enable 'ccmalloc' memory debug support
1832 --enable-efence enable 'efence' memory debug support
1833 --enable-prof enable 'prof' profiling support
1834 --enable-gprof enable 'gprof' profiling support
1835 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001836 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001837
1838Optional Packages:
1839 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1840 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001841 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1842 --with-dmalloc use dmalloc, as in
1843 http://www.dmalloc.com/dmalloc.tar.gz
cristy3ed852e2009-09-05 21:47:34 +00001844 --without-threads disable threads support
cristy73bd4a52010-10-05 11:24:23 +00001845 --with-pic try to use only PIC/non-PIC objects [default=use
1846 both]
cristyda16f162011-02-19 23:52:17 +00001847 --with-sysroot=DIR Search for dependent libraries within DIR
1848 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001849 --with-included-ltdl use the GNU ltdl sources included here
1850 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1851 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001852 --with-modules enable building dynamically loadable modules
1853 --with-method-prefix=PREFIX
1854 prefix MagickCore API methods
1855 --with-quantum-depth=DEPTH
1856 number of bits in a pixel quantum (default 16)
1857 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1858 memory)
1859 --with-frozenpaths freeze delegate paths
1860 --without-magick-plus-plus
1861 disable build/install of Magick++
1862 --with-perl enable build/install of PerlMagick
1863 --with-perl-options=OPTIONS
1864 options to pass on command-line when generating
1865 PerlMagick's build file
1866 --with-umem enable umem memory allocation library support
1867 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1868 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001869 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001870 --without-zlib disable ZLIB support
1871 --with-autotrace enable autotrace support
1872 --without-dps disable Display Postscript support
1873 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001874 --with-dejavu-font-dir=DIR
1875 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001876 --without-fftw disable FFTW support
1877 --without-fpx disable FlashPIX support
1878 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001879 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001880 --without-gslib enable Ghostscript library support
1881 --with-fontpath=DIR prepend to default font search path
1882 --with-gs-font-dir=DIR Ghostscript font directory
1883 --without-gvc disable GVC support
1884 --without-jbig disable JBIG support
1885 --without-jpeg disable JPEG support
1886 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001887 --without-lcms disable lcms (v1.1X) support
1888 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001889 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001890 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001891 --without-openexr disable OpenEXR support
1892 --without-png disable PNG support
1893 --without-rsvg disable RSVG support
1894 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001895 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001896 --with-windows-font-dir=DIR
1897 directory containing MS-Windows fonts
1898 --without-wmf disable WMF support
1899 --without-xml disable XML support
1900
1901Some influential environment variables:
1902 CC C compiler command
1903 CFLAGS C compiler flags
1904 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1905 nonstandard directory <lib dir>
1906 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001907 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001908 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001909 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001910 CXX C++ compiler command
1911 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001912 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001913 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001914 XMKMF Path to xmkmf, Makefile generator for X Window System
1915 AUTOTRACE_CFLAGS
1916 C compiler flags for AUTOTRACE, overriding pkg-config
1917 AUTOTRACE_LIBS
1918 linker flags for AUTOTRACE, overriding pkg-config
1919 FONTCONFIG_CFLAGS
1920 C compiler flags for FONTCONFIG, overriding pkg-config
1921 FONTCONFIG_LIBS
1922 linker flags for FONTCONFIG, overriding pkg-config
1923 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1924 GVC_LIBS linker flags for GVC, overriding pkg-config
1925 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1926 LQR_LIBS linker flags for LQR, overriding pkg-config
1927 OPENEXR_CFLAGS
1928 C compiler flags for OPENEXR, overriding pkg-config
1929 OPENEXR_LIBS
1930 linker flags for OPENEXR, overriding pkg-config
1931 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1932 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1933 CAIRO_SVG_CFLAGS
1934 C compiler flags for CAIRO_SVG, overriding pkg-config
1935 CAIRO_SVG_LIBS
1936 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001937
1938Use these variables to override the choices made by `configure' or to help
1939it to find libraries and programs with nonstandard names/locations.
1940
1941Report bugs to <http://www.imagemagick.org>.
1942_ACEOF
1943ac_status=$?
1944fi
1945
1946if test "$ac_init_help" = "recursive"; then
1947 # If there are subdirs, report their specific --help.
1948 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1949 test -d "$ac_dir" ||
1950 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1951 continue
1952 ac_builddir=.
1953
1954case "$ac_dir" in
1955.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1956*)
1957 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1958 # A ".." for each directory in $ac_dir_suffix.
1959 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1960 case $ac_top_builddir_sub in
1961 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1962 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1963 esac ;;
1964esac
1965ac_abs_top_builddir=$ac_pwd
1966ac_abs_builddir=$ac_pwd$ac_dir_suffix
1967# for backward compatibility:
1968ac_top_builddir=$ac_top_build_prefix
1969
1970case $srcdir in
1971 .) # We are building in place.
1972 ac_srcdir=.
1973 ac_top_srcdir=$ac_top_builddir_sub
1974 ac_abs_top_srcdir=$ac_pwd ;;
1975 [\\/]* | ?:[\\/]* ) # Absolute name.
1976 ac_srcdir=$srcdir$ac_dir_suffix;
1977 ac_top_srcdir=$srcdir
1978 ac_abs_top_srcdir=$srcdir ;;
1979 *) # Relative name.
1980 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1981 ac_top_srcdir=$ac_top_build_prefix$srcdir
1982 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1983esac
1984ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1985
1986 cd "$ac_dir" || { ac_status=$?; continue; }
1987 # Check for guested configure.
1988 if test -f "$ac_srcdir/configure.gnu"; then
1989 echo &&
1990 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1991 elif test -f "$ac_srcdir/configure"; then
1992 echo &&
1993 $SHELL "$ac_srcdir/configure" --help=recursive
1994 else
1995 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1996 fi || ac_status=$?
1997 cd "$ac_pwd" || { ac_status=$?; break; }
1998 done
1999fi
2000
2001test -n "$ac_init_help" && exit $ac_status
2002if $ac_init_version; then
2003 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002004ImageMagick configure 7.0.0-0
cristyda16f162011-02-19 23:52:17 +00002005generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00002006
cristy98dddb52010-11-04 00:30:15 +00002007Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002008This configure script is free software; the Free Software Foundation
2009gives unlimited permission to copy, distribute and modify it.
2010_ACEOF
2011 exit
2012fi
cristy8b350f62009-11-15 23:12:43 +00002013
2014## ------------------------ ##
2015## Autoconf initialization. ##
2016## ------------------------ ##
2017
2018# ac_fn_c_try_compile LINENO
2019# --------------------------
2020# Try to compile conftest.$ac_ext, and return whether this succeeded.
2021ac_fn_c_try_compile ()
2022{
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 rm -f conftest.$ac_objext
2025 if { { ac_try="$ac_compile"
2026case "(($ac_try" in
2027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2028 *) ac_try_echo=$ac_try;;
2029esac
2030eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2031$as_echo "$ac_try_echo"; } >&5
2032 (eval "$ac_compile") 2>conftest.err
2033 ac_status=$?
2034 if test -s conftest.err; then
2035 grep -v '^ *+' conftest.err >conftest.er1
2036 cat conftest.er1 >&5
2037 mv -f conftest.er1 conftest.err
2038 fi
2039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2040 test $ac_status = 0; } && {
2041 test -z "$ac_c_werror_flag" ||
2042 test ! -s conftest.err
2043 } && test -s conftest.$ac_objext; then :
2044 ac_retval=0
2045else
2046 $as_echo "$as_me: failed program was:" >&5
2047sed 's/^/| /' conftest.$ac_ext >&5
2048
2049 ac_retval=1
2050fi
cristyda16f162011-02-19 23:52:17 +00002051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002052 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002053
2054} # ac_fn_c_try_compile
2055
cristy95646052009-11-28 23:05:30 +00002056# ac_fn_c_try_cpp LINENO
2057# ----------------------
2058# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2059ac_fn_c_try_cpp ()
2060{
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 if { { ac_try="$ac_cpp conftest.$ac_ext"
2063case "(($ac_try" in
2064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2065 *) ac_try_echo=$ac_try;;
2066esac
2067eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068$as_echo "$ac_try_echo"; } >&5
2069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2070 ac_status=$?
2071 if test -s conftest.err; then
2072 grep -v '^ *+' conftest.err >conftest.er1
2073 cat conftest.er1 >&5
2074 mv -f conftest.er1 conftest.err
2075 fi
2076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002077 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2079 test ! -s conftest.err
2080 }; then :
2081 ac_retval=0
2082else
2083 $as_echo "$as_me: failed program was:" >&5
2084sed 's/^/| /' conftest.$ac_ext >&5
2085
2086 ac_retval=1
2087fi
cristyda16f162011-02-19 23:52:17 +00002088 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002089 as_fn_set_status $ac_retval
2090
2091} # ac_fn_c_try_cpp
2092
cristy8b350f62009-11-15 23:12:43 +00002093# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2094# -------------------------------------------------------
2095# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2096# the include files in INCLUDES and setting the cache variable VAR
2097# accordingly.
2098ac_fn_c_check_header_mongrel ()
2099{
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002101 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2103$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002104if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002105 $as_echo_n "(cached) " >&6
2106fi
2107eval ac_res=\$$3
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109$as_echo "$ac_res" >&6; }
2110else
2111 # Is the header compilable?
2112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2113$as_echo_n "checking $2 usability... " >&6; }
2114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115/* end confdefs.h. */
2116$4
2117#include <$2>
2118_ACEOF
2119if ac_fn_c_try_compile "$LINENO"; then :
2120 ac_header_compiler=yes
2121else
2122 ac_header_compiler=no
2123fi
2124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2126$as_echo "$ac_header_compiler" >&6; }
2127
2128# Is the header present?
2129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2130$as_echo_n "checking $2 presence... " >&6; }
2131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132/* end confdefs.h. */
2133#include <$2>
2134_ACEOF
2135if ac_fn_c_try_cpp "$LINENO"; then :
2136 ac_header_preproc=yes
2137else
2138 ac_header_preproc=no
2139fi
cristyda16f162011-02-19 23:52:17 +00002140rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2142$as_echo "$ac_header_preproc" >&6; }
2143
2144# So? What about this header?
2145case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2146 yes:no: )
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2148$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2150$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2151 ;;
2152 no:yes:* )
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2154$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2156$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2158$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2160$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2162$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002163( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002164## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002165## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002166 ) | sed "s/^/$as_me: WARNING: /" >&2
2167 ;;
2168esac
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2170$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002171if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002172 $as_echo_n "(cached) " >&6
2173else
2174 eval "$3=\$ac_header_compiler"
2175fi
2176eval ac_res=\$$3
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2178$as_echo "$ac_res" >&6; }
2179fi
cristyda16f162011-02-19 23:52:17 +00002180 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002181
2182} # ac_fn_c_check_header_mongrel
2183
2184# ac_fn_c_try_run LINENO
2185# ----------------------
2186# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2187# that executables *can* be run.
2188ac_fn_c_try_run ()
2189{
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 if { { ac_try="$ac_link"
2192case "(($ac_try" in
2193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2194 *) ac_try_echo=$ac_try;;
2195esac
2196eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2197$as_echo "$ac_try_echo"; } >&5
2198 (eval "$ac_link") 2>&5
2199 ac_status=$?
2200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2201 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2202 { { case "(($ac_try" in
2203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2204 *) ac_try_echo=$ac_try;;
2205esac
2206eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2207$as_echo "$ac_try_echo"; } >&5
2208 (eval "$ac_try") 2>&5
2209 ac_status=$?
2210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2211 test $ac_status = 0; }; }; then :
2212 ac_retval=0
2213else
2214 $as_echo "$as_me: program exited with status $ac_status" >&5
2215 $as_echo "$as_me: failed program was:" >&5
2216sed 's/^/| /' conftest.$ac_ext >&5
2217
2218 ac_retval=$ac_status
2219fi
2220 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002221 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002222 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002223
2224} # ac_fn_c_try_run
2225
2226# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2227# -------------------------------------------------------
2228# Tests whether HEADER exists and can be compiled using the include files in
2229# INCLUDES, setting the cache variable VAR accordingly.
2230ac_fn_c_check_header_compile ()
2231{
2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2234$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002235if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002236 $as_echo_n "(cached) " >&6
2237else
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239/* end confdefs.h. */
2240$4
2241#include <$2>
2242_ACEOF
2243if ac_fn_c_try_compile "$LINENO"; then :
2244 eval "$3=yes"
2245else
2246 eval "$3=no"
2247fi
2248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249fi
2250eval ac_res=\$$3
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2252$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002253 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002254
2255} # ac_fn_c_check_header_compile
2256
cristya0b81c32010-01-22 02:54:33 +00002257# ac_fn_cxx_try_compile LINENO
2258# ----------------------------
2259# Try to compile conftest.$ac_ext, and return whether this succeeded.
2260ac_fn_cxx_try_compile ()
2261{
2262 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2263 rm -f conftest.$ac_objext
2264 if { { ac_try="$ac_compile"
2265case "(($ac_try" in
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2268esac
2269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270$as_echo "$ac_try_echo"; } >&5
2271 (eval "$ac_compile") 2>conftest.err
2272 ac_status=$?
2273 if test -s conftest.err; then
2274 grep -v '^ *+' conftest.err >conftest.er1
2275 cat conftest.er1 >&5
2276 mv -f conftest.er1 conftest.err
2277 fi
2278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2279 test $ac_status = 0; } && {
2280 test -z "$ac_cxx_werror_flag" ||
2281 test ! -s conftest.err
2282 } && test -s conftest.$ac_objext; then :
2283 ac_retval=0
2284else
2285 $as_echo "$as_me: failed program was:" >&5
2286sed 's/^/| /' conftest.$ac_ext >&5
2287
2288 ac_retval=1
2289fi
cristyda16f162011-02-19 23:52:17 +00002290 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002291 as_fn_set_status $ac_retval
2292
2293} # ac_fn_cxx_try_compile
2294
cristy8b350f62009-11-15 23:12:43 +00002295# ac_fn_c_try_link LINENO
2296# -----------------------
2297# Try to link conftest.$ac_ext, and return whether this succeeded.
2298ac_fn_c_try_link ()
2299{
2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301 rm -f conftest.$ac_objext conftest$ac_exeext
2302 if { { ac_try="$ac_link"
2303case "(($ac_try" in
2304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2305 *) ac_try_echo=$ac_try;;
2306esac
2307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2308$as_echo "$ac_try_echo"; } >&5
2309 (eval "$ac_link") 2>conftest.err
2310 ac_status=$?
2311 if test -s conftest.err; then
2312 grep -v '^ *+' conftest.err >conftest.er1
2313 cat conftest.er1 >&5
2314 mv -f conftest.er1 conftest.err
2315 fi
2316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2317 test $ac_status = 0; } && {
2318 test -z "$ac_c_werror_flag" ||
2319 test ! -s conftest.err
2320 } && test -s conftest$ac_exeext && {
2321 test "$cross_compiling" = yes ||
2322 $as_test_x conftest$ac_exeext
2323 }; then :
2324 ac_retval=0
2325else
2326 $as_echo "$as_me: failed program was:" >&5
2327sed 's/^/| /' conftest.$ac_ext >&5
2328
2329 ac_retval=1
2330fi
2331 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2332 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2333 # interfere with the next link command; also delete a directory that is
2334 # left behind by Apple's compiler. We do this before executing the actions.
2335 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002336 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002337 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002338
2339} # ac_fn_c_try_link
2340
cristy73bd4a52010-10-05 11:24:23 +00002341# ac_fn_c_check_func LINENO FUNC VAR
2342# ----------------------------------
2343# Tests whether FUNC exists, setting the cache variable VAR accordingly
2344ac_fn_c_check_func ()
2345{
2346 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2348$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002349if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002350 $as_echo_n "(cached) " >&6
2351else
2352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2353/* end confdefs.h. */
2354/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2356#define $2 innocuous_$2
2357
2358/* System header to define __stub macros and hopefully few prototypes,
2359 which can conflict with char $2 (); below.
2360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2361 <limits.h> exists even on freestanding compilers. */
2362
2363#ifdef __STDC__
2364# include <limits.h>
2365#else
2366# include <assert.h>
2367#endif
2368
2369#undef $2
2370
2371/* Override any GCC internal prototype to avoid an error.
2372 Use char because int might match the return type of a GCC
2373 builtin and then its argument prototype would still apply. */
2374#ifdef __cplusplus
2375extern "C"
2376#endif
2377char $2 ();
2378/* The GNU C library defines this for functions which it implements
2379 to always fail with ENOSYS. Some functions are actually named
2380 something starting with __ and the normal name is an alias. */
2381#if defined __stub_$2 || defined __stub___$2
2382choke me
2383#endif
2384
2385int
2386main ()
2387{
2388return $2 ();
2389 ;
2390 return 0;
2391}
2392_ACEOF
2393if ac_fn_c_try_link "$LINENO"; then :
2394 eval "$3=yes"
2395else
2396 eval "$3=no"
2397fi
2398rm -f core conftest.err conftest.$ac_objext \
2399 conftest$ac_exeext conftest.$ac_ext
2400fi
2401eval ac_res=\$$3
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2403$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002404 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002405
2406} # ac_fn_c_check_func
2407
2408# ac_fn_cxx_try_cpp LINENO
2409# ------------------------
2410# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2411ac_fn_cxx_try_cpp ()
2412{
2413 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2414 if { { ac_try="$ac_cpp conftest.$ac_ext"
2415case "(($ac_try" in
2416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2417 *) ac_try_echo=$ac_try;;
2418esac
2419eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2420$as_echo "$ac_try_echo"; } >&5
2421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2422 ac_status=$?
2423 if test -s conftest.err; then
2424 grep -v '^ *+' conftest.err >conftest.er1
2425 cat conftest.er1 >&5
2426 mv -f conftest.er1 conftest.err
2427 fi
2428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002429 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002430 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2431 test ! -s conftest.err
2432 }; then :
2433 ac_retval=0
2434else
2435 $as_echo "$as_me: failed program was:" >&5
2436sed 's/^/| /' conftest.$ac_ext >&5
2437
2438 ac_retval=1
2439fi
cristyda16f162011-02-19 23:52:17 +00002440 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002441 as_fn_set_status $ac_retval
2442
2443} # ac_fn_cxx_try_cpp
2444
2445# ac_fn_cxx_try_link LINENO
2446# -------------------------
2447# Try to link conftest.$ac_ext, and return whether this succeeded.
2448ac_fn_cxx_try_link ()
2449{
2450 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2451 rm -f conftest.$ac_objext conftest$ac_exeext
2452 if { { ac_try="$ac_link"
2453case "(($ac_try" in
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2456esac
2457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2458$as_echo "$ac_try_echo"; } >&5
2459 (eval "$ac_link") 2>conftest.err
2460 ac_status=$?
2461 if test -s conftest.err; then
2462 grep -v '^ *+' conftest.err >conftest.er1
2463 cat conftest.er1 >&5
2464 mv -f conftest.er1 conftest.err
2465 fi
2466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2467 test $ac_status = 0; } && {
2468 test -z "$ac_cxx_werror_flag" ||
2469 test ! -s conftest.err
2470 } && test -s conftest$ac_exeext && {
2471 test "$cross_compiling" = yes ||
2472 $as_test_x conftest$ac_exeext
2473 }; then :
2474 ac_retval=0
2475else
2476 $as_echo "$as_me: failed program was:" >&5
2477sed 's/^/| /' conftest.$ac_ext >&5
2478
2479 ac_retval=1
2480fi
2481 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2482 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2483 # interfere with the next link command; also delete a directory that is
2484 # left behind by Apple's compiler. We do this before executing the actions.
2485 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002486 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002487 as_fn_set_status $ac_retval
2488
2489} # ac_fn_cxx_try_link
2490
cristy98dddb52010-11-04 00:30:15 +00002491# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2492# ---------------------------------------------
2493# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2494# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002495ac_fn_c_check_decl ()
2496{
2497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002498 as_decl_name=`echo $2|sed 's/ *(.*//'`
2499 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2501$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002502if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002503 $as_echo_n "(cached) " >&6
2504else
2505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2506/* end confdefs.h. */
2507$4
2508int
2509main ()
2510{
cristy98dddb52010-11-04 00:30:15 +00002511#ifndef $as_decl_name
2512#ifdef __cplusplus
2513 (void) $as_decl_use;
2514#else
2515 (void) $as_decl_name;
2516#endif
cristy73bd4a52010-10-05 11:24:23 +00002517#endif
2518
2519 ;
2520 return 0;
2521}
2522_ACEOF
2523if ac_fn_c_try_compile "$LINENO"; then :
2524 eval "$3=yes"
2525else
2526 eval "$3=no"
2527fi
2528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2529fi
2530eval ac_res=\$$3
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2532$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002533 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002534
2535} # ac_fn_c_check_decl
2536
cristy8b350f62009-11-15 23:12:43 +00002537# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2538# -------------------------------------------
2539# Tests whether TYPE exists after having included INCLUDES, setting cache
2540# variable VAR accordingly.
2541ac_fn_c_check_type ()
2542{
2543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2545$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002546if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002547 $as_echo_n "(cached) " >&6
2548else
2549 eval "$3=no"
2550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551/* end confdefs.h. */
2552$4
2553int
2554main ()
2555{
2556if (sizeof ($2))
2557 return 0;
2558 ;
2559 return 0;
2560}
2561_ACEOF
2562if ac_fn_c_try_compile "$LINENO"; then :
2563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2564/* end confdefs.h. */
2565$4
2566int
2567main ()
2568{
2569if (sizeof (($2)))
2570 return 0;
2571 ;
2572 return 0;
2573}
2574_ACEOF
2575if ac_fn_c_try_compile "$LINENO"; then :
2576
2577else
2578 eval "$3=yes"
2579fi
2580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2581fi
2582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583fi
2584eval ac_res=\$$3
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2586$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002588
2589} # ac_fn_c_check_type
2590
cristy92703d82010-04-26 00:18:18 +00002591# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2592# ----------------------------------------------------
2593# Tries to find if the field MEMBER exists in type AGGR, after including
2594# INCLUDES, setting cache variable VAR accordingly.
2595ac_fn_c_check_member ()
2596{
2597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2599$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002600if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002601 $as_echo_n "(cached) " >&6
2602else
2603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604/* end confdefs.h. */
2605$5
2606int
2607main ()
2608{
2609static $2 ac_aggr;
2610if (ac_aggr.$3)
2611return 0;
2612 ;
2613 return 0;
2614}
2615_ACEOF
2616if ac_fn_c_try_compile "$LINENO"; then :
2617 eval "$4=yes"
2618else
2619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2620/* end confdefs.h. */
2621$5
2622int
2623main ()
2624{
2625static $2 ac_aggr;
2626if (sizeof ac_aggr.$3)
2627return 0;
2628 ;
2629 return 0;
2630}
2631_ACEOF
2632if ac_fn_c_try_compile "$LINENO"; then :
2633 eval "$4=yes"
2634else
2635 eval "$4=no"
2636fi
2637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638fi
2639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640fi
2641eval ac_res=\$$4
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2643$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002645
2646} # ac_fn_c_check_member
2647
cristy501c8042011-05-26 17:46:28 +00002648# ac_fn_c_find_intX_t LINENO BITS VAR
2649# -----------------------------------
2650# Finds a signed integer type with width BITS, setting cache variable VAR
2651# accordingly.
2652ac_fn_c_find_intX_t ()
2653{
2654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2656$as_echo_n "checking for int$2_t... " >&6; }
2657if eval \${$3+:} false; then :
2658 $as_echo_n "(cached) " >&6
2659else
2660 eval "$3=no"
2661 # Order is important - never check a type that is potentially smaller
2662 # than half of the expected target width.
2663 for ac_type in int$2_t 'int' 'long int' \
2664 'long long int' 'short int' 'signed char'; do
2665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666/* end confdefs.h. */
2667$ac_includes_default
2668 enum { N = $2 / 2 - 1 };
2669int
2670main ()
2671{
2672static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2673test_array [0] = 0
2674
2675 ;
2676 return 0;
2677}
2678_ACEOF
2679if ac_fn_c_try_compile "$LINENO"; then :
2680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2681/* end confdefs.h. */
2682$ac_includes_default
2683 enum { N = $2 / 2 - 1 };
2684int
2685main ()
2686{
2687static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2688 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2689test_array [0] = 0
2690
2691 ;
2692 return 0;
2693}
2694_ACEOF
2695if ac_fn_c_try_compile "$LINENO"; then :
2696
2697else
2698 case $ac_type in #(
2699 int$2_t) :
2700 eval "$3=yes" ;; #(
2701 *) :
2702 eval "$3=\$ac_type" ;;
2703esac
2704fi
2705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2706fi
2707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2708 if eval test \"x\$"$3"\" = x"no"; then :
2709
2710else
2711 break
2712fi
2713 done
2714fi
2715eval ac_res=\$$3
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2717$as_echo "$ac_res" >&6; }
2718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2719
2720} # ac_fn_c_find_intX_t
2721
2722# ac_fn_c_find_uintX_t LINENO BITS VAR
2723# ------------------------------------
2724# Finds an unsigned integer type with width BITS, setting cache variable VAR
2725# accordingly.
2726ac_fn_c_find_uintX_t ()
2727{
2728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2730$as_echo_n "checking for uint$2_t... " >&6; }
2731if eval \${$3+:} false; then :
2732 $as_echo_n "(cached) " >&6
2733else
2734 eval "$3=no"
2735 # Order is important - never check a type that is potentially smaller
2736 # than half of the expected target width.
2737 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2738 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2740/* end confdefs.h. */
2741$ac_includes_default
2742int
2743main ()
2744{
2745static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2746test_array [0] = 0
2747
2748 ;
2749 return 0;
2750}
2751_ACEOF
2752if ac_fn_c_try_compile "$LINENO"; then :
2753 case $ac_type in #(
2754 uint$2_t) :
2755 eval "$3=yes" ;; #(
2756 *) :
2757 eval "$3=\$ac_type" ;;
2758esac
2759fi
2760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2761 if eval test \"x\$"$3"\" = x"no"; then :
2762
2763else
2764 break
2765fi
2766 done
2767fi
2768eval ac_res=\$$3
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2770$as_echo "$ac_res" >&6; }
2771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2772
2773} # ac_fn_c_find_uintX_t
2774
cristy8b350f62009-11-15 23:12:43 +00002775# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2776# --------------------------------------------
2777# Tries to find the compile-time value of EXPR in a program that includes
2778# INCLUDES, setting VAR accordingly. Returns whether the value could be
2779# computed
2780ac_fn_c_compute_int ()
2781{
2782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2783 if test "$cross_compiling" = yes; then
2784 # Depending upon the size, compute the lo and hi bounds.
2785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2786/* end confdefs.h. */
2787$4
2788int
2789main ()
2790{
2791static int test_array [1 - 2 * !(($2) >= 0)];
2792test_array [0] = 0
2793
2794 ;
2795 return 0;
2796}
2797_ACEOF
2798if ac_fn_c_try_compile "$LINENO"; then :
2799 ac_lo=0 ac_mid=0
2800 while :; do
2801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2802/* end confdefs.h. */
2803$4
2804int
2805main ()
2806{
2807static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2808test_array [0] = 0
2809
2810 ;
2811 return 0;
2812}
2813_ACEOF
2814if ac_fn_c_try_compile "$LINENO"; then :
2815 ac_hi=$ac_mid; break
2816else
2817 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2818 if test $ac_lo -le $ac_mid; then
2819 ac_lo= ac_hi=
2820 break
2821 fi
2822 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2823fi
2824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2825 done
2826else
2827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2828/* end confdefs.h. */
2829$4
2830int
2831main ()
2832{
2833static int test_array [1 - 2 * !(($2) < 0)];
2834test_array [0] = 0
2835
2836 ;
2837 return 0;
2838}
2839_ACEOF
2840if ac_fn_c_try_compile "$LINENO"; then :
2841 ac_hi=-1 ac_mid=-1
2842 while :; do
2843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2844/* end confdefs.h. */
2845$4
2846int
2847main ()
2848{
2849static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2850test_array [0] = 0
2851
2852 ;
2853 return 0;
2854}
2855_ACEOF
2856if ac_fn_c_try_compile "$LINENO"; then :
2857 ac_lo=$ac_mid; break
2858else
2859 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2860 if test $ac_mid -le $ac_hi; then
2861 ac_lo= ac_hi=
2862 break
2863 fi
2864 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2865fi
2866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2867 done
2868else
2869 ac_lo= ac_hi=
2870fi
2871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2872fi
2873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2874# Binary search between lo and hi bounds.
2875while test "x$ac_lo" != "x$ac_hi"; do
2876 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2878/* end confdefs.h. */
2879$4
2880int
2881main ()
2882{
2883static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2884test_array [0] = 0
2885
2886 ;
2887 return 0;
2888}
2889_ACEOF
2890if ac_fn_c_try_compile "$LINENO"; then :
2891 ac_hi=$ac_mid
2892else
2893 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2894fi
2895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2896done
2897case $ac_lo in #((
2898?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2899'') ac_retval=1 ;;
2900esac
2901 else
2902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2903/* end confdefs.h. */
2904$4
2905static long int longval () { return $2; }
2906static unsigned long int ulongval () { return $2; }
2907#include <stdio.h>
2908#include <stdlib.h>
2909int
2910main ()
2911{
2912
2913 FILE *f = fopen ("conftest.val", "w");
2914 if (! f)
2915 return 1;
2916 if (($2) < 0)
2917 {
2918 long int i = longval ();
2919 if (i != ($2))
2920 return 1;
2921 fprintf (f, "%ld", i);
2922 }
2923 else
2924 {
2925 unsigned long int i = ulongval ();
2926 if (i != ($2))
2927 return 1;
2928 fprintf (f, "%lu", i);
2929 }
2930 /* Do not output a trailing newline, as this causes \r\n confusion
2931 on some platforms. */
2932 return ferror (f) || fclose (f) != 0;
2933
2934 ;
2935 return 0;
2936}
2937_ACEOF
2938if ac_fn_c_try_run "$LINENO"; then :
2939 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2940else
2941 ac_retval=1
2942fi
2943rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2944 conftest.$ac_objext conftest.beam conftest.$ac_ext
2945rm -f conftest.val
2946
2947 fi
cristyda16f162011-02-19 23:52:17 +00002948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002949 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002950
2951} # ac_fn_c_compute_int
2952
2953# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2954# ---------------------------------------------------------
2955# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2956# the include files in INCLUDES and setting the cache variable VAR
2957# accordingly.
2958ac_fn_cxx_check_header_mongrel ()
2959{
2960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002961 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2963$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002964if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002965 $as_echo_n "(cached) " >&6
2966fi
2967eval ac_res=\$$3
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2969$as_echo "$ac_res" >&6; }
2970else
2971 # Is the header compilable?
2972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2973$as_echo_n "checking $2 usability... " >&6; }
2974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2975/* end confdefs.h. */
2976$4
2977#include <$2>
2978_ACEOF
2979if ac_fn_cxx_try_compile "$LINENO"; then :
2980 ac_header_compiler=yes
2981else
2982 ac_header_compiler=no
2983fi
2984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2986$as_echo "$ac_header_compiler" >&6; }
2987
2988# Is the header present?
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2990$as_echo_n "checking $2 presence... " >&6; }
2991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2992/* end confdefs.h. */
2993#include <$2>
2994_ACEOF
2995if ac_fn_cxx_try_cpp "$LINENO"; then :
2996 ac_header_preproc=yes
2997else
2998 ac_header_preproc=no
2999fi
cristyda16f162011-02-19 23:52:17 +00003000rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3002$as_echo "$ac_header_preproc" >&6; }
3003
3004# So? What about this header?
3005case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3006 yes:no: )
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3008$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3010$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3011 ;;
3012 no:yes:* )
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3014$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3016$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3018$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3020$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3022$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003023( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003024## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003025## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003026 ) | sed "s/^/$as_me: WARNING: /" >&2
3027 ;;
3028esac
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3030$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003031if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003032 $as_echo_n "(cached) " >&6
3033else
3034 eval "$3=\$ac_header_compiler"
3035fi
3036eval ac_res=\$$3
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3038$as_echo "$ac_res" >&6; }
3039fi
cristyda16f162011-02-19 23:52:17 +00003040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003041
3042} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003043cat >config.log <<_ACEOF
3044This file contains any messages produced by compilers while
3045running configure, to aid debugging if configure makes a mistake.
3046
cristy29eb34e2011-10-16 00:46:08 +00003047It was created by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +00003048generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003049
3050 $ $0 $@
3051
3052_ACEOF
3053exec 5>>config.log
3054{
3055cat <<_ASUNAME
3056## --------- ##
3057## Platform. ##
3058## --------- ##
3059
3060hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3061uname -m = `(uname -m) 2>/dev/null || echo unknown`
3062uname -r = `(uname -r) 2>/dev/null || echo unknown`
3063uname -s = `(uname -s) 2>/dev/null || echo unknown`
3064uname -v = `(uname -v) 2>/dev/null || echo unknown`
3065
3066/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3067/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3068
3069/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3070/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3071/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3072/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3073/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3074/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3075/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3076
3077_ASUNAME
3078
3079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080for as_dir in $PATH
3081do
3082 IFS=$as_save_IFS
3083 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003084 $as_echo "PATH: $as_dir"
3085 done
cristy3ed852e2009-09-05 21:47:34 +00003086IFS=$as_save_IFS
3087
3088} >&5
3089
3090cat >&5 <<_ACEOF
3091
3092
3093## ----------- ##
3094## Core tests. ##
3095## ----------- ##
3096
3097_ACEOF
3098
3099
3100# Keep a trace of the command line.
3101# Strip out --no-create and --no-recursion so they do not pile up.
3102# Strip out --silent because we don't want to record it for future runs.
3103# Also quote any args containing shell meta-characters.
3104# Make two passes to allow for proper duplicate-argument suppression.
3105ac_configure_args=
3106ac_configure_args0=
3107ac_configure_args1=
3108ac_must_keep_next=false
3109for ac_pass in 1 2
3110do
3111 for ac_arg
3112 do
3113 case $ac_arg in
3114 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3116 | -silent | --silent | --silen | --sile | --sil)
3117 continue ;;
3118 *\'*)
3119 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3120 esac
3121 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003122 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003123 2)
cristy8b350f62009-11-15 23:12:43 +00003124 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003125 if test $ac_must_keep_next = true; then
3126 ac_must_keep_next=false # Got value, back to normal.
3127 else
3128 case $ac_arg in
3129 *=* | --config-cache | -C | -disable-* | --disable-* \
3130 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3131 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3132 | -with-* | --with-* | -without-* | --without-* | --x)
3133 case "$ac_configure_args0 " in
3134 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3135 esac
3136 ;;
3137 -* ) ac_must_keep_next=true ;;
3138 esac
3139 fi
cristy8b350f62009-11-15 23:12:43 +00003140 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003141 ;;
3142 esac
3143 done
3144done
cristy8b350f62009-11-15 23:12:43 +00003145{ ac_configure_args0=; unset ac_configure_args0;}
3146{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003147
3148# When interrupted or exit'd, cleanup temporary files, and complete
3149# config.log. We remove comments because anyway the quotes in there
3150# would cause problems or look ugly.
3151# WARNING: Use '\'' to represent an apostrophe within the trap.
3152# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3153trap 'exit_status=$?
3154 # Save into config.log some information that might help in debugging.
3155 {
3156 echo
3157
cristy98dddb52010-11-04 00:30:15 +00003158 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003159## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003160## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003161 echo
3162 # The following way of writing the cache mishandles newlines in values,
3163(
3164 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3165 eval ac_val=\$$ac_var
3166 case $ac_val in #(
3167 *${as_nl}*)
3168 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003169 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003170$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3171 esac
3172 case $ac_var in #(
3173 _ | IFS | as_nl) ;; #(
3174 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003175 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003176 esac ;;
3177 esac
3178 done
3179 (set) 2>&1 |
3180 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3181 *${as_nl}ac_space=\ *)
3182 sed -n \
3183 "s/'\''/'\''\\\\'\'''\''/g;
3184 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3185 ;; #(
3186 *)
3187 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3188 ;;
3189 esac |
3190 sort
3191)
3192 echo
3193
cristy98dddb52010-11-04 00:30:15 +00003194 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003195## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003196## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003197 echo
3198 for ac_var in $ac_subst_vars
3199 do
3200 eval ac_val=\$$ac_var
3201 case $ac_val in
3202 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3203 esac
3204 $as_echo "$ac_var='\''$ac_val'\''"
3205 done | sort
3206 echo
3207
3208 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003209 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003210## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003211## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003212 echo
3213 for ac_var in $ac_subst_files
3214 do
3215 eval ac_val=\$$ac_var
3216 case $ac_val in
3217 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3218 esac
3219 $as_echo "$ac_var='\''$ac_val'\''"
3220 done | sort
3221 echo
3222 fi
3223
3224 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003225 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003226## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003227## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003228 echo
3229 cat confdefs.h
3230 echo
3231 fi
3232 test "$ac_signal" != 0 &&
3233 $as_echo "$as_me: caught signal $ac_signal"
3234 $as_echo "$as_me: exit $exit_status"
3235 } >&5
3236 rm -f core *.core core.conftest.* &&
3237 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3238 exit $exit_status
3239' 0
3240for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003241 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003242done
3243ac_signal=0
3244
3245# confdefs.h avoids OS command line length limits that DEFS can exceed.
3246rm -f -r conftest* confdefs.h
3247
cristy8b350f62009-11-15 23:12:43 +00003248$as_echo "/* confdefs.h */" > confdefs.h
3249
cristy3ed852e2009-09-05 21:47:34 +00003250# Predefined preprocessor variables.
3251
3252cat >>confdefs.h <<_ACEOF
3253#define PACKAGE_NAME "$PACKAGE_NAME"
3254_ACEOF
3255
cristy3ed852e2009-09-05 21:47:34 +00003256cat >>confdefs.h <<_ACEOF
3257#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3258_ACEOF
3259
cristy3ed852e2009-09-05 21:47:34 +00003260cat >>confdefs.h <<_ACEOF
3261#define PACKAGE_VERSION "$PACKAGE_VERSION"
3262_ACEOF
3263
cristy3ed852e2009-09-05 21:47:34 +00003264cat >>confdefs.h <<_ACEOF
3265#define PACKAGE_STRING "$PACKAGE_STRING"
3266_ACEOF
3267
cristy3ed852e2009-09-05 21:47:34 +00003268cat >>confdefs.h <<_ACEOF
3269#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3270_ACEOF
3271
cristy8b350f62009-11-15 23:12:43 +00003272cat >>confdefs.h <<_ACEOF
3273#define PACKAGE_URL "$PACKAGE_URL"
3274_ACEOF
3275
cristy3ed852e2009-09-05 21:47:34 +00003276
3277# Let the site file select an alternate cache file if it wants to.
3278# Prefer an explicitly selected file to automatically selected ones.
3279ac_site_file1=NONE
3280ac_site_file2=NONE
3281if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003282 # We do not want a PATH search for config.site.
3283 case $CONFIG_SITE in #((
3284 -*) ac_site_file1=./$CONFIG_SITE;;
3285 */*) ac_site_file1=$CONFIG_SITE;;
3286 *) ac_site_file1=./$CONFIG_SITE;;
3287 esac
cristy3ed852e2009-09-05 21:47:34 +00003288elif test "x$prefix" != xNONE; then
3289 ac_site_file1=$prefix/share/config.site
3290 ac_site_file2=$prefix/etc/config.site
3291else
3292 ac_site_file1=$ac_default_prefix/share/config.site
3293 ac_site_file2=$ac_default_prefix/etc/config.site
3294fi
3295for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3296do
3297 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003298 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003299 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003300$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3301 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003302 . "$ac_site_file" \
3303 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3305as_fn_error $? "failed to load site script $ac_site_file
3306See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003307 fi
3308done
3309
3310if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003311 # Some versions of bash will fail to source /dev/null (special files
3312 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3313 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003314 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003315$as_echo "$as_me: loading cache $cache_file" >&6;}
3316 case $cache_file in
3317 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3318 *) . "./$cache_file";;
3319 esac
3320 fi
3321else
cristy8b350f62009-11-15 23:12:43 +00003322 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003323$as_echo "$as_me: creating cache $cache_file" >&6;}
3324 >$cache_file
3325fi
3326
cristycd4c5312009-11-22 01:19:08 +00003327as_fn_append ac_header_list " stdlib.h"
3328as_fn_append ac_header_list " unistd.h"
3329as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003330# Check that the precious variables saved in the cache have kept the same
3331# value.
3332ac_cache_corrupted=false
3333for ac_var in $ac_precious_vars; do
3334 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3335 eval ac_new_set=\$ac_env_${ac_var}_set
3336 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3337 eval ac_new_val=\$ac_env_${ac_var}_value
3338 case $ac_old_set,$ac_new_set in
3339 set,)
cristy8b350f62009-11-15 23:12:43 +00003340 { $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 +00003341$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3342 ac_cache_corrupted=: ;;
3343 ,set)
cristy8b350f62009-11-15 23:12:43 +00003344 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003345$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3346 ac_cache_corrupted=: ;;
3347 ,);;
3348 *)
3349 if test "x$ac_old_val" != "x$ac_new_val"; then
3350 # differences in whitespace do not lead to failure.
3351 ac_old_val_w=`echo x $ac_old_val`
3352 ac_new_val_w=`echo x $ac_new_val`
3353 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003355$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3356 ac_cache_corrupted=:
3357 else
cristy8b350f62009-11-15 23:12:43 +00003358 { $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 +00003359$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3360 eval $ac_var=\$ac_old_val
3361 fi
cristy8b350f62009-11-15 23:12:43 +00003362 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003363$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003364 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003365$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3366 fi;;
3367 esac
3368 # Pass precious variables to config.status.
3369 if test "$ac_new_set" = set; then
3370 case $ac_new_val in
3371 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3372 *) ac_arg=$ac_var=$ac_new_val ;;
3373 esac
3374 case " $ac_configure_args " in
3375 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003376 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003377 esac
3378 fi
3379done
3380if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003384$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003385 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003386fi
cristy8b350f62009-11-15 23:12:43 +00003387## -------------------- ##
3388## Main body of script. ##
3389## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003390
3391ac_ext=c
3392ac_cpp='$CPP $CPPFLAGS'
3393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395ac_compiler_gnu=$ac_cv_c_compiler_gnu
3396
3397
3398
3399ac_aux_dir=
3400for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003401 if test -f "$ac_dir/install-sh"; then
3402 ac_aux_dir=$ac_dir
3403 ac_install_sh="$ac_aux_dir/install-sh -c"
3404 break
3405 elif test -f "$ac_dir/install.sh"; then
3406 ac_aux_dir=$ac_dir
3407 ac_install_sh="$ac_aux_dir/install.sh -c"
3408 break
3409 elif test -f "$ac_dir/shtool"; then
3410 ac_aux_dir=$ac_dir
3411 ac_install_sh="$ac_aux_dir/shtool install -c"
3412 break
3413 fi
cristy3ed852e2009-09-05 21:47:34 +00003414done
3415if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003416 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003417fi
3418
3419# These three variables are undocumented and unsupported,
3420# and are intended to be withdrawn in a future Autoconf release.
3421# They can cause serious problems if a builder's source tree is in a directory
3422# whose full name contains unusual characters.
3423ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3424ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3425ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3426
3427
3428
3429
3430ac_config_headers="$ac_config_headers config/config.h"
3431
cristy24fc1fe2010-10-23 21:13:01 +00003432
cristy4c08aed2011-07-01 19:47:50 +00003433ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003434
cristy4c08aed2011-07-01 19:47:50 +00003435ac_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 +00003436
3437
3438#
3439# Save initial user-tunable values
3440#
3441USER_LIBS=$LIBS
3442for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3443 eval isset=\${$var+set}
3444 if test "$isset" = 'set'; then
3445 eval val=$`echo $var`
3446 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3447 fi
3448done
3449
3450
3451CONFIGURE_ARGS="$0 ${ac_configure_args}"
3452
3453
3454# Source file containing package/library versioning information.
3455. ${srcdir}/version.sh
3456
cristy15a88782010-01-31 23:24:49 +00003457echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003458# Make sure we can run config.sub.
3459$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003460 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003461
cristy8b350f62009-11-15 23:12:43 +00003462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003463$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003464if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003465 $as_echo_n "(cached) " >&6
3466else
3467 ac_build_alias=$build_alias
3468test "x$ac_build_alias" = x &&
3469 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3470test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003471 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003472ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003473 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003474
3475fi
cristy8b350f62009-11-15 23:12:43 +00003476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003477$as_echo "$ac_cv_build" >&6; }
3478case $ac_cv_build in
3479*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003480*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003481esac
3482build=$ac_cv_build
3483ac_save_IFS=$IFS; IFS='-'
3484set x $ac_cv_build
3485shift
3486build_cpu=$1
3487build_vendor=$2
3488shift; shift
3489# Remember, the first character of IFS is used to create $*,
3490# except with old shells:
3491build_os=$*
3492IFS=$ac_save_IFS
3493case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3494
3495
cristy8b350f62009-11-15 23:12:43 +00003496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003497$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003498if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003499 $as_echo_n "(cached) " >&6
3500else
3501 if test "x$host_alias" = x; then
3502 ac_cv_host=$ac_cv_build
3503else
3504 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003505 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003506fi
3507
3508fi
cristy8b350f62009-11-15 23:12:43 +00003509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003510$as_echo "$ac_cv_host" >&6; }
3511case $ac_cv_host in
3512*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003513*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003514esac
3515host=$ac_cv_host
3516ac_save_IFS=$IFS; IFS='-'
3517set x $ac_cv_host
3518shift
3519host_cpu=$1
3520host_vendor=$2
3521shift; shift
3522# Remember, the first character of IFS is used to create $*,
3523# except with old shells:
3524host_os=$*
3525IFS=$ac_save_IFS
3526case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3527
3528
cristy8b350f62009-11-15 23:12:43 +00003529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003530$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003531if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003532 $as_echo_n "(cached) " >&6
3533else
3534 if test "x$target_alias" = x; then
3535 ac_cv_target=$ac_cv_host
3536else
3537 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003538 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003539fi
3540
3541fi
cristy8b350f62009-11-15 23:12:43 +00003542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003543$as_echo "$ac_cv_target" >&6; }
3544case $ac_cv_target in
3545*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003546*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003547esac
3548target=$ac_cv_target
3549ac_save_IFS=$IFS; IFS='-'
3550set x $ac_cv_target
3551shift
3552target_cpu=$1
3553target_vendor=$2
3554shift; shift
3555# Remember, the first character of IFS is used to create $*,
3556# except with old shells:
3557target_os=$*
3558IFS=$ac_save_IFS
3559case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3560
3561
3562# The aliases save the names the user supplied, while $host etc.
3563# will get canonicalized.
3564test -n "$target_alias" &&
3565 test "$program_prefix$program_suffix$program_transform_name" = \
3566 NONENONEs,x,x, &&
3567 program_prefix=${target_alias}-
3568
cristy837d6dc2010-02-27 01:16:57 +00003569
3570
3571
cristy19615b82011-04-13 20:02:01 +00003572MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003573
3574
cristy19615b82011-04-13 20:02:01 +00003575MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003576
3577
cristy19615b82011-04-13 20:02:01 +00003578MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003579
3580
cristy3ed852e2009-09-05 21:47:34 +00003581# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003582MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3583
3584MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3585
cristya316db12011-10-24 00:49:45 +00003586MAGICK_SVN_REVISION=5733
cristyd694ca32011-03-27 21:42:54 +00003587
3588
cristy3ed852e2009-09-05 21:47:34 +00003589
3590
3591# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3593$as_echo_n "checking whether build environment is sane... " >&6; }
3594# Just in case
3595sleep 1
3596echo timestamp > conftest.file
3597# Reject unsafe characters in $srcdir or the absolute working directory
3598# name. Accept space and tab only in the latter.
3599am_lf='
3600'
3601case `pwd` in
3602 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003603 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003604esac
3605case $srcdir in
3606 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003607 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003608esac
cristy3ed852e2009-09-05 21:47:34 +00003609
cristy73bd4a52010-10-05 11:24:23 +00003610# Do `set' in a subshell so we don't clobber the current shell's
3611# arguments. Must try -L first in case configure is actually a
3612# symlink; some systems play weird games with the mod time of symlinks
3613# (eg FreeBSD returns the mod time of the symlink's containing
3614# directory).
3615if (
3616 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3617 if test "$*" = "X"; then
3618 # -L didn't work.
3619 set X `ls -t "$srcdir/configure" conftest.file`
3620 fi
3621 rm -f conftest.file
3622 if test "$*" != "X $srcdir/configure conftest.file" \
3623 && test "$*" != "X conftest.file $srcdir/configure"; then
3624
3625 # If neither matched, then we have a broken ls. This can happen
3626 # if, for instance, CONFIG_SHELL is bash and it inherits a
3627 # broken ls alias from the environment. This has actually
3628 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003629 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003630alias in your environment" "$LINENO" 5
3631 fi
3632
3633 test "$2" = conftest.file
3634 )
3635then
3636 # Ok.
3637 :
3638else
cristy98dddb52010-11-04 00:30:15 +00003639 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003640Check your system clock" "$LINENO" 5
3641fi
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3643$as_echo "yes" >&6; }
3644
3645am__api_version='1.11'
3646
3647# Find a good install program. We prefer a C program (faster),
3648# so one script is as good as another. But avoid the broken or
3649# incompatible versions:
3650# SysV /etc/install, /usr/sbin/install
3651# SunOS /usr/etc/install
3652# IRIX /sbin/install
3653# AIX /bin/install
3654# AmigaOS /C/install, which installs bootblocks on floppy discs
3655# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3656# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3657# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3658# OS/2's system install, which has a completely different semantic
3659# ./install, which can be erroneously created by make from ./install.sh.
3660# Reject install programs that cannot install multiple files.
3661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3662$as_echo_n "checking for a BSD-compatible install... " >&6; }
3663if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003664if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003665 $as_echo_n "(cached) " >&6
3666else
3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668for as_dir in $PATH
3669do
3670 IFS=$as_save_IFS
3671 test -z "$as_dir" && as_dir=.
3672 # Account for people who put trailing slashes in PATH elements.
3673case $as_dir/ in #((
3674 ./ | .// | /[cC]/* | \
3675 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3676 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3677 /usr/ucb/* ) ;;
3678 *)
3679 # OSF1 and SCO ODT 3.0 have their own names for install.
3680 # Don't use installbsd from OSF since it installs stuff as root
3681 # by default.
3682 for ac_prog in ginstall scoinst install; do
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3685 if test $ac_prog = install &&
3686 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3687 # AIX install. It has an incompatible calling convention.
3688 :
3689 elif test $ac_prog = install &&
3690 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3691 # program-specific install script used by HP pwplus--don't use.
3692 :
3693 else
3694 rm -rf conftest.one conftest.two conftest.dir
3695 echo one > conftest.one
3696 echo two > conftest.two
3697 mkdir conftest.dir
3698 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3699 test -s conftest.one && test -s conftest.two &&
3700 test -s conftest.dir/conftest.one &&
3701 test -s conftest.dir/conftest.two
3702 then
3703 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3704 break 3
3705 fi
3706 fi
3707 fi
3708 done
3709 done
3710 ;;
3711esac
3712
3713 done
3714IFS=$as_save_IFS
3715
3716rm -rf conftest.one conftest.two conftest.dir
3717
3718fi
3719 if test "${ac_cv_path_install+set}" = set; then
3720 INSTALL=$ac_cv_path_install
3721 else
3722 # As a last resort, use the slow shell script. Don't cache a
3723 # value for INSTALL within a source directory, because that will
3724 # break other packages using the cache if that directory is
3725 # removed, or if the value is a relative name.
3726 INSTALL=$ac_install_sh
3727 fi
3728fi
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3730$as_echo "$INSTALL" >&6; }
3731
3732# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3733# It thinks the first close brace ends the variable substitution.
3734test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3735
3736test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3737
3738test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3739
3740test "$program_prefix" != NONE &&
3741 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3742# Use a double $ so make ignores it.
3743test "$program_suffix" != NONE &&
3744 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3745# Double any \ or $.
3746# By default was `s,x,x', remove it if useless.
3747ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3748program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3749
3750# expand $ac_aux_dir to an absolute path
3751am_aux_dir=`cd $ac_aux_dir && pwd`
3752
3753if test x"${MISSING+set}" != xset; then
3754 case $am_aux_dir in
3755 *\ * | *\ *)
3756 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3757 *)
3758 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3759 esac
3760fi
3761# Use eval to expand $SHELL
3762if eval "$MISSING --run true"; then
3763 am_missing_run="$MISSING --run "
3764else
3765 am_missing_run=
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3767$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3768fi
3769
3770if test x"${install_sh}" != xset; then
3771 case $am_aux_dir in
3772 *\ * | *\ *)
3773 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3774 *)
3775 install_sh="\${SHELL} $am_aux_dir/install-sh"
3776 esac
3777fi
3778
3779# Installed binaries are usually stripped using `strip' when the user
3780# run `make install-strip'. However `strip' might not be the right
3781# tool to use in cross-compilation environments, therefore Automake
3782# will honor the `STRIP' environment variable to overrule this program.
3783if test "$cross_compiling" != no; then
3784 if test -n "$ac_tool_prefix"; then
3785 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3786set dummy ${ac_tool_prefix}strip; ac_word=$2
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003789if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003790 $as_echo_n "(cached) " >&6
3791else
3792 if test -n "$STRIP"; then
3793 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3794else
3795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796for as_dir in $PATH
3797do
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3802 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 break 2
3805 fi
3806done
3807 done
3808IFS=$as_save_IFS
3809
3810fi
3811fi
3812STRIP=$ac_cv_prog_STRIP
3813if test -n "$STRIP"; then
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3815$as_echo "$STRIP" >&6; }
3816else
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818$as_echo "no" >&6; }
3819fi
3820
3821
3822fi
3823if test -z "$ac_cv_prog_STRIP"; then
3824 ac_ct_STRIP=$STRIP
3825 # Extract the first word of "strip", so it can be a program name with args.
3826set dummy strip; ac_word=$2
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003829if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003830 $as_echo_n "(cached) " >&6
3831else
3832 if test -n "$ac_ct_STRIP"; then
3833 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3834else
3835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836for as_dir in $PATH
3837do
3838 IFS=$as_save_IFS
3839 test -z "$as_dir" && as_dir=.
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3842 ac_cv_prog_ac_ct_STRIP="strip"
3843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3844 break 2
3845 fi
3846done
3847 done
3848IFS=$as_save_IFS
3849
3850fi
3851fi
3852ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3853if test -n "$ac_ct_STRIP"; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3855$as_echo "$ac_ct_STRIP" >&6; }
3856else
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858$as_echo "no" >&6; }
3859fi
3860
3861 if test "x$ac_ct_STRIP" = x; then
3862 STRIP=":"
3863 else
3864 case $cross_compiling:$ac_tool_warned in
3865yes:)
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3868ac_tool_warned=yes ;;
3869esac
3870 STRIP=$ac_ct_STRIP
3871 fi
3872else
3873 STRIP="$ac_cv_prog_STRIP"
3874fi
3875
3876fi
3877INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3878
3879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3880$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3881if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003882 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003883 $as_echo_n "(cached) " >&6
3884else
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3887do
3888 IFS=$as_save_IFS
3889 test -z "$as_dir" && as_dir=.
3890 for ac_prog in mkdir gmkdir; do
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3893 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3894 'mkdir (GNU coreutils) '* | \
3895 'mkdir (coreutils) '* | \
3896 'mkdir (fileutils) '4.1*)
3897 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3898 break 3;;
3899 esac
3900 done
3901 done
3902 done
3903IFS=$as_save_IFS
3904
3905fi
3906
3907 test -d ./--version && rmdir ./--version
3908 if test "${ac_cv_path_mkdir+set}" = set; then
3909 MKDIR_P="$ac_cv_path_mkdir -p"
3910 else
3911 # As a last resort, use the slow shell script. Don't cache a
3912 # value for MKDIR_P within a source directory, because that will
3913 # break other packages using the cache if that directory is
3914 # removed, or if the value is a relative name.
3915 MKDIR_P="$ac_install_sh -d"
3916 fi
3917fi
3918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3919$as_echo "$MKDIR_P" >&6; }
3920
3921mkdir_p="$MKDIR_P"
3922case $mkdir_p in
3923 [\\/$]* | ?:[\\/]*) ;;
3924 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3925esac
3926
3927for ac_prog in gawk mawk nawk awk
3928do
3929 # Extract the first word of "$ac_prog", so it can be a program name with args.
3930set dummy $ac_prog; ac_word=$2
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003933if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003934 $as_echo_n "(cached) " >&6
3935else
3936 if test -n "$AWK"; then
3937 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3938else
3939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940for as_dir in $PATH
3941do
3942 IFS=$as_save_IFS
3943 test -z "$as_dir" && as_dir=.
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3946 ac_cv_prog_AWK="$ac_prog"
3947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 break 2
3949 fi
3950done
3951 done
3952IFS=$as_save_IFS
3953
3954fi
3955fi
3956AWK=$ac_cv_prog_AWK
3957if test -n "$AWK"; then
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3959$as_echo "$AWK" >&6; }
3960else
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962$as_echo "no" >&6; }
3963fi
3964
3965
3966 test -n "$AWK" && break
3967done
3968
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3970$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3971set x ${MAKE-make}
3972ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00003973if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003974 $as_echo_n "(cached) " >&6
3975else
3976 cat >conftest.make <<\_ACEOF
3977SHELL = /bin/sh
3978all:
3979 @echo '@@@%%%=$(MAKE)=@@@%%%'
3980_ACEOF
cristy98dddb52010-11-04 00:30:15 +00003981# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00003982case `${MAKE-make} -f conftest.make 2>/dev/null` in
3983 *@@@%%%=?*=@@@%%%*)
3984 eval ac_cv_prog_make_${ac_make}_set=yes;;
3985 *)
3986 eval ac_cv_prog_make_${ac_make}_set=no;;
3987esac
3988rm -f conftest.make
3989fi
3990if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3992$as_echo "yes" >&6; }
3993 SET_MAKE=
3994else
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996$as_echo "no" >&6; }
3997 SET_MAKE="MAKE=${MAKE-make}"
3998fi
3999
4000rm -rf .tst 2>/dev/null
4001mkdir .tst 2>/dev/null
4002if test -d .tst; then
4003 am__leading_dot=.
4004else
4005 am__leading_dot=_
4006fi
4007rmdir .tst 2>/dev/null
4008
cristya448bd22011-10-14 12:38:13 +00004009# Check whether --enable-silent-rules was given.
4010if test "${enable_silent_rules+set}" = set; then :
4011 enableval=$enable_silent_rules;
4012fi
4013
4014case $enable_silent_rules in
4015yes) AM_DEFAULT_VERBOSITY=0;;
4016no) AM_DEFAULT_VERBOSITY=1;;
4017*) AM_DEFAULT_VERBOSITY=1;;
4018esac
4019AM_BACKSLASH='\'
4020
cristy73bd4a52010-10-05 11:24:23 +00004021if test "`cd $srcdir && pwd`" != "`pwd`"; then
4022 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4023 # is not polluted with repeated "-I."
4024 am__isrc=' -I$(srcdir)'
4025 # test to see if srcdir already configured
4026 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004027 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004028 fi
4029fi
4030
4031# test whether we have cygpath
4032if test -z "$CYGPATH_W"; then
4033 if (cygpath --version) >/dev/null 2>/dev/null; then
4034 CYGPATH_W='cygpath -w'
4035 else
4036 CYGPATH_W=echo
4037 fi
4038fi
4039
4040
4041# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004042 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004043 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004044
4045
cristya448bd22011-10-14 12:38:13 +00004046cat >>confdefs.h <<_ACEOF
4047#define PACKAGE "$PACKAGE"
4048_ACEOF
4049
4050
4051cat >>confdefs.h <<_ACEOF
4052#define VERSION "$VERSION"
4053_ACEOF
4054
cristy73bd4a52010-10-05 11:24:23 +00004055# Some tools Automake needs.
4056
4057ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4058
4059
4060AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4061
4062
4063AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4064
4065
4066AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4067
4068
4069MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4070
4071# We need awk for the "check" target. The system "awk" is bad on
4072# some platforms.
4073# Always define AMTAR for backward compatibility.
4074
4075AMTAR=${AMTAR-"${am_missing_run}tar"}
4076
4077am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4078
4079
4080
4081
4082
cristy3ed852e2009-09-05 21:47:34 +00004083
4084# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004085# Check whether --enable-silent-rules was given.
4086if test "${enable_silent_rules+set}" = set; then :
4087 enableval=$enable_silent_rules;
4088fi
4089
4090case $enable_silent_rules in
4091yes) AM_DEFAULT_VERBOSITY=0;;
4092no) AM_DEFAULT_VERBOSITY=1;;
4093*) AM_DEFAULT_VERBOSITY=0;;
4094esac
4095AM_BACKSLASH='\'
4096
cristy3ed852e2009-09-05 21:47:34 +00004097
4098MAGICK_LIB_VERSION="0x"
4099if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4100 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4101fi
4102MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4103if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4104 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4105fi
4106MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4107if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4108 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4109fi
4110MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4111
4112
4113# Definition used to define MagickLibVersionText in version.h
4114MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4115
4116
4117# Definition used to define MagickLibVersionNumber in version.h
4118MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4119
4120
4121# Regenerate config.status if ChangeLog or version.sh is updated.
4122CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4123
4124
4125PERLMAINCC=$CC
4126
4127MAGICK_CFLAGS=''
4128MAGICK_CPPFLAGS=$CPPFLAGS_USER
4129MAGICK_PCFLAGS=$CPPFLAGS_USER
4130MAGICK_LDFLAGS=''
4131MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004132MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004133
4134#
4135# Evaluate shell variable equivalents to Makefile directory variables
4136#
4137if test "x$prefix" = xNONE; then
4138 prefix=$ac_default_prefix
4139fi
4140# Let make expand exec_prefix.
4141if test "x$exec_prefix" = xNONE; then
4142 exec_prefix='${prefix}'
4143fi
4144
4145#
4146eval "eval PREFIX_DIR=${prefix}"
4147
4148eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4149
4150eval "eval BIN_DIR=$bindir"
4151
4152eval "eval SBIN_DIR=$sbindir"
4153
4154eval "eval LIBEXEC_DIR=$libexecdir"
4155
4156eval "eval DATA_DIR=$datadir"
4157
cristyd55889c2011-03-27 00:50:24 +00004158eval "eval DOC_DIR=$docdir"
4159
cristy3ed852e2009-09-05 21:47:34 +00004160eval "eval SYSCONF_DIR=$sysconfdir"
4161
4162eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4163
4164eval "eval LOCALSTATE_DIR=$localstatedir"
4165
4166eval "eval LIB_DIR=$libdir"
4167
4168eval "eval INCLUDE_DIR=$includedir"
4169
4170eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4171
4172eval "eval INFO_DIR=$infodir"
4173
4174eval "eval MAN_DIR=$mandir"
4175
4176
4177# Get full paths to source and build directories
4178srcdirfull="`cd $srcdir && pwd`"
4179builddir="`pwd`"
4180
4181#
4182# Compute variables useful for running uninstalled software.
4183#
4184MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4185MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4186MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4187MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4188DIRSEP=':'
4189case "${build_os}" in
4190 mingw* )
4191 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4192 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4193 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4194 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4195 DIRSEP=';'
4196 ;;
4197esac
4198case "${host_os}" in
4199 mingw* )
4200 DIRSEP=';'
4201 ;;
4202esac
4203
4204
4205
4206
4207
4208
cristya0b81c32010-01-22 02:54:33 +00004209
4210#
4211# Enable OS features.
4212#
cristy73bd4a52010-10-05 11:24:23 +00004213DEPDIR="${am__leading_dot}deps"
4214
4215ac_config_commands="$ac_config_commands depfiles"
4216
4217
4218am_make=${MAKE-make}
4219cat > confinc << 'END'
4220am__doit:
4221 @echo this is the am__doit target
4222.PHONY: am__doit
4223END
4224# If we don't find an include directive, just comment out the code.
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4226$as_echo_n "checking for style of include used by $am_make... " >&6; }
4227am__include="#"
4228am__quote=
4229_am_result=none
4230# First try GNU make style include.
4231echo "include confinc" > confmf
4232# Ignore all kinds of additional output from `make'.
4233case `$am_make -s -f confmf 2> /dev/null` in #(
4234*the\ am__doit\ target*)
4235 am__include=include
4236 am__quote=
4237 _am_result=GNU
4238 ;;
4239esac
4240# Now try BSD make style include.
4241if test "$am__include" = "#"; then
4242 echo '.include "confinc"' > confmf
4243 case `$am_make -s -f confmf 2> /dev/null` in #(
4244 *the\ am__doit\ target*)
4245 am__include=.include
4246 am__quote="\""
4247 _am_result=BSD
4248 ;;
4249 esac
4250fi
4251
4252
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4254$as_echo "$_am_result" >&6; }
4255rm -f confinc confmf
4256
4257# Check whether --enable-dependency-tracking was given.
4258if test "${enable_dependency_tracking+set}" = set; then :
4259 enableval=$enable_dependency_tracking;
4260fi
4261
4262if test "x$enable_dependency_tracking" != xno; then
4263 am_depcomp="$ac_aux_dir/depcomp"
4264 AMDEPBACKSLASH='\'
4265fi
4266 if test "x$enable_dependency_tracking" != xno; then
4267 AMDEP_TRUE=
4268 AMDEP_FALSE='#'
4269else
4270 AMDEP_TRUE='#'
4271 AMDEP_FALSE=
4272fi
4273
4274
cristy3ed852e2009-09-05 21:47:34 +00004275ac_ext=c
4276ac_cpp='$CPP $CPPFLAGS'
4277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4279ac_compiler_gnu=$ac_cv_c_compiler_gnu
4280if test -n "$ac_tool_prefix"; then
4281 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4282set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004284$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004285if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004286 $as_echo_n "(cached) " >&6
4287else
4288 if test -n "$CC"; then
4289 ac_cv_prog_CC="$CC" # Let the user override the test.
4290else
4291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292for as_dir in $PATH
4293do
4294 IFS=$as_save_IFS
4295 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004296 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4298 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004300 break 2
4301 fi
4302done
cristy8b350f62009-11-15 23:12:43 +00004303 done
cristy3ed852e2009-09-05 21:47:34 +00004304IFS=$as_save_IFS
4305
4306fi
4307fi
4308CC=$ac_cv_prog_CC
4309if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004311$as_echo "$CC" >&6; }
4312else
cristy8b350f62009-11-15 23:12:43 +00004313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004314$as_echo "no" >&6; }
4315fi
4316
4317
4318fi
4319if test -z "$ac_cv_prog_CC"; then
4320 ac_ct_CC=$CC
4321 # Extract the first word of "gcc", so it can be a program name with args.
4322set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004324$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004325if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004326 $as_echo_n "(cached) " >&6
4327else
4328 if test -n "$ac_ct_CC"; then
4329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4330else
4331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332for as_dir in $PATH
4333do
4334 IFS=$as_save_IFS
4335 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004336 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4338 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004340 break 2
4341 fi
4342done
cristy8b350f62009-11-15 23:12:43 +00004343 done
cristy3ed852e2009-09-05 21:47:34 +00004344IFS=$as_save_IFS
4345
4346fi
4347fi
4348ac_ct_CC=$ac_cv_prog_ac_ct_CC
4349if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004351$as_echo "$ac_ct_CC" >&6; }
4352else
cristy8b350f62009-11-15 23:12:43 +00004353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004354$as_echo "no" >&6; }
4355fi
4356
4357 if test "x$ac_ct_CC" = x; then
4358 CC=""
4359 else
4360 case $cross_compiling:$ac_tool_warned in
4361yes:)
cristy8b350f62009-11-15 23:12:43 +00004362{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4364ac_tool_warned=yes ;;
4365esac
4366 CC=$ac_ct_CC
4367 fi
4368else
4369 CC="$ac_cv_prog_CC"
4370fi
4371
4372if test -z "$CC"; then
4373 if test -n "$ac_tool_prefix"; then
4374 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4375set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004377$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004378if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004379 $as_echo_n "(cached) " >&6
4380else
4381 if test -n "$CC"; then
4382 ac_cv_prog_CC="$CC" # Let the user override the test.
4383else
4384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385for as_dir in $PATH
4386do
4387 IFS=$as_save_IFS
4388 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004389 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4391 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004393 break 2
4394 fi
4395done
cristy8b350f62009-11-15 23:12:43 +00004396 done
cristy3ed852e2009-09-05 21:47:34 +00004397IFS=$as_save_IFS
4398
4399fi
4400fi
4401CC=$ac_cv_prog_CC
4402if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004404$as_echo "$CC" >&6; }
4405else
cristy8b350f62009-11-15 23:12:43 +00004406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004407$as_echo "no" >&6; }
4408fi
4409
4410
4411 fi
4412fi
4413if test -z "$CC"; then
4414 # Extract the first word of "cc", so it can be a program name with args.
4415set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004417$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004418if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004419 $as_echo_n "(cached) " >&6
4420else
4421 if test -n "$CC"; then
4422 ac_cv_prog_CC="$CC" # Let the user override the test.
4423else
4424 ac_prog_rejected=no
4425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426for as_dir in $PATH
4427do
4428 IFS=$as_save_IFS
4429 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004430 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4432 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4433 ac_prog_rejected=yes
4434 continue
4435 fi
4436 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004438 break 2
4439 fi
4440done
cristy8b350f62009-11-15 23:12:43 +00004441 done
cristy3ed852e2009-09-05 21:47:34 +00004442IFS=$as_save_IFS
4443
4444if test $ac_prog_rejected = yes; then
4445 # We found a bogon in the path, so make sure we never use it.
4446 set dummy $ac_cv_prog_CC
4447 shift
4448 if test $# != 0; then
4449 # We chose a different compiler from the bogus one.
4450 # However, it has the same basename, so the bogon will be chosen
4451 # first if we set CC to just the basename; use the full file name.
4452 shift
4453 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4454 fi
4455fi
4456fi
4457fi
4458CC=$ac_cv_prog_CC
4459if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004461$as_echo "$CC" >&6; }
4462else
cristy8b350f62009-11-15 23:12:43 +00004463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004464$as_echo "no" >&6; }
4465fi
4466
4467
4468fi
4469if test -z "$CC"; then
4470 if test -n "$ac_tool_prefix"; then
4471 for ac_prog in cl.exe
4472 do
4473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4474set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004476$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004477if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004478 $as_echo_n "(cached) " >&6
4479else
4480 if test -n "$CC"; then
4481 ac_cv_prog_CC="$CC" # Let the user override the test.
4482else
4483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484for as_dir in $PATH
4485do
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004488 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4490 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004492 break 2
4493 fi
4494done
cristy8b350f62009-11-15 23:12:43 +00004495 done
cristy3ed852e2009-09-05 21:47:34 +00004496IFS=$as_save_IFS
4497
4498fi
4499fi
4500CC=$ac_cv_prog_CC
4501if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004503$as_echo "$CC" >&6; }
4504else
cristy8b350f62009-11-15 23:12:43 +00004505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004506$as_echo "no" >&6; }
4507fi
4508
4509
4510 test -n "$CC" && break
4511 done
4512fi
4513if test -z "$CC"; then
4514 ac_ct_CC=$CC
4515 for ac_prog in cl.exe
4516do
4517 # Extract the first word of "$ac_prog", so it can be a program name with args.
4518set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004520$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004521if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004522 $as_echo_n "(cached) " >&6
4523else
4524 if test -n "$ac_ct_CC"; then
4525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4526else
4527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528for as_dir in $PATH
4529do
4530 IFS=$as_save_IFS
4531 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004532 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4534 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004536 break 2
4537 fi
4538done
cristy8b350f62009-11-15 23:12:43 +00004539 done
cristy3ed852e2009-09-05 21:47:34 +00004540IFS=$as_save_IFS
4541
4542fi
4543fi
4544ac_ct_CC=$ac_cv_prog_ac_ct_CC
4545if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004547$as_echo "$ac_ct_CC" >&6; }
4548else
cristy8b350f62009-11-15 23:12:43 +00004549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004550$as_echo "no" >&6; }
4551fi
4552
4553
4554 test -n "$ac_ct_CC" && break
4555done
4556
4557 if test "x$ac_ct_CC" = x; then
4558 CC=""
4559 else
4560 case $cross_compiling:$ac_tool_warned in
4561yes:)
cristy8b350f62009-11-15 23:12:43 +00004562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4564ac_tool_warned=yes ;;
4565esac
4566 CC=$ac_ct_CC
4567 fi
4568fi
4569
4570fi
4571
4572
cristy8b350f62009-11-15 23:12:43 +00004573test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004575as_fn_error $? "no acceptable C compiler found in \$PATH
4576See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004577
4578# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004579$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004580set X $ac_compile
4581ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004582for ac_option in --version -v -V -qversion; do
4583 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004584case "(($ac_try" in
4585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4587esac
cristy8b350f62009-11-15 23:12:43 +00004588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4589$as_echo "$ac_try_echo"; } >&5
4590 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004591 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004592 if test -s conftest.err; then
4593 sed '10a\
4594... rest of stderr output deleted ...
4595 10q' conftest.err >conftest.er1
4596 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004597 fi
cristycd4c5312009-11-22 01:19:08 +00004598 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4600 test $ac_status = 0; }
4601done
cristy3ed852e2009-09-05 21:47:34 +00004602
cristy8b350f62009-11-15 23:12:43 +00004603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004604/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004605
cristy3ed852e2009-09-05 21:47:34 +00004606int
4607main ()
4608{
4609
4610 ;
4611 return 0;
4612}
4613_ACEOF
4614ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004615ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004616# Try to create an executable without -o first, disregard a.out.
4617# It will help us diagnose broken compilers, and finding out an intuition
4618# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4620$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004621ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4622
4623# The possible output files:
4624ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4625
4626ac_rmfiles=
4627for ac_file in $ac_files
4628do
4629 case $ac_file in
4630 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4631 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4632 esac
4633done
4634rm -f $ac_rmfiles
4635
cristy8b350f62009-11-15 23:12:43 +00004636if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004637case "(($ac_try" in
4638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4640esac
cristy8b350f62009-11-15 23:12:43 +00004641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4642$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004643 (eval "$ac_link_default") 2>&5
4644 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4646 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004647 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4648# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4649# in a Makefile. We should not override ac_cv_exeext if it was cached,
4650# so that the user can short-circuit this test for compilers unknown to
4651# Autoconf.
4652for ac_file in $ac_files ''
4653do
4654 test -f "$ac_file" || continue
4655 case $ac_file in
4656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4657 ;;
4658 [ab].out )
4659 # We found the default executable, but exeext='' is most
4660 # certainly right.
4661 break;;
4662 *.* )
cristy8b350f62009-11-15 23:12:43 +00004663 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004664 then :; else
4665 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4666 fi
4667 # We set ac_cv_exeext here because the later test for it is not
4668 # safe: cross compilers may not add the suffix if given an `-o'
4669 # argument, so we may need to know it at that point already.
4670 # Even if this section looks crufty: it has the advantage of
4671 # actually working.
4672 break;;
4673 * )
4674 break;;
4675 esac
4676done
4677test "$ac_cv_exeext" = no && ac_cv_exeext=
4678
4679else
4680 ac_file=''
4681fi
cristy8b350f62009-11-15 23:12:43 +00004682if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684$as_echo "no" >&6; }
4685$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004686sed 's/^/| /' conftest.$ac_ext >&5
4687
cristy8b350f62009-11-15 23:12:43 +00004688{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004689$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004690as_fn_error 77 "C compiler cannot create executables
4691See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004692else
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4694$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004695fi
cristycd4c5312009-11-22 01:19:08 +00004696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4697$as_echo_n "checking for C compiler default output file name... " >&6; }
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4699$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004700ac_exeext=$ac_cv_exeext
4701
cristycd4c5312009-11-22 01:19:08 +00004702rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004703ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004705$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004706if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004707case "(($ac_try" in
4708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4709 *) ac_try_echo=$ac_try;;
4710esac
cristy8b350f62009-11-15 23:12:43 +00004711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4712$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004713 (eval "$ac_link") 2>&5
4714 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4716 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004717 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4718# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4719# work properly (i.e., refer to `conftest.exe'), while it won't with
4720# `rm'.
4721for ac_file in conftest.exe conftest conftest.*; do
4722 test -f "$ac_file" || continue
4723 case $ac_file in
4724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4725 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4726 break;;
4727 * ) break;;
4728 esac
4729done
4730else
cristy8b350f62009-11-15 23:12:43 +00004731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004732$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004733as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4734See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004735fi
cristycd4c5312009-11-22 01:19:08 +00004736rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004738$as_echo "$ac_cv_exeext" >&6; }
4739
4740rm -f conftest.$ac_ext
4741EXEEXT=$ac_cv_exeext
4742ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744/* end confdefs.h. */
4745#include <stdio.h>
4746int
4747main ()
4748{
4749FILE *f = fopen ("conftest.out", "w");
4750 return ferror (f) || fclose (f) != 0;
4751
4752 ;
4753 return 0;
4754}
4755_ACEOF
4756ac_clean_files="$ac_clean_files conftest.out"
4757# Check that the compiler produces executables we can run. If not, either
4758# the compiler is broken, or we cross compile.
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4760$as_echo_n "checking whether we are cross compiling... " >&6; }
4761if test "$cross_compiling" != yes; then
4762 { { ac_try="$ac_link"
4763case "(($ac_try" in
4764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4765 *) ac_try_echo=$ac_try;;
4766esac
4767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4768$as_echo "$ac_try_echo"; } >&5
4769 (eval "$ac_link") 2>&5
4770 ac_status=$?
4771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4772 test $ac_status = 0; }
4773 if { ac_try='./conftest$ac_cv_exeext'
4774 { { case "(($ac_try" in
4775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776 *) ac_try_echo=$ac_try;;
4777esac
4778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4779$as_echo "$ac_try_echo"; } >&5
4780 (eval "$ac_try") 2>&5
4781 ac_status=$?
4782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4783 test $ac_status = 0; }; }; then
4784 cross_compiling=no
4785 else
4786 if test "$cross_compiling" = maybe; then
4787 cross_compiling=yes
4788 else
4789 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4790$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004791as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004792If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004793See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004794 fi
4795 fi
4796fi
4797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4798$as_echo "$cross_compiling" >&6; }
4799
4800rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4801ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004803$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004804if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004805 $as_echo_n "(cached) " >&6
4806else
cristy8b350f62009-11-15 23:12:43 +00004807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004808/* end confdefs.h. */
4809
4810int
4811main ()
4812{
4813
4814 ;
4815 return 0;
4816}
4817_ACEOF
4818rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004819if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004820case "(($ac_try" in
4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822 *) ac_try_echo=$ac_try;;
4823esac
cristy8b350f62009-11-15 23:12:43 +00004824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4825$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004826 (eval "$ac_compile") 2>&5
4827 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4829 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004830 for ac_file in conftest.o conftest.obj conftest.*; do
4831 test -f "$ac_file" || continue;
4832 case $ac_file in
4833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4834 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4835 break;;
4836 esac
4837done
4838else
4839 $as_echo "$as_me: failed program was:" >&5
4840sed 's/^/| /' conftest.$ac_ext >&5
4841
cristy8b350f62009-11-15 23:12:43 +00004842{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004843$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004844as_fn_error $? "cannot compute suffix of object files: cannot compile
4845See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004846fi
cristy3ed852e2009-09-05 21:47:34 +00004847rm -f conftest.$ac_cv_objext conftest.$ac_ext
4848fi
cristy8b350f62009-11-15 23:12:43 +00004849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004850$as_echo "$ac_cv_objext" >&6; }
4851OBJEXT=$ac_cv_objext
4852ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004854$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004855if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004856 $as_echo_n "(cached) " >&6
4857else
cristy8b350f62009-11-15 23:12:43 +00004858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004859/* end confdefs.h. */
4860
4861int
4862main ()
4863{
4864#ifndef __GNUC__
4865 choke me
4866#endif
4867
4868 ;
4869 return 0;
4870}
4871_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004872if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004873 ac_compiler_gnu=yes
4874else
cristy8b350f62009-11-15 23:12:43 +00004875 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004876fi
cristy3ed852e2009-09-05 21:47:34 +00004877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4878ac_cv_c_compiler_gnu=$ac_compiler_gnu
4879
4880fi
cristy8b350f62009-11-15 23:12:43 +00004881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004882$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4883if test $ac_compiler_gnu = yes; then
4884 GCC=yes
4885else
4886 GCC=
4887fi
4888ac_test_CFLAGS=${CFLAGS+set}
4889ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004891$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004892if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004893 $as_echo_n "(cached) " >&6
4894else
4895 ac_save_c_werror_flag=$ac_c_werror_flag
4896 ac_c_werror_flag=yes
4897 ac_cv_prog_cc_g=no
4898 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004900/* end confdefs.h. */
4901
4902int
4903main ()
4904{
4905
4906 ;
4907 return 0;
4908}
4909_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004910if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004911 ac_cv_prog_cc_g=yes
4912else
cristy8b350f62009-11-15 23:12:43 +00004913 CFLAGS=""
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004915/* end confdefs.h. */
4916
4917int
4918main ()
4919{
4920
4921 ;
4922 return 0;
4923}
4924_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004925if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004926
cristy8b350f62009-11-15 23:12:43 +00004927else
4928 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004929 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004931/* end confdefs.h. */
4932
4933int
4934main ()
4935{
4936
4937 ;
4938 return 0;
4939}
4940_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004941if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004942 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004943fi
cristy3ed852e2009-09-05 21:47:34 +00004944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4945fi
cristy3ed852e2009-09-05 21:47:34 +00004946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4947fi
cristy3ed852e2009-09-05 21:47:34 +00004948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4949 ac_c_werror_flag=$ac_save_c_werror_flag
4950fi
cristy8b350f62009-11-15 23:12:43 +00004951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004952$as_echo "$ac_cv_prog_cc_g" >&6; }
4953if test "$ac_test_CFLAGS" = set; then
4954 CFLAGS=$ac_save_CFLAGS
4955elif test $ac_cv_prog_cc_g = yes; then
4956 if test "$GCC" = yes; then
4957 CFLAGS="-g -O2"
4958 else
4959 CFLAGS="-g"
4960 fi
4961else
4962 if test "$GCC" = yes; then
4963 CFLAGS="-O2"
4964 else
4965 CFLAGS=
4966 fi
4967fi
cristy8b350f62009-11-15 23:12:43 +00004968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004969$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004970if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004971 $as_echo_n "(cached) " >&6
4972else
4973 ac_cv_prog_cc_c89=no
4974ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004976/* end confdefs.h. */
4977#include <stdarg.h>
4978#include <stdio.h>
4979#include <sys/types.h>
4980#include <sys/stat.h>
4981/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4982struct buf { int x; };
4983FILE * (*rcsopen) (struct buf *, struct stat *, int);
4984static char *e (p, i)
4985 char **p;
4986 int i;
4987{
4988 return p[i];
4989}
4990static char *f (char * (*g) (char **, int), char **p, ...)
4991{
4992 char *s;
4993 va_list v;
4994 va_start (v,p);
4995 s = g (p, va_arg (v,int));
4996 va_end (v);
4997 return s;
4998}
4999
5000/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5001 function prototypes and stuff, but not '\xHH' hex character constants.
5002 These don't provoke an error unfortunately, instead are silently treated
5003 as 'x'. The following induces an error, until -std is added to get
5004 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5005 array size at least. It's necessary to write '\x00'==0 to get something
5006 that's true only with -std. */
5007int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5008
5009/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5010 inside strings and character constants. */
5011#define FOO(x) 'x'
5012int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5013
5014int test (int i, double x);
5015struct s1 {int (*f) (int a);};
5016struct s2 {int (*f) (double a);};
5017int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5018int argc;
5019char **argv;
5020int
5021main ()
5022{
5023return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5024 ;
5025 return 0;
5026}
5027_ACEOF
5028for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5029 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5030do
5031 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005032 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005033 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005034fi
cristy3ed852e2009-09-05 21:47:34 +00005035rm -f core conftest.err conftest.$ac_objext
5036 test "x$ac_cv_prog_cc_c89" != "xno" && break
5037done
5038rm -f conftest.$ac_ext
5039CC=$ac_save_CC
5040
5041fi
5042# AC_CACHE_VAL
5043case "x$ac_cv_prog_cc_c89" in
5044 x)
cristy8b350f62009-11-15 23:12:43 +00005045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005046$as_echo "none needed" >&6; } ;;
5047 xno)
cristy8b350f62009-11-15 23:12:43 +00005048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005049$as_echo "unsupported" >&6; } ;;
5050 *)
5051 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005053$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5054esac
cristy8b350f62009-11-15 23:12:43 +00005055if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005056
cristy8b350f62009-11-15 23:12:43 +00005057fi
cristy3ed852e2009-09-05 21:47:34 +00005058
5059ac_ext=c
5060ac_cpp='$CPP $CPPFLAGS'
5061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5063ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005064
cristy73bd4a52010-10-05 11:24:23 +00005065depcc="$CC" am_compiler_list=
5066
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5068$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005069if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005070 $as_echo_n "(cached) " >&6
5071else
5072 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5073 # We make a subdir and do the tests there. Otherwise we can end up
5074 # making bogus files that we don't know about and never remove. For
5075 # instance it was reported that on HP-UX the gcc test will end up
5076 # making a dummy file named `D' -- because `-MD' means `put the output
5077 # in D'.
5078 mkdir conftest.dir
5079 # Copy depcomp to subdir because otherwise we won't find it if we're
5080 # using a relative directory.
5081 cp "$am_depcomp" conftest.dir
5082 cd conftest.dir
5083 # We will build objects and dependencies in a subdirectory because
5084 # it helps to detect inapplicable dependency modes. For instance
5085 # both Tru64's cc and ICC support -MD to output dependencies as a
5086 # side effect of compilation, but ICC will put the dependencies in
5087 # the current directory while Tru64 will put them in the object
5088 # directory.
5089 mkdir sub
5090
5091 am_cv_CC_dependencies_compiler_type=none
5092 if test "$am_compiler_list" = ""; then
5093 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5094 fi
5095 am__universal=false
5096 case " $depcc " in #(
5097 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5098 esac
5099
5100 for depmode in $am_compiler_list; do
5101 # Setup a source with many dependencies, because some compilers
5102 # like to wrap large dependency lists on column 80 (with \), and
5103 # we should not choose a depcomp mode which is confused by this.
5104 #
5105 # We need to recreate these files for each test, as the compiler may
5106 # overwrite some of them when testing with obscure command lines.
5107 # This happens at least with the AIX C compiler.
5108 : > sub/conftest.c
5109 for i in 1 2 3 4 5 6; do
5110 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5111 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5112 # Solaris 8's {/usr,}/bin/sh.
5113 touch sub/conftst$i.h
5114 done
5115 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5116
5117 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5118 # mode. It turns out that the SunPro C++ compiler does not properly
5119 # handle `-M -o', and we need to detect this. Also, some Intel
5120 # versions had trouble with output in subdirs
5121 am__obj=sub/conftest.${OBJEXT-o}
5122 am__minus_obj="-o $am__obj"
5123 case $depmode in
5124 gcc)
5125 # This depmode causes a compiler race in universal mode.
5126 test "$am__universal" = false || continue
5127 ;;
5128 nosideeffect)
5129 # after this tag, mechanisms are not by side-effect, so they'll
5130 # only be used when explicitly requested
5131 if test "x$enable_dependency_tracking" = xyes; then
5132 continue
5133 else
5134 break
5135 fi
5136 ;;
5137 msvisualcpp | msvcmsys)
5138 # This compiler won't grok `-c -o', but also, the minuso test has
5139 # not run yet. These depmodes are late enough in the game, and
5140 # so weak that their functioning should not be impacted.
5141 am__obj=conftest.${OBJEXT-o}
5142 am__minus_obj=
5143 ;;
5144 none) break ;;
5145 esac
5146 if depmode=$depmode \
5147 source=sub/conftest.c object=$am__obj \
5148 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5149 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5150 >/dev/null 2>conftest.err &&
5151 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5152 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5153 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5154 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5155 # icc doesn't choke on unknown options, it will just issue warnings
5156 # or remarks (even with -Werror). So we grep stderr for any message
5157 # that says an option was ignored or not supported.
5158 # When given -MP, icc 7.0 and 7.1 complain thusly:
5159 # icc: Command line warning: ignoring option '-M'; no argument required
5160 # The diagnosis changed in icc 8.0:
5161 # icc: Command line remark: option '-MP' not supported
5162 if (grep 'ignoring option' conftest.err ||
5163 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5164 am_cv_CC_dependencies_compiler_type=$depmode
5165 break
5166 fi
5167 fi
5168 done
5169
5170 cd ..
5171 rm -rf conftest.dir
5172else
5173 am_cv_CC_dependencies_compiler_type=none
5174fi
5175
5176fi
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5178$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5179CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5180
5181 if
5182 test "x$enable_dependency_tracking" != xno \
5183 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5184 am__fastdepCC_TRUE=
5185 am__fastdepCC_FALSE='#'
5186else
5187 am__fastdepCC_TRUE='#'
5188 am__fastdepCC_FALSE=
5189fi
5190
5191
cristy3ed852e2009-09-05 21:47:34 +00005192
cristya0b81c32010-01-22 02:54:33 +00005193ac_ext=c
5194ac_cpp='$CPP $CPPFLAGS'
5195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5197ac_compiler_gnu=$ac_cv_c_compiler_gnu
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5199$as_echo_n "checking how to run the C preprocessor... " >&6; }
5200# On Suns, sometimes $CPP names a directory.
5201if test -n "$CPP" && test -d "$CPP"; then
5202 CPP=
5203fi
5204if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005205 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005206 $as_echo_n "(cached) " >&6
5207else
5208 # Double quotes because CPP needs to be expanded
5209 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5210 do
5211 ac_preproc_ok=false
5212for ac_c_preproc_warn_flag in '' yes
5213do
5214 # Use a header file that comes with gcc, so configuring glibc
5215 # with a fresh cross-compiler works.
5216 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5217 # <limits.h> exists even on freestanding compilers.
5218 # On the NeXT, cc -E runs the code through the compiler's parser,
5219 # not just through cpp. "Syntax error" is here to catch this case.
5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221/* end confdefs.h. */
5222#ifdef __STDC__
5223# include <limits.h>
5224#else
5225# include <assert.h>
5226#endif
5227 Syntax error
5228_ACEOF
5229if ac_fn_c_try_cpp "$LINENO"; then :
5230
5231else
5232 # Broken: fails on valid input.
5233continue
5234fi
cristyda16f162011-02-19 23:52:17 +00005235rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005236
5237 # OK, works on sane cases. Now check whether nonexistent headers
5238 # can be detected and how.
5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240/* end confdefs.h. */
5241#include <ac_nonexistent.h>
5242_ACEOF
5243if ac_fn_c_try_cpp "$LINENO"; then :
5244 # Broken: success on invalid input.
5245continue
5246else
5247 # Passes both tests.
5248ac_preproc_ok=:
5249break
5250fi
cristyda16f162011-02-19 23:52:17 +00005251rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005252
5253done
5254# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005255rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005256if $ac_preproc_ok; then :
5257 break
5258fi
5259
5260 done
5261 ac_cv_prog_CPP=$CPP
5262
5263fi
5264 CPP=$ac_cv_prog_CPP
5265else
5266 ac_cv_prog_CPP=$CPP
5267fi
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5269$as_echo "$CPP" >&6; }
5270ac_preproc_ok=false
5271for ac_c_preproc_warn_flag in '' yes
5272do
5273 # Use a header file that comes with gcc, so configuring glibc
5274 # with a fresh cross-compiler works.
5275 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5276 # <limits.h> exists even on freestanding compilers.
5277 # On the NeXT, cc -E runs the code through the compiler's parser,
5278 # not just through cpp. "Syntax error" is here to catch this case.
5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280/* end confdefs.h. */
5281#ifdef __STDC__
5282# include <limits.h>
5283#else
5284# include <assert.h>
5285#endif
5286 Syntax error
5287_ACEOF
5288if ac_fn_c_try_cpp "$LINENO"; then :
5289
5290else
5291 # Broken: fails on valid input.
5292continue
5293fi
cristyda16f162011-02-19 23:52:17 +00005294rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005295
5296 # OK, works on sane cases. Now check whether nonexistent headers
5297 # can be detected and how.
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299/* end confdefs.h. */
5300#include <ac_nonexistent.h>
5301_ACEOF
5302if ac_fn_c_try_cpp "$LINENO"; then :
5303 # Broken: success on invalid input.
5304continue
5305else
5306 # Passes both tests.
5307ac_preproc_ok=:
5308break
5309fi
cristyda16f162011-02-19 23:52:17 +00005310rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005311
5312done
5313# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005314rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005315if $ac_preproc_ok; then :
5316
5317else
5318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005320as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5321See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005322fi
5323
5324ac_ext=c
5325ac_cpp='$CPP $CPPFLAGS'
5326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5328ac_compiler_gnu=$ac_cv_c_compiler_gnu
5329
5330
5331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5332$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005333if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005334 $as_echo_n "(cached) " >&6
5335else
5336 if test -z "$GREP"; then
5337 ac_path_GREP_found=false
5338 # Loop through the user's path and test for each of PROGNAME-LIST
5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5341do
5342 IFS=$as_save_IFS
5343 test -z "$as_dir" && as_dir=.
5344 for ac_prog in grep ggrep; do
5345 for ac_exec_ext in '' $ac_executable_extensions; do
5346 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5347 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5348# Check for GNU ac_path_GREP and select it if it is found.
5349 # Check for GNU $ac_path_GREP
5350case `"$ac_path_GREP" --version 2>&1` in
5351*GNU*)
5352 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5353*)
5354 ac_count=0
5355 $as_echo_n 0123456789 >"conftest.in"
5356 while :
5357 do
5358 cat "conftest.in" "conftest.in" >"conftest.tmp"
5359 mv "conftest.tmp" "conftest.in"
5360 cp "conftest.in" "conftest.nl"
5361 $as_echo 'GREP' >> "conftest.nl"
5362 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5364 as_fn_arith $ac_count + 1 && ac_count=$as_val
5365 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5366 # Best one so far, save it but keep looking for a better one
5367 ac_cv_path_GREP="$ac_path_GREP"
5368 ac_path_GREP_max=$ac_count
5369 fi
5370 # 10*(2^10) chars as input seems more than enough
5371 test $ac_count -gt 10 && break
5372 done
5373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5374esac
5375
5376 $ac_path_GREP_found && break 3
5377 done
5378 done
5379 done
5380IFS=$as_save_IFS
5381 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005382 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005383 fi
5384else
5385 ac_cv_path_GREP=$GREP
5386fi
5387
5388fi
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5390$as_echo "$ac_cv_path_GREP" >&6; }
5391 GREP="$ac_cv_path_GREP"
5392
5393
5394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5395$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005396if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005397 $as_echo_n "(cached) " >&6
5398else
5399 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5400 then ac_cv_path_EGREP="$GREP -E"
5401 else
5402 if test -z "$EGREP"; then
5403 ac_path_EGREP_found=false
5404 # Loop through the user's path and test for each of PROGNAME-LIST
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5407do
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
5410 for ac_prog in egrep; do
5411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5413 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5414# Check for GNU ac_path_EGREP and select it if it is found.
5415 # Check for GNU $ac_path_EGREP
5416case `"$ac_path_EGREP" --version 2>&1` in
5417*GNU*)
5418 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5419*)
5420 ac_count=0
5421 $as_echo_n 0123456789 >"conftest.in"
5422 while :
5423 do
5424 cat "conftest.in" "conftest.in" >"conftest.tmp"
5425 mv "conftest.tmp" "conftest.in"
5426 cp "conftest.in" "conftest.nl"
5427 $as_echo 'EGREP' >> "conftest.nl"
5428 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5429 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5430 as_fn_arith $ac_count + 1 && ac_count=$as_val
5431 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5432 # Best one so far, save it but keep looking for a better one
5433 ac_cv_path_EGREP="$ac_path_EGREP"
5434 ac_path_EGREP_max=$ac_count
5435 fi
5436 # 10*(2^10) chars as input seems more than enough
5437 test $ac_count -gt 10 && break
5438 done
5439 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5440esac
5441
5442 $ac_path_EGREP_found && break 3
5443 done
5444 done
5445 done
5446IFS=$as_save_IFS
5447 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005448 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005449 fi
5450else
5451 ac_cv_path_EGREP=$EGREP
5452fi
5453
5454 fi
5455fi
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5457$as_echo "$ac_cv_path_EGREP" >&6; }
5458 EGREP="$ac_cv_path_EGREP"
5459
5460
5461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5462$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005463if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005464 $as_echo_n "(cached) " >&6
5465else
5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467/* end confdefs.h. */
5468#include <stdlib.h>
5469#include <stdarg.h>
5470#include <string.h>
5471#include <float.h>
5472
5473int
5474main ()
5475{
5476
5477 ;
5478 return 0;
5479}
5480_ACEOF
5481if ac_fn_c_try_compile "$LINENO"; then :
5482 ac_cv_header_stdc=yes
5483else
5484 ac_cv_header_stdc=no
5485fi
5486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487
5488if test $ac_cv_header_stdc = yes; then
5489 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491/* end confdefs.h. */
5492#include <string.h>
5493
5494_ACEOF
5495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5496 $EGREP "memchr" >/dev/null 2>&1; then :
5497
5498else
5499 ac_cv_header_stdc=no
5500fi
5501rm -f conftest*
5502
5503fi
5504
5505if test $ac_cv_header_stdc = yes; then
5506 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508/* end confdefs.h. */
5509#include <stdlib.h>
5510
5511_ACEOF
5512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5513 $EGREP "free" >/dev/null 2>&1; then :
5514
5515else
5516 ac_cv_header_stdc=no
5517fi
5518rm -f conftest*
5519
5520fi
5521
5522if test $ac_cv_header_stdc = yes; then
5523 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5524 if test "$cross_compiling" = yes; then :
5525 :
5526else
5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528/* end confdefs.h. */
5529#include <ctype.h>
5530#include <stdlib.h>
5531#if ((' ' & 0x0FF) == 0x020)
5532# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5533# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5534#else
5535# define ISLOWER(c) \
5536 (('a' <= (c) && (c) <= 'i') \
5537 || ('j' <= (c) && (c) <= 'r') \
5538 || ('s' <= (c) && (c) <= 'z'))
5539# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5540#endif
5541
5542#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5543int
5544main ()
5545{
5546 int i;
5547 for (i = 0; i < 256; i++)
5548 if (XOR (islower (i), ISLOWER (i))
5549 || toupper (i) != TOUPPER (i))
5550 return 2;
5551 return 0;
5552}
5553_ACEOF
5554if ac_fn_c_try_run "$LINENO"; then :
5555
5556else
5557 ac_cv_header_stdc=no
5558fi
5559rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5560 conftest.$ac_objext conftest.beam conftest.$ac_ext
5561fi
5562
5563fi
5564fi
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5566$as_echo "$ac_cv_header_stdc" >&6; }
5567if test $ac_cv_header_stdc = yes; then
5568
5569$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5570
5571fi
5572
5573# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5574for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5575 inttypes.h stdint.h unistd.h
5576do :
5577 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5578ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5579"
cristy98dddb52010-11-04 00:30:15 +00005580if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005581 cat >>confdefs.h <<_ACEOF
5582#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5583_ACEOF
5584
5585fi
5586
5587done
5588
5589
5590
5591 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 +00005592if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005593 MINIX=yes
5594else
5595 MINIX=
5596fi
5597
5598
5599 if test "$MINIX" = yes; then
5600
5601$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5602
5603
5604$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5605
5606
5607$as_echo "#define _MINIX 1" >>confdefs.h
5608
5609 fi
5610
5611
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5613$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005614if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005615 $as_echo_n "(cached) " >&6
5616else
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618/* end confdefs.h. */
5619
5620# define __EXTENSIONS__ 1
5621 $ac_includes_default
5622int
5623main ()
5624{
5625
5626 ;
5627 return 0;
5628}
5629_ACEOF
5630if ac_fn_c_try_compile "$LINENO"; then :
5631 ac_cv_safe_to_define___extensions__=yes
5632else
5633 ac_cv_safe_to_define___extensions__=no
5634fi
5635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5636fi
5637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5638$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5639 test $ac_cv_safe_to_define___extensions__ = yes &&
5640 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5641
5642 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5643
5644 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5645
5646 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5647
5648 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5649
5650
5651
5652# Check for programs
5653ac_ext=c
5654ac_cpp='$CPP $CPPFLAGS'
5655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5657ac_compiler_gnu=$ac_cv_c_compiler_gnu
5658if test -n "$ac_tool_prefix"; then
5659 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5660set dummy ${ac_tool_prefix}gcc; ac_word=$2
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5662$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005663if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005664 $as_echo_n "(cached) " >&6
5665else
5666 if test -n "$CC"; then
5667 ac_cv_prog_CC="$CC" # Let the user override the test.
5668else
5669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670for as_dir in $PATH
5671do
5672 IFS=$as_save_IFS
5673 test -z "$as_dir" && as_dir=.
5674 for ac_exec_ext in '' $ac_executable_extensions; do
5675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5676 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5678 break 2
5679 fi
5680done
5681 done
5682IFS=$as_save_IFS
5683
5684fi
5685fi
5686CC=$ac_cv_prog_CC
5687if test -n "$CC"; then
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5689$as_echo "$CC" >&6; }
5690else
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692$as_echo "no" >&6; }
5693fi
5694
5695
5696fi
5697if test -z "$ac_cv_prog_CC"; then
5698 ac_ct_CC=$CC
5699 # Extract the first word of "gcc", so it can be a program name with args.
5700set dummy gcc; ac_word=$2
5701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005703if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005704 $as_echo_n "(cached) " >&6
5705else
5706 if test -n "$ac_ct_CC"; then
5707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5708else
5709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710for as_dir in $PATH
5711do
5712 IFS=$as_save_IFS
5713 test -z "$as_dir" && as_dir=.
5714 for ac_exec_ext in '' $ac_executable_extensions; do
5715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5716 ac_cv_prog_ac_ct_CC="gcc"
5717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5718 break 2
5719 fi
5720done
5721 done
5722IFS=$as_save_IFS
5723
5724fi
5725fi
5726ac_ct_CC=$ac_cv_prog_ac_ct_CC
5727if test -n "$ac_ct_CC"; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5729$as_echo "$ac_ct_CC" >&6; }
5730else
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732$as_echo "no" >&6; }
5733fi
5734
5735 if test "x$ac_ct_CC" = x; then
5736 CC=""
5737 else
5738 case $cross_compiling:$ac_tool_warned in
5739yes:)
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5742ac_tool_warned=yes ;;
5743esac
5744 CC=$ac_ct_CC
5745 fi
5746else
5747 CC="$ac_cv_prog_CC"
5748fi
5749
5750if test -z "$CC"; then
5751 if test -n "$ac_tool_prefix"; then
5752 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5753set dummy ${ac_tool_prefix}cc; ac_word=$2
5754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005756if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005757 $as_echo_n "(cached) " >&6
5758else
5759 if test -n "$CC"; then
5760 ac_cv_prog_CC="$CC" # Let the user override the test.
5761else
5762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763for as_dir in $PATH
5764do
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5769 ac_cv_prog_CC="${ac_tool_prefix}cc"
5770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5772 fi
5773done
5774 done
5775IFS=$as_save_IFS
5776
5777fi
5778fi
5779CC=$ac_cv_prog_CC
5780if test -n "$CC"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5782$as_echo "$CC" >&6; }
5783else
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785$as_echo "no" >&6; }
5786fi
5787
5788
5789 fi
5790fi
5791if test -z "$CC"; then
5792 # Extract the first word of "cc", so it can be a program name with args.
5793set dummy cc; ac_word=$2
5794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005796if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005797 $as_echo_n "(cached) " >&6
5798else
5799 if test -n "$CC"; then
5800 ac_cv_prog_CC="$CC" # Let the user override the test.
5801else
5802 ac_prog_rejected=no
5803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804for as_dir in $PATH
5805do
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5811 ac_prog_rejected=yes
5812 continue
5813 fi
5814 ac_cv_prog_CC="cc"
5815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 break 2
5817 fi
5818done
5819 done
5820IFS=$as_save_IFS
5821
5822if test $ac_prog_rejected = yes; then
5823 # We found a bogon in the path, so make sure we never use it.
5824 set dummy $ac_cv_prog_CC
5825 shift
5826 if test $# != 0; then
5827 # We chose a different compiler from the bogus one.
5828 # However, it has the same basename, so the bogon will be chosen
5829 # first if we set CC to just the basename; use the full file name.
5830 shift
5831 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5832 fi
5833fi
5834fi
5835fi
5836CC=$ac_cv_prog_CC
5837if test -n "$CC"; then
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5839$as_echo "$CC" >&6; }
5840else
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842$as_echo "no" >&6; }
5843fi
5844
5845
5846fi
5847if test -z "$CC"; then
5848 if test -n "$ac_tool_prefix"; then
5849 for ac_prog in cl.exe
5850 do
5851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5852set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005855if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005856 $as_echo_n "(cached) " >&6
5857else
5858 if test -n "$CC"; then
5859 ac_cv_prog_CC="$CC" # Let the user override the test.
5860else
5861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862for as_dir in $PATH
5863do
5864 IFS=$as_save_IFS
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5868 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 break 2
5871 fi
5872done
5873 done
5874IFS=$as_save_IFS
5875
5876fi
5877fi
5878CC=$ac_cv_prog_CC
5879if test -n "$CC"; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5881$as_echo "$CC" >&6; }
5882else
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884$as_echo "no" >&6; }
5885fi
5886
5887
5888 test -n "$CC" && break
5889 done
5890fi
5891if test -z "$CC"; then
5892 ac_ct_CC=$CC
5893 for ac_prog in cl.exe
5894do
5895 # Extract the first word of "$ac_prog", so it can be a program name with args.
5896set dummy $ac_prog; ac_word=$2
5897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5898$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005899if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005900 $as_echo_n "(cached) " >&6
5901else
5902 if test -n "$ac_ct_CC"; then
5903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5904else
5905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906for as_dir in $PATH
5907do
5908 IFS=$as_save_IFS
5909 test -z "$as_dir" && as_dir=.
5910 for ac_exec_ext in '' $ac_executable_extensions; do
5911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5912 ac_cv_prog_ac_ct_CC="$ac_prog"
5913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 break 2
5915 fi
5916done
5917 done
5918IFS=$as_save_IFS
5919
5920fi
5921fi
5922ac_ct_CC=$ac_cv_prog_ac_ct_CC
5923if test -n "$ac_ct_CC"; then
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5925$as_echo "$ac_ct_CC" >&6; }
5926else
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928$as_echo "no" >&6; }
5929fi
5930
5931
5932 test -n "$ac_ct_CC" && break
5933done
5934
5935 if test "x$ac_ct_CC" = x; then
5936 CC=""
5937 else
5938 case $cross_compiling:$ac_tool_warned in
5939yes:)
5940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5942ac_tool_warned=yes ;;
5943esac
5944 CC=$ac_ct_CC
5945 fi
5946fi
5947
5948fi
5949
5950
5951test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5952$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005953as_fn_error $? "no acceptable C compiler found in \$PATH
5954See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005955
5956# Provide some information about the compiler.
5957$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5958set X $ac_compile
5959ac_compiler=$2
5960for ac_option in --version -v -V -qversion; do
5961 { { ac_try="$ac_compiler $ac_option >&5"
5962case "(($ac_try" in
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5965esac
5966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5967$as_echo "$ac_try_echo"; } >&5
5968 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5969 ac_status=$?
5970 if test -s conftest.err; then
5971 sed '10a\
5972... rest of stderr output deleted ...
5973 10q' conftest.err >conftest.er1
5974 cat conftest.er1 >&5
5975 fi
5976 rm -f conftest.er1 conftest.err
5977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5978 test $ac_status = 0; }
5979done
5980
5981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5982$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005983if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005984 $as_echo_n "(cached) " >&6
5985else
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987/* end confdefs.h. */
5988
5989int
5990main ()
5991{
5992#ifndef __GNUC__
5993 choke me
5994#endif
5995
5996 ;
5997 return 0;
5998}
5999_ACEOF
6000if ac_fn_c_try_compile "$LINENO"; then :
6001 ac_compiler_gnu=yes
6002else
6003 ac_compiler_gnu=no
6004fi
6005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6006ac_cv_c_compiler_gnu=$ac_compiler_gnu
6007
6008fi
6009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6010$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6011if test $ac_compiler_gnu = yes; then
6012 GCC=yes
6013else
6014 GCC=
6015fi
6016ac_test_CFLAGS=${CFLAGS+set}
6017ac_save_CFLAGS=$CFLAGS
6018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6019$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006020if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006021 $as_echo_n "(cached) " >&6
6022else
6023 ac_save_c_werror_flag=$ac_c_werror_flag
6024 ac_c_werror_flag=yes
6025 ac_cv_prog_cc_g=no
6026 CFLAGS="-g"
6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028/* end confdefs.h. */
6029
6030int
6031main ()
6032{
6033
6034 ;
6035 return 0;
6036}
6037_ACEOF
6038if ac_fn_c_try_compile "$LINENO"; then :
6039 ac_cv_prog_cc_g=yes
6040else
6041 CFLAGS=""
6042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043/* end confdefs.h. */
6044
6045int
6046main ()
6047{
6048
6049 ;
6050 return 0;
6051}
6052_ACEOF
6053if ac_fn_c_try_compile "$LINENO"; then :
6054
6055else
6056 ac_c_werror_flag=$ac_save_c_werror_flag
6057 CFLAGS="-g"
6058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6059/* end confdefs.h. */
6060
6061int
6062main ()
6063{
6064
6065 ;
6066 return 0;
6067}
6068_ACEOF
6069if ac_fn_c_try_compile "$LINENO"; then :
6070 ac_cv_prog_cc_g=yes
6071fi
6072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6073fi
6074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6075fi
6076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077 ac_c_werror_flag=$ac_save_c_werror_flag
6078fi
6079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6080$as_echo "$ac_cv_prog_cc_g" >&6; }
6081if test "$ac_test_CFLAGS" = set; then
6082 CFLAGS=$ac_save_CFLAGS
6083elif test $ac_cv_prog_cc_g = yes; then
6084 if test "$GCC" = yes; then
6085 CFLAGS="-g -O2"
6086 else
6087 CFLAGS="-g"
6088 fi
6089else
6090 if test "$GCC" = yes; then
6091 CFLAGS="-O2"
6092 else
6093 CFLAGS=
6094 fi
6095fi
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6097$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006098if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006099 $as_echo_n "(cached) " >&6
6100else
6101 ac_cv_prog_cc_c89=no
6102ac_save_CC=$CC
6103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104/* end confdefs.h. */
6105#include <stdarg.h>
6106#include <stdio.h>
6107#include <sys/types.h>
6108#include <sys/stat.h>
6109/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6110struct buf { int x; };
6111FILE * (*rcsopen) (struct buf *, struct stat *, int);
6112static char *e (p, i)
6113 char **p;
6114 int i;
6115{
6116 return p[i];
6117}
6118static char *f (char * (*g) (char **, int), char **p, ...)
6119{
6120 char *s;
6121 va_list v;
6122 va_start (v,p);
6123 s = g (p, va_arg (v,int));
6124 va_end (v);
6125 return s;
6126}
6127
6128/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6129 function prototypes and stuff, but not '\xHH' hex character constants.
6130 These don't provoke an error unfortunately, instead are silently treated
6131 as 'x'. The following induces an error, until -std is added to get
6132 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6133 array size at least. It's necessary to write '\x00'==0 to get something
6134 that's true only with -std. */
6135int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6136
6137/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6138 inside strings and character constants. */
6139#define FOO(x) 'x'
6140int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6141
6142int test (int i, double x);
6143struct s1 {int (*f) (int a);};
6144struct s2 {int (*f) (double a);};
6145int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6146int argc;
6147char **argv;
6148int
6149main ()
6150{
6151return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6152 ;
6153 return 0;
6154}
6155_ACEOF
6156for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6157 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6158do
6159 CC="$ac_save_CC $ac_arg"
6160 if ac_fn_c_try_compile "$LINENO"; then :
6161 ac_cv_prog_cc_c89=$ac_arg
6162fi
6163rm -f core conftest.err conftest.$ac_objext
6164 test "x$ac_cv_prog_cc_c89" != "xno" && break
6165done
6166rm -f conftest.$ac_ext
6167CC=$ac_save_CC
6168
6169fi
6170# AC_CACHE_VAL
6171case "x$ac_cv_prog_cc_c89" in
6172 x)
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6174$as_echo "none needed" >&6; } ;;
6175 xno)
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6177$as_echo "unsupported" >&6; } ;;
6178 *)
6179 CC="$CC $ac_cv_prog_cc_c89"
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6181$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6182esac
6183if test "x$ac_cv_prog_cc_c89" != xno; then :
6184
6185fi
6186
6187ac_ext=c
6188ac_cpp='$CPP $CPPFLAGS'
6189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191ac_compiler_gnu=$ac_cv_c_compiler_gnu
6192
cristy73bd4a52010-10-05 11:24:23 +00006193depcc="$CC" am_compiler_list=
6194
6195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6196$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006197if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006198 $as_echo_n "(cached) " >&6
6199else
6200 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6201 # We make a subdir and do the tests there. Otherwise we can end up
6202 # making bogus files that we don't know about and never remove. For
6203 # instance it was reported that on HP-UX the gcc test will end up
6204 # making a dummy file named `D' -- because `-MD' means `put the output
6205 # in D'.
6206 mkdir conftest.dir
6207 # Copy depcomp to subdir because otherwise we won't find it if we're
6208 # using a relative directory.
6209 cp "$am_depcomp" conftest.dir
6210 cd conftest.dir
6211 # We will build objects and dependencies in a subdirectory because
6212 # it helps to detect inapplicable dependency modes. For instance
6213 # both Tru64's cc and ICC support -MD to output dependencies as a
6214 # side effect of compilation, but ICC will put the dependencies in
6215 # the current directory while Tru64 will put them in the object
6216 # directory.
6217 mkdir sub
6218
6219 am_cv_CC_dependencies_compiler_type=none
6220 if test "$am_compiler_list" = ""; then
6221 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6222 fi
6223 am__universal=false
6224 case " $depcc " in #(
6225 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6226 esac
6227
6228 for depmode in $am_compiler_list; do
6229 # Setup a source with many dependencies, because some compilers
6230 # like to wrap large dependency lists on column 80 (with \), and
6231 # we should not choose a depcomp mode which is confused by this.
6232 #
6233 # We need to recreate these files for each test, as the compiler may
6234 # overwrite some of them when testing with obscure command lines.
6235 # This happens at least with the AIX C compiler.
6236 : > sub/conftest.c
6237 for i in 1 2 3 4 5 6; do
6238 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6239 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6240 # Solaris 8's {/usr,}/bin/sh.
6241 touch sub/conftst$i.h
6242 done
6243 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6244
6245 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6246 # mode. It turns out that the SunPro C++ compiler does not properly
6247 # handle `-M -o', and we need to detect this. Also, some Intel
6248 # versions had trouble with output in subdirs
6249 am__obj=sub/conftest.${OBJEXT-o}
6250 am__minus_obj="-o $am__obj"
6251 case $depmode in
6252 gcc)
6253 # This depmode causes a compiler race in universal mode.
6254 test "$am__universal" = false || continue
6255 ;;
6256 nosideeffect)
6257 # after this tag, mechanisms are not by side-effect, so they'll
6258 # only be used when explicitly requested
6259 if test "x$enable_dependency_tracking" = xyes; then
6260 continue
6261 else
6262 break
6263 fi
6264 ;;
6265 msvisualcpp | msvcmsys)
6266 # This compiler won't grok `-c -o', but also, the minuso test has
6267 # not run yet. These depmodes are late enough in the game, and
6268 # so weak that their functioning should not be impacted.
6269 am__obj=conftest.${OBJEXT-o}
6270 am__minus_obj=
6271 ;;
6272 none) break ;;
6273 esac
6274 if depmode=$depmode \
6275 source=sub/conftest.c object=$am__obj \
6276 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6277 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6278 >/dev/null 2>conftest.err &&
6279 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6280 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6281 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6282 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6283 # icc doesn't choke on unknown options, it will just issue warnings
6284 # or remarks (even with -Werror). So we grep stderr for any message
6285 # that says an option was ignored or not supported.
6286 # When given -MP, icc 7.0 and 7.1 complain thusly:
6287 # icc: Command line warning: ignoring option '-M'; no argument required
6288 # The diagnosis changed in icc 8.0:
6289 # icc: Command line remark: option '-MP' not supported
6290 if (grep 'ignoring option' conftest.err ||
6291 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6292 am_cv_CC_dependencies_compiler_type=$depmode
6293 break
6294 fi
6295 fi
6296 done
6297
6298 cd ..
6299 rm -rf conftest.dir
6300else
6301 am_cv_CC_dependencies_compiler_type=none
6302fi
6303
6304fi
6305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6306$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6307CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6308
6309 if
6310 test "x$enable_dependency_tracking" != xno \
6311 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6312 am__fastdepCC_TRUE=
6313 am__fastdepCC_FALSE='#'
6314else
6315 am__fastdepCC_TRUE='#'
6316 am__fastdepCC_FALSE=
6317fi
6318
6319
cristy95646052009-11-28 23:05:30 +00006320ac_ext=cpp
6321ac_cpp='$CXXCPP $CPPFLAGS'
6322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6325if test -z "$CXX"; then
6326 if test -n "$CCC"; then
6327 CXX=$CCC
6328 else
6329 if test -n "$ac_tool_prefix"; then
6330 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6331 do
6332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6333set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006336if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006337 $as_echo_n "(cached) " >&6
6338else
6339 if test -n "$CXX"; then
6340 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6341else
6342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343for as_dir in $PATH
6344do
6345 IFS=$as_save_IFS
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6349 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 break 2
6352 fi
6353done
6354 done
6355IFS=$as_save_IFS
6356
6357fi
6358fi
6359CXX=$ac_cv_prog_CXX
6360if test -n "$CXX"; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6362$as_echo "$CXX" >&6; }
6363else
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365$as_echo "no" >&6; }
6366fi
6367
6368
6369 test -n "$CXX" && break
6370 done
6371fi
6372if test -z "$CXX"; then
6373 ac_ct_CXX=$CXX
6374 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6375do
6376 # Extract the first word of "$ac_prog", so it can be a program name with args.
6377set dummy $ac_prog; ac_word=$2
6378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006380if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006381 $as_echo_n "(cached) " >&6
6382else
6383 if test -n "$ac_ct_CXX"; then
6384 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6385else
6386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387for as_dir in $PATH
6388do
6389 IFS=$as_save_IFS
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6393 ac_cv_prog_ac_ct_CXX="$ac_prog"
6394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 break 2
6396 fi
6397done
6398 done
6399IFS=$as_save_IFS
6400
6401fi
6402fi
6403ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6404if test -n "$ac_ct_CXX"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6406$as_echo "$ac_ct_CXX" >&6; }
6407else
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409$as_echo "no" >&6; }
6410fi
6411
6412
6413 test -n "$ac_ct_CXX" && break
6414done
6415
6416 if test "x$ac_ct_CXX" = x; then
6417 CXX="g++"
6418 else
6419 case $cross_compiling:$ac_tool_warned in
6420yes:)
6421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6423ac_tool_warned=yes ;;
6424esac
6425 CXX=$ac_ct_CXX
6426 fi
6427fi
6428
6429 fi
6430fi
6431# Provide some information about the compiler.
6432$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6433set X $ac_compile
6434ac_compiler=$2
6435for ac_option in --version -v -V -qversion; do
6436 { { ac_try="$ac_compiler $ac_option >&5"
6437case "(($ac_try" in
6438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6440esac
6441eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6442$as_echo "$ac_try_echo"; } >&5
6443 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6444 ac_status=$?
6445 if test -s conftest.err; then
6446 sed '10a\
6447... rest of stderr output deleted ...
6448 10q' conftest.err >conftest.er1
6449 cat conftest.er1 >&5
6450 fi
6451 rm -f conftest.er1 conftest.err
6452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6453 test $ac_status = 0; }
6454done
6455
6456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6457$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006458if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006459 $as_echo_n "(cached) " >&6
6460else
6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462/* end confdefs.h. */
6463
6464int
6465main ()
6466{
6467#ifndef __GNUC__
6468 choke me
6469#endif
6470
6471 ;
6472 return 0;
6473}
6474_ACEOF
6475if ac_fn_cxx_try_compile "$LINENO"; then :
6476 ac_compiler_gnu=yes
6477else
6478 ac_compiler_gnu=no
6479fi
6480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6481ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6482
6483fi
6484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6485$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6486if test $ac_compiler_gnu = yes; then
6487 GXX=yes
6488else
6489 GXX=
6490fi
6491ac_test_CXXFLAGS=${CXXFLAGS+set}
6492ac_save_CXXFLAGS=$CXXFLAGS
6493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6494$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006495if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006496 $as_echo_n "(cached) " >&6
6497else
6498 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6499 ac_cxx_werror_flag=yes
6500 ac_cv_prog_cxx_g=no
6501 CXXFLAGS="-g"
6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503/* end confdefs.h. */
6504
6505int
6506main ()
6507{
6508
6509 ;
6510 return 0;
6511}
6512_ACEOF
6513if ac_fn_cxx_try_compile "$LINENO"; then :
6514 ac_cv_prog_cxx_g=yes
6515else
6516 CXXFLAGS=""
6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518/* end confdefs.h. */
6519
6520int
6521main ()
6522{
6523
6524 ;
6525 return 0;
6526}
6527_ACEOF
6528if ac_fn_cxx_try_compile "$LINENO"; then :
6529
6530else
6531 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6532 CXXFLAGS="-g"
6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534/* end confdefs.h. */
6535
6536int
6537main ()
6538{
6539
6540 ;
6541 return 0;
6542}
6543_ACEOF
6544if ac_fn_cxx_try_compile "$LINENO"; then :
6545 ac_cv_prog_cxx_g=yes
6546fi
6547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548fi
6549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6550fi
6551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6553fi
6554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6555$as_echo "$ac_cv_prog_cxx_g" >&6; }
6556if test "$ac_test_CXXFLAGS" = set; then
6557 CXXFLAGS=$ac_save_CXXFLAGS
6558elif test $ac_cv_prog_cxx_g = yes; then
6559 if test "$GXX" = yes; then
6560 CXXFLAGS="-g -O2"
6561 else
6562 CXXFLAGS="-g"
6563 fi
6564else
6565 if test "$GXX" = yes; then
6566 CXXFLAGS="-O2"
6567 else
6568 CXXFLAGS=
6569 fi
6570fi
6571ac_ext=c
6572ac_cpp='$CPP $CPPFLAGS'
6573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6575ac_compiler_gnu=$ac_cv_c_compiler_gnu
6576
cristy73bd4a52010-10-05 11:24:23 +00006577depcc="$CXX" am_compiler_list=
6578
6579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6580$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006581if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006582 $as_echo_n "(cached) " >&6
6583else
6584 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6585 # We make a subdir and do the tests there. Otherwise we can end up
6586 # making bogus files that we don't know about and never remove. For
6587 # instance it was reported that on HP-UX the gcc test will end up
6588 # making a dummy file named `D' -- because `-MD' means `put the output
6589 # in D'.
6590 mkdir conftest.dir
6591 # Copy depcomp to subdir because otherwise we won't find it if we're
6592 # using a relative directory.
6593 cp "$am_depcomp" conftest.dir
6594 cd conftest.dir
6595 # We will build objects and dependencies in a subdirectory because
6596 # it helps to detect inapplicable dependency modes. For instance
6597 # both Tru64's cc and ICC support -MD to output dependencies as a
6598 # side effect of compilation, but ICC will put the dependencies in
6599 # the current directory while Tru64 will put them in the object
6600 # directory.
6601 mkdir sub
6602
6603 am_cv_CXX_dependencies_compiler_type=none
6604 if test "$am_compiler_list" = ""; then
6605 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6606 fi
6607 am__universal=false
6608 case " $depcc " in #(
6609 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6610 esac
6611
6612 for depmode in $am_compiler_list; do
6613 # Setup a source with many dependencies, because some compilers
6614 # like to wrap large dependency lists on column 80 (with \), and
6615 # we should not choose a depcomp mode which is confused by this.
6616 #
6617 # We need to recreate these files for each test, as the compiler may
6618 # overwrite some of them when testing with obscure command lines.
6619 # This happens at least with the AIX C compiler.
6620 : > sub/conftest.c
6621 for i in 1 2 3 4 5 6; do
6622 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6623 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6624 # Solaris 8's {/usr,}/bin/sh.
6625 touch sub/conftst$i.h
6626 done
6627 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6628
6629 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6630 # mode. It turns out that the SunPro C++ compiler does not properly
6631 # handle `-M -o', and we need to detect this. Also, some Intel
6632 # versions had trouble with output in subdirs
6633 am__obj=sub/conftest.${OBJEXT-o}
6634 am__minus_obj="-o $am__obj"
6635 case $depmode in
6636 gcc)
6637 # This depmode causes a compiler race in universal mode.
6638 test "$am__universal" = false || continue
6639 ;;
6640 nosideeffect)
6641 # after this tag, mechanisms are not by side-effect, so they'll
6642 # only be used when explicitly requested
6643 if test "x$enable_dependency_tracking" = xyes; then
6644 continue
6645 else
6646 break
6647 fi
6648 ;;
6649 msvisualcpp | msvcmsys)
6650 # This compiler won't grok `-c -o', but also, the minuso test has
6651 # not run yet. These depmodes are late enough in the game, and
6652 # so weak that their functioning should not be impacted.
6653 am__obj=conftest.${OBJEXT-o}
6654 am__minus_obj=
6655 ;;
6656 none) break ;;
6657 esac
6658 if depmode=$depmode \
6659 source=sub/conftest.c object=$am__obj \
6660 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6661 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6662 >/dev/null 2>conftest.err &&
6663 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6664 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6665 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6666 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6667 # icc doesn't choke on unknown options, it will just issue warnings
6668 # or remarks (even with -Werror). So we grep stderr for any message
6669 # that says an option was ignored or not supported.
6670 # When given -MP, icc 7.0 and 7.1 complain thusly:
6671 # icc: Command line warning: ignoring option '-M'; no argument required
6672 # The diagnosis changed in icc 8.0:
6673 # icc: Command line remark: option '-MP' not supported
6674 if (grep 'ignoring option' conftest.err ||
6675 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6676 am_cv_CXX_dependencies_compiler_type=$depmode
6677 break
6678 fi
6679 fi
6680 done
6681
6682 cd ..
6683 rm -rf conftest.dir
6684else
6685 am_cv_CXX_dependencies_compiler_type=none
6686fi
6687
6688fi
6689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6690$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6691CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6692
6693 if
6694 test "x$enable_dependency_tracking" != xno \
6695 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6696 am__fastdepCXX_TRUE=
6697 am__fastdepCXX_FALSE='#'
6698else
6699 am__fastdepCXX_TRUE='#'
6700 am__fastdepCXX_FALSE=
6701fi
6702
6703
cristy8b350f62009-11-15 23:12:43 +00006704 case $ac_cv_prog_cc_stdc in #(
6705 no) :
6706 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6707 *) :
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006709$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006710if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006711 $as_echo_n "(cached) " >&6
6712else
6713 ac_cv_prog_cc_c99=no
6714ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006716/* end confdefs.h. */
6717#include <stdarg.h>
6718#include <stdbool.h>
6719#include <stdlib.h>
6720#include <wchar.h>
6721#include <stdio.h>
6722
6723// Check varargs macros. These examples are taken from C99 6.10.3.5.
6724#define debug(...) fprintf (stderr, __VA_ARGS__)
6725#define showlist(...) puts (#__VA_ARGS__)
6726#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6727static void
6728test_varargs_macros (void)
6729{
6730 int x = 1234;
6731 int y = 5678;
6732 debug ("Flag");
6733 debug ("X = %d\n", x);
6734 showlist (The first, second, and third items.);
6735 report (x>y, "x is %d but y is %d", x, y);
6736}
6737
6738// Check long long types.
6739#define BIG64 18446744073709551615ull
6740#define BIG32 4294967295ul
6741#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6742#if !BIG_OK
6743 your preprocessor is broken;
6744#endif
6745#if BIG_OK
6746#else
6747 your preprocessor is broken;
6748#endif
6749static long long int bignum = -9223372036854775807LL;
6750static unsigned long long int ubignum = BIG64;
6751
6752struct incomplete_array
6753{
6754 int datasize;
6755 double data[];
6756};
6757
6758struct named_init {
6759 int number;
6760 const wchar_t *name;
6761 double average;
6762};
6763
6764typedef const char *ccp;
6765
6766static inline int
6767test_restrict (ccp restrict text)
6768{
6769 // See if C++-style comments work.
6770 // Iterate through items via the restricted pointer.
6771 // Also check for declarations in for loops.
6772 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6773 continue;
6774 return 0;
6775}
6776
6777// Check varargs and va_copy.
6778static void
6779test_varargs (const char *format, ...)
6780{
6781 va_list args;
6782 va_start (args, format);
6783 va_list args_copy;
6784 va_copy (args_copy, args);
6785
6786 const char *str;
6787 int number;
6788 float fnumber;
6789
6790 while (*format)
6791 {
6792 switch (*format++)
6793 {
6794 case 's': // string
6795 str = va_arg (args_copy, const char *);
6796 break;
6797 case 'd': // int
6798 number = va_arg (args_copy, int);
6799 break;
6800 case 'f': // float
6801 fnumber = va_arg (args_copy, double);
6802 break;
6803 default:
6804 break;
6805 }
6806 }
6807 va_end (args_copy);
6808 va_end (args);
6809}
6810
6811int
6812main ()
6813{
6814
6815 // Check bool.
6816 _Bool success = false;
6817
6818 // Check restrict.
6819 if (test_restrict ("String literal") == 0)
6820 success = true;
6821 char *restrict newvar = "Another string";
6822
6823 // Check varargs.
6824 test_varargs ("s, d' f .", "string", 65, 34.234);
6825 test_varargs_macros ();
6826
6827 // Check flexible array members.
6828 struct incomplete_array *ia =
6829 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6830 ia->datasize = 10;
6831 for (int i = 0; i < ia->datasize; ++i)
6832 ia->data[i] = i * 1.234;
6833
6834 // Check named initializers.
6835 struct named_init ni = {
6836 .number = 34,
6837 .name = L"Test wide string",
6838 .average = 543.34343,
6839 };
6840
6841 ni.number = 58;
6842
6843 int dynamic_array[ni.number];
6844 dynamic_array[ni.number - 1] = 543;
6845
6846 // work around unused variable warnings
6847 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6848 || dynamic_array[ni.number - 1] != 543);
6849
6850 ;
6851 return 0;
6852}
6853_ACEOF
6854for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6855do
6856 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006857 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006858 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006859fi
cristy3ed852e2009-09-05 21:47:34 +00006860rm -f core conftest.err conftest.$ac_objext
6861 test "x$ac_cv_prog_cc_c99" != "xno" && break
6862done
6863rm -f conftest.$ac_ext
6864CC=$ac_save_CC
6865
6866fi
6867# AC_CACHE_VAL
6868case "x$ac_cv_prog_cc_c99" in
6869 x)
cristy8b350f62009-11-15 23:12:43 +00006870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006871$as_echo "none needed" >&6; } ;;
6872 xno)
cristy8b350f62009-11-15 23:12:43 +00006873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006874$as_echo "unsupported" >&6; } ;;
6875 *)
6876 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006878$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6879esac
cristy8b350f62009-11-15 23:12:43 +00006880if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006881 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6882else
cristy8b350f62009-11-15 23:12:43 +00006883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006884$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006885if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006886 $as_echo_n "(cached) " >&6
6887else
6888 ac_cv_prog_cc_c89=no
6889ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006891/* end confdefs.h. */
6892#include <stdarg.h>
6893#include <stdio.h>
6894#include <sys/types.h>
6895#include <sys/stat.h>
6896/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6897struct buf { int x; };
6898FILE * (*rcsopen) (struct buf *, struct stat *, int);
6899static char *e (p, i)
6900 char **p;
6901 int i;
6902{
6903 return p[i];
6904}
6905static char *f (char * (*g) (char **, int), char **p, ...)
6906{
6907 char *s;
6908 va_list v;
6909 va_start (v,p);
6910 s = g (p, va_arg (v,int));
6911 va_end (v);
6912 return s;
6913}
6914
6915/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6916 function prototypes and stuff, but not '\xHH' hex character constants.
6917 These don't provoke an error unfortunately, instead are silently treated
6918 as 'x'. The following induces an error, until -std is added to get
6919 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6920 array size at least. It's necessary to write '\x00'==0 to get something
6921 that's true only with -std. */
6922int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6923
6924/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6925 inside strings and character constants. */
6926#define FOO(x) 'x'
6927int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6928
6929int test (int i, double x);
6930struct s1 {int (*f) (int a);};
6931struct s2 {int (*f) (double a);};
6932int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6933int argc;
6934char **argv;
6935int
6936main ()
6937{
6938return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6939 ;
6940 return 0;
6941}
6942_ACEOF
6943for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6944 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6945do
6946 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006947 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006948 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006949fi
cristy3ed852e2009-09-05 21:47:34 +00006950rm -f core conftest.err conftest.$ac_objext
6951 test "x$ac_cv_prog_cc_c89" != "xno" && break
6952done
6953rm -f conftest.$ac_ext
6954CC=$ac_save_CC
6955
6956fi
6957# AC_CACHE_VAL
6958case "x$ac_cv_prog_cc_c89" in
6959 x)
cristy8b350f62009-11-15 23:12:43 +00006960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006961$as_echo "none needed" >&6; } ;;
6962 xno)
cristy8b350f62009-11-15 23:12:43 +00006963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006964$as_echo "unsupported" >&6; } ;;
6965 *)
6966 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006968$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6969esac
cristy8b350f62009-11-15 23:12:43 +00006970if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006971 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6972else
6973 ac_cv_prog_cc_stdc=no
6974fi
6975
cristy3ed852e2009-09-05 21:47:34 +00006976fi
cristy3ed852e2009-09-05 21:47:34 +00006977 ;;
6978esac
cristy8b350f62009-11-15 23:12:43 +00006979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006980$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006981 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006982 $as_echo_n "(cached) " >&6
6983fi
6984
cristy8b350f62009-11-15 23:12:43 +00006985 case $ac_cv_prog_cc_stdc in #(
6986 no) :
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6988$as_echo "unsupported" >&6; } ;; #(
6989 '') :
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6991$as_echo "none needed" >&6; } ;; #(
6992 *) :
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006994$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6995esac
6996
cristy3ed852e2009-09-05 21:47:34 +00006997ac_ext=c
6998ac_cpp='$CPP $CPPFLAGS'
6999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7001ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007003$as_echo_n "checking how to run the C preprocessor... " >&6; }
7004# On Suns, sometimes $CPP names a directory.
7005if test -n "$CPP" && test -d "$CPP"; then
7006 CPP=
7007fi
7008if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007009 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007010 $as_echo_n "(cached) " >&6
7011else
7012 # Double quotes because CPP needs to be expanded
7013 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7014 do
7015 ac_preproc_ok=false
7016for ac_c_preproc_warn_flag in '' yes
7017do
7018 # Use a header file that comes with gcc, so configuring glibc
7019 # with a fresh cross-compiler works.
7020 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7021 # <limits.h> exists even on freestanding compilers.
7022 # On the NeXT, cc -E runs the code through the compiler's parser,
7023 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007025/* end confdefs.h. */
7026#ifdef __STDC__
7027# include <limits.h>
7028#else
7029# include <assert.h>
7030#endif
7031 Syntax error
7032_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007033if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007034
cristy8b350f62009-11-15 23:12:43 +00007035else
cristy3ed852e2009-09-05 21:47:34 +00007036 # Broken: fails on valid input.
7037continue
7038fi
cristyda16f162011-02-19 23:52:17 +00007039rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007040
7041 # OK, works on sane cases. Now check whether nonexistent headers
7042 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007044/* end confdefs.h. */
7045#include <ac_nonexistent.h>
7046_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007047if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007048 # Broken: success on invalid input.
7049continue
7050else
cristy3ed852e2009-09-05 21:47:34 +00007051 # Passes both tests.
7052ac_preproc_ok=:
7053break
7054fi
cristyda16f162011-02-19 23:52:17 +00007055rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007056
7057done
7058# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007059rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007060if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007061 break
7062fi
7063
7064 done
7065 ac_cv_prog_CPP=$CPP
7066
7067fi
7068 CPP=$ac_cv_prog_CPP
7069else
7070 ac_cv_prog_CPP=$CPP
7071fi
cristy8b350f62009-11-15 23:12:43 +00007072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007073$as_echo "$CPP" >&6; }
7074ac_preproc_ok=false
7075for ac_c_preproc_warn_flag in '' yes
7076do
7077 # Use a header file that comes with gcc, so configuring glibc
7078 # with a fresh cross-compiler works.
7079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7080 # <limits.h> exists even on freestanding compilers.
7081 # On the NeXT, cc -E runs the code through the compiler's parser,
7082 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007084/* end confdefs.h. */
7085#ifdef __STDC__
7086# include <limits.h>
7087#else
7088# include <assert.h>
7089#endif
7090 Syntax error
7091_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007092if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007093
cristy8b350f62009-11-15 23:12:43 +00007094else
cristy3ed852e2009-09-05 21:47:34 +00007095 # Broken: fails on valid input.
7096continue
7097fi
cristyda16f162011-02-19 23:52:17 +00007098rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007099
7100 # OK, works on sane cases. Now check whether nonexistent headers
7101 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007103/* end confdefs.h. */
7104#include <ac_nonexistent.h>
7105_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007106if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007107 # Broken: success on invalid input.
7108continue
7109else
cristy3ed852e2009-09-05 21:47:34 +00007110 # Passes both tests.
7111ac_preproc_ok=:
7112break
7113fi
cristyda16f162011-02-19 23:52:17 +00007114rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007115
7116done
7117# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007118rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007119if $ac_preproc_ok; then :
7120
cristy3ed852e2009-09-05 21:47:34 +00007121else
cristy8b350f62009-11-15 23:12:43 +00007122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007124as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7125See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007126fi
7127
7128ac_ext=c
7129ac_cpp='$CPP $CPPFLAGS'
7130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7132ac_compiler_gnu=$ac_cv_c_compiler_gnu
7133
cristy73bd4a52010-10-05 11:24:23 +00007134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7135$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007136if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007137 $as_echo_n "(cached) " >&6
7138else
7139 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7140 for ac_i in 1 2 3 4 5 6 7; do
7141 ac_script="$ac_script$as_nl$ac_script"
7142 done
7143 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7144 { ac_script=; unset ac_script;}
7145 if test -z "$SED"; then
7146 ac_path_SED_found=false
7147 # Loop through the user's path and test for each of PROGNAME-LIST
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149for as_dir in $PATH
7150do
7151 IFS=$as_save_IFS
7152 test -z "$as_dir" && as_dir=.
7153 for ac_prog in sed gsed; do
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7156 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7157# Check for GNU ac_path_SED and select it if it is found.
7158 # Check for GNU $ac_path_SED
7159case `"$ac_path_SED" --version 2>&1` in
7160*GNU*)
7161 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7162*)
7163 ac_count=0
7164 $as_echo_n 0123456789 >"conftest.in"
7165 while :
7166 do
7167 cat "conftest.in" "conftest.in" >"conftest.tmp"
7168 mv "conftest.tmp" "conftest.in"
7169 cp "conftest.in" "conftest.nl"
7170 $as_echo '' >> "conftest.nl"
7171 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7172 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7173 as_fn_arith $ac_count + 1 && ac_count=$as_val
7174 if test $ac_count -gt ${ac_path_SED_max-0}; then
7175 # Best one so far, save it but keep looking for a better one
7176 ac_cv_path_SED="$ac_path_SED"
7177 ac_path_SED_max=$ac_count
7178 fi
7179 # 10*(2^10) chars as input seems more than enough
7180 test $ac_count -gt 10 && break
7181 done
7182 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7183esac
7184
7185 $ac_path_SED_found && break 3
7186 done
7187 done
7188 done
7189IFS=$as_save_IFS
7190 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007191 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007192 fi
7193else
7194 ac_cv_path_SED=$SED
7195fi
7196
7197fi
7198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7199$as_echo "$ac_cv_path_SED" >&6; }
7200 SED="$ac_cv_path_SED"
7201 rm -f conftest.sed
7202
7203test -z "$SED" && SED=sed
7204Xsed="$SED -e 1s/^X//"
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7217$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007218if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007219 $as_echo_n "(cached) " >&6
7220else
7221 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7222 then ac_cv_path_FGREP="$GREP -F"
7223 else
7224 if test -z "$FGREP"; then
7225 ac_path_FGREP_found=false
7226 # Loop through the user's path and test for each of PROGNAME-LIST
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7229do
7230 IFS=$as_save_IFS
7231 test -z "$as_dir" && as_dir=.
7232 for ac_prog in fgrep; do
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7235 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7236# Check for GNU ac_path_FGREP and select it if it is found.
7237 # Check for GNU $ac_path_FGREP
7238case `"$ac_path_FGREP" --version 2>&1` in
7239*GNU*)
7240 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7241*)
7242 ac_count=0
7243 $as_echo_n 0123456789 >"conftest.in"
7244 while :
7245 do
7246 cat "conftest.in" "conftest.in" >"conftest.tmp"
7247 mv "conftest.tmp" "conftest.in"
7248 cp "conftest.in" "conftest.nl"
7249 $as_echo 'FGREP' >> "conftest.nl"
7250 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7251 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7252 as_fn_arith $ac_count + 1 && ac_count=$as_val
7253 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7254 # Best one so far, save it but keep looking for a better one
7255 ac_cv_path_FGREP="$ac_path_FGREP"
7256 ac_path_FGREP_max=$ac_count
7257 fi
7258 # 10*(2^10) chars as input seems more than enough
7259 test $ac_count -gt 10 && break
7260 done
7261 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7262esac
7263
7264 $ac_path_FGREP_found && break 3
7265 done
7266 done
7267 done
7268IFS=$as_save_IFS
7269 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007270 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007271 fi
7272else
7273 ac_cv_path_FGREP=$FGREP
7274fi
7275
7276 fi
7277fi
7278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7279$as_echo "$ac_cv_path_FGREP" >&6; }
7280 FGREP="$ac_cv_path_FGREP"
7281
7282
7283test -z "$GREP" && GREP=grep
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
cristy0c60a692010-11-04 01:09:47 +00007301ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7302ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7303ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7304
7305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7306$as_echo_n "checking how to print strings... " >&6; }
7307# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007308if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007309 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7310 ECHO='print -r --'
7311elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7312 ECHO='printf %s\n'
7313else
7314 # Use this function as a fallback that always works.
7315 func_fallback_echo ()
7316 {
7317 eval 'cat <<_LTECHO_EOF
7318$1
7319_LTECHO_EOF'
7320 }
7321 ECHO='func_fallback_echo'
7322fi
7323
7324# func_echo_all arg...
7325# Invoke $ECHO with all args, space-separated.
7326func_echo_all ()
7327{
7328 $ECHO ""
7329}
7330
7331case "$ECHO" in
7332 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7333$as_echo "printf" >&6; } ;;
7334 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7335$as_echo "print -r" >&6; } ;;
7336 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7337$as_echo "cat" >&6; } ;;
7338esac
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
cristy73bd4a52010-10-05 11:24:23 +00007353
7354
7355# Check whether --with-gnu-ld was given.
7356if test "${with_gnu_ld+set}" = set; then :
7357 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7358else
7359 with_gnu_ld=no
7360fi
7361
7362ac_prog=ld
7363if test "$GCC" = yes; then
7364 # Check if gcc -print-prog-name=ld gives a path.
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7366$as_echo_n "checking for ld used by $CC... " >&6; }
7367 case $host in
7368 *-*-mingw*)
7369 # gcc leaves a trailing carriage return which upsets mingw
7370 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7371 *)
7372 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7373 esac
7374 case $ac_prog in
7375 # Accept absolute paths.
7376 [\\/]* | ?:[\\/]*)
7377 re_direlt='/[^/][^/]*/\.\./'
7378 # Canonicalize the pathname of ld
7379 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7380 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7381 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7382 done
7383 test -z "$LD" && LD="$ac_prog"
7384 ;;
7385 "")
7386 # If it fails, then pretend we aren't using GCC.
7387 ac_prog=ld
7388 ;;
7389 *)
7390 # If it is relative, then search for the first ld in PATH.
7391 with_gnu_ld=unknown
7392 ;;
7393 esac
7394elif test "$with_gnu_ld" = yes; then
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7396$as_echo_n "checking for GNU ld... " >&6; }
7397else
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7399$as_echo_n "checking for non-GNU ld... " >&6; }
7400fi
cristyda16f162011-02-19 23:52:17 +00007401if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007402 $as_echo_n "(cached) " >&6
7403else
7404 if test -z "$LD"; then
7405 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7406 for ac_dir in $PATH; do
7407 IFS="$lt_save_ifs"
7408 test -z "$ac_dir" && ac_dir=.
7409 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7410 lt_cv_path_LD="$ac_dir/$ac_prog"
7411 # Check to see if the program is GNU ld. I'd rather use --version,
7412 # but apparently some variants of GNU ld only accept -v.
7413 # Break only if it was the GNU/non-GNU ld that we prefer.
7414 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7415 *GNU* | *'with BFD'*)
7416 test "$with_gnu_ld" != no && break
7417 ;;
7418 *)
7419 test "$with_gnu_ld" != yes && break
7420 ;;
7421 esac
7422 fi
7423 done
7424 IFS="$lt_save_ifs"
7425else
7426 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7427fi
7428fi
7429
7430LD="$lt_cv_path_LD"
7431if test -n "$LD"; then
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7433$as_echo "$LD" >&6; }
7434else
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436$as_echo "no" >&6; }
7437fi
cristy98dddb52010-11-04 00:30:15 +00007438test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7440$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007441if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007442 $as_echo_n "(cached) " >&6
7443else
7444 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7445case `$LD -v 2>&1 </dev/null` in
7446*GNU* | *'with BFD'*)
7447 lt_cv_prog_gnu_ld=yes
7448 ;;
7449*)
7450 lt_cv_prog_gnu_ld=no
7451 ;;
7452esac
7453fi
7454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7455$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7456with_gnu_ld=$lt_cv_prog_gnu_ld
7457
7458
7459
7460
7461
7462
7463
7464
7465
cristy3ed852e2009-09-05 21:47:34 +00007466
cristy837d6dc2010-02-27 01:16:57 +00007467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7468$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007469if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007470 $as_echo_n "(cached) " >&6
7471else
7472 ac_cv_prog_cc_c99=no
7473ac_save_CC=$CC
7474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475/* end confdefs.h. */
7476#include <stdarg.h>
7477#include <stdbool.h>
7478#include <stdlib.h>
7479#include <wchar.h>
7480#include <stdio.h>
7481
7482// Check varargs macros. These examples are taken from C99 6.10.3.5.
7483#define debug(...) fprintf (stderr, __VA_ARGS__)
7484#define showlist(...) puts (#__VA_ARGS__)
7485#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7486static void
7487test_varargs_macros (void)
7488{
7489 int x = 1234;
7490 int y = 5678;
7491 debug ("Flag");
7492 debug ("X = %d\n", x);
7493 showlist (The first, second, and third items.);
7494 report (x>y, "x is %d but y is %d", x, y);
7495}
7496
7497// Check long long types.
7498#define BIG64 18446744073709551615ull
7499#define BIG32 4294967295ul
7500#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7501#if !BIG_OK
7502 your preprocessor is broken;
7503#endif
7504#if BIG_OK
7505#else
7506 your preprocessor is broken;
7507#endif
7508static long long int bignum = -9223372036854775807LL;
7509static unsigned long long int ubignum = BIG64;
7510
7511struct incomplete_array
7512{
7513 int datasize;
7514 double data[];
7515};
7516
7517struct named_init {
7518 int number;
7519 const wchar_t *name;
7520 double average;
7521};
7522
7523typedef const char *ccp;
7524
7525static inline int
7526test_restrict (ccp restrict text)
7527{
7528 // See if C++-style comments work.
7529 // Iterate through items via the restricted pointer.
7530 // Also check for declarations in for loops.
7531 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7532 continue;
7533 return 0;
7534}
7535
7536// Check varargs and va_copy.
7537static void
7538test_varargs (const char *format, ...)
7539{
7540 va_list args;
7541 va_start (args, format);
7542 va_list args_copy;
7543 va_copy (args_copy, args);
7544
7545 const char *str;
7546 int number;
7547 float fnumber;
7548
7549 while (*format)
7550 {
7551 switch (*format++)
7552 {
7553 case 's': // string
7554 str = va_arg (args_copy, const char *);
7555 break;
7556 case 'd': // int
7557 number = va_arg (args_copy, int);
7558 break;
7559 case 'f': // float
7560 fnumber = va_arg (args_copy, double);
7561 break;
7562 default:
7563 break;
7564 }
7565 }
7566 va_end (args_copy);
7567 va_end (args);
7568}
7569
7570int
7571main ()
7572{
7573
7574 // Check bool.
7575 _Bool success = false;
7576
7577 // Check restrict.
7578 if (test_restrict ("String literal") == 0)
7579 success = true;
7580 char *restrict newvar = "Another string";
7581
7582 // Check varargs.
7583 test_varargs ("s, d' f .", "string", 65, 34.234);
7584 test_varargs_macros ();
7585
7586 // Check flexible array members.
7587 struct incomplete_array *ia =
7588 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7589 ia->datasize = 10;
7590 for (int i = 0; i < ia->datasize; ++i)
7591 ia->data[i] = i * 1.234;
7592
7593 // Check named initializers.
7594 struct named_init ni = {
7595 .number = 34,
7596 .name = L"Test wide string",
7597 .average = 543.34343,
7598 };
7599
7600 ni.number = 58;
7601
7602 int dynamic_array[ni.number];
7603 dynamic_array[ni.number - 1] = 543;
7604
7605 // work around unused variable warnings
7606 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7607 || dynamic_array[ni.number - 1] != 543);
7608
7609 ;
7610 return 0;
7611}
7612_ACEOF
7613for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7614do
7615 CC="$ac_save_CC $ac_arg"
7616 if ac_fn_c_try_compile "$LINENO"; then :
7617 ac_cv_prog_cc_c99=$ac_arg
7618fi
7619rm -f core conftest.err conftest.$ac_objext
7620 test "x$ac_cv_prog_cc_c99" != "xno" && break
7621done
7622rm -f conftest.$ac_ext
7623CC=$ac_save_CC
7624
7625fi
7626# AC_CACHE_VAL
7627case "x$ac_cv_prog_cc_c99" in
7628 x)
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7630$as_echo "none needed" >&6; } ;;
7631 xno)
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7633$as_echo "unsupported" >&6; } ;;
7634 *)
7635 CC="$CC $ac_cv_prog_cc_c99"
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7637$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7638esac
7639if test "x$ac_cv_prog_cc_c99" != xno; then :
7640
7641fi
7642
7643
cristy73bd4a52010-10-05 11:24:23 +00007644if test "x$CC" != xcc; then
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7646$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7647else
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7649$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7650fi
7651set dummy $CC; ac_cc=`$as_echo "$2" |
7652 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007653if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007654 $as_echo_n "(cached) " >&6
7655else
cristy73bd4a52010-10-05 11:24:23 +00007656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657/* end confdefs.h. */
7658
7659int
7660main ()
7661{
7662
7663 ;
7664 return 0;
7665}
7666_ACEOF
7667# Make sure it works both with $CC and with simple cc.
7668# We do the test twice because some compilers refuse to overwrite an
7669# existing .o file with -o, though they will create one.
7670ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7671rm -f conftest2.*
7672if { { case "(($ac_try" in
7673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7674 *) ac_try_echo=$ac_try;;
7675esac
7676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7677$as_echo "$ac_try_echo"; } >&5
7678 (eval "$ac_try") 2>&5
7679 ac_status=$?
7680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7681 test $ac_status = 0; } &&
7682 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7684 *) ac_try_echo=$ac_try;;
7685esac
7686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7687$as_echo "$ac_try_echo"; } >&5
7688 (eval "$ac_try") 2>&5
7689 ac_status=$?
7690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7691 test $ac_status = 0; };
7692then
7693 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7694 if test "x$CC" != xcc; then
7695 # Test first that cc exists at all.
7696 if { ac_try='cc -c conftest.$ac_ext >&5'
7697 { { 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; }; }; then
7707 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7708 rm -f conftest2.*
7709 if { { case "(($ac_try" in
7710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7711 *) ac_try_echo=$ac_try;;
7712esac
7713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7714$as_echo "$ac_try_echo"; } >&5
7715 (eval "$ac_try") 2>&5
7716 ac_status=$?
7717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7718 test $ac_status = 0; } &&
7719 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7721 *) ac_try_echo=$ac_try;;
7722esac
7723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7724$as_echo "$ac_try_echo"; } >&5
7725 (eval "$ac_try") 2>&5
7726 ac_status=$?
7727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7728 test $ac_status = 0; };
7729 then
7730 # cc works too.
7731 :
7732 else
7733 # cc exists but doesn't like -o.
7734 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7735 fi
7736 fi
7737 fi
7738else
7739 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7740fi
7741rm -f core conftest*
7742
7743fi
7744if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7746$as_echo "yes" >&6; }
7747else
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749$as_echo "no" >&6; }
7750
7751$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7752
7753fi
7754
7755# FIXME: we rely on the cache variable name because
7756# there is no other way.
7757set dummy $CC
7758am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7759eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7760if test "$am_t" != yes; then
7761 # Losing compiler, so override with the script.
7762 # FIXME: It is wrong to rewrite CC.
7763 # But if we don't then we get into trouble of one sort or another.
7764 # A longer-term fix would be to have automake use am__CC in this case,
7765 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7766 CC="$am_aux_dir/compile $CC"
7767fi
7768
7769
7770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7771$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007772if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007773 $as_echo_n "(cached) " >&6
7774else
7775 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007776 ac_ext=c
7777ac_cpp='$CPP $CPPFLAGS'
7778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7780ac_compiler_gnu=$ac_cv_c_compiler_gnu
7781
7782 ac_save_CFLAGS="$CFLAGS"
7783for 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" #
7784do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786/* end confdefs.h. */
7787
7788int
7789main ()
7790{
cristy24fc1fe2010-10-23 21:13:01 +00007791
cristy73bd4a52010-10-05 11:24:23 +00007792 ;
7793 return 0;
7794}
7795_ACEOF
7796if ac_fn_c_try_compile "$LINENO"; then :
7797 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7798fi
7799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800done
7801 CFLAGS="$ac_save_CFLAGS"
7802 ac_ext=c
7803ac_cpp='$CPP $CPPFLAGS'
7804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7806ac_compiler_gnu=$ac_cv_c_compiler_gnu
7807
7808
7809fi
7810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7811$as_echo "$ac_cv_cflags_warn_all" >&6; }
7812case ".$ac_cv_cflags_warn_all" in
7813 .ok|.ok,*) ;;
7814 .|.no|.no,*)
7815 ;;
7816 *)
7817 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7818 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7819 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7820 ac_status=$?
7821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7822 test $ac_status = 0; }
7823 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7824 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7825 ac_status=$?
7826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7827 test $ac_status = 0; }
7828 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7829 fi
7830 ;;
nicolas6237c462010-10-05 06:11:49 +00007831esac
cristy3ed852e2009-09-05 21:47:34 +00007832
cristya0b81c32010-01-22 02:54:33 +00007833
7834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7835$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7836set x ${MAKE-make}
7837ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007838if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007839 $as_echo_n "(cached) " >&6
7840else
7841 cat >conftest.make <<\_ACEOF
7842SHELL = /bin/sh
7843all:
7844 @echo '@@@%%%=$(MAKE)=@@@%%%'
7845_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007846# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007847case `${MAKE-make} -f conftest.make 2>/dev/null` in
7848 *@@@%%%=?*=@@@%%%*)
7849 eval ac_cv_prog_make_${ac_make}_set=yes;;
7850 *)
7851 eval ac_cv_prog_make_${ac_make}_set=no;;
7852esac
7853rm -f conftest.make
7854fi
7855if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7857$as_echo "yes" >&6; }
7858 SET_MAKE=
7859else
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861$as_echo "no" >&6; }
7862 SET_MAKE="MAKE=${MAKE-make}"
7863fi
7864
cristy8b350f62009-11-15 23:12:43 +00007865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007866$as_echo_n "checking whether ln -s works... " >&6; }
7867LN_S=$as_ln_s
7868if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007870$as_echo "yes" >&6; }
7871else
cristy8b350f62009-11-15 23:12:43 +00007872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007873$as_echo "no, using $LN_S" >&6; }
7874fi
7875
cristy73bd4a52010-10-05 11:24:23 +00007876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7877$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7878
7879# Check whether --with-dmalloc was given.
7880if test "${with_dmalloc+set}" = set; then :
7881 withval=$with_dmalloc; if test "$withval" = yes; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7883$as_echo "yes" >&6; }
7884
7885$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7886
7887 LIBS="$LIBS -ldmalloc"
7888 LDFLAGS="$LDFLAGS -g"
7889else
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891$as_echo "no" >&6; }
7892fi
7893else
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895$as_echo "no" >&6; }
7896fi
7897
7898
7899
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7901$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007902if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007903 $as_echo_n "(cached) " >&6
7904else
7905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7906/* end confdefs.h. */
7907#include <stdlib.h>
7908 static void foo(void) __attribute__ ((unused));
7909 static void
7910 foo(void) {
7911 exit(1);
7912 }
7913
7914int
7915main ()
7916{
7917
7918 ;
7919 return 0;
7920}
7921_ACEOF
7922if ac_fn_c_try_compile "$LINENO"; then :
7923 ax_cv___attribute__=yes
7924else
7925 ax_cv___attribute__=no
7926
7927fi
7928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7929
7930fi
7931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7932$as_echo "$ax_cv___attribute__" >&6; }
7933 if test "$ax_cv___attribute__" = "yes"; then
7934
7935$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7936
7937 fi
7938
7939
7940
7941if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7942 if test -n "$ac_tool_prefix"; then
7943 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7944set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007947if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007948 $as_echo_n "(cached) " >&6
7949else
7950 case $PKG_CONFIG in
7951 [\\/]* | ?:[\\/]*)
7952 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7953 ;;
7954 *)
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956for as_dir in $PATH
7957do
7958 IFS=$as_save_IFS
7959 test -z "$as_dir" && as_dir=.
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7962 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964 break 2
7965 fi
7966done
7967 done
7968IFS=$as_save_IFS
7969
7970 ;;
7971esac
7972fi
7973PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7974if test -n "$PKG_CONFIG"; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7976$as_echo "$PKG_CONFIG" >&6; }
7977else
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979$as_echo "no" >&6; }
7980fi
7981
7982
7983fi
7984if test -z "$ac_cv_path_PKG_CONFIG"; then
7985 ac_pt_PKG_CONFIG=$PKG_CONFIG
7986 # Extract the first word of "pkg-config", so it can be a program name with args.
7987set dummy pkg-config; ac_word=$2
7988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7989$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007990if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007991 $as_echo_n "(cached) " >&6
7992else
7993 case $ac_pt_PKG_CONFIG in
7994 [\\/]* | ?:[\\/]*)
7995 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7996 ;;
7997 *)
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999for as_dir in $PATH
8000do
8001 IFS=$as_save_IFS
8002 test -z "$as_dir" && as_dir=.
8003 for ac_exec_ext in '' $ac_executable_extensions; do
8004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8005 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8007 break 2
8008 fi
8009done
8010 done
8011IFS=$as_save_IFS
8012
8013 ;;
8014esac
8015fi
8016ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8017if test -n "$ac_pt_PKG_CONFIG"; then
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8019$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8020else
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022$as_echo "no" >&6; }
8023fi
8024
8025 if test "x$ac_pt_PKG_CONFIG" = x; then
8026 PKG_CONFIG=""
8027 else
8028 case $cross_compiling:$ac_tool_warned in
8029yes:)
8030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8032ac_tool_warned=yes ;;
8033esac
8034 PKG_CONFIG=$ac_pt_PKG_CONFIG
8035 fi
8036else
8037 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8038fi
8039
8040fi
8041if test -n "$PKG_CONFIG"; then
8042 _pkg_min_version=0.9.0
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8044$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8045 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8047$as_echo "yes" >&6; }
8048 else
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050$as_echo "no" >&6; }
8051 PKG_CONFIG=""
8052 fi
8053
8054fi
cristy3ed852e2009-09-05 21:47:34 +00008055
8056#
cristy3ed852e2009-09-05 21:47:34 +00008057# Enable run-time checking.
8058#
8059# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008060if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008061 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8062else
8063 enable_bounds_checking='no'
8064fi
8065
8066
8067if test "$enable_bounds_checking" = yes; then
8068
cristy8b350f62009-11-15 23:12:43 +00008069$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008070
8071fi
8072
8073#
8074# Tests for Windows
8075#
8076
8077
cristy73bd4a52010-10-05 11:24:23 +00008078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8079$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008080if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008081 $as_echo_n "(cached) " >&6
8082else
8083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084/* end confdefs.h. */
8085
8086int
8087main ()
8088{
8089#ifndef _MSC_VER
8090 choke me
8091#endif
8092
8093 ;
8094 return 0;
8095}
8096_ACEOF
8097if ac_fn_c_try_compile "$LINENO"; then :
8098 ax_compiler_ms=yes
8099else
8100 ax_compiler_ms=no
8101fi
8102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8103ax_cv_c_compiler_ms=$ax_compiler_ms
8104
8105fi
8106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8107$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008108
8109GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008110native_win32_build='no'
8111cygwin_build='no'
8112case "${host_os}" in
8113 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008114 cygwin_build='yes'
8115 GDI32_LIBS='-lgdi32'
8116 ;;
8117 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008118 native_win32_build='yes'
8119 GDI32_LIBS='-lgdi32'
8120 ;;
8121esac
8122if test "${GDI32_LIBS}x" != 'x'; then
8123
cristy8b350f62009-11-15 23:12:43 +00008124$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008125
8126fi
8127
cristy73bd4a52010-10-05 11:24:23 +00008128 if test "${GDI32_LIBS}x" != 'x' ; then
8129 WINGDI32_DELEGATE_TRUE=
8130 WINGDI32_DELEGATE_FALSE='#'
8131else
8132 WINGDI32_DELEGATE_TRUE='#'
8133 WINGDI32_DELEGATE_FALSE=
8134fi
8135
8136 if test "${native_win32_build}" = 'yes' ; then
8137 WIN32_NATIVE_BUILD_TRUE=
8138 WIN32_NATIVE_BUILD_FALSE='#'
8139else
8140 WIN32_NATIVE_BUILD_TRUE='#'
8141 WIN32_NATIVE_BUILD_FALSE=
8142fi
8143
8144 if test "${cygwin_build}" = 'yes' ; then
8145 CYGWIN_BUILD_TRUE=
8146 CYGWIN_BUILD_FALSE='#'
8147else
8148 CYGWIN_BUILD_TRUE='#'
8149 CYGWIN_BUILD_FALSE=
8150fi
8151
8152 if test "x${CC}" = 'xcl.exe' ; then
8153 USING_CL_TRUE=
8154 USING_CL_FALSE='#'
8155else
8156 USING_CL_TRUE='#'
8157 USING_CL_FALSE=
8158fi
8159
cristy3ed852e2009-09-05 21:47:34 +00008160
8161WinPathScript="${srcdirfull}/winpath.sh"
8162
8163
8164#
8165# Compiler flags tweaks
8166#
8167if test "${GCC}" != "yes"; then
8168 case "${host}" in
8169 *-*-hpux* )
8170 # aCC: HP ANSI C++ B3910B A.03.34
8171 CFLAGS="${CFLAGS} -Wp,-H30000"
8172 if test -n "${CXXFLAGS}"; then
8173 CXXFLAGS='-AA'
8174 else
8175 CXXFLAGS="${CXXFLAGS} -AA"
8176 fi
8177 ;;
8178 *-dec-osf5.* )
8179 # Compaq alphaev68-dec-osf5.1 compiler
8180 if test -n "${CXXFLAGS}"; then
8181 CXXFLAGS='-std strict_ansi -noimplicit_include'
8182 else
8183 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8184 fi
8185 esac
8186fi
8187
8188# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008190$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008191if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008192 $as_echo_n "(cached) " >&6
8193else
8194
8195im_cv_ld_lazyload='none'
8196case "${host}" in
8197 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8198 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8199 im_cv_ld_lazyload='-Wl,-zlazyload'
8200 fi
8201 ;;
8202esac
8203
8204fi
cristy8b350f62009-11-15 23:12:43 +00008205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008206$as_echo "$im_cv_ld_lazyload" >&6; }
8207if test "${im_cv_ld_lazyload}" != 'none' ; then
8208 if test -z "${LDFLAGS}" ; then
8209 LDFLAGS="${im_cv_ld_lazyload}"
8210 else
8211 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8212 fi
8213fi
8214
8215case "$host" in
8216*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008217 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008218if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008219 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8220else
8221 build_osxuniversal=no
8222fi
8223
8224
8225 if test "${build_osxuniversal}" != no ; then
8226 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008227 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008228Please re-run configure with these options:
8229 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008230 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008231 fi
8232 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8233 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8234 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8235 fi
8236 ;;
8237esac
8238
8239# Enable support for threads
8240
8241# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008242if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008243 withval=$with_threads; with_threads=$withval
8244else
8245 with_threads='yes'
8246fi
8247
8248
8249have_threads=no
8250if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008251
8252
cristy73bd4a52010-10-05 11:24:23 +00008253ac_ext=c
8254ac_cpp='$CPP $CPPFLAGS'
8255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8257ac_compiler_gnu=$ac_cv_c_compiler_gnu
8258
8259ax_pthread_ok=no
8260
8261# We used to check for pthread.h first, but this fails if pthread.h
8262# requires special compiler flags (e.g. on True64 or Sequent).
8263# It gets checked for in the link test anyway.
8264
8265# First of all, check if the user has set any of the PTHREAD_LIBS,
8266# etcetera environment variables, and if threads linking works using
8267# them:
8268if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8269 save_CFLAGS="$CFLAGS"
8270 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8271 save_LIBS="$LIBS"
8272 LIBS="$PTHREAD_LIBS $LIBS"
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8274$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8276/* end confdefs.h. */
8277
8278/* Override any GCC internal prototype to avoid an error.
8279 Use char because int might match the return type of a GCC
8280 builtin and then its argument prototype would still apply. */
8281#ifdef __cplusplus
8282extern "C"
8283#endif
8284char pthread_join ();
8285int
8286main ()
8287{
8288return pthread_join ();
8289 ;
8290 return 0;
8291}
8292_ACEOF
8293if ac_fn_c_try_link "$LINENO"; then :
8294 ax_pthread_ok=yes
8295fi
8296rm -f core conftest.err conftest.$ac_objext \
8297 conftest$ac_exeext conftest.$ac_ext
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8299$as_echo "$ax_pthread_ok" >&6; }
8300 if test x"$ax_pthread_ok" = xno; then
8301 PTHREAD_LIBS=""
8302 PTHREAD_CFLAGS=""
8303 fi
8304 LIBS="$save_LIBS"
8305 CFLAGS="$save_CFLAGS"
8306fi
8307
8308# We must check for the threads library under a number of different
8309# names; the ordering is very important because some systems
8310# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8311# libraries is broken (non-POSIX).
8312
8313# Create a list of thread flags to try. Items starting with a "-" are
8314# C compiler flags, and other items are library names, except for "none"
8315# which indicates that we try without any flags at all, and "pthread-config"
8316# which is a program returning the flags for the Pth emulation library.
8317
8318ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8319
8320# The ordering *is* (sometimes) important. Some notes on the
8321# individual items follow:
8322
8323# pthreads: AIX (must check this before -lpthread)
8324# none: in case threads are in libc; should be tried before -Kthread and
8325# other compiler flags to prevent continual compiler warnings
8326# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8327# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8328# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8329# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8330# -pthreads: Solaris/gcc
8331# -mthreads: Mingw32/gcc, Lynx/gcc
8332# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8333# doesn't hurt to check since this sometimes defines pthreads too;
8334# also defines -D_REENTRANT)
8335# ... -mt is also the pthreads flag for HP/aCC
8336# pthread: Linux, etcetera
8337# --thread-safe: KAI C++
8338# pthread-config: use pthread-config program (for GNU Pth library)
8339
8340case "${host_cpu}-${host_os}" in
8341 *solaris*)
8342
8343 # On Solaris (at least, for some versions), libc contains stubbed
8344 # (non-functional) versions of the pthreads routines, so link-based
8345 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8346 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8347 # a function called by this macro, so we could check for that, but
8348 # who knows whether they'll stub that too in a future libc.) So,
8349 # we'll just look for -pthreads and -lpthread first:
8350
8351 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8352 ;;
8353
cristya316db12011-10-24 00:49:45 +00008354 *-darwin*)
8355 ax_pthread_flags="-pthread $ax_pthread_flags"
8356 ;;
cristy73bd4a52010-10-05 11:24:23 +00008357esac
8358
8359if test x"$ax_pthread_ok" = xno; then
8360for flag in $ax_pthread_flags; do
8361
8362 case $flag in
8363 none)
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8365$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8366 ;;
8367
8368 -*)
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8370$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8371 PTHREAD_CFLAGS="$flag"
8372 ;;
8373
cristya316db12011-10-24 00:49:45 +00008374 pthread-config)
8375 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008376set dummy pthread-config; ac_word=$2
8377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8378$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008379if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008380 $as_echo_n "(cached) " >&6
8381else
8382 if test -n "$ax_pthread_config"; then
8383 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8384else
8385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8386for as_dir in $PATH
8387do
8388 IFS=$as_save_IFS
8389 test -z "$as_dir" && as_dir=.
8390 for ac_exec_ext in '' $ac_executable_extensions; do
8391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8392 ac_cv_prog_ax_pthread_config="yes"
8393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8394 break 2
8395 fi
8396done
8397 done
8398IFS=$as_save_IFS
8399
8400 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8401fi
8402fi
8403ax_pthread_config=$ac_cv_prog_ax_pthread_config
8404if test -n "$ax_pthread_config"; then
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8406$as_echo "$ax_pthread_config" >&6; }
8407else
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409$as_echo "no" >&6; }
8410fi
8411
8412
cristya316db12011-10-24 00:49:45 +00008413 if test x"$ax_pthread_config" = xno; then continue; fi
8414 PTHREAD_CFLAGS="`pthread-config --cflags`"
8415 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8416 ;;
cristy73bd4a52010-10-05 11:24:23 +00008417
8418 *)
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8420$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8421 PTHREAD_LIBS="-l$flag"
8422 ;;
8423 esac
8424
8425 save_LIBS="$LIBS"
8426 save_CFLAGS="$CFLAGS"
8427 LIBS="$PTHREAD_LIBS $LIBS"
8428 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8429
8430 # Check for various functions. We must include pthread.h,
8431 # since some functions may be macros. (On the Sequent, we
8432 # need a special flag -Kthread to make this header compile.)
8433 # We check for pthread_join because it is in -lpthread on IRIX
8434 # while pthread_create is in libc. We check for pthread_attr_init
8435 # due to DEC craziness with -lpthreads. We check for
8436 # pthread_cleanup_push because it is one of the few pthread
8437 # functions on Solaris that doesn't have a non-functional libc stub.
8438 # We try pthread_create on general principles.
8439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440/* end confdefs.h. */
8441#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00008442 static void routine(void *a) { a = 0; }
8443 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00008444int
8445main ()
8446{
8447pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00008448 pthread_create(&th, 0, start_routine, 0);
8449 pthread_join(th, 0);
8450 pthread_attr_init(&attr);
8451 pthread_cleanup_push(routine, 0);
8452 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008453 ;
8454 return 0;
8455}
8456_ACEOF
8457if ac_fn_c_try_link "$LINENO"; then :
8458 ax_pthread_ok=yes
8459fi
8460rm -f core conftest.err conftest.$ac_objext \
8461 conftest$ac_exeext conftest.$ac_ext
8462
8463 LIBS="$save_LIBS"
8464 CFLAGS="$save_CFLAGS"
8465
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8467$as_echo "$ax_pthread_ok" >&6; }
8468 if test "x$ax_pthread_ok" = xyes; then
8469 break;
8470 fi
8471
8472 PTHREAD_LIBS=""
8473 PTHREAD_CFLAGS=""
8474done
8475fi
8476
8477# Various other checks:
8478if test "x$ax_pthread_ok" = xyes; then
8479 save_LIBS="$LIBS"
8480 LIBS="$PTHREAD_LIBS $LIBS"
8481 save_CFLAGS="$CFLAGS"
8482 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8483
8484 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00008485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00008486$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00008487 attr_name=unknown
8488 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00008490/* end confdefs.h. */
8491#include <pthread.h>
8492int
8493main ()
8494{
cristya316db12011-10-24 00:49:45 +00008495int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008496 ;
8497 return 0;
8498}
8499_ACEOF
8500if ac_fn_c_try_link "$LINENO"; then :
8501 attr_name=$attr; break
8502fi
8503rm -f core conftest.err conftest.$ac_objext \
8504 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00008505 done
cristy73bd4a52010-10-05 11:24:23 +00008506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8507$as_echo "$attr_name" >&6; }
8508 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8509
8510cat >>confdefs.h <<_ACEOF
8511#define PTHREAD_CREATE_JOINABLE $attr_name
8512_ACEOF
8513
8514 fi
8515
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8517$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8518 flag=no
8519 case "${host_cpu}-${host_os}" in
8520 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8521 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8522 esac
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8524$as_echo "${flag}" >&6; }
8525 if test "x$flag" != xno; then
8526 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8527 fi
8528
cristya316db12011-10-24 00:49:45 +00008529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8530$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8531if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8532 $as_echo_n "(cached) " >&6
8533else
8534
8535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536/* end confdefs.h. */
8537
8538 #include <pthread.h>
8539int
8540main ()
8541{
8542int i = PTHREAD_PRIO_INHERIT;
8543 ;
8544 return 0;
8545}
8546_ACEOF
8547if ac_fn_c_try_link "$LINENO"; then :
8548 ax_cv_PTHREAD_PRIO_INHERIT=yes
8549else
8550 ax_cv_PTHREAD_PRIO_INHERIT=no
8551fi
8552rm -f core conftest.err conftest.$ac_objext \
8553 conftest$ac_exeext conftest.$ac_ext
8554
8555fi
8556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8557$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8558 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
8559
8560$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8561
8562fi
8563
cristy73bd4a52010-10-05 11:24:23 +00008564 LIBS="$save_LIBS"
8565 CFLAGS="$save_CFLAGS"
8566
8567 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00008568 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00008569 for ac_prog in xlc_r cc_r
8570do
8571 # Extract the first word of "$ac_prog", so it can be a program name with args.
8572set dummy $ac_prog; ac_word=$2
8573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8574$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008575if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008576 $as_echo_n "(cached) " >&6
8577else
8578 if test -n "$PTHREAD_CC"; then
8579 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8580else
8581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582for as_dir in $PATH
8583do
8584 IFS=$as_save_IFS
8585 test -z "$as_dir" && as_dir=.
8586 for ac_exec_ext in '' $ac_executable_extensions; do
8587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8588 ac_cv_prog_PTHREAD_CC="$ac_prog"
8589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8590 break 2
8591 fi
8592done
8593 done
8594IFS=$as_save_IFS
8595
8596fi
8597fi
8598PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8599if test -n "$PTHREAD_CC"; then
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8601$as_echo "$PTHREAD_CC" >&6; }
8602else
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8604$as_echo "no" >&6; }
8605fi
8606
8607
8608 test -n "$PTHREAD_CC" && break
8609done
8610test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8611
8612 else
8613 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00008614 fi
cristy73bd4a52010-10-05 11:24:23 +00008615else
8616 PTHREAD_CC="$CC"
8617fi
8618
8619
8620
8621
8622
8623# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8624if test x"$ax_pthread_ok" = xyes; then
8625
8626$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8627
8628 :
8629else
8630 ax_pthread_ok=no
8631
8632fi
8633ac_ext=c
8634ac_cpp='$CPP $CPPFLAGS'
8635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8637ac_compiler_gnu=$ac_cv_c_compiler_gnu
8638
8639
cristy7acf8fb2010-09-23 19:58:53 +00008640 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008641 have_threads=yes
8642 DEF_THREAD="$PTHREAD_CFLAGS"
8643 CFLAGS="$CFLAGS $DEF_THREAD"
8644 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8645 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008646 { $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 +00008647$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8648 CC="$PTHREAD_CC"
8649 fi
cristy55bf91c2010-09-24 00:29:41 +00008650
8651$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8652
cristy3ed852e2009-09-05 21:47:34 +00008653 fi
8654fi
8655
8656# Enable support for OpenMP
8657if test "$have_threads" != 'yes'; then
8658 ac_cv_prog_c_openmp=unsupported
8659fi
8660
8661 OPENMP_CFLAGS=
8662 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008663if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008664 enableval=$enable_openmp;
8665fi
8666
8667 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008669$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008670if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008671 $as_echo_n "(cached) " >&6
8672else
cristy8b350f62009-11-15 23:12:43 +00008673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8674/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008675
8676#ifndef _OPENMP
8677 choke me
8678#endif
8679#include <omp.h>
8680int main () { return omp_get_num_threads (); }
8681
8682_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008683if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008684 ac_cv_prog_c_openmp='none needed'
8685else
cristy8b350f62009-11-15 23:12:43 +00008686 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008687 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8688 ac_save_CFLAGS=$CFLAGS
8689 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8691/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008692
8693#ifndef _OPENMP
8694 choke me
8695#endif
8696#include <omp.h>
8697int main () { return omp_get_num_threads (); }
8698
8699_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008700if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008701 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008702fi
cristy8b350f62009-11-15 23:12:43 +00008703rm -f core conftest.err conftest.$ac_objext \
8704 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008705 CFLAGS=$ac_save_CFLAGS
8706 if test "$ac_cv_prog_c_openmp" != unsupported; then
8707 break
8708 fi
8709 done
8710fi
cristy8b350f62009-11-15 23:12:43 +00008711rm -f core conftest.err conftest.$ac_objext \
8712 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008713fi
cristy8b350f62009-11-15 23:12:43 +00008714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008715$as_echo "$ac_cv_prog_c_openmp" >&6; }
8716 case $ac_cv_prog_c_openmp in #(
8717 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008718 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008719 *)
cristy8b350f62009-11-15 23:12:43 +00008720 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008721 esac
8722 fi
8723
8724
8725CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8726MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8727
cristy391f1ce2010-09-09 17:23:28 +00008728if test "$enable_openmp" != no; then
8729 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8730 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8731 fi
8732fi
cristy3ed852e2009-09-05 21:47:34 +00008733
cristy736173a2009-09-20 21:18:22 +00008734# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008735
8736
cristy73bd4a52010-10-05 11:24:23 +00008737ac_ext=c
8738ac_cpp='$CPP $CPPFLAGS'
8739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8741ac_compiler_gnu=$ac_cv_c_compiler_gnu
8742
8743ax_pthread_ok=no
8744
8745# We used to check for pthread.h first, but this fails if pthread.h
8746# requires special compiler flags (e.g. on True64 or Sequent).
8747# It gets checked for in the link test anyway.
8748
8749# First of all, check if the user has set any of the PTHREAD_LIBS,
8750# etcetera environment variables, and if threads linking works using
8751# them:
8752if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8753 save_CFLAGS="$CFLAGS"
8754 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8755 save_LIBS="$LIBS"
8756 LIBS="$PTHREAD_LIBS $LIBS"
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8758$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760/* end confdefs.h. */
8761
8762/* Override any GCC internal prototype to avoid an error.
8763 Use char because int might match the return type of a GCC
8764 builtin and then its argument prototype would still apply. */
8765#ifdef __cplusplus
8766extern "C"
8767#endif
8768char pthread_join ();
8769int
8770main ()
8771{
8772return pthread_join ();
8773 ;
8774 return 0;
8775}
8776_ACEOF
8777if ac_fn_c_try_link "$LINENO"; then :
8778 ax_pthread_ok=yes
8779fi
8780rm -f core conftest.err conftest.$ac_objext \
8781 conftest$ac_exeext conftest.$ac_ext
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8783$as_echo "$ax_pthread_ok" >&6; }
8784 if test x"$ax_pthread_ok" = xno; then
8785 PTHREAD_LIBS=""
8786 PTHREAD_CFLAGS=""
8787 fi
8788 LIBS="$save_LIBS"
8789 CFLAGS="$save_CFLAGS"
8790fi
8791
8792# We must check for the threads library under a number of different
8793# names; the ordering is very important because some systems
8794# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8795# libraries is broken (non-POSIX).
8796
8797# Create a list of thread flags to try. Items starting with a "-" are
8798# C compiler flags, and other items are library names, except for "none"
8799# which indicates that we try without any flags at all, and "pthread-config"
8800# which is a program returning the flags for the Pth emulation library.
8801
8802ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8803
8804# The ordering *is* (sometimes) important. Some notes on the
8805# individual items follow:
8806
8807# pthreads: AIX (must check this before -lpthread)
8808# none: in case threads are in libc; should be tried before -Kthread and
8809# other compiler flags to prevent continual compiler warnings
8810# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8811# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8812# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8813# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8814# -pthreads: Solaris/gcc
8815# -mthreads: Mingw32/gcc, Lynx/gcc
8816# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8817# doesn't hurt to check since this sometimes defines pthreads too;
8818# also defines -D_REENTRANT)
8819# ... -mt is also the pthreads flag for HP/aCC
8820# pthread: Linux, etcetera
8821# --thread-safe: KAI C++
8822# pthread-config: use pthread-config program (for GNU Pth library)
8823
8824case "${host_cpu}-${host_os}" in
8825 *solaris*)
8826
8827 # On Solaris (at least, for some versions), libc contains stubbed
8828 # (non-functional) versions of the pthreads routines, so link-based
8829 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8830 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8831 # a function called by this macro, so we could check for that, but
8832 # who knows whether they'll stub that too in a future libc.) So,
8833 # we'll just look for -pthreads and -lpthread first:
8834
8835 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8836 ;;
8837
cristya316db12011-10-24 00:49:45 +00008838 *-darwin*)
8839 ax_pthread_flags="-pthread $ax_pthread_flags"
8840 ;;
cristy73bd4a52010-10-05 11:24:23 +00008841esac
8842
8843if test x"$ax_pthread_ok" = xno; then
8844for flag in $ax_pthread_flags; do
8845
8846 case $flag in
8847 none)
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8849$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8850 ;;
8851
8852 -*)
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8854$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8855 PTHREAD_CFLAGS="$flag"
8856 ;;
8857
cristya316db12011-10-24 00:49:45 +00008858 pthread-config)
8859 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008860set dummy pthread-config; ac_word=$2
8861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8862$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008863if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008864 $as_echo_n "(cached) " >&6
8865else
8866 if test -n "$ax_pthread_config"; then
8867 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8868else
8869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8870for as_dir in $PATH
8871do
8872 IFS=$as_save_IFS
8873 test -z "$as_dir" && as_dir=.
8874 for ac_exec_ext in '' $ac_executable_extensions; do
8875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8876 ac_cv_prog_ax_pthread_config="yes"
8877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8878 break 2
8879 fi
8880done
8881 done
8882IFS=$as_save_IFS
8883
8884 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8885fi
8886fi
8887ax_pthread_config=$ac_cv_prog_ax_pthread_config
8888if test -n "$ax_pthread_config"; then
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8890$as_echo "$ax_pthread_config" >&6; }
8891else
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8893$as_echo "no" >&6; }
8894fi
8895
8896
cristya316db12011-10-24 00:49:45 +00008897 if test x"$ax_pthread_config" = xno; then continue; fi
8898 PTHREAD_CFLAGS="`pthread-config --cflags`"
8899 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8900 ;;
cristy73bd4a52010-10-05 11:24:23 +00008901
8902 *)
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8904$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8905 PTHREAD_LIBS="-l$flag"
8906 ;;
8907 esac
8908
8909 save_LIBS="$LIBS"
8910 save_CFLAGS="$CFLAGS"
8911 LIBS="$PTHREAD_LIBS $LIBS"
8912 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8913
8914 # Check for various functions. We must include pthread.h,
8915 # since some functions may be macros. (On the Sequent, we
8916 # need a special flag -Kthread to make this header compile.)
8917 # We check for pthread_join because it is in -lpthread on IRIX
8918 # while pthread_create is in libc. We check for pthread_attr_init
8919 # due to DEC craziness with -lpthreads. We check for
8920 # pthread_cleanup_push because it is one of the few pthread
8921 # functions on Solaris that doesn't have a non-functional libc stub.
8922 # We try pthread_create on general principles.
8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924/* end confdefs.h. */
8925#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00008926 static void routine(void *a) { a = 0; }
8927 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00008928int
8929main ()
8930{
8931pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00008932 pthread_create(&th, 0, start_routine, 0);
8933 pthread_join(th, 0);
8934 pthread_attr_init(&attr);
8935 pthread_cleanup_push(routine, 0);
8936 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008937 ;
8938 return 0;
8939}
8940_ACEOF
8941if ac_fn_c_try_link "$LINENO"; then :
8942 ax_pthread_ok=yes
8943fi
8944rm -f core conftest.err conftest.$ac_objext \
8945 conftest$ac_exeext conftest.$ac_ext
8946
8947 LIBS="$save_LIBS"
8948 CFLAGS="$save_CFLAGS"
8949
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8951$as_echo "$ax_pthread_ok" >&6; }
8952 if test "x$ax_pthread_ok" = xyes; then
8953 break;
8954 fi
8955
8956 PTHREAD_LIBS=""
8957 PTHREAD_CFLAGS=""
8958done
8959fi
8960
8961# Various other checks:
8962if test "x$ax_pthread_ok" = xyes; then
8963 save_LIBS="$LIBS"
8964 LIBS="$PTHREAD_LIBS $LIBS"
8965 save_CFLAGS="$CFLAGS"
8966 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8967
8968 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00008969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00008970$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00008971 attr_name=unknown
8972 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00008974/* end confdefs.h. */
8975#include <pthread.h>
8976int
8977main ()
8978{
cristya316db12011-10-24 00:49:45 +00008979int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008980 ;
8981 return 0;
8982}
8983_ACEOF
8984if ac_fn_c_try_link "$LINENO"; then :
8985 attr_name=$attr; break
8986fi
8987rm -f core conftest.err conftest.$ac_objext \
8988 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00008989 done
cristy73bd4a52010-10-05 11:24:23 +00008990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8991$as_echo "$attr_name" >&6; }
8992 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8993
8994cat >>confdefs.h <<_ACEOF
8995#define PTHREAD_CREATE_JOINABLE $attr_name
8996_ACEOF
8997
8998 fi
8999
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9001$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9002 flag=no
9003 case "${host_cpu}-${host_os}" in
9004 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9005 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9006 esac
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9008$as_echo "${flag}" >&6; }
9009 if test "x$flag" != xno; then
9010 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9011 fi
9012
cristya316db12011-10-24 00:49:45 +00009013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9014$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9015if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9016 $as_echo_n "(cached) " >&6
9017else
9018
9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020/* end confdefs.h. */
9021
9022 #include <pthread.h>
9023int
9024main ()
9025{
9026int i = PTHREAD_PRIO_INHERIT;
9027 ;
9028 return 0;
9029}
9030_ACEOF
9031if ac_fn_c_try_link "$LINENO"; then :
9032 ax_cv_PTHREAD_PRIO_INHERIT=yes
9033else
9034 ax_cv_PTHREAD_PRIO_INHERIT=no
9035fi
9036rm -f core conftest.err conftest.$ac_objext \
9037 conftest$ac_exeext conftest.$ac_ext
9038
9039fi
9040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9041$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9042 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9043
9044$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9045
9046fi
9047
cristy73bd4a52010-10-05 11:24:23 +00009048 LIBS="$save_LIBS"
9049 CFLAGS="$save_CFLAGS"
9050
9051 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009052 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009053 for ac_prog in xlc_r cc_r
9054do
9055 # Extract the first word of "$ac_prog", so it can be a program name with args.
9056set dummy $ac_prog; ac_word=$2
9057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9058$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009059if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009060 $as_echo_n "(cached) " >&6
9061else
9062 if test -n "$PTHREAD_CC"; then
9063 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9064else
9065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9066for as_dir in $PATH
9067do
9068 IFS=$as_save_IFS
9069 test -z "$as_dir" && as_dir=.
9070 for ac_exec_ext in '' $ac_executable_extensions; do
9071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9072 ac_cv_prog_PTHREAD_CC="$ac_prog"
9073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9074 break 2
9075 fi
9076done
9077 done
9078IFS=$as_save_IFS
9079
9080fi
9081fi
9082PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9083if test -n "$PTHREAD_CC"; then
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9085$as_echo "$PTHREAD_CC" >&6; }
9086else
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088$as_echo "no" >&6; }
9089fi
9090
9091
9092 test -n "$PTHREAD_CC" && break
9093done
9094test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9095
9096 else
9097 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009098 fi
cristy73bd4a52010-10-05 11:24:23 +00009099else
9100 PTHREAD_CC="$CC"
9101fi
9102
9103
9104
9105
9106
9107# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9108if test x"$ax_pthread_ok" = xyes; then
9109
9110$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9111
9112 :
9113else
9114 ax_pthread_ok=no
9115
9116fi
9117ac_ext=c
9118ac_cpp='$CPP $CPPFLAGS'
9119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9121ac_compiler_gnu=$ac_cv_c_compiler_gnu
9122
9123
9124
9125# Check whether --enable-opencl was given.
9126if test "${enable_opencl+set}" = set; then :
9127 enableval=$enable_opencl; disable_opencl=$enableval
9128else
9129 disable_opencl='yes'
9130fi
9131
9132
9133if test "$disable_opencl" = 'yes'; then
9134 ac_ext=c
9135ac_cpp='$CPP $CPPFLAGS'
9136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9138ac_compiler_gnu=$ac_cv_c_compiler_gnu
9139
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9141$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009142if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009143 $as_echo_n "(cached) " >&6
9144else
9145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9146/* end confdefs.h. */
9147
9148int
9149main ()
9150{
9151#ifndef _MSC_VER
9152 choke me
9153#endif
9154
9155 ;
9156 return 0;
9157}
9158_ACEOF
9159if ac_fn_c_try_compile "$LINENO"; then :
9160 ax_compiler_ms=yes
9161else
9162 ax_compiler_ms=no
9163fi
9164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9165ax_cv_c_compiler_ms=$ax_compiler_ms
9166
9167fi
9168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9169$as_echo "$ax_cv_c_compiler_ms" >&6; }
9170 if test X$ax_compiler_ms = Xno; then :
9171 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9172fi
9173
9174 ax_save_CPPFLAGS=$CPPFLAGS
9175 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9176 for ac_header in CL/cl.h OpenCL/cl.h
9177do :
9178 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9179ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009180if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009181 cat >>confdefs.h <<_ACEOF
9182#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9183_ACEOF
9184
9185fi
9186
9187done
9188
9189 CPPFLAGS=$ax_save_CPPFLAGS
9190
9191 for ac_header in windows.h
9192do :
9193 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009194if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009195 cat >>confdefs.h <<_ACEOF
9196#define HAVE_WINDOWS_H 1
9197_ACEOF
9198
9199fi
9200
9201done
9202
9203
9204
9205
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9207$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009208if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009209 $as_echo_n "(cached) " >&6
9210else
9211 ax_cv_check_cl_libcl=no
9212 case $host_cpu in
9213 x86_64) ax_check_cl_libdir=lib64 ;;
9214 *) ax_check_cl_libdir=lib ;;
9215 esac
9216 ax_save_CPPFLAGS=$CPPFLAGS
9217 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9218 ax_save_LIBS=$LIBS
9219 LIBS=""
9220 ax_check_libs="-lOpenCL -lCL -lclparser"
9221 for ax_lib in $ax_check_libs; do
9222 if test X$ax_compiler_ms = Xyes; then :
9223 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9224else
9225 ax_try_lib=$ax_lib
9226fi
9227 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9229/* end confdefs.h. */
9230
9231 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9232 # include <windows.h>
9233 # endif
9234 # ifdef HAVE_CL_CL_H
9235 # include <CL/cl.h>
9236 # elif defined(HAVE_OPENCL_CL_H)
9237 # include <OpenCL/cl.h>
9238 # else
9239 # error no CL.h
9240 # endif
9241int
9242main ()
9243{
9244clCreateContextFromType(0,0,0,0,0)
9245 ;
9246 return 0;
9247}
9248_ACEOF
9249if ac_fn_c_try_link "$LINENO"; then :
9250 ax_cv_check_cl_libcl=$ax_try_lib; break
9251else
9252 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"
9253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9254/* end confdefs.h. */
9255
9256 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9257 # include <windows.h>
9258 # endif
9259 # ifdef HAVE_CL_CL_H
9260 # include <CL/cl.h>
9261 # elif defined(HAVE_OPENCL_CL_H)
9262 # include <OpenCL/cl.h>
9263 # else
9264 # error no CL.h
9265 # endif
9266int
9267main ()
9268{
9269clCreateContextFromType(0,0,0,0,0)
9270 ;
9271 return 0;
9272}
9273_ACEOF
9274if ac_fn_c_try_link "$LINENO"; then :
9275 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9276else
cristy78c5a0c2010-12-04 20:00:59 +00009277 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 +00009278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279/* end confdefs.h. */
9280
9281 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9282 # include <windows.h>
9283 # endif
9284 # ifdef HAVE_CL_CL_H
9285 # include <CL/cl.h>
9286 # elif defined(HAVE_OPENCL_CL_H)
9287 # include <OpenCL/cl.h>
9288 # else
9289 # error no CL.h
9290 # endif
9291int
9292main ()
9293{
9294clCreateContextFromType(0,0,0,0,0)
9295 ;
9296 return 0;
9297}
9298_ACEOF
9299if ac_fn_c_try_link "$LINENO"; then :
9300 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9301fi
9302rm -f core conftest.err conftest.$ac_objext \
9303 conftest$ac_exeext conftest.$ac_ext
9304fi
9305rm -f core conftest.err conftest.$ac_objext \
9306 conftest$ac_exeext conftest.$ac_ext
9307fi
9308rm -f core conftest.err conftest.$ac_objext \
9309 conftest$ac_exeext conftest.$ac_ext
9310 done
9311
9312 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy78c5a0c2010-12-04 20:00:59 +00009313 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9315/* end confdefs.h. */
9316
9317 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9318 # include <windows.h>
9319 # endif
9320 # ifdef HAVE_CL_CL_H
9321 # include <CL/cl.h>
9322 # elif defined(HAVE_OPENCL_CL_H)
9323 # include <OpenCL/cl.h>
9324 # else
9325 # error no CL.h
9326 # endif
9327int
9328main ()
9329{
9330clCreateContextFromType(0,0,0,0,0)
9331 ;
9332 return 0;
9333}
9334_ACEOF
9335if ac_fn_c_try_link "$LINENO"; then :
9336 ax_cv_check_cl_libcl=$LIBS
9337fi
9338rm -f core conftest.err conftest.$ac_objext \
9339 conftest$ac_exeext conftest.$ac_ext
9340fi
9341
9342 LIBS=$ax_save_LIBS
9343 CPPFLAGS=$ax_save_CPPFLAGS
9344fi
9345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9346$as_echo "$ax_cv_check_cl_libcl" >&6; }
9347
9348 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9349 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9350else
9351 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9352$as_echo "#define _OPENCL 1" >>confdefs.h
9353
9354fi
9355 ac_ext=c
9356ac_cpp='$CPP $CPPFLAGS'
9357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9359ac_compiler_gnu=$ac_cv_c_compiler_gnu
9360
9361fi
9362
9363
9364
9365
cristyc7083c12009-10-14 03:16:55 +00009366CFLAGS="$CL_CFLAGS $CFLAGS"
9367LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009368
cristy391f1ce2010-09-09 17:23:28 +00009369if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +00009370 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +00009371 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9372 fi
cristyfd9dcd42010-08-08 18:07:02 +00009373fi
cristy2e8b51d2009-10-17 18:26:15 +00009374
cristy3ed852e2009-09-05 21:47:34 +00009375########
9376#
9377# Check for large file support
9378#
9379########
9380# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009381if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009382 enableval=$enable_largefile;
9383fi
9384
9385if test "$enable_largefile" != no; then
9386
cristy8b350f62009-11-15 23:12:43 +00009387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009388$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009389if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009390 $as_echo_n "(cached) " >&6
9391else
9392 ac_cv_sys_largefile_CC=no
9393 if test "$GCC" != yes; then
9394 ac_save_CC=$CC
9395 while :; do
9396 # IRIX 6.2 and later do not support large files by default,
9397 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009399/* end confdefs.h. */
9400#include <sys/types.h>
9401 /* Check that off_t can represent 2**63 - 1 correctly.
9402 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9403 since some C++ compilers masquerading as C compilers
9404 incorrectly reject 9223372036854775807. */
9405#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9406 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9407 && LARGE_OFF_T % 2147483647 == 1)
9408 ? 1 : -1];
9409int
9410main ()
9411{
9412
9413 ;
9414 return 0;
9415}
9416_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009417 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009418 break
cristy3ed852e2009-09-05 21:47:34 +00009419fi
cristy3ed852e2009-09-05 21:47:34 +00009420rm -f core conftest.err conftest.$ac_objext
9421 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009422 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009423 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009424fi
cristy3ed852e2009-09-05 21:47:34 +00009425rm -f core conftest.err conftest.$ac_objext
9426 break
9427 done
9428 CC=$ac_save_CC
9429 rm -f conftest.$ac_ext
9430 fi
9431fi
cristy8b350f62009-11-15 23:12:43 +00009432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009433$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9434 if test "$ac_cv_sys_largefile_CC" != no; then
9435 CC=$CC$ac_cv_sys_largefile_CC
9436 fi
9437
cristy8b350f62009-11-15 23:12:43 +00009438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009439$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009440if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009441 $as_echo_n "(cached) " >&6
9442else
9443 while :; do
cristy8b350f62009-11-15 23:12:43 +00009444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009445/* end confdefs.h. */
9446#include <sys/types.h>
9447 /* Check that off_t can represent 2**63 - 1 correctly.
9448 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9449 since some C++ compilers masquerading as C compilers
9450 incorrectly reject 9223372036854775807. */
9451#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9452 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9453 && LARGE_OFF_T % 2147483647 == 1)
9454 ? 1 : -1];
9455int
9456main ()
9457{
9458
9459 ;
9460 return 0;
9461}
9462_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009463if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009464 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009465fi
cristy3ed852e2009-09-05 21:47:34 +00009466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009468/* end confdefs.h. */
9469#define _FILE_OFFSET_BITS 64
9470#include <sys/types.h>
9471 /* Check that off_t can represent 2**63 - 1 correctly.
9472 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9473 since some C++ compilers masquerading as C compilers
9474 incorrectly reject 9223372036854775807. */
9475#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9476 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9477 && LARGE_OFF_T % 2147483647 == 1)
9478 ? 1 : -1];
9479int
9480main ()
9481{
9482
9483 ;
9484 return 0;
9485}
9486_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009487if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009488 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009489fi
cristy3ed852e2009-09-05 21:47:34 +00009490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9491 ac_cv_sys_file_offset_bits=unknown
9492 break
9493done
9494fi
cristy8b350f62009-11-15 23:12:43 +00009495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009496$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9497case $ac_cv_sys_file_offset_bits in #(
9498 no | unknown) ;;
9499 *)
9500cat >>confdefs.h <<_ACEOF
9501#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9502_ACEOF
9503;;
9504esac
9505rm -rf conftest*
9506 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009508$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009509if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009510 $as_echo_n "(cached) " >&6
9511else
9512 while :; do
cristy8b350f62009-11-15 23:12:43 +00009513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009514/* end confdefs.h. */
9515#include <sys/types.h>
9516 /* Check that off_t can represent 2**63 - 1 correctly.
9517 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9518 since some C++ compilers masquerading as C compilers
9519 incorrectly reject 9223372036854775807. */
9520#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9521 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9522 && LARGE_OFF_T % 2147483647 == 1)
9523 ? 1 : -1];
9524int
9525main ()
9526{
9527
9528 ;
9529 return 0;
9530}
9531_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009532if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009533 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009534fi
cristy3ed852e2009-09-05 21:47:34 +00009535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009537/* end confdefs.h. */
9538#define _LARGE_FILES 1
9539#include <sys/types.h>
9540 /* Check that off_t can represent 2**63 - 1 correctly.
9541 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9542 since some C++ compilers masquerading as C compilers
9543 incorrectly reject 9223372036854775807. */
9544#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9545 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9546 && LARGE_OFF_T % 2147483647 == 1)
9547 ? 1 : -1];
9548int
9549main ()
9550{
9551
9552 ;
9553 return 0;
9554}
9555_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009556if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009557 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009558fi
cristy3ed852e2009-09-05 21:47:34 +00009559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9560 ac_cv_sys_large_files=unknown
9561 break
9562done
9563fi
cristy8b350f62009-11-15 23:12:43 +00009564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009565$as_echo "$ac_cv_sys_large_files" >&6; }
9566case $ac_cv_sys_large_files in #(
9567 no | unknown) ;;
9568 *)
9569cat >>confdefs.h <<_ACEOF
9570#define _LARGE_FILES $ac_cv_sys_large_files
9571_ACEOF
9572;;
9573esac
9574rm -rf conftest*
9575 fi
9576fi
9577
cristy8b350f62009-11-15 23:12:43 +00009578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009579$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009580if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009581 $as_echo_n "(cached) " >&6
9582else
9583 while :; do
cristy8b350f62009-11-15 23:12:43 +00009584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009585/* end confdefs.h. */
9586#include <sys/types.h> /* for off_t */
9587 #include <stdio.h>
9588int
9589main ()
9590{
9591int (*fp) (FILE *, off_t, int) = fseeko;
9592 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9593 ;
9594 return 0;
9595}
9596_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009597if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009598 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009599fi
cristy8b350f62009-11-15 23:12:43 +00009600rm -f core conftest.err conftest.$ac_objext \
9601 conftest$ac_exeext conftest.$ac_ext
9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009603/* end confdefs.h. */
9604#define _LARGEFILE_SOURCE 1
9605#include <sys/types.h> /* for off_t */
9606 #include <stdio.h>
9607int
9608main ()
9609{
9610int (*fp) (FILE *, off_t, int) = fseeko;
9611 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9612 ;
9613 return 0;
9614}
9615_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009616if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009617 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009618fi
cristy8b350f62009-11-15 23:12:43 +00009619rm -f core conftest.err conftest.$ac_objext \
9620 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009621 ac_cv_sys_largefile_source=unknown
9622 break
9623done
9624fi
cristy8b350f62009-11-15 23:12:43 +00009625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009626$as_echo "$ac_cv_sys_largefile_source" >&6; }
9627case $ac_cv_sys_largefile_source in #(
9628 no | unknown) ;;
9629 *)
9630cat >>confdefs.h <<_ACEOF
9631#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9632_ACEOF
9633;;
9634esac
9635rm -rf conftest*
9636
9637# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9638# in glibc 2.1.3, but that breaks too many other things.
9639# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9640if test $ac_cv_sys_largefile_source != unknown; then
9641
cristy8b350f62009-11-15 23:12:43 +00009642$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009643
9644fi
9645
9646LFS_CPPFLAGS=''
9647if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +00009648 case $ac_cv_sys_file_offset_bits in
9649 no)
9650 # nothing to do here as the host supports LFS fine
9651 ;;
9652 unknown)
cristy8b350f62009-11-15 23:12:43 +00009653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009654$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009655 if test "$cross_compiling" = yes; then :
9656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009657$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009658as_fn_error $? "cannot run test program while cross compiling
9659See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009660else
cristy8b350f62009-11-15 23:12:43 +00009661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9662/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009663#include <unistd.h>
9664 main () {
9665 exit(!(sizeof(off_t) == 8));
9666 }
cristyda16f162011-02-19 23:52:17 +00009667int
9668main ()
9669{
9670
9671 ;
9672 return 0;
9673}
cristy3ed852e2009-09-05 21:47:34 +00009674_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009675if ac_fn_c_try_run "$LINENO"; then :
9676 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009677
cristy09b53e12011-10-14 12:47:22 +00009678 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
9679$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009680else
cristy09b53e12011-10-14 12:47:22 +00009681 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
9682$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009683fi
cristy8b350f62009-11-15 23:12:43 +00009684rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9685 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009686fi
9687
cristyc1e0cc12011-09-21 16:41:16 +00009688 ;;
9689 *)
9690 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9691 ;;
9692 esac
cristy3ed852e2009-09-05 21:47:34 +00009693 if test "$ac_cv_sys_large_files" != 'no'; then
9694 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9695 fi
9696 if test "$ac_cv_sys_largefile_source" != 'no'; then
9697 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9698 fi
9699fi
9700
9701
9702#
9703# Configure libtool & libltdl
9704#
9705# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009706enable_dlopen=yes
9707
9708
9709
9710case `pwd` in
9711 *\ * | *\ *)
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9713$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9714esac
9715
9716
9717
cristyda16f162011-02-19 23:52:17 +00009718macro_version='2.4'
9719macro_revision='1.3293'
cristy73bd4a52010-10-05 11:24:23 +00009720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733ltmain="$ac_aux_dir/ltmain.sh"
9734
cristy0c60a692010-11-04 01:09:47 +00009735# Backslashify metacharacters that are still active within
9736# double-quoted strings.
9737sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9738
9739# Same as above, but do not quote variable references.
9740double_quote_subst='s/\(["`\\]\)/\\\1/g'
9741
9742# Sed substitution to delay expansion of an escaped shell variable in a
9743# double_quote_subst'ed string.
9744delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9745
9746# Sed substitution to delay expansion of an escaped single quote.
9747delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9748
9749# Sed substitution to avoid accidental globbing in evaled expressions
9750no_glob_subst='s/\*/\\\*/g'
9751
cristy73bd4a52010-10-05 11:24:23 +00009752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9753$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009754if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009755 $as_echo_n "(cached) " >&6
9756else
9757 if test -n "$NM"; then
9758 # Let the user override the test.
9759 lt_cv_path_NM="$NM"
9760else
9761 lt_nm_to_check="${ac_tool_prefix}nm"
9762 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9763 lt_nm_to_check="$lt_nm_to_check nm"
9764 fi
9765 for lt_tmp_nm in $lt_nm_to_check; do
9766 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9767 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9768 IFS="$lt_save_ifs"
9769 test -z "$ac_dir" && ac_dir=.
9770 tmp_nm="$ac_dir/$lt_tmp_nm"
9771 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9772 # Check to see if the nm accepts a BSD-compat flag.
9773 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9774 # nm: unknown option "B" ignored
9775 # Tru64's nm complains that /dev/null is an invalid object file
9776 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9777 */dev/null* | *'Invalid file or object type'*)
9778 lt_cv_path_NM="$tmp_nm -B"
9779 break
9780 ;;
9781 *)
9782 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9783 */dev/null*)
9784 lt_cv_path_NM="$tmp_nm -p"
9785 break
9786 ;;
9787 *)
9788 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9789 continue # so that we can try to find one that supports BSD flags
9790 ;;
9791 esac
9792 ;;
9793 esac
9794 fi
9795 done
9796 IFS="$lt_save_ifs"
9797 done
9798 : ${lt_cv_path_NM=no}
9799fi
9800fi
9801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9802$as_echo "$lt_cv_path_NM" >&6; }
9803if test "$lt_cv_path_NM" != "no"; then
9804 NM="$lt_cv_path_NM"
9805else
9806 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009807 if test -n "$DUMPBIN"; then :
9808 # Let the user override the test.
9809 else
9810 if test -n "$ac_tool_prefix"; then
9811 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009812 do
9813 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9814set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9816$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009817if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009818 $as_echo_n "(cached) " >&6
9819else
9820 if test -n "$DUMPBIN"; then
9821 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9822else
9823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9824for as_dir in $PATH
9825do
9826 IFS=$as_save_IFS
9827 test -z "$as_dir" && as_dir=.
9828 for ac_exec_ext in '' $ac_executable_extensions; do
9829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9830 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9832 break 2
9833 fi
9834done
9835 done
9836IFS=$as_save_IFS
9837
9838fi
9839fi
9840DUMPBIN=$ac_cv_prog_DUMPBIN
9841if test -n "$DUMPBIN"; then
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9843$as_echo "$DUMPBIN" >&6; }
9844else
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9846$as_echo "no" >&6; }
9847fi
9848
9849
9850 test -n "$DUMPBIN" && break
9851 done
9852fi
9853if test -z "$DUMPBIN"; then
9854 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009855 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009856do
9857 # Extract the first word of "$ac_prog", so it can be a program name with args.
9858set dummy $ac_prog; ac_word=$2
9859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9860$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009861if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009862 $as_echo_n "(cached) " >&6
9863else
9864 if test -n "$ac_ct_DUMPBIN"; then
9865 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9866else
9867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9868for as_dir in $PATH
9869do
9870 IFS=$as_save_IFS
9871 test -z "$as_dir" && as_dir=.
9872 for ac_exec_ext in '' $ac_executable_extensions; do
9873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9874 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9876 break 2
9877 fi
9878done
9879 done
9880IFS=$as_save_IFS
9881
9882fi
9883fi
9884ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9885if test -n "$ac_ct_DUMPBIN"; then
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9887$as_echo "$ac_ct_DUMPBIN" >&6; }
9888else
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9890$as_echo "no" >&6; }
9891fi
9892
9893
9894 test -n "$ac_ct_DUMPBIN" && break
9895done
9896
9897 if test "x$ac_ct_DUMPBIN" = x; then
9898 DUMPBIN=":"
9899 else
9900 case $cross_compiling:$ac_tool_warned in
9901yes:)
9902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9904ac_tool_warned=yes ;;
9905esac
9906 DUMPBIN=$ac_ct_DUMPBIN
9907 fi
9908fi
9909
cristy0c60a692010-11-04 01:09:47 +00009910 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9911 *COFF*)
9912 DUMPBIN="$DUMPBIN -symbols"
9913 ;;
9914 *)
9915 DUMPBIN=:
9916 ;;
9917 esac
9918 fi
cristy73bd4a52010-10-05 11:24:23 +00009919
9920 if test "$DUMPBIN" != ":"; then
9921 NM="$DUMPBIN"
9922 fi
9923fi
9924test -z "$NM" && NM=nm
9925
9926
9927
9928
9929
9930
9931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9932$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009933if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009934 $as_echo_n "(cached) " >&6
9935else
9936 lt_cv_nm_interface="BSD nm"
9937 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009938 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009939 (eval "$ac_compile" 2>conftest.err)
9940 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009941 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009942 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9943 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009944 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009945 cat conftest.out >&5
9946 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9947 lt_cv_nm_interface="MS dumpbin"
9948 fi
9949 rm -f conftest*
9950fi
9951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9952$as_echo "$lt_cv_nm_interface" >&6; }
9953
9954# find the maximum length of command line arguments
9955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9956$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009957if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009958 $as_echo_n "(cached) " >&6
9959else
9960 i=0
9961 teststring="ABCD"
9962
9963 case $build_os in
9964 msdosdjgpp*)
9965 # On DJGPP, this test can blow up pretty badly due to problems in libc
9966 # (any single argument exceeding 2000 bytes causes a buffer overrun
9967 # during glob expansion). Even if it were fixed, the result of this
9968 # check would be larger than it should be.
9969 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9970 ;;
9971
9972 gnu*)
9973 # Under GNU Hurd, this test is not required because there is
9974 # no limit to the length of command line arguments.
9975 # Libtool will interpret -1 as no limit whatsoever
9976 lt_cv_sys_max_cmd_len=-1;
9977 ;;
9978
9979 cygwin* | mingw* | cegcc*)
9980 # On Win9x/ME, this test blows up -- it succeeds, but takes
9981 # about 5 minutes as the teststring grows exponentially.
9982 # Worse, since 9x/ME are not pre-emptively multitasking,
9983 # you end up with a "frozen" computer, even though with patience
9984 # the test eventually succeeds (with a max line length of 256k).
9985 # Instead, let's just punt: use the minimum linelength reported by
9986 # all of the supported platforms: 8192 (on NT/2K/XP).
9987 lt_cv_sys_max_cmd_len=8192;
9988 ;;
9989
cristy0c60a692010-11-04 01:09:47 +00009990 mint*)
9991 # On MiNT this can take a long time and run out of memory.
9992 lt_cv_sys_max_cmd_len=8192;
9993 ;;
9994
cristy73bd4a52010-10-05 11:24:23 +00009995 amigaos*)
9996 # On AmigaOS with pdksh, this test takes hours, literally.
9997 # So we just punt and use a minimum line length of 8192.
9998 lt_cv_sys_max_cmd_len=8192;
9999 ;;
10000
10001 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10002 # This has been around since 386BSD, at least. Likely further.
10003 if test -x /sbin/sysctl; then
10004 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10005 elif test -x /usr/sbin/sysctl; then
10006 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10007 else
10008 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10009 fi
10010 # And add a safety zone
10011 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10012 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10013 ;;
10014
10015 interix*)
10016 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10017 lt_cv_sys_max_cmd_len=196608
10018 ;;
10019
10020 osf*)
10021 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10022 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10023 # nice to cause kernel panics so lets avoid the loop below.
10024 # First set a reasonable default.
10025 lt_cv_sys_max_cmd_len=16384
10026 #
10027 if test -x /sbin/sysconfig; then
10028 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10029 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10030 esac
10031 fi
10032 ;;
10033 sco3.2v5*)
10034 lt_cv_sys_max_cmd_len=102400
10035 ;;
10036 sysv5* | sco5v6* | sysv4.2uw2*)
10037 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10038 if test -n "$kargmax"; then
10039 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10040 else
10041 lt_cv_sys_max_cmd_len=32768
10042 fi
10043 ;;
10044 *)
10045 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10046 if test -n "$lt_cv_sys_max_cmd_len"; then
10047 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10048 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10049 else
10050 # Make teststring a little bigger before we do anything with it.
10051 # a 1K string should be a reasonable start.
10052 for i in 1 2 3 4 5 6 7 8 ; do
10053 teststring=$teststring$teststring
10054 done
10055 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10056 # If test is not a shell built-in, we'll probably end up computing a
10057 # maximum length that is only half of the actual maximum length, but
10058 # we can't tell.
cristy0c60a692010-11-04 01:09:47 +000010059 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
10060 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010061 test $i != 17 # 1/2 MB should be enough
10062 do
10063 i=`expr $i + 1`
10064 teststring=$teststring$teststring
10065 done
10066 # Only check the string length outside the loop.
10067 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10068 teststring=
10069 # Add a significant safety factor because C++ compilers can tack on
10070 # massive amounts of additional arguments before passing them to the
10071 # linker. It appears as though 1/2 is a usable value.
10072 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10073 fi
10074 ;;
10075 esac
10076
10077fi
10078
10079if test -n $lt_cv_sys_max_cmd_len ; then
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10081$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10082else
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10084$as_echo "none" >&6; }
10085fi
10086max_cmd_len=$lt_cv_sys_max_cmd_len
10087
10088
10089
10090
10091
10092
10093: ${CP="cp -f"}
10094: ${MV="mv -f"}
10095: ${RM="rm -f"}
10096
10097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10098$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10099# Try some XSI features
10100xsi_shell=no
10101( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010102 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10103 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010104 && eval 'test $(( 1 + 1 )) -eq 2 \
10105 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10106 && xsi_shell=yes
10107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10108$as_echo "$xsi_shell" >&6; }
10109
10110
10111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10112$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10113lt_shell_append=no
10114( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10115 >/dev/null 2>&1 \
10116 && lt_shell_append=yes
10117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10118$as_echo "$lt_shell_append" >&6; }
10119
10120
10121if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10122 lt_unset=unset
10123else
10124 lt_unset=false
10125fi
10126
10127
10128
10129
10130
10131# test EBCDIC or ASCII
10132case `echo X|tr X '\101'` in
10133 A) # ASCII based system
10134 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10135 lt_SP2NL='tr \040 \012'
10136 lt_NL2SP='tr \015\012 \040\040'
10137 ;;
10138 *) # EBCDIC based system
10139 lt_SP2NL='tr \100 \n'
10140 lt_NL2SP='tr \r\n \100\100'
10141 ;;
10142esac
10143
10144
10145
10146
10147
10148
10149
10150
10151
cristyda16f162011-02-19 23:52:17 +000010152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10153$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10154if ${lt_cv_to_host_file_cmd+:} false; then :
10155 $as_echo_n "(cached) " >&6
10156else
10157 case $host in
10158 *-*-mingw* )
10159 case $build in
10160 *-*-mingw* ) # actually msys
10161 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10162 ;;
10163 *-*-cygwin* )
10164 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10165 ;;
10166 * ) # otherwise, assume *nix
10167 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10168 ;;
10169 esac
10170 ;;
10171 *-*-cygwin* )
10172 case $build in
10173 *-*-mingw* ) # actually msys
10174 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10175 ;;
10176 *-*-cygwin* )
10177 lt_cv_to_host_file_cmd=func_convert_file_noop
10178 ;;
10179 * ) # otherwise, assume *nix
10180 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10181 ;;
10182 esac
10183 ;;
10184 * ) # unhandled hosts (and "normal" native builds)
10185 lt_cv_to_host_file_cmd=func_convert_file_noop
10186 ;;
10187esac
10188
10189fi
10190
10191to_host_file_cmd=$lt_cv_to_host_file_cmd
10192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10193$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10194
10195
10196
10197
10198
10199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10200$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10201if ${lt_cv_to_tool_file_cmd+:} false; then :
10202 $as_echo_n "(cached) " >&6
10203else
10204 #assume ordinary cross tools, or native build.
10205lt_cv_to_tool_file_cmd=func_convert_file_noop
10206case $host in
10207 *-*-mingw* )
10208 case $build in
10209 *-*-mingw* ) # actually msys
10210 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10211 ;;
10212 esac
10213 ;;
10214esac
10215
10216fi
10217
10218to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10220$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10221
10222
10223
10224
10225
cristy73bd4a52010-10-05 11:24:23 +000010226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10227$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010228if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010229 $as_echo_n "(cached) " >&6
10230else
10231 lt_cv_ld_reload_flag='-r'
10232fi
10233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10234$as_echo "$lt_cv_ld_reload_flag" >&6; }
10235reload_flag=$lt_cv_ld_reload_flag
10236case $reload_flag in
10237"" | " "*) ;;
10238*) reload_flag=" $reload_flag" ;;
10239esac
10240reload_cmds='$LD$reload_flag -o $output$reload_objs'
10241case $host_os in
cristyda16f162011-02-19 23:52:17 +000010242 cygwin* | mingw* | pw32* | cegcc*)
10243 if test "$GCC" != yes; then
10244 reload_cmds=false
10245 fi
10246 ;;
cristy73bd4a52010-10-05 11:24:23 +000010247 darwin*)
10248 if test "$GCC" = yes; then
10249 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10250 else
10251 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10252 fi
10253 ;;
10254esac
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264if test -n "$ac_tool_prefix"; then
10265 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10266set dummy ${ac_tool_prefix}objdump; ac_word=$2
10267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10268$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010269if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010270 $as_echo_n "(cached) " >&6
10271else
10272 if test -n "$OBJDUMP"; then
10273 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10274else
10275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10276for as_dir in $PATH
10277do
10278 IFS=$as_save_IFS
10279 test -z "$as_dir" && as_dir=.
10280 for ac_exec_ext in '' $ac_executable_extensions; do
10281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10282 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10284 break 2
10285 fi
10286done
10287 done
10288IFS=$as_save_IFS
10289
10290fi
10291fi
10292OBJDUMP=$ac_cv_prog_OBJDUMP
10293if test -n "$OBJDUMP"; then
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10295$as_echo "$OBJDUMP" >&6; }
10296else
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10298$as_echo "no" >&6; }
10299fi
10300
10301
10302fi
10303if test -z "$ac_cv_prog_OBJDUMP"; then
10304 ac_ct_OBJDUMP=$OBJDUMP
10305 # Extract the first word of "objdump", so it can be a program name with args.
10306set dummy objdump; ac_word=$2
10307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10308$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010309if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010310 $as_echo_n "(cached) " >&6
10311else
10312 if test -n "$ac_ct_OBJDUMP"; then
10313 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10314else
10315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10316for as_dir in $PATH
10317do
10318 IFS=$as_save_IFS
10319 test -z "$as_dir" && as_dir=.
10320 for ac_exec_ext in '' $ac_executable_extensions; do
10321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10322 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10324 break 2
10325 fi
10326done
10327 done
10328IFS=$as_save_IFS
10329
10330fi
10331fi
10332ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10333if test -n "$ac_ct_OBJDUMP"; then
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10335$as_echo "$ac_ct_OBJDUMP" >&6; }
10336else
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10338$as_echo "no" >&6; }
10339fi
10340
10341 if test "x$ac_ct_OBJDUMP" = x; then
10342 OBJDUMP="false"
10343 else
10344 case $cross_compiling:$ac_tool_warned in
10345yes:)
10346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10348ac_tool_warned=yes ;;
10349esac
10350 OBJDUMP=$ac_ct_OBJDUMP
10351 fi
10352else
10353 OBJDUMP="$ac_cv_prog_OBJDUMP"
10354fi
10355
10356test -z "$OBJDUMP" && OBJDUMP=objdump
10357
10358
10359
10360
10361
10362
10363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10364$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010365if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010366 $as_echo_n "(cached) " >&6
10367else
10368 lt_cv_file_magic_cmd='$MAGIC_CMD'
10369lt_cv_file_magic_test_file=
10370lt_cv_deplibs_check_method='unknown'
10371# Need to set the preceding variable on all platforms that support
10372# interlibrary dependencies.
10373# 'none' -- dependencies not supported.
10374# `unknown' -- same as none, but documents that we really don't know.
10375# 'pass_all' -- all dependencies passed with no checks.
10376# 'test_compile' -- check by making test program.
10377# 'file_magic [[regex]]' -- check by looking for files in library path
10378# which responds to the $file_magic_cmd with a given extended regex.
10379# If you have `file' or equivalent on your system and you're not sure
10380# whether `pass_all' will *always* work, you probably want this one.
10381
10382case $host_os in
10383aix[4-9]*)
10384 lt_cv_deplibs_check_method=pass_all
10385 ;;
10386
10387beos*)
10388 lt_cv_deplibs_check_method=pass_all
10389 ;;
10390
10391bsdi[45]*)
10392 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10393 lt_cv_file_magic_cmd='/usr/bin/file -L'
10394 lt_cv_file_magic_test_file=/shlib/libc.so
10395 ;;
10396
10397cygwin*)
10398 # func_win32_libid is a shell function defined in ltmain.sh
10399 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10400 lt_cv_file_magic_cmd='func_win32_libid'
10401 ;;
10402
10403mingw* | pw32*)
10404 # Base MSYS/MinGW do not provide the 'file' command needed by
10405 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10406 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010407 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10408 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010409 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10410 lt_cv_file_magic_cmd='func_win32_libid'
10411 else
cristy0c60a692010-11-04 01:09:47 +000010412 # Keep this pattern in sync with the one in func_win32_libid.
10413 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 +000010414 lt_cv_file_magic_cmd='$OBJDUMP -f'
10415 fi
10416 ;;
10417
cristy0c60a692010-11-04 01:09:47 +000010418cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010419 # use the weaker test based on 'objdump'. See mingw*.
10420 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10421 lt_cv_file_magic_cmd='$OBJDUMP -f'
10422 ;;
10423
10424darwin* | rhapsody*)
10425 lt_cv_deplibs_check_method=pass_all
10426 ;;
10427
10428freebsd* | dragonfly*)
10429 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10430 case $host_cpu in
10431 i*86 )
10432 # Not sure whether the presence of OpenBSD here was a mistake.
10433 # Let's accept both of them until this is cleared up.
10434 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10435 lt_cv_file_magic_cmd=/usr/bin/file
10436 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10437 ;;
10438 esac
10439 else
10440 lt_cv_deplibs_check_method=pass_all
10441 fi
10442 ;;
10443
10444gnu*)
10445 lt_cv_deplibs_check_method=pass_all
10446 ;;
10447
cristy0c60a692010-11-04 01:09:47 +000010448haiku*)
10449 lt_cv_deplibs_check_method=pass_all
10450 ;;
10451
cristy73bd4a52010-10-05 11:24:23 +000010452hpux10.20* | hpux11*)
10453 lt_cv_file_magic_cmd=/usr/bin/file
10454 case $host_cpu in
10455 ia64*)
10456 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10457 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10458 ;;
10459 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010460 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 +000010461 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10462 ;;
10463 *)
cristy0c60a692010-11-04 01:09:47 +000010464 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 +000010465 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10466 ;;
10467 esac
10468 ;;
10469
10470interix[3-9]*)
10471 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10472 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10473 ;;
10474
10475irix5* | irix6* | nonstopux*)
10476 case $LD in
10477 *-32|*"-32 ") libmagic=32-bit;;
10478 *-n32|*"-n32 ") libmagic=N32;;
10479 *-64|*"-64 ") libmagic=64-bit;;
10480 *) libmagic=never-match;;
10481 esac
10482 lt_cv_deplibs_check_method=pass_all
10483 ;;
10484
10485# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000010486linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010487 lt_cv_deplibs_check_method=pass_all
10488 ;;
10489
10490netbsd*)
10491 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10493 else
10494 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10495 fi
10496 ;;
10497
10498newos6*)
10499 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10500 lt_cv_file_magic_cmd=/usr/bin/file
10501 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10502 ;;
10503
10504*nto* | *qnx*)
10505 lt_cv_deplibs_check_method=pass_all
10506 ;;
10507
10508openbsd*)
10509 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10510 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10511 else
10512 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10513 fi
10514 ;;
10515
10516osf3* | osf4* | osf5*)
10517 lt_cv_deplibs_check_method=pass_all
10518 ;;
10519
10520rdos*)
10521 lt_cv_deplibs_check_method=pass_all
10522 ;;
10523
10524solaris*)
10525 lt_cv_deplibs_check_method=pass_all
10526 ;;
10527
10528sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10529 lt_cv_deplibs_check_method=pass_all
10530 ;;
10531
10532sysv4 | sysv4.3*)
10533 case $host_vendor in
10534 motorola)
10535 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]'
10536 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10537 ;;
10538 ncr)
10539 lt_cv_deplibs_check_method=pass_all
10540 ;;
10541 sequent)
10542 lt_cv_file_magic_cmd='/bin/file'
10543 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10544 ;;
10545 sni)
10546 lt_cv_file_magic_cmd='/bin/file'
10547 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10548 lt_cv_file_magic_test_file=/lib/libc.so
10549 ;;
10550 siemens)
10551 lt_cv_deplibs_check_method=pass_all
10552 ;;
10553 pc)
10554 lt_cv_deplibs_check_method=pass_all
10555 ;;
10556 esac
10557 ;;
10558
10559tpf*)
10560 lt_cv_deplibs_check_method=pass_all
10561 ;;
10562esac
10563
10564fi
10565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10566$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010567
10568file_magic_glob=
10569want_nocaseglob=no
10570if test "$build" = "$host"; then
10571 case $host_os in
10572 mingw* | pw32*)
10573 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10574 want_nocaseglob=yes
10575 else
10576 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10577 fi
10578 ;;
10579 esac
10580fi
10581
cristy73bd4a52010-10-05 11:24:23 +000010582file_magic_cmd=$lt_cv_file_magic_cmd
10583deplibs_check_method=$lt_cv_deplibs_check_method
10584test -z "$deplibs_check_method" && deplibs_check_method=unknown
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
cristyda16f162011-02-19 23:52:17 +000010597
10598
10599
10600
10601
10602
10603
10604
10605
10606
cristy73bd4a52010-10-05 11:24:23 +000010607if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010608 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10609set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10611$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010612if ${ac_cv_prog_DLLTOOL+:} false; then :
10613 $as_echo_n "(cached) " >&6
10614else
10615 if test -n "$DLLTOOL"; then
10616 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10617else
10618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10619for as_dir in $PATH
10620do
10621 IFS=$as_save_IFS
10622 test -z "$as_dir" && as_dir=.
10623 for ac_exec_ext in '' $ac_executable_extensions; do
10624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10625 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10627 break 2
10628 fi
10629done
10630 done
10631IFS=$as_save_IFS
10632
10633fi
10634fi
10635DLLTOOL=$ac_cv_prog_DLLTOOL
10636if test -n "$DLLTOOL"; then
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10638$as_echo "$DLLTOOL" >&6; }
10639else
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10641$as_echo "no" >&6; }
10642fi
10643
10644
10645fi
10646if test -z "$ac_cv_prog_DLLTOOL"; then
10647 ac_ct_DLLTOOL=$DLLTOOL
10648 # Extract the first word of "dlltool", so it can be a program name with args.
10649set dummy dlltool; ac_word=$2
10650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10651$as_echo_n "checking for $ac_word... " >&6; }
10652if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10653 $as_echo_n "(cached) " >&6
10654else
10655 if test -n "$ac_ct_DLLTOOL"; then
10656 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10657else
10658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10659for as_dir in $PATH
10660do
10661 IFS=$as_save_IFS
10662 test -z "$as_dir" && as_dir=.
10663 for ac_exec_ext in '' $ac_executable_extensions; do
10664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10665 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10667 break 2
10668 fi
10669done
10670 done
10671IFS=$as_save_IFS
10672
10673fi
10674fi
10675ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10676if test -n "$ac_ct_DLLTOOL"; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10678$as_echo "$ac_ct_DLLTOOL" >&6; }
10679else
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10681$as_echo "no" >&6; }
10682fi
10683
10684 if test "x$ac_ct_DLLTOOL" = x; then
10685 DLLTOOL="false"
10686 else
10687 case $cross_compiling:$ac_tool_warned in
10688yes:)
10689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10691ac_tool_warned=yes ;;
10692esac
10693 DLLTOOL=$ac_ct_DLLTOOL
10694 fi
10695else
10696 DLLTOOL="$ac_cv_prog_DLLTOOL"
10697fi
10698
10699test -z "$DLLTOOL" && DLLTOOL=dlltool
10700
10701
10702
10703
10704
10705
10706
10707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10708$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10709if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10710 $as_echo_n "(cached) " >&6
10711else
10712 lt_cv_sharedlib_from_linklib_cmd='unknown'
10713
10714case $host_os in
10715cygwin* | mingw* | pw32* | cegcc*)
10716 # two different shell functions defined in ltmain.sh
10717 # decide which to use based on capabilities of $DLLTOOL
10718 case `$DLLTOOL --help 2>&1` in
10719 *--identify-strict*)
10720 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10721 ;;
10722 *)
10723 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10724 ;;
10725 esac
10726 ;;
10727*)
10728 # fallback: assume linklib IS sharedlib
10729 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10730 ;;
10731esac
10732
10733fi
10734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10735$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10736sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10737test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10738
10739
10740
10741
10742
10743
10744
10745if test -n "$ac_tool_prefix"; then
10746 for ac_prog in ar
10747 do
10748 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10749set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10751$as_echo_n "checking for $ac_word... " >&6; }
10752if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010753 $as_echo_n "(cached) " >&6
10754else
10755 if test -n "$AR"; then
10756 ac_cv_prog_AR="$AR" # Let the user override the test.
10757else
10758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10759for as_dir in $PATH
10760do
10761 IFS=$as_save_IFS
10762 test -z "$as_dir" && as_dir=.
10763 for ac_exec_ext in '' $ac_executable_extensions; do
10764 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 +000010765 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10767 break 2
10768 fi
10769done
10770 done
10771IFS=$as_save_IFS
10772
10773fi
10774fi
10775AR=$ac_cv_prog_AR
10776if test -n "$AR"; then
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10778$as_echo "$AR" >&6; }
10779else
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10781$as_echo "no" >&6; }
10782fi
10783
10784
cristyda16f162011-02-19 23:52:17 +000010785 test -n "$AR" && break
10786 done
cristy73bd4a52010-10-05 11:24:23 +000010787fi
cristyda16f162011-02-19 23:52:17 +000010788if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010789 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010790 for ac_prog in ar
10791do
10792 # Extract the first word of "$ac_prog", so it can be a program name with args.
10793set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10795$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010796if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010797 $as_echo_n "(cached) " >&6
10798else
10799 if test -n "$ac_ct_AR"; then
10800 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10801else
10802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10803for as_dir in $PATH
10804do
10805 IFS=$as_save_IFS
10806 test -z "$as_dir" && as_dir=.
10807 for ac_exec_ext in '' $ac_executable_extensions; do
10808 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 +000010809 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10811 break 2
10812 fi
10813done
10814 done
10815IFS=$as_save_IFS
10816
10817fi
10818fi
10819ac_ct_AR=$ac_cv_prog_ac_ct_AR
10820if test -n "$ac_ct_AR"; then
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10822$as_echo "$ac_ct_AR" >&6; }
10823else
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10825$as_echo "no" >&6; }
10826fi
10827
cristyda16f162011-02-19 23:52:17 +000010828
10829 test -n "$ac_ct_AR" && break
10830done
10831
cristy73bd4a52010-10-05 11:24:23 +000010832 if test "x$ac_ct_AR" = x; then
10833 AR="false"
10834 else
10835 case $cross_compiling:$ac_tool_warned in
10836yes:)
10837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10839ac_tool_warned=yes ;;
10840esac
10841 AR=$ac_ct_AR
10842 fi
cristy73bd4a52010-10-05 11:24:23 +000010843fi
10844
cristyda16f162011-02-19 23:52:17 +000010845: ${AR=ar}
10846: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
cristyda16f162011-02-19 23:52:17 +000010858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10859$as_echo_n "checking for archiver @FILE support... " >&6; }
10860if ${lt_cv_ar_at_file+:} false; then :
10861 $as_echo_n "(cached) " >&6
10862else
10863 lt_cv_ar_at_file=no
10864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10865/* end confdefs.h. */
10866
10867int
10868main ()
10869{
10870
10871 ;
10872 return 0;
10873}
10874_ACEOF
10875if ac_fn_c_try_compile "$LINENO"; then :
10876 echo conftest.$ac_objext > conftest.lst
10877 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10879 (eval $lt_ar_try) 2>&5
10880 ac_status=$?
10881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10882 test $ac_status = 0; }
10883 if test "$ac_status" -eq 0; then
10884 # Ensure the archiver fails upon bogus file names.
10885 rm -f conftest.$ac_objext libconftest.a
10886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10887 (eval $lt_ar_try) 2>&5
10888 ac_status=$?
10889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10890 test $ac_status = 0; }
10891 if test "$ac_status" -ne 0; then
10892 lt_cv_ar_at_file=@
10893 fi
10894 fi
10895 rm -f conftest.* libconftest.a
10896
10897fi
10898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10899
10900fi
10901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10902$as_echo "$lt_cv_ar_at_file" >&6; }
10903
10904if test "x$lt_cv_ar_at_file" = xno; then
10905 archiver_list_spec=
10906else
10907 archiver_list_spec=$lt_cv_ar_at_file
10908fi
10909
10910
10911
10912
10913
10914
10915
cristy73bd4a52010-10-05 11:24:23 +000010916if test -n "$ac_tool_prefix"; then
10917 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10918set dummy ${ac_tool_prefix}strip; ac_word=$2
10919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10920$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010921if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010922 $as_echo_n "(cached) " >&6
10923else
10924 if test -n "$STRIP"; then
10925 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10926else
10927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10928for as_dir in $PATH
10929do
10930 IFS=$as_save_IFS
10931 test -z "$as_dir" && as_dir=.
10932 for ac_exec_ext in '' $ac_executable_extensions; do
10933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10934 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10936 break 2
10937 fi
10938done
10939 done
10940IFS=$as_save_IFS
10941
10942fi
10943fi
10944STRIP=$ac_cv_prog_STRIP
10945if test -n "$STRIP"; then
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10947$as_echo "$STRIP" >&6; }
10948else
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10950$as_echo "no" >&6; }
10951fi
10952
10953
10954fi
10955if test -z "$ac_cv_prog_STRIP"; then
10956 ac_ct_STRIP=$STRIP
10957 # Extract the first word of "strip", so it can be a program name with args.
10958set dummy strip; ac_word=$2
10959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10960$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010961if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010962 $as_echo_n "(cached) " >&6
10963else
10964 if test -n "$ac_ct_STRIP"; then
10965 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10966else
10967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10968for as_dir in $PATH
10969do
10970 IFS=$as_save_IFS
10971 test -z "$as_dir" && as_dir=.
10972 for ac_exec_ext in '' $ac_executable_extensions; do
10973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10974 ac_cv_prog_ac_ct_STRIP="strip"
10975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10976 break 2
10977 fi
10978done
10979 done
10980IFS=$as_save_IFS
10981
10982fi
10983fi
10984ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10985if test -n "$ac_ct_STRIP"; then
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10987$as_echo "$ac_ct_STRIP" >&6; }
10988else
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10990$as_echo "no" >&6; }
10991fi
10992
10993 if test "x$ac_ct_STRIP" = x; then
10994 STRIP=":"
10995 else
10996 case $cross_compiling:$ac_tool_warned in
10997yes:)
10998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11000ac_tool_warned=yes ;;
11001esac
11002 STRIP=$ac_ct_STRIP
11003 fi
11004else
11005 STRIP="$ac_cv_prog_STRIP"
11006fi
11007
11008test -z "$STRIP" && STRIP=:
11009
11010
11011
11012
11013
11014
11015if test -n "$ac_tool_prefix"; then
11016 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11017set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11019$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011020if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011021 $as_echo_n "(cached) " >&6
11022else
11023 if test -n "$RANLIB"; then
11024 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11025else
11026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11027for as_dir in $PATH
11028do
11029 IFS=$as_save_IFS
11030 test -z "$as_dir" && as_dir=.
11031 for ac_exec_ext in '' $ac_executable_extensions; do
11032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11033 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11035 break 2
11036 fi
11037done
11038 done
11039IFS=$as_save_IFS
11040
11041fi
11042fi
11043RANLIB=$ac_cv_prog_RANLIB
11044if test -n "$RANLIB"; then
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11046$as_echo "$RANLIB" >&6; }
11047else
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11049$as_echo "no" >&6; }
11050fi
11051
11052
11053fi
11054if test -z "$ac_cv_prog_RANLIB"; then
11055 ac_ct_RANLIB=$RANLIB
11056 # Extract the first word of "ranlib", so it can be a program name with args.
11057set dummy ranlib; ac_word=$2
11058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11059$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011060if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011061 $as_echo_n "(cached) " >&6
11062else
11063 if test -n "$ac_ct_RANLIB"; then
11064 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11065else
11066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11067for as_dir in $PATH
11068do
11069 IFS=$as_save_IFS
11070 test -z "$as_dir" && as_dir=.
11071 for ac_exec_ext in '' $ac_executable_extensions; do
11072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11073 ac_cv_prog_ac_ct_RANLIB="ranlib"
11074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11075 break 2
11076 fi
11077done
11078 done
11079IFS=$as_save_IFS
11080
11081fi
11082fi
11083ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11084if test -n "$ac_ct_RANLIB"; then
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11086$as_echo "$ac_ct_RANLIB" >&6; }
11087else
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11089$as_echo "no" >&6; }
11090fi
11091
11092 if test "x$ac_ct_RANLIB" = x; then
11093 RANLIB=":"
11094 else
11095 case $cross_compiling:$ac_tool_warned in
11096yes:)
11097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11099ac_tool_warned=yes ;;
11100esac
11101 RANLIB=$ac_ct_RANLIB
11102 fi
11103else
11104 RANLIB="$ac_cv_prog_RANLIB"
11105fi
11106
11107test -z "$RANLIB" && RANLIB=:
11108
11109
11110
11111
11112
11113
11114# Determine commands to create old-style static archives.
11115old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11116old_postinstall_cmds='chmod 644 $oldlib'
11117old_postuninstall_cmds=
11118
11119if test -n "$RANLIB"; then
11120 case $host_os in
11121 openbsd*)
11122 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11123 ;;
11124 *)
11125 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11126 ;;
11127 esac
11128 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11129fi
11130
cristy0c60a692010-11-04 01:09:47 +000011131case $host_os in
11132 darwin*)
11133 lock_old_archive_extraction=yes ;;
11134 *)
11135 lock_old_archive_extraction=no ;;
11136esac
11137
11138
11139
11140
11141
11142
cristy73bd4a52010-10-05 11:24:23 +000011143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176# If no C compiler was specified, use CC.
11177LTCC=${LTCC-"$CC"}
11178
11179# If no C compiler flags were specified, use CFLAGS.
11180LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11181
11182# Allow CC to be a program name with arguments.
11183compiler=$CC
11184
11185
11186# Check for command to grab the raw symbol name followed by C symbol from nm.
11187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11188$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011189if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011190 $as_echo_n "(cached) " >&6
11191else
11192
11193# These are sane defaults that work on at least a few old systems.
11194# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11195
11196# Character class describing NM global symbol codes.
11197symcode='[BCDEGRST]'
11198
11199# Regexp to match symbols that can be accessed directly from C.
11200sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11201
11202# Define system-specific variables.
11203case $host_os in
11204aix*)
11205 symcode='[BCDT]'
11206 ;;
11207cygwin* | mingw* | pw32* | cegcc*)
11208 symcode='[ABCDGISTW]'
11209 ;;
11210hpux*)
11211 if test "$host_cpu" = ia64; then
11212 symcode='[ABCDEGRST]'
11213 fi
11214 ;;
11215irix* | nonstopux*)
11216 symcode='[BCDEGRST]'
11217 ;;
11218osf*)
11219 symcode='[BCDEGQRST]'
11220 ;;
11221solaris*)
11222 symcode='[BDRT]'
11223 ;;
11224sco3.2v5*)
11225 symcode='[DT]'
11226 ;;
11227sysv4.2uw2*)
11228 symcode='[DT]'
11229 ;;
11230sysv5* | sco5v6* | unixware* | OpenUNIX*)
11231 symcode='[ABDT]'
11232 ;;
11233sysv4)
11234 symcode='[DFNSTU]'
11235 ;;
11236esac
11237
11238# If we're using GNU nm, then use its standard symbol codes.
11239case `$NM -V 2>&1` in
11240*GNU* | *'with BFD'*)
11241 symcode='[ABCDGIRSTW]' ;;
11242esac
11243
11244# Transform an extracted symbol line into a proper C declaration.
11245# Some systems (esp. on ia64) link data and code symbols differently,
11246# so use this general approach.
11247lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11248
11249# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011250lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11251lt_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 +000011252
11253# Handle CRLF in mingw tool chain
11254opt_cr=
11255case $build_os in
11256mingw*)
11257 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11258 ;;
11259esac
11260
11261# Try without a prefix underscore, then with it.
11262for ac_symprfx in "" "_"; do
11263
11264 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11265 symxfrm="\\1 $ac_symprfx\\2 \\2"
11266
11267 # Write the raw and C identifiers.
11268 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11269 # Fake it for dumpbin and say T for any non-static function
11270 # and D for any global variable.
11271 # Also find C++ and __fastcall symbols from MSVC++,
11272 # which start with @ or ?.
11273 lt_cv_sys_global_symbol_pipe="$AWK '"\
11274" {last_section=section; section=\$ 3};"\
11275" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11276" \$ 0!~/External *\|/{next};"\
11277" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11278" {if(hide[section]) next};"\
11279" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11280" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11281" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11282" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11283" ' prfx=^$ac_symprfx"
11284 else
11285 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11286 fi
cristyda16f162011-02-19 23:52:17 +000011287 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011288
11289 # Check to see that the pipe works correctly.
11290 pipe_works=no
11291
11292 rm -f conftest*
11293 cat > conftest.$ac_ext <<_LT_EOF
11294#ifdef __cplusplus
11295extern "C" {
11296#endif
11297char nm_test_var;
11298void nm_test_func(void);
11299void nm_test_func(void){}
11300#ifdef __cplusplus
11301}
11302#endif
11303int main(){nm_test_var='a';nm_test_func();return(0);}
11304_LT_EOF
11305
11306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11307 (eval $ac_compile) 2>&5
11308 ac_status=$?
11309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11310 test $ac_status = 0; }; then
11311 # Now try to grab the symbols.
11312 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11314 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011315 ac_status=$?
11316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11317 test $ac_status = 0; } && test -s "$nlist"; then
11318 # Try sorting and uniquifying the output.
11319 if sort "$nlist" | uniq > "$nlist"T; then
11320 mv -f "$nlist"T "$nlist"
11321 else
11322 rm -f "$nlist"T
11323 fi
11324
11325 # Make sure that we snagged all the symbols we need.
11326 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11327 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11328 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011329/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11330#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11331/* DATA imports from DLLs on WIN32 con't be const, because runtime
11332 relocations are performed -- see ld's documentation on pseudo-relocs. */
11333# define LT_DLSYM_CONST
11334#elif defined(__osf__)
11335/* This system does not cope well with relocations in const data. */
11336# define LT_DLSYM_CONST
11337#else
11338# define LT_DLSYM_CONST const
11339#endif
11340
cristy73bd4a52010-10-05 11:24:23 +000011341#ifdef __cplusplus
11342extern "C" {
11343#endif
11344
11345_LT_EOF
11346 # Now generate the symbol file.
11347 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11348
11349 cat <<_LT_EOF >> conftest.$ac_ext
11350
11351/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011352LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011353 const char *name;
11354 void *address;
11355}
11356lt__PROGRAM__LTX_preloaded_symbols[] =
11357{
11358 { "@PROGRAM@", (void *) 0 },
11359_LT_EOF
11360 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11361 cat <<\_LT_EOF >> conftest.$ac_ext
11362 {0, (void *) 0}
11363};
11364
11365/* This works around a problem in FreeBSD linker */
11366#ifdef FREEBSD_WORKAROUND
11367static const void *lt_preloaded_setup() {
11368 return lt__PROGRAM__LTX_preloaded_symbols;
11369}
11370#endif
11371
11372#ifdef __cplusplus
11373}
11374#endif
11375_LT_EOF
11376 # Now try linking the two files.
11377 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011378 lt_globsym_save_LIBS=$LIBS
11379 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011380 LIBS="conftstm.$ac_objext"
11381 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11383 (eval $ac_link) 2>&5
11384 ac_status=$?
11385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11386 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11387 pipe_works=yes
11388 fi
cristyda16f162011-02-19 23:52:17 +000011389 LIBS=$lt_globsym_save_LIBS
11390 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011391 else
11392 echo "cannot find nm_test_func in $nlist" >&5
11393 fi
11394 else
11395 echo "cannot find nm_test_var in $nlist" >&5
11396 fi
11397 else
11398 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11399 fi
11400 else
11401 echo "$progname: failed program was:" >&5
11402 cat conftest.$ac_ext >&5
11403 fi
11404 rm -rf conftest* conftst*
11405
11406 # Do not use the global_symbol_pipe unless it works.
11407 if test "$pipe_works" = yes; then
11408 break
11409 else
11410 lt_cv_sys_global_symbol_pipe=
11411 fi
11412done
11413
11414fi
11415
11416if test -z "$lt_cv_sys_global_symbol_pipe"; then
11417 lt_cv_sys_global_symbol_to_cdecl=
11418fi
11419if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11421$as_echo "failed" >&6; }
11422else
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11424$as_echo "ok" >&6; }
11425fi
11426
cristyda16f162011-02-19 23:52:17 +000011427# Response file support.
11428if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11429 nm_file_list_spec='@'
11430elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11431 nm_file_list_spec='@'
11432fi
cristy73bd4a52010-10-05 11:24:23 +000011433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
cristyda16f162011-02-19 23:52:17 +000011454
11455
11456
11457
11458
11459
11460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11461$as_echo_n "checking for sysroot... " >&6; }
11462
11463# Check whether --with-sysroot was given.
11464if test "${with_sysroot+set}" = set; then :
11465 withval=$with_sysroot;
11466else
11467 with_sysroot=no
11468fi
11469
11470
11471lt_sysroot=
11472case ${with_sysroot} in #(
11473 yes)
11474 if test "$GCC" = yes; then
11475 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11476 fi
11477 ;; #(
11478 /*)
11479 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11480 ;; #(
11481 no|'')
11482 ;; #(
11483 *)
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11485$as_echo "${with_sysroot}" >&6; }
11486 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11487 ;;
11488esac
11489
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11491$as_echo "${lt_sysroot:-no}" >&6; }
11492
11493
11494
11495
11496
cristy73bd4a52010-10-05 11:24:23 +000011497# Check whether --enable-libtool-lock was given.
11498if test "${enable_libtool_lock+set}" = set; then :
11499 enableval=$enable_libtool_lock;
11500fi
11501
11502test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11503
11504# Some flags need to be propagated to the compiler or linker for good
11505# libtool support.
11506case $host in
11507ia64-*-hpux*)
11508 # Find out which ABI we are using.
11509 echo 'int i;' > conftest.$ac_ext
11510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11511 (eval $ac_compile) 2>&5
11512 ac_status=$?
11513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11514 test $ac_status = 0; }; then
11515 case `/usr/bin/file conftest.$ac_objext` in
11516 *ELF-32*)
11517 HPUX_IA64_MODE="32"
11518 ;;
11519 *ELF-64*)
11520 HPUX_IA64_MODE="64"
11521 ;;
11522 esac
11523 fi
11524 rm -rf conftest*
11525 ;;
11526*-*-irix6*)
11527 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011528 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11530 (eval $ac_compile) 2>&5
11531 ac_status=$?
11532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11533 test $ac_status = 0; }; then
11534 if test "$lt_cv_prog_gnu_ld" = yes; then
11535 case `/usr/bin/file conftest.$ac_objext` in
11536 *32-bit*)
11537 LD="${LD-ld} -melf32bsmip"
11538 ;;
11539 *N32*)
11540 LD="${LD-ld} -melf32bmipn32"
11541 ;;
11542 *64-bit*)
11543 LD="${LD-ld} -melf64bmip"
11544 ;;
11545 esac
11546 else
11547 case `/usr/bin/file conftest.$ac_objext` in
11548 *32-bit*)
11549 LD="${LD-ld} -32"
11550 ;;
11551 *N32*)
11552 LD="${LD-ld} -n32"
11553 ;;
11554 *64-bit*)
11555 LD="${LD-ld} -64"
11556 ;;
11557 esac
11558 fi
11559 fi
11560 rm -rf conftest*
11561 ;;
11562
11563x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11564s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11565 # Find out which ABI we are using.
11566 echo 'int i;' > conftest.$ac_ext
11567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11568 (eval $ac_compile) 2>&5
11569 ac_status=$?
11570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11571 test $ac_status = 0; }; then
11572 case `/usr/bin/file conftest.o` in
11573 *32-bit*)
11574 case $host in
11575 x86_64-*kfreebsd*-gnu)
11576 LD="${LD-ld} -m elf_i386_fbsd"
11577 ;;
11578 x86_64-*linux*)
11579 LD="${LD-ld} -m elf_i386"
11580 ;;
11581 ppc64-*linux*|powerpc64-*linux*)
11582 LD="${LD-ld} -m elf32ppclinux"
11583 ;;
11584 s390x-*linux*)
11585 LD="${LD-ld} -m elf_s390"
11586 ;;
11587 sparc64-*linux*)
11588 LD="${LD-ld} -m elf32_sparc"
11589 ;;
11590 esac
11591 ;;
11592 *64-bit*)
11593 case $host in
11594 x86_64-*kfreebsd*-gnu)
11595 LD="${LD-ld} -m elf_x86_64_fbsd"
11596 ;;
11597 x86_64-*linux*)
11598 LD="${LD-ld} -m elf_x86_64"
11599 ;;
11600 ppc*-*linux*|powerpc*-*linux*)
11601 LD="${LD-ld} -m elf64ppc"
11602 ;;
11603 s390*-*linux*|s390*-*tpf*)
11604 LD="${LD-ld} -m elf64_s390"
11605 ;;
11606 sparc*-*linux*)
11607 LD="${LD-ld} -m elf64_sparc"
11608 ;;
11609 esac
11610 ;;
11611 esac
11612 fi
11613 rm -rf conftest*
11614 ;;
11615
11616*-*-sco3.2v5*)
11617 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11618 SAVE_CFLAGS="$CFLAGS"
11619 CFLAGS="$CFLAGS -belf"
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11621$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011622if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011623 $as_echo_n "(cached) " >&6
11624else
11625 ac_ext=c
11626ac_cpp='$CPP $CPPFLAGS'
11627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11629ac_compiler_gnu=$ac_cv_c_compiler_gnu
11630
11631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11632/* end confdefs.h. */
11633
11634int
11635main ()
11636{
11637
11638 ;
11639 return 0;
11640}
11641_ACEOF
11642if ac_fn_c_try_link "$LINENO"; then :
11643 lt_cv_cc_needs_belf=yes
11644else
11645 lt_cv_cc_needs_belf=no
11646fi
11647rm -f core conftest.err conftest.$ac_objext \
11648 conftest$ac_exeext conftest.$ac_ext
11649 ac_ext=c
11650ac_cpp='$CPP $CPPFLAGS'
11651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11653ac_compiler_gnu=$ac_cv_c_compiler_gnu
11654
11655fi
11656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11657$as_echo "$lt_cv_cc_needs_belf" >&6; }
11658 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11659 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11660 CFLAGS="$SAVE_CFLAGS"
11661 fi
11662 ;;
11663sparc*-*solaris*)
11664 # Find out which ABI we are using.
11665 echo 'int i;' > conftest.$ac_ext
11666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11667 (eval $ac_compile) 2>&5
11668 ac_status=$?
11669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11670 test $ac_status = 0; }; then
11671 case `/usr/bin/file conftest.o` in
11672 *64-bit*)
11673 case $lt_cv_prog_gnu_ld in
11674 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11675 *)
11676 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11677 LD="${LD-ld} -64"
11678 fi
11679 ;;
11680 esac
11681 ;;
11682 esac
11683 fi
11684 rm -rf conftest*
11685 ;;
11686esac
11687
11688need_locks="$enable_libtool_lock"
11689
cristyda16f162011-02-19 23:52:17 +000011690if test -n "$ac_tool_prefix"; then
11691 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11692set dummy ${ac_tool_prefix}mt; ac_word=$2
11693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11694$as_echo_n "checking for $ac_word... " >&6; }
11695if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11696 $as_echo_n "(cached) " >&6
11697else
11698 if test -n "$MANIFEST_TOOL"; then
11699 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11700else
11701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11702for as_dir in $PATH
11703do
11704 IFS=$as_save_IFS
11705 test -z "$as_dir" && as_dir=.
11706 for ac_exec_ext in '' $ac_executable_extensions; do
11707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11708 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11710 break 2
11711 fi
11712done
11713 done
11714IFS=$as_save_IFS
11715
11716fi
11717fi
11718MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11719if test -n "$MANIFEST_TOOL"; then
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11721$as_echo "$MANIFEST_TOOL" >&6; }
11722else
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11724$as_echo "no" >&6; }
11725fi
11726
11727
11728fi
11729if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11730 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11731 # Extract the first word of "mt", so it can be a program name with args.
11732set dummy mt; ac_word=$2
11733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11734$as_echo_n "checking for $ac_word... " >&6; }
11735if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11736 $as_echo_n "(cached) " >&6
11737else
11738 if test -n "$ac_ct_MANIFEST_TOOL"; then
11739 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11740else
11741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742for as_dir in $PATH
11743do
11744 IFS=$as_save_IFS
11745 test -z "$as_dir" && as_dir=.
11746 for ac_exec_ext in '' $ac_executable_extensions; do
11747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11748 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11750 break 2
11751 fi
11752done
11753 done
11754IFS=$as_save_IFS
11755
11756fi
11757fi
11758ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11759if test -n "$ac_ct_MANIFEST_TOOL"; then
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11761$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11762else
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764$as_echo "no" >&6; }
11765fi
11766
11767 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11768 MANIFEST_TOOL=":"
11769 else
11770 case $cross_compiling:$ac_tool_warned in
11771yes:)
11772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11774ac_tool_warned=yes ;;
11775esac
11776 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11777 fi
11778else
11779 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11780fi
11781
11782test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11784$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11785if ${lt_cv_path_mainfest_tool+:} false; then :
11786 $as_echo_n "(cached) " >&6
11787else
11788 lt_cv_path_mainfest_tool=no
11789 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11790 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11791 cat conftest.err >&5
11792 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11793 lt_cv_path_mainfest_tool=yes
11794 fi
11795 rm -f conftest*
11796fi
11797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11798$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11799if test "x$lt_cv_path_mainfest_tool" != xyes; then
11800 MANIFEST_TOOL=:
11801fi
11802
11803
11804
11805
11806
cristy73bd4a52010-10-05 11:24:23 +000011807
11808 case $host_os in
11809 rhapsody* | darwin*)
11810 if test -n "$ac_tool_prefix"; then
11811 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11812set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11814$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011815if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011816 $as_echo_n "(cached) " >&6
11817else
11818 if test -n "$DSYMUTIL"; then
11819 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11820else
11821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11822for as_dir in $PATH
11823do
11824 IFS=$as_save_IFS
11825 test -z "$as_dir" && as_dir=.
11826 for ac_exec_ext in '' $ac_executable_extensions; do
11827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11828 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11830 break 2
11831 fi
11832done
11833 done
11834IFS=$as_save_IFS
11835
11836fi
11837fi
11838DSYMUTIL=$ac_cv_prog_DSYMUTIL
11839if test -n "$DSYMUTIL"; then
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11841$as_echo "$DSYMUTIL" >&6; }
11842else
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11844$as_echo "no" >&6; }
11845fi
11846
11847
11848fi
11849if test -z "$ac_cv_prog_DSYMUTIL"; then
11850 ac_ct_DSYMUTIL=$DSYMUTIL
11851 # Extract the first word of "dsymutil", so it can be a program name with args.
11852set dummy dsymutil; ac_word=$2
11853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11854$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011855if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011856 $as_echo_n "(cached) " >&6
11857else
11858 if test -n "$ac_ct_DSYMUTIL"; then
11859 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11860else
11861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11862for as_dir in $PATH
11863do
11864 IFS=$as_save_IFS
11865 test -z "$as_dir" && as_dir=.
11866 for ac_exec_ext in '' $ac_executable_extensions; do
11867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11868 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11870 break 2
11871 fi
11872done
11873 done
11874IFS=$as_save_IFS
11875
11876fi
11877fi
11878ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11879if test -n "$ac_ct_DSYMUTIL"; then
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11881$as_echo "$ac_ct_DSYMUTIL" >&6; }
11882else
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884$as_echo "no" >&6; }
11885fi
11886
11887 if test "x$ac_ct_DSYMUTIL" = x; then
11888 DSYMUTIL=":"
11889 else
11890 case $cross_compiling:$ac_tool_warned in
11891yes:)
11892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11894ac_tool_warned=yes ;;
11895esac
11896 DSYMUTIL=$ac_ct_DSYMUTIL
11897 fi
11898else
11899 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11900fi
11901
11902 if test -n "$ac_tool_prefix"; then
11903 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11904set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11906$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011907if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011908 $as_echo_n "(cached) " >&6
11909else
11910 if test -n "$NMEDIT"; then
11911 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11912else
11913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11914for as_dir in $PATH
11915do
11916 IFS=$as_save_IFS
11917 test -z "$as_dir" && as_dir=.
11918 for ac_exec_ext in '' $ac_executable_extensions; do
11919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11920 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11922 break 2
11923 fi
11924done
11925 done
11926IFS=$as_save_IFS
11927
11928fi
11929fi
11930NMEDIT=$ac_cv_prog_NMEDIT
11931if test -n "$NMEDIT"; then
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11933$as_echo "$NMEDIT" >&6; }
11934else
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11936$as_echo "no" >&6; }
11937fi
11938
11939
11940fi
11941if test -z "$ac_cv_prog_NMEDIT"; then
11942 ac_ct_NMEDIT=$NMEDIT
11943 # Extract the first word of "nmedit", so it can be a program name with args.
11944set dummy nmedit; ac_word=$2
11945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11946$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011947if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011948 $as_echo_n "(cached) " >&6
11949else
11950 if test -n "$ac_ct_NMEDIT"; then
11951 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11952else
11953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11954for as_dir in $PATH
11955do
11956 IFS=$as_save_IFS
11957 test -z "$as_dir" && as_dir=.
11958 for ac_exec_ext in '' $ac_executable_extensions; do
11959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11960 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11962 break 2
11963 fi
11964done
11965 done
11966IFS=$as_save_IFS
11967
11968fi
11969fi
11970ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11971if test -n "$ac_ct_NMEDIT"; then
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11973$as_echo "$ac_ct_NMEDIT" >&6; }
11974else
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11976$as_echo "no" >&6; }
11977fi
11978
11979 if test "x$ac_ct_NMEDIT" = x; then
11980 NMEDIT=":"
11981 else
11982 case $cross_compiling:$ac_tool_warned in
11983yes:)
11984{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11986ac_tool_warned=yes ;;
11987esac
11988 NMEDIT=$ac_ct_NMEDIT
11989 fi
11990else
11991 NMEDIT="$ac_cv_prog_NMEDIT"
11992fi
11993
11994 if test -n "$ac_tool_prefix"; then
11995 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11996set dummy ${ac_tool_prefix}lipo; ac_word=$2
11997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11998$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011999if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012000 $as_echo_n "(cached) " >&6
12001else
12002 if test -n "$LIPO"; then
12003 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12004else
12005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12006for as_dir in $PATH
12007do
12008 IFS=$as_save_IFS
12009 test -z "$as_dir" && as_dir=.
12010 for ac_exec_ext in '' $ac_executable_extensions; do
12011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12012 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12014 break 2
12015 fi
12016done
12017 done
12018IFS=$as_save_IFS
12019
12020fi
12021fi
12022LIPO=$ac_cv_prog_LIPO
12023if test -n "$LIPO"; then
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12025$as_echo "$LIPO" >&6; }
12026else
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028$as_echo "no" >&6; }
12029fi
12030
12031
12032fi
12033if test -z "$ac_cv_prog_LIPO"; then
12034 ac_ct_LIPO=$LIPO
12035 # Extract the first word of "lipo", so it can be a program name with args.
12036set dummy lipo; ac_word=$2
12037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12038$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012039if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012040 $as_echo_n "(cached) " >&6
12041else
12042 if test -n "$ac_ct_LIPO"; then
12043 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12044else
12045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12046for as_dir in $PATH
12047do
12048 IFS=$as_save_IFS
12049 test -z "$as_dir" && as_dir=.
12050 for ac_exec_ext in '' $ac_executable_extensions; do
12051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12052 ac_cv_prog_ac_ct_LIPO="lipo"
12053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12054 break 2
12055 fi
12056done
12057 done
12058IFS=$as_save_IFS
12059
12060fi
12061fi
12062ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12063if test -n "$ac_ct_LIPO"; then
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12065$as_echo "$ac_ct_LIPO" >&6; }
12066else
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12068$as_echo "no" >&6; }
12069fi
12070
12071 if test "x$ac_ct_LIPO" = x; then
12072 LIPO=":"
12073 else
12074 case $cross_compiling:$ac_tool_warned in
12075yes:)
12076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12078ac_tool_warned=yes ;;
12079esac
12080 LIPO=$ac_ct_LIPO
12081 fi
12082else
12083 LIPO="$ac_cv_prog_LIPO"
12084fi
12085
12086 if test -n "$ac_tool_prefix"; then
12087 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12088set dummy ${ac_tool_prefix}otool; ac_word=$2
12089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12090$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012091if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012092 $as_echo_n "(cached) " >&6
12093else
12094 if test -n "$OTOOL"; then
12095 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12096else
12097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098for as_dir in $PATH
12099do
12100 IFS=$as_save_IFS
12101 test -z "$as_dir" && as_dir=.
12102 for ac_exec_ext in '' $ac_executable_extensions; do
12103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12104 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12106 break 2
12107 fi
12108done
12109 done
12110IFS=$as_save_IFS
12111
12112fi
12113fi
12114OTOOL=$ac_cv_prog_OTOOL
12115if test -n "$OTOOL"; then
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12117$as_echo "$OTOOL" >&6; }
12118else
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12120$as_echo "no" >&6; }
12121fi
12122
12123
12124fi
12125if test -z "$ac_cv_prog_OTOOL"; then
12126 ac_ct_OTOOL=$OTOOL
12127 # Extract the first word of "otool", so it can be a program name with args.
12128set dummy otool; ac_word=$2
12129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12130$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012131if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012132 $as_echo_n "(cached) " >&6
12133else
12134 if test -n "$ac_ct_OTOOL"; then
12135 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12136else
12137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12138for as_dir in $PATH
12139do
12140 IFS=$as_save_IFS
12141 test -z "$as_dir" && as_dir=.
12142 for ac_exec_ext in '' $ac_executable_extensions; do
12143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12144 ac_cv_prog_ac_ct_OTOOL="otool"
12145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12146 break 2
12147 fi
12148done
12149 done
12150IFS=$as_save_IFS
12151
12152fi
12153fi
12154ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12155if test -n "$ac_ct_OTOOL"; then
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12157$as_echo "$ac_ct_OTOOL" >&6; }
12158else
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12160$as_echo "no" >&6; }
12161fi
12162
12163 if test "x$ac_ct_OTOOL" = x; then
12164 OTOOL=":"
12165 else
12166 case $cross_compiling:$ac_tool_warned in
12167yes:)
12168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12170ac_tool_warned=yes ;;
12171esac
12172 OTOOL=$ac_ct_OTOOL
12173 fi
12174else
12175 OTOOL="$ac_cv_prog_OTOOL"
12176fi
12177
12178 if test -n "$ac_tool_prefix"; then
12179 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12180set dummy ${ac_tool_prefix}otool64; ac_word=$2
12181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12182$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012183if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012184 $as_echo_n "(cached) " >&6
12185else
12186 if test -n "$OTOOL64"; then
12187 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12188else
12189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12190for as_dir in $PATH
12191do
12192 IFS=$as_save_IFS
12193 test -z "$as_dir" && as_dir=.
12194 for ac_exec_ext in '' $ac_executable_extensions; do
12195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12196 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12198 break 2
12199 fi
12200done
12201 done
12202IFS=$as_save_IFS
12203
12204fi
12205fi
12206OTOOL64=$ac_cv_prog_OTOOL64
12207if test -n "$OTOOL64"; then
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12209$as_echo "$OTOOL64" >&6; }
12210else
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12212$as_echo "no" >&6; }
12213fi
12214
12215
12216fi
12217if test -z "$ac_cv_prog_OTOOL64"; then
12218 ac_ct_OTOOL64=$OTOOL64
12219 # Extract the first word of "otool64", so it can be a program name with args.
12220set dummy otool64; ac_word=$2
12221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12222$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012223if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012224 $as_echo_n "(cached) " >&6
12225else
12226 if test -n "$ac_ct_OTOOL64"; then
12227 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12228else
12229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12230for as_dir in $PATH
12231do
12232 IFS=$as_save_IFS
12233 test -z "$as_dir" && as_dir=.
12234 for ac_exec_ext in '' $ac_executable_extensions; do
12235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12236 ac_cv_prog_ac_ct_OTOOL64="otool64"
12237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12238 break 2
12239 fi
12240done
12241 done
12242IFS=$as_save_IFS
12243
12244fi
12245fi
12246ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12247if test -n "$ac_ct_OTOOL64"; then
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12249$as_echo "$ac_ct_OTOOL64" >&6; }
12250else
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12252$as_echo "no" >&6; }
12253fi
12254
12255 if test "x$ac_ct_OTOOL64" = x; then
12256 OTOOL64=":"
12257 else
12258 case $cross_compiling:$ac_tool_warned in
12259yes:)
12260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12262ac_tool_warned=yes ;;
12263esac
12264 OTOOL64=$ac_ct_OTOOL64
12265 fi
12266else
12267 OTOOL64="$ac_cv_prog_OTOOL64"
12268fi
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12297$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012298if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012299 $as_echo_n "(cached) " >&6
12300else
12301 lt_cv_apple_cc_single_mod=no
12302 if test -z "${LT_MULTI_MODULE}"; then
12303 # By default we will add the -single_module flag. You can override
12304 # by either setting the environment variable LT_MULTI_MODULE
12305 # non-empty at configure time, or by adding -multi_module to the
12306 # link flags.
12307 rm -rf libconftest.dylib*
12308 echo "int foo(void){return 1;}" > conftest.c
12309 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12310-dynamiclib -Wl,-single_module conftest.c" >&5
12311 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12312 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12313 _lt_result=$?
12314 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12315 lt_cv_apple_cc_single_mod=yes
12316 else
12317 cat conftest.err >&5
12318 fi
12319 rm -rf libconftest.dylib*
12320 rm -f conftest.*
12321 fi
12322fi
12323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12324$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12326$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012327if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012328 $as_echo_n "(cached) " >&6
12329else
12330 lt_cv_ld_exported_symbols_list=no
12331 save_LDFLAGS=$LDFLAGS
12332 echo "_main" > conftest.sym
12333 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12335/* end confdefs.h. */
12336
12337int
12338main ()
12339{
12340
12341 ;
12342 return 0;
12343}
12344_ACEOF
12345if ac_fn_c_try_link "$LINENO"; then :
12346 lt_cv_ld_exported_symbols_list=yes
12347else
12348 lt_cv_ld_exported_symbols_list=no
12349fi
12350rm -f core conftest.err conftest.$ac_objext \
12351 conftest$ac_exeext conftest.$ac_ext
12352 LDFLAGS="$save_LDFLAGS"
12353
12354fi
12355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12356$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy0c60a692010-11-04 01:09:47 +000012357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12358$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012359if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012360 $as_echo_n "(cached) " >&6
12361else
12362 lt_cv_ld_force_load=no
12363 cat > conftest.c << _LT_EOF
12364int forced_loaded() { return 2;}
12365_LT_EOF
12366 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12367 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12368 echo "$AR cru libconftest.a conftest.o" >&5
12369 $AR cru libconftest.a conftest.o 2>&5
12370 echo "$RANLIB libconftest.a" >&5
12371 $RANLIB libconftest.a 2>&5
12372 cat > conftest.c << _LT_EOF
12373int main() { return 0;}
12374_LT_EOF
12375 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12376 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12377 _lt_result=$?
12378 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12379 lt_cv_ld_force_load=yes
12380 else
12381 cat conftest.err >&5
12382 fi
12383 rm -f conftest.err libconftest.a conftest conftest.c
12384 rm -rf conftest.dSYM
12385
12386fi
12387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12388$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012389 case $host_os in
12390 rhapsody* | darwin1.[012])
12391 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12392 darwin1.*)
12393 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12394 darwin*) # darwin 5.x on
12395 # if running on 10.5 or later, the deployment target defaults
12396 # to the OS version, if on x86, and 10.4, the deployment
12397 # target defaults to 10.4. Don't you love it?
12398 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12399 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12400 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12401 10.[012]*)
12402 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12403 10.*)
12404 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12405 esac
12406 ;;
12407 esac
12408 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12409 _lt_dar_single_mod='$single_module'
12410 fi
12411 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12412 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12413 else
12414 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12415 fi
cristy0c60a692010-11-04 01:09:47 +000012416 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012417 _lt_dsymutil='~$DSYMUTIL $lib || :'
12418 else
12419 _lt_dsymutil=
12420 fi
12421 ;;
12422 esac
12423
12424for ac_header in dlfcn.h
12425do :
12426 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12427"
cristyda16f162011-02-19 23:52:17 +000012428if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012429 cat >>confdefs.h <<_ACEOF
12430#define HAVE_DLFCN_H 1
12431_ACEOF
12432
12433fi
12434
12435done
12436
12437
12438
cristy73bd4a52010-10-05 11:24:23 +000012439
cristyda16f162011-02-19 23:52:17 +000012440func_stripname_cnf ()
12441{
12442 case ${2} in
12443 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12444 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12445 esac
12446} # func_stripname_cnf
12447
12448
12449
cristy73bd4a52010-10-05 11:24:23 +000012450
12451
12452# Set options
12453enable_win32_dll=yes
12454
12455case $host in
cristy0c60a692010-11-04 01:09:47 +000012456*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012457 if test -n "$ac_tool_prefix"; then
12458 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12459set dummy ${ac_tool_prefix}as; ac_word=$2
12460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12461$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012462if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012463 $as_echo_n "(cached) " >&6
12464else
12465 if test -n "$AS"; then
12466 ac_cv_prog_AS="$AS" # Let the user override the test.
12467else
12468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12469for as_dir in $PATH
12470do
12471 IFS=$as_save_IFS
12472 test -z "$as_dir" && as_dir=.
12473 for ac_exec_ext in '' $ac_executable_extensions; do
12474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12475 ac_cv_prog_AS="${ac_tool_prefix}as"
12476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12477 break 2
12478 fi
12479done
12480 done
12481IFS=$as_save_IFS
12482
12483fi
12484fi
12485AS=$ac_cv_prog_AS
12486if test -n "$AS"; then
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12488$as_echo "$AS" >&6; }
12489else
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12491$as_echo "no" >&6; }
12492fi
12493
12494
12495fi
12496if test -z "$ac_cv_prog_AS"; then
12497 ac_ct_AS=$AS
12498 # Extract the first word of "as", so it can be a program name with args.
12499set dummy as; ac_word=$2
12500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12501$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012502if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012503 $as_echo_n "(cached) " >&6
12504else
12505 if test -n "$ac_ct_AS"; then
12506 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12507else
12508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12509for as_dir in $PATH
12510do
12511 IFS=$as_save_IFS
12512 test -z "$as_dir" && as_dir=.
12513 for ac_exec_ext in '' $ac_executable_extensions; do
12514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12515 ac_cv_prog_ac_ct_AS="as"
12516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12517 break 2
12518 fi
12519done
12520 done
12521IFS=$as_save_IFS
12522
12523fi
12524fi
12525ac_ct_AS=$ac_cv_prog_ac_ct_AS
12526if test -n "$ac_ct_AS"; then
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12528$as_echo "$ac_ct_AS" >&6; }
12529else
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12531$as_echo "no" >&6; }
12532fi
12533
12534 if test "x$ac_ct_AS" = x; then
12535 AS="false"
12536 else
12537 case $cross_compiling:$ac_tool_warned in
12538yes:)
12539{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12540$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12541ac_tool_warned=yes ;;
12542esac
12543 AS=$ac_ct_AS
12544 fi
12545else
12546 AS="$ac_cv_prog_AS"
12547fi
12548
12549 if test -n "$ac_tool_prefix"; then
12550 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12551set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12553$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012554if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012555 $as_echo_n "(cached) " >&6
12556else
12557 if test -n "$DLLTOOL"; then
12558 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12559else
12560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12561for as_dir in $PATH
12562do
12563 IFS=$as_save_IFS
12564 test -z "$as_dir" && as_dir=.
12565 for ac_exec_ext in '' $ac_executable_extensions; do
12566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12567 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12569 break 2
12570 fi
12571done
12572 done
12573IFS=$as_save_IFS
12574
12575fi
12576fi
12577DLLTOOL=$ac_cv_prog_DLLTOOL
12578if test -n "$DLLTOOL"; then
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12580$as_echo "$DLLTOOL" >&6; }
12581else
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12583$as_echo "no" >&6; }
12584fi
12585
12586
12587fi
12588if test -z "$ac_cv_prog_DLLTOOL"; then
12589 ac_ct_DLLTOOL=$DLLTOOL
12590 # Extract the first word of "dlltool", so it can be a program name with args.
12591set dummy dlltool; ac_word=$2
12592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12593$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012594if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012595 $as_echo_n "(cached) " >&6
12596else
12597 if test -n "$ac_ct_DLLTOOL"; then
12598 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12599else
12600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12601for as_dir in $PATH
12602do
12603 IFS=$as_save_IFS
12604 test -z "$as_dir" && as_dir=.
12605 for ac_exec_ext in '' $ac_executable_extensions; do
12606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12607 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12609 break 2
12610 fi
12611done
12612 done
12613IFS=$as_save_IFS
12614
12615fi
12616fi
12617ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12618if test -n "$ac_ct_DLLTOOL"; then
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12620$as_echo "$ac_ct_DLLTOOL" >&6; }
12621else
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12623$as_echo "no" >&6; }
12624fi
12625
12626 if test "x$ac_ct_DLLTOOL" = x; then
12627 DLLTOOL="false"
12628 else
12629 case $cross_compiling:$ac_tool_warned in
12630yes:)
12631{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12632$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12633ac_tool_warned=yes ;;
12634esac
12635 DLLTOOL=$ac_ct_DLLTOOL
12636 fi
12637else
12638 DLLTOOL="$ac_cv_prog_DLLTOOL"
12639fi
12640
12641 if test -n "$ac_tool_prefix"; then
12642 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12643set dummy ${ac_tool_prefix}objdump; ac_word=$2
12644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12645$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012646if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012647 $as_echo_n "(cached) " >&6
12648else
12649 if test -n "$OBJDUMP"; then
12650 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12651else
12652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12653for as_dir in $PATH
12654do
12655 IFS=$as_save_IFS
12656 test -z "$as_dir" && as_dir=.
12657 for ac_exec_ext in '' $ac_executable_extensions; do
12658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12659 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12661 break 2
12662 fi
12663done
12664 done
12665IFS=$as_save_IFS
12666
12667fi
12668fi
12669OBJDUMP=$ac_cv_prog_OBJDUMP
12670if test -n "$OBJDUMP"; then
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12672$as_echo "$OBJDUMP" >&6; }
12673else
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12675$as_echo "no" >&6; }
12676fi
12677
12678
12679fi
12680if test -z "$ac_cv_prog_OBJDUMP"; then
12681 ac_ct_OBJDUMP=$OBJDUMP
12682 # Extract the first word of "objdump", so it can be a program name with args.
12683set dummy objdump; ac_word=$2
12684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12685$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012686if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012687 $as_echo_n "(cached) " >&6
12688else
12689 if test -n "$ac_ct_OBJDUMP"; then
12690 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12691else
12692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12693for as_dir in $PATH
12694do
12695 IFS=$as_save_IFS
12696 test -z "$as_dir" && as_dir=.
12697 for ac_exec_ext in '' $ac_executable_extensions; do
12698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12699 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12701 break 2
12702 fi
12703done
12704 done
12705IFS=$as_save_IFS
12706
12707fi
12708fi
12709ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12710if test -n "$ac_ct_OBJDUMP"; then
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12712$as_echo "$ac_ct_OBJDUMP" >&6; }
12713else
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12715$as_echo "no" >&6; }
12716fi
12717
12718 if test "x$ac_ct_OBJDUMP" = x; then
12719 OBJDUMP="false"
12720 else
12721 case $cross_compiling:$ac_tool_warned in
12722yes:)
12723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12725ac_tool_warned=yes ;;
12726esac
12727 OBJDUMP=$ac_ct_OBJDUMP
12728 fi
12729else
12730 OBJDUMP="$ac_cv_prog_OBJDUMP"
12731fi
12732
12733 ;;
12734esac
12735
12736test -z "$AS" && AS=as
12737
12738
12739
12740
12741
12742test -z "$DLLTOOL" && DLLTOOL=dlltool
12743
12744
12745
12746
12747
12748test -z "$OBJDUMP" && OBJDUMP=objdump
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758 # Check whether --enable-shared was given.
12759if test "${enable_shared+set}" = set; then :
12760 enableval=$enable_shared; p=${PACKAGE-default}
12761 case $enableval in
12762 yes) enable_shared=yes ;;
12763 no) enable_shared=no ;;
12764 *)
12765 enable_shared=no
12766 # Look at the argument we got. We use all the common list separators.
12767 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12768 for pkg in $enableval; do
12769 IFS="$lt_save_ifs"
12770 if test "X$pkg" = "X$p"; then
12771 enable_shared=yes
12772 fi
12773 done
12774 IFS="$lt_save_ifs"
12775 ;;
12776 esac
12777else
12778 enable_shared=yes
12779fi
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789 # Check whether --enable-static was given.
12790if test "${enable_static+set}" = set; then :
12791 enableval=$enable_static; p=${PACKAGE-default}
12792 case $enableval in
12793 yes) enable_static=yes ;;
12794 no) enable_static=no ;;
12795 *)
12796 enable_static=no
12797 # Look at the argument we got. We use all the common list separators.
12798 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12799 for pkg in $enableval; do
12800 IFS="$lt_save_ifs"
12801 if test "X$pkg" = "X$p"; then
12802 enable_static=yes
12803 fi
12804 done
12805 IFS="$lt_save_ifs"
12806 ;;
12807 esac
12808else
12809 enable_static=yes
12810fi
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821# Check whether --with-pic was given.
12822if test "${with_pic+set}" = set; then :
12823 withval=$with_pic; pic_mode="$withval"
12824else
12825 pic_mode=default
12826fi
12827
12828
12829test -z "$pic_mode" && pic_mode=default
12830
12831
12832
12833
12834
12835
12836
12837 # Check whether --enable-fast-install was given.
12838if test "${enable_fast_install+set}" = set; then :
12839 enableval=$enable_fast_install; p=${PACKAGE-default}
12840 case $enableval in
12841 yes) enable_fast_install=yes ;;
12842 no) enable_fast_install=no ;;
12843 *)
12844 enable_fast_install=no
12845 # Look at the argument we got. We use all the common list separators.
12846 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12847 for pkg in $enableval; do
12848 IFS="$lt_save_ifs"
12849 if test "X$pkg" = "X$p"; then
12850 enable_fast_install=yes
12851 fi
12852 done
12853 IFS="$lt_save_ifs"
12854 ;;
12855 esac
12856else
12857 enable_fast_install=yes
12858fi
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870# This can be used to rebuild libtool when needed
12871LIBTOOL_DEPS="$ltmain"
12872
12873# Always use our own libtool.
12874LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
cristy0c60a692010-11-04 01:09:47 +000012900
cristy73bd4a52010-10-05 11:24:23 +000012901test -z "$LN_S" && LN_S="ln -s"
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916if test -n "${ZSH_VERSION+set}" ; then
12917 setopt NO_GLOB_SUBST
12918fi
12919
12920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12921$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012922if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012923 $as_echo_n "(cached) " >&6
12924else
12925 rm -f .libs 2>/dev/null
12926mkdir .libs 2>/dev/null
12927if test -d .libs; then
12928 lt_cv_objdir=.libs
12929else
12930 # MS-DOS does not allow filenames that begin with a dot.
12931 lt_cv_objdir=_libs
12932fi
12933rmdir .libs 2>/dev/null
12934fi
12935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12936$as_echo "$lt_cv_objdir" >&6; }
12937objdir=$lt_cv_objdir
12938
12939
12940
12941
12942
12943cat >>confdefs.h <<_ACEOF
12944#define LT_OBJDIR "$lt_cv_objdir/"
12945_ACEOF
12946
12947
12948
12949
cristy73bd4a52010-10-05 11:24:23 +000012950case $host_os in
12951aix3*)
12952 # AIX sometimes has problems with the GCC collect2 program. For some
12953 # reason, if we set the COLLECT_NAMES environment variable, the problems
12954 # vanish in a puff of smoke.
12955 if test "X${COLLECT_NAMES+set}" != Xset; then
12956 COLLECT_NAMES=
12957 export COLLECT_NAMES
12958 fi
12959 ;;
12960esac
12961
cristy73bd4a52010-10-05 11:24:23 +000012962# Global variables:
12963ofile=libtool
12964can_build_shared=yes
12965
12966# All known linkers require a `.a' archive for static linking (except MSVC,
12967# which needs '.lib').
12968libext=a
12969
12970with_gnu_ld="$lt_cv_prog_gnu_ld"
12971
12972old_CC="$CC"
12973old_CFLAGS="$CFLAGS"
12974
12975# Set sane defaults for various variables
12976test -z "$CC" && CC=cc
12977test -z "$LTCC" && LTCC=$CC
12978test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12979test -z "$LD" && LD=ld
12980test -z "$ac_objext" && ac_objext=o
12981
12982for cc_temp in $compiler""; do
12983 case $cc_temp in
12984 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12985 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12986 \-*) ;;
12987 *) break;;
12988 esac
12989done
cristy0c60a692010-11-04 01:09:47 +000012990cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000012991
12992
12993# Only perform the check for file, if the check method requires it
12994test -z "$MAGIC_CMD" && MAGIC_CMD=file
12995case $deplibs_check_method in
12996file_magic*)
12997 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12999$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013000if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013001 $as_echo_n "(cached) " >&6
13002else
13003 case $MAGIC_CMD in
13004[\\/*] | ?:[\\/]*)
13005 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13006 ;;
13007*)
13008 lt_save_MAGIC_CMD="$MAGIC_CMD"
13009 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13010 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13011 for ac_dir in $ac_dummy; do
13012 IFS="$lt_save_ifs"
13013 test -z "$ac_dir" && ac_dir=.
13014 if test -f $ac_dir/${ac_tool_prefix}file; then
13015 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13016 if test -n "$file_magic_test_file"; then
13017 case $deplibs_check_method in
13018 "file_magic "*)
13019 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13020 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13021 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13022 $EGREP "$file_magic_regex" > /dev/null; then
13023 :
13024 else
13025 cat <<_LT_EOF 1>&2
13026
13027*** Warning: the command libtool uses to detect shared libraries,
13028*** $file_magic_cmd, produces output that libtool cannot recognize.
13029*** The result is that libtool may fail to recognize shared libraries
13030*** as such. This will affect the creation of libtool libraries that
13031*** depend on shared libraries, but programs linked with such libtool
13032*** libraries will work regardless of this problem. Nevertheless, you
13033*** may want to report the problem to your system manager and/or to
13034*** bug-libtool@gnu.org
13035
13036_LT_EOF
13037 fi ;;
13038 esac
13039 fi
13040 break
13041 fi
13042 done
13043 IFS="$lt_save_ifs"
13044 MAGIC_CMD="$lt_save_MAGIC_CMD"
13045 ;;
13046esac
13047fi
13048
13049MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13050if test -n "$MAGIC_CMD"; then
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13052$as_echo "$MAGIC_CMD" >&6; }
13053else
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13055$as_echo "no" >&6; }
13056fi
13057
13058
13059
13060
13061
13062if test -z "$lt_cv_path_MAGIC_CMD"; then
13063 if test -n "$ac_tool_prefix"; then
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13065$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013066if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013067 $as_echo_n "(cached) " >&6
13068else
13069 case $MAGIC_CMD in
13070[\\/*] | ?:[\\/]*)
13071 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13072 ;;
13073*)
13074 lt_save_MAGIC_CMD="$MAGIC_CMD"
13075 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13076 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13077 for ac_dir in $ac_dummy; do
13078 IFS="$lt_save_ifs"
13079 test -z "$ac_dir" && ac_dir=.
13080 if test -f $ac_dir/file; then
13081 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13082 if test -n "$file_magic_test_file"; then
13083 case $deplibs_check_method in
13084 "file_magic "*)
13085 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13086 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13087 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13088 $EGREP "$file_magic_regex" > /dev/null; then
13089 :
13090 else
13091 cat <<_LT_EOF 1>&2
13092
13093*** Warning: the command libtool uses to detect shared libraries,
13094*** $file_magic_cmd, produces output that libtool cannot recognize.
13095*** The result is that libtool may fail to recognize shared libraries
13096*** as such. This will affect the creation of libtool libraries that
13097*** depend on shared libraries, but programs linked with such libtool
13098*** libraries will work regardless of this problem. Nevertheless, you
13099*** may want to report the problem to your system manager and/or to
13100*** bug-libtool@gnu.org
13101
13102_LT_EOF
13103 fi ;;
13104 esac
13105 fi
13106 break
13107 fi
13108 done
13109 IFS="$lt_save_ifs"
13110 MAGIC_CMD="$lt_save_MAGIC_CMD"
13111 ;;
13112esac
13113fi
13114
13115MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13116if test -n "$MAGIC_CMD"; then
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13118$as_echo "$MAGIC_CMD" >&6; }
13119else
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13121$as_echo "no" >&6; }
13122fi
13123
13124
13125 else
13126 MAGIC_CMD=:
13127 fi
13128fi
13129
13130 fi
13131 ;;
13132esac
13133
13134# Use C for the default configuration in the libtool script
13135
13136lt_save_CC="$CC"
13137ac_ext=c
13138ac_cpp='$CPP $CPPFLAGS'
13139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13141ac_compiler_gnu=$ac_cv_c_compiler_gnu
13142
13143
13144# Source file extension for C test sources.
13145ac_ext=c
13146
13147# Object file extension for compiled C test sources.
13148objext=o
13149objext=$objext
13150
13151# Code to be used in simple compile tests
13152lt_simple_compile_test_code="int some_variable = 0;"
13153
13154# Code to be used in simple link tests
13155lt_simple_link_test_code='int main(){return(0);}'
13156
13157
13158
13159
13160
13161
13162
13163# If no C compiler was specified, use CC.
13164LTCC=${LTCC-"$CC"}
13165
13166# If no C compiler flags were specified, use CFLAGS.
13167LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13168
13169# Allow CC to be a program name with arguments.
13170compiler=$CC
13171
13172# Save the default compiler, since it gets overwritten when the other
13173# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13174compiler_DEFAULT=$CC
13175
13176# save warnings/boilerplate of simple test code
13177ac_outfile=conftest.$ac_objext
13178echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13179eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13180_lt_compiler_boilerplate=`cat conftest.err`
13181$RM conftest*
13182
13183ac_outfile=conftest.$ac_objext
13184echo "$lt_simple_link_test_code" >conftest.$ac_ext
13185eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13186_lt_linker_boilerplate=`cat conftest.err`
13187$RM -r conftest*
13188
13189
13190## CAVEAT EMPTOR:
13191## There is no encapsulation within the following macros, do not change
13192## the running order or otherwise move them around unless you know exactly
13193## what you are doing...
13194if test -n "$compiler"; then
13195
13196lt_prog_compiler_no_builtin_flag=
13197
13198if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013199 case $cc_basename in
13200 nvcc*)
13201 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13202 *)
13203 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13204 esac
cristy73bd4a52010-10-05 11:24:23 +000013205
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13207$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013208if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013209 $as_echo_n "(cached) " >&6
13210else
13211 lt_cv_prog_compiler_rtti_exceptions=no
13212 ac_outfile=conftest.$ac_objext
13213 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13214 lt_compiler_flag="-fno-rtti -fno-exceptions"
13215 # Insert the option either (1) after the last *FLAGS variable, or
13216 # (2) before a word containing "conftest.", or (3) at the end.
13217 # Note that $ac_compile itself does not contain backslashes and begins
13218 # with a dollar sign (not a hyphen), so the echo should work correctly.
13219 # The option is referenced via a variable to avoid confusing sed.
13220 lt_compile=`echo "$ac_compile" | $SED \
13221 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13222 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13223 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013224 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013225 (eval "$lt_compile" 2>conftest.err)
13226 ac_status=$?
13227 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013229 if (exit $ac_status) && test -s "$ac_outfile"; then
13230 # The compiler can only warn and ignore the option if not recognized
13231 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013232 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013233 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13234 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13235 lt_cv_prog_compiler_rtti_exceptions=yes
13236 fi
13237 fi
13238 $RM conftest*
13239
13240fi
13241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13242$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13243
13244if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13245 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13246else
13247 :
13248fi
13249
13250fi
13251
13252
13253
13254
13255
13256
13257 lt_prog_compiler_wl=
13258lt_prog_compiler_pic=
13259lt_prog_compiler_static=
13260
cristy73bd4a52010-10-05 11:24:23 +000013261
13262 if test "$GCC" = yes; then
13263 lt_prog_compiler_wl='-Wl,'
13264 lt_prog_compiler_static='-static'
13265
13266 case $host_os in
13267 aix*)
13268 # All AIX code is PIC.
13269 if test "$host_cpu" = ia64; then
13270 # AIX 5 now supports IA64 processor
13271 lt_prog_compiler_static='-Bstatic'
13272 fi
13273 ;;
13274
13275 amigaos*)
13276 case $host_cpu in
13277 powerpc)
13278 # see comment about AmigaOS4 .so support
13279 lt_prog_compiler_pic='-fPIC'
13280 ;;
13281 m68k)
13282 # FIXME: we need at least 68020 code to build shared libraries, but
13283 # adding the `-m68020' flag to GCC prevents building anything better,
13284 # like `-m68040'.
13285 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13286 ;;
13287 esac
13288 ;;
13289
13290 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13291 # PIC is the default for these OSes.
13292 ;;
13293
13294 mingw* | cygwin* | pw32* | os2* | cegcc*)
13295 # This hack is so that the source file can tell whether it is being
13296 # built for inclusion in a dll (and should export symbols for example).
13297 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13298 # (--disable-auto-import) libraries
13299 lt_prog_compiler_pic='-DDLL_EXPORT'
13300 ;;
13301
13302 darwin* | rhapsody*)
13303 # PIC is the default on this platform
13304 # Common symbols not allowed in MH_DYLIB files
13305 lt_prog_compiler_pic='-fno-common'
13306 ;;
13307
cristy0c60a692010-11-04 01:09:47 +000013308 haiku*)
13309 # PIC is the default for Haiku.
13310 # The "-static" flag exists, but is broken.
13311 lt_prog_compiler_static=
13312 ;;
13313
cristy73bd4a52010-10-05 11:24:23 +000013314 hpux*)
13315 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13316 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13317 # sets the default TLS model and affects inlining.
13318 case $host_cpu in
13319 hppa*64*)
13320 # +Z the default
13321 ;;
13322 *)
13323 lt_prog_compiler_pic='-fPIC'
13324 ;;
13325 esac
13326 ;;
13327
13328 interix[3-9]*)
13329 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13330 # Instead, we relocate shared libraries at runtime.
13331 ;;
13332
13333 msdosdjgpp*)
13334 # Just because we use GCC doesn't mean we suddenly get shared libraries
13335 # on systems that don't support them.
13336 lt_prog_compiler_can_build_shared=no
13337 enable_shared=no
13338 ;;
13339
13340 *nto* | *qnx*)
13341 # QNX uses GNU C++, but need to define -shared option too, otherwise
13342 # it will coredump.
13343 lt_prog_compiler_pic='-fPIC -shared'
13344 ;;
13345
13346 sysv4*MP*)
13347 if test -d /usr/nec; then
13348 lt_prog_compiler_pic=-Kconform_pic
13349 fi
13350 ;;
13351
13352 *)
13353 lt_prog_compiler_pic='-fPIC'
13354 ;;
13355 esac
cristy0c60a692010-11-04 01:09:47 +000013356
13357 case $cc_basename in
13358 nvcc*) # Cuda Compiler Driver 2.2
13359 lt_prog_compiler_wl='-Xlinker '
13360 lt_prog_compiler_pic='-Xcompiler -fPIC'
13361 ;;
13362 esac
cristy73bd4a52010-10-05 11:24:23 +000013363 else
13364 # PORTME Check for flag to pass linker flags through the system compiler.
13365 case $host_os in
13366 aix*)
13367 lt_prog_compiler_wl='-Wl,'
13368 if test "$host_cpu" = ia64; then
13369 # AIX 5 now supports IA64 processor
13370 lt_prog_compiler_static='-Bstatic'
13371 else
13372 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13373 fi
13374 ;;
13375
13376 mingw* | cygwin* | pw32* | os2* | cegcc*)
13377 # This hack is so that the source file can tell whether it is being
13378 # built for inclusion in a dll (and should export symbols for example).
13379 lt_prog_compiler_pic='-DDLL_EXPORT'
13380 ;;
13381
13382 hpux9* | hpux10* | hpux11*)
13383 lt_prog_compiler_wl='-Wl,'
13384 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13385 # not for PA HP-UX.
13386 case $host_cpu in
13387 hppa*64*|ia64*)
13388 # +Z the default
13389 ;;
13390 *)
13391 lt_prog_compiler_pic='+Z'
13392 ;;
13393 esac
13394 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13395 lt_prog_compiler_static='${wl}-a ${wl}archive'
13396 ;;
13397
13398 irix5* | irix6* | nonstopux*)
13399 lt_prog_compiler_wl='-Wl,'
13400 # PIC (with -KPIC) is the default.
13401 lt_prog_compiler_static='-non_shared'
13402 ;;
13403
cristy0c60a692010-11-04 01:09:47 +000013404 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013405 case $cc_basename in
13406 # old Intel for x86_64 which still supported -KPIC.
13407 ecc*)
13408 lt_prog_compiler_wl='-Wl,'
13409 lt_prog_compiler_pic='-KPIC'
13410 lt_prog_compiler_static='-static'
13411 ;;
13412 # icc used to be incompatible with GCC.
13413 # ICC 10 doesn't accept -KPIC any more.
13414 icc* | ifort*)
13415 lt_prog_compiler_wl='-Wl,'
13416 lt_prog_compiler_pic='-fPIC'
13417 lt_prog_compiler_static='-static'
13418 ;;
13419 # Lahey Fortran 8.1.
13420 lf95*)
13421 lt_prog_compiler_wl='-Wl,'
13422 lt_prog_compiler_pic='--shared'
13423 lt_prog_compiler_static='--static'
13424 ;;
cristyda16f162011-02-19 23:52:17 +000013425 nagfor*)
13426 # NAG Fortran compiler
13427 lt_prog_compiler_wl='-Wl,-Wl,,'
13428 lt_prog_compiler_pic='-PIC'
13429 lt_prog_compiler_static='-Bstatic'
13430 ;;
cristy0c60a692010-11-04 01:09:47 +000013431 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013432 # Portland Group compilers (*not* the Pentium gcc compiler,
13433 # which looks to be a dead project)
13434 lt_prog_compiler_wl='-Wl,'
13435 lt_prog_compiler_pic='-fpic'
13436 lt_prog_compiler_static='-Bstatic'
13437 ;;
13438 ccc*)
13439 lt_prog_compiler_wl='-Wl,'
13440 # All Alpha code is PIC.
13441 lt_prog_compiler_static='-non_shared'
13442 ;;
cristy0c60a692010-11-04 01:09:47 +000013443 xl* | bgxl* | bgf* | mpixl*)
13444 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013445 lt_prog_compiler_wl='-Wl,'
13446 lt_prog_compiler_pic='-qpic'
13447 lt_prog_compiler_static='-qstaticlink'
13448 ;;
13449 *)
13450 case `$CC -V 2>&1 | sed 5q` in
cristy0c60a692010-11-04 01:09:47 +000013451 *Sun\ F* | *Sun*Fortran*)
13452 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13453 lt_prog_compiler_pic='-KPIC'
13454 lt_prog_compiler_static='-Bstatic'
13455 lt_prog_compiler_wl=''
13456 ;;
cristy73bd4a52010-10-05 11:24:23 +000013457 *Sun\ C*)
13458 # Sun C 5.9
13459 lt_prog_compiler_pic='-KPIC'
13460 lt_prog_compiler_static='-Bstatic'
13461 lt_prog_compiler_wl='-Wl,'
13462 ;;
cristy73bd4a52010-10-05 11:24:23 +000013463 esac
13464 ;;
13465 esac
13466 ;;
13467
13468 newsos6)
13469 lt_prog_compiler_pic='-KPIC'
13470 lt_prog_compiler_static='-Bstatic'
13471 ;;
13472
13473 *nto* | *qnx*)
13474 # QNX uses GNU C++, but need to define -shared option too, otherwise
13475 # it will coredump.
13476 lt_prog_compiler_pic='-fPIC -shared'
13477 ;;
13478
13479 osf3* | osf4* | osf5*)
13480 lt_prog_compiler_wl='-Wl,'
13481 # All OSF/1 code is PIC.
13482 lt_prog_compiler_static='-non_shared'
13483 ;;
13484
13485 rdos*)
13486 lt_prog_compiler_static='-non_shared'
13487 ;;
13488
13489 solaris*)
13490 lt_prog_compiler_pic='-KPIC'
13491 lt_prog_compiler_static='-Bstatic'
13492 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013493 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013494 lt_prog_compiler_wl='-Qoption ld ';;
13495 *)
13496 lt_prog_compiler_wl='-Wl,';;
13497 esac
13498 ;;
13499
13500 sunos4*)
13501 lt_prog_compiler_wl='-Qoption ld '
13502 lt_prog_compiler_pic='-PIC'
13503 lt_prog_compiler_static='-Bstatic'
13504 ;;
13505
13506 sysv4 | sysv4.2uw2* | sysv4.3*)
13507 lt_prog_compiler_wl='-Wl,'
13508 lt_prog_compiler_pic='-KPIC'
13509 lt_prog_compiler_static='-Bstatic'
13510 ;;
13511
13512 sysv4*MP*)
13513 if test -d /usr/nec ;then
13514 lt_prog_compiler_pic='-Kconform_pic'
13515 lt_prog_compiler_static='-Bstatic'
13516 fi
13517 ;;
13518
13519 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13520 lt_prog_compiler_wl='-Wl,'
13521 lt_prog_compiler_pic='-KPIC'
13522 lt_prog_compiler_static='-Bstatic'
13523 ;;
13524
13525 unicos*)
13526 lt_prog_compiler_wl='-Wl,'
13527 lt_prog_compiler_can_build_shared=no
13528 ;;
13529
13530 uts4*)
13531 lt_prog_compiler_pic='-pic'
13532 lt_prog_compiler_static='-Bstatic'
13533 ;;
13534
13535 *)
13536 lt_prog_compiler_can_build_shared=no
13537 ;;
13538 esac
13539 fi
13540
13541case $host_os in
13542 # For platforms which do not support PIC, -DPIC is meaningless:
13543 *djgpp*)
13544 lt_prog_compiler_pic=
13545 ;;
13546 *)
13547 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13548 ;;
13549esac
cristy73bd4a52010-10-05 11:24:23 +000013550
cristyda16f162011-02-19 23:52:17 +000013551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13552$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13553if ${lt_cv_prog_compiler_pic+:} false; then :
13554 $as_echo_n "(cached) " >&6
13555else
13556 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13557fi
13558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13559$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13560lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013561
13562#
13563# Check to make sure the PIC flag actually works.
13564#
13565if test -n "$lt_prog_compiler_pic"; then
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13567$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013568if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013569 $as_echo_n "(cached) " >&6
13570else
13571 lt_cv_prog_compiler_pic_works=no
13572 ac_outfile=conftest.$ac_objext
13573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13574 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13575 # Insert the option either (1) after the last *FLAGS variable, or
13576 # (2) before a word containing "conftest.", or (3) at the end.
13577 # Note that $ac_compile itself does not contain backslashes and begins
13578 # with a dollar sign (not a hyphen), so the echo should work correctly.
13579 # The option is referenced via a variable to avoid confusing sed.
13580 lt_compile=`echo "$ac_compile" | $SED \
13581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13583 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013584 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013585 (eval "$lt_compile" 2>conftest.err)
13586 ac_status=$?
13587 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013589 if (exit $ac_status) && test -s "$ac_outfile"; then
13590 # The compiler can only warn and ignore the option if not recognized
13591 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013592 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13594 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13595 lt_cv_prog_compiler_pic_works=yes
13596 fi
13597 fi
13598 $RM conftest*
13599
13600fi
13601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13602$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13603
13604if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13605 case $lt_prog_compiler_pic in
13606 "" | " "*) ;;
13607 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13608 esac
13609else
13610 lt_prog_compiler_pic=
13611 lt_prog_compiler_can_build_shared=no
13612fi
13613
13614fi
13615
13616
13617
13618
13619
13620
cristyda16f162011-02-19 23:52:17 +000013621
13622
13623
13624
13625
cristy73bd4a52010-10-05 11:24:23 +000013626#
13627# Check to make sure the static flag actually works.
13628#
13629wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13631$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013632if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013633 $as_echo_n "(cached) " >&6
13634else
13635 lt_cv_prog_compiler_static_works=no
13636 save_LDFLAGS="$LDFLAGS"
13637 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13638 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13639 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13640 # The linker can only warn and ignore the option if not recognized
13641 # So say no if there are warnings
13642 if test -s conftest.err; then
13643 # Append any errors to the config.log.
13644 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013645 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013646 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13647 if diff conftest.exp conftest.er2 >/dev/null; then
13648 lt_cv_prog_compiler_static_works=yes
13649 fi
13650 else
13651 lt_cv_prog_compiler_static_works=yes
13652 fi
13653 fi
13654 $RM -r conftest*
13655 LDFLAGS="$save_LDFLAGS"
13656
13657fi
13658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13659$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13660
13661if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13662 :
13663else
13664 lt_prog_compiler_static=
13665fi
13666
13667
13668
13669
13670
13671
13672
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13674$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013675if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013676 $as_echo_n "(cached) " >&6
13677else
13678 lt_cv_prog_compiler_c_o=no
13679 $RM -r conftest 2>/dev/null
13680 mkdir conftest
13681 cd conftest
13682 mkdir out
13683 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13684
13685 lt_compiler_flag="-o out/conftest2.$ac_objext"
13686 # Insert the option either (1) after the last *FLAGS variable, or
13687 # (2) before a word containing "conftest.", or (3) at the end.
13688 # Note that $ac_compile itself does not contain backslashes and begins
13689 # with a dollar sign (not a hyphen), so the echo should work correctly.
13690 lt_compile=`echo "$ac_compile" | $SED \
13691 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13692 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13693 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013694 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013695 (eval "$lt_compile" 2>out/conftest.err)
13696 ac_status=$?
13697 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013699 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13700 then
13701 # The compiler can only warn and ignore the option if not recognized
13702 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013703 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013704 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13705 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13706 lt_cv_prog_compiler_c_o=yes
13707 fi
13708 fi
13709 chmod u+w . 2>&5
13710 $RM conftest*
13711 # SGI C++ compiler will create directory out/ii_files/ for
13712 # template instantiation
13713 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13714 $RM out/* && rmdir out
13715 cd ..
13716 $RM -r conftest
13717 $RM conftest*
13718
13719fi
13720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13721$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13722
13723
13724
13725
13726
13727
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13729$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013730if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013731 $as_echo_n "(cached) " >&6
13732else
13733 lt_cv_prog_compiler_c_o=no
13734 $RM -r conftest 2>/dev/null
13735 mkdir conftest
13736 cd conftest
13737 mkdir out
13738 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13739
13740 lt_compiler_flag="-o out/conftest2.$ac_objext"
13741 # Insert the option either (1) after the last *FLAGS variable, or
13742 # (2) before a word containing "conftest.", or (3) at the end.
13743 # Note that $ac_compile itself does not contain backslashes and begins
13744 # with a dollar sign (not a hyphen), so the echo should work correctly.
13745 lt_compile=`echo "$ac_compile" | $SED \
13746 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13747 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13748 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013749 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013750 (eval "$lt_compile" 2>out/conftest.err)
13751 ac_status=$?
13752 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013754 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13755 then
13756 # The compiler can only warn and ignore the option if not recognized
13757 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013758 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013759 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13760 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13761 lt_cv_prog_compiler_c_o=yes
13762 fi
13763 fi
13764 chmod u+w . 2>&5
13765 $RM conftest*
13766 # SGI C++ compiler will create directory out/ii_files/ for
13767 # template instantiation
13768 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13769 $RM out/* && rmdir out
13770 cd ..
13771 $RM -r conftest
13772 $RM conftest*
13773
13774fi
13775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13776$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13777
13778
13779
13780
13781hard_links="nottested"
13782if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13783 # do not overwrite the value of need_locks provided by the user
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13785$as_echo_n "checking if we can lock with hard links... " >&6; }
13786 hard_links=yes
13787 $RM conftest*
13788 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13789 touch conftest.a
13790 ln conftest.a conftest.b 2>&5 || hard_links=no
13791 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13793$as_echo "$hard_links" >&6; }
13794 if test "$hard_links" = no; then
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13796$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13797 need_locks=warn
13798 fi
13799else
13800 need_locks=no
13801fi
13802
13803
13804
13805
13806
13807
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13809$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13810
13811 runpath_var=
13812 allow_undefined_flag=
13813 always_export_symbols=no
13814 archive_cmds=
13815 archive_expsym_cmds=
13816 compiler_needs_object=no
13817 enable_shared_with_static_runtimes=no
13818 export_dynamic_flag_spec=
13819 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13820 hardcode_automatic=no
13821 hardcode_direct=no
13822 hardcode_direct_absolute=no
13823 hardcode_libdir_flag_spec=
13824 hardcode_libdir_flag_spec_ld=
13825 hardcode_libdir_separator=
13826 hardcode_minus_L=no
13827 hardcode_shlibpath_var=unsupported
13828 inherit_rpath=no
13829 link_all_deplibs=unknown
13830 module_cmds=
13831 module_expsym_cmds=
13832 old_archive_from_new_cmds=
13833 old_archive_from_expsyms_cmds=
13834 thread_safe_flag_spec=
13835 whole_archive_flag_spec=
13836 # include_expsyms should be a list of space-separated symbols to be *always*
13837 # included in the symbol list
13838 include_expsyms=
13839 # exclude_expsyms can be an extended regexp of symbols to exclude
13840 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13841 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13842 # as well as any symbol that contains `d'.
13843 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13844 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13845 # platforms (ab)use it in PIC code, but their linkers get confused if
13846 # the symbol is explicitly referenced. Since portable code cannot
13847 # rely on this symbol name, it's probably fine to never include it in
13848 # preloaded symbol tables.
13849 # Exclude shared library initialization/finalization symbols.
13850 extract_expsyms_cmds=
13851
13852 case $host_os in
13853 cygwin* | mingw* | pw32* | cegcc*)
13854 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13855 # When not using gcc, we currently assume that we are using
13856 # Microsoft Visual C++.
13857 if test "$GCC" != yes; then
13858 with_gnu_ld=no
13859 fi
13860 ;;
13861 interix*)
13862 # we just hope/assume this is gcc and not c89 (= MSVC++)
13863 with_gnu_ld=yes
13864 ;;
13865 openbsd*)
13866 with_gnu_ld=no
13867 ;;
13868 esac
13869
13870 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013871
13872 # On some targets, GNU ld is compatible enough with the native linker
13873 # that we're better off using the native interface for both.
13874 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013875 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013876 case $host_os in
13877 aix*)
13878 # The AIX port of GNU ld has always aspired to compatibility
13879 # with the native linker. However, as the warning in the GNU ld
13880 # block says, versions before 2.19.5* couldn't really create working
13881 # shared libraries, regardless of the interface used.
13882 case `$LD -v 2>&1` in
13883 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13884 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13885 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13886 *)
13887 lt_use_gnu_ld_interface=yes
13888 ;;
13889 esac
13890 ;;
13891 *)
13892 lt_use_gnu_ld_interface=yes
13893 ;;
13894 esac
13895 fi
13896
13897 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000013898 # If archive_cmds runs LD, not CC, wlarc should be empty
13899 wlarc='${wl}'
13900
13901 # Set some defaults for GNU ld with shared library support. These
13902 # are reset later if shared libraries are not supported. Putting them
13903 # here allows them to be overridden if necessary.
13904 runpath_var=LD_RUN_PATH
13905 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13906 export_dynamic_flag_spec='${wl}--export-dynamic'
13907 # ancient GNU ld didn't support --whole-archive et. al.
13908 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13909 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13910 else
13911 whole_archive_flag_spec=
13912 fi
13913 supports_anon_versioning=no
13914 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000013915 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000013916 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13917 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13918 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13919 *\ 2.11.*) ;; # other 2.11 versions
13920 *) supports_anon_versioning=yes ;;
13921 esac
13922
13923 # See if GNU ld supports shared libraries.
13924 case $host_os in
13925 aix[3-9]*)
13926 # On AIX/PPC, the GNU linker is very broken
13927 if test "$host_cpu" != ia64; then
13928 ld_shlibs=no
13929 cat <<_LT_EOF 1>&2
13930
cristy0c60a692010-11-04 01:09:47 +000013931*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000013932*** to be unable to reliably create shared libraries on AIX.
13933*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000013934*** really care for shared libraries, you may want to install binutils
13935*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13936*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000013937
13938_LT_EOF
13939 fi
13940 ;;
13941
13942 amigaos*)
13943 case $host_cpu in
13944 powerpc)
13945 # see comment about AmigaOS4 .so support
13946 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13947 archive_expsym_cmds=''
13948 ;;
13949 m68k)
13950 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)'
13951 hardcode_libdir_flag_spec='-L$libdir'
13952 hardcode_minus_L=yes
13953 ;;
13954 esac
13955 ;;
13956
13957 beos*)
13958 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13959 allow_undefined_flag=unsupported
13960 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13961 # support --undefined. This deserves some investigation. FIXME
13962 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13963 else
13964 ld_shlibs=no
13965 fi
13966 ;;
13967
13968 cygwin* | mingw* | pw32* | cegcc*)
13969 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13970 # as there is no search path for DLLs.
13971 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000013972 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000013973 allow_undefined_flag=unsupported
13974 always_export_symbols=no
13975 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000013976 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'
13977 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 +000013978
13979 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13981 # If the export-symbols file already is a .def file (1st line
13982 # is EXPORTS), use it as is; otherwise, prepend...
13983 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13984 cp $export_symbols $output_objdir/$soname.def;
13985 else
13986 echo EXPORTS > $output_objdir/$soname.def;
13987 cat $export_symbols >> $output_objdir/$soname.def;
13988 fi~
13989 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13990 else
13991 ld_shlibs=no
13992 fi
13993 ;;
13994
cristy0c60a692010-11-04 01:09:47 +000013995 haiku*)
13996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13997 link_all_deplibs=yes
13998 ;;
13999
cristy73bd4a52010-10-05 11:24:23 +000014000 interix[3-9]*)
14001 hardcode_direct=no
14002 hardcode_shlibpath_var=no
14003 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14004 export_dynamic_flag_spec='${wl}-E'
14005 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14006 # Instead, shared libraries are loaded at an image base (0x10000000 by
14007 # default) and relocated if they conflict, which is a slow very memory
14008 # consuming and fragmenting process. To avoid this, we pick a random,
14009 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14010 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14011 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14012 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'
14013 ;;
14014
cristy0c60a692010-11-04 01:09:47 +000014015 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014016 tmp_diet=no
14017 if test "$host_os" = linux-dietlibc; then
14018 case $cc_basename in
14019 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14020 esac
14021 fi
14022 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14023 && test "$tmp_diet" = no
14024 then
cristyda16f162011-02-19 23:52:17 +000014025 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014026 tmp_sharedflag='-shared'
14027 case $cc_basename,$host_cpu in
14028 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014029 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 +000014030 tmp_addflag=' $pic_flag'
14031 ;;
cristy0c60a692010-11-04 01:09:47 +000014032 pgf77* | pgf90* | pgf95* | pgfortran*)
14033 # Portland Group f77 and f90 compilers
14034 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 +000014035 tmp_addflag=' $pic_flag -Mnomain' ;;
14036 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14037 tmp_addflag=' -i_dynamic' ;;
14038 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14039 tmp_addflag=' -i_dynamic -nofor_main' ;;
14040 ifc* | ifort*) # Intel Fortran compiler
14041 tmp_addflag=' -nofor_main' ;;
14042 lf95*) # Lahey Fortran 8.1
14043 whole_archive_flag_spec=
14044 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014045 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014046 tmp_sharedflag='-qmkshrobj'
14047 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014048 nvcc*) # Cuda Compiler Driver 2.2
14049 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'
14050 compiler_needs_object=yes
14051 ;;
cristy73bd4a52010-10-05 11:24:23 +000014052 esac
14053 case `$CC -V 2>&1 | sed 5q` in
14054 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014055 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 +000014056 compiler_needs_object=yes
14057 tmp_sharedflag='-G' ;;
14058 *Sun\ F*) # Sun Fortran 8.3
14059 tmp_sharedflag='-G' ;;
14060 esac
14061 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14062
14063 if test "x$supports_anon_versioning" = xyes; then
14064 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14065 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14066 echo "local: *; };" >> $output_objdir/$libname.ver~
14067 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14068 fi
14069
14070 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014071 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014072 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14073 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14074 hardcode_libdir_flag_spec=
14075 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy0c60a692010-11-04 01:09:47 +000014076 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014077 if test "x$supports_anon_versioning" = xyes; then
14078 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14079 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14080 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014081 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014082 fi
14083 ;;
14084 esac
14085 else
14086 ld_shlibs=no
14087 fi
14088 ;;
14089
14090 netbsd*)
14091 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14092 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14093 wlarc=
14094 else
cristyda16f162011-02-19 23:52:17 +000014095 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14096 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 +000014097 fi
14098 ;;
14099
14100 solaris*)
14101 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14102 ld_shlibs=no
14103 cat <<_LT_EOF 1>&2
14104
14105*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14106*** create shared libraries on Solaris systems. Therefore, libtool
14107*** is disabling shared libraries support. We urge you to upgrade GNU
14108*** binutils to release 2.9.1 or newer. Another option is to modify
14109*** your PATH or compiler configuration so that the native linker is
14110*** used, and then restart.
14111
14112_LT_EOF
14113 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014114 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14115 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 +000014116 else
14117 ld_shlibs=no
14118 fi
14119 ;;
14120
14121 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14122 case `$LD -v 2>&1` in
14123 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14124 ld_shlibs=no
14125 cat <<_LT_EOF 1>&2
14126
14127*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14128*** reliably create shared libraries on SCO systems. Therefore, libtool
14129*** is disabling shared libraries support. We urge you to upgrade GNU
14130*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14131*** your PATH or compiler configuration so that the native linker is
14132*** used, and then restart.
14133
14134_LT_EOF
14135 ;;
14136 *)
14137 # For security reasons, it is highly recommended that you always
14138 # use absolute paths for naming shared libraries, and exclude the
14139 # DT_RUNPATH tag from executables and libraries. But doing so
14140 # requires that you compile everything twice, which is a pain.
14141 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14142 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14143 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14144 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14145 else
14146 ld_shlibs=no
14147 fi
14148 ;;
14149 esac
14150 ;;
14151
14152 sunos4*)
14153 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14154 wlarc=
14155 hardcode_direct=yes
14156 hardcode_shlibpath_var=no
14157 ;;
14158
14159 *)
14160 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014161 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14162 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 +000014163 else
14164 ld_shlibs=no
14165 fi
14166 ;;
14167 esac
14168
14169 if test "$ld_shlibs" = no; then
14170 runpath_var=
14171 hardcode_libdir_flag_spec=
14172 export_dynamic_flag_spec=
14173 whole_archive_flag_spec=
14174 fi
14175 else
14176 # PORTME fill in a description of your system's linker (not GNU ld)
14177 case $host_os in
14178 aix3*)
14179 allow_undefined_flag=unsupported
14180 always_export_symbols=yes
14181 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'
14182 # Note: this linker hardcodes the directories in LIBPATH if there
14183 # are no directories specified by -L.
14184 hardcode_minus_L=yes
14185 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14186 # Neither direct hardcoding nor static linking is supported with a
14187 # broken collect2.
14188 hardcode_direct=unsupported
14189 fi
14190 ;;
14191
14192 aix[4-9]*)
14193 if test "$host_cpu" = ia64; then
14194 # On IA64, the linker does run time linking by default, so we don't
14195 # have to do anything special.
14196 aix_use_runtimelinking=no
14197 exp_sym_flag='-Bexport'
14198 no_entry_flag=""
14199 else
14200 # If we're using GNU nm, then we don't want the "-C" option.
14201 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014202 # Also, AIX nm treats weak defined symbols like other global
14203 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014204 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014205 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 +000014206 else
14207 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'
14208 fi
14209 aix_use_runtimelinking=no
14210
14211 # Test if we are trying to use run time linking or normal
14212 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14213 # need to do runtime linking.
14214 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14215 for ld_flag in $LDFLAGS; do
14216 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14217 aix_use_runtimelinking=yes
14218 break
14219 fi
14220 done
14221 ;;
14222 esac
14223
14224 exp_sym_flag='-bexport'
14225 no_entry_flag='-bnoentry'
14226 fi
14227
14228 # When large executables or shared objects are built, AIX ld can
14229 # have problems creating the table of contents. If linking a library
14230 # or program results in "error TOC overflow" add -mminimal-toc to
14231 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14232 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14233
14234 archive_cmds=''
14235 hardcode_direct=yes
14236 hardcode_direct_absolute=yes
14237 hardcode_libdir_separator=':'
14238 link_all_deplibs=yes
14239 file_list_spec='${wl}-f,'
14240
14241 if test "$GCC" = yes; then
14242 case $host_os in aix4.[012]|aix4.[012].*)
14243 # We only want to do this on AIX 4.2 and lower, the check
14244 # below for broken collect2 doesn't work under 4.3+
14245 collect2name=`${CC} -print-prog-name=collect2`
14246 if test -f "$collect2name" &&
14247 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14248 then
14249 # We have reworked collect2
14250 :
14251 else
14252 # We have old collect2
14253 hardcode_direct=unsupported
14254 # It fails to find uninstalled libraries when the uninstalled
14255 # path is not listed in the libpath. Setting hardcode_minus_L
14256 # to unsupported forces relinking
14257 hardcode_minus_L=yes
14258 hardcode_libdir_flag_spec='-L$libdir'
14259 hardcode_libdir_separator=
14260 fi
14261 ;;
14262 esac
14263 shared_flag='-shared'
14264 if test "$aix_use_runtimelinking" = yes; then
14265 shared_flag="$shared_flag "'${wl}-G'
14266 fi
14267 else
14268 # not using gcc
14269 if test "$host_cpu" = ia64; then
14270 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14271 # chokes on -Wl,-G. The following line is correct:
14272 shared_flag='-G'
14273 else
14274 if test "$aix_use_runtimelinking" = yes; then
14275 shared_flag='${wl}-G'
14276 else
14277 shared_flag='${wl}-bM:SRE'
14278 fi
14279 fi
14280 fi
14281
14282 export_dynamic_flag_spec='${wl}-bexpall'
14283 # It seems that -bexpall does not export symbols beginning with
14284 # underscore (_), so it is better to generate a list of symbols to export.
14285 always_export_symbols=yes
14286 if test "$aix_use_runtimelinking" = yes; then
14287 # Warning - without using the other runtime loading flags (-brtl),
14288 # -berok will link without error, but may produce a broken library.
14289 allow_undefined_flag='-berok'
14290 # Determine the default libpath from the value encoded in an
14291 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014292 if test "${lt_cv_aix_libpath+set}" = set; then
14293 aix_libpath=$lt_cv_aix_libpath
14294else
14295 if ${lt_cv_aix_libpath_+:} false; then :
14296 $as_echo_n "(cached) " >&6
14297else
14298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014299/* end confdefs.h. */
14300
14301int
14302main ()
14303{
14304
14305 ;
14306 return 0;
14307}
14308_ACEOF
14309if ac_fn_c_try_link "$LINENO"; then :
14310
cristyda16f162011-02-19 23:52:17 +000014311 lt_aix_libpath_sed='
14312 /Import File Strings/,/^$/ {
14313 /^0/ {
14314 s/^0 *\([^ ]*\) *$/\1/
14315 p
14316 }
14317 }'
14318 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14319 # Check for a 64-bit object if we didn't find anything.
14320 if test -z "$lt_cv_aix_libpath_"; then
14321 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14322 fi
cristy73bd4a52010-10-05 11:24:23 +000014323fi
14324rm -f core conftest.err conftest.$ac_objext \
14325 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014326 if test -z "$lt_cv_aix_libpath_"; then
14327 lt_cv_aix_libpath_="/usr/lib:/lib"
14328 fi
14329
14330fi
14331
14332 aix_libpath=$lt_cv_aix_libpath_
14333fi
cristy73bd4a52010-10-05 11:24:23 +000014334
14335 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014336 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 +000014337 else
14338 if test "$host_cpu" = ia64; then
14339 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14340 allow_undefined_flag="-z nodefs"
14341 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"
14342 else
14343 # Determine the default libpath from the value encoded in an
14344 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014345 if test "${lt_cv_aix_libpath+set}" = set; then
14346 aix_libpath=$lt_cv_aix_libpath
14347else
14348 if ${lt_cv_aix_libpath_+:} false; then :
14349 $as_echo_n "(cached) " >&6
14350else
14351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014352/* end confdefs.h. */
14353
14354int
14355main ()
14356{
14357
14358 ;
14359 return 0;
14360}
14361_ACEOF
14362if ac_fn_c_try_link "$LINENO"; then :
14363
cristyda16f162011-02-19 23:52:17 +000014364 lt_aix_libpath_sed='
14365 /Import File Strings/,/^$/ {
14366 /^0/ {
14367 s/^0 *\([^ ]*\) *$/\1/
14368 p
14369 }
14370 }'
14371 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14372 # Check for a 64-bit object if we didn't find anything.
14373 if test -z "$lt_cv_aix_libpath_"; then
14374 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14375 fi
cristy73bd4a52010-10-05 11:24:23 +000014376fi
14377rm -f core conftest.err conftest.$ac_objext \
14378 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014379 if test -z "$lt_cv_aix_libpath_"; then
14380 lt_cv_aix_libpath_="/usr/lib:/lib"
14381 fi
14382
14383fi
14384
14385 aix_libpath=$lt_cv_aix_libpath_
14386fi
cristy73bd4a52010-10-05 11:24:23 +000014387
14388 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14389 # Warning - without using the other run time loading flags,
14390 # -berok will link without error, but may produce a broken library.
14391 no_undefined_flag=' ${wl}-bernotok'
14392 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014393 if test "$with_gnu_ld" = yes; then
14394 # We only use this code for GNU lds that support --whole-archive.
14395 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14396 else
14397 # Exported symbols can be pulled into shared objects from archives
14398 whole_archive_flag_spec='$convenience'
14399 fi
cristy73bd4a52010-10-05 11:24:23 +000014400 archive_cmds_need_lc=yes
14401 # This is similar to how AIX traditionally builds its shared libraries.
14402 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'
14403 fi
14404 fi
14405 ;;
14406
14407 amigaos*)
14408 case $host_cpu in
14409 powerpc)
14410 # see comment about AmigaOS4 .so support
14411 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14412 archive_expsym_cmds=''
14413 ;;
14414 m68k)
14415 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)'
14416 hardcode_libdir_flag_spec='-L$libdir'
14417 hardcode_minus_L=yes
14418 ;;
14419 esac
14420 ;;
14421
14422 bsdi[45]*)
14423 export_dynamic_flag_spec=-rdynamic
14424 ;;
14425
14426 cygwin* | mingw* | pw32* | cegcc*)
14427 # When not using gcc, we currently assume that we are using
14428 # Microsoft Visual C++.
14429 # hardcode_libdir_flag_spec is actually meaningless, as there is
14430 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014431 case $cc_basename in
14432 cl*)
14433 # Native MSVC
14434 hardcode_libdir_flag_spec=' '
14435 allow_undefined_flag=unsupported
14436 always_export_symbols=yes
14437 file_list_spec='@'
14438 # Tell ltmain to make .lib files, not .a files.
14439 libext=lib
14440 # Tell ltmain to make .dll files, not .so files.
14441 shrext_cmds=".dll"
14442 # FIXME: Setting linknames here is a bad hack.
14443 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14444 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14445 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14446 else
14447 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14448 fi~
14449 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14450 linknames='
14451 # The linker will not automatically build a static lib if we build a DLL.
14452 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14453 enable_shared_with_static_runtimes=yes
14454 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14455 # Don't use ranlib
14456 old_postinstall_cmds='chmod 644 $oldlib'
14457 postlink_cmds='lt_outputfile="@OUTPUT@"~
14458 lt_tool_outputfile="@TOOL_OUTPUT@"~
14459 case $lt_outputfile in
14460 *.exe|*.EXE) ;;
14461 *)
14462 lt_outputfile="$lt_outputfile.exe"
14463 lt_tool_outputfile="$lt_tool_outputfile.exe"
14464 ;;
14465 esac~
14466 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14467 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14468 $RM "$lt_outputfile.manifest";
14469 fi'
14470 ;;
14471 *)
14472 # Assume MSVC wrapper
14473 hardcode_libdir_flag_spec=' '
14474 allow_undefined_flag=unsupported
14475 # Tell ltmain to make .lib files, not .a files.
14476 libext=lib
14477 # Tell ltmain to make .dll files, not .so files.
14478 shrext_cmds=".dll"
14479 # FIXME: Setting linknames here is a bad hack.
14480 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14481 # The linker will automatically build a .lib file if we build a DLL.
14482 old_archive_from_new_cmds='true'
14483 # FIXME: Should let the user specify the lib program.
14484 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14485 enable_shared_with_static_runtimes=yes
14486 ;;
14487 esac
cristy73bd4a52010-10-05 11:24:23 +000014488 ;;
14489
14490 darwin* | rhapsody*)
14491
14492
14493 archive_cmds_need_lc=no
14494 hardcode_direct=no
14495 hardcode_automatic=yes
14496 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014497 if test "$lt_cv_ld_force_load" = "yes"; then
14498 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\"`'
14499 else
14500 whole_archive_flag_spec=''
14501 fi
cristy73bd4a52010-10-05 11:24:23 +000014502 link_all_deplibs=yes
14503 allow_undefined_flag="$_lt_dar_allow_undefined"
14504 case $cc_basename in
14505 ifort*) _lt_dar_can_shared=yes ;;
14506 *) _lt_dar_can_shared=$GCC ;;
14507 esac
14508 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014509 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014510 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14511 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14512 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}"
14513 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}"
14514
14515 else
14516 ld_shlibs=no
14517 fi
14518
14519 ;;
14520
14521 dgux*)
14522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14523 hardcode_libdir_flag_spec='-L$libdir'
14524 hardcode_shlibpath_var=no
14525 ;;
14526
14527 freebsd1*)
14528 ld_shlibs=no
14529 ;;
14530
14531 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14532 # support. Future versions do this automatically, but an explicit c++rt0.o
14533 # does not break anything, and helps significantly (at the cost of a little
14534 # extra space).
14535 freebsd2.2*)
14536 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14537 hardcode_libdir_flag_spec='-R$libdir'
14538 hardcode_direct=yes
14539 hardcode_shlibpath_var=no
14540 ;;
14541
14542 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14543 freebsd2*)
14544 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14545 hardcode_direct=yes
14546 hardcode_minus_L=yes
14547 hardcode_shlibpath_var=no
14548 ;;
14549
14550 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14551 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014552 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014553 hardcode_libdir_flag_spec='-R$libdir'
14554 hardcode_direct=yes
14555 hardcode_shlibpath_var=no
14556 ;;
14557
14558 hpux9*)
14559 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014560 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 +000014561 else
14562 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'
14563 fi
14564 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14565 hardcode_libdir_separator=:
14566 hardcode_direct=yes
14567
14568 # hardcode_minus_L: Not really in the search PATH,
14569 # but as the default location of the library.
14570 hardcode_minus_L=yes
14571 export_dynamic_flag_spec='${wl}-E'
14572 ;;
14573
14574 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014575 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014576 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 +000014577 else
14578 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14579 fi
14580 if test "$with_gnu_ld" = no; then
14581 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14582 hardcode_libdir_flag_spec_ld='+b $libdir'
14583 hardcode_libdir_separator=:
14584 hardcode_direct=yes
14585 hardcode_direct_absolute=yes
14586 export_dynamic_flag_spec='${wl}-E'
14587 # hardcode_minus_L: Not really in the search PATH,
14588 # but as the default location of the library.
14589 hardcode_minus_L=yes
14590 fi
14591 ;;
14592
14593 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014594 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014595 case $host_cpu in
14596 hppa*64*)
14597 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14598 ;;
14599 ia64*)
cristyda16f162011-02-19 23:52:17 +000014600 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014601 ;;
14602 *)
cristyda16f162011-02-19 23:52:17 +000014603 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 +000014604 ;;
14605 esac
14606 else
14607 case $host_cpu in
14608 hppa*64*)
14609 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14610 ;;
14611 ia64*)
14612 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14613 ;;
14614 *)
cristy0c60a692010-11-04 01:09:47 +000014615
14616 # Older versions of the 11.00 compiler do not understand -b yet
14617 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14619$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014620if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014621 $as_echo_n "(cached) " >&6
14622else
14623 lt_cv_prog_compiler__b=no
14624 save_LDFLAGS="$LDFLAGS"
14625 LDFLAGS="$LDFLAGS -b"
14626 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14627 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14628 # The linker can only warn and ignore the option if not recognized
14629 # So say no if there are warnings
14630 if test -s conftest.err; then
14631 # Append any errors to the config.log.
14632 cat conftest.err 1>&5
14633 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14634 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14635 if diff conftest.exp conftest.er2 >/dev/null; then
14636 lt_cv_prog_compiler__b=yes
14637 fi
14638 else
14639 lt_cv_prog_compiler__b=yes
14640 fi
14641 fi
14642 $RM -r conftest*
14643 LDFLAGS="$save_LDFLAGS"
14644
14645fi
14646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14647$as_echo "$lt_cv_prog_compiler__b" >&6; }
14648
14649if test x"$lt_cv_prog_compiler__b" = xyes; then
14650 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14651else
14652 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14653fi
14654
cristy73bd4a52010-10-05 11:24:23 +000014655 ;;
14656 esac
14657 fi
14658 if test "$with_gnu_ld" = no; then
14659 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14660 hardcode_libdir_separator=:
14661
14662 case $host_cpu in
14663 hppa*64*|ia64*)
14664 hardcode_direct=no
14665 hardcode_shlibpath_var=no
14666 ;;
14667 *)
14668 hardcode_direct=yes
14669 hardcode_direct_absolute=yes
14670 export_dynamic_flag_spec='${wl}-E'
14671
14672 # hardcode_minus_L: Not really in the search PATH,
14673 # but as the default location of the library.
14674 hardcode_minus_L=yes
14675 ;;
14676 esac
14677 fi
14678 ;;
14679
14680 irix5* | irix6* | nonstopux*)
14681 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014682 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 +000014683 # Try to use the -exported_symbol ld option, if it does not
14684 # work, assume that -exports_file does not work either and
14685 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014686 # This should be the same for all languages, so no per-tag cache variable.
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14688$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14689if ${lt_cv_irix_exported_symbol+:} false; then :
14690 $as_echo_n "(cached) " >&6
14691else
14692 save_LDFLAGS="$LDFLAGS"
14693 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014695/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014696int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014697_ACEOF
14698if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014699 lt_cv_irix_exported_symbol=yes
14700else
14701 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014702fi
14703rm -f core conftest.err conftest.$ac_objext \
14704 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014705 LDFLAGS="$save_LDFLAGS"
14706fi
14707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14708$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14709 if test "$lt_cv_irix_exported_symbol" = yes; then
14710 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'
14711 fi
cristy73bd4a52010-10-05 11:24:23 +000014712 else
cristy0c60a692010-11-04 01:09:47 +000014713 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'
14714 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 +000014715 fi
14716 archive_cmds_need_lc='no'
14717 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14718 hardcode_libdir_separator=:
14719 inherit_rpath=yes
14720 link_all_deplibs=yes
14721 ;;
14722
14723 netbsd*)
14724 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14726 else
14727 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14728 fi
14729 hardcode_libdir_flag_spec='-R$libdir'
14730 hardcode_direct=yes
14731 hardcode_shlibpath_var=no
14732 ;;
14733
14734 newsos6)
14735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14736 hardcode_direct=yes
14737 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14738 hardcode_libdir_separator=:
14739 hardcode_shlibpath_var=no
14740 ;;
14741
14742 *nto* | *qnx*)
14743 ;;
14744
14745 openbsd*)
14746 if test -f /usr/libexec/ld.so; then
14747 hardcode_direct=yes
14748 hardcode_shlibpath_var=no
14749 hardcode_direct_absolute=yes
14750 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14751 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14752 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14753 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14754 export_dynamic_flag_spec='${wl}-E'
14755 else
14756 case $host_os in
14757 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14758 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14759 hardcode_libdir_flag_spec='-R$libdir'
14760 ;;
14761 *)
14762 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14763 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14764 ;;
14765 esac
14766 fi
14767 else
14768 ld_shlibs=no
14769 fi
14770 ;;
14771
14772 os2*)
14773 hardcode_libdir_flag_spec='-L$libdir'
14774 hardcode_minus_L=yes
14775 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014776 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 +000014777 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14778 ;;
14779
14780 osf3*)
14781 if test "$GCC" = yes; then
14782 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014783 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 +000014784 else
14785 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014786 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 +000014787 fi
14788 archive_cmds_need_lc='no'
14789 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14790 hardcode_libdir_separator=:
14791 ;;
14792
14793 osf4* | osf5*) # as osf3* with the addition of -msym flag
14794 if test "$GCC" = yes; then
14795 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014796 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 +000014797 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14798 else
14799 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014800 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 +000014801 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 +000014802 $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 +000014803
14804 # Both c and cxx compiler support -rpath directly
14805 hardcode_libdir_flag_spec='-rpath $libdir'
14806 fi
14807 archive_cmds_need_lc='no'
14808 hardcode_libdir_separator=:
14809 ;;
14810
14811 solaris*)
14812 no_undefined_flag=' -z defs'
14813 if test "$GCC" = yes; then
14814 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014815 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 +000014816 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 +000014817 $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 +000014818 else
14819 case `$CC -V 2>&1` in
14820 *"Compilers 5.0"*)
14821 wlarc=''
14822 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14823 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14824 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14825 ;;
14826 *)
14827 wlarc='${wl}'
14828 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14829 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14830 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14831 ;;
14832 esac
14833 fi
14834 hardcode_libdir_flag_spec='-R$libdir'
14835 hardcode_shlibpath_var=no
14836 case $host_os in
14837 solaris2.[0-5] | solaris2.[0-5].*) ;;
14838 *)
14839 # The compiler driver will combine and reorder linker options,
14840 # but understands `-z linker_flag'. GCC discards it without `$wl',
14841 # but is careful enough not to reorder.
14842 # Supported since Solaris 2.6 (maybe 2.5.1?)
14843 if test "$GCC" = yes; then
14844 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14845 else
14846 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14847 fi
14848 ;;
14849 esac
14850 link_all_deplibs=yes
14851 ;;
14852
14853 sunos4*)
14854 if test "x$host_vendor" = xsequent; then
14855 # Use $CC to link under sequent, because it throws in some extra .o
14856 # files that make .init and .fini sections work.
14857 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14858 else
14859 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14860 fi
14861 hardcode_libdir_flag_spec='-L$libdir'
14862 hardcode_direct=yes
14863 hardcode_minus_L=yes
14864 hardcode_shlibpath_var=no
14865 ;;
14866
14867 sysv4)
14868 case $host_vendor in
14869 sni)
14870 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14871 hardcode_direct=yes # is this really true???
14872 ;;
14873 siemens)
14874 ## LD is ld it makes a PLAMLIB
14875 ## CC just makes a GrossModule.
14876 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14877 reload_cmds='$CC -r -o $output$reload_objs'
14878 hardcode_direct=no
14879 ;;
14880 motorola)
14881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14882 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14883 ;;
14884 esac
14885 runpath_var='LD_RUN_PATH'
14886 hardcode_shlibpath_var=no
14887 ;;
14888
14889 sysv4.3*)
14890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14891 hardcode_shlibpath_var=no
14892 export_dynamic_flag_spec='-Bexport'
14893 ;;
14894
14895 sysv4*MP*)
14896 if test -d /usr/nec; then
14897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14898 hardcode_shlibpath_var=no
14899 runpath_var=LD_RUN_PATH
14900 hardcode_runpath_var=yes
14901 ld_shlibs=yes
14902 fi
14903 ;;
14904
14905 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14906 no_undefined_flag='${wl}-z,text'
14907 archive_cmds_need_lc=no
14908 hardcode_shlibpath_var=no
14909 runpath_var='LD_RUN_PATH'
14910
14911 if test "$GCC" = yes; then
14912 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14913 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14914 else
14915 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14916 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14917 fi
14918 ;;
14919
14920 sysv5* | sco3.2v5* | sco5v6*)
14921 # Note: We can NOT use -z defs as we might desire, because we do not
14922 # link with -lc, and that would cause any symbols used from libc to
14923 # always be unresolved, which means just about no library would
14924 # ever link correctly. If we're not using GNU ld we use -z text
14925 # though, which does catch some bad symbols but isn't as heavy-handed
14926 # as -z defs.
14927 no_undefined_flag='${wl}-z,text'
14928 allow_undefined_flag='${wl}-z,nodefs'
14929 archive_cmds_need_lc=no
14930 hardcode_shlibpath_var=no
14931 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14932 hardcode_libdir_separator=':'
14933 link_all_deplibs=yes
14934 export_dynamic_flag_spec='${wl}-Bexport'
14935 runpath_var='LD_RUN_PATH'
14936
14937 if test "$GCC" = yes; then
14938 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14939 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14940 else
14941 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14942 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14943 fi
14944 ;;
14945
14946 uts4*)
14947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14948 hardcode_libdir_flag_spec='-L$libdir'
14949 hardcode_shlibpath_var=no
14950 ;;
14951
14952 *)
14953 ld_shlibs=no
14954 ;;
14955 esac
14956
14957 if test x$host_vendor = xsni; then
14958 case $host in
14959 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14960 export_dynamic_flag_spec='${wl}-Blargedynsym'
14961 ;;
14962 esac
14963 fi
14964 fi
14965
14966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14967$as_echo "$ld_shlibs" >&6; }
14968test "$ld_shlibs" = no && can_build_shared=no
14969
14970with_gnu_ld=$with_gnu_ld
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986#
14987# Do we need to explicitly link libc?
14988#
14989case "x$archive_cmds_need_lc" in
14990x|xyes)
14991 # Assume -lc should be added
14992 archive_cmds_need_lc=yes
14993
14994 if test "$enable_shared" = yes && test "$GCC" = yes; then
14995 case $archive_cmds in
14996 *'~'*)
14997 # FIXME: we may have to deal with multi-command sequences.
14998 ;;
14999 '$CC '*)
15000 # Test whether the compiler implicitly links with -lc since on some
15001 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15002 # to ld, don't add -lc before -lgcc.
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15004$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015005if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015006 $as_echo_n "(cached) " >&6
15007else
15008 $RM conftest*
15009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015010
cristy0c60a692010-11-04 01:09:47 +000015011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015012 (eval $ac_compile) 2>&5
15013 ac_status=$?
15014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15015 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015016 soname=conftest
15017 lib=conftest
15018 libobjs=conftest.$ac_objext
15019 deplibs=
15020 wl=$lt_prog_compiler_wl
15021 pic_flag=$lt_prog_compiler_pic
15022 compiler_flags=-v
15023 linker_flags=-v
15024 verstring=
15025 output_objdir=.
15026 libname=conftest
15027 lt_save_allow_undefined_flag=$allow_undefined_flag
15028 allow_undefined_flag=
15029 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 +000015030 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15031 ac_status=$?
15032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15033 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015034 then
15035 lt_cv_archive_cmds_need_lc=no
15036 else
15037 lt_cv_archive_cmds_need_lc=yes
15038 fi
15039 allow_undefined_flag=$lt_save_allow_undefined_flag
15040 else
15041 cat conftest.err 1>&5
15042 fi
15043 $RM conftest*
15044
15045fi
15046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15047$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15048 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015049 ;;
15050 esac
15051 fi
15052 ;;
15053esac
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15212$as_echo_n "checking dynamic linker characteristics... " >&6; }
15213
15214if test "$GCC" = yes; then
15215 case $host_os in
15216 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15217 *) lt_awk_arg="/^libraries:/" ;;
15218 esac
cristy0c60a692010-11-04 01:09:47 +000015219 case $host_os in
15220 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15221 *) lt_sed_strip_eq="s,=/,/,g" ;;
15222 esac
15223 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15224 case $lt_search_path_spec in
15225 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015226 # if the path contains ";" then we assume it to be the separator
15227 # otherwise default to the standard path separator (i.e. ":") - it is
15228 # assumed that no part of a normal pathname contains ";" but that should
15229 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015230 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15231 ;;
15232 *)
15233 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15234 ;;
15235 esac
cristy73bd4a52010-10-05 11:24:23 +000015236 # Ok, now we have the path, separated by spaces, we can step through it
15237 # and add multilib dir if necessary.
15238 lt_tmp_lt_search_path_spec=
15239 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15240 for lt_sys_path in $lt_search_path_spec; do
15241 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15242 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15243 else
15244 test -d "$lt_sys_path" && \
15245 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15246 fi
15247 done
cristy0c60a692010-11-04 01:09:47 +000015248 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015249BEGIN {RS=" "; FS="/|\n";} {
15250 lt_foo="";
15251 lt_count=0;
15252 for (lt_i = NF; lt_i > 0; lt_i--) {
15253 if ($lt_i != "" && $lt_i != ".") {
15254 if ($lt_i == "..") {
15255 lt_count++;
15256 } else {
15257 if (lt_count == 0) {
15258 lt_foo="/" $lt_i lt_foo;
15259 } else {
15260 lt_count--;
15261 }
15262 }
15263 }
15264 }
15265 if (lt_foo != "") { lt_freq[lt_foo]++; }
15266 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15267}'`
cristy0c60a692010-11-04 01:09:47 +000015268 # AWK program above erroneously prepends '/' to C:/dos/paths
15269 # for these hosts.
15270 case $host_os in
15271 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15272 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15273 esac
15274 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015275else
15276 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15277fi
15278library_names_spec=
15279libname_spec='lib$name'
15280soname_spec=
15281shrext_cmds=".so"
15282postinstall_cmds=
15283postuninstall_cmds=
15284finish_cmds=
15285finish_eval=
15286shlibpath_var=
15287shlibpath_overrides_runpath=unknown
15288version_type=none
15289dynamic_linker="$host_os ld.so"
15290sys_lib_dlsearch_path_spec="/lib /usr/lib"
15291need_lib_prefix=unknown
15292hardcode_into_libs=no
15293
15294# when you set need_version to no, make sure it does not cause -set_version
15295# flags to be left without arguments
15296need_version=unknown
15297
15298case $host_os in
15299aix3*)
15300 version_type=linux
15301 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15302 shlibpath_var=LIBPATH
15303
15304 # AIX 3 has no versioning support, so we append a major version to the name.
15305 soname_spec='${libname}${release}${shared_ext}$major'
15306 ;;
15307
15308aix[4-9]*)
15309 version_type=linux
15310 need_lib_prefix=no
15311 need_version=no
15312 hardcode_into_libs=yes
15313 if test "$host_cpu" = ia64; then
15314 # AIX 5 supports IA64
15315 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15316 shlibpath_var=LD_LIBRARY_PATH
15317 else
15318 # With GCC up to 2.95.x, collect2 would create an import file
15319 # for dependence libraries. The import file would start with
15320 # the line `#! .'. This would cause the generated library to
15321 # depend on `.', always an invalid library. This was fixed in
15322 # development snapshots of GCC prior to 3.0.
15323 case $host_os in
15324 aix4 | aix4.[01] | aix4.[01].*)
15325 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15326 echo ' yes '
15327 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15328 :
15329 else
15330 can_build_shared=no
15331 fi
15332 ;;
15333 esac
15334 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15335 # soname into executable. Probably we can add versioning support to
15336 # collect2, so additional links can be useful in future.
15337 if test "$aix_use_runtimelinking" = yes; then
15338 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15339 # instead of lib<name>.a to let people know that these are not
15340 # typical AIX shared libraries.
15341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15342 else
15343 # We preserve .a as extension for shared libraries through AIX4.2
15344 # and later when we are not doing run time linking.
15345 library_names_spec='${libname}${release}.a $libname.a'
15346 soname_spec='${libname}${release}${shared_ext}$major'
15347 fi
15348 shlibpath_var=LIBPATH
15349 fi
15350 ;;
15351
15352amigaos*)
15353 case $host_cpu in
15354 powerpc)
15355 # Since July 2007 AmigaOS4 officially supports .so libraries.
15356 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15358 ;;
15359 m68k)
15360 library_names_spec='$libname.ixlibrary $libname.a'
15361 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015362 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 +000015363 ;;
15364 esac
15365 ;;
15366
15367beos*)
15368 library_names_spec='${libname}${shared_ext}'
15369 dynamic_linker="$host_os ld.so"
15370 shlibpath_var=LIBRARY_PATH
15371 ;;
15372
15373bsdi[45]*)
15374 version_type=linux
15375 need_version=no
15376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15377 soname_spec='${libname}${release}${shared_ext}$major'
15378 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15379 shlibpath_var=LD_LIBRARY_PATH
15380 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15381 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15382 # the default ld.so.conf also contains /usr/contrib/lib and
15383 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15384 # libtool to hard-code these into programs
15385 ;;
15386
15387cygwin* | mingw* | pw32* | cegcc*)
15388 version_type=windows
15389 shrext_cmds=".dll"
15390 need_version=no
15391 need_lib_prefix=no
15392
cristyda16f162011-02-19 23:52:17 +000015393 case $GCC,$cc_basename in
15394 yes,*)
15395 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015396 library_names_spec='$libname.dll.a'
15397 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15398 postinstall_cmds='base_file=`basename \${file}`~
15399 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15400 dldir=$destdir/`dirname \$dlpath`~
15401 test -d \$dldir || mkdir -p \$dldir~
15402 $install_prog $dir/$dlname \$dldir/$dlname~
15403 chmod a+x \$dldir/$dlname~
15404 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15405 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15406 fi'
15407 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15408 dlpath=$dir/\$dldll~
15409 $RM \$dlpath'
15410 shlibpath_overrides_runpath=yes
15411
15412 case $host_os in
15413 cygwin*)
15414 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15415 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015416
15417 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015418 ;;
15419 mingw* | cegcc*)
15420 # MinGW DLLs use traditional 'lib' prefix
15421 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015422 ;;
15423 pw32*)
15424 # pw32 DLLs use 'pw' prefix rather than 'lib'
15425 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15426 ;;
15427 esac
cristyda16f162011-02-19 23:52:17 +000015428 dynamic_linker='Win32 ld.exe'
15429 ;;
15430
15431 *,cl*)
15432 # Native MSVC
15433 libname_spec='$name'
15434 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15435 library_names_spec='${libname}.dll.lib'
15436
15437 case $build_os in
15438 mingw*)
15439 sys_lib_search_path_spec=
15440 lt_save_ifs=$IFS
15441 IFS=';'
15442 for lt_path in $LIB
15443 do
15444 IFS=$lt_save_ifs
15445 # Let DOS variable expansion print the short 8.3 style file name.
15446 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15447 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15448 done
15449 IFS=$lt_save_ifs
15450 # Convert to MSYS style.
15451 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15452 ;;
15453 cygwin*)
15454 # Convert to unix form, then to dos form, then back to unix form
15455 # but this time dos style (no spaces!) so that the unix form looks
15456 # like /cygdrive/c/PROGRA~1:/cygdr...
15457 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15458 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15459 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15460 ;;
15461 *)
15462 sys_lib_search_path_spec="$LIB"
15463 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15464 # It is most probably a Windows format PATH.
15465 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15466 else
15467 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15468 fi
15469 # FIXME: find the short name or the path components, as spaces are
15470 # common. (e.g. "Program Files" -> "PROGRA~1")
15471 ;;
15472 esac
15473
15474 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15475 postinstall_cmds='base_file=`basename \${file}`~
15476 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15477 dldir=$destdir/`dirname \$dlpath`~
15478 test -d \$dldir || mkdir -p \$dldir~
15479 $install_prog $dir/$dlname \$dldir/$dlname'
15480 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15481 dlpath=$dir/\$dldll~
15482 $RM \$dlpath'
15483 shlibpath_overrides_runpath=yes
15484 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015485 ;;
15486
15487 *)
cristyda16f162011-02-19 23:52:17 +000015488 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015489 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015490 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015491 ;;
15492 esac
cristy73bd4a52010-10-05 11:24:23 +000015493 # FIXME: first we should search . and the directory the executable is in
15494 shlibpath_var=PATH
15495 ;;
15496
15497darwin* | rhapsody*)
15498 dynamic_linker="$host_os dyld"
15499 version_type=darwin
15500 need_lib_prefix=no
15501 need_version=no
15502 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15503 soname_spec='${libname}${release}${major}$shared_ext'
15504 shlibpath_overrides_runpath=yes
15505 shlibpath_var=DYLD_LIBRARY_PATH
15506 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15507
15508 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15509 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15510 ;;
15511
15512dgux*)
15513 version_type=linux
15514 need_lib_prefix=no
15515 need_version=no
15516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15517 soname_spec='${libname}${release}${shared_ext}$major'
15518 shlibpath_var=LD_LIBRARY_PATH
15519 ;;
15520
15521freebsd1*)
15522 dynamic_linker=no
15523 ;;
15524
15525freebsd* | dragonfly*)
15526 # DragonFly does not have aout. When/if they implement a new
15527 # versioning mechanism, adjust this.
15528 if test -x /usr/bin/objformat; then
15529 objformat=`/usr/bin/objformat`
15530 else
15531 case $host_os in
15532 freebsd[123]*) objformat=aout ;;
15533 *) objformat=elf ;;
15534 esac
15535 fi
15536 version_type=freebsd-$objformat
15537 case $version_type in
15538 freebsd-elf*)
15539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15540 need_version=no
15541 need_lib_prefix=no
15542 ;;
15543 freebsd-*)
15544 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15545 need_version=yes
15546 ;;
15547 esac
15548 shlibpath_var=LD_LIBRARY_PATH
15549 case $host_os in
15550 freebsd2*)
15551 shlibpath_overrides_runpath=yes
15552 ;;
15553 freebsd3.[01]* | freebsdelf3.[01]*)
15554 shlibpath_overrides_runpath=yes
15555 hardcode_into_libs=yes
15556 ;;
15557 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15558 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15559 shlibpath_overrides_runpath=no
15560 hardcode_into_libs=yes
15561 ;;
15562 *) # from 4.6 on, and DragonFly
15563 shlibpath_overrides_runpath=yes
15564 hardcode_into_libs=yes
15565 ;;
15566 esac
15567 ;;
15568
15569gnu*)
15570 version_type=linux
15571 need_lib_prefix=no
15572 need_version=no
15573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15574 soname_spec='${libname}${release}${shared_ext}$major'
15575 shlibpath_var=LD_LIBRARY_PATH
15576 hardcode_into_libs=yes
15577 ;;
15578
cristy0c60a692010-11-04 01:09:47 +000015579haiku*)
15580 version_type=linux
15581 need_lib_prefix=no
15582 need_version=no
15583 dynamic_linker="$host_os runtime_loader"
15584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15585 soname_spec='${libname}${release}${shared_ext}$major'
15586 shlibpath_var=LIBRARY_PATH
15587 shlibpath_overrides_runpath=yes
15588 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15589 hardcode_into_libs=yes
15590 ;;
15591
cristy73bd4a52010-10-05 11:24:23 +000015592hpux9* | hpux10* | hpux11*)
15593 # Give a soname corresponding to the major version so that dld.sl refuses to
15594 # link against other versions.
15595 version_type=sunos
15596 need_lib_prefix=no
15597 need_version=no
15598 case $host_cpu in
15599 ia64*)
15600 shrext_cmds='.so'
15601 hardcode_into_libs=yes
15602 dynamic_linker="$host_os dld.so"
15603 shlibpath_var=LD_LIBRARY_PATH
15604 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15606 soname_spec='${libname}${release}${shared_ext}$major'
15607 if test "X$HPUX_IA64_MODE" = X32; then
15608 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15609 else
15610 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15611 fi
15612 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15613 ;;
15614 hppa*64*)
15615 shrext_cmds='.sl'
15616 hardcode_into_libs=yes
15617 dynamic_linker="$host_os dld.sl"
15618 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15619 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15621 soname_spec='${libname}${release}${shared_ext}$major'
15622 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15624 ;;
15625 *)
15626 shrext_cmds='.sl'
15627 dynamic_linker="$host_os dld.sl"
15628 shlibpath_var=SHLIB_PATH
15629 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15631 soname_spec='${libname}${release}${shared_ext}$major'
15632 ;;
15633 esac
cristy0c60a692010-11-04 01:09:47 +000015634 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015635 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015636 # or fails outright, so override atomically:
15637 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015638 ;;
15639
15640interix[3-9]*)
15641 version_type=linux
15642 need_lib_prefix=no
15643 need_version=no
15644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15645 soname_spec='${libname}${release}${shared_ext}$major'
15646 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15647 shlibpath_var=LD_LIBRARY_PATH
15648 shlibpath_overrides_runpath=no
15649 hardcode_into_libs=yes
15650 ;;
15651
15652irix5* | irix6* | nonstopux*)
15653 case $host_os in
15654 nonstopux*) version_type=nonstopux ;;
15655 *)
15656 if test "$lt_cv_prog_gnu_ld" = yes; then
15657 version_type=linux
15658 else
15659 version_type=irix
15660 fi ;;
15661 esac
15662 need_lib_prefix=no
15663 need_version=no
15664 soname_spec='${libname}${release}${shared_ext}$major'
15665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15666 case $host_os in
15667 irix5* | nonstopux*)
15668 libsuff= shlibsuff=
15669 ;;
15670 *)
15671 case $LD in # libtool.m4 will add one of these switches to LD
15672 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15673 libsuff= shlibsuff= libmagic=32-bit;;
15674 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15675 libsuff=32 shlibsuff=N32 libmagic=N32;;
15676 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15677 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15678 *) libsuff= shlibsuff= libmagic=never-match;;
15679 esac
15680 ;;
15681 esac
15682 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15683 shlibpath_overrides_runpath=no
15684 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15685 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15686 hardcode_into_libs=yes
15687 ;;
15688
15689# No shared lib support for Linux oldld, aout, or coff.
15690linux*oldld* | linux*aout* | linux*coff*)
15691 dynamic_linker=no
15692 ;;
15693
15694# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000015695linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015696 version_type=linux
15697 need_lib_prefix=no
15698 need_version=no
15699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15700 soname_spec='${libname}${release}${shared_ext}$major'
15701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15702 shlibpath_var=LD_LIBRARY_PATH
15703 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015704
cristy73bd4a52010-10-05 11:24:23 +000015705 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015706 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015707 $as_echo_n "(cached) " >&6
15708else
15709 lt_cv_shlibpath_overrides_runpath=no
15710 save_LDFLAGS=$LDFLAGS
15711 save_libdir=$libdir
15712 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15713 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015715/* end confdefs.h. */
15716
15717int
15718main ()
15719{
15720
15721 ;
15722 return 0;
15723}
15724_ACEOF
15725if ac_fn_c_try_link "$LINENO"; then :
15726 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015727 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015728fi
15729fi
15730rm -f core conftest.err conftest.$ac_objext \
15731 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015732 LDFLAGS=$save_LDFLAGS
15733 libdir=$save_libdir
15734
15735fi
15736
15737 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015738
15739 # This implies no fast_install, which is unacceptable.
15740 # Some rework will be needed to allow for fast_install
15741 # before this can be enabled.
15742 hardcode_into_libs=yes
15743
15744 # Add ABI-specific directories to the system library path.
15745 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15746
15747 # Append ld.so.conf contents to the search path
15748 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015749 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 +000015750 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015751
cristy73bd4a52010-10-05 11:24:23 +000015752 fi
15753
15754 # We used to test for /lib/ld.so.1 and disable shared libraries on
15755 # powerpc, because MkLinux only supported shared libraries with the
15756 # GNU dynamic linker. Since this was broken with cross compilers,
15757 # most powerpc-linux boxes support dynamic linking these days and
15758 # people can always --disable-shared, the test was removed, and we
15759 # assume the GNU/Linux dynamic linker is in use.
15760 dynamic_linker='GNU/Linux ld.so'
15761 ;;
15762
15763netbsd*)
15764 version_type=sunos
15765 need_lib_prefix=no
15766 need_version=no
15767 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15769 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15770 dynamic_linker='NetBSD (a.out) ld.so'
15771 else
15772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15773 soname_spec='${libname}${release}${shared_ext}$major'
15774 dynamic_linker='NetBSD ld.elf_so'
15775 fi
15776 shlibpath_var=LD_LIBRARY_PATH
15777 shlibpath_overrides_runpath=yes
15778 hardcode_into_libs=yes
15779 ;;
15780
15781newsos6)
15782 version_type=linux
15783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15784 shlibpath_var=LD_LIBRARY_PATH
15785 shlibpath_overrides_runpath=yes
15786 ;;
15787
15788*nto* | *qnx*)
15789 version_type=qnx
15790 need_lib_prefix=no
15791 need_version=no
15792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15793 soname_spec='${libname}${release}${shared_ext}$major'
15794 shlibpath_var=LD_LIBRARY_PATH
15795 shlibpath_overrides_runpath=no
15796 hardcode_into_libs=yes
15797 dynamic_linker='ldqnx.so'
15798 ;;
15799
15800openbsd*)
15801 version_type=sunos
15802 sys_lib_dlsearch_path_spec="/usr/lib"
15803 need_lib_prefix=no
15804 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15805 case $host_os in
15806 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15807 *) need_version=no ;;
15808 esac
15809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15811 shlibpath_var=LD_LIBRARY_PATH
15812 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15813 case $host_os in
15814 openbsd2.[89] | openbsd2.[89].*)
15815 shlibpath_overrides_runpath=no
15816 ;;
15817 *)
15818 shlibpath_overrides_runpath=yes
15819 ;;
15820 esac
15821 else
15822 shlibpath_overrides_runpath=yes
15823 fi
15824 ;;
15825
15826os2*)
15827 libname_spec='$name'
15828 shrext_cmds=".dll"
15829 need_lib_prefix=no
15830 library_names_spec='$libname${shared_ext} $libname.a'
15831 dynamic_linker='OS/2 ld.exe'
15832 shlibpath_var=LIBPATH
15833 ;;
15834
15835osf3* | osf4* | osf5*)
15836 version_type=osf
15837 need_lib_prefix=no
15838 need_version=no
15839 soname_spec='${libname}${release}${shared_ext}$major'
15840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15841 shlibpath_var=LD_LIBRARY_PATH
15842 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15843 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15844 ;;
15845
15846rdos*)
15847 dynamic_linker=no
15848 ;;
15849
15850solaris*)
15851 version_type=linux
15852 need_lib_prefix=no
15853 need_version=no
15854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15855 soname_spec='${libname}${release}${shared_ext}$major'
15856 shlibpath_var=LD_LIBRARY_PATH
15857 shlibpath_overrides_runpath=yes
15858 hardcode_into_libs=yes
15859 # ldd complains unless libraries are executable
15860 postinstall_cmds='chmod +x $lib'
15861 ;;
15862
15863sunos4*)
15864 version_type=sunos
15865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15866 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15867 shlibpath_var=LD_LIBRARY_PATH
15868 shlibpath_overrides_runpath=yes
15869 if test "$with_gnu_ld" = yes; then
15870 need_lib_prefix=no
15871 fi
15872 need_version=yes
15873 ;;
15874
15875sysv4 | sysv4.3*)
15876 version_type=linux
15877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15878 soname_spec='${libname}${release}${shared_ext}$major'
15879 shlibpath_var=LD_LIBRARY_PATH
15880 case $host_vendor in
15881 sni)
15882 shlibpath_overrides_runpath=no
15883 need_lib_prefix=no
15884 runpath_var=LD_RUN_PATH
15885 ;;
15886 siemens)
15887 need_lib_prefix=no
15888 ;;
15889 motorola)
15890 need_lib_prefix=no
15891 need_version=no
15892 shlibpath_overrides_runpath=no
15893 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15894 ;;
15895 esac
15896 ;;
15897
15898sysv4*MP*)
15899 if test -d /usr/nec ;then
15900 version_type=linux
15901 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15902 soname_spec='$libname${shared_ext}.$major'
15903 shlibpath_var=LD_LIBRARY_PATH
15904 fi
15905 ;;
15906
15907sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15908 version_type=freebsd-elf
15909 need_lib_prefix=no
15910 need_version=no
15911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15912 soname_spec='${libname}${release}${shared_ext}$major'
15913 shlibpath_var=LD_LIBRARY_PATH
15914 shlibpath_overrides_runpath=yes
15915 hardcode_into_libs=yes
15916 if test "$with_gnu_ld" = yes; then
15917 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15918 else
15919 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15920 case $host_os in
15921 sco3.2v5*)
15922 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15923 ;;
15924 esac
15925 fi
15926 sys_lib_dlsearch_path_spec='/usr/lib'
15927 ;;
15928
15929tpf*)
15930 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15931 version_type=linux
15932 need_lib_prefix=no
15933 need_version=no
15934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15935 shlibpath_var=LD_LIBRARY_PATH
15936 shlibpath_overrides_runpath=no
15937 hardcode_into_libs=yes
15938 ;;
15939
15940uts4*)
15941 version_type=linux
15942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15943 soname_spec='${libname}${release}${shared_ext}$major'
15944 shlibpath_var=LD_LIBRARY_PATH
15945 ;;
15946
15947*)
15948 dynamic_linker=no
15949 ;;
15950esac
15951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15952$as_echo "$dynamic_linker" >&6; }
15953test "$dynamic_linker" = no && can_build_shared=no
15954
15955variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15956if test "$GCC" = yes; then
15957 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15958fi
15959
15960if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15961 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15962fi
15963if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15964 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15965fi
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
cristy0c60a692010-11-04 01:09:47 +000016053
16054
16055
16056
16057
cristy73bd4a52010-10-05 11:24:23 +000016058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16059$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16060hardcode_action=
16061if test -n "$hardcode_libdir_flag_spec" ||
16062 test -n "$runpath_var" ||
16063 test "X$hardcode_automatic" = "Xyes" ; then
16064
16065 # We can hardcode non-existent directories.
16066 if test "$hardcode_direct" != no &&
16067 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16068 # have to relink, otherwise we might link with an installed library
16069 # when we should be linking with a yet-to-be-installed one
16070 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16071 test "$hardcode_minus_L" != no; then
16072 # Linking always hardcodes the temporary library directory.
16073 hardcode_action=relink
16074 else
16075 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16076 hardcode_action=immediate
16077 fi
16078else
16079 # We cannot hardcode anything, or else we can only hardcode existing
16080 # directories.
16081 hardcode_action=unsupported
16082fi
16083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16084$as_echo "$hardcode_action" >&6; }
16085
16086if test "$hardcode_action" = relink ||
16087 test "$inherit_rpath" = yes; then
16088 # Fast installation is not supported
16089 enable_fast_install=no
16090elif test "$shlibpath_overrides_runpath" = yes ||
16091 test "$enable_shared" = no; then
16092 # Fast installation is not necessary
16093 enable_fast_install=needless
16094fi
16095
16096
16097
16098
16099
16100
16101 if test "x$enable_dlopen" != xyes; then
16102 enable_dlopen=unknown
16103 enable_dlopen_self=unknown
16104 enable_dlopen_self_static=unknown
16105else
16106 lt_cv_dlopen=no
16107 lt_cv_dlopen_libs=
16108
16109 case $host_os in
16110 beos*)
16111 lt_cv_dlopen="load_add_on"
16112 lt_cv_dlopen_libs=
16113 lt_cv_dlopen_self=yes
16114 ;;
16115
16116 mingw* | pw32* | cegcc*)
16117 lt_cv_dlopen="LoadLibrary"
16118 lt_cv_dlopen_libs=
16119 ;;
16120
16121 cygwin*)
16122 lt_cv_dlopen="dlopen"
16123 lt_cv_dlopen_libs=
16124 ;;
16125
16126 darwin*)
16127 # if libdl is installed we need to link against it
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
16168 lt_cv_dlopen="dyld"
16169 lt_cv_dlopen_libs=
16170 lt_cv_dlopen_self=yes
16171
16172fi
16173
16174 ;;
16175
16176 *)
16177 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016178if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016179 lt_cv_dlopen="shl_load"
16180else
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16182$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016183if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016184 $as_echo_n "(cached) " >&6
16185else
16186 ac_check_lib_save_LIBS=$LIBS
16187LIBS="-ldld $LIBS"
16188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16189/* end confdefs.h. */
16190
16191/* Override any GCC internal prototype to avoid an error.
16192 Use char because int might match the return type of a GCC
16193 builtin and then its argument prototype would still apply. */
16194#ifdef __cplusplus
16195extern "C"
16196#endif
16197char shl_load ();
16198int
16199main ()
16200{
16201return shl_load ();
16202 ;
16203 return 0;
16204}
16205_ACEOF
16206if ac_fn_c_try_link "$LINENO"; then :
16207 ac_cv_lib_dld_shl_load=yes
16208else
16209 ac_cv_lib_dld_shl_load=no
16210fi
16211rm -f core conftest.err conftest.$ac_objext \
16212 conftest$ac_exeext conftest.$ac_ext
16213LIBS=$ac_check_lib_save_LIBS
16214fi
16215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16216$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016217if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016218 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16219else
16220 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016221if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016222 lt_cv_dlopen="dlopen"
16223else
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16225$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016226if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016227 $as_echo_n "(cached) " >&6
16228else
16229 ac_check_lib_save_LIBS=$LIBS
16230LIBS="-ldl $LIBS"
16231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16232/* end confdefs.h. */
16233
16234/* Override any GCC internal prototype to avoid an error.
16235 Use char because int might match the return type of a GCC
16236 builtin and then its argument prototype would still apply. */
16237#ifdef __cplusplus
16238extern "C"
16239#endif
16240char dlopen ();
16241int
16242main ()
16243{
16244return dlopen ();
16245 ;
16246 return 0;
16247}
16248_ACEOF
16249if ac_fn_c_try_link "$LINENO"; then :
16250 ac_cv_lib_dl_dlopen=yes
16251else
16252 ac_cv_lib_dl_dlopen=no
16253fi
16254rm -f core conftest.err conftest.$ac_objext \
16255 conftest$ac_exeext conftest.$ac_ext
16256LIBS=$ac_check_lib_save_LIBS
16257fi
16258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16259$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016260if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016261 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16262else
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16264$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016265if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016266 $as_echo_n "(cached) " >&6
16267else
16268 ac_check_lib_save_LIBS=$LIBS
16269LIBS="-lsvld $LIBS"
16270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16271/* end confdefs.h. */
16272
16273/* Override any GCC internal prototype to avoid an error.
16274 Use char because int might match the return type of a GCC
16275 builtin and then its argument prototype would still apply. */
16276#ifdef __cplusplus
16277extern "C"
16278#endif
16279char dlopen ();
16280int
16281main ()
16282{
16283return dlopen ();
16284 ;
16285 return 0;
16286}
16287_ACEOF
16288if ac_fn_c_try_link "$LINENO"; then :
16289 ac_cv_lib_svld_dlopen=yes
16290else
16291 ac_cv_lib_svld_dlopen=no
16292fi
16293rm -f core conftest.err conftest.$ac_objext \
16294 conftest$ac_exeext conftest.$ac_ext
16295LIBS=$ac_check_lib_save_LIBS
16296fi
16297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16298$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016299if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016300 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16301else
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16303$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016304if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016305 $as_echo_n "(cached) " >&6
16306else
16307 ac_check_lib_save_LIBS=$LIBS
16308LIBS="-ldld $LIBS"
16309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16310/* end confdefs.h. */
16311
16312/* Override any GCC internal prototype to avoid an error.
16313 Use char because int might match the return type of a GCC
16314 builtin and then its argument prototype would still apply. */
16315#ifdef __cplusplus
16316extern "C"
16317#endif
16318char dld_link ();
16319int
16320main ()
16321{
16322return dld_link ();
16323 ;
16324 return 0;
16325}
16326_ACEOF
16327if ac_fn_c_try_link "$LINENO"; then :
16328 ac_cv_lib_dld_dld_link=yes
16329else
16330 ac_cv_lib_dld_dld_link=no
16331fi
16332rm -f core conftest.err conftest.$ac_objext \
16333 conftest$ac_exeext conftest.$ac_ext
16334LIBS=$ac_check_lib_save_LIBS
16335fi
16336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16337$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016338if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016339 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16340fi
16341
16342
16343fi
16344
16345
16346fi
16347
16348
16349fi
16350
16351
16352fi
16353
16354
16355fi
16356
16357 ;;
16358 esac
16359
16360 if test "x$lt_cv_dlopen" != xno; then
16361 enable_dlopen=yes
16362 else
16363 enable_dlopen=no
16364 fi
16365
16366 case $lt_cv_dlopen in
16367 dlopen)
16368 save_CPPFLAGS="$CPPFLAGS"
16369 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16370
16371 save_LDFLAGS="$LDFLAGS"
16372 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16373
16374 save_LIBS="$LIBS"
16375 LIBS="$lt_cv_dlopen_libs $LIBS"
16376
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16378$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016379if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016380 $as_echo_n "(cached) " >&6
16381else
16382 if test "$cross_compiling" = yes; then :
16383 lt_cv_dlopen_self=cross
16384else
16385 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16386 lt_status=$lt_dlunknown
16387 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016388#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016389#include "confdefs.h"
16390
16391#if HAVE_DLFCN_H
16392#include <dlfcn.h>
16393#endif
16394
16395#include <stdio.h>
16396
16397#ifdef RTLD_GLOBAL
16398# define LT_DLGLOBAL RTLD_GLOBAL
16399#else
16400# ifdef DL_GLOBAL
16401# define LT_DLGLOBAL DL_GLOBAL
16402# else
16403# define LT_DLGLOBAL 0
16404# endif
16405#endif
16406
16407/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16408 find out it does not work in some platform. */
16409#ifndef LT_DLLAZY_OR_NOW
16410# ifdef RTLD_LAZY
16411# define LT_DLLAZY_OR_NOW RTLD_LAZY
16412# else
16413# ifdef DL_LAZY
16414# define LT_DLLAZY_OR_NOW DL_LAZY
16415# else
16416# ifdef RTLD_NOW
16417# define LT_DLLAZY_OR_NOW RTLD_NOW
16418# else
16419# ifdef DL_NOW
16420# define LT_DLLAZY_OR_NOW DL_NOW
16421# else
16422# define LT_DLLAZY_OR_NOW 0
16423# endif
16424# endif
16425# endif
16426# endif
16427#endif
16428
cristy0c60a692010-11-04 01:09:47 +000016429/* When -fvisbility=hidden is used, assume the code has been annotated
16430 correspondingly for the symbols needed. */
16431#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016432int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016433#endif
16434
cristyda16f162011-02-19 23:52:17 +000016435int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016436int main ()
16437{
16438 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16439 int status = $lt_dlunknown;
16440
16441 if (self)
16442 {
16443 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016444 else
16445 {
16446 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16447 else puts (dlerror ());
16448 }
cristy73bd4a52010-10-05 11:24:23 +000016449 /* dlclose (self); */
16450 }
16451 else
16452 puts (dlerror ());
16453
16454 return status;
16455}
16456_LT_EOF
16457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16458 (eval $ac_link) 2>&5
16459 ac_status=$?
16460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16461 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16462 (./conftest; exit; ) >&5 2>/dev/null
16463 lt_status=$?
16464 case x$lt_status in
16465 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16466 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16467 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16468 esac
16469 else :
16470 # compilation failed
16471 lt_cv_dlopen_self=no
16472 fi
16473fi
16474rm -fr conftest*
16475
16476
16477fi
16478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16479$as_echo "$lt_cv_dlopen_self" >&6; }
16480
16481 if test "x$lt_cv_dlopen_self" = xyes; then
16482 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16484$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016485if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016486 $as_echo_n "(cached) " >&6
16487else
16488 if test "$cross_compiling" = yes; then :
16489 lt_cv_dlopen_self_static=cross
16490else
16491 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16492 lt_status=$lt_dlunknown
16493 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016494#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016495#include "confdefs.h"
16496
16497#if HAVE_DLFCN_H
16498#include <dlfcn.h>
16499#endif
16500
16501#include <stdio.h>
16502
16503#ifdef RTLD_GLOBAL
16504# define LT_DLGLOBAL RTLD_GLOBAL
16505#else
16506# ifdef DL_GLOBAL
16507# define LT_DLGLOBAL DL_GLOBAL
16508# else
16509# define LT_DLGLOBAL 0
16510# endif
16511#endif
16512
16513/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16514 find out it does not work in some platform. */
16515#ifndef LT_DLLAZY_OR_NOW
16516# ifdef RTLD_LAZY
16517# define LT_DLLAZY_OR_NOW RTLD_LAZY
16518# else
16519# ifdef DL_LAZY
16520# define LT_DLLAZY_OR_NOW DL_LAZY
16521# else
16522# ifdef RTLD_NOW
16523# define LT_DLLAZY_OR_NOW RTLD_NOW
16524# else
16525# ifdef DL_NOW
16526# define LT_DLLAZY_OR_NOW DL_NOW
16527# else
16528# define LT_DLLAZY_OR_NOW 0
16529# endif
16530# endif
16531# endif
16532# endif
16533#endif
16534
cristy0c60a692010-11-04 01:09:47 +000016535/* When -fvisbility=hidden is used, assume the code has been annotated
16536 correspondingly for the symbols needed. */
16537#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016538int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016539#endif
16540
cristyda16f162011-02-19 23:52:17 +000016541int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016542int main ()
16543{
16544 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16545 int status = $lt_dlunknown;
16546
16547 if (self)
16548 {
16549 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016550 else
16551 {
16552 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16553 else puts (dlerror ());
16554 }
cristy73bd4a52010-10-05 11:24:23 +000016555 /* dlclose (self); */
16556 }
16557 else
16558 puts (dlerror ());
16559
16560 return status;
16561}
16562_LT_EOF
16563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16564 (eval $ac_link) 2>&5
16565 ac_status=$?
16566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16567 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16568 (./conftest; exit; ) >&5 2>/dev/null
16569 lt_status=$?
16570 case x$lt_status in
16571 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16572 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16573 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16574 esac
16575 else :
16576 # compilation failed
16577 lt_cv_dlopen_self_static=no
16578 fi
16579fi
16580rm -fr conftest*
16581
16582
16583fi
16584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16585$as_echo "$lt_cv_dlopen_self_static" >&6; }
16586 fi
16587
16588 CPPFLAGS="$save_CPPFLAGS"
16589 LDFLAGS="$save_LDFLAGS"
16590 LIBS="$save_LIBS"
16591 ;;
16592 esac
16593
16594 case $lt_cv_dlopen_self in
16595 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16596 *) enable_dlopen_self=unknown ;;
16597 esac
16598
16599 case $lt_cv_dlopen_self_static in
16600 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16601 *) enable_dlopen_self_static=unknown ;;
16602 esac
16603fi
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621striplib=
16622old_striplib=
16623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16624$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16625if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16626 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16627 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16629$as_echo "yes" >&6; }
16630else
16631# FIXME - insert some real tests, host_os isn't really good enough
16632 case $host_os in
16633 darwin*)
16634 if test -n "$STRIP" ; then
16635 striplib="$STRIP -x"
16636 old_striplib="$STRIP -S"
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16638$as_echo "yes" >&6; }
16639 else
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16641$as_echo "no" >&6; }
16642 fi
16643 ;;
16644 *)
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16646$as_echo "no" >&6; }
16647 ;;
16648 esac
16649fi
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662 # Report which library types will actually be built
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16664$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16666$as_echo "$can_build_shared" >&6; }
16667
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16669$as_echo_n "checking whether to build shared libraries... " >&6; }
16670 test "$can_build_shared" = "no" && enable_shared=no
16671
16672 # On AIX, shared libraries and static libraries use the same namespace, and
16673 # are all built from PIC.
16674 case $host_os in
16675 aix3*)
16676 test "$enable_shared" = yes && enable_static=no
16677 if test -n "$RANLIB"; then
16678 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16679 postinstall_cmds='$RANLIB $lib'
16680 fi
16681 ;;
16682
16683 aix[4-9]*)
16684 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16685 test "$enable_shared" = yes && enable_static=no
16686 fi
16687 ;;
16688 esac
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16690$as_echo "$enable_shared" >&6; }
16691
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16693$as_echo_n "checking whether to build static libraries... " >&6; }
16694 # Make sure either enable_shared or enable_static is yes.
16695 test "$enable_shared" = yes || enable_static=yes
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16697$as_echo "$enable_static" >&6; }
16698
16699
16700
16701
16702fi
16703ac_ext=c
16704ac_cpp='$CPP $CPPFLAGS'
16705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16707ac_compiler_gnu=$ac_cv_c_compiler_gnu
16708
16709CC="$lt_save_CC"
16710
cristy0c60a692010-11-04 01:09:47 +000016711 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16712 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16713 (test "X$CXX" != "Xg++"))) ; then
16714 ac_ext=cpp
16715ac_cpp='$CXXCPP $CPPFLAGS'
16716ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16717ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16718ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16720$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16721if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016722 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016723 $as_echo_n "(cached) " >&6
16724else
16725 # Double quotes because CXXCPP needs to be expanded
16726 for CXXCPP in "$CXX -E" "/lib/cpp"
16727 do
16728 ac_preproc_ok=false
16729for ac_cxx_preproc_warn_flag in '' yes
16730do
16731 # Use a header file that comes with gcc, so configuring glibc
16732 # with a fresh cross-compiler works.
16733 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16734 # <limits.h> exists even on freestanding compilers.
16735 # On the NeXT, cc -E runs the code through the compiler's parser,
16736 # not just through cpp. "Syntax error" is here to catch this case.
16737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16738/* end confdefs.h. */
16739#ifdef __STDC__
16740# include <limits.h>
16741#else
16742# include <assert.h>
16743#endif
16744 Syntax error
16745_ACEOF
16746if ac_fn_cxx_try_cpp "$LINENO"; then :
16747
16748else
16749 # Broken: fails on valid input.
16750continue
16751fi
cristyda16f162011-02-19 23:52:17 +000016752rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016753
16754 # OK, works on sane cases. Now check whether nonexistent headers
16755 # can be detected and how.
16756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16757/* end confdefs.h. */
16758#include <ac_nonexistent.h>
16759_ACEOF
16760if ac_fn_cxx_try_cpp "$LINENO"; then :
16761 # Broken: success on invalid input.
16762continue
16763else
16764 # Passes both tests.
16765ac_preproc_ok=:
16766break
16767fi
cristyda16f162011-02-19 23:52:17 +000016768rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016769
16770done
16771# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016772rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016773if $ac_preproc_ok; then :
16774 break
16775fi
16776
16777 done
16778 ac_cv_prog_CXXCPP=$CXXCPP
16779
16780fi
16781 CXXCPP=$ac_cv_prog_CXXCPP
16782else
16783 ac_cv_prog_CXXCPP=$CXXCPP
16784fi
16785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16786$as_echo "$CXXCPP" >&6; }
16787ac_preproc_ok=false
16788for ac_cxx_preproc_warn_flag in '' yes
16789do
16790 # Use a header file that comes with gcc, so configuring glibc
16791 # with a fresh cross-compiler works.
16792 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16793 # <limits.h> exists even on freestanding compilers.
16794 # On the NeXT, cc -E runs the code through the compiler's parser,
16795 # not just through cpp. "Syntax error" is here to catch this case.
16796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16797/* end confdefs.h. */
16798#ifdef __STDC__
16799# include <limits.h>
16800#else
16801# include <assert.h>
16802#endif
16803 Syntax error
16804_ACEOF
16805if ac_fn_cxx_try_cpp "$LINENO"; then :
16806
16807else
16808 # Broken: fails on valid input.
16809continue
16810fi
cristyda16f162011-02-19 23:52:17 +000016811rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016812
16813 # OK, works on sane cases. Now check whether nonexistent headers
16814 # can be detected and how.
16815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16816/* end confdefs.h. */
16817#include <ac_nonexistent.h>
16818_ACEOF
16819if ac_fn_cxx_try_cpp "$LINENO"; then :
16820 # Broken: success on invalid input.
16821continue
16822else
16823 # Passes both tests.
16824ac_preproc_ok=:
16825break
16826fi
cristyda16f162011-02-19 23:52:17 +000016827rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016828
16829done
16830# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016831rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016832if $ac_preproc_ok; then :
16833
16834else
16835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16836$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16837as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16838See \`config.log' for more details" "$LINENO" 5; }
16839fi
16840
16841ac_ext=c
16842ac_cpp='$CPP $CPPFLAGS'
16843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16845ac_compiler_gnu=$ac_cv_c_compiler_gnu
16846
16847else
16848 _lt_caught_CXX_error=yes
16849fi
cristy73bd4a52010-10-05 11:24:23 +000016850
16851ac_ext=cpp
16852ac_cpp='$CXXCPP $CPPFLAGS'
16853ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16854ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16855ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16856
16857archive_cmds_need_lc_CXX=no
16858allow_undefined_flag_CXX=
16859always_export_symbols_CXX=no
16860archive_expsym_cmds_CXX=
16861compiler_needs_object_CXX=no
16862export_dynamic_flag_spec_CXX=
16863hardcode_direct_CXX=no
16864hardcode_direct_absolute_CXX=no
16865hardcode_libdir_flag_spec_CXX=
16866hardcode_libdir_flag_spec_ld_CXX=
16867hardcode_libdir_separator_CXX=
16868hardcode_minus_L_CXX=no
16869hardcode_shlibpath_var_CXX=unsupported
16870hardcode_automatic_CXX=no
16871inherit_rpath_CXX=no
16872module_cmds_CXX=
16873module_expsym_cmds_CXX=
16874link_all_deplibs_CXX=unknown
16875old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000016876reload_flag_CXX=$reload_flag
16877reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000016878no_undefined_flag_CXX=
16879whole_archive_flag_spec_CXX=
16880enable_shared_with_static_runtimes_CXX=no
16881
16882# Source file extension for C++ test sources.
16883ac_ext=cpp
16884
16885# Object file extension for compiled C++ test sources.
16886objext=o
16887objext_CXX=$objext
16888
16889# No sense in running all these tests if we already determined that
16890# the CXX compiler isn't working. Some variables (like enable_shared)
16891# are currently assumed to apply to all compilers on this platform,
16892# and will be corrupted by setting them based on a non-working compiler.
16893if test "$_lt_caught_CXX_error" != yes; then
16894 # Code to be used in simple compile tests
16895 lt_simple_compile_test_code="int some_variable = 0;"
16896
16897 # Code to be used in simple link tests
16898 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16899
16900 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16901
16902
16903
16904
16905
16906
16907# If no C compiler was specified, use CC.
16908LTCC=${LTCC-"$CC"}
16909
16910# If no C compiler flags were specified, use CFLAGS.
16911LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16912
16913# Allow CC to be a program name with arguments.
16914compiler=$CC
16915
16916
16917 # save warnings/boilerplate of simple test code
16918 ac_outfile=conftest.$ac_objext
16919echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16920eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16921_lt_compiler_boilerplate=`cat conftest.err`
16922$RM conftest*
16923
16924 ac_outfile=conftest.$ac_objext
16925echo "$lt_simple_link_test_code" >conftest.$ac_ext
16926eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16927_lt_linker_boilerplate=`cat conftest.err`
16928$RM -r conftest*
16929
16930
16931 # Allow CC to be a program name with arguments.
16932 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000016933 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016934 lt_save_LD=$LD
16935 lt_save_GCC=$GCC
16936 GCC=$GXX
16937 lt_save_with_gnu_ld=$with_gnu_ld
16938 lt_save_path_LD=$lt_cv_path_LD
16939 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16940 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16941 else
16942 $as_unset lt_cv_prog_gnu_ld
16943 fi
16944 if test -n "${lt_cv_path_LDCXX+set}"; then
16945 lt_cv_path_LD=$lt_cv_path_LDCXX
16946 else
16947 $as_unset lt_cv_path_LD
16948 fi
16949 test -z "${LDCXX+set}" || LD=$LDCXX
16950 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000016951 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016952 compiler=$CC
16953 compiler_CXX=$CC
16954 for cc_temp in $compiler""; do
16955 case $cc_temp in
16956 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16957 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16958 \-*) ;;
16959 *) break;;
16960 esac
16961done
cristy0c60a692010-11-04 01:09:47 +000016962cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000016963
16964
16965 if test -n "$compiler"; then
16966 # We don't want -fno-exception when compiling C++ code, so set the
16967 # no_builtin_flag separately
16968 if test "$GXX" = yes; then
16969 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16970 else
16971 lt_prog_compiler_no_builtin_flag_CXX=
16972 fi
16973
16974 if test "$GXX" = yes; then
16975 # Set up default GNU C++ configuration
16976
16977
16978
16979# Check whether --with-gnu-ld was given.
16980if test "${with_gnu_ld+set}" = set; then :
16981 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16982else
16983 with_gnu_ld=no
16984fi
16985
16986ac_prog=ld
16987if test "$GCC" = yes; then
16988 # Check if gcc -print-prog-name=ld gives a path.
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16990$as_echo_n "checking for ld used by $CC... " >&6; }
16991 case $host in
16992 *-*-mingw*)
16993 # gcc leaves a trailing carriage return which upsets mingw
16994 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16995 *)
16996 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16997 esac
16998 case $ac_prog in
16999 # Accept absolute paths.
17000 [\\/]* | ?:[\\/]*)
17001 re_direlt='/[^/][^/]*/\.\./'
17002 # Canonicalize the pathname of ld
17003 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17004 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17005 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17006 done
17007 test -z "$LD" && LD="$ac_prog"
17008 ;;
17009 "")
17010 # If it fails, then pretend we aren't using GCC.
17011 ac_prog=ld
17012 ;;
17013 *)
17014 # If it is relative, then search for the first ld in PATH.
17015 with_gnu_ld=unknown
17016 ;;
17017 esac
17018elif test "$with_gnu_ld" = yes; then
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17020$as_echo_n "checking for GNU ld... " >&6; }
17021else
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17023$as_echo_n "checking for non-GNU ld... " >&6; }
17024fi
cristyda16f162011-02-19 23:52:17 +000017025if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017026 $as_echo_n "(cached) " >&6
17027else
17028 if test -z "$LD"; then
17029 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17030 for ac_dir in $PATH; do
17031 IFS="$lt_save_ifs"
17032 test -z "$ac_dir" && ac_dir=.
17033 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17034 lt_cv_path_LD="$ac_dir/$ac_prog"
17035 # Check to see if the program is GNU ld. I'd rather use --version,
17036 # but apparently some variants of GNU ld only accept -v.
17037 # Break only if it was the GNU/non-GNU ld that we prefer.
17038 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17039 *GNU* | *'with BFD'*)
17040 test "$with_gnu_ld" != no && break
17041 ;;
17042 *)
17043 test "$with_gnu_ld" != yes && break
17044 ;;
17045 esac
17046 fi
17047 done
17048 IFS="$lt_save_ifs"
17049else
17050 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17051fi
17052fi
17053
17054LD="$lt_cv_path_LD"
17055if test -n "$LD"; then
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17057$as_echo "$LD" >&6; }
17058else
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17060$as_echo "no" >&6; }
17061fi
cristy98dddb52010-11-04 00:30:15 +000017062test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17064$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017065if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017066 $as_echo_n "(cached) " >&6
17067else
17068 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17069case `$LD -v 2>&1 </dev/null` in
17070*GNU* | *'with BFD'*)
17071 lt_cv_prog_gnu_ld=yes
17072 ;;
17073*)
17074 lt_cv_prog_gnu_ld=no
17075 ;;
17076esac
17077fi
17078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17079$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17080with_gnu_ld=$lt_cv_prog_gnu_ld
17081
17082
17083
17084
17085
17086
17087
17088 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17089 # archiving commands below assume that GNU ld is being used.
17090 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017091 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17092 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 +000017093
17094 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17095 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17096
17097 # If archive_cmds runs LD, not CC, wlarc should be empty
17098 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17099 # investigate it a little bit more. (MM)
17100 wlarc='${wl}'
17101
17102 # ancient GNU ld didn't support --whole-archive et. al.
17103 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17104 $GREP 'no-whole-archive' > /dev/null; then
17105 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17106 else
17107 whole_archive_flag_spec_CXX=
17108 fi
17109 else
17110 with_gnu_ld=no
17111 wlarc=
17112
17113 # A generic and very simple default shared library creation
17114 # command for GNU C++ for the case where it uses the native
17115 # linker, instead of GNU ld. If possible, this setting should
17116 # overridden to take advantage of the native linker features on
17117 # the platform it is being used on.
17118 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17119 fi
17120
17121 # Commands to make compiler produce verbose output that lists
17122 # what "hidden" libraries, object files and flags are used when
17123 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017124 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017125
17126 else
17127 GXX=no
17128 with_gnu_ld=no
17129 wlarc=
17130 fi
17131
17132 # PORTME: fill in a description of your system's C++ link characteristics
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17134$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17135 ld_shlibs_CXX=yes
17136 case $host_os in
17137 aix3*)
17138 # FIXME: insert proper C++ library support
17139 ld_shlibs_CXX=no
17140 ;;
17141 aix[4-9]*)
17142 if test "$host_cpu" = ia64; then
17143 # On IA64, the linker does run time linking by default, so we don't
17144 # have to do anything special.
17145 aix_use_runtimelinking=no
17146 exp_sym_flag='-Bexport'
17147 no_entry_flag=""
17148 else
17149 aix_use_runtimelinking=no
17150
17151 # Test if we are trying to use run time linking or normal
17152 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17153 # need to do runtime linking.
17154 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17155 for ld_flag in $LDFLAGS; do
17156 case $ld_flag in
17157 *-brtl*)
17158 aix_use_runtimelinking=yes
17159 break
17160 ;;
17161 esac
17162 done
17163 ;;
17164 esac
17165
17166 exp_sym_flag='-bexport'
17167 no_entry_flag='-bnoentry'
17168 fi
17169
17170 # When large executables or shared objects are built, AIX ld can
17171 # have problems creating the table of contents. If linking a library
17172 # or program results in "error TOC overflow" add -mminimal-toc to
17173 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17174 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17175
17176 archive_cmds_CXX=''
17177 hardcode_direct_CXX=yes
17178 hardcode_direct_absolute_CXX=yes
17179 hardcode_libdir_separator_CXX=':'
17180 link_all_deplibs_CXX=yes
17181 file_list_spec_CXX='${wl}-f,'
17182
17183 if test "$GXX" = yes; then
17184 case $host_os in aix4.[012]|aix4.[012].*)
17185 # We only want to do this on AIX 4.2 and lower, the check
17186 # below for broken collect2 doesn't work under 4.3+
17187 collect2name=`${CC} -print-prog-name=collect2`
17188 if test -f "$collect2name" &&
17189 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17190 then
17191 # We have reworked collect2
17192 :
17193 else
17194 # We have old collect2
17195 hardcode_direct_CXX=unsupported
17196 # It fails to find uninstalled libraries when the uninstalled
17197 # path is not listed in the libpath. Setting hardcode_minus_L
17198 # to unsupported forces relinking
17199 hardcode_minus_L_CXX=yes
17200 hardcode_libdir_flag_spec_CXX='-L$libdir'
17201 hardcode_libdir_separator_CXX=
17202 fi
17203 esac
17204 shared_flag='-shared'
17205 if test "$aix_use_runtimelinking" = yes; then
17206 shared_flag="$shared_flag "'${wl}-G'
17207 fi
17208 else
17209 # not using gcc
17210 if test "$host_cpu" = ia64; then
17211 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17212 # chokes on -Wl,-G. The following line is correct:
17213 shared_flag='-G'
17214 else
17215 if test "$aix_use_runtimelinking" = yes; then
17216 shared_flag='${wl}-G'
17217 else
17218 shared_flag='${wl}-bM:SRE'
17219 fi
17220 fi
17221 fi
17222
17223 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17224 # It seems that -bexpall does not export symbols beginning with
17225 # underscore (_), so it is better to generate a list of symbols to
17226 # export.
17227 always_export_symbols_CXX=yes
17228 if test "$aix_use_runtimelinking" = yes; then
17229 # Warning - without using the other runtime loading flags (-brtl),
17230 # -berok will link without error, but may produce a broken library.
17231 allow_undefined_flag_CXX='-berok'
17232 # Determine the default libpath from the value encoded in an empty
17233 # executable.
cristyda16f162011-02-19 23:52:17 +000017234 if test "${lt_cv_aix_libpath+set}" = set; then
17235 aix_libpath=$lt_cv_aix_libpath
17236else
17237 if ${lt_cv_aix_libpath__CXX+:} false; then :
17238 $as_echo_n "(cached) " >&6
17239else
17240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017241/* end confdefs.h. */
17242
17243int
17244main ()
17245{
17246
17247 ;
17248 return 0;
17249}
17250_ACEOF
17251if ac_fn_cxx_try_link "$LINENO"; then :
17252
cristyda16f162011-02-19 23:52:17 +000017253 lt_aix_libpath_sed='
17254 /Import File Strings/,/^$/ {
17255 /^0/ {
17256 s/^0 *\([^ ]*\) *$/\1/
17257 p
17258 }
17259 }'
17260 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17261 # Check for a 64-bit object if we didn't find anything.
17262 if test -z "$lt_cv_aix_libpath__CXX"; then
17263 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17264 fi
cristy73bd4a52010-10-05 11:24:23 +000017265fi
17266rm -f core conftest.err conftest.$ac_objext \
17267 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017268 if test -z "$lt_cv_aix_libpath__CXX"; then
17269 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17270 fi
17271
17272fi
17273
17274 aix_libpath=$lt_cv_aix_libpath__CXX
17275fi
cristy73bd4a52010-10-05 11:24:23 +000017276
17277 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17278
cristy0c60a692010-11-04 01:09:47 +000017279 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 +000017280 else
17281 if test "$host_cpu" = ia64; then
17282 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17283 allow_undefined_flag_CXX="-z nodefs"
17284 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"
17285 else
17286 # Determine the default libpath from the value encoded in an
17287 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017288 if test "${lt_cv_aix_libpath+set}" = set; then
17289 aix_libpath=$lt_cv_aix_libpath
17290else
17291 if ${lt_cv_aix_libpath__CXX+:} false; then :
17292 $as_echo_n "(cached) " >&6
17293else
17294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017295/* end confdefs.h. */
17296
17297int
17298main ()
17299{
17300
17301 ;
17302 return 0;
17303}
17304_ACEOF
17305if ac_fn_cxx_try_link "$LINENO"; then :
17306
cristyda16f162011-02-19 23:52:17 +000017307 lt_aix_libpath_sed='
17308 /Import File Strings/,/^$/ {
17309 /^0/ {
17310 s/^0 *\([^ ]*\) *$/\1/
17311 p
17312 }
17313 }'
17314 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17315 # Check for a 64-bit object if we didn't find anything.
17316 if test -z "$lt_cv_aix_libpath__CXX"; then
17317 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17318 fi
cristy73bd4a52010-10-05 11:24:23 +000017319fi
17320rm -f core conftest.err conftest.$ac_objext \
17321 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017322 if test -z "$lt_cv_aix_libpath__CXX"; then
17323 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17324 fi
17325
17326fi
17327
17328 aix_libpath=$lt_cv_aix_libpath__CXX
17329fi
cristy73bd4a52010-10-05 11:24:23 +000017330
17331 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17332 # Warning - without using the other run time loading flags,
17333 # -berok will link without error, but may produce a broken library.
17334 no_undefined_flag_CXX=' ${wl}-bernotok'
17335 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017336 if test "$with_gnu_ld" = yes; then
17337 # We only use this code for GNU lds that support --whole-archive.
17338 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17339 else
17340 # Exported symbols can be pulled into shared objects from archives
17341 whole_archive_flag_spec_CXX='$convenience'
17342 fi
cristy73bd4a52010-10-05 11:24:23 +000017343 archive_cmds_need_lc_CXX=yes
17344 # This is similar to how AIX traditionally builds its shared
17345 # libraries.
17346 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'
17347 fi
17348 fi
17349 ;;
17350
17351 beos*)
17352 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17353 allow_undefined_flag_CXX=unsupported
17354 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17355 # support --undefined. This deserves some investigation. FIXME
17356 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17357 else
17358 ld_shlibs_CXX=no
17359 fi
17360 ;;
17361
17362 chorus*)
17363 case $cc_basename in
17364 *)
17365 # FIXME: insert proper C++ library support
17366 ld_shlibs_CXX=no
17367 ;;
17368 esac
17369 ;;
17370
17371 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017372 case $GXX,$cc_basename in
17373 ,cl* | no,cl*)
17374 # Native MSVC
17375 # hardcode_libdir_flag_spec is actually meaningless, as there is
17376 # no search path for DLLs.
17377 hardcode_libdir_flag_spec_CXX=' '
17378 allow_undefined_flag_CXX=unsupported
17379 always_export_symbols_CXX=yes
17380 file_list_spec_CXX='@'
17381 # Tell ltmain to make .lib files, not .a files.
17382 libext=lib
17383 # Tell ltmain to make .dll files, not .so files.
17384 shrext_cmds=".dll"
17385 # FIXME: Setting linknames here is a bad hack.
17386 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17387 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17388 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17389 else
17390 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17391 fi~
17392 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17393 linknames='
17394 # The linker will not automatically build a static lib if we build a DLL.
17395 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17396 enable_shared_with_static_runtimes_CXX=yes
17397 # Don't use ranlib
17398 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17399 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17400 lt_tool_outputfile="@TOOL_OUTPUT@"~
17401 case $lt_outputfile in
17402 *.exe|*.EXE) ;;
17403 *)
17404 lt_outputfile="$lt_outputfile.exe"
17405 lt_tool_outputfile="$lt_tool_outputfile.exe"
17406 ;;
17407 esac~
17408 func_to_tool_file "$lt_outputfile"~
17409 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17410 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17411 $RM "$lt_outputfile.manifest";
17412 fi'
17413 ;;
17414 *)
17415 # g++
17416 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17417 # as there is no search path for DLLs.
17418 hardcode_libdir_flag_spec_CXX='-L$libdir'
17419 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17420 allow_undefined_flag_CXX=unsupported
17421 always_export_symbols_CXX=no
17422 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017423
cristyda16f162011-02-19 23:52:17 +000017424 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17425 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'
17426 # If the export-symbols file already is a .def file (1st line
17427 # is EXPORTS), use it as is; otherwise, prepend...
17428 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17429 cp $export_symbols $output_objdir/$soname.def;
17430 else
17431 echo EXPORTS > $output_objdir/$soname.def;
17432 cat $export_symbols >> $output_objdir/$soname.def;
17433 fi~
17434 $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'
17435 else
17436 ld_shlibs_CXX=no
17437 fi
17438 ;;
17439 esac
17440 ;;
cristy73bd4a52010-10-05 11:24:23 +000017441 darwin* | rhapsody*)
17442
17443
17444 archive_cmds_need_lc_CXX=no
17445 hardcode_direct_CXX=no
17446 hardcode_automatic_CXX=yes
17447 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017448 if test "$lt_cv_ld_force_load" = "yes"; then
17449 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\"`'
17450 else
17451 whole_archive_flag_spec_CXX=''
17452 fi
cristy73bd4a52010-10-05 11:24:23 +000017453 link_all_deplibs_CXX=yes
17454 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17455 case $cc_basename in
17456 ifort*) _lt_dar_can_shared=yes ;;
17457 *) _lt_dar_can_shared=$GCC ;;
17458 esac
17459 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017460 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017461 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}"
17462 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17463 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}"
17464 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}"
17465 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17466 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}"
17467 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}"
17468 fi
17469
17470 else
17471 ld_shlibs_CXX=no
17472 fi
17473
17474 ;;
17475
17476 dgux*)
17477 case $cc_basename in
17478 ec++*)
17479 # FIXME: insert proper C++ library support
17480 ld_shlibs_CXX=no
17481 ;;
17482 ghcx*)
17483 # Green Hills C++ Compiler
17484 # FIXME: insert proper C++ library support
17485 ld_shlibs_CXX=no
17486 ;;
17487 *)
17488 # FIXME: insert proper C++ library support
17489 ld_shlibs_CXX=no
17490 ;;
17491 esac
17492 ;;
17493
17494 freebsd[12]*)
17495 # C++ shared libraries reported to be fairly broken before
17496 # switch to ELF
17497 ld_shlibs_CXX=no
17498 ;;
17499
17500 freebsd-elf*)
17501 archive_cmds_need_lc_CXX=no
17502 ;;
17503
17504 freebsd* | dragonfly*)
17505 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17506 # conventions
17507 ld_shlibs_CXX=yes
17508 ;;
17509
17510 gnu*)
17511 ;;
17512
cristy0c60a692010-11-04 01:09:47 +000017513 haiku*)
17514 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17515 link_all_deplibs_CXX=yes
17516 ;;
17517
cristy73bd4a52010-10-05 11:24:23 +000017518 hpux9*)
17519 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17520 hardcode_libdir_separator_CXX=:
17521 export_dynamic_flag_spec_CXX='${wl}-E'
17522 hardcode_direct_CXX=yes
17523 hardcode_minus_L_CXX=yes # Not in the search PATH,
17524 # but as the default
17525 # location of the library.
17526
17527 case $cc_basename in
17528 CC*)
17529 # FIXME: insert proper C++ library support
17530 ld_shlibs_CXX=no
17531 ;;
17532 aCC*)
17533 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'
17534 # Commands to make compiler produce verbose output that lists
17535 # what "hidden" libraries, object files and flags are used when
17536 # linking a shared library.
17537 #
17538 # There doesn't appear to be a way to prevent this compiler from
17539 # explicitly linking system object files so we need to strip them
17540 # from the output so that they don't get included in the library
17541 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017542 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 +000017543 ;;
17544 *)
17545 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017546 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 +000017547 else
17548 # FIXME: insert proper C++ library support
17549 ld_shlibs_CXX=no
17550 fi
17551 ;;
17552 esac
17553 ;;
17554
17555 hpux10*|hpux11*)
17556 if test $with_gnu_ld = no; then
17557 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17558 hardcode_libdir_separator_CXX=:
17559
17560 case $host_cpu in
17561 hppa*64*|ia64*)
17562 ;;
17563 *)
17564 export_dynamic_flag_spec_CXX='${wl}-E'
17565 ;;
17566 esac
17567 fi
17568 case $host_cpu in
17569 hppa*64*|ia64*)
17570 hardcode_direct_CXX=no
17571 hardcode_shlibpath_var_CXX=no
17572 ;;
17573 *)
17574 hardcode_direct_CXX=yes
17575 hardcode_direct_absolute_CXX=yes
17576 hardcode_minus_L_CXX=yes # Not in the search PATH,
17577 # but as the default
17578 # location of the library.
17579 ;;
17580 esac
17581
17582 case $cc_basename in
17583 CC*)
17584 # FIXME: insert proper C++ library support
17585 ld_shlibs_CXX=no
17586 ;;
17587 aCC*)
17588 case $host_cpu in
17589 hppa*64*)
17590 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17591 ;;
17592 ia64*)
17593 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17594 ;;
17595 *)
17596 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17597 ;;
17598 esac
17599 # Commands to make compiler produce verbose output that lists
17600 # what "hidden" libraries, object files and flags are used when
17601 # linking a shared library.
17602 #
17603 # There doesn't appear to be a way to prevent this compiler from
17604 # explicitly linking system object files so we need to strip them
17605 # from the output so that they don't get included in the library
17606 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017607 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 +000017608 ;;
17609 *)
17610 if test "$GXX" = yes; then
17611 if test $with_gnu_ld = no; then
17612 case $host_cpu in
17613 hppa*64*)
17614 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17615 ;;
17616 ia64*)
cristyda16f162011-02-19 23:52:17 +000017617 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 +000017618 ;;
17619 *)
cristyda16f162011-02-19 23:52:17 +000017620 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 +000017621 ;;
17622 esac
17623 fi
17624 else
17625 # FIXME: insert proper C++ library support
17626 ld_shlibs_CXX=no
17627 fi
17628 ;;
17629 esac
17630 ;;
17631
17632 interix[3-9]*)
17633 hardcode_direct_CXX=no
17634 hardcode_shlibpath_var_CXX=no
17635 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17636 export_dynamic_flag_spec_CXX='${wl}-E'
17637 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17638 # Instead, shared libraries are loaded at an image base (0x10000000 by
17639 # default) and relocated if they conflict, which is a slow very memory
17640 # consuming and fragmenting process. To avoid this, we pick a random,
17641 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17642 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17643 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'
17644 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'
17645 ;;
17646 irix5* | irix6*)
17647 case $cc_basename in
17648 CC*)
17649 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017650 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 +000017651
17652 # Archives containing C++ object files must be created using
17653 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17654 # necessary to make sure instantiated templates are included
17655 # in the archive.
17656 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17657 ;;
17658 *)
17659 if test "$GXX" = yes; then
17660 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017661 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 +000017662 else
cristyda16f162011-02-19 23:52:17 +000017663 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 +000017664 fi
17665 fi
17666 link_all_deplibs_CXX=yes
17667 ;;
17668 esac
17669 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17670 hardcode_libdir_separator_CXX=:
17671 inherit_rpath_CXX=yes
17672 ;;
17673
cristy0c60a692010-11-04 01:09:47 +000017674 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017675 case $cc_basename in
17676 KCC*)
17677 # Kuck and Associates, Inc. (KAI) C++ Compiler
17678
17679 # KCC will only create a shared library if the output file
17680 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17681 # to its proper name (with version) after linking.
17682 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'
17683 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'
17684 # Commands to make compiler produce verbose output that lists
17685 # what "hidden" libraries, object files and flags are used when
17686 # linking a shared library.
17687 #
17688 # There doesn't appear to be a way to prevent this compiler from
17689 # explicitly linking system object files so we need to strip them
17690 # from the output so that they don't get included in the library
17691 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017692 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 +000017693
17694 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17695 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17696
17697 # Archives containing C++ object files must be created using
17698 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17699 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17700 ;;
17701 icpc* | ecpc* )
17702 # Intel C++
17703 with_gnu_ld=yes
17704 # version 8.0 and above of icpc choke on multiply defined symbols
17705 # if we add $predep_objects and $postdep_objects, however 7.1 and
17706 # earlier do not add the objects themselves.
17707 case `$CC -V 2>&1` in
17708 *"Version 7."*)
17709 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17710 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'
17711 ;;
17712 *) # Version 8.0 or newer
17713 tmp_idyn=
17714 case $host_cpu in
17715 ia64*) tmp_idyn=' -i_dynamic';;
17716 esac
17717 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17718 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'
17719 ;;
17720 esac
17721 archive_cmds_need_lc_CXX=no
17722 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17723 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17724 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17725 ;;
17726 pgCC* | pgcpp*)
17727 # Portland Group C++ compiler
17728 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017729 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017730 prelink_cmds_CXX='tpldir=Template.dir~
17731 rm -rf $tpldir~
17732 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017733 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017734 old_archive_cmds_CXX='tpldir=Template.dir~
17735 rm -rf $tpldir~
17736 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017737 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017738 $RANLIB $oldlib'
17739 archive_cmds_CXX='tpldir=Template.dir~
17740 rm -rf $tpldir~
17741 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017742 $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 +000017743 archive_expsym_cmds_CXX='tpldir=Template.dir~
17744 rm -rf $tpldir~
17745 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017746 $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 +000017747 ;;
cristy0c60a692010-11-04 01:09:47 +000017748 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017749 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17750 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'
17751 ;;
17752 esac
17753
17754 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17755 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017756 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 +000017757 ;;
17758 cxx*)
17759 # Compaq C++
17760 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17761 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'
17762
17763 runpath_var=LD_RUN_PATH
17764 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17765 hardcode_libdir_separator_CXX=:
17766
17767 # Commands to make compiler produce verbose output that lists
17768 # what "hidden" libraries, object files and flags are used when
17769 # linking a shared library.
17770 #
17771 # There doesn't appear to be a way to prevent this compiler from
17772 # explicitly linking system object files so we need to strip them
17773 # from the output so that they don't get included in the library
17774 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017775 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 +000017776 ;;
cristy0c60a692010-11-04 01:09:47 +000017777 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017778 # IBM XL 8.0 on PPC, with GNU ld
17779 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17780 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17781 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17782 if test "x$supports_anon_versioning" = xyes; then
17783 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17784 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17785 echo "local: *; };" >> $output_objdir/$libname.ver~
17786 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17787 fi
17788 ;;
17789 *)
17790 case `$CC -V 2>&1 | sed 5q` in
17791 *Sun\ C*)
17792 # Sun C++ 5.9
17793 no_undefined_flag_CXX=' -zdefs'
17794 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17795 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'
17796 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017797 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 +000017798 compiler_needs_object_CXX=yes
17799
17800 # Not sure whether something based on
17801 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17802 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017803 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017804
17805 # Archives containing C++ object files must be created using
17806 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17807 # necessary to make sure instantiated templates are included
17808 # in the archive.
17809 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17810 ;;
17811 esac
17812 ;;
17813 esac
17814 ;;
17815
17816 lynxos*)
17817 # FIXME: insert proper C++ library support
17818 ld_shlibs_CXX=no
17819 ;;
17820
17821 m88k*)
17822 # FIXME: insert proper C++ library support
17823 ld_shlibs_CXX=no
17824 ;;
17825
17826 mvs*)
17827 case $cc_basename in
17828 cxx*)
17829 # FIXME: insert proper C++ library support
17830 ld_shlibs_CXX=no
17831 ;;
17832 *)
17833 # FIXME: insert proper C++ library support
17834 ld_shlibs_CXX=no
17835 ;;
17836 esac
17837 ;;
17838
17839 netbsd*)
17840 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17841 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17842 wlarc=
17843 hardcode_libdir_flag_spec_CXX='-R$libdir'
17844 hardcode_direct_CXX=yes
17845 hardcode_shlibpath_var_CXX=no
17846 fi
17847 # Workaround some broken pre-1.5 toolchains
17848 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17849 ;;
17850
17851 *nto* | *qnx*)
17852 ld_shlibs_CXX=yes
17853 ;;
17854
17855 openbsd2*)
17856 # C++ shared libraries are fairly broken
17857 ld_shlibs_CXX=no
17858 ;;
17859
17860 openbsd*)
17861 if test -f /usr/libexec/ld.so; then
17862 hardcode_direct_CXX=yes
17863 hardcode_shlibpath_var_CXX=no
17864 hardcode_direct_absolute_CXX=yes
17865 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17866 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17867 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17868 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17869 export_dynamic_flag_spec_CXX='${wl}-E'
17870 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17871 fi
cristy0c60a692010-11-04 01:09:47 +000017872 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017873 else
17874 ld_shlibs_CXX=no
17875 fi
17876 ;;
17877
17878 osf3* | osf4* | osf5*)
17879 case $cc_basename in
17880 KCC*)
17881 # Kuck and Associates, Inc. (KAI) C++ Compiler
17882
17883 # KCC will only create a shared library if the output file
17884 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17885 # to its proper name (with version) after linking.
17886 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'
17887
17888 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17889 hardcode_libdir_separator_CXX=:
17890
17891 # Archives containing C++ object files must be created using
17892 # the KAI C++ compiler.
17893 case $host in
17894 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17895 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17896 esac
17897 ;;
17898 RCC*)
17899 # Rational C++ 2.4.1
17900 # FIXME: insert proper C++ library support
17901 ld_shlibs_CXX=no
17902 ;;
17903 cxx*)
17904 case $host in
17905 osf3*)
17906 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000017907 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 +000017908 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17909 ;;
17910 *)
17911 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000017912 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 +000017913 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17914 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000017915 $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 +000017916 $RM $lib.exp'
17917 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17918 ;;
17919 esac
17920
17921 hardcode_libdir_separator_CXX=:
17922
17923 # Commands to make compiler produce verbose output that lists
17924 # what "hidden" libraries, object files and flags are used when
17925 # linking a shared library.
17926 #
17927 # There doesn't appear to be a way to prevent this compiler from
17928 # explicitly linking system object files so we need to strip them
17929 # from the output so that they don't get included in the library
17930 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017931 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 +000017932 ;;
17933 *)
17934 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17935 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17936 case $host in
17937 osf3*)
cristy0c60a692010-11-04 01:09:47 +000017938 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 +000017939 ;;
17940 *)
cristyda16f162011-02-19 23:52:17 +000017941 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 +000017942 ;;
17943 esac
17944
17945 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17946 hardcode_libdir_separator_CXX=:
17947
17948 # Commands to make compiler produce verbose output that lists
17949 # what "hidden" libraries, object files and flags are used when
17950 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017951 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017952
17953 else
17954 # FIXME: insert proper C++ library support
17955 ld_shlibs_CXX=no
17956 fi
17957 ;;
17958 esac
17959 ;;
17960
17961 psos*)
17962 # FIXME: insert proper C++ library support
17963 ld_shlibs_CXX=no
17964 ;;
17965
17966 sunos4*)
17967 case $cc_basename in
17968 CC*)
17969 # Sun C++ 4.x
17970 # FIXME: insert proper C++ library support
17971 ld_shlibs_CXX=no
17972 ;;
17973 lcc*)
17974 # Lucid
17975 # FIXME: insert proper C++ library support
17976 ld_shlibs_CXX=no
17977 ;;
17978 *)
17979 # FIXME: insert proper C++ library support
17980 ld_shlibs_CXX=no
17981 ;;
17982 esac
17983 ;;
17984
17985 solaris*)
17986 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000017987 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000017988 # Sun C++ 4.2, 5.x and Centerline C++
17989 archive_cmds_need_lc_CXX=yes
17990 no_undefined_flag_CXX=' -zdefs'
17991 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17992 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17993 $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'
17994
17995 hardcode_libdir_flag_spec_CXX='-R$libdir'
17996 hardcode_shlibpath_var_CXX=no
17997 case $host_os in
17998 solaris2.[0-5] | solaris2.[0-5].*) ;;
17999 *)
18000 # The compiler driver will combine and reorder linker options,
18001 # but understands `-z linker_flag'.
18002 # Supported since Solaris 2.6 (maybe 2.5.1?)
18003 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18004 ;;
18005 esac
18006 link_all_deplibs_CXX=yes
18007
cristy0c60a692010-11-04 01:09:47 +000018008 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018009
18010 # Archives containing C++ object files must be created using
18011 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18012 # necessary to make sure instantiated templates are included
18013 # in the archive.
18014 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18015 ;;
18016 gcx*)
18017 # Green Hills C++ Compiler
18018 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18019
18020 # The C++ compiler must be used to create the archive.
18021 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18022 ;;
18023 *)
18024 # GNU C++ compiler with Solaris linker
18025 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18026 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18027 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018028 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 +000018029 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 +000018030 $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 +000018031
18032 # Commands to make compiler produce verbose output that lists
18033 # what "hidden" libraries, object files and flags are used when
18034 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018035 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018036 else
18037 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18038 # platform.
18039 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18040 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18041 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18042
18043 # Commands to make compiler produce verbose output that lists
18044 # what "hidden" libraries, object files and flags are used when
18045 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018046 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018047 fi
18048
18049 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18050 case $host_os in
18051 solaris2.[0-5] | solaris2.[0-5].*) ;;
18052 *)
18053 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18054 ;;
18055 esac
18056 fi
18057 ;;
18058 esac
18059 ;;
18060
18061 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18062 no_undefined_flag_CXX='${wl}-z,text'
18063 archive_cmds_need_lc_CXX=no
18064 hardcode_shlibpath_var_CXX=no
18065 runpath_var='LD_RUN_PATH'
18066
18067 case $cc_basename in
18068 CC*)
18069 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18070 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18071 ;;
18072 *)
18073 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18074 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18075 ;;
18076 esac
18077 ;;
18078
18079 sysv5* | sco3.2v5* | sco5v6*)
18080 # Note: We can NOT use -z defs as we might desire, because we do not
18081 # link with -lc, and that would cause any symbols used from libc to
18082 # always be unresolved, which means just about no library would
18083 # ever link correctly. If we're not using GNU ld we use -z text
18084 # though, which does catch some bad symbols but isn't as heavy-handed
18085 # as -z defs.
18086 no_undefined_flag_CXX='${wl}-z,text'
18087 allow_undefined_flag_CXX='${wl}-z,nodefs'
18088 archive_cmds_need_lc_CXX=no
18089 hardcode_shlibpath_var_CXX=no
18090 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18091 hardcode_libdir_separator_CXX=':'
18092 link_all_deplibs_CXX=yes
18093 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18094 runpath_var='LD_RUN_PATH'
18095
18096 case $cc_basename in
18097 CC*)
18098 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18099 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 +000018100 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18101 '"$old_archive_cmds_CXX"
18102 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18103 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018104 ;;
18105 *)
18106 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18107 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18108 ;;
18109 esac
18110 ;;
18111
18112 tandem*)
18113 case $cc_basename in
18114 NCC*)
18115 # NonStop-UX NCC 3.20
18116 # FIXME: insert proper C++ library support
18117 ld_shlibs_CXX=no
18118 ;;
18119 *)
18120 # FIXME: insert proper C++ library support
18121 ld_shlibs_CXX=no
18122 ;;
18123 esac
18124 ;;
18125
18126 vxworks*)
18127 # FIXME: insert proper C++ library support
18128 ld_shlibs_CXX=no
18129 ;;
18130
18131 *)
18132 # FIXME: insert proper C++ library support
18133 ld_shlibs_CXX=no
18134 ;;
18135 esac
18136
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18138$as_echo "$ld_shlibs_CXX" >&6; }
18139 test "$ld_shlibs_CXX" = no && can_build_shared=no
18140
18141 GCC_CXX="$GXX"
18142 LD_CXX="$LD"
18143
18144 ## CAVEAT EMPTOR:
18145 ## There is no encapsulation within the following macros, do not change
18146 ## the running order or otherwise move them around unless you know exactly
18147 ## what you are doing...
18148 # Dependencies to place before and after the object being linked:
18149predep_objects_CXX=
18150postdep_objects_CXX=
18151predeps_CXX=
18152postdeps_CXX=
18153compiler_lib_search_path_CXX=
18154
18155cat > conftest.$ac_ext <<_LT_EOF
18156class Foo
18157{
18158public:
18159 Foo (void) { a = 0; }
18160private:
18161 int a;
18162};
18163_LT_EOF
18164
cristyda16f162011-02-19 23:52:17 +000018165
18166_lt_libdeps_save_CFLAGS=$CFLAGS
18167case "$CC $CFLAGS " in #(
18168*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18169*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18170esac
18171
cristy73bd4a52010-10-05 11:24:23 +000018172if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18173 (eval $ac_compile) 2>&5
18174 ac_status=$?
18175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18176 test $ac_status = 0; }; then
18177 # Parse the compiler output and extract the necessary
18178 # objects, libraries and library flags.
18179
18180 # Sentinel used to keep track of whether or not we are before
18181 # the conftest object file.
18182 pre_test_object_deps_done=no
18183
18184 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018185 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018186
18187 -L* | -R* | -l*)
18188 # Some compilers place space between "-{L,R}" and the path.
18189 # Remove the space.
18190 if test $p = "-L" ||
18191 test $p = "-R"; then
18192 prev=$p
18193 continue
cristy73bd4a52010-10-05 11:24:23 +000018194 fi
18195
cristyda16f162011-02-19 23:52:17 +000018196 # Expand the sysroot to ease extracting the directories later.
18197 if test -z "$prev"; then
18198 case $p in
18199 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18200 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18201 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18202 esac
18203 fi
18204 case $p in
18205 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18206 esac
cristy73bd4a52010-10-05 11:24:23 +000018207 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018208 case ${prev} in
18209 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018210 # Internal compiler library paths should come after those
18211 # provided the user. The postdeps already come after the
18212 # user supplied libs so there is no need to process them.
18213 if test -z "$compiler_lib_search_path_CXX"; then
18214 compiler_lib_search_path_CXX="${prev}${p}"
18215 else
18216 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18217 fi
18218 ;;
18219 # The "-l" case would never come before the object being
18220 # linked, so don't bother handling this case.
18221 esac
18222 else
18223 if test -z "$postdeps_CXX"; then
18224 postdeps_CXX="${prev}${p}"
18225 else
18226 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18227 fi
18228 fi
cristyda16f162011-02-19 23:52:17 +000018229 prev=
cristy73bd4a52010-10-05 11:24:23 +000018230 ;;
18231
cristyda16f162011-02-19 23:52:17 +000018232 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018233 *.$objext)
18234 # This assumes that the test object file only shows up
18235 # once in the compiler output.
18236 if test "$p" = "conftest.$objext"; then
18237 pre_test_object_deps_done=yes
18238 continue
18239 fi
18240
18241 if test "$pre_test_object_deps_done" = no; then
18242 if test -z "$predep_objects_CXX"; then
18243 predep_objects_CXX="$p"
18244 else
18245 predep_objects_CXX="$predep_objects_CXX $p"
18246 fi
18247 else
18248 if test -z "$postdep_objects_CXX"; then
18249 postdep_objects_CXX="$p"
18250 else
18251 postdep_objects_CXX="$postdep_objects_CXX $p"
18252 fi
18253 fi
18254 ;;
18255
18256 *) ;; # Ignore the rest.
18257
18258 esac
18259 done
18260
18261 # Clean up.
18262 rm -f a.out a.exe
18263else
18264 echo "libtool.m4: error: problem compiling CXX test program"
18265fi
18266
18267$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018268CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018269
18270# PORTME: override above test on systems where it is broken
18271case $host_os in
18272interix[3-9]*)
18273 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18274 # hack all around it, let's just trust "g++" to DTRT.
18275 predep_objects_CXX=
18276 postdep_objects_CXX=
18277 postdeps_CXX=
18278 ;;
18279
18280linux*)
18281 case `$CC -V 2>&1 | sed 5q` in
18282 *Sun\ C*)
18283 # Sun C++ 5.9
18284
18285 # The more standards-conforming stlport4 library is
18286 # incompatible with the Cstd library. Avoid specifying
18287 # it if it's in CXXFLAGS. Ignore libCrun as
18288 # -library=stlport4 depends on it.
18289 case " $CXX $CXXFLAGS " in
18290 *" -library=stlport4 "*)
18291 solaris_use_stlport4=yes
18292 ;;
18293 esac
18294
18295 if test "$solaris_use_stlport4" != yes; then
18296 postdeps_CXX='-library=Cstd -library=Crun'
18297 fi
18298 ;;
18299 esac
18300 ;;
18301
18302solaris*)
18303 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018304 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018305 # The more standards-conforming stlport4 library is
18306 # incompatible with the Cstd library. Avoid specifying
18307 # it if it's in CXXFLAGS. Ignore libCrun as
18308 # -library=stlport4 depends on it.
18309 case " $CXX $CXXFLAGS " in
18310 *" -library=stlport4 "*)
18311 solaris_use_stlport4=yes
18312 ;;
18313 esac
18314
18315 # Adding this requires a known-good setup of shared libraries for
18316 # Sun compiler versions before 5.6, else PIC objects from an old
18317 # archive will be linked into the output, leading to subtle bugs.
18318 if test "$solaris_use_stlport4" != yes; then
18319 postdeps_CXX='-library=Cstd -library=Crun'
18320 fi
18321 ;;
18322 esac
18323 ;;
18324esac
18325
18326
18327case " $postdeps_CXX " in
18328*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18329esac
18330 compiler_lib_search_dirs_CXX=
18331if test -n "${compiler_lib_search_path_CXX}"; then
18332 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18333fi
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365 lt_prog_compiler_wl_CXX=
18366lt_prog_compiler_pic_CXX=
18367lt_prog_compiler_static_CXX=
18368
cristy73bd4a52010-10-05 11:24:23 +000018369
18370 # C++ specific cases for pic, static, wl, etc.
18371 if test "$GXX" = yes; then
18372 lt_prog_compiler_wl_CXX='-Wl,'
18373 lt_prog_compiler_static_CXX='-static'
18374
18375 case $host_os in
18376 aix*)
18377 # All AIX code is PIC.
18378 if test "$host_cpu" = ia64; then
18379 # AIX 5 now supports IA64 processor
18380 lt_prog_compiler_static_CXX='-Bstatic'
18381 fi
18382 ;;
18383
18384 amigaos*)
18385 case $host_cpu in
18386 powerpc)
18387 # see comment about AmigaOS4 .so support
18388 lt_prog_compiler_pic_CXX='-fPIC'
18389 ;;
18390 m68k)
18391 # FIXME: we need at least 68020 code to build shared libraries, but
18392 # adding the `-m68020' flag to GCC prevents building anything better,
18393 # like `-m68040'.
18394 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18395 ;;
18396 esac
18397 ;;
18398
18399 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18400 # PIC is the default for these OSes.
18401 ;;
18402 mingw* | cygwin* | os2* | pw32* | cegcc*)
18403 # This hack is so that the source file can tell whether it is being
18404 # built for inclusion in a dll (and should export symbols for example).
18405 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18406 # (--disable-auto-import) libraries
18407 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18408 ;;
18409 darwin* | rhapsody*)
18410 # PIC is the default on this platform
18411 # Common symbols not allowed in MH_DYLIB files
18412 lt_prog_compiler_pic_CXX='-fno-common'
18413 ;;
18414 *djgpp*)
18415 # DJGPP does not support shared libraries at all
18416 lt_prog_compiler_pic_CXX=
18417 ;;
cristy0c60a692010-11-04 01:09:47 +000018418 haiku*)
18419 # PIC is the default for Haiku.
18420 # The "-static" flag exists, but is broken.
18421 lt_prog_compiler_static_CXX=
18422 ;;
cristy73bd4a52010-10-05 11:24:23 +000018423 interix[3-9]*)
18424 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18425 # Instead, we relocate shared libraries at runtime.
18426 ;;
18427 sysv4*MP*)
18428 if test -d /usr/nec; then
18429 lt_prog_compiler_pic_CXX=-Kconform_pic
18430 fi
18431 ;;
18432 hpux*)
18433 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18434 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18435 # sets the default TLS model and affects inlining.
18436 case $host_cpu in
18437 hppa*64*)
18438 ;;
18439 *)
18440 lt_prog_compiler_pic_CXX='-fPIC'
18441 ;;
18442 esac
18443 ;;
18444 *qnx* | *nto*)
18445 # QNX uses GNU C++, but need to define -shared option too, otherwise
18446 # it will coredump.
18447 lt_prog_compiler_pic_CXX='-fPIC -shared'
18448 ;;
18449 *)
18450 lt_prog_compiler_pic_CXX='-fPIC'
18451 ;;
18452 esac
18453 else
18454 case $host_os in
18455 aix[4-9]*)
18456 # All AIX code is PIC.
18457 if test "$host_cpu" = ia64; then
18458 # AIX 5 now supports IA64 processor
18459 lt_prog_compiler_static_CXX='-Bstatic'
18460 else
18461 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18462 fi
18463 ;;
18464 chorus*)
18465 case $cc_basename in
18466 cxch68*)
18467 # Green Hills C++ Compiler
18468 # _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"
18469 ;;
18470 esac
18471 ;;
cristyda16f162011-02-19 23:52:17 +000018472 mingw* | cygwin* | os2* | pw32* | cegcc*)
18473 # This hack is so that the source file can tell whether it is being
18474 # built for inclusion in a dll (and should export symbols for example).
18475 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18476 ;;
cristy73bd4a52010-10-05 11:24:23 +000018477 dgux*)
18478 case $cc_basename in
18479 ec++*)
18480 lt_prog_compiler_pic_CXX='-KPIC'
18481 ;;
18482 ghcx*)
18483 # Green Hills C++ Compiler
18484 lt_prog_compiler_pic_CXX='-pic'
18485 ;;
18486 *)
18487 ;;
18488 esac
18489 ;;
18490 freebsd* | dragonfly*)
18491 # FreeBSD uses GNU C++
18492 ;;
18493 hpux9* | hpux10* | hpux11*)
18494 case $cc_basename in
18495 CC*)
18496 lt_prog_compiler_wl_CXX='-Wl,'
18497 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18498 if test "$host_cpu" != ia64; then
18499 lt_prog_compiler_pic_CXX='+Z'
18500 fi
18501 ;;
18502 aCC*)
18503 lt_prog_compiler_wl_CXX='-Wl,'
18504 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18505 case $host_cpu in
18506 hppa*64*|ia64*)
18507 # +Z the default
18508 ;;
18509 *)
18510 lt_prog_compiler_pic_CXX='+Z'
18511 ;;
18512 esac
18513 ;;
18514 *)
18515 ;;
18516 esac
18517 ;;
18518 interix*)
18519 # This is c89, which is MS Visual C++ (no shared libs)
18520 # Anyone wants to do a port?
18521 ;;
18522 irix5* | irix6* | nonstopux*)
18523 case $cc_basename in
18524 CC*)
18525 lt_prog_compiler_wl_CXX='-Wl,'
18526 lt_prog_compiler_static_CXX='-non_shared'
18527 # CC pic flag -KPIC is the default.
18528 ;;
18529 *)
18530 ;;
18531 esac
18532 ;;
cristy0c60a692010-11-04 01:09:47 +000018533 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018534 case $cc_basename in
18535 KCC*)
18536 # KAI C++ Compiler
18537 lt_prog_compiler_wl_CXX='--backend -Wl,'
18538 lt_prog_compiler_pic_CXX='-fPIC'
18539 ;;
18540 ecpc* )
18541 # old Intel C++ for x86_64 which still supported -KPIC.
18542 lt_prog_compiler_wl_CXX='-Wl,'
18543 lt_prog_compiler_pic_CXX='-KPIC'
18544 lt_prog_compiler_static_CXX='-static'
18545 ;;
18546 icpc* )
18547 # Intel C++, used to be incompatible with GCC.
18548 # ICC 10 doesn't accept -KPIC any more.
18549 lt_prog_compiler_wl_CXX='-Wl,'
18550 lt_prog_compiler_pic_CXX='-fPIC'
18551 lt_prog_compiler_static_CXX='-static'
18552 ;;
18553 pgCC* | pgcpp*)
18554 # Portland Group C++ compiler
18555 lt_prog_compiler_wl_CXX='-Wl,'
18556 lt_prog_compiler_pic_CXX='-fpic'
18557 lt_prog_compiler_static_CXX='-Bstatic'
18558 ;;
18559 cxx*)
18560 # Compaq C++
18561 # Make sure the PIC flag is empty. It appears that all Alpha
18562 # Linux and Compaq Tru64 Unix objects are PIC.
18563 lt_prog_compiler_pic_CXX=
18564 lt_prog_compiler_static_CXX='-non_shared'
18565 ;;
cristy0c60a692010-11-04 01:09:47 +000018566 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18567 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018568 lt_prog_compiler_wl_CXX='-Wl,'
18569 lt_prog_compiler_pic_CXX='-qpic'
18570 lt_prog_compiler_static_CXX='-qstaticlink'
18571 ;;
18572 *)
18573 case `$CC -V 2>&1 | sed 5q` in
18574 *Sun\ C*)
18575 # Sun C++ 5.9
18576 lt_prog_compiler_pic_CXX='-KPIC'
18577 lt_prog_compiler_static_CXX='-Bstatic'
18578 lt_prog_compiler_wl_CXX='-Qoption ld '
18579 ;;
18580 esac
18581 ;;
18582 esac
18583 ;;
18584 lynxos*)
18585 ;;
18586 m88k*)
18587 ;;
18588 mvs*)
18589 case $cc_basename in
18590 cxx*)
18591 lt_prog_compiler_pic_CXX='-W c,exportall'
18592 ;;
18593 *)
18594 ;;
18595 esac
18596 ;;
18597 netbsd*)
18598 ;;
18599 *qnx* | *nto*)
18600 # QNX uses GNU C++, but need to define -shared option too, otherwise
18601 # it will coredump.
18602 lt_prog_compiler_pic_CXX='-fPIC -shared'
18603 ;;
18604 osf3* | osf4* | osf5*)
18605 case $cc_basename in
18606 KCC*)
18607 lt_prog_compiler_wl_CXX='--backend -Wl,'
18608 ;;
18609 RCC*)
18610 # Rational C++ 2.4.1
18611 lt_prog_compiler_pic_CXX='-pic'
18612 ;;
18613 cxx*)
18614 # Digital/Compaq C++
18615 lt_prog_compiler_wl_CXX='-Wl,'
18616 # Make sure the PIC flag is empty. It appears that all Alpha
18617 # Linux and Compaq Tru64 Unix objects are PIC.
18618 lt_prog_compiler_pic_CXX=
18619 lt_prog_compiler_static_CXX='-non_shared'
18620 ;;
18621 *)
18622 ;;
18623 esac
18624 ;;
18625 psos*)
18626 ;;
18627 solaris*)
18628 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018629 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018630 # Sun C++ 4.2, 5.x and Centerline C++
18631 lt_prog_compiler_pic_CXX='-KPIC'
18632 lt_prog_compiler_static_CXX='-Bstatic'
18633 lt_prog_compiler_wl_CXX='-Qoption ld '
18634 ;;
18635 gcx*)
18636 # Green Hills C++ Compiler
18637 lt_prog_compiler_pic_CXX='-PIC'
18638 ;;
18639 *)
18640 ;;
18641 esac
18642 ;;
18643 sunos4*)
18644 case $cc_basename in
18645 CC*)
18646 # Sun C++ 4.x
18647 lt_prog_compiler_pic_CXX='-pic'
18648 lt_prog_compiler_static_CXX='-Bstatic'
18649 ;;
18650 lcc*)
18651 # Lucid
18652 lt_prog_compiler_pic_CXX='-pic'
18653 ;;
18654 *)
18655 ;;
18656 esac
18657 ;;
18658 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18659 case $cc_basename in
18660 CC*)
18661 lt_prog_compiler_wl_CXX='-Wl,'
18662 lt_prog_compiler_pic_CXX='-KPIC'
18663 lt_prog_compiler_static_CXX='-Bstatic'
18664 ;;
18665 esac
18666 ;;
18667 tandem*)
18668 case $cc_basename in
18669 NCC*)
18670 # NonStop-UX NCC 3.20
18671 lt_prog_compiler_pic_CXX='-KPIC'
18672 ;;
18673 *)
18674 ;;
18675 esac
18676 ;;
18677 vxworks*)
18678 ;;
18679 *)
18680 lt_prog_compiler_can_build_shared_CXX=no
18681 ;;
18682 esac
18683 fi
18684
18685case $host_os in
18686 # For platforms which do not support PIC, -DPIC is meaningless:
18687 *djgpp*)
18688 lt_prog_compiler_pic_CXX=
18689 ;;
18690 *)
18691 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18692 ;;
18693esac
cristy73bd4a52010-10-05 11:24:23 +000018694
cristyda16f162011-02-19 23:52:17 +000018695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18696$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18697if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18698 $as_echo_n "(cached) " >&6
18699else
18700 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18701fi
18702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18703$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18704lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018705
18706#
18707# Check to make sure the PIC flag actually works.
18708#
18709if test -n "$lt_prog_compiler_pic_CXX"; then
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18711$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018712if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018713 $as_echo_n "(cached) " >&6
18714else
18715 lt_cv_prog_compiler_pic_works_CXX=no
18716 ac_outfile=conftest.$ac_objext
18717 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18718 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18719 # Insert the option either (1) after the last *FLAGS variable, or
18720 # (2) before a word containing "conftest.", or (3) at the end.
18721 # Note that $ac_compile itself does not contain backslashes and begins
18722 # with a dollar sign (not a hyphen), so the echo should work correctly.
18723 # The option is referenced via a variable to avoid confusing sed.
18724 lt_compile=`echo "$ac_compile" | $SED \
18725 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18727 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018728 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018729 (eval "$lt_compile" 2>conftest.err)
18730 ac_status=$?
18731 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018733 if (exit $ac_status) && test -s "$ac_outfile"; then
18734 # The compiler can only warn and ignore the option if not recognized
18735 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018736 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018737 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18738 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18739 lt_cv_prog_compiler_pic_works_CXX=yes
18740 fi
18741 fi
18742 $RM conftest*
18743
18744fi
18745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18746$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18747
18748if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18749 case $lt_prog_compiler_pic_CXX in
18750 "" | " "*) ;;
18751 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18752 esac
18753else
18754 lt_prog_compiler_pic_CXX=
18755 lt_prog_compiler_can_build_shared_CXX=no
18756fi
18757
18758fi
18759
18760
18761
cristyda16f162011-02-19 23:52:17 +000018762
18763
cristy73bd4a52010-10-05 11:24:23 +000018764#
18765# Check to make sure the static flag actually works.
18766#
18767wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18769$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018770if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018771 $as_echo_n "(cached) " >&6
18772else
18773 lt_cv_prog_compiler_static_works_CXX=no
18774 save_LDFLAGS="$LDFLAGS"
18775 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18776 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18777 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18778 # The linker can only warn and ignore the option if not recognized
18779 # So say no if there are warnings
18780 if test -s conftest.err; then
18781 # Append any errors to the config.log.
18782 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018783 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018784 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18785 if diff conftest.exp conftest.er2 >/dev/null; then
18786 lt_cv_prog_compiler_static_works_CXX=yes
18787 fi
18788 else
18789 lt_cv_prog_compiler_static_works_CXX=yes
18790 fi
18791 fi
18792 $RM -r conftest*
18793 LDFLAGS="$save_LDFLAGS"
18794
18795fi
18796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18797$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18798
18799if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18800 :
18801else
18802 lt_prog_compiler_static_CXX=
18803fi
18804
18805
18806
18807
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18809$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018810if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018811 $as_echo_n "(cached) " >&6
18812else
18813 lt_cv_prog_compiler_c_o_CXX=no
18814 $RM -r conftest 2>/dev/null
18815 mkdir conftest
18816 cd conftest
18817 mkdir out
18818 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18819
18820 lt_compiler_flag="-o out/conftest2.$ac_objext"
18821 # Insert the option either (1) after the last *FLAGS variable, or
18822 # (2) before a word containing "conftest.", or (3) at the end.
18823 # Note that $ac_compile itself does not contain backslashes and begins
18824 # with a dollar sign (not a hyphen), so the echo should work correctly.
18825 lt_compile=`echo "$ac_compile" | $SED \
18826 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18828 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018829 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018830 (eval "$lt_compile" 2>out/conftest.err)
18831 ac_status=$?
18832 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018834 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18835 then
18836 # The compiler can only warn and ignore the option if not recognized
18837 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018838 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018839 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18840 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18841 lt_cv_prog_compiler_c_o_CXX=yes
18842 fi
18843 fi
18844 chmod u+w . 2>&5
18845 $RM conftest*
18846 # SGI C++ compiler will create directory out/ii_files/ for
18847 # template instantiation
18848 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18849 $RM out/* && rmdir out
18850 cd ..
18851 $RM -r conftest
18852 $RM conftest*
18853
18854fi
18855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18856$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18857
18858
18859
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18861$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018862if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018863 $as_echo_n "(cached) " >&6
18864else
18865 lt_cv_prog_compiler_c_o_CXX=no
18866 $RM -r conftest 2>/dev/null
18867 mkdir conftest
18868 cd conftest
18869 mkdir out
18870 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18871
18872 lt_compiler_flag="-o out/conftest2.$ac_objext"
18873 # Insert the option either (1) after the last *FLAGS variable, or
18874 # (2) before a word containing "conftest.", or (3) at the end.
18875 # Note that $ac_compile itself does not contain backslashes and begins
18876 # with a dollar sign (not a hyphen), so the echo should work correctly.
18877 lt_compile=`echo "$ac_compile" | $SED \
18878 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18879 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18880 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018881 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018882 (eval "$lt_compile" 2>out/conftest.err)
18883 ac_status=$?
18884 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018886 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18887 then
18888 # The compiler can only warn and ignore the option if not recognized
18889 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018890 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018891 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18892 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18893 lt_cv_prog_compiler_c_o_CXX=yes
18894 fi
18895 fi
18896 chmod u+w . 2>&5
18897 $RM conftest*
18898 # SGI C++ compiler will create directory out/ii_files/ for
18899 # template instantiation
18900 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18901 $RM out/* && rmdir out
18902 cd ..
18903 $RM -r conftest
18904 $RM conftest*
18905
18906fi
18907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18908$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18909
18910
18911
18912
18913hard_links="nottested"
18914if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18915 # do not overwrite the value of need_locks provided by the user
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18917$as_echo_n "checking if we can lock with hard links... " >&6; }
18918 hard_links=yes
18919 $RM conftest*
18920 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18921 touch conftest.a
18922 ln conftest.a conftest.b 2>&5 || hard_links=no
18923 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18925$as_echo "$hard_links" >&6; }
18926 if test "$hard_links" = no; then
18927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18928$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18929 need_locks=warn
18930 fi
18931else
18932 need_locks=no
18933fi
18934
18935
18936
18937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18938$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18939
18940 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018941 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000018942 case $host_os in
18943 aix[4-9]*)
18944 # If we're using GNU nm, then we don't want the "-C" option.
18945 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000018946 # Also, AIX nm treats weak defined symbols like other global defined
18947 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000018948 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000018949 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 +000018950 else
18951 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'
18952 fi
18953 ;;
18954 pw32*)
18955 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000018956 ;;
cristy73bd4a52010-10-05 11:24:23 +000018957 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018958 case $cc_basename in
18959 cl*) ;;
18960 *)
18961 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'
18962 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18963 ;;
18964 esac
18965 ;;
cristy73bd4a52010-10-05 11:24:23 +000018966 *)
18967 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018968 ;;
cristy73bd4a52010-10-05 11:24:23 +000018969 esac
cristy73bd4a52010-10-05 11:24:23 +000018970
18971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18972$as_echo "$ld_shlibs_CXX" >&6; }
18973test "$ld_shlibs_CXX" = no && can_build_shared=no
18974
18975with_gnu_ld_CXX=$with_gnu_ld
18976
18977
18978
18979
18980
18981
18982#
18983# Do we need to explicitly link libc?
18984#
18985case "x$archive_cmds_need_lc_CXX" in
18986x|xyes)
18987 # Assume -lc should be added
18988 archive_cmds_need_lc_CXX=yes
18989
18990 if test "$enable_shared" = yes && test "$GCC" = yes; then
18991 case $archive_cmds_CXX in
18992 *'~'*)
18993 # FIXME: we may have to deal with multi-command sequences.
18994 ;;
18995 '$CC '*)
18996 # Test whether the compiler implicitly links with -lc since on some
18997 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18998 # to ld, don't add -lc before -lgcc.
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19000$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019001if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019002 $as_echo_n "(cached) " >&6
19003else
19004 $RM conftest*
19005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019006
cristy0c60a692010-11-04 01:09:47 +000019007 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019008 (eval $ac_compile) 2>&5
19009 ac_status=$?
19010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19011 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019012 soname=conftest
19013 lib=conftest
19014 libobjs=conftest.$ac_objext
19015 deplibs=
19016 wl=$lt_prog_compiler_wl_CXX
19017 pic_flag=$lt_prog_compiler_pic_CXX
19018 compiler_flags=-v
19019 linker_flags=-v
19020 verstring=
19021 output_objdir=.
19022 libname=conftest
19023 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19024 allow_undefined_flag_CXX=
19025 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 +000019026 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19027 ac_status=$?
19028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19029 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019030 then
19031 lt_cv_archive_cmds_need_lc_CXX=no
19032 else
19033 lt_cv_archive_cmds_need_lc_CXX=yes
19034 fi
19035 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19036 else
19037 cat conftest.err 1>&5
19038 fi
19039 $RM conftest*
19040
19041fi
19042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19043$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19044 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019045 ;;
19046 esac
19047 fi
19048 ;;
19049esac
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19115$as_echo_n "checking dynamic linker characteristics... " >&6; }
19116
19117library_names_spec=
19118libname_spec='lib$name'
19119soname_spec=
19120shrext_cmds=".so"
19121postinstall_cmds=
19122postuninstall_cmds=
19123finish_cmds=
19124finish_eval=
19125shlibpath_var=
19126shlibpath_overrides_runpath=unknown
19127version_type=none
19128dynamic_linker="$host_os ld.so"
19129sys_lib_dlsearch_path_spec="/lib /usr/lib"
19130need_lib_prefix=unknown
19131hardcode_into_libs=no
19132
19133# when you set need_version to no, make sure it does not cause -set_version
19134# flags to be left without arguments
19135need_version=unknown
19136
19137case $host_os in
19138aix3*)
19139 version_type=linux
19140 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19141 shlibpath_var=LIBPATH
19142
19143 # AIX 3 has no versioning support, so we append a major version to the name.
19144 soname_spec='${libname}${release}${shared_ext}$major'
19145 ;;
19146
19147aix[4-9]*)
19148 version_type=linux
19149 need_lib_prefix=no
19150 need_version=no
19151 hardcode_into_libs=yes
19152 if test "$host_cpu" = ia64; then
19153 # AIX 5 supports IA64
19154 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19155 shlibpath_var=LD_LIBRARY_PATH
19156 else
19157 # With GCC up to 2.95.x, collect2 would create an import file
19158 # for dependence libraries. The import file would start with
19159 # the line `#! .'. This would cause the generated library to
19160 # depend on `.', always an invalid library. This was fixed in
19161 # development snapshots of GCC prior to 3.0.
19162 case $host_os in
19163 aix4 | aix4.[01] | aix4.[01].*)
19164 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19165 echo ' yes '
19166 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19167 :
19168 else
19169 can_build_shared=no
19170 fi
19171 ;;
19172 esac
19173 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19174 # soname into executable. Probably we can add versioning support to
19175 # collect2, so additional links can be useful in future.
19176 if test "$aix_use_runtimelinking" = yes; then
19177 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19178 # instead of lib<name>.a to let people know that these are not
19179 # typical AIX shared libraries.
19180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19181 else
19182 # We preserve .a as extension for shared libraries through AIX4.2
19183 # and later when we are not doing run time linking.
19184 library_names_spec='${libname}${release}.a $libname.a'
19185 soname_spec='${libname}${release}${shared_ext}$major'
19186 fi
19187 shlibpath_var=LIBPATH
19188 fi
19189 ;;
19190
19191amigaos*)
19192 case $host_cpu in
19193 powerpc)
19194 # Since July 2007 AmigaOS4 officially supports .so libraries.
19195 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19197 ;;
19198 m68k)
19199 library_names_spec='$libname.ixlibrary $libname.a'
19200 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019201 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 +000019202 ;;
19203 esac
19204 ;;
19205
19206beos*)
19207 library_names_spec='${libname}${shared_ext}'
19208 dynamic_linker="$host_os ld.so"
19209 shlibpath_var=LIBRARY_PATH
19210 ;;
19211
19212bsdi[45]*)
19213 version_type=linux
19214 need_version=no
19215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19216 soname_spec='${libname}${release}${shared_ext}$major'
19217 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19218 shlibpath_var=LD_LIBRARY_PATH
19219 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19220 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19221 # the default ld.so.conf also contains /usr/contrib/lib and
19222 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19223 # libtool to hard-code these into programs
19224 ;;
19225
19226cygwin* | mingw* | pw32* | cegcc*)
19227 version_type=windows
19228 shrext_cmds=".dll"
19229 need_version=no
19230 need_lib_prefix=no
19231
cristyda16f162011-02-19 23:52:17 +000019232 case $GCC,$cc_basename in
19233 yes,*)
19234 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019235 library_names_spec='$libname.dll.a'
19236 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19237 postinstall_cmds='base_file=`basename \${file}`~
19238 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19239 dldir=$destdir/`dirname \$dlpath`~
19240 test -d \$dldir || mkdir -p \$dldir~
19241 $install_prog $dir/$dlname \$dldir/$dlname~
19242 chmod a+x \$dldir/$dlname~
19243 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19244 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19245 fi'
19246 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19247 dlpath=$dir/\$dldll~
19248 $RM \$dlpath'
19249 shlibpath_overrides_runpath=yes
19250
19251 case $host_os in
19252 cygwin*)
19253 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19254 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019255
cristy73bd4a52010-10-05 11:24:23 +000019256 ;;
19257 mingw* | cegcc*)
19258 # MinGW DLLs use traditional 'lib' prefix
19259 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019260 ;;
19261 pw32*)
19262 # pw32 DLLs use 'pw' prefix rather than 'lib'
19263 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19264 ;;
19265 esac
cristyda16f162011-02-19 23:52:17 +000019266 dynamic_linker='Win32 ld.exe'
19267 ;;
19268
19269 *,cl*)
19270 # Native MSVC
19271 libname_spec='$name'
19272 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19273 library_names_spec='${libname}.dll.lib'
19274
19275 case $build_os in
19276 mingw*)
19277 sys_lib_search_path_spec=
19278 lt_save_ifs=$IFS
19279 IFS=';'
19280 for lt_path in $LIB
19281 do
19282 IFS=$lt_save_ifs
19283 # Let DOS variable expansion print the short 8.3 style file name.
19284 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19285 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19286 done
19287 IFS=$lt_save_ifs
19288 # Convert to MSYS style.
19289 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19290 ;;
19291 cygwin*)
19292 # Convert to unix form, then to dos form, then back to unix form
19293 # but this time dos style (no spaces!) so that the unix form looks
19294 # like /cygdrive/c/PROGRA~1:/cygdr...
19295 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19296 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19297 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19298 ;;
19299 *)
19300 sys_lib_search_path_spec="$LIB"
19301 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19302 # It is most probably a Windows format PATH.
19303 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19304 else
19305 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19306 fi
19307 # FIXME: find the short name or the path components, as spaces are
19308 # common. (e.g. "Program Files" -> "PROGRA~1")
19309 ;;
19310 esac
19311
19312 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19313 postinstall_cmds='base_file=`basename \${file}`~
19314 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19315 dldir=$destdir/`dirname \$dlpath`~
19316 test -d \$dldir || mkdir -p \$dldir~
19317 $install_prog $dir/$dlname \$dldir/$dlname'
19318 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19319 dlpath=$dir/\$dldll~
19320 $RM \$dlpath'
19321 shlibpath_overrides_runpath=yes
19322 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019323 ;;
19324
19325 *)
cristyda16f162011-02-19 23:52:17 +000019326 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019327 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019328 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019329 ;;
19330 esac
cristy73bd4a52010-10-05 11:24:23 +000019331 # FIXME: first we should search . and the directory the executable is in
19332 shlibpath_var=PATH
19333 ;;
19334
19335darwin* | rhapsody*)
19336 dynamic_linker="$host_os dyld"
19337 version_type=darwin
19338 need_lib_prefix=no
19339 need_version=no
19340 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19341 soname_spec='${libname}${release}${major}$shared_ext'
19342 shlibpath_overrides_runpath=yes
19343 shlibpath_var=DYLD_LIBRARY_PATH
19344 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19345
19346 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19347 ;;
19348
19349dgux*)
19350 version_type=linux
19351 need_lib_prefix=no
19352 need_version=no
19353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19354 soname_spec='${libname}${release}${shared_ext}$major'
19355 shlibpath_var=LD_LIBRARY_PATH
19356 ;;
19357
19358freebsd1*)
19359 dynamic_linker=no
19360 ;;
19361
19362freebsd* | dragonfly*)
19363 # DragonFly does not have aout. When/if they implement a new
19364 # versioning mechanism, adjust this.
19365 if test -x /usr/bin/objformat; then
19366 objformat=`/usr/bin/objformat`
19367 else
19368 case $host_os in
19369 freebsd[123]*) objformat=aout ;;
19370 *) objformat=elf ;;
19371 esac
19372 fi
19373 version_type=freebsd-$objformat
19374 case $version_type in
19375 freebsd-elf*)
19376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19377 need_version=no
19378 need_lib_prefix=no
19379 ;;
19380 freebsd-*)
19381 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19382 need_version=yes
19383 ;;
19384 esac
19385 shlibpath_var=LD_LIBRARY_PATH
19386 case $host_os in
19387 freebsd2*)
19388 shlibpath_overrides_runpath=yes
19389 ;;
19390 freebsd3.[01]* | freebsdelf3.[01]*)
19391 shlibpath_overrides_runpath=yes
19392 hardcode_into_libs=yes
19393 ;;
19394 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19395 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19396 shlibpath_overrides_runpath=no
19397 hardcode_into_libs=yes
19398 ;;
19399 *) # from 4.6 on, and DragonFly
19400 shlibpath_overrides_runpath=yes
19401 hardcode_into_libs=yes
19402 ;;
19403 esac
19404 ;;
19405
19406gnu*)
19407 version_type=linux
19408 need_lib_prefix=no
19409 need_version=no
19410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19411 soname_spec='${libname}${release}${shared_ext}$major'
19412 shlibpath_var=LD_LIBRARY_PATH
19413 hardcode_into_libs=yes
19414 ;;
19415
cristy0c60a692010-11-04 01:09:47 +000019416haiku*)
19417 version_type=linux
19418 need_lib_prefix=no
19419 need_version=no
19420 dynamic_linker="$host_os runtime_loader"
19421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19422 soname_spec='${libname}${release}${shared_ext}$major'
19423 shlibpath_var=LIBRARY_PATH
19424 shlibpath_overrides_runpath=yes
19425 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19426 hardcode_into_libs=yes
19427 ;;
19428
cristy73bd4a52010-10-05 11:24:23 +000019429hpux9* | hpux10* | hpux11*)
19430 # Give a soname corresponding to the major version so that dld.sl refuses to
19431 # link against other versions.
19432 version_type=sunos
19433 need_lib_prefix=no
19434 need_version=no
19435 case $host_cpu in
19436 ia64*)
19437 shrext_cmds='.so'
19438 hardcode_into_libs=yes
19439 dynamic_linker="$host_os dld.so"
19440 shlibpath_var=LD_LIBRARY_PATH
19441 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19443 soname_spec='${libname}${release}${shared_ext}$major'
19444 if test "X$HPUX_IA64_MODE" = X32; then
19445 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19446 else
19447 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19448 fi
19449 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19450 ;;
19451 hppa*64*)
19452 shrext_cmds='.sl'
19453 hardcode_into_libs=yes
19454 dynamic_linker="$host_os dld.sl"
19455 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19456 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19458 soname_spec='${libname}${release}${shared_ext}$major'
19459 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19460 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19461 ;;
19462 *)
19463 shrext_cmds='.sl'
19464 dynamic_linker="$host_os dld.sl"
19465 shlibpath_var=SHLIB_PATH
19466 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19468 soname_spec='${libname}${release}${shared_ext}$major'
19469 ;;
19470 esac
cristy0c60a692010-11-04 01:09:47 +000019471 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019472 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019473 # or fails outright, so override atomically:
19474 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019475 ;;
19476
19477interix[3-9]*)
19478 version_type=linux
19479 need_lib_prefix=no
19480 need_version=no
19481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19482 soname_spec='${libname}${release}${shared_ext}$major'
19483 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19484 shlibpath_var=LD_LIBRARY_PATH
19485 shlibpath_overrides_runpath=no
19486 hardcode_into_libs=yes
19487 ;;
19488
19489irix5* | irix6* | nonstopux*)
19490 case $host_os in
19491 nonstopux*) version_type=nonstopux ;;
19492 *)
19493 if test "$lt_cv_prog_gnu_ld" = yes; then
19494 version_type=linux
19495 else
19496 version_type=irix
19497 fi ;;
19498 esac
19499 need_lib_prefix=no
19500 need_version=no
19501 soname_spec='${libname}${release}${shared_ext}$major'
19502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19503 case $host_os in
19504 irix5* | nonstopux*)
19505 libsuff= shlibsuff=
19506 ;;
19507 *)
19508 case $LD in # libtool.m4 will add one of these switches to LD
19509 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19510 libsuff= shlibsuff= libmagic=32-bit;;
19511 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19512 libsuff=32 shlibsuff=N32 libmagic=N32;;
19513 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19514 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19515 *) libsuff= shlibsuff= libmagic=never-match;;
19516 esac
19517 ;;
19518 esac
19519 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19520 shlibpath_overrides_runpath=no
19521 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19522 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19523 hardcode_into_libs=yes
19524 ;;
19525
19526# No shared lib support for Linux oldld, aout, or coff.
19527linux*oldld* | linux*aout* | linux*coff*)
19528 dynamic_linker=no
19529 ;;
19530
19531# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000019532linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019533 version_type=linux
19534 need_lib_prefix=no
19535 need_version=no
19536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19537 soname_spec='${libname}${release}${shared_ext}$major'
19538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19539 shlibpath_var=LD_LIBRARY_PATH
19540 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019541
cristy73bd4a52010-10-05 11:24:23 +000019542 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019543 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019544 $as_echo_n "(cached) " >&6
19545else
19546 lt_cv_shlibpath_overrides_runpath=no
19547 save_LDFLAGS=$LDFLAGS
19548 save_libdir=$libdir
19549 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19550 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019552/* end confdefs.h. */
19553
19554int
19555main ()
19556{
19557
19558 ;
19559 return 0;
19560}
19561_ACEOF
19562if ac_fn_cxx_try_link "$LINENO"; then :
19563 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019564 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019565fi
19566fi
19567rm -f core conftest.err conftest.$ac_objext \
19568 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019569 LDFLAGS=$save_LDFLAGS
19570 libdir=$save_libdir
19571
19572fi
19573
19574 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019575
19576 # This implies no fast_install, which is unacceptable.
19577 # Some rework will be needed to allow for fast_install
19578 # before this can be enabled.
19579 hardcode_into_libs=yes
19580
19581 # Add ABI-specific directories to the system library path.
19582 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19583
19584 # Append ld.so.conf contents to the search path
19585 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019586 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 +000019587 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019588
cristy73bd4a52010-10-05 11:24:23 +000019589 fi
19590
19591 # We used to test for /lib/ld.so.1 and disable shared libraries on
19592 # powerpc, because MkLinux only supported shared libraries with the
19593 # GNU dynamic linker. Since this was broken with cross compilers,
19594 # most powerpc-linux boxes support dynamic linking these days and
19595 # people can always --disable-shared, the test was removed, and we
19596 # assume the GNU/Linux dynamic linker is in use.
19597 dynamic_linker='GNU/Linux ld.so'
19598 ;;
19599
19600netbsd*)
19601 version_type=sunos
19602 need_lib_prefix=no
19603 need_version=no
19604 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19607 dynamic_linker='NetBSD (a.out) ld.so'
19608 else
19609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19610 soname_spec='${libname}${release}${shared_ext}$major'
19611 dynamic_linker='NetBSD ld.elf_so'
19612 fi
19613 shlibpath_var=LD_LIBRARY_PATH
19614 shlibpath_overrides_runpath=yes
19615 hardcode_into_libs=yes
19616 ;;
19617
19618newsos6)
19619 version_type=linux
19620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19621 shlibpath_var=LD_LIBRARY_PATH
19622 shlibpath_overrides_runpath=yes
19623 ;;
19624
19625*nto* | *qnx*)
19626 version_type=qnx
19627 need_lib_prefix=no
19628 need_version=no
19629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19630 soname_spec='${libname}${release}${shared_ext}$major'
19631 shlibpath_var=LD_LIBRARY_PATH
19632 shlibpath_overrides_runpath=no
19633 hardcode_into_libs=yes
19634 dynamic_linker='ldqnx.so'
19635 ;;
19636
19637openbsd*)
19638 version_type=sunos
19639 sys_lib_dlsearch_path_spec="/usr/lib"
19640 need_lib_prefix=no
19641 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19642 case $host_os in
19643 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19644 *) need_version=no ;;
19645 esac
19646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19648 shlibpath_var=LD_LIBRARY_PATH
19649 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19650 case $host_os in
19651 openbsd2.[89] | openbsd2.[89].*)
19652 shlibpath_overrides_runpath=no
19653 ;;
19654 *)
19655 shlibpath_overrides_runpath=yes
19656 ;;
19657 esac
19658 else
19659 shlibpath_overrides_runpath=yes
19660 fi
19661 ;;
19662
19663os2*)
19664 libname_spec='$name'
19665 shrext_cmds=".dll"
19666 need_lib_prefix=no
19667 library_names_spec='$libname${shared_ext} $libname.a'
19668 dynamic_linker='OS/2 ld.exe'
19669 shlibpath_var=LIBPATH
19670 ;;
19671
19672osf3* | osf4* | osf5*)
19673 version_type=osf
19674 need_lib_prefix=no
19675 need_version=no
19676 soname_spec='${libname}${release}${shared_ext}$major'
19677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19678 shlibpath_var=LD_LIBRARY_PATH
19679 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19680 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19681 ;;
19682
19683rdos*)
19684 dynamic_linker=no
19685 ;;
19686
19687solaris*)
19688 version_type=linux
19689 need_lib_prefix=no
19690 need_version=no
19691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19692 soname_spec='${libname}${release}${shared_ext}$major'
19693 shlibpath_var=LD_LIBRARY_PATH
19694 shlibpath_overrides_runpath=yes
19695 hardcode_into_libs=yes
19696 # ldd complains unless libraries are executable
19697 postinstall_cmds='chmod +x $lib'
19698 ;;
19699
19700sunos4*)
19701 version_type=sunos
19702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19703 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19704 shlibpath_var=LD_LIBRARY_PATH
19705 shlibpath_overrides_runpath=yes
19706 if test "$with_gnu_ld" = yes; then
19707 need_lib_prefix=no
19708 fi
19709 need_version=yes
19710 ;;
19711
19712sysv4 | sysv4.3*)
19713 version_type=linux
19714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19715 soname_spec='${libname}${release}${shared_ext}$major'
19716 shlibpath_var=LD_LIBRARY_PATH
19717 case $host_vendor in
19718 sni)
19719 shlibpath_overrides_runpath=no
19720 need_lib_prefix=no
19721 runpath_var=LD_RUN_PATH
19722 ;;
19723 siemens)
19724 need_lib_prefix=no
19725 ;;
19726 motorola)
19727 need_lib_prefix=no
19728 need_version=no
19729 shlibpath_overrides_runpath=no
19730 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19731 ;;
19732 esac
19733 ;;
19734
19735sysv4*MP*)
19736 if test -d /usr/nec ;then
19737 version_type=linux
19738 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19739 soname_spec='$libname${shared_ext}.$major'
19740 shlibpath_var=LD_LIBRARY_PATH
19741 fi
19742 ;;
19743
19744sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19745 version_type=freebsd-elf
19746 need_lib_prefix=no
19747 need_version=no
19748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19749 soname_spec='${libname}${release}${shared_ext}$major'
19750 shlibpath_var=LD_LIBRARY_PATH
19751 shlibpath_overrides_runpath=yes
19752 hardcode_into_libs=yes
19753 if test "$with_gnu_ld" = yes; then
19754 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19755 else
19756 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19757 case $host_os in
19758 sco3.2v5*)
19759 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19760 ;;
19761 esac
19762 fi
19763 sys_lib_dlsearch_path_spec='/usr/lib'
19764 ;;
19765
19766tpf*)
19767 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19768 version_type=linux
19769 need_lib_prefix=no
19770 need_version=no
19771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19772 shlibpath_var=LD_LIBRARY_PATH
19773 shlibpath_overrides_runpath=no
19774 hardcode_into_libs=yes
19775 ;;
19776
19777uts4*)
19778 version_type=linux
19779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19780 soname_spec='${libname}${release}${shared_ext}$major'
19781 shlibpath_var=LD_LIBRARY_PATH
19782 ;;
19783
19784*)
19785 dynamic_linker=no
19786 ;;
19787esac
19788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19789$as_echo "$dynamic_linker" >&6; }
19790test "$dynamic_linker" = no && can_build_shared=no
19791
19792variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19793if test "$GCC" = yes; then
19794 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19795fi
19796
19797if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19798 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19799fi
19800if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19801 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19802fi
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
cristy0c60a692010-11-04 01:09:47 +000019839
19840
cristy73bd4a52010-10-05 11:24:23 +000019841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19842$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19843hardcode_action_CXX=
19844if test -n "$hardcode_libdir_flag_spec_CXX" ||
19845 test -n "$runpath_var_CXX" ||
19846 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19847
19848 # We can hardcode non-existent directories.
19849 if test "$hardcode_direct_CXX" != no &&
19850 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19851 # have to relink, otherwise we might link with an installed library
19852 # when we should be linking with a yet-to-be-installed one
19853 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19854 test "$hardcode_minus_L_CXX" != no; then
19855 # Linking always hardcodes the temporary library directory.
19856 hardcode_action_CXX=relink
19857 else
19858 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19859 hardcode_action_CXX=immediate
19860 fi
19861else
19862 # We cannot hardcode anything, or else we can only hardcode existing
19863 # directories.
19864 hardcode_action_CXX=unsupported
19865fi
19866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19867$as_echo "$hardcode_action_CXX" >&6; }
19868
19869if test "$hardcode_action_CXX" = relink ||
19870 test "$inherit_rpath_CXX" = yes; then
19871 # Fast installation is not supported
19872 enable_fast_install=no
19873elif test "$shlibpath_overrides_runpath" = yes ||
19874 test "$enable_shared" = no; then
19875 # Fast installation is not necessary
19876 enable_fast_install=needless
19877fi
19878
19879
19880
19881
19882
19883
19884
19885 fi # test -n "$compiler"
19886
19887 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000019888 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019889 LDCXX=$LD
19890 LD=$lt_save_LD
19891 GCC=$lt_save_GCC
19892 with_gnu_ld=$lt_save_with_gnu_ld
19893 lt_cv_path_LDCXX=$lt_cv_path_LD
19894 lt_cv_path_LD=$lt_save_path_LD
19895 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19896 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19897fi # test "$_lt_caught_CXX_error" != yes
19898
19899ac_ext=c
19900ac_cpp='$CPP $CPPFLAGS'
19901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19903ac_compiler_gnu=$ac_cv_c_compiler_gnu
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917 ac_config_commands="$ac_config_commands libtool"
19918
19919
19920
19921
19922# Only expand once:
19923
19924
19925
cristy3ed852e2009-09-05 21:47:34 +000019926
19927
19928# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000019929
19930
19931
19932
19933
19934
19935
cristy73bd4a52010-10-05 11:24:23 +000019936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19937$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019938if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019939 $as_echo_n "(cached) " >&6
19940else
19941
19942module=yes
19943eval libltdl_cv_shlibext=$shrext_cmds
19944
19945fi
19946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19947$as_echo "$libltdl_cv_shlibext" >&6; }
19948if test -n "$libltdl_cv_shlibext"; then
19949
19950cat >>confdefs.h <<_ACEOF
19951#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19952_ACEOF
19953
19954fi
19955
19956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19957$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019958if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019959 $as_echo_n "(cached) " >&6
19960else
19961 lt_cv_module_path_var="$shlibpath_var"
19962fi
19963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19964$as_echo "$lt_cv_module_path_var" >&6; }
19965if test -n "$lt_cv_module_path_var"; then
19966
19967cat >>confdefs.h <<_ACEOF
19968#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19969_ACEOF
19970
19971fi
19972
19973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19974$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019975if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019976 $as_echo_n "(cached) " >&6
19977else
19978 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19979fi
19980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19981$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19982if test -n "$lt_cv_sys_dlsearch_path"; then
19983 sys_dlsearch_path=
19984 for dir in $lt_cv_sys_dlsearch_path; do
19985 if test -z "$sys_dlsearch_path"; then
19986 sys_dlsearch_path="$dir"
19987 else
19988 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19989 fi
19990 done
19991
19992cat >>confdefs.h <<_ACEOF
19993#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19994_ACEOF
19995
19996fi
19997
19998
19999LT_DLLOADERS=
20000
20001
20002ac_ext=c
20003ac_cpp='$CPP $CPPFLAGS'
20004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20006ac_compiler_gnu=$ac_cv_c_compiler_gnu
20007
20008
20009LIBADD_DLOPEN=
20010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20011$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020012if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020013 $as_echo_n "(cached) " >&6
20014else
20015 ac_func_search_save_LIBS=$LIBS
20016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20017/* end confdefs.h. */
20018
20019/* Override any GCC internal prototype to avoid an error.
20020 Use char because int might match the return type of a GCC
20021 builtin and then its argument prototype would still apply. */
20022#ifdef __cplusplus
20023extern "C"
20024#endif
20025char dlopen ();
20026int
20027main ()
20028{
20029return dlopen ();
20030 ;
20031 return 0;
20032}
20033_ACEOF
20034for ac_lib in '' dl; do
20035 if test -z "$ac_lib"; then
20036 ac_res="none required"
20037 else
20038 ac_res=-l$ac_lib
20039 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20040 fi
20041 if ac_fn_c_try_link "$LINENO"; then :
20042 ac_cv_search_dlopen=$ac_res
20043fi
20044rm -f core conftest.err conftest.$ac_objext \
20045 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020046 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020047 break
20048fi
20049done
cristyda16f162011-02-19 23:52:17 +000020050if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020051
20052else
20053 ac_cv_search_dlopen=no
20054fi
20055rm conftest.$ac_ext
20056LIBS=$ac_func_search_save_LIBS
20057fi
20058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20059$as_echo "$ac_cv_search_dlopen" >&6; }
20060ac_res=$ac_cv_search_dlopen
20061if test "$ac_res" != no; then :
20062 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20063
20064$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20065
20066 if test "$ac_cv_search_dlopen" != "none required" ; then
20067 LIBADD_DLOPEN="-ldl"
20068 fi
20069 libltdl_cv_lib_dl_dlopen="yes"
20070 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20071else
20072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20073/* end confdefs.h. */
20074#if HAVE_DLFCN_H
20075# include <dlfcn.h>
20076#endif
20077
20078int
20079main ()
20080{
20081dlopen(0, 0);
20082 ;
20083 return 0;
20084}
20085_ACEOF
20086if ac_fn_c_try_link "$LINENO"; then :
20087
20088$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20089
20090 libltdl_cv_func_dlopen="yes"
20091 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20092else
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20094$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020095if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020096 $as_echo_n "(cached) " >&6
20097else
20098 ac_check_lib_save_LIBS=$LIBS
20099LIBS="-lsvld $LIBS"
20100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20101/* end confdefs.h. */
20102
20103/* Override any GCC internal prototype to avoid an error.
20104 Use char because int might match the return type of a GCC
20105 builtin and then its argument prototype would still apply. */
20106#ifdef __cplusplus
20107extern "C"
20108#endif
20109char dlopen ();
20110int
20111main ()
20112{
20113return dlopen ();
20114 ;
20115 return 0;
20116}
20117_ACEOF
20118if ac_fn_c_try_link "$LINENO"; then :
20119 ac_cv_lib_svld_dlopen=yes
20120else
20121 ac_cv_lib_svld_dlopen=no
20122fi
20123rm -f core conftest.err conftest.$ac_objext \
20124 conftest$ac_exeext conftest.$ac_ext
20125LIBS=$ac_check_lib_save_LIBS
20126fi
20127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20128$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020129if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020130
20131$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20132
20133 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20134 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20135fi
20136
20137fi
20138rm -f core conftest.err conftest.$ac_objext \
20139 conftest$ac_exeext conftest.$ac_ext
20140fi
20141
20142if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20143then
20144 lt_save_LIBS="$LIBS"
20145 LIBS="$LIBS $LIBADD_DLOPEN"
20146 for ac_func in dlerror
20147do :
20148 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020149if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020150 cat >>confdefs.h <<_ACEOF
20151#define HAVE_DLERROR 1
20152_ACEOF
20153
20154fi
20155done
20156
20157 LIBS="$lt_save_LIBS"
20158fi
20159
20160
20161LIBADD_SHL_LOAD=
20162ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020163if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020164
20165$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20166
20167 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20168else
20169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20170$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020171if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020172 $as_echo_n "(cached) " >&6
20173else
20174 ac_check_lib_save_LIBS=$LIBS
20175LIBS="-ldld $LIBS"
20176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20177/* end confdefs.h. */
20178
20179/* Override any GCC internal prototype to avoid an error.
20180 Use char because int might match the return type of a GCC
20181 builtin and then its argument prototype would still apply. */
20182#ifdef __cplusplus
20183extern "C"
20184#endif
20185char shl_load ();
20186int
20187main ()
20188{
20189return shl_load ();
20190 ;
20191 return 0;
20192}
20193_ACEOF
20194if ac_fn_c_try_link "$LINENO"; then :
20195 ac_cv_lib_dld_shl_load=yes
20196else
20197 ac_cv_lib_dld_shl_load=no
20198fi
20199rm -f core conftest.err conftest.$ac_objext \
20200 conftest$ac_exeext conftest.$ac_ext
20201LIBS=$ac_check_lib_save_LIBS
20202fi
20203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20204$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020205if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020206
20207$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20208
20209 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20210 LIBADD_SHL_LOAD="-ldld"
20211fi
20212
20213fi
20214
20215
20216
20217case $host_os in
20218darwin[1567].*)
20219# We only want this for pre-Mac OS X 10.4.
20220 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020221if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020222
20223$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20224
20225 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20226fi
20227
20228 ;;
20229beos*)
20230 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20231 ;;
20232cygwin* | mingw* | os2* | pw32*)
20233 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20234"
cristyda16f162011-02-19 23:52:17 +000020235if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020236 ac_have_decl=1
20237else
20238 ac_have_decl=0
20239fi
20240
20241cat >>confdefs.h <<_ACEOF
20242#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20243_ACEOF
20244
20245 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20246 ;;
20247esac
20248
20249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20250$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020251if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020252 $as_echo_n "(cached) " >&6
20253else
20254 ac_check_lib_save_LIBS=$LIBS
20255LIBS="-ldld $LIBS"
20256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20257/* end confdefs.h. */
20258
20259/* Override any GCC internal prototype to avoid an error.
20260 Use char because int might match the return type of a GCC
20261 builtin and then its argument prototype would still apply. */
20262#ifdef __cplusplus
20263extern "C"
20264#endif
20265char dld_link ();
20266int
20267main ()
20268{
20269return dld_link ();
20270 ;
20271 return 0;
20272}
20273_ACEOF
20274if ac_fn_c_try_link "$LINENO"; then :
20275 ac_cv_lib_dld_dld_link=yes
20276else
20277 ac_cv_lib_dld_dld_link=no
20278fi
20279rm -f core conftest.err conftest.$ac_objext \
20280 conftest$ac_exeext conftest.$ac_ext
20281LIBS=$ac_check_lib_save_LIBS
20282fi
20283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20284$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020285if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020286
20287$as_echo "#define HAVE_DLD 1" >>confdefs.h
20288
20289 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20290fi
20291
20292
20293
20294
20295LT_DLPREOPEN=
20296if test -n "$LT_DLLOADERS"
20297then
20298 for lt_loader in $LT_DLLOADERS; do
20299 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20300 done
20301
20302$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20303
20304fi
20305
20306
20307LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20308
20309
20310ac_ext=c
20311ac_cpp='$CPP $CPPFLAGS'
20312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20314ac_compiler_gnu=$ac_cv_c_compiler_gnu
20315
20316
20317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20318$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020319if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020320 $as_echo_n "(cached) " >&6
20321else
20322 lt_cv_sys_symbol_underscore=no
20323 cat > conftest.$ac_ext <<_LT_EOF
20324void nm_test_func(){}
20325int main(){nm_test_func;return 0;}
20326_LT_EOF
20327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20328 (eval $ac_compile) 2>&5
20329 ac_status=$?
20330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20331 test $ac_status = 0; }; then
20332 # Now try to grab the symbols.
20333 ac_nlist=conftest.nm
20334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20335 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20336 ac_status=$?
20337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20338 test $ac_status = 0; } && test -s "$ac_nlist"; then
20339 # See whether the symbols have a leading underscore.
20340 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20341 lt_cv_sys_symbol_underscore=yes
20342 else
20343 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20344 :
20345 else
20346 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20347 fi
20348 fi
20349 else
20350 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20351 fi
20352 else
20353 echo "configure: failed program was:" >&5
20354 cat conftest.c >&5
20355 fi
20356 rm -rf conftest*
20357
20358fi
20359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20360$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20361 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20362
20363
20364if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20365 if test x"$libltdl_cv_func_dlopen" = xyes ||
20366 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20368$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020369if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020370 $as_echo_n "(cached) " >&6
20371else
20372 libltdl_cv_need_uscore=unknown
20373 save_LIBS="$LIBS"
20374 LIBS="$LIBS $LIBADD_DLOPEN"
20375 if test "$cross_compiling" = yes; then :
20376 libltdl_cv_need_uscore=cross
20377else
20378 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20379 lt_status=$lt_dlunknown
20380 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020381#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020382#include "confdefs.h"
20383
20384#if HAVE_DLFCN_H
20385#include <dlfcn.h>
20386#endif
20387
20388#include <stdio.h>
20389
20390#ifdef RTLD_GLOBAL
20391# define LT_DLGLOBAL RTLD_GLOBAL
20392#else
20393# ifdef DL_GLOBAL
20394# define LT_DLGLOBAL DL_GLOBAL
20395# else
20396# define LT_DLGLOBAL 0
20397# endif
20398#endif
20399
20400/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20401 find out it does not work in some platform. */
20402#ifndef LT_DLLAZY_OR_NOW
20403# ifdef RTLD_LAZY
20404# define LT_DLLAZY_OR_NOW RTLD_LAZY
20405# else
20406# ifdef DL_LAZY
20407# define LT_DLLAZY_OR_NOW DL_LAZY
20408# else
20409# ifdef RTLD_NOW
20410# define LT_DLLAZY_OR_NOW RTLD_NOW
20411# else
20412# ifdef DL_NOW
20413# define LT_DLLAZY_OR_NOW DL_NOW
20414# else
20415# define LT_DLLAZY_OR_NOW 0
20416# endif
20417# endif
20418# endif
20419# endif
20420#endif
20421
cristy0c60a692010-11-04 01:09:47 +000020422/* When -fvisbility=hidden is used, assume the code has been annotated
20423 correspondingly for the symbols needed. */
20424#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020425int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020426#endif
20427
cristyda16f162011-02-19 23:52:17 +000020428int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020429int main ()
20430{
20431 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20432 int status = $lt_dlunknown;
20433
20434 if (self)
20435 {
20436 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020437 else
20438 {
20439 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20440 else puts (dlerror ());
20441 }
cristy73bd4a52010-10-05 11:24:23 +000020442 /* dlclose (self); */
20443 }
20444 else
20445 puts (dlerror ());
20446
20447 return status;
20448}
20449_LT_EOF
20450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20451 (eval $ac_link) 2>&5
20452 ac_status=$?
20453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20454 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20455 (./conftest; exit; ) >&5 2>/dev/null
20456 lt_status=$?
20457 case x$lt_status in
20458 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20459 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20460 x$lt_dlunknown|x*) ;;
20461 esac
20462 else :
20463 # compilation failed
20464
20465 fi
20466fi
20467rm -fr conftest*
20468
20469 LIBS="$save_LIBS"
20470
20471fi
20472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20473$as_echo "$libltdl_cv_need_uscore" >&6; }
20474 fi
20475fi
20476
20477if test x"$libltdl_cv_need_uscore" = xyes; then
20478
20479$as_echo "#define NEED_USCORE 1" >>confdefs.h
20480
20481fi
20482
20483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20484$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020485if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020486 $as_echo_n "(cached) " >&6
20487else
20488 # PORTME does your system automatically load deplibs for dlopen?
20489 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20490 # For now, we just catch OSes we know something about -- in the
20491 # future, we'll try test this programmatically.
20492 lt_cv_sys_dlopen_deplibs=unknown
20493 case $host_os in
20494 aix3*|aix4.1.*|aix4.2.*)
20495 # Unknown whether this is true for these versions of AIX, but
20496 # we want this `case' here to explicitly catch those versions.
20497 lt_cv_sys_dlopen_deplibs=unknown
20498 ;;
20499 aix[4-9]*)
20500 lt_cv_sys_dlopen_deplibs=yes
20501 ;;
20502 amigaos*)
20503 case $host_cpu in
20504 powerpc)
20505 lt_cv_sys_dlopen_deplibs=no
20506 ;;
20507 esac
20508 ;;
20509 darwin*)
20510 # Assuming the user has installed a libdl from somewhere, this is true
20511 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20512 lt_cv_sys_dlopen_deplibs=yes
20513 ;;
20514 freebsd* | dragonfly*)
20515 lt_cv_sys_dlopen_deplibs=yes
20516 ;;
cristy0c60a692010-11-04 01:09:47 +000020517 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020518 # GNU and its variants, using gnu ld.so (Glibc)
20519 lt_cv_sys_dlopen_deplibs=yes
20520 ;;
20521 hpux10*|hpux11*)
20522 lt_cv_sys_dlopen_deplibs=yes
20523 ;;
20524 interix*)
20525 lt_cv_sys_dlopen_deplibs=yes
20526 ;;
20527 irix[12345]*|irix6.[01]*)
20528 # Catch all versions of IRIX before 6.2, and indicate that we don't
20529 # know how it worked for any of those versions.
20530 lt_cv_sys_dlopen_deplibs=unknown
20531 ;;
20532 irix*)
20533 # The case above catches anything before 6.2, and it's known that
20534 # at 6.2 and later dlopen does load deplibs.
20535 lt_cv_sys_dlopen_deplibs=yes
20536 ;;
20537 netbsd*)
20538 lt_cv_sys_dlopen_deplibs=yes
20539 ;;
20540 openbsd*)
20541 lt_cv_sys_dlopen_deplibs=yes
20542 ;;
20543 osf[1234]*)
20544 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20545 # it did *not* use an RPATH in a shared library to find objects the
20546 # library depends on, so we explicitly say `no'.
20547 lt_cv_sys_dlopen_deplibs=no
20548 ;;
20549 osf5.0|osf5.0a|osf5.1)
20550 # dlopen *does* load deplibs and with the right loader patch applied
20551 # it even uses RPATH in a shared library to search for shared objects
20552 # that the library depends on, but there's no easy way to know if that
20553 # patch is installed. Since this is the case, all we can really
20554 # say is unknown -- it depends on the patch being installed. If
20555 # it is, this changes to `yes'. Without it, it would be `no'.
20556 lt_cv_sys_dlopen_deplibs=unknown
20557 ;;
20558 osf*)
20559 # the two cases above should catch all versions of osf <= 5.1. Read
20560 # the comments above for what we know about them.
20561 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20562 # is used to find them so we can finally say `yes'.
20563 lt_cv_sys_dlopen_deplibs=yes
20564 ;;
20565 qnx*)
20566 lt_cv_sys_dlopen_deplibs=yes
20567 ;;
20568 solaris*)
20569 lt_cv_sys_dlopen_deplibs=yes
20570 ;;
20571 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20572 libltdl_cv_sys_dlopen_deplibs=yes
20573 ;;
20574 esac
20575
20576fi
20577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20578$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20579if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20580
20581$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20582
20583fi
20584
20585:
20586
20587for ac_header in argz.h
20588do :
20589 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20590"
cristyda16f162011-02-19 23:52:17 +000020591if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020592 cat >>confdefs.h <<_ACEOF
20593#define HAVE_ARGZ_H 1
20594_ACEOF
20595
20596fi
20597
20598done
20599
20600
20601ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20602# include <argz.h>
20603#endif
20604"
cristyda16f162011-02-19 23:52:17 +000020605if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020606
20607cat >>confdefs.h <<_ACEOF
20608#define HAVE_ERROR_T 1
20609_ACEOF
20610
20611
20612else
20613
20614$as_echo "#define error_t int" >>confdefs.h
20615
20616
20617$as_echo "#define __error_t_defined 1" >>confdefs.h
20618
20619fi
20620
20621
20622ARGZ_H=
20623for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20624 argz_next argz_stringify
20625do :
20626 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20627ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020628if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020629 cat >>confdefs.h <<_ACEOF
20630#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20631_ACEOF
20632
20633else
20634 ARGZ_H=argz.h;
20635
20636 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20637
20638fi
20639done
20640
20641
20642if test -z "$ARGZ_H"; then :
20643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20644$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020645if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020646 $as_echo_n "(cached) " >&6
20647else
20648 case $host_os in #(
20649 *cygwin*)
20650 lt_cv_sys_argz_works=no
20651 if test "$cross_compiling" != no; then
20652 lt_cv_sys_argz_works="guessing no"
20653 else
20654 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20655 save_IFS=$IFS
20656 IFS=-.
20657 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20658 IFS=$save_IFS
20659 lt_os_major=${2-0}
20660 lt_os_minor=${3-0}
20661 lt_os_micro=${4-0}
20662 if test "$lt_os_major" -gt 1 \
20663 || { test "$lt_os_major" -eq 1 \
20664 && { test "$lt_os_minor" -gt 5 \
20665 || { test "$lt_os_minor" -eq 5 \
20666 && test "$lt_os_micro" -gt 24; }; }; }; then
20667 lt_cv_sys_argz_works=yes
20668 fi
20669 fi
20670 ;; #(
20671 *) lt_cv_sys_argz_works=yes ;;
20672 esac
20673fi
20674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20675$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020676 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020677
20678$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20679
20680else
20681 ARGZ_H=argz.h
20682
20683
20684 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20685
20686fi
20687fi
20688
20689
20690
20691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20692$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020693if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020694 $as_echo_n "(cached) " >&6
20695else
20696 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20697 libltdl_cv_preloaded_symbols=yes
20698 else
20699 libltdl_cv_preloaded_symbols=no
20700 fi
20701
20702fi
20703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20704$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20705if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20706
20707$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20708
20709fi
20710
20711# Set options
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723# Check whether --with-included_ltdl was given.
20724if test "${with_included_ltdl+set}" = set; then :
20725 withval=$with_included_ltdl;
20726fi
20727
20728
20729if test "x$with_included_ltdl" != xyes; then
20730 # We are not being forced to use the included libltdl sources, so
20731 # decide whether there is a useful installed version we can use.
20732 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20733
20734"
cristyda16f162011-02-19 23:52:17 +000020735if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020736 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20737 #include <ltdl.h>
20738"
cristyda16f162011-02-19 23:52:17 +000020739if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20741$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020742if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020743 $as_echo_n "(cached) " >&6
20744else
20745 ac_check_lib_save_LIBS=$LIBS
20746LIBS="-lltdl $LIBS"
20747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20748/* end confdefs.h. */
20749
20750/* Override any GCC internal prototype to avoid an error.
20751 Use char because int might match the return type of a GCC
20752 builtin and then its argument prototype would still apply. */
20753#ifdef __cplusplus
20754extern "C"
20755#endif
20756char lt_dladvise_preload ();
20757int
20758main ()
20759{
20760return lt_dladvise_preload ();
20761 ;
20762 return 0;
20763}
20764_ACEOF
20765if ac_fn_c_try_link "$LINENO"; then :
20766 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20767else
20768 ac_cv_lib_ltdl_lt_dladvise_preload=no
20769fi
20770rm -f core conftest.err conftest.$ac_objext \
20771 conftest$ac_exeext conftest.$ac_ext
20772LIBS=$ac_check_lib_save_LIBS
20773fi
20774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20775$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020776if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020777 with_included_ltdl=no
20778else
20779 with_included_ltdl=yes
20780fi
20781
20782else
20783 with_included_ltdl=yes
20784fi
20785
20786else
20787 with_included_ltdl=yes
20788fi
20789
20790
20791fi
20792
20793
20794
20795
20796# Check whether --with-ltdl_include was given.
20797if test "${with_ltdl_include+set}" = set; then :
20798 withval=$with_ltdl_include;
20799fi
20800
20801
20802if test -n "$with_ltdl_include"; then
20803 if test -f "$with_ltdl_include/ltdl.h"; then :
20804 else
cristy98dddb52010-11-04 00:30:15 +000020805 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020806 fi
20807else
20808 with_ltdl_include=no
20809fi
20810
20811
20812# Check whether --with-ltdl_lib was given.
20813if test "${with_ltdl_lib+set}" = set; then :
20814 withval=$with_ltdl_lib;
20815fi
20816
20817
20818if test -n "$with_ltdl_lib"; then
20819 if test -f "$with_ltdl_lib/libltdl.la"; then :
20820 else
cristy98dddb52010-11-04 00:30:15 +000020821 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020822 fi
20823else
20824 with_ltdl_lib=no
20825fi
20826
20827case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20828 ,yes,no,no,)
20829 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000020830 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000020831 "") enable_ltdl_convenience=yes
20832 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20833esac
20834LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20835LTDLDEPS=$LIBLTDL
20836LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20837
20838
20839
20840
20841
20842# For backwards non-gettext consistent compatibility...
20843INCLTDL="$LTDLINCL"
20844
20845
20846 ;;
20847 ,no,no,no,)
20848 # If the included ltdl is not to be used, then use the
20849 # preinstalled libltdl we found.
20850
20851$as_echo "#define HAVE_LTDL 1" >>confdefs.h
20852
20853 LIBLTDL=-lltdl
20854 LTDLDEPS=
20855 LTDLINCL=
20856 ;;
20857 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000020858 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020859 ;;
20860 *) with_included_ltdl=no
20861 LIBLTDL="-L$with_ltdl_lib -lltdl"
20862 LTDLDEPS=
20863 LTDLINCL="-I$with_ltdl_include"
20864 ;;
20865esac
20866INCLTDL="$LTDLINCL"
20867
20868# Report our decision...
20869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20870$as_echo_n "checking where to find libltdl headers... " >&6; }
20871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20872$as_echo "$LTDLINCL" >&6; }
20873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20874$as_echo_n "checking where to find libltdl library... " >&6; }
20875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20876$as_echo "$LIBLTDL" >&6; }
20877
20878
20879
20880# Check whether --enable-ltdl-install was given.
20881if test "${enable_ltdl_install+set}" = set; then :
20882 enableval=$enable_ltdl_install;
20883fi
20884
20885
20886case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20887 *yes*) ;;
20888 *) enable_ltdl_convenience=yes ;;
20889esac
20890
20891 if test x"${enable_ltdl_install-no}" != xno; then
20892 INSTALL_LTDL_TRUE=
20893 INSTALL_LTDL_FALSE='#'
20894else
20895 INSTALL_LTDL_TRUE='#'
20896 INSTALL_LTDL_FALSE=
20897fi
20898
20899 if test x"${enable_ltdl_convenience-no}" != xno; then
20900 CONVENIENCE_LTDL_TRUE=
20901 CONVENIENCE_LTDL_FALSE='#'
20902else
20903 CONVENIENCE_LTDL_TRUE='#'
20904 CONVENIENCE_LTDL_FALSE=
20905fi
20906
20907
20908
20909
20910
20911
cristy73bd4a52010-10-05 11:24:23 +000020912# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20913# the user used. This is so that ltdl.h can pick up the parent projects
20914# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20915# definitions required by ltdl.c.
20916# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20917
20918
20919
20920for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20921do :
20922 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20923ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20924"
cristy98dddb52010-11-04 00:30:15 +000020925if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020926 cat >>confdefs.h <<_ACEOF
20927#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20928_ACEOF
20929
20930fi
20931
20932done
20933
20934
20935for ac_func in closedir opendir readdir
20936do :
20937 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20938ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020939if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020940 cat >>confdefs.h <<_ACEOF
20941#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20942_ACEOF
20943
20944else
20945
20946
20947 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20948
20949fi
20950done
20951
20952for ac_func in strlcat strlcpy
20953do :
20954 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20955ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020956if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020957 cat >>confdefs.h <<_ACEOF
20958#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20959_ACEOF
20960
20961else
20962
20963
20964 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20965
20966fi
20967done
20968
20969
20970
20971cat >>confdefs.h <<_ACEOF
20972#define LT_LIBEXT "$libext"
20973_ACEOF
20974
20975
cristyda16f162011-02-19 23:52:17 +000020976name=
20977eval "lt_libprefix=\"$libname_spec\""
20978
20979cat >>confdefs.h <<_ACEOF
20980#define LT_LIBPREFIX "$lt_libprefix"
20981_ACEOF
20982
20983
cristy73bd4a52010-10-05 11:24:23 +000020984name=ltdl
cristyda16f162011-02-19 23:52:17 +000020985eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000020986
20987
20988
20989
20990
20991
20992
20993
20994# Only expand once:
20995
20996
cristy3ed852e2009-09-05 21:47:34 +000020997
20998# Check to see if building shared libraries
20999libtool_build_shared_libs='no'
21000if test "$enable_shared" = 'yes'; then
21001 libtool_build_shared_libs='yes'
21002fi
21003
21004# Check to see if building static libraries
21005libtool_build_static_libs='no'
21006if test "$enable_static" = 'yes'; then
21007 libtool_build_static_libs='yes'
21008fi
21009
cristy73bd4a52010-10-05 11:24:23 +000021010 if test "${libtool_build_shared_libs}" = 'yes'; then
21011 WITH_SHARED_LIBS_TRUE=
21012 WITH_SHARED_LIBS_FALSE='#'
21013else
21014 WITH_SHARED_LIBS_TRUE='#'
21015 WITH_SHARED_LIBS_FALSE=
21016fi
21017
cristy3ed852e2009-09-05 21:47:34 +000021018#
21019# Enable support for building loadable modules
21020#
21021
21022# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021023if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021024 withval=$with_modules; with_modules=$withval
21025else
cristy5a1cefd2010-01-06 20:42:35 +000021026 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021027fi
21028
21029
21030# Only allow building loadable modules if we are building shared libraries
21031if test "$with_modules" != 'no' ; then
21032 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021033 { $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 +000021034$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21035 with_modules='no'
21036 fi
21037fi
21038if test "$with_modules" != 'no'; then
21039
cristy8b350f62009-11-15 23:12:43 +000021040$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021041
21042fi
cristy73bd4a52010-10-05 11:24:23 +000021043 if test "$with_modules" != 'no'; then
21044 WITH_MODULES_TRUE=
21045 WITH_MODULES_FALSE='#'
21046else
21047 WITH_MODULES_TRUE='#'
21048 WITH_MODULES_FALSE=
21049fi
21050
cristy3ed852e2009-09-05 21:47:34 +000021051
21052# Enable building/use of libltdl if we are building shared libraries regardless
21053# of whether modules are built or not.
21054with_ltdl='no'
21055if test "$libtool_build_shared_libs" != 'no'; then
21056 with_ltdl='yes'
21057fi
21058
cristy73bd4a52010-10-05 11:24:23 +000021059 if test "$with_ltdl" != 'no'; then
21060 WITH_LTDL_TRUE=
21061 WITH_LTDL_FALSE='#'
21062else
21063 WITH_LTDL_TRUE='#'
21064 WITH_LTDL_FALSE=
21065fi
21066
cristy3ed852e2009-09-05 21:47:34 +000021067if test "$with_ltdl" != 'no'; then
21068
cristy8b350f62009-11-15 23:12:43 +000021069$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021070
21071
21072 # Set DLLDFLAGS
21073 if test X"$enable_shared" = Xyes; then
21074 DLLDFLAGS=-export-dynamic
21075
21076 fi
21077fi
21078
21079# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021080# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021081# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021082if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021083 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21084else
21085 enable_delegate_build='no'
21086fi
21087
21088
21089# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021090if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021091 enableval=$enable_deprecated; enable_deprecated=$enableval
21092else
21093 enable_deprecated='no'
21094fi
21095
21096
21097if test "$enable_deprecated" = 'yes'; then
21098
cristy8b350f62009-11-15 23:12:43 +000021099$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021100
21101else
21102 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21103fi
21104
21105# Build a version of ImageMagick which operates uninstalled.
21106# Used to build distributions located via MAGICK_HOME / executable path
21107# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021108if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021109 enableval=$enable_installed; enable_installed=$enableval
21110else
21111 enable_installed='yes'
21112fi
21113
21114
21115if test "$enable_installed" = 'yes'; then
21116
cristy8b350f62009-11-15 23:12:43 +000021117$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021118
21119else
21120 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21121fi
21122
21123# Permit enciphering and deciphering image pixels.
21124# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021125if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021126 enableval=$enable_cipher; enable_cipher=$enableval
21127else
21128 enable_cipher='yes'
21129fi
21130
21131
21132if test "$enable_cipher" = 'yes'; then
21133
cristy8b350f62009-11-15 23:12:43 +000021134$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021135
21136fi
21137
cristy6e3607c2011-09-13 13:59:17 +000021138# Build a zero-configuration version of ImageMagick.
21139# Check whether --enable-zero-configuration was given.
21140if test "${enable_zero_configuration+set}" = set; then :
21141 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021142else
cristy6e3607c2011-09-13 13:59:17 +000021143 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021144fi
21145
21146
cristy6e3607c2011-09-13 13:59:17 +000021147if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021148
cristy6e3607c2011-09-13 13:59:17 +000021149$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021150
cristy81af5702011-09-13 14:20:58 +000021151 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021152fi
21153
21154# Build a high dynamic range version of ImageMagick.
21155# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021156if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021157 enableval=$enable_hdri; enable_hdri=$enableval
21158else
21159 enable_hdri='no'
21160fi
21161
21162
21163MAGICK_HDRI=""
21164if test "$enable_hdri" = 'yes'; then
21165 MAGICK_HDRI="HDRI"
21166
cristy8b350f62009-11-15 23:12:43 +000021167$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021168
cristyfd9dcd42010-08-08 18:07:02 +000021169 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021170fi
21171
cristy3ed852e2009-09-05 21:47:34 +000021172# Build a version of ImageMagick with assert statements.
21173# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021174if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021175 enableval=$enable_assert; enable_assert=$enableval
21176else
21177 enable_assert='yes'
21178fi
21179
21180
21181if test "$enable_assert" = 'no'; then
21182
cristy8b350f62009-11-15 23:12:43 +000021183$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021184
21185fi
21186
cristya448bd22011-10-14 12:38:13 +000021187# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021188
21189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21190$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21191 # Check whether --enable-maintainer-mode was given.
21192if test "${enable_maintainer_mode+set}" = set; then :
21193 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21194else
21195 USE_MAINTAINER_MODE=no
21196fi
21197
21198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21199$as_echo "$USE_MAINTAINER_MODE" >&6; }
21200 if test $USE_MAINTAINER_MODE = yes; then
21201 MAINTAINER_MODE_TRUE=
21202 MAINTAINER_MODE_FALSE='#'
21203else
21204 MAINTAINER_MODE_TRUE='#'
21205 MAINTAINER_MODE_FALSE=
21206fi
21207
21208 MAINT=$MAINTAINER_MODE_TRUE
21209
21210
cristy3ed852e2009-09-05 21:47:34 +000021211
cristy3ed852e2009-09-05 21:47:34 +000021212# Enable ccmalloc memory debugging support
21213# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021214if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021215 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21216else
21217 enable_ccmalloc='no'
21218fi
21219
21220
21221# Enable Electric Fence memory debugging support
21222# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021223if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021224 enableval=$enable_efence; enable_efence=$enableval
21225else
21226 enable_efence='no'
21227fi
21228
21229
21230# Enable prof-based profiling support
21231# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021232if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021233 enableval=$enable_prof; enable_prof=$enableval
21234else
21235 enable_prof='no'
21236fi
21237
21238
21239# Enable gprof-based profiling support
21240# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021241if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021242 enableval=$enable_gprof; enable_gprof=$enableval
21243else
21244 enable_gprof='no'
21245fi
21246
21247
21248# Enable gcov-based profiling support
21249# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021250if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021251 enableval=$enable_gcov; enable_gcov=$enableval
21252else
21253 enable_gcov='no'
21254fi
21255
21256
21257enable_profiling='no'
21258if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21259 enable_profiling='yes'
21260 if test "$libtool_build_shared_libs" = 'yes'; then
21261 echo "Warning: Can not profile code using shared libraries"
21262 fi
21263fi
21264
21265# Magick API method prefix
21266
21267# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021268if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021269 withval=$with_method_prefix; with_method_prefix=$enableval
21270else
21271 with_method_prefix=''
21272fi
21273
21274
21275if test "$with_method_prefix" != ''; then
21276
21277cat >>confdefs.h <<_ACEOF
21278#define NAMESPACE_PREFIX $with_method_prefix
21279_ACEOF
21280
21281fi
21282
21283# Number of bits in a Quantum
21284
21285# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021286if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021287 withval=$with_quantum_depth; with_quantum_depth=$withval
21288else
21289 with_quantum_depth=16
21290fi
21291
21292
21293if test "$with_quantum_depth" != '8'; then
21294 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21295fi
21296
21297case "${with_quantum_depth}" in
21298 8 ) ;;
21299 16 ) ;;
21300 32 ) ;;
21301 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021302 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021303esac
21304QUANTUM_DEPTH="$with_quantum_depth"
21305
21306cat >>confdefs.h <<_ACEOF
21307#define QUANTUM_DEPTH $QUANTUM_DEPTH
21308_ACEOF
21309
21310
21311# Set pixel cache threshold
21312
21313# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021314if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021315 withval=$with_cache; with_cache=$withval
21316else
21317 with_cache=''
21318fi
21319
21320
21321if test "$with_cache" != ''; then
21322
21323cat >>confdefs.h <<_ACEOF
21324#define PixelCacheThreshold $with_cache
21325_ACEOF
21326
21327 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21328fi
21329
21330# Disable/Enable support for full delegate paths
21331
21332# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021333if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021334 withval=$with_frozenpaths; with_frozenpaths=$withval
21335else
21336 with_frozenpaths='no'
21337fi
21338
21339
21340# Enable build/install of Magick++
21341
21342# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021343if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021344 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21345else
21346 with_magick_plus_plus='yes'
21347fi
21348
21349
21350# Disable build/install of PerlMagick.
21351
21352# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021353if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021354 withval=$with_perl; with_perl=$withval
21355else
cristyb5f4e2f2010-04-25 00:49:11 +000021356 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021357fi
21358
21359
21360# Options to pass when configuring PerlMagick
21361
21362# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021363if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021364 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021365fi
21366
21367
cristy3ed852e2009-09-05 21:47:34 +000021368
21369# Enable umem, object-caching memory allocation library.
21370
21371# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021372if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021373 withval=$with_umem; with_umem=$withval
21374else
21375 with_umem='no'
21376fi
21377
21378if test "$with_umem" != 'yes' ; then
21379 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21380fi
21381
21382#
21383# Specify path to shared libstdc++ if not in normal location
21384#
21385
21386# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021387if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021388 withval=$with_libstdc; with_libstdc=$withval
21389else
21390 with_libstdc=''
21391fi
21392
21393
21394if test "$with_libstdc" != ''; then
21395 if test -d "$with_libstdc"; then
21396 LIBSTDCLDFLAGS="-L$with_libstdc"
21397 fi
21398fi
21399
21400
21401# Does gcc required -traditional?
21402if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021404$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021405if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021406 $as_echo_n "(cached) " >&6
21407else
21408 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021410/* end confdefs.h. */
21411#include <sgtty.h>
21412Autoconf TIOCGETP
21413_ACEOF
21414if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021415 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021416 ac_cv_prog_gcc_traditional=yes
21417else
21418 ac_cv_prog_gcc_traditional=no
21419fi
21420rm -f conftest*
21421
21422
21423 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021425/* end confdefs.h. */
21426#include <termio.h>
21427Autoconf TCGETA
21428_ACEOF
21429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021430 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021431 ac_cv_prog_gcc_traditional=yes
21432fi
21433rm -f conftest*
21434
21435 fi
21436fi
cristy8b350f62009-11-15 23:12:43 +000021437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021438$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21439 if test $ac_cv_prog_gcc_traditional = yes; then
21440 CC="$CC -traditional"
21441 fi
21442fi
21443
21444
21445########
21446#
21447# Set defines required to build DLLs and modules using MinGW
21448#
21449########
21450# These options are set for multi-thread DLL module build
21451# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21452# module: _DLL
21453# executable/Magick++: _DLL _MAGICKMOD_
21454MODULE_EXTRA_CPPFLAGS=''
21455LIBRARY_EXTRA_CPPFLAGS=''
21456if test "${native_win32_build}" = 'yes'; then
21457 if test "${libtool_build_shared_libs}" = 'yes'; then
21458 CPPFLAGS="$CPPFLAGS -D_DLL"
21459 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21460 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21461 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21462 if test "$with_modules" = 'yes'; then
21463 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21464 else
21465 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21466 fi
21467 else
21468 CPPFLAGS="$CPPFLAGS -D_LIB"
21469 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21470 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21471 fi
21472 if test "$with_threads" = 'yes'; then
21473 CPPFLAGS="$CPPFLAGS -D_MT"
21474 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21475 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21476 fi
21477fi
21478
21479
21480
21481# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021483$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021484if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021485 $as_echo_n "(cached) " >&6
21486else
cristy8b350f62009-11-15 23:12:43 +000021487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021488/* end confdefs.h. */
21489#include <stdlib.h>
21490#include <stdarg.h>
21491#include <string.h>
21492#include <float.h>
21493
21494int
21495main ()
21496{
21497
21498 ;
21499 return 0;
21500}
21501_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021502if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021503 ac_cv_header_stdc=yes
21504else
cristy8b350f62009-11-15 23:12:43 +000021505 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021506fi
cristy3ed852e2009-09-05 21:47:34 +000021507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21508
21509if test $ac_cv_header_stdc = yes; then
21510 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021512/* end confdefs.h. */
21513#include <string.h>
21514
21515_ACEOF
21516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021517 $EGREP "memchr" >/dev/null 2>&1; then :
21518
cristy3ed852e2009-09-05 21:47:34 +000021519else
21520 ac_cv_header_stdc=no
21521fi
21522rm -f conftest*
21523
21524fi
21525
21526if test $ac_cv_header_stdc = yes; then
21527 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021529/* end confdefs.h. */
21530#include <stdlib.h>
21531
21532_ACEOF
21533if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021534 $EGREP "free" >/dev/null 2>&1; then :
21535
cristy3ed852e2009-09-05 21:47:34 +000021536else
21537 ac_cv_header_stdc=no
21538fi
21539rm -f conftest*
21540
21541fi
21542
21543if test $ac_cv_header_stdc = yes; then
21544 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021545 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021546 :
21547else
cristy8b350f62009-11-15 23:12:43 +000021548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021549/* end confdefs.h. */
21550#include <ctype.h>
21551#include <stdlib.h>
21552#if ((' ' & 0x0FF) == 0x020)
21553# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21554# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21555#else
21556# define ISLOWER(c) \
21557 (('a' <= (c) && (c) <= 'i') \
21558 || ('j' <= (c) && (c) <= 'r') \
21559 || ('s' <= (c) && (c) <= 'z'))
21560# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21561#endif
21562
21563#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21564int
21565main ()
21566{
21567 int i;
21568 for (i = 0; i < 256; i++)
21569 if (XOR (islower (i), ISLOWER (i))
21570 || toupper (i) != TOUPPER (i))
21571 return 2;
21572 return 0;
21573}
21574_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021575if ac_fn_c_try_run "$LINENO"; then :
21576
cristy3ed852e2009-09-05 21:47:34 +000021577else
cristy8b350f62009-11-15 23:12:43 +000021578 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021579fi
cristy8b350f62009-11-15 23:12:43 +000021580rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21581 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021582fi
21583
cristy3ed852e2009-09-05 21:47:34 +000021584fi
21585fi
cristy8b350f62009-11-15 23:12:43 +000021586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021587$as_echo "$ac_cv_header_stdc" >&6; }
21588if test $ac_cv_header_stdc = yes; then
21589
cristy8b350f62009-11-15 23:12:43 +000021590$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021591
21592fi
21593
21594if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021595 { $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 +000021596 header files. Compilation cannot proceed. Please install the ANSI C
21597 headers and rerun this script." >&5
21598$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21599 header files. Compilation cannot proceed. Please install the ANSI C
21600 headers and rerun this script." >&2;};
21601fi
cristya0b81c32010-01-22 02:54:33 +000021602
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21604$as_echo_n "checking whether to enable assertions... " >&6; }
21605 # Check whether --enable-assert was given.
21606if test "${enable_assert+set}" = set; then :
21607 enableval=$enable_assert; ac_enable_assert=$enableval
21608 if test "x$enableval" = xno; then :
21609
21610$as_echo "#define NDEBUG 1" >>confdefs.h
21611
21612elif test "x$enableval" != xyes; then :
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21614$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21615 ac_enable_assert=yes
21616fi
21617else
21618 ac_enable_assert=yes
21619fi
21620
21621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21622$as_echo "$ac_enable_assert" >&6; }
21623
cristy3ed852e2009-09-05 21:47:34 +000021624ac_header_dirent=no
21625for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21626 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021628$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021629if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021630 $as_echo_n "(cached) " >&6
21631else
cristy8b350f62009-11-15 23:12:43 +000021632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021633/* end confdefs.h. */
21634#include <sys/types.h>
21635#include <$ac_hdr>
21636
21637int
21638main ()
21639{
21640if ((DIR *) 0)
21641return 0;
21642 ;
21643 return 0;
21644}
21645_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021646if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021647 eval "$as_ac_Header=yes"
21648else
cristy8b350f62009-11-15 23:12:43 +000021649 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021650fi
cristy3ed852e2009-09-05 21:47:34 +000021651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21652fi
cristy8b350f62009-11-15 23:12:43 +000021653eval ac_res=\$$as_ac_Header
21654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021655$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021656if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021657 cat >>confdefs.h <<_ACEOF
21658#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21659_ACEOF
21660
21661ac_header_dirent=$ac_hdr; break
21662fi
21663
21664done
21665# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21666if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021668$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021669if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021670 $as_echo_n "(cached) " >&6
21671else
21672 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021674/* end confdefs.h. */
21675
21676/* Override any GCC internal prototype to avoid an error.
21677 Use char because int might match the return type of a GCC
21678 builtin and then its argument prototype would still apply. */
21679#ifdef __cplusplus
21680extern "C"
21681#endif
21682char opendir ();
21683int
21684main ()
21685{
21686return opendir ();
21687 ;
21688 return 0;
21689}
21690_ACEOF
21691for ac_lib in '' dir; do
21692 if test -z "$ac_lib"; then
21693 ac_res="none required"
21694 else
21695 ac_res=-l$ac_lib
21696 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21697 fi
cristy8b350f62009-11-15 23:12:43 +000021698 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021699 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021700fi
cristy8b350f62009-11-15 23:12:43 +000021701rm -f core conftest.err conftest.$ac_objext \
21702 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021703 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021704 break
21705fi
21706done
cristyda16f162011-02-19 23:52:17 +000021707if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021708
cristy3ed852e2009-09-05 21:47:34 +000021709else
21710 ac_cv_search_opendir=no
21711fi
21712rm conftest.$ac_ext
21713LIBS=$ac_func_search_save_LIBS
21714fi
cristy8b350f62009-11-15 23:12:43 +000021715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021716$as_echo "$ac_cv_search_opendir" >&6; }
21717ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021718if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021719 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21720
21721fi
21722
21723else
cristy8b350f62009-11-15 23:12:43 +000021724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021725$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021726if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021727 $as_echo_n "(cached) " >&6
21728else
21729 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021731/* end confdefs.h. */
21732
21733/* Override any GCC internal prototype to avoid an error.
21734 Use char because int might match the return type of a GCC
21735 builtin and then its argument prototype would still apply. */
21736#ifdef __cplusplus
21737extern "C"
21738#endif
21739char opendir ();
21740int
21741main ()
21742{
21743return opendir ();
21744 ;
21745 return 0;
21746}
21747_ACEOF
21748for ac_lib in '' x; do
21749 if test -z "$ac_lib"; then
21750 ac_res="none required"
21751 else
21752 ac_res=-l$ac_lib
21753 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21754 fi
cristy8b350f62009-11-15 23:12:43 +000021755 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021756 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021757fi
cristy8b350f62009-11-15 23:12:43 +000021758rm -f core conftest.err conftest.$ac_objext \
21759 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021760 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021761 break
21762fi
21763done
cristyda16f162011-02-19 23:52:17 +000021764if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021765
cristy3ed852e2009-09-05 21:47:34 +000021766else
21767 ac_cv_search_opendir=no
21768fi
21769rm conftest.$ac_ext
21770LIBS=$ac_func_search_save_LIBS
21771fi
cristy8b350f62009-11-15 23:12:43 +000021772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021773$as_echo "$ac_cv_search_opendir" >&6; }
21774ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021775if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021776 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21777
21778fi
21779
21780fi
21781
21782
21783# Check additional headers
cristya8549b12011-05-18 19:05:08 +000021784for 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 +000021785do :
21786 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21787ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021788if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021789 cat >>confdefs.h <<_ACEOF
21790#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21791_ACEOF
21792
21793fi
21794
21795done
21796
21797
21798########
21799#
21800# Checks for typedefs, structures, and compiler characteristics.
21801#
21802########
21803
cristy8b350f62009-11-15 23:12:43 +000021804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021805$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021806if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021807 $as_echo_n "(cached) " >&6
21808else
cristy8b350f62009-11-15 23:12:43 +000021809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021810/* end confdefs.h. */
21811
21812#include <stdbool.h>
21813#ifndef bool
21814 "error: bool is not defined"
21815#endif
21816#ifndef false
21817 "error: false is not defined"
21818#endif
21819#if false
21820 "error: false is not 0"
21821#endif
21822#ifndef true
21823 "error: true is not defined"
21824#endif
21825#if true != 1
21826 "error: true is not 1"
21827#endif
21828#ifndef __bool_true_false_are_defined
21829 "error: __bool_true_false_are_defined is not defined"
21830#endif
21831
21832 struct s { _Bool s: 1; _Bool t; } s;
21833
21834 char a[true == 1 ? 1 : -1];
21835 char b[false == 0 ? 1 : -1];
21836 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21837 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000021838 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000021839 char f[(_Bool) 0.0 == false ? 1 : -1];
21840 char g[true];
21841 char h[sizeof (_Bool)];
21842 char i[sizeof s.t];
21843 enum { j = false, k = true, l = false * true, m = true * 256 };
21844 /* The following fails for
21845 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21846 _Bool n[m];
21847 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21848 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000021849 /* Catch a bug in an HP-UX C compiler. See
21850 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21851 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21852 */
21853 _Bool q = true;
21854 _Bool *pq = &q;
21855
21856int
21857main ()
21858{
21859
cristyda16f162011-02-19 23:52:17 +000021860 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000021861 *pq |= q;
21862 *pq |= ! q;
21863 /* Refer to every declared value, to avoid compiler optimizations. */
21864 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21865 + !m + !n + !o + !p + !q + !pq);
21866
21867 ;
21868 return 0;
21869}
21870_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021871if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021872 ac_cv_header_stdbool_h=yes
21873else
cristy8b350f62009-11-15 23:12:43 +000021874 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021875fi
cristy3ed852e2009-09-05 21:47:34 +000021876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21877fi
cristy8b350f62009-11-15 23:12:43 +000021878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021879$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021880ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021881if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021882
21883cat >>confdefs.h <<_ACEOF
21884#define HAVE__BOOL 1
21885_ACEOF
21886
21887
21888fi
21889
21890if test $ac_cv_header_stdbool_h = yes; then
21891
cristy8b350f62009-11-15 23:12:43 +000021892$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021893
21894fi
21895
cristy8b350f62009-11-15 23:12:43 +000021896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021897$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021898if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021899 $as_echo_n "(cached) " >&6
21900else
cristy8b350f62009-11-15 23:12:43 +000021901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021902/* end confdefs.h. */
21903
21904int
21905main ()
21906{
21907
21908volatile int x;
21909int * volatile y = (int *) 0;
21910return !x && !y;
21911 ;
21912 return 0;
21913}
21914_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021915if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021916 ac_cv_c_volatile=yes
21917else
cristy8b350f62009-11-15 23:12:43 +000021918 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021919fi
cristy3ed852e2009-09-05 21:47:34 +000021920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21921fi
cristy8b350f62009-11-15 23:12:43 +000021922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021923$as_echo "$ac_cv_c_volatile" >&6; }
21924if test $ac_cv_c_volatile = no; then
21925
cristy8b350f62009-11-15 23:12:43 +000021926$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021927
21928fi
21929
cristy8b350f62009-11-15 23:12:43 +000021930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021931$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021932if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021933 $as_echo_n "(cached) " >&6
21934else
cristy8b350f62009-11-15 23:12:43 +000021935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021936/* end confdefs.h. */
21937#define x(y) #y
21938
21939char *s = x(teststring);
21940_ACEOF
21941if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021942 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021943 ac_cv_c_stringize=no
21944else
21945 ac_cv_c_stringize=yes
21946fi
21947rm -f conftest*
21948
21949fi
cristy8b350f62009-11-15 23:12:43 +000021950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021951$as_echo "$ac_cv_c_stringize" >&6; }
21952if test $ac_cv_c_stringize = yes; then
21953
cristy8b350f62009-11-15 23:12:43 +000021954$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021955
21956fi
21957
cristy8b350f62009-11-15 23:12:43 +000021958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021959$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021960if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021961 $as_echo_n "(cached) " >&6
21962else
cristy8b350f62009-11-15 23:12:43 +000021963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021964/* end confdefs.h. */
21965#include <sys/types.h>
21966#include <sys/stat.h>
21967
21968#if defined S_ISBLK && defined S_IFDIR
21969extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21970#endif
21971
21972#if defined S_ISBLK && defined S_IFCHR
21973extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21974#endif
21975
21976#if defined S_ISLNK && defined S_IFREG
21977extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21978#endif
21979
21980#if defined S_ISSOCK && defined S_IFREG
21981extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21982#endif
21983
21984_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021985if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021986 ac_cv_header_stat_broken=no
21987else
cristy8b350f62009-11-15 23:12:43 +000021988 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021989fi
cristy3ed852e2009-09-05 21:47:34 +000021990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21991fi
cristy8b350f62009-11-15 23:12:43 +000021992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021993$as_echo "$ac_cv_header_stat_broken" >&6; }
21994if test $ac_cv_header_stat_broken = yes; then
21995
cristy8b350f62009-11-15 23:12:43 +000021996$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021997
21998fi
21999
cristy8b350f62009-11-15 23:12:43 +000022000{ $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 +000022001$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022002if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022003 $as_echo_n "(cached) " >&6
22004else
cristy8b350f62009-11-15 23:12:43 +000022005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022006/* end confdefs.h. */
22007#include <sys/types.h>
22008#include <sys/time.h>
22009#include <time.h>
22010
22011int
22012main ()
22013{
22014if ((struct tm *) 0)
22015return 0;
22016 ;
22017 return 0;
22018}
22019_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022020if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022021 ac_cv_header_time=yes
22022else
cristy8b350f62009-11-15 23:12:43 +000022023 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022024fi
cristy3ed852e2009-09-05 21:47:34 +000022025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22026fi
cristy8b350f62009-11-15 23:12:43 +000022027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022028$as_echo "$ac_cv_header_time" >&6; }
22029if test $ac_cv_header_time = yes; then
22030
cristy8b350f62009-11-15 23:12:43 +000022031$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022032
22033fi
22034
cristy8b350f62009-11-15 23:12:43 +000022035{ $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 +000022036$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022037if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022038 $as_echo_n "(cached) " >&6
22039else
cristy8b350f62009-11-15 23:12:43 +000022040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022041/* end confdefs.h. */
22042#include <sys/types.h>
22043#include <time.h>
22044
22045int
22046main ()
22047{
22048struct tm tm;
22049 int *p = &tm.tm_sec;
22050 return !p;
22051 ;
22052 return 0;
22053}
22054_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022055if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022056 ac_cv_struct_tm=time.h
22057else
cristy8b350f62009-11-15 23:12:43 +000022058 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022059fi
cristy3ed852e2009-09-05 21:47:34 +000022060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22061fi
cristy8b350f62009-11-15 23:12:43 +000022062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022063$as_echo "$ac_cv_struct_tm" >&6; }
22064if test $ac_cv_struct_tm = sys/time.h; then
22065
cristy8b350f62009-11-15 23:12:43 +000022066$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022067
22068fi
22069
cristy92703d82010-04-26 00:18:18 +000022070ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22071#include <$ac_cv_struct_tm>
22072
22073"
cristyda16f162011-02-19 23:52:17 +000022074if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022075
22076cat >>confdefs.h <<_ACEOF
22077#define HAVE_STRUCT_TM_TM_ZONE 1
22078_ACEOF
22079
22080
22081fi
22082
22083if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22084
22085$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22086
22087else
22088 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22089"
cristyda16f162011-02-19 23:52:17 +000022090if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022091 ac_have_decl=1
22092else
22093 ac_have_decl=0
22094fi
22095
22096cat >>confdefs.h <<_ACEOF
22097#define HAVE_DECL_TZNAME $ac_have_decl
22098_ACEOF
22099
22100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22101$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022102if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022103 $as_echo_n "(cached) " >&6
22104else
22105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22106/* end confdefs.h. */
22107#include <time.h>
22108#if !HAVE_DECL_TZNAME
22109extern char *tzname[];
22110#endif
22111
22112int
22113main ()
22114{
22115return tzname[0][0];
22116 ;
22117 return 0;
22118}
22119_ACEOF
22120if ac_fn_c_try_link "$LINENO"; then :
22121 ac_cv_var_tzname=yes
22122else
22123 ac_cv_var_tzname=no
22124fi
22125rm -f core conftest.err conftest.$ac_objext \
22126 conftest$ac_exeext conftest.$ac_ext
22127fi
22128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22129$as_echo "$ac_cv_var_tzname" >&6; }
22130 if test $ac_cv_var_tzname = yes; then
22131
22132$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22133
22134 fi
22135fi
22136
cristy8b350f62009-11-15 23:12:43 +000022137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022138$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022139if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022140 $as_echo_n "(cached) " >&6
22141else
22142 echo '#! /bin/cat
22143exit 69
22144' >conftest
22145chmod u+x conftest
22146(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22147if test $? -ne 69; then
22148 ac_cv_sys_interpreter=yes
22149else
22150 ac_cv_sys_interpreter=no
22151fi
22152rm -f conftest
22153fi
cristy8b350f62009-11-15 23:12:43 +000022154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022155$as_echo "$ac_cv_sys_interpreter" >&6; }
22156interpval=$ac_cv_sys_interpreter
22157
22158
cristy3ed852e2009-09-05 21:47:34 +000022159# If the C compiler supports the keyword inline, do nothing. Otherwise
22160# define inline to __inline__ or __inline if it accepts one of those,
22161# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022163$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022164if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022165 $as_echo_n "(cached) " >&6
22166else
22167 ac_cv_c_inline=no
22168for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022170/* end confdefs.h. */
22171#ifndef __cplusplus
22172typedef int foo_t;
22173static $ac_kw foo_t static_foo () {return 0; }
22174$ac_kw foo_t foo () {return 0; }
22175#endif
22176
22177_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022178if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022179 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022180fi
cristy3ed852e2009-09-05 21:47:34 +000022181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22182 test "$ac_cv_c_inline" != no && break
22183done
22184
22185fi
cristy8b350f62009-11-15 23:12:43 +000022186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022187$as_echo "$ac_cv_c_inline" >&6; }
22188
cristy3ed852e2009-09-05 21:47:34 +000022189case $ac_cv_c_inline in
22190 inline | yes) ;;
22191 *)
22192 case $ac_cv_c_inline in
22193 no) ac_val=;;
22194 *) ac_val=$ac_cv_c_inline;;
22195 esac
22196 cat >>confdefs.h <<_ACEOF
22197#ifndef __cplusplus
22198#define inline $ac_val
22199#endif
22200_ACEOF
22201 ;;
22202esac
22203
22204
22205# If the C compiler supports the keyword restrict, do nothing. Otherwise
22206# define restrict to __restrict__ or __restrict if it accepts one of those,
22207# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022209$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022210if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022211 $as_echo_n "(cached) " >&6
22212else
22213 ac_cv_c_restrict=no
22214 # The order here caters to the fact that C++ does not require restrict.
22215 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022217/* end confdefs.h. */
22218typedef int * int_ptr;
22219 int foo (int_ptr $ac_kw ip) {
22220 return ip[0];
22221 }
22222int
22223main ()
22224{
22225int s[1];
22226 int * $ac_kw t = s;
22227 t[0] = 0;
22228 return foo(t)
22229 ;
22230 return 0;
22231}
22232_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022233if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022234 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022235fi
cristy3ed852e2009-09-05 21:47:34 +000022236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22237 test "$ac_cv_c_restrict" != no && break
22238 done
22239
22240fi
cristy8b350f62009-11-15 23:12:43 +000022241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022242$as_echo "$ac_cv_c_restrict" >&6; }
22243
cristy3ed852e2009-09-05 21:47:34 +000022244 case $ac_cv_c_restrict in
22245 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022246 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022247 ;;
22248 *) cat >>confdefs.h <<_ACEOF
22249#define restrict $ac_cv_c_restrict
22250_ACEOF
22251 ;;
22252 esac
22253
22254
22255# If words are stored with the most significant byte first (like
22256# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022258$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022259if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022260 $as_echo_n "(cached) " >&6
22261else
22262 ac_cv_c_bigendian=unknown
22263 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022265/* end confdefs.h. */
22266#ifndef __APPLE_CC__
22267 not a universal capable compiler
22268 #endif
22269 typedef int dummy;
22270
22271_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022272if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022273
22274 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022275 # there are at least two -arch flags with different values.
22276 ac_arch=
22277 ac_prev=
22278 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22279 if test -n "$ac_prev"; then
22280 case $ac_word in
22281 i?86 | x86_64 | ppc | ppc64)
22282 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22283 ac_arch=$ac_word
22284 else
22285 ac_cv_c_bigendian=universal
22286 break
22287 fi
22288 ;;
22289 esac
22290 ac_prev=
22291 elif test "x$ac_word" = "x-arch"; then
22292 ac_prev=arch
22293 fi
22294 done
cristy3ed852e2009-09-05 21:47:34 +000022295fi
cristy3ed852e2009-09-05 21:47:34 +000022296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22297 if test $ac_cv_c_bigendian = unknown; then
22298 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022300/* end confdefs.h. */
22301#include <sys/types.h>
22302 #include <sys/param.h>
22303
22304int
22305main ()
22306{
22307#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22308 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22309 && LITTLE_ENDIAN)
22310 bogus endian macros
22311 #endif
22312
22313 ;
22314 return 0;
22315}
22316_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022317if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022318 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022320/* end confdefs.h. */
22321#include <sys/types.h>
22322 #include <sys/param.h>
22323
22324int
22325main ()
22326{
22327#if BYTE_ORDER != BIG_ENDIAN
22328 not big endian
22329 #endif
22330
22331 ;
22332 return 0;
22333}
22334_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022335if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022336 ac_cv_c_bigendian=yes
22337else
cristy8b350f62009-11-15 23:12:43 +000022338 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022339fi
cristy3ed852e2009-09-05 21:47:34 +000022340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022341fi
cristy3ed852e2009-09-05 21:47:34 +000022342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22343 fi
22344 if test $ac_cv_c_bigendian = unknown; then
22345 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022347/* end confdefs.h. */
22348#include <limits.h>
22349
22350int
22351main ()
22352{
22353#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22354 bogus endian macros
22355 #endif
22356
22357 ;
22358 return 0;
22359}
22360_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022361if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022362 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022364/* end confdefs.h. */
22365#include <limits.h>
22366
22367int
22368main ()
22369{
22370#ifndef _BIG_ENDIAN
22371 not big endian
22372 #endif
22373
22374 ;
22375 return 0;
22376}
22377_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022378if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022379 ac_cv_c_bigendian=yes
22380else
cristy8b350f62009-11-15 23:12:43 +000022381 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022382fi
cristy3ed852e2009-09-05 21:47:34 +000022383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022384fi
cristy3ed852e2009-09-05 21:47:34 +000022385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22386 fi
22387 if test $ac_cv_c_bigendian = unknown; then
22388 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022389 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022390 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022392/* end confdefs.h. */
22393short int ascii_mm[] =
22394 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22395 short int ascii_ii[] =
22396 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22397 int use_ascii (int i) {
22398 return ascii_mm[i] + ascii_ii[i];
22399 }
22400 short int ebcdic_ii[] =
22401 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22402 short int ebcdic_mm[] =
22403 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22404 int use_ebcdic (int i) {
22405 return ebcdic_mm[i] + ebcdic_ii[i];
22406 }
22407 extern int foo;
22408
22409int
22410main ()
22411{
22412return use_ascii (foo) == use_ebcdic (foo);
22413 ;
22414 return 0;
22415}
22416_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022417if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022418 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22419 ac_cv_c_bigendian=yes
22420 fi
22421 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22422 if test "$ac_cv_c_bigendian" = unknown; then
22423 ac_cv_c_bigendian=no
22424 else
22425 # finding both strings is unlikely to happen, but who knows?
22426 ac_cv_c_bigendian=unknown
22427 fi
22428 fi
cristy3ed852e2009-09-05 21:47:34 +000022429fi
cristy3ed852e2009-09-05 21:47:34 +000022430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22431else
cristy8b350f62009-11-15 23:12:43 +000022432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022433/* end confdefs.h. */
22434$ac_includes_default
22435int
22436main ()
22437{
22438
22439 /* Are we little or big endian? From Harbison&Steele. */
22440 union
22441 {
22442 long int l;
22443 char c[sizeof (long int)];
22444 } u;
22445 u.l = 1;
22446 return u.c[sizeof (long int) - 1] == 1;
22447
22448 ;
22449 return 0;
22450}
22451_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022452if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022453 ac_cv_c_bigendian=no
22454else
cristy8b350f62009-11-15 23:12:43 +000022455 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022456fi
cristy8b350f62009-11-15 23:12:43 +000022457rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22458 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022459fi
22460
cristy3ed852e2009-09-05 21:47:34 +000022461 fi
22462fi
cristy8b350f62009-11-15 23:12:43 +000022463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022464$as_echo "$ac_cv_c_bigendian" >&6; }
22465 case $ac_cv_c_bigendian in #(
22466 yes)
cristy8b350f62009-11-15 23:12:43 +000022467 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022468;; #(
22469 no)
22470 ;; #(
22471 universal)
22472
cristy8b350f62009-11-15 23:12:43 +000022473$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022474
22475 ;; #(
22476 *)
cristy98dddb52010-11-04 00:30:15 +000022477 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022478 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022479 esac
22480
22481
cristy501c8042011-05-26 17:46:28 +000022482# Define to a suitable type, if standard headers do not define it.
22483ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22484case $ac_cv_c_int8_t in #(
22485 no|yes) ;; #(
22486 *)
cristy3ed852e2009-09-05 21:47:34 +000022487
22488cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022489#define int8_t $ac_cv_c_int8_t
22490_ACEOF
22491;;
22492esac
22493
22494ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22495case $ac_cv_c_int16_t in #(
22496 no|yes) ;; #(
22497 *)
22498
22499cat >>confdefs.h <<_ACEOF
22500#define int16_t $ac_cv_c_int16_t
22501_ACEOF
22502;;
22503esac
22504
22505ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22506case $ac_cv_c_int32_t in #(
22507 no|yes) ;; #(
22508 *)
22509
22510cat >>confdefs.h <<_ACEOF
22511#define int32_t $ac_cv_c_int32_t
22512_ACEOF
22513;;
22514esac
22515
22516ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22517case $ac_cv_c_int64_t in #(
22518 no|yes) ;; #(
22519 *)
22520
22521cat >>confdefs.h <<_ACEOF
22522#define int64_t $ac_cv_c_int64_t
22523_ACEOF
22524;;
22525esac
22526
22527
22528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22529$as_echo_n "checking for long long int... " >&6; }
22530if ${ac_cv_type_long_long_int+:} false; then :
22531 $as_echo_n "(cached) " >&6
22532else
22533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22534/* end confdefs.h. */
22535
22536 /* For now, do not test the preprocessor; as of 2007 there are too many
22537 implementations with broken preprocessors. Perhaps this can
22538 be revisited in 2012. In the meantime, code should not expect
22539 #if to work with literals wider than 32 bits. */
22540 /* Test literals. */
22541 long long int ll = 9223372036854775807ll;
22542 long long int nll = -9223372036854775807LL;
22543 unsigned long long int ull = 18446744073709551615ULL;
22544 /* Test constant expressions. */
22545 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22546 ? 1 : -1)];
22547 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22548 ? 1 : -1)];
22549 int i = 63;
22550int
22551main ()
22552{
22553/* Test availability of runtime routines for shift and division. */
22554 long long int llmax = 9223372036854775807ll;
22555 unsigned long long int ullmax = 18446744073709551615ull;
22556 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22557 | (llmax / ll) | (llmax % ll)
22558 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22559 | (ullmax / ull) | (ullmax % ull));
22560 ;
22561 return 0;
22562}
22563
22564_ACEOF
22565if ac_fn_c_try_link "$LINENO"; then :
22566 if test "$cross_compiling" = yes; then :
22567 ac_cv_type_long_long_int=yes
22568else
22569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22570/* end confdefs.h. */
22571#include <limits.h>
22572 #ifndef LLONG_MAX
22573 # define HALF \
22574 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22575 # define LLONG_MAX (HALF - 1 + HALF)
22576 #endif
22577int
22578main ()
22579{
22580long long int n = 1;
22581 int i;
22582 for (i = 0; ; i++)
22583 {
22584 long long int m = n << i;
22585 if (m >> i != n)
22586 return 1;
22587 if (LLONG_MAX / 2 < m)
22588 break;
22589 }
22590 return 0;
22591 ;
22592 return 0;
22593}
22594_ACEOF
22595if ac_fn_c_try_run "$LINENO"; then :
22596 ac_cv_type_long_long_int=yes
22597else
22598 ac_cv_type_long_long_int=no
22599fi
22600rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22601 conftest.$ac_objext conftest.beam conftest.$ac_ext
22602fi
22603
22604else
22605 ac_cv_type_long_long_int=no
22606fi
22607rm -f core conftest.err conftest.$ac_objext \
22608 conftest$ac_exeext conftest.$ac_ext
22609fi
22610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22611$as_echo "$ac_cv_type_long_long_int" >&6; }
22612 if test $ac_cv_type_long_long_int = yes; then
22613
22614$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22615
22616 fi
22617
22618
22619
22620 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22621if test "x$ac_cv_type_intmax_t" = xyes; then :
22622
22623$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22624
22625else
22626 test $ac_cv_type_long_long_int = yes \
22627 && ac_type='long long int' \
22628 || ac_type='long int'
22629
22630cat >>confdefs.h <<_ACEOF
22631#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022632_ACEOF
22633
22634fi
22635
22636
cristy501c8042011-05-26 17:46:28 +000022637
22638 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22639if test "x$ac_cv_type_intptr_t" = xyes; then :
22640
22641$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022642
cristy3ed852e2009-09-05 21:47:34 +000022643else
cristy501c8042011-05-26 17:46:28 +000022644 for ac_type in 'int' 'long int' 'long long int'; do
22645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22646/* end confdefs.h. */
22647$ac_includes_default
22648int
22649main ()
22650{
22651static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22652test_array [0] = 0
22653
22654 ;
22655 return 0;
22656}
22657_ACEOF
22658if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022659
22660cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022661#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022662_ACEOF
22663
cristy501c8042011-05-26 17:46:28 +000022664 ac_type=
22665fi
22666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22667 test -z "$ac_type" && break
22668 done
cristy3ed852e2009-09-05 21:47:34 +000022669fi
22670
22671
cristy3ed852e2009-09-05 21:47:34 +000022672
cristy501c8042011-05-26 17:46:28 +000022673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22674$as_echo_n "checking for long double... " >&6; }
22675if ${ac_cv_type_long_double+:} false; then :
22676 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022677else
cristy501c8042011-05-26 17:46:28 +000022678 if test "$GCC" = yes; then
22679 ac_cv_type_long_double=yes
22680 else
22681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22682/* end confdefs.h. */
22683/* The Stardent Vistra knows sizeof (long double), but does
22684 not support it. */
22685 long double foo = 0.0L;
22686int
22687main ()
22688{
22689static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22690 sizeof (double) <= sizeof (long double))];
22691test_array [0] = 0
cristy3ed852e2009-09-05 21:47:34 +000022692
cristy501c8042011-05-26 17:46:28 +000022693 ;
22694 return 0;
22695}
cristy3ed852e2009-09-05 21:47:34 +000022696_ACEOF
cristy501c8042011-05-26 17:46:28 +000022697if ac_fn_c_try_compile "$LINENO"; then :
22698 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022699else
cristy501c8042011-05-26 17:46:28 +000022700 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022701fi
cristy501c8042011-05-26 17:46:28 +000022702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22703 fi
cristy3ed852e2009-09-05 21:47:34 +000022704fi
cristy501c8042011-05-26 17:46:28 +000022705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22706$as_echo "$ac_cv_type_long_double" >&6; }
22707 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022708
cristy501c8042011-05-26 17:46:28 +000022709$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022710
cristy501c8042011-05-26 17:46:28 +000022711 fi
22712
cristy3ed852e2009-09-05 21:47:34 +000022713
cristy8b350f62009-11-15 23:12:43 +000022714 { $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 +000022715$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022716if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022717 $as_echo_n "(cached) " >&6
22718else
cristy8b350f62009-11-15 23:12:43 +000022719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022720/* end confdefs.h. */
22721#include <float.h>
22722 long double const a[] =
22723 {
22724 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22725 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22726 };
22727 long double
22728 f (long double x)
22729 {
22730 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22731 + (x ? f (x) : 'c'));
22732 }
22733
22734int
22735main ()
22736{
22737static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22738 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22739 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22740 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22741 && (int) LDBL_EPSILON == 0
22742 )];
22743test_array [0] = 0
22744
22745 ;
22746 return 0;
22747}
22748_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022749if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022750 ac_cv_type_long_double_wider=yes
22751else
cristy8b350f62009-11-15 23:12:43 +000022752 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022753fi
cristy3ed852e2009-09-05 21:47:34 +000022754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22755fi
cristy8b350f62009-11-15 23:12:43 +000022756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022757$as_echo "$ac_cv_type_long_double_wider" >&6; }
22758 if test $ac_cv_type_long_double_wider = yes; then
22759
cristy8b350f62009-11-15 23:12:43 +000022760$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022761
22762 fi
22763
22764
cristy501c8042011-05-26 17:46:28 +000022765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22766$as_echo_n "checking for long long int... " >&6; }
22767if ${ac_cv_type_long_long_int+:} false; then :
22768 $as_echo_n "(cached) " >&6
22769else
22770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22771/* end confdefs.h. */
22772
22773 /* For now, do not test the preprocessor; as of 2007 there are too many
22774 implementations with broken preprocessors. Perhaps this can
22775 be revisited in 2012. In the meantime, code should not expect
22776 #if to work with literals wider than 32 bits. */
22777 /* Test literals. */
22778 long long int ll = 9223372036854775807ll;
22779 long long int nll = -9223372036854775807LL;
22780 unsigned long long int ull = 18446744073709551615ULL;
22781 /* Test constant expressions. */
22782 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22783 ? 1 : -1)];
22784 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22785 ? 1 : -1)];
22786 int i = 63;
22787int
22788main ()
22789{
22790/* Test availability of runtime routines for shift and division. */
22791 long long int llmax = 9223372036854775807ll;
22792 unsigned long long int ullmax = 18446744073709551615ull;
22793 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22794 | (llmax / ll) | (llmax % ll)
22795 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22796 | (ullmax / ull) | (ullmax % ull));
22797 ;
22798 return 0;
22799}
22800
22801_ACEOF
22802if ac_fn_c_try_link "$LINENO"; then :
22803 if test "$cross_compiling" = yes; then :
22804 ac_cv_type_long_long_int=yes
22805else
22806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22807/* end confdefs.h. */
22808#include <limits.h>
22809 #ifndef LLONG_MAX
22810 # define HALF \
22811 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22812 # define LLONG_MAX (HALF - 1 + HALF)
22813 #endif
22814int
22815main ()
22816{
22817long long int n = 1;
22818 int i;
22819 for (i = 0; ; i++)
22820 {
22821 long long int m = n << i;
22822 if (m >> i != n)
22823 return 1;
22824 if (LLONG_MAX / 2 < m)
22825 break;
22826 }
22827 return 0;
22828 ;
22829 return 0;
22830}
22831_ACEOF
22832if ac_fn_c_try_run "$LINENO"; then :
22833 ac_cv_type_long_long_int=yes
22834else
22835 ac_cv_type_long_long_int=no
22836fi
22837rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22838 conftest.$ac_objext conftest.beam conftest.$ac_ext
22839fi
22840
22841else
22842 ac_cv_type_long_long_int=no
22843fi
22844rm -f core conftest.err conftest.$ac_objext \
22845 conftest$ac_exeext conftest.$ac_ext
22846fi
22847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22848$as_echo "$ac_cv_type_long_long_int" >&6; }
22849 if test $ac_cv_type_long_long_int = yes; then
22850
22851$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22852
22853 fi
22854
22855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22856$as_echo_n "checking for mbstate_t... " >&6; }
22857if ${ac_cv_type_mbstate_t+:} false; then :
22858 $as_echo_n "(cached) " >&6
22859else
22860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22861/* end confdefs.h. */
22862$ac_includes_default
22863# include <wchar.h>
22864int
22865main ()
22866{
22867mbstate_t x; return sizeof x;
22868 ;
22869 return 0;
22870}
22871_ACEOF
22872if ac_fn_c_try_compile "$LINENO"; then :
22873 ac_cv_type_mbstate_t=yes
22874else
22875 ac_cv_type_mbstate_t=no
22876fi
22877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22878fi
22879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22880$as_echo "$ac_cv_type_mbstate_t" >&6; }
22881 if test $ac_cv_type_mbstate_t = yes; then
22882
22883$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22884
22885 else
22886
22887$as_echo "#define mbstate_t int" >>confdefs.h
22888
22889 fi
22890ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22891if test "x$ac_cv_type_mode_t" = xyes; then :
22892
22893else
22894
22895cat >>confdefs.h <<_ACEOF
22896#define mode_t int
22897_ACEOF
22898
22899fi
22900
22901ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22902if test "x$ac_cv_type_off_t" = xyes; then :
22903
22904else
22905
22906cat >>confdefs.h <<_ACEOF
22907#define off_t long int
22908_ACEOF
22909
22910fi
22911
22912ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22913if test "x$ac_cv_type_pid_t" = xyes; then :
22914
22915else
22916
22917cat >>confdefs.h <<_ACEOF
22918#define pid_t int
22919_ACEOF
22920
22921fi
22922
22923ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22924if test "x$ac_cv_type_size_t" = xyes; then :
22925
22926else
22927
22928cat >>confdefs.h <<_ACEOF
22929#define size_t unsigned int
22930_ACEOF
22931
22932fi
22933
22934ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22935if test "x$ac_cv_type_ssize_t" = xyes; then :
22936
22937else
22938
22939cat >>confdefs.h <<_ACEOF
22940#define ssize_t int
22941_ACEOF
22942
22943fi
22944
22945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22946$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22947if ${ac_cv_type_uid_t+:} false; then :
22948 $as_echo_n "(cached) " >&6
22949else
22950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22951/* end confdefs.h. */
22952#include <sys/types.h>
22953
22954_ACEOF
22955if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22956 $EGREP "uid_t" >/dev/null 2>&1; then :
22957 ac_cv_type_uid_t=yes
22958else
22959 ac_cv_type_uid_t=no
22960fi
22961rm -f conftest*
22962
22963fi
22964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22965$as_echo "$ac_cv_type_uid_t" >&6; }
22966if test $ac_cv_type_uid_t = no; then
22967
22968$as_echo "#define uid_t int" >>confdefs.h
22969
22970
22971$as_echo "#define gid_t int" >>confdefs.h
22972
22973fi
22974
22975ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22976case $ac_cv_c_uint8_t in #(
22977 no|yes) ;; #(
22978 *)
22979
22980$as_echo "#define _UINT8_T 1" >>confdefs.h
22981
22982
22983cat >>confdefs.h <<_ACEOF
22984#define uint8_t $ac_cv_c_uint8_t
22985_ACEOF
22986;;
22987 esac
22988
22989ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
22990case $ac_cv_c_uint16_t in #(
22991 no|yes) ;; #(
22992 *)
22993
22994
22995cat >>confdefs.h <<_ACEOF
22996#define uint16_t $ac_cv_c_uint16_t
22997_ACEOF
22998;;
22999 esac
23000
23001ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23002case $ac_cv_c_uint32_t in #(
23003 no|yes) ;; #(
23004 *)
23005
23006$as_echo "#define _UINT32_T 1" >>confdefs.h
23007
23008
23009cat >>confdefs.h <<_ACEOF
23010#define uint32_t $ac_cv_c_uint32_t
23011_ACEOF
23012;;
23013 esac
23014
23015ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23016case $ac_cv_c_uint64_t in #(
23017 no|yes) ;; #(
23018 *)
23019
23020$as_echo "#define _UINT64_T 1" >>confdefs.h
23021
23022
23023cat >>confdefs.h <<_ACEOF
23024#define uint64_t $ac_cv_c_uint64_t
23025_ACEOF
23026;;
23027 esac
23028
23029
23030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23031$as_echo_n "checking for unsigned long long int... " >&6; }
23032if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23033 $as_echo_n "(cached) " >&6
23034else
23035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23036/* end confdefs.h. */
23037
23038 /* For now, do not test the preprocessor; as of 2007 there are too many
23039 implementations with broken preprocessors. Perhaps this can
23040 be revisited in 2012. In the meantime, code should not expect
23041 #if to work with literals wider than 32 bits. */
23042 /* Test literals. */
23043 long long int ll = 9223372036854775807ll;
23044 long long int nll = -9223372036854775807LL;
23045 unsigned long long int ull = 18446744073709551615ULL;
23046 /* Test constant expressions. */
23047 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23048 ? 1 : -1)];
23049 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23050 ? 1 : -1)];
23051 int i = 63;
23052int
23053main ()
23054{
23055/* Test availability of runtime routines for shift and division. */
23056 long long int llmax = 9223372036854775807ll;
23057 unsigned long long int ullmax = 18446744073709551615ull;
23058 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23059 | (llmax / ll) | (llmax % ll)
23060 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23061 | (ullmax / ull) | (ullmax % ull));
23062 ;
23063 return 0;
23064}
23065
23066_ACEOF
23067if ac_fn_c_try_link "$LINENO"; then :
23068 ac_cv_type_unsigned_long_long_int=yes
23069else
23070 ac_cv_type_unsigned_long_long_int=no
23071fi
23072rm -f core conftest.err conftest.$ac_objext \
23073 conftest$ac_exeext conftest.$ac_ext
23074fi
23075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23076$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23077 if test $ac_cv_type_unsigned_long_long_int = yes; then
23078
23079$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23080
23081 fi
23082
23083
23084
23085 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23086if test "x$ac_cv_type_uintmax_t" = xyes; then :
23087
23088$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23089
23090else
23091 test $ac_cv_type_unsigned_long_long_int = yes \
23092 && ac_type='unsigned long long int' \
23093 || ac_type='unsigned long int'
23094
23095cat >>confdefs.h <<_ACEOF
23096#define uintmax_t $ac_type
23097_ACEOF
23098
23099fi
23100
23101
23102
23103 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23104if test "x$ac_cv_type_uintptr_t" = xyes; then :
23105
23106$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23107
23108else
23109 for ac_type in 'unsigned int' 'unsigned long int' \
23110 'unsigned long long int'; do
23111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23112/* end confdefs.h. */
23113$ac_includes_default
23114int
23115main ()
23116{
23117static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23118test_array [0] = 0
23119
23120 ;
23121 return 0;
23122}
23123_ACEOF
23124if ac_fn_c_try_compile "$LINENO"; then :
23125
23126cat >>confdefs.h <<_ACEOF
23127#define uintptr_t $ac_type
23128_ACEOF
23129
23130 ac_type=
23131fi
23132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23133 test -z "$ac_type" && break
23134 done
23135fi
23136
23137
23138
23139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23140$as_echo_n "checking for unsigned long long int... " >&6; }
23141if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23142 $as_echo_n "(cached) " >&6
23143else
23144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23145/* end confdefs.h. */
23146
23147 /* For now, do not test the preprocessor; as of 2007 there are too many
23148 implementations with broken preprocessors. Perhaps this can
23149 be revisited in 2012. In the meantime, code should not expect
23150 #if to work with literals wider than 32 bits. */
23151 /* Test literals. */
23152 long long int ll = 9223372036854775807ll;
23153 long long int nll = -9223372036854775807LL;
23154 unsigned long long int ull = 18446744073709551615ULL;
23155 /* Test constant expressions. */
23156 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23157 ? 1 : -1)];
23158 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23159 ? 1 : -1)];
23160 int i = 63;
23161int
23162main ()
23163{
23164/* Test availability of runtime routines for shift and division. */
23165 long long int llmax = 9223372036854775807ll;
23166 unsigned long long int ullmax = 18446744073709551615ull;
23167 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23168 | (llmax / ll) | (llmax % ll)
23169 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23170 | (ullmax / ull) | (ullmax % ull));
23171 ;
23172 return 0;
23173}
23174
23175_ACEOF
23176if ac_fn_c_try_link "$LINENO"; then :
23177 ac_cv_type_unsigned_long_long_int=yes
23178else
23179 ac_cv_type_unsigned_long_long_int=no
23180fi
23181rm -f core conftest.err conftest.$ac_objext \
23182 conftest$ac_exeext conftest.$ac_ext
23183fi
23184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23185$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23186 if test $ac_cv_type_unsigned_long_long_int = yes; then
23187
23188$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23189
23190 fi
23191
23192
cristy3ed852e2009-09-05 21:47:34 +000023193# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23194# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023196$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023197if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023198 $as_echo_n "(cached) " >&6
23199else
cristy8b350f62009-11-15 23:12:43 +000023200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023201/* end confdefs.h. */
23202$ac_includes_default
23203int
23204main ()
23205{
23206static int test_array [1 - 2 * !(((char) -1) < 0)];
23207test_array [0] = 0
23208
23209 ;
23210 return 0;
23211}
23212_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023213if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023214 ac_cv_c_char_unsigned=no
23215else
cristy8b350f62009-11-15 23:12:43 +000023216 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023217fi
cristy3ed852e2009-09-05 21:47:34 +000023218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23219fi
cristy8b350f62009-11-15 23:12:43 +000023220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023221$as_echo "$ac_cv_c_char_unsigned" >&6; }
23222if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023223 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023224
23225fi
23226
23227
23228# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23229# The cast to long int works around a bug in the HP C Compiler
23230# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23231# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23232# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023234$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023235if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023236 $as_echo_n "(cached) " >&6
23237else
cristy8b350f62009-11-15 23:12:43 +000023238 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 +000023239
cristy3ed852e2009-09-05 21:47:34 +000023240else
cristy8b350f62009-11-15 23:12:43 +000023241 if test "$ac_cv_type_signed_short" = yes; then
23242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023244as_fn_error 77 "cannot compute sizeof (signed short)
23245See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023246 else
23247 ac_cv_sizeof_signed_short=0
23248 fi
23249fi
cristy8b350f62009-11-15 23:12:43 +000023250
cristy3ed852e2009-09-05 21:47:34 +000023251fi
cristy8b350f62009-11-15 23:12:43 +000023252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023253$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23254
23255
23256
23257cat >>confdefs.h <<_ACEOF
23258#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23259_ACEOF
23260
23261
23262
23263# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23264# The cast to long int works around a bug in the HP C Compiler
23265# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23266# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23267# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023269$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023270if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023271 $as_echo_n "(cached) " >&6
23272else
cristy8b350f62009-11-15 23:12:43 +000023273 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 +000023274
cristy3ed852e2009-09-05 21:47:34 +000023275else
cristy8b350f62009-11-15 23:12:43 +000023276 if test "$ac_cv_type_unsigned_short" = yes; then
23277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023279as_fn_error 77 "cannot compute sizeof (unsigned short)
23280See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023281 else
23282 ac_cv_sizeof_unsigned_short=0
23283 fi
23284fi
cristy8b350f62009-11-15 23:12:43 +000023285
cristy3ed852e2009-09-05 21:47:34 +000023286fi
cristy8b350f62009-11-15 23:12:43 +000023287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023288$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23289
23290
23291
23292cat >>confdefs.h <<_ACEOF
23293#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23294_ACEOF
23295
23296
23297
23298# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23299# The cast to long int works around a bug in the HP C Compiler
23300# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23301# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23302# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023304$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023305if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023306 $as_echo_n "(cached) " >&6
23307else
cristy8b350f62009-11-15 23:12:43 +000023308 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 +000023309
cristy3ed852e2009-09-05 21:47:34 +000023310else
cristy8b350f62009-11-15 23:12:43 +000023311 if test "$ac_cv_type_signed_int" = yes; then
23312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023314as_fn_error 77 "cannot compute sizeof (signed int)
23315See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023316 else
23317 ac_cv_sizeof_signed_int=0
23318 fi
23319fi
cristy8b350f62009-11-15 23:12:43 +000023320
cristy3ed852e2009-09-05 21:47:34 +000023321fi
cristy8b350f62009-11-15 23:12:43 +000023322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023323$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23324
23325
23326
23327cat >>confdefs.h <<_ACEOF
23328#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23329_ACEOF
23330
23331
23332
23333# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23334# The cast to long int works around a bug in the HP C Compiler
23335# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23336# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23337# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023339$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023340if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023341 $as_echo_n "(cached) " >&6
23342else
cristy8b350f62009-11-15 23:12:43 +000023343 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 +000023344
cristy3ed852e2009-09-05 21:47:34 +000023345else
cristy8b350f62009-11-15 23:12:43 +000023346 if test "$ac_cv_type_unsigned_int" = yes; then
23347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023349as_fn_error 77 "cannot compute sizeof (unsigned int)
23350See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023351 else
23352 ac_cv_sizeof_unsigned_int=0
23353 fi
23354fi
cristy8b350f62009-11-15 23:12:43 +000023355
cristy3ed852e2009-09-05 21:47:34 +000023356fi
cristy8b350f62009-11-15 23:12:43 +000023357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023358$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23359
23360
23361
23362cat >>confdefs.h <<_ACEOF
23363#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23364_ACEOF
23365
23366
23367
23368# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23369# The cast to long int works around a bug in the HP C Compiler
23370# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23371# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23372# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023374$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023375if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023376 $as_echo_n "(cached) " >&6
23377else
cristy8b350f62009-11-15 23:12:43 +000023378 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 +000023379
cristy3ed852e2009-09-05 21:47:34 +000023380else
cristy8b350f62009-11-15 23:12:43 +000023381 if test "$ac_cv_type_signed_long" = yes; then
23382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023384as_fn_error 77 "cannot compute sizeof (signed long)
23385See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023386 else
23387 ac_cv_sizeof_signed_long=0
23388 fi
23389fi
cristy8b350f62009-11-15 23:12:43 +000023390
cristy3ed852e2009-09-05 21:47:34 +000023391fi
cristy8b350f62009-11-15 23:12:43 +000023392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023393$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23394
23395
23396
23397cat >>confdefs.h <<_ACEOF
23398#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23399_ACEOF
23400
23401
23402
23403# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23404# The cast to long int works around a bug in the HP C Compiler
23405# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23406# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23407# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023409$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023410if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023411 $as_echo_n "(cached) " >&6
23412else
cristy8b350f62009-11-15 23:12:43 +000023413 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 +000023414
cristy3ed852e2009-09-05 21:47:34 +000023415else
cristy8b350f62009-11-15 23:12:43 +000023416 if test "$ac_cv_type_unsigned_long" = yes; then
23417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023419as_fn_error 77 "cannot compute sizeof (unsigned long)
23420See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023421 else
23422 ac_cv_sizeof_unsigned_long=0
23423 fi
23424fi
cristy8b350f62009-11-15 23:12:43 +000023425
cristy3ed852e2009-09-05 21:47:34 +000023426fi
cristy8b350f62009-11-15 23:12:43 +000023427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023428$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23429
23430
23431
23432cat >>confdefs.h <<_ACEOF
23433#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23434_ACEOF
23435
23436
23437
23438# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23439# 'signed long long' is not supported then the value defined is zero.
23440# The cast to long int works around a bug in the HP C Compiler
23441# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23442# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23443# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023445$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023446if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023447 $as_echo_n "(cached) " >&6
23448else
cristy8b350f62009-11-15 23:12:43 +000023449 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 +000023450
cristy3ed852e2009-09-05 21:47:34 +000023451else
cristy8b350f62009-11-15 23:12:43 +000023452 if test "$ac_cv_type_signed_long_long" = yes; then
23453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023455as_fn_error 77 "cannot compute sizeof (signed long long)
23456See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023457 else
23458 ac_cv_sizeof_signed_long_long=0
23459 fi
23460fi
cristy8b350f62009-11-15 23:12:43 +000023461
cristy3ed852e2009-09-05 21:47:34 +000023462fi
cristy8b350f62009-11-15 23:12:43 +000023463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023464$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23465
23466
23467
23468cat >>confdefs.h <<_ACEOF
23469#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23470_ACEOF
23471
23472
23473
23474# Obtain size of a 'unsigned long long' and define as
23475# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23476# supported then the value defined is zero.
23477# The cast to long int works around a bug in the HP C Compiler
23478# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23479# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23480# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023482$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023483if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023484 $as_echo_n "(cached) " >&6
23485else
cristy8b350f62009-11-15 23:12:43 +000023486 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 +000023487
cristy3ed852e2009-09-05 21:47:34 +000023488else
cristy8b350f62009-11-15 23:12:43 +000023489 if test "$ac_cv_type_unsigned_long_long" = yes; then
23490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023491$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023492as_fn_error 77 "cannot compute sizeof (unsigned long long)
23493See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023494 else
23495 ac_cv_sizeof_unsigned_long_long=0
23496 fi
23497fi
cristy8b350f62009-11-15 23:12:43 +000023498
cristy3ed852e2009-09-05 21:47:34 +000023499fi
cristy8b350f62009-11-15 23:12:43 +000023500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023501$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23502
23503
23504
23505cat >>confdefs.h <<_ACEOF
23506#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23507_ACEOF
23508
23509
23510
23511# Obtain size of off_t and define as SIZEOF_OFF_T
23512# The cast to long int works around a bug in the HP C Compiler
23513# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23514# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23515# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023517$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023518if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023519 $as_echo_n "(cached) " >&6
23520else
cristy8b350f62009-11-15 23:12:43 +000023521 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 +000023522
cristy3ed852e2009-09-05 21:47:34 +000023523else
cristy8b350f62009-11-15 23:12:43 +000023524 if test "$ac_cv_type_off_t" = yes; then
23525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023527as_fn_error 77 "cannot compute sizeof (off_t)
23528See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023529 else
23530 ac_cv_sizeof_off_t=0
23531 fi
23532fi
cristy8b350f62009-11-15 23:12:43 +000023533
cristy3ed852e2009-09-05 21:47:34 +000023534fi
cristy8b350f62009-11-15 23:12:43 +000023535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023536$as_echo "$ac_cv_sizeof_off_t" >&6; }
23537
23538
23539
23540cat >>confdefs.h <<_ACEOF
23541#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23542_ACEOF
23543
23544
23545
23546# Obtain size of size_t and define as SIZEOF_SIZE_T
23547# The cast to long int works around a bug in the HP C Compiler
23548# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23549# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23550# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023552$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023553if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023554 $as_echo_n "(cached) " >&6
23555else
cristy8b350f62009-11-15 23:12:43 +000023556 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 +000023557
cristy3ed852e2009-09-05 21:47:34 +000023558else
cristy8b350f62009-11-15 23:12:43 +000023559 if test "$ac_cv_type_size_t" = yes; then
23560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023562as_fn_error 77 "cannot compute sizeof (size_t)
23563See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023564 else
23565 ac_cv_sizeof_size_t=0
23566 fi
23567fi
cristy8b350f62009-11-15 23:12:43 +000023568
cristy3ed852e2009-09-05 21:47:34 +000023569fi
cristy8b350f62009-11-15 23:12:43 +000023570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023571$as_echo "$ac_cv_sizeof_size_t" >&6; }
23572
23573
23574
23575cat >>confdefs.h <<_ACEOF
23576#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23577_ACEOF
23578
23579
23580
cristy330e9352010-06-01 18:42:49 +000023581# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23582# The cast to long int works around a bug in the HP C Compiler
23583# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23584# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23585# This bug is HP SR number 8606223364.
23586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23587$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023588if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023589 $as_echo_n "(cached) " >&6
23590else
23591 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23592
23593else
23594 if test "$ac_cv_type_ssize_t" = yes; then
23595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023597as_fn_error 77 "cannot compute sizeof (ssize_t)
23598See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023599 else
23600 ac_cv_sizeof_ssize_t=0
23601 fi
23602fi
23603
23604fi
23605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23606$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23607
23608
23609
23610cat >>confdefs.h <<_ACEOF
23611#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23612_ACEOF
23613
23614
23615
cristy3ed852e2009-09-05 21:47:34 +000023616# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23617# The cast to long int works around a bug in the HP C Compiler
23618# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23619# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23620# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023622$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023623if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023624 $as_echo_n "(cached) " >&6
23625else
cristy8b350f62009-11-15 23:12:43 +000023626 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 +000023627
cristy3ed852e2009-09-05 21:47:34 +000023628else
cristy8b350f62009-11-15 23:12:43 +000023629 if test "$ac_cv_type_unsigned_intp" = yes; then
23630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023632as_fn_error 77 "cannot compute sizeof (unsigned int*)
23633See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023634 else
23635 ac_cv_sizeof_unsigned_intp=0
23636 fi
23637fi
cristy8b350f62009-11-15 23:12:43 +000023638
cristy3ed852e2009-09-05 21:47:34 +000023639fi
cristy8b350f62009-11-15 23:12:43 +000023640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023641$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23642
23643
23644
23645cat >>confdefs.h <<_ACEOF
23646#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23647_ACEOF
23648
23649
23650
23651#
23652# Compute sized types for current CPU and compiler options.
23653#
23654
cristy8b350f62009-11-15 23:12:43 +000023655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023656$as_echo_n "checking for signed 8-bit type... " >&6; }
23657INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000023658{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
23659$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023660
23661
cristy8b350f62009-11-15 23:12:43 +000023662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023663$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23664UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000023665{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
23666$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023667
23668
cristy8b350f62009-11-15 23:12:43 +000023669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023670$as_echo_n "checking for signed 16-bit type... " >&6; }
23671INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000023672{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
23673$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023674
23675
cristy8b350f62009-11-15 23:12:43 +000023676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023677$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23678UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000023679{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
23680$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023681
23682
cristy8b350f62009-11-15 23:12:43 +000023683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023684$as_echo_n "checking for signed 32-bit type... " >&6; }
23685INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023686INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023687if test $ac_cv_sizeof_signed_int -eq 4; then
23688 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023689 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023690elif test $ac_cv_sizeof_signed_long -eq 4; then
23691 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023692 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023693fi
cristy09b53e12011-10-14 12:47:22 +000023694{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
23695$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023696
23697
cristy6d5e20f2011-04-25 13:48:54 +000023698
cristy8b350f62009-11-15 23:12:43 +000023699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023700$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23701UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023702UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023703if test $ac_cv_sizeof_unsigned_int -eq 4; then
23704 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023705 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023706elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23707 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023708 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023709fi
cristy09b53e12011-10-14 12:47:22 +000023710{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
23711$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023712
23713
cristy6d5e20f2011-04-25 13:48:54 +000023714
cristy8b350f62009-11-15 23:12:43 +000023715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023716$as_echo_n "checking for signed 64-bit type... " >&6; }
23717INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023718INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023719if test $ac_cv_sizeof_signed_long -eq 8; then
23720 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023721 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023722elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23723 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023724 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023725fi
cristy6d5e20f2011-04-25 13:48:54 +000023726case "${build_os}" in
23727 mingw* )
23728 INT64_F='"I64"'
23729 ;;
23730esac
cristy09b53e12011-10-14 12:47:22 +000023731{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
23732$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023733
23734
cristy6d5e20f2011-04-25 13:48:54 +000023735
cristy8b350f62009-11-15 23:12:43 +000023736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023737$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23738UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023739UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023740if test $ac_cv_sizeof_unsigned_long -eq 8; then
23741 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023742 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023743elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23744 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023745 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023746fi
cristy6d5e20f2011-04-25 13:48:54 +000023747case "${build_os}" in
23748 mingw* )
23749 UINT64_F='"I64"'
23750 ;;
23751esac
cristy09b53e12011-10-14 12:47:22 +000023752{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
23753$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023754
23755
cristy6d5e20f2011-04-25 13:48:54 +000023756
cristy8b350f62009-11-15 23:12:43 +000023757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023758$as_echo_n "checking for unsigned maximum type... " >&6; }
23759UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023760UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023761if test "$UINT64_T" != 'none'; then
23762 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023763 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023764elif test "$UINT32_T" != 'none'; then
23765 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023766 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023767fi
cristy09b53e12011-10-14 12:47:22 +000023768{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
23769$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023770
23771
cristy6d5e20f2011-04-25 13:48:54 +000023772
cristy8b350f62009-11-15 23:12:43 +000023773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023774$as_echo_n "checking for pointer difference type... " >&6; }
23775UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023776UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023777if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23778 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023779 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023780elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23781 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023782 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023783fi
cristy09b53e12011-10-14 12:47:22 +000023784{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
23785$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023786
23787
cristy6d5e20f2011-04-25 13:48:54 +000023788
cristy8b350f62009-11-15 23:12:43 +000023789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023790$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023792/* end confdefs.h. */
23793
23794int
23795main ()
23796{
23797{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23798 ;
23799 return 0;
23800}
23801_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023802if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023803 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23804$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023805else
cristy09b53e12011-10-14 12:47:22 +000023806 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23807$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000023808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023809$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023811/* end confdefs.h. */
23812
23813int
23814main ()
23815{
23816{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23817 ;
23818 return 0;
23819}
23820_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023821if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023822 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23823$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023824
cristy8b350f62009-11-15 23:12:43 +000023825$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023826
23827else
cristy09b53e12011-10-14 12:47:22 +000023828 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23829$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023830
cristy8b350f62009-11-15 23:12:43 +000023831$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023832
23833fi
cristy3ed852e2009-09-05 21:47:34 +000023834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23835fi
cristy3ed852e2009-09-05 21:47:34 +000023836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23837
23838########
23839#
23840# Check for functions
23841#
23842########
cristy73bd4a52010-10-05 11:24:23 +000023843for ac_header in stdlib.h unistd.h
23844do :
23845 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23846ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023847if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023848 cat >>confdefs.h <<_ACEOF
23849#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23850_ACEOF
23851
23852fi
23853
23854done
23855
23856for ac_func in getpagesize
23857do :
23858 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023859if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023860 cat >>confdefs.h <<_ACEOF
23861#define HAVE_GETPAGESIZE 1
23862_ACEOF
23863
23864fi
23865done
23866
23867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23868$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023869if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023870 $as_echo_n "(cached) " >&6
23871else
23872 if test "$cross_compiling" = yes; then :
23873 magick_cv_func_mmap_fileio=no
23874else
23875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23876/* end confdefs.h. */
23877$ac_includes_default
23878/* malloc might have been renamed as rpl_malloc. */
23879#undef malloc
23880
23881/*
23882 This test is derived from GNU Autoconf's similar macro.
23883 The purpose of this test is to verify that files may be memory
23884 mapped, and that memory mapping and file I/O are coherent.
23885
23886 The test creates a test file, memory maps the file, updates
23887 the file using the memory map, and then reads the file using
23888 file I/O to verify that the file contains the updates.
23889*/
23890
23891#include <fcntl.h>
23892#include <sys/mman.h>
23893
23894#if !STDC_HEADERS && !HAVE_STDLIB_H
23895char *malloc ();
23896#endif
23897
23898/* This mess was copied from the GNU getpagesize.h. */
23899#if !HAVE_GETPAGESIZE
23900/* Assume that all systems that can run configure have sys/param.h. */
23901# if !HAVE_SYS_PARAM_H
23902# define HAVE_SYS_PARAM_H 1
23903# endif
23904
23905# ifdef _SC_PAGESIZE
23906# define getpagesize() sysconf(_SC_PAGESIZE)
23907# else /* no _SC_PAGESIZE */
23908# if HAVE_SYS_PARAM_H
23909# include <sys/param.h>
23910# ifdef EXEC_PAGESIZE
23911# define getpagesize() EXEC_PAGESIZE
23912# else /* no EXEC_PAGESIZE */
23913# ifdef NBPG
23914# define getpagesize() NBPG * CLSIZE
23915# ifndef CLSIZE
23916# define CLSIZE 1
23917# endif /* no CLSIZE */
23918# else /* no NBPG */
23919# ifdef NBPC
23920# define getpagesize() NBPC
23921# else /* no NBPC */
23922# ifdef PAGESIZE
23923# define getpagesize() PAGESIZE
23924# endif /* PAGESIZE */
23925# endif /* no NBPC */
23926# endif /* no NBPG */
23927# endif /* no EXEC_PAGESIZE */
23928# else /* no HAVE_SYS_PARAM_H */
23929# define getpagesize() 8192 /* punt totally */
23930# endif /* no HAVE_SYS_PARAM_H */
23931# endif /* no _SC_PAGESIZE */
23932
23933#endif /* no HAVE_GETPAGESIZE */
23934
23935int
23936main ()
23937{
23938 char *data, *data2, *data3;
23939 int i, pagesize;
23940 int fd;
23941
23942 pagesize = getpagesize ();
23943
23944 /* First, make a file with some known garbage in it. */
23945 data = (char *) malloc (pagesize);
23946 if (!data)
23947 exit (1);
23948 for (i = 0; i < pagesize; ++i)
23949 *(data + i) = rand ();
23950 umask (0);
23951 fd = creat ("conftest.mmap", 0600);
23952 if (fd < 0)
23953 exit (1);
23954 if (write (fd, data, pagesize) != pagesize)
23955 exit (1);
23956 close (fd);
23957
23958 /* Mmap the file as read/write/shared and verify that we see the
23959 same garbage. */
23960 fd = open ("conftest.mmap", O_RDWR);
23961 if (fd < 0)
23962 exit (1);
23963 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23964 if (data2 == 0)
23965 exit (1);
23966 for (i = 0; i < pagesize; ++i)
23967 if (*(data + i) != *(data2 + i))
23968 exit (1);
23969
23970 /* Finally, make sure that changes to the mapped area
23971 percolate back to the file as seen by read(). */
23972 for (i = 0; i < pagesize; ++i)
23973 *(data2 + i) = *(data2 + i) + 1;
23974 data3 = (char *) malloc (pagesize);
23975 if (!data3)
23976 exit (1);
23977 if (read (fd, data3, pagesize) != pagesize)
23978 exit (1);
23979 for (i = 0; i < pagesize; ++i)
23980 if (*(data2 + i) != *(data3 + i))
23981 exit (1);
23982 close (fd);
23983 exit (0);
23984}
23985_ACEOF
23986if ac_fn_c_try_run "$LINENO"; then :
23987 magick_cv_func_mmap_fileio=yes
23988else
23989 magick_cv_func_mmap_fileio=no
23990fi
23991rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23992 conftest.$ac_objext conftest.beam conftest.$ac_ext
23993fi
23994
23995fi
23996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23997$as_echo "$magick_cv_func_mmap_fileio" >&6; }
23998if test $magick_cv_func_mmap_fileio = yes; then
23999
24000$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24001
24002fi
24003rm -f conftest.mmap
24004
cristy8b350f62009-11-15 23:12:43 +000024005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024006$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024007if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024008 $as_echo_n "(cached) " >&6
24009else
cristy8b350f62009-11-15 23:12:43 +000024010 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024011 ac_cv_func_closedir_void=yes
24012else
cristy8b350f62009-11-15 23:12:43 +000024013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024014/* end confdefs.h. */
24015$ac_includes_default
24016#include <$ac_header_dirent>
24017#ifndef __cplusplus
24018int closedir ();
24019#endif
24020
24021int
24022main ()
24023{
24024return closedir (opendir (".")) != 0;
24025 ;
24026 return 0;
24027}
24028_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024029if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024030 ac_cv_func_closedir_void=no
24031else
cristy8b350f62009-11-15 23:12:43 +000024032 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024033fi
cristy8b350f62009-11-15 23:12:43 +000024034rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24035 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024036fi
24037
cristy3ed852e2009-09-05 21:47:34 +000024038fi
cristy8b350f62009-11-15 23:12:43 +000024039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024040$as_echo "$ac_cv_func_closedir_void" >&6; }
24041if test $ac_cv_func_closedir_void = yes; then
24042
cristy8b350f62009-11-15 23:12:43 +000024043$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024044
24045fi
24046
cristycd4c5312009-11-22 01:19:08 +000024047
24048
24049
24050 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024051do :
24052 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024053ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24054"
cristy98dddb52010-11-04 00:30:15 +000024055if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024056 cat >>confdefs.h <<_ACEOF
24057#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24058_ACEOF
24059
24060fi
24061
24062done
24063
cristycd4c5312009-11-22 01:19:08 +000024064
24065
24066
24067
24068
24069
24070
cristy3ed852e2009-09-05 21:47:34 +000024071for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024072do :
24073 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024074if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024075 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024076#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024077_ACEOF
24078
24079fi
24080done
24081
cristy8b350f62009-11-15 23:12:43 +000024082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024083$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024084if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024085 $as_echo_n "(cached) " >&6
24086else
cristy8b350f62009-11-15 23:12:43 +000024087 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024088 ac_cv_func_mmap_fixed_mapped=no
24089else
cristy8b350f62009-11-15 23:12:43 +000024090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024091/* end confdefs.h. */
24092$ac_includes_default
24093/* malloc might have been renamed as rpl_malloc. */
24094#undef malloc
24095
24096/* Thanks to Mike Haertel and Jim Avera for this test.
24097 Here is a matrix of mmap possibilities:
24098 mmap private not fixed
24099 mmap private fixed at somewhere currently unmapped
24100 mmap private fixed at somewhere already mapped
24101 mmap shared not fixed
24102 mmap shared fixed at somewhere currently unmapped
24103 mmap shared fixed at somewhere already mapped
24104 For private mappings, we should verify that changes cannot be read()
24105 back from the file, nor mmap's back from the file at a different
24106 address. (There have been systems where private was not correctly
24107 implemented like the infamous i386 svr4.0, and systems where the
24108 VM page cache was not coherent with the file system buffer cache
24109 like early versions of FreeBSD and possibly contemporary NetBSD.)
24110 For shared mappings, we should conversely verify that changes get
24111 propagated back to all the places they're supposed to be.
24112
24113 Grep wants private fixed already mapped.
24114 The main things grep needs to know about mmap are:
24115 * does it exist and is it safe to write into the mmap'd area
24116 * how to use it (BSD variants) */
24117
24118#include <fcntl.h>
24119#include <sys/mman.h>
24120
24121#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24122char *malloc ();
24123#endif
24124
24125/* This mess was copied from the GNU getpagesize.h. */
24126#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024127# ifdef _SC_PAGESIZE
24128# define getpagesize() sysconf(_SC_PAGESIZE)
24129# else /* no _SC_PAGESIZE */
24130# ifdef HAVE_SYS_PARAM_H
24131# include <sys/param.h>
24132# ifdef EXEC_PAGESIZE
24133# define getpagesize() EXEC_PAGESIZE
24134# else /* no EXEC_PAGESIZE */
24135# ifdef NBPG
24136# define getpagesize() NBPG * CLSIZE
24137# ifndef CLSIZE
24138# define CLSIZE 1
24139# endif /* no CLSIZE */
24140# else /* no NBPG */
24141# ifdef NBPC
24142# define getpagesize() NBPC
24143# else /* no NBPC */
24144# ifdef PAGESIZE
24145# define getpagesize() PAGESIZE
24146# endif /* PAGESIZE */
24147# endif /* no NBPC */
24148# endif /* no NBPG */
24149# endif /* no EXEC_PAGESIZE */
24150# else /* no HAVE_SYS_PARAM_H */
24151# define getpagesize() 8192 /* punt totally */
24152# endif /* no HAVE_SYS_PARAM_H */
24153# endif /* no _SC_PAGESIZE */
24154
24155#endif /* no HAVE_GETPAGESIZE */
24156
24157int
24158main ()
24159{
24160 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024161 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024162 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024163 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024164
24165 pagesize = getpagesize ();
24166
24167 /* First, make a file with some known garbage in it. */
24168 data = (char *) malloc (pagesize);
24169 if (!data)
24170 return 1;
24171 for (i = 0; i < pagesize; ++i)
24172 *(data + i) = rand ();
24173 umask (0);
24174 fd = creat ("conftest.mmap", 0600);
24175 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024176 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024177 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024178 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024179 close (fd);
24180
cristycd4c5312009-11-22 01:19:08 +000024181 /* Next, check that the tail of a page is zero-filled. File must have
24182 non-zero length, otherwise we risk SIGBUS for entire page. */
24183 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24184 if (fd2 < 0)
24185 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024186 cdata2 = "";
24187 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024188 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024189 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024190 if (data2 == MAP_FAILED)
24191 return 6;
24192 for (i = 0; i < pagesize; ++i)
24193 if (*(data2 + i))
24194 return 7;
24195 close (fd2);
24196 if (munmap (data2, pagesize))
24197 return 8;
24198
cristy3ed852e2009-09-05 21:47:34 +000024199 /* Next, try to mmap the file at a fixed address which already has
24200 something else allocated at it. If we can, also make sure that
24201 we see the same garbage. */
24202 fd = open ("conftest.mmap", O_RDWR);
24203 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024204 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024205 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24206 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024207 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024208 for (i = 0; i < pagesize; ++i)
24209 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024210 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024211
24212 /* Finally, make sure that changes to the mapped area do not
24213 percolate back to the file as seen by read(). (This is a bug on
24214 some variants of i386 svr4.0.) */
24215 for (i = 0; i < pagesize; ++i)
24216 *(data2 + i) = *(data2 + i) + 1;
24217 data3 = (char *) malloc (pagesize);
24218 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024219 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024220 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024221 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024222 for (i = 0; i < pagesize; ++i)
24223 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024224 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024225 close (fd);
24226 return 0;
24227}
24228_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024229if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024230 ac_cv_func_mmap_fixed_mapped=yes
24231else
cristy8b350f62009-11-15 23:12:43 +000024232 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024233fi
cristy8b350f62009-11-15 23:12:43 +000024234rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24235 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024236fi
24237
cristy3ed852e2009-09-05 21:47:34 +000024238fi
cristy8b350f62009-11-15 23:12:43 +000024239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024240$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24241if test $ac_cv_func_mmap_fixed_mapped = yes; then
24242
cristy8b350f62009-11-15 23:12:43 +000024243$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024244
24245fi
cristycd4c5312009-11-22 01:19:08 +000024246rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024247
cristy3ed852e2009-09-05 21:47:34 +000024248for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024249do :
24250 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024251if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024252 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024253#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024254_ACEOF
24255
24256fi
24257
24258done
24259
cristy3ed852e2009-09-05 21:47:34 +000024260for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024261do :
24262 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24263ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024264if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024265 cat >>confdefs.h <<_ACEOF
24266#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24267_ACEOF
24268
24269fi
24270done
24271
24272if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024274$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024275if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024276 $as_echo_n "(cached) " >&6
24277else
cristy8b350f62009-11-15 23:12:43 +000024278 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024279 ac_cv_func_fork_works=cross
24280else
cristy8b350f62009-11-15 23:12:43 +000024281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024282/* end confdefs.h. */
24283$ac_includes_default
24284int
24285main ()
24286{
24287
24288 /* By Ruediger Kuhlmann. */
24289 return fork () < 0;
24290
24291 ;
24292 return 0;
24293}
24294_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024295if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024296 ac_cv_func_fork_works=yes
24297else
cristy8b350f62009-11-15 23:12:43 +000024298 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024299fi
cristy8b350f62009-11-15 23:12:43 +000024300rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24301 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024302fi
24303
cristy3ed852e2009-09-05 21:47:34 +000024304fi
cristy8b350f62009-11-15 23:12:43 +000024305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024306$as_echo "$ac_cv_func_fork_works" >&6; }
24307
24308else
24309 ac_cv_func_fork_works=$ac_cv_func_fork
24310fi
24311if test "x$ac_cv_func_fork_works" = xcross; then
24312 case $host in
24313 *-*-amigaos* | *-*-msdosdjgpp*)
24314 # Override, as these systems have only a dummy fork() stub
24315 ac_cv_func_fork_works=no
24316 ;;
24317 *)
24318 ac_cv_func_fork_works=yes
24319 ;;
24320 esac
cristy8b350f62009-11-15 23:12:43 +000024321 { $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 +000024322$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24323fi
24324ac_cv_func_vfork_works=$ac_cv_func_vfork
24325if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024327$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024328if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024329 $as_echo_n "(cached) " >&6
24330else
cristy8b350f62009-11-15 23:12:43 +000024331 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024332 ac_cv_func_vfork_works=cross
24333else
cristy8b350f62009-11-15 23:12:43 +000024334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024335/* end confdefs.h. */
24336/* Thanks to Paul Eggert for this test. */
24337$ac_includes_default
24338#include <sys/wait.h>
24339#ifdef HAVE_VFORK_H
24340# include <vfork.h>
24341#endif
24342/* On some sparc systems, changes by the child to local and incoming
24343 argument registers are propagated back to the parent. The compiler
24344 is told about this with #include <vfork.h>, but some compilers
24345 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24346 static variable whose address is put into a register that is
24347 clobbered by the vfork. */
24348static void
24349#ifdef __cplusplus
24350sparc_address_test (int arg)
24351# else
24352sparc_address_test (arg) int arg;
24353#endif
24354{
24355 static pid_t child;
24356 if (!child) {
24357 child = vfork ();
24358 if (child < 0) {
24359 perror ("vfork");
24360 _exit(2);
24361 }
24362 if (!child) {
24363 arg = getpid();
24364 write(-1, "", 0);
24365 _exit (arg);
24366 }
24367 }
24368}
24369
24370int
24371main ()
24372{
24373 pid_t parent = getpid ();
24374 pid_t child;
24375
24376 sparc_address_test (0);
24377
24378 child = vfork ();
24379
24380 if (child == 0) {
24381 /* Here is another test for sparc vfork register problems. This
24382 test uses lots of local variables, at least as many local
24383 variables as main has allocated so far including compiler
24384 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24385 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24386 reuse the register of parent for one of the local variables,
24387 since it will think that parent can't possibly be used any more
24388 in this routine. Assigning to the local variable will thus
24389 munge parent in the parent process. */
24390 pid_t
24391 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24392 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24393 /* Convince the compiler that p..p7 are live; otherwise, it might
24394 use the same hardware register for all 8 local variables. */
24395 if (p != p1 || p != p2 || p != p3 || p != p4
24396 || p != p5 || p != p6 || p != p7)
24397 _exit(1);
24398
24399 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24400 from child file descriptors. If the child closes a descriptor
24401 before it execs or exits, this munges the parent's descriptor
24402 as well. Test for this by closing stdout in the child. */
24403 _exit(close(fileno(stdout)) != 0);
24404 } else {
24405 int status;
24406 struct stat st;
24407
24408 while (wait(&status) != child)
24409 ;
24410 return (
24411 /* Was there some problem with vforking? */
24412 child < 0
24413
24414 /* Did the child fail? (This shouldn't happen.) */
24415 || status
24416
24417 /* Did the vfork/compiler bug occur? */
24418 || parent != getpid()
24419
24420 /* Did the file descriptor bug occur? */
24421 || fstat(fileno(stdout), &st) != 0
24422 );
24423 }
24424}
24425_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024426if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024427 ac_cv_func_vfork_works=yes
24428else
cristy8b350f62009-11-15 23:12:43 +000024429 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024430fi
cristy8b350f62009-11-15 23:12:43 +000024431rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24432 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024433fi
24434
cristy3ed852e2009-09-05 21:47:34 +000024435fi
cristy8b350f62009-11-15 23:12:43 +000024436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024437$as_echo "$ac_cv_func_vfork_works" >&6; }
24438
24439fi;
24440if test "x$ac_cv_func_fork_works" = xcross; then
24441 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024442 { $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 +000024443$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24444fi
24445
24446if test "x$ac_cv_func_vfork_works" = xyes; then
24447
cristy8b350f62009-11-15 23:12:43 +000024448$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024449
24450else
24451
cristy8b350f62009-11-15 23:12:43 +000024452$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024453
24454fi
24455if test "x$ac_cv_func_fork_works" = xyes; then
24456
cristy8b350f62009-11-15 23:12:43 +000024457$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024458
24459fi
24460
cristy8b350f62009-11-15 23:12:43 +000024461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024462$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024463if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024464 $as_echo_n "(cached) " >&6
24465else
cristy8b350f62009-11-15 23:12:43 +000024466 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024467 ac_cv_func_memcmp_working=no
24468else
cristy8b350f62009-11-15 23:12:43 +000024469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024470/* end confdefs.h. */
24471$ac_includes_default
24472int
24473main ()
24474{
24475
24476 /* Some versions of memcmp are not 8-bit clean. */
24477 char c0 = '\100', c1 = '\200', c2 = '\201';
24478 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24479 return 1;
24480
24481 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24482 or more and with at least one buffer not starting on a 4-byte boundary.
24483 William Lewis provided this test program. */
24484 {
24485 char foo[21];
24486 char bar[21];
24487 int i;
24488 for (i = 0; i < 4; i++)
24489 {
24490 char *a = foo + i;
24491 char *b = bar + i;
24492 strcpy (a, "--------01111111");
24493 strcpy (b, "--------10000000");
24494 if (memcmp (a, b, 16) >= 0)
24495 return 1;
24496 }
24497 return 0;
24498 }
24499
24500 ;
24501 return 0;
24502}
24503_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024504if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024505 ac_cv_func_memcmp_working=yes
24506else
cristy8b350f62009-11-15 23:12:43 +000024507 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024508fi
cristy8b350f62009-11-15 23:12:43 +000024509rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24510 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024511fi
24512
cristy3ed852e2009-09-05 21:47:34 +000024513fi
cristy8b350f62009-11-15 23:12:43 +000024514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024515$as_echo "$ac_cv_func_memcmp_working" >&6; }
24516test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24517 *" memcmp.$ac_objext "* ) ;;
24518 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24519 ;;
24520esac
24521
24522
cristy3ed852e2009-09-05 21:47:34 +000024523for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024524do :
24525 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24526ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024527if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024528 cat >>confdefs.h <<_ACEOF
24529#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24530_ACEOF
24531
24532fi
24533
24534done
24535
cristy8b350f62009-11-15 23:12:43 +000024536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024537$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024538if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024539 $as_echo_n "(cached) " >&6
24540else
24541 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24542 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24543 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024545/* end confdefs.h. */
24546$ac_includes_default
24547#ifdef HAVE_SYS_SELECT_H
24548# include <sys/select.h>
24549#endif
24550#ifdef HAVE_SYS_SOCKET_H
24551# include <sys/socket.h>
24552#endif
24553
24554int
24555main ()
24556{
24557extern int select ($ac_arg1,
24558 $ac_arg234, $ac_arg234, $ac_arg234,
24559 $ac_arg5);
24560 ;
24561 return 0;
24562}
24563_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024564if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024565 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024566fi
cristy3ed852e2009-09-05 21:47:34 +000024567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24568 done
24569 done
24570done
24571# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024572: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024573
24574fi
cristy8b350f62009-11-15 23:12:43 +000024575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024576$as_echo "$ac_cv_func_select_args" >&6; }
24577ac_save_IFS=$IFS; IFS=','
24578set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24579IFS=$ac_save_IFS
24580shift
24581
24582cat >>confdefs.h <<_ACEOF
24583#define SELECT_TYPE_ARG1 $1
24584_ACEOF
24585
24586
24587cat >>confdefs.h <<_ACEOF
24588#define SELECT_TYPE_ARG234 ($2)
24589_ACEOF
24590
24591
24592cat >>confdefs.h <<_ACEOF
24593#define SELECT_TYPE_ARG5 ($3)
24594_ACEOF
24595
24596rm -f conftest*
24597
cristyda16f162011-02-19 23:52:17 +000024598if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024599 $as_echo_n "(cached) " >&6
24600else
24601 ac_cv_func_setvbuf_reversed=no
24602fi
24603
24604
cristy8b350f62009-11-15 23:12:43 +000024605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024606$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024607if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024608 $as_echo_n "(cached) " >&6
24609else
cristy8b350f62009-11-15 23:12:43 +000024610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024611/* end confdefs.h. */
24612#include <sys/types.h>
24613#include <signal.h>
24614
24615int
24616main ()
24617{
24618return *(signal (0, 0)) (0) == 1;
24619 ;
24620 return 0;
24621}
24622_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024623if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024624 ac_cv_type_signal=int
24625else
cristy8b350f62009-11-15 23:12:43 +000024626 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024627fi
cristy3ed852e2009-09-05 21:47:34 +000024628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24629fi
cristy8b350f62009-11-15 23:12:43 +000024630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024631$as_echo "$ac_cv_type_signal" >&6; }
24632
24633cat >>confdefs.h <<_ACEOF
24634#define RETSIGTYPE $ac_cv_type_signal
24635_ACEOF
24636
24637
cristy8b350f62009-11-15 23:12:43 +000024638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024639$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024640if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024641 $as_echo_n "(cached) " >&6
24642else
cristy8b350f62009-11-15 23:12:43 +000024643 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024644 ac_cv_func_strtod=no
24645else
cristy8b350f62009-11-15 23:12:43 +000024646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024647/* end confdefs.h. */
24648
24649$ac_includes_default
24650#ifndef strtod
24651double strtod ();
24652#endif
24653int
24654main()
24655{
24656 {
24657 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24658 char *string = " +69";
24659 char *term;
24660 double value;
24661 value = strtod (string, &term);
24662 if (value != 69 || term != (string + 4))
24663 return 1;
24664 }
24665
24666 {
24667 /* Under Solaris 2.4, strtod returns the wrong value for the
24668 terminating character under some conditions. */
24669 char *string = "NaN";
24670 char *term;
24671 strtod (string, &term);
24672 if (term != string && *(term - 1) == 0)
24673 return 1;
24674 }
24675 return 0;
24676}
24677
24678_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024679if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024680 ac_cv_func_strtod=yes
24681else
cristy8b350f62009-11-15 23:12:43 +000024682 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024683fi
cristy8b350f62009-11-15 23:12:43 +000024684rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24685 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024686fi
24687
cristy3ed852e2009-09-05 21:47:34 +000024688fi
cristy8b350f62009-11-15 23:12:43 +000024689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024690$as_echo "$ac_cv_func_strtod" >&6; }
24691if test $ac_cv_func_strtod = no; then
24692 case " $LIBOBJS " in
24693 *" strtod.$ac_objext "* ) ;;
24694 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24695 ;;
24696esac
24697
cristy8b350f62009-11-15 23:12:43 +000024698ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024699if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024700
cristy3ed852e2009-09-05 21:47:34 +000024701fi
24702
cristy3ed852e2009-09-05 21:47:34 +000024703if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024705$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024706if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024707 $as_echo_n "(cached) " >&6
24708else
24709 ac_check_lib_save_LIBS=$LIBS
24710LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024712/* end confdefs.h. */
24713
24714/* Override any GCC internal prototype to avoid an error.
24715 Use char because int might match the return type of a GCC
24716 builtin and then its argument prototype would still apply. */
24717#ifdef __cplusplus
24718extern "C"
24719#endif
24720char pow ();
24721int
24722main ()
24723{
24724return pow ();
24725 ;
24726 return 0;
24727}
24728_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024729if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024730 ac_cv_lib_m_pow=yes
24731else
cristy8b350f62009-11-15 23:12:43 +000024732 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024733fi
cristy8b350f62009-11-15 23:12:43 +000024734rm -f core conftest.err conftest.$ac_objext \
24735 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024736LIBS=$ac_check_lib_save_LIBS
24737fi
cristy8b350f62009-11-15 23:12:43 +000024738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024739$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024740if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024741 POW_LIB=-lm
24742else
cristy8b350f62009-11-15 23:12:43 +000024743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024744$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24745fi
24746
24747fi
24748
24749fi
24750
cristy7d4a1d62011-10-13 15:54:12 +000024751ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24752if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24753 ac_have_decl=1
24754else
24755 ac_have_decl=0
24756fi
24757
24758cat >>confdefs.h <<_ACEOF
24759#define HAVE_DECL_STRERROR_R $ac_have_decl
24760_ACEOF
24761
24762for ac_func in strerror_r
24763do :
24764 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24765if test "x$ac_cv_func_strerror_r" = xyes; then :
24766 cat >>confdefs.h <<_ACEOF
24767#define HAVE_STRERROR_R 1
24768_ACEOF
24769
24770fi
24771done
24772
24773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24774$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24775if ${ac_cv_func_strerror_r_char_p+:} false; then :
24776 $as_echo_n "(cached) " >&6
24777else
24778
24779 ac_cv_func_strerror_r_char_p=no
24780 if test $ac_cv_have_decl_strerror_r = yes; then
24781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24782/* end confdefs.h. */
24783$ac_includes_default
24784int
24785main ()
24786{
24787
24788 char buf[100];
24789 char x = *strerror_r (0, buf, sizeof buf);
24790 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024791 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024792
24793 ;
24794 return 0;
24795}
24796_ACEOF
24797if ac_fn_c_try_compile "$LINENO"; then :
24798 ac_cv_func_strerror_r_char_p=yes
24799fi
24800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24801 else
24802 # strerror_r is not declared. Choose between
24803 # systems that have relatively inaccessible declarations for the
24804 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24805 # former has a strerror_r that returns char*, while the latter
24806 # has a strerror_r that returns `int'.
24807 # This test should segfault on the DEC system.
24808 if test "$cross_compiling" = yes; then :
24809 :
24810else
24811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24812/* end confdefs.h. */
24813$ac_includes_default
24814 extern char *strerror_r ();
24815int
24816main ()
24817{
24818char buf[100];
24819 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024820 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024821 ;
24822 return 0;
24823}
24824_ACEOF
24825if ac_fn_c_try_run "$LINENO"; then :
24826 ac_cv_func_strerror_r_char_p=yes
24827fi
24828rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24829 conftest.$ac_objext conftest.beam conftest.$ac_ext
24830fi
24831
24832 fi
24833
24834fi
24835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24836$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24837if test $ac_cv_func_strerror_r_char_p = yes; then
24838
24839$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24840
24841fi
24842
cristy3ed852e2009-09-05 21:47:34 +000024843for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024844do :
24845 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024846if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024847 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024848#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024849_ACEOF
24850
cristy8b350f62009-11-15 23:12:43 +000024851ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024852if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024853
cristy8b350f62009-11-15 23:12:43 +000024854$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024855
24856fi
24857
24858fi
24859done
24860
24861
24862
cristy161b9262010-03-20 19:34:32 +000024863#
24864# Find math library
24865#
24866MATH_LIBS=''
24867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24868$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024869if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024870 $as_echo_n "(cached) " >&6
24871else
24872 ac_check_lib_save_LIBS=$LIBS
24873LIBS="-lm $LIBS"
24874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24875/* end confdefs.h. */
24876
24877/* Override any GCC internal prototype to avoid an error.
24878 Use char because int might match the return type of a GCC
24879 builtin and then its argument prototype would still apply. */
24880#ifdef __cplusplus
24881extern "C"
24882#endif
24883char sqrt ();
24884int
24885main ()
24886{
24887return sqrt ();
24888 ;
24889 return 0;
24890}
24891_ACEOF
24892if ac_fn_c_try_link "$LINENO"; then :
24893 ac_cv_lib_m_sqrt=yes
24894else
24895 ac_cv_lib_m_sqrt=no
24896fi
24897rm -f core conftest.err conftest.$ac_objext \
24898 conftest$ac_exeext conftest.$ac_ext
24899LIBS=$ac_check_lib_save_LIBS
24900fi
24901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24902$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024903if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024904 MATH_LIBS="-lm"
24905fi
24906
24907LIBS="$MATH_LIBS $LIBS"
24908
24909
cristy7d4a1d62011-10-13 15:54:12 +000024910for 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 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 +000024911do :
24912 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24913ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024914if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024915 cat >>confdefs.h <<_ACEOF
24916#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24917_ACEOF
24918
24919fi
24920done
24921
24922
cristye43a45e2009-09-28 14:49:00 +000024923#
24924# Check for clock_gettime().
24925#
cristy8b350f62009-11-15 23:12:43 +000024926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024927$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024928if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024929 $as_echo_n "(cached) " >&6
24930else
24931 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000024932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024933/* end confdefs.h. */
24934
24935/* Override any GCC internal prototype to avoid an error.
24936 Use char because int might match the return type of a GCC
24937 builtin and then its argument prototype would still apply. */
24938#ifdef __cplusplus
24939extern "C"
24940#endif
24941char clock_gettime ();
24942int
24943main ()
24944{
24945return clock_gettime ();
24946 ;
24947 return 0;
24948}
24949_ACEOF
24950for ac_lib in '' rt; do
24951 if test -z "$ac_lib"; then
24952 ac_res="none required"
24953 else
24954 ac_res=-l$ac_lib
24955 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24956 fi
cristy8b350f62009-11-15 23:12:43 +000024957 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024958 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000024959fi
cristy8b350f62009-11-15 23:12:43 +000024960rm -f core conftest.err conftest.$ac_objext \
24961 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024962 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024963 break
24964fi
24965done
cristyda16f162011-02-19 23:52:17 +000024966if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024967
cristye43a45e2009-09-28 14:49:00 +000024968else
24969 ac_cv_search_clock_gettime=no
24970fi
24971rm conftest.$ac_ext
24972LIBS=$ac_func_search_save_LIBS
24973fi
cristy8b350f62009-11-15 23:12:43 +000024974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024975$as_echo "$ac_cv_search_clock_gettime" >&6; }
24976ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000024977if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000024978 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24979
24980
cristy8b350f62009-11-15 23:12:43 +000024981$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024982
cristy8b350f62009-11-15 23:12:43 +000024983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000024984$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024986/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000024987
24988 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000024989int
24990main ()
24991{
24992clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000024993 ;
24994 return 0;
24995}
24996_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024997if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024998
cristy09b53e12011-10-14 12:47:22 +000024999 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25000$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025001
cristy8b350f62009-11-15 23:12:43 +000025002$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025003
25004
25005else
cristy09b53e12011-10-14 12:47:22 +000025006 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25007$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025008
25009fi
cristye43a45e2009-09-28 14:49:00 +000025010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25011
25012else
25013
cristy8b350f62009-11-15 23:12:43 +000025014 for ac_func in gettimeofday ftime
25015do :
25016 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25017ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025018if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025019 cat >>confdefs.h <<_ACEOF
25020#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25021_ACEOF
25022 break
25023fi
25024done
25025
25026
25027
25028fi
25029
25030
cristy3ed852e2009-09-05 21:47:34 +000025031########
25032#
25033# Check for function prototypes
25034#
25035########
25036
cristy8b350f62009-11-15 23:12:43 +000025037ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025038#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025039"
cristyda16f162011-02-19 23:52:17 +000025040if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025041 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025042else
cristy8b350f62009-11-15 23:12:43 +000025043 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025044fi
25045
cristy3ed852e2009-09-05 21:47:34 +000025046cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025047#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025048_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025049ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025050#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025051"
cristyda16f162011-02-19 23:52:17 +000025052if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025053 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025054else
cristy8b350f62009-11-15 23:12:43 +000025055 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025056fi
25057
cristy3ed852e2009-09-05 21:47:34 +000025058cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025059#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025060_ACEOF
25061
25062
cristy8b350f62009-11-15 23:12:43 +000025063ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025064#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025065"
cristyda16f162011-02-19 23:52:17 +000025066if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025067 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025068else
cristy8b350f62009-11-15 23:12:43 +000025069 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025070fi
25071
cristy3ed852e2009-09-05 21:47:34 +000025072cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025073#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025074_ACEOF
25075
25076
cristy8b350f62009-11-15 23:12:43 +000025077ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025078#include <stdio.h>
25079#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025080"
cristyda16f162011-02-19 23:52:17 +000025081if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025082 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025083else
cristy8b350f62009-11-15 23:12:43 +000025084 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025085fi
25086
cristy3ed852e2009-09-05 21:47:34 +000025087cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025088#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025089_ACEOF
25090
25091
cristy3ed852e2009-09-05 21:47:34 +000025092########
25093#
25094# C++ Support Tests (For Magick++)
25095#
25096########
25097have_magick_plus_plus='no'
25098if test "$with_magick_plus_plus" = 'yes'; then
25099 OLIBS="$LIBS"
25100 LIBS=''
25101 ac_ext=cpp
25102ac_cpp='$CXXCPP $CPPFLAGS'
25103ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25104ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25105ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25106
25107
25108 # Full set of headers used...
25109 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25110 # functional iomanip iosfwd iostream iterator list string strstream utility
25111 ac_ext=cpp
25112ac_cpp='$CXXCPP $CPPFLAGS'
25113ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25114ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25115ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25116
25117 ac_ext=cpp
25118ac_cpp='$CXXCPP $CPPFLAGS'
25119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25122if test -z "$CXX"; then
25123 if test -n "$CCC"; then
25124 CXX=$CCC
25125 else
25126 if test -n "$ac_tool_prefix"; then
25127 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25128 do
25129 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25130set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025132$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025133if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025134 $as_echo_n "(cached) " >&6
25135else
25136 if test -n "$CXX"; then
25137 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25138else
25139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25140for as_dir in $PATH
25141do
25142 IFS=$as_save_IFS
25143 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025144 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25146 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025148 break 2
25149 fi
25150done
cristy8b350f62009-11-15 23:12:43 +000025151 done
cristy3ed852e2009-09-05 21:47:34 +000025152IFS=$as_save_IFS
25153
25154fi
25155fi
25156CXX=$ac_cv_prog_CXX
25157if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025159$as_echo "$CXX" >&6; }
25160else
cristy8b350f62009-11-15 23:12:43 +000025161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025162$as_echo "no" >&6; }
25163fi
25164
25165
25166 test -n "$CXX" && break
25167 done
25168fi
25169if test -z "$CXX"; then
25170 ac_ct_CXX=$CXX
25171 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25172do
25173 # Extract the first word of "$ac_prog", so it can be a program name with args.
25174set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025176$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025177if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025178 $as_echo_n "(cached) " >&6
25179else
25180 if test -n "$ac_ct_CXX"; then
25181 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25182else
25183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25184for as_dir in $PATH
25185do
25186 IFS=$as_save_IFS
25187 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025188 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25190 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025192 break 2
25193 fi
25194done
cristy8b350f62009-11-15 23:12:43 +000025195 done
cristy3ed852e2009-09-05 21:47:34 +000025196IFS=$as_save_IFS
25197
25198fi
25199fi
25200ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25201if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025203$as_echo "$ac_ct_CXX" >&6; }
25204else
cristy8b350f62009-11-15 23:12:43 +000025205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025206$as_echo "no" >&6; }
25207fi
25208
25209
25210 test -n "$ac_ct_CXX" && break
25211done
25212
25213 if test "x$ac_ct_CXX" = x; then
25214 CXX="g++"
25215 else
25216 case $cross_compiling:$ac_tool_warned in
25217yes:)
cristy8b350f62009-11-15 23:12:43 +000025218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25220ac_tool_warned=yes ;;
25221esac
25222 CXX=$ac_ct_CXX
25223 fi
25224fi
25225
25226 fi
25227fi
25228# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025229$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025230set X $ac_compile
25231ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025232for ac_option in --version -v -V -qversion; do
25233 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025234case "(($ac_try" in
25235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25236 *) ac_try_echo=$ac_try;;
25237esac
cristy8b350f62009-11-15 23:12:43 +000025238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25239$as_echo "$ac_try_echo"; } >&5
25240 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025241 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025242 if test -s conftest.err; then
25243 sed '10a\
25244... rest of stderr output deleted ...
25245 10q' conftest.err >conftest.er1
25246 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025247 fi
cristycd4c5312009-11-22 01:19:08 +000025248 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25250 test $ac_status = 0; }
25251done
cristy3ed852e2009-09-05 21:47:34 +000025252
cristy8b350f62009-11-15 23:12:43 +000025253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025254$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025255if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025256 $as_echo_n "(cached) " >&6
25257else
cristy8b350f62009-11-15 23:12:43 +000025258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025259/* end confdefs.h. */
25260
25261int
25262main ()
25263{
25264#ifndef __GNUC__
25265 choke me
25266#endif
25267
25268 ;
25269 return 0;
25270}
25271_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025272if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025273 ac_compiler_gnu=yes
25274else
cristy8b350f62009-11-15 23:12:43 +000025275 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025276fi
cristy3ed852e2009-09-05 21:47:34 +000025277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25278ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25279
25280fi
cristy8b350f62009-11-15 23:12:43 +000025281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025282$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25283if test $ac_compiler_gnu = yes; then
25284 GXX=yes
25285else
25286 GXX=
25287fi
25288ac_test_CXXFLAGS=${CXXFLAGS+set}
25289ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025291$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025292if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025293 $as_echo_n "(cached) " >&6
25294else
25295 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25296 ac_cxx_werror_flag=yes
25297 ac_cv_prog_cxx_g=no
25298 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025300/* end confdefs.h. */
25301
25302int
25303main ()
25304{
25305
25306 ;
25307 return 0;
25308}
25309_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025310if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025311 ac_cv_prog_cxx_g=yes
25312else
cristy8b350f62009-11-15 23:12:43 +000025313 CXXFLAGS=""
25314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025315/* end confdefs.h. */
25316
25317int
25318main ()
25319{
25320
25321 ;
25322 return 0;
25323}
25324_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025325if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025326
cristy8b350f62009-11-15 23:12:43 +000025327else
25328 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025329 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025331/* end confdefs.h. */
25332
25333int
25334main ()
25335{
25336
25337 ;
25338 return 0;
25339}
25340_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025341if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025342 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025343fi
cristy3ed852e2009-09-05 21:47:34 +000025344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25345fi
cristy3ed852e2009-09-05 21:47:34 +000025346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25347fi
cristy3ed852e2009-09-05 21:47:34 +000025348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25349 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25350fi
cristy8b350f62009-11-15 23:12:43 +000025351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025352$as_echo "$ac_cv_prog_cxx_g" >&6; }
25353if test "$ac_test_CXXFLAGS" = set; then
25354 CXXFLAGS=$ac_save_CXXFLAGS
25355elif test $ac_cv_prog_cxx_g = yes; then
25356 if test "$GXX" = yes; then
25357 CXXFLAGS="-g -O2"
25358 else
25359 CXXFLAGS="-g"
25360 fi
25361else
25362 if test "$GXX" = yes; then
25363 CXXFLAGS="-O2"
25364 else
25365 CXXFLAGS=
25366 fi
25367fi
25368ac_ext=cpp
25369ac_cpp='$CXXCPP $CPPFLAGS'
25370ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25371ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25372ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25373
cristy73bd4a52010-10-05 11:24:23 +000025374depcc="$CXX" am_compiler_list=
25375
25376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25377$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025378if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025379 $as_echo_n "(cached) " >&6
25380else
25381 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25382 # We make a subdir and do the tests there. Otherwise we can end up
25383 # making bogus files that we don't know about and never remove. For
25384 # instance it was reported that on HP-UX the gcc test will end up
25385 # making a dummy file named `D' -- because `-MD' means `put the output
25386 # in D'.
25387 mkdir conftest.dir
25388 # Copy depcomp to subdir because otherwise we won't find it if we're
25389 # using a relative directory.
25390 cp "$am_depcomp" conftest.dir
25391 cd conftest.dir
25392 # We will build objects and dependencies in a subdirectory because
25393 # it helps to detect inapplicable dependency modes. For instance
25394 # both Tru64's cc and ICC support -MD to output dependencies as a
25395 # side effect of compilation, but ICC will put the dependencies in
25396 # the current directory while Tru64 will put them in the object
25397 # directory.
25398 mkdir sub
25399
25400 am_cv_CXX_dependencies_compiler_type=none
25401 if test "$am_compiler_list" = ""; then
25402 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25403 fi
25404 am__universal=false
25405 case " $depcc " in #(
25406 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25407 esac
25408
25409 for depmode in $am_compiler_list; do
25410 # Setup a source with many dependencies, because some compilers
25411 # like to wrap large dependency lists on column 80 (with \), and
25412 # we should not choose a depcomp mode which is confused by this.
25413 #
25414 # We need to recreate these files for each test, as the compiler may
25415 # overwrite some of them when testing with obscure command lines.
25416 # This happens at least with the AIX C compiler.
25417 : > sub/conftest.c
25418 for i in 1 2 3 4 5 6; do
25419 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25420 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25421 # Solaris 8's {/usr,}/bin/sh.
25422 touch sub/conftst$i.h
25423 done
25424 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25425
25426 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25427 # mode. It turns out that the SunPro C++ compiler does not properly
25428 # handle `-M -o', and we need to detect this. Also, some Intel
25429 # versions had trouble with output in subdirs
25430 am__obj=sub/conftest.${OBJEXT-o}
25431 am__minus_obj="-o $am__obj"
25432 case $depmode in
25433 gcc)
25434 # This depmode causes a compiler race in universal mode.
25435 test "$am__universal" = false || continue
25436 ;;
25437 nosideeffect)
25438 # after this tag, mechanisms are not by side-effect, so they'll
25439 # only be used when explicitly requested
25440 if test "x$enable_dependency_tracking" = xyes; then
25441 continue
25442 else
25443 break
25444 fi
25445 ;;
25446 msvisualcpp | msvcmsys)
25447 # This compiler won't grok `-c -o', but also, the minuso test has
25448 # not run yet. These depmodes are late enough in the game, and
25449 # so weak that their functioning should not be impacted.
25450 am__obj=conftest.${OBJEXT-o}
25451 am__minus_obj=
25452 ;;
25453 none) break ;;
25454 esac
25455 if depmode=$depmode \
25456 source=sub/conftest.c object=$am__obj \
25457 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25458 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25459 >/dev/null 2>conftest.err &&
25460 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25461 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25462 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25463 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25464 # icc doesn't choke on unknown options, it will just issue warnings
25465 # or remarks (even with -Werror). So we grep stderr for any message
25466 # that says an option was ignored or not supported.
25467 # When given -MP, icc 7.0 and 7.1 complain thusly:
25468 # icc: Command line warning: ignoring option '-M'; no argument required
25469 # The diagnosis changed in icc 8.0:
25470 # icc: Command line remark: option '-MP' not supported
25471 if (grep 'ignoring option' conftest.err ||
25472 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25473 am_cv_CXX_dependencies_compiler_type=$depmode
25474 break
25475 fi
25476 fi
25477 done
25478
25479 cd ..
25480 rm -rf conftest.dir
25481else
25482 am_cv_CXX_dependencies_compiler_type=none
25483fi
25484
25485fi
25486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25487$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25488CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25489
25490 if
25491 test "x$enable_dependency_tracking" != xno \
25492 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25493 am__fastdepCXX_TRUE=
25494 am__fastdepCXX_FALSE='#'
25495else
25496 am__fastdepCXX_TRUE='#'
25497 am__fastdepCXX_FALSE=
25498fi
25499
25500
25501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25502$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025503if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025504 $as_echo_n "(cached) " >&6
25505else
25506
25507 ac_ext=cpp
25508ac_cpp='$CXXCPP $CPPFLAGS'
25509ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25510ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25511ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25512
25513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25514/* end confdefs.h. */
25515
25516int f(int x){return 1;}
25517int f(char x){return 1;}
25518int f(bool x){return 1;}
25519
25520int
25521main ()
25522{
25523bool b = true; return f(b);
25524 ;
25525 return 0;
25526}
25527_ACEOF
25528if ac_fn_cxx_try_compile "$LINENO"; then :
25529 ax_cv_cxx_bool=yes
25530else
25531 ax_cv_cxx_bool=no
25532fi
25533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25534 ac_ext=cpp
25535ac_cpp='$CXXCPP $CPPFLAGS'
25536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25539
25540
25541fi
25542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25543$as_echo "$ax_cv_cxx_bool" >&6; }
25544if test "$ax_cv_cxx_bool" = yes; then
25545
25546$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25547
25548fi
25549
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25551$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025552if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025553 $as_echo_n "(cached) " >&6
25554else
25555
25556 ac_ext=cpp
25557ac_cpp='$CXXCPP $CPPFLAGS'
25558ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25559ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25560ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25561
25562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25563/* end confdefs.h. */
25564namespace Outer { namespace Inner { int i = 0; }}
25565int
25566main ()
25567{
25568using namespace Outer::Inner; return i;
25569 ;
25570 return 0;
25571}
25572_ACEOF
25573if ac_fn_cxx_try_compile "$LINENO"; then :
25574 ax_cv_cxx_namespaces=yes
25575else
25576 ax_cv_cxx_namespaces=no
25577fi
25578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25579 ac_ext=cpp
25580ac_cpp='$CXXCPP $CPPFLAGS'
25581ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25582ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25583ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25584
25585
25586fi
25587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25588$as_echo "$ax_cv_cxx_namespaces" >&6; }
25589if test "$ax_cv_cxx_namespaces" = yes; then
25590
25591$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25592
25593fi
25594
25595
25596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25597$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025598if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025599 $as_echo_n "(cached) " >&6
25600else
25601
25602 ac_ext=cpp
25603ac_cpp='$CXXCPP $CPPFLAGS'
25604ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25605ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25606ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25607
25608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25609/* end confdefs.h. */
25610#include <iostream>
25611 std::istream& is = std::cin;
25612int
25613main ()
25614{
25615
25616 ;
25617 return 0;
25618}
25619_ACEOF
25620if ac_fn_cxx_try_compile "$LINENO"; then :
25621 ax_cv_cxx_have_std_namespace=yes
25622else
25623 ax_cv_cxx_have_std_namespace=no
25624fi
25625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25626 ac_ext=cpp
25627ac_cpp='$CXXCPP $CPPFLAGS'
25628ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25629ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25630ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25631
25632
25633fi
25634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25635$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25636 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25637
25638$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25639
25640 fi
25641
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25643$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025644if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025645 $as_echo_n "(cached) " >&6
25646else
25647
25648
25649 ac_ext=cpp
25650ac_cpp='$CXXCPP $CPPFLAGS'
25651ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25652ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25653ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25654
25655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25656/* end confdefs.h. */
25657#include <iostream>
25658#include <map>
25659#include <iomanip>
25660#include <cmath>
25661#ifdef HAVE_NAMESPACES
25662using namespace std;
25663#endif
25664int
25665main ()
25666{
25667return 0;
25668 ;
25669 return 0;
25670}
25671_ACEOF
25672if ac_fn_cxx_try_compile "$LINENO"; then :
25673 ac_cv_cxx_have_std_libs=yes
25674else
25675 ac_cv_cxx_have_std_libs=no
25676fi
25677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25678 ac_ext=cpp
25679ac_cpp='$CXXCPP $CPPFLAGS'
25680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25683
25684
25685fi
25686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25687$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25688if test "$ac_cv_cxx_have_std_libs" = yes; then
25689
25690$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25691
25692fi
25693
cristy3ed852e2009-09-05 21:47:34 +000025694
25695 OPENMP_CXXFLAGS=
25696 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025697if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025698 enableval=$enable_openmp;
25699fi
25700
25701 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25703$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025704if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025705 $as_echo_n "(cached) " >&6
25706else
cristy8b350f62009-11-15 23:12:43 +000025707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25708/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025709
25710#ifndef _OPENMP
25711 choke me
25712#endif
25713#include <omp.h>
25714int main () { return omp_get_num_threads (); }
25715
25716_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025717if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025718 ac_cv_prog_cxx_openmp='none needed'
25719else
cristy8b350f62009-11-15 23:12:43 +000025720 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000025721 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
25722 ac_save_CXXFLAGS=$CXXFLAGS
25723 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25725/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025726
25727#ifndef _OPENMP
25728 choke me
25729#endif
25730#include <omp.h>
25731int main () { return omp_get_num_threads (); }
25732
25733_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025734if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025735 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025736fi
cristy8b350f62009-11-15 23:12:43 +000025737rm -f core conftest.err conftest.$ac_objext \
25738 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025739 CXXFLAGS=$ac_save_CXXFLAGS
25740 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25741 break
25742 fi
25743 done
25744fi
cristy8b350f62009-11-15 23:12:43 +000025745rm -f core conftest.err conftest.$ac_objext \
25746 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025747fi
cristy8b350f62009-11-15 23:12:43 +000025748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025749$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25750 case $ac_cv_prog_cxx_openmp in #(
25751 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025752 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025753 *)
cristy8b350f62009-11-15 23:12:43 +000025754 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025755 esac
25756 fi
25757
25758
25759 ac_ext=c
25760ac_cpp='$CPP $CPPFLAGS'
25761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25763ac_compiler_gnu=$ac_cv_c_compiler_gnu
25764
25765
cristy8b350f62009-11-15 23:12:43 +000025766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025767$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25768 if \
cristy964cb7f2010-04-25 23:18:00 +000025769 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025770 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025771 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025772 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025773 have_magick_plus_plus='yes'
25774 else
25775 have_magick_plus_plus='no (failed tests)'
25776 fi
cristy09b53e12011-10-14 12:47:22 +000025777 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
25778$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000025779 LIBS="$OLIBS"
25780fi
cristy73bd4a52010-10-05 11:24:23 +000025781 if test "$have_magick_plus_plus" = 'yes'; then
25782 WITH_MAGICK_PLUS_PLUS_TRUE=
25783 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25784else
25785 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25786 WITH_MAGICK_PLUS_PLUS_FALSE=
25787fi
25788
cristy3ed852e2009-09-05 21:47:34 +000025789
25790# Only check for delegate libraries in subdirectories if requested.
25791if test "$enable_delegate_build" != 'no'; then
25792 # Check for delegate sub-directories and add -I & -L options as required.
25793 # This presumes that delegates are installed as detailed in the ImageMagick
25794 # README. If delegates are installed in a standard location where the
25795 # compiler will automatically find them then these options should not be
25796 # required.
25797
25798 #
25799 # Most delegates have includes in the same directory as the library, but not all...
25800 #
25801 # Includes
cristyfbb0ef02010-12-19 02:32:11 +000025802 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 +000025803 if test -d "$builddir/$dir"; then
25804 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25805 else
25806 if test -d "$srcdirfull/$dir"; then
25807 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25808 fi
25809 fi
25810 done
25811
25812 # Libraries
cristyfbb0ef02010-12-19 02:32:11 +000025813 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 +000025814 if test -d "$builddir/$dir/.libs"; then
25815 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25816 else
25817 if test -d "$srcdirfull/$dir/.libs"; then
25818 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25819 fi
25820 fi
25821 if test -d "$builddir/$dir"; then
25822 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25823 else
25824 if test -d "$srcdirfull/$dir"; then
25825 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25826 fi
25827 fi
25828 done
25829fi
25830
25831# Assume that delegate headers reside under same directory as ImageMagick
25832# installation prefix.
25833MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25834
25835#
25836# Find the X11 RGB database
25837#
cristy8b350f62009-11-15 23:12:43 +000025838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025839$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025840if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025841 $as_echo_n "(cached) " >&6
25842else
25843 # Look for the header file in a standard set of common directories.
25844# Check X11 before X11Rn because it is often a symlink to the current release.
25845 for ac_dir in \
25846 /lib/usr/lib/X11 \
25847 /usr/X11/lib \
25848 /usr/X11R4/lib \
25849 /usr/X11R5/lib \
25850 /usr/X11R6/lib \
25851 /usr/X11R7/lib \
25852 /usr/X386/lib \
25853 /usr/XFree86/lib/X11 \
25854 /usr/athena/lib \
25855 /usr/lib \
25856 /usr/lib/X11 \
25857 /usr/lib/X11R4 \
25858 /usr/lib/X11R5 \
25859 /usr/lib/X11R6 \
25860 /usr/lib/X11R7 \
25861 /usr/local/X11/lib \
25862 /usr/local/X11R4/lib \
25863 /usr/local/X11R5/lib \
25864 /usr/local/X11R6/lib \
25865 /usr/local/lib \
25866 /usr/local/lib/X11 \
25867 /usr/local/lib/X11R4 \
25868 /usr/local/lib/X11R5 \
25869 /usr/local/lib/X11R6 \
25870 /usr/local/lib/X11R7 \
25871 /usr/local/x11r5/lib \
25872 /usr/lpp/Xamples/lib \
25873 /usr/openwin/lib \
25874 /usr/openwin/share/lib \
25875 /usr/unsupported/lib \
25876 /usr/x386/lib \
25877 ; do
25878 if test -f "$ac_dir/X11/rgb.txt"; then
25879 im_cv_x_configure="$ac_dir/X11/"
25880 break
25881 elif test -f "$ac_dir/rgb.txt"; then
25882 im_cv_x_configure="$ac_dir/"
25883 break
25884 fi
25885
25886 done
25887fi
cristy8b350f62009-11-15 23:12:43 +000025888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000025889$as_echo "$im_cv_x_configure" >&6; }
25890X11_CONFIGURE_PATH="$im_cv_x_configure"
25891case "${build_os}" in
25892 mingw* )
25893 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25894 ;;
25895esac
25896
25897cat >>confdefs.h <<_ACEOF
25898#define X11_CONFIGURE_PATH "$X11ConfigurePath"
25899_ACEOF
25900
25901
25902#
25903# Find OpenMP library
25904#
25905GOMP_LIBS=''
25906if test "$enable_openmp" != 'no'; then
25907 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000025908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025909$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025910if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025911 $as_echo_n "(cached) " >&6
25912else
25913 ac_check_lib_save_LIBS=$LIBS
25914LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025916/* end confdefs.h. */
25917
25918/* Override any GCC internal prototype to avoid an error.
25919 Use char because int might match the return type of a GCC
25920 builtin and then its argument prototype would still apply. */
25921#ifdef __cplusplus
25922extern "C"
25923#endif
25924char GOMP_parallel_start ();
25925int
25926main ()
25927{
25928return GOMP_parallel_start ();
25929 ;
25930 return 0;
25931}
25932_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025933if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025934 ac_cv_lib_gomp_GOMP_parallel_start=yes
25935else
cristy8b350f62009-11-15 23:12:43 +000025936 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000025937fi
cristy8b350f62009-11-15 23:12:43 +000025938rm -f core conftest.err conftest.$ac_objext \
25939 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025940LIBS=$ac_check_lib_save_LIBS
25941fi
cristy8b350f62009-11-15 23:12:43 +000025942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000025943$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025944if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025945 GOMP_LIBS="-lgomp"
25946fi
25947 # gcc
25948 else
cristy8b350f62009-11-15 23:12:43 +000025949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025950$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025951if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025952 $as_echo_n "(cached) " >&6
25953else
25954 ac_check_lib_save_LIBS=$LIBS
25955LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025957/* end confdefs.h. */
25958
25959/* Override any GCC internal prototype to avoid an error.
25960 Use char because int might match the return type of a GCC
25961 builtin and then its argument prototype would still apply. */
25962#ifdef __cplusplus
25963extern "C"
25964#endif
25965char sunw_mp_register_warn ();
25966int
25967main ()
25968{
25969return sunw_mp_register_warn ();
25970 ;
25971 return 0;
25972}
25973_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025974if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025975 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25976else
cristy8b350f62009-11-15 23:12:43 +000025977 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000025978fi
cristy8b350f62009-11-15 23:12:43 +000025979rm -f core conftest.err conftest.$ac_objext \
25980 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025981LIBS=$ac_check_lib_save_LIBS
25982fi
cristy8b350f62009-11-15 23:12:43 +000025983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000025984$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000025985if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025986 GOMP_LIBS="-lmtsk"
25987fi
25988 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000025989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025990$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025991if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025992 $as_echo_n "(cached) " >&6
25993else
25994 ac_check_lib_save_LIBS=$LIBS
25995LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025997/* end confdefs.h. */
25998
25999/* Override any GCC internal prototype to avoid an error.
26000 Use char because int might match the return type of a GCC
26001 builtin and then its argument prototype would still apply. */
26002#ifdef __cplusplus
26003extern "C"
26004#endif
26005char _xlsmpFlush ();
26006int
26007main ()
26008{
26009return _xlsmpFlush ();
26010 ;
26011 return 0;
26012}
26013_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026014if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026015 ac_cv_lib_xlsmp__xlsmpFlush=yes
26016else
cristy8b350f62009-11-15 23:12:43 +000026017 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026018fi
cristy8b350f62009-11-15 23:12:43 +000026019rm -f core conftest.err conftest.$ac_objext \
26020 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026021LIBS=$ac_check_lib_save_LIBS
26022fi
cristy8b350f62009-11-15 23:12:43 +000026023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026024$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026025if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026026 GOMP_LIBS="-lxlsmp"
26027fi
26028 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000026029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026030$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026031if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026032 $as_echo_n "(cached) " >&6
26033else
26034 ac_check_lib_save_LIBS=$LIBS
26035LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026037/* end confdefs.h. */
26038
26039/* Override any GCC internal prototype to avoid an error.
26040 Use char because int might match the return type of a GCC
26041 builtin and then its argument prototype would still apply. */
26042#ifdef __cplusplus
26043extern "C"
26044#endif
26045char mp_destroy ();
26046int
26047main ()
26048{
26049return mp_destroy ();
26050 ;
26051 return 0;
26052}
26053_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026054if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026055 ac_cv_lib_mp_mp_destroy=yes
26056else
cristy8b350f62009-11-15 23:12:43 +000026057 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026058fi
cristy8b350f62009-11-15 23:12:43 +000026059rm -f core conftest.err conftest.$ac_objext \
26060 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026061LIBS=$ac_check_lib_save_LIBS
26062fi
cristy8b350f62009-11-15 23:12:43 +000026063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026064$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026065if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026066 GOMP_LIBS="-lmp"
26067fi
26068 # SGI IRIX 6.5 MIPSpro C/C++
26069 fi
26070 LIBS="$GOMP_LIBS $LIBS"
26071fi
26072
26073
26074#
26075# Find Posix threads library
26076#
26077THREAD_LIBS=''
26078if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26079
26080 if test "x$PTHREAD_LIBS" = "x"; then
26081 case "${host_cpu}-${host_os}" in
26082 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026083
26084
26085
26086ac_ext=c
26087ac_cpp='$CPP $CPPFLAGS'
26088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26090ac_compiler_gnu=$ac_cv_c_compiler_gnu
26091
26092magick_pthread_lib_ok=no
26093
26094LIB=-lc_r
26095save_LIBS="$LIBS"
26096LIBS="$LIBS $LIB"
26097
26098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26099$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26101/* end confdefs.h. */
26102#include <pthread.h>
26103int
26104main ()
26105{
26106 pthread_t th;
26107 pthread_join(th, 0);
26108 pthread_attr_init(0);
26109 pthread_cleanup_push(0, 0);
26110 pthread_create(0,0,0,0);
26111 pthread_cleanup_pop(0);
26112 ;
26113 return 0;
26114}
26115_ACEOF
26116if ac_fn_c_try_link "$LINENO"; then :
26117 magick_pthread_lib_ok=yes
26118fi
26119rm -f core conftest.err conftest.$ac_objext \
26120 conftest$ac_exeext conftest.$ac_ext
26121
26122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26123$as_echo "${magick_pthread_lib_ok}" >&6; }
26124if test "$magick_pthread_lib_ok" = yes
26125then
26126 PTHREAD_LIBS=-lc_r
26127 :
26128else
26129
26130 :
26131fi
26132
26133LIBS="$save_LIBS"
26134
26135ac_ext=c
26136ac_cpp='$CPP $CPPFLAGS'
26137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26139ac_compiler_gnu=$ac_cv_c_compiler_gnu
26140
26141 ;;
cristy3ed852e2009-09-05 21:47:34 +000026142 esac
26143 fi
26144
26145 for lib in pthread pthreads; do
26146 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026147
26148
26149
26150ac_ext=c
26151ac_cpp='$CPP $CPPFLAGS'
26152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26154ac_compiler_gnu=$ac_cv_c_compiler_gnu
26155
26156magick_pthread_lib_ok=no
26157
26158LIB=-l$lib
26159save_LIBS="$LIBS"
26160LIBS="$LIBS $LIB"
26161
26162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26163$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26165/* end confdefs.h. */
26166#include <pthread.h>
26167int
26168main ()
26169{
26170 pthread_t th;
26171 pthread_join(th, 0);
26172 pthread_attr_init(0);
26173 pthread_cleanup_push(0, 0);
26174 pthread_create(0,0,0,0);
26175 pthread_cleanup_pop(0);
26176 ;
26177 return 0;
26178}
26179_ACEOF
26180if ac_fn_c_try_link "$LINENO"; then :
26181 magick_pthread_lib_ok=yes
26182fi
26183rm -f core conftest.err conftest.$ac_objext \
26184 conftest$ac_exeext conftest.$ac_ext
26185
26186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26187$as_echo "${magick_pthread_lib_ok}" >&6; }
26188if test "$magick_pthread_lib_ok" = yes
26189then
26190 PTHREAD_LIBS=-l$lib
26191 :
26192else
26193
26194 :
26195fi
26196
26197LIBS="$save_LIBS"
26198
26199ac_ext=c
26200ac_cpp='$CPP $CPPFLAGS'
26201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26203ac_compiler_gnu=$ac_cv_c_compiler_gnu
26204
26205
cristy3ed852e2009-09-05 21:47:34 +000026206 fi
26207 done
26208
26209 THREAD_LIBS="$PTHREAD_LIBS"
26210 LIBS="$LIBS $THREAD_LIBS"
26211fi
26212
26213
26214#
26215# Check for umem.
26216#
26217have_umem='no'
26218UMEM_LIBS=''
26219if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026221$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026222 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26223$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026224 failed=0
26225 passed=0
cristy8b350f62009-11-15 23:12:43 +000026226 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026227if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026228 passed=`expr $passed + 1`
26229else
26230 failed=`expr $failed + 1`
26231fi
26232
26233
cristy8b350f62009-11-15 23:12:43 +000026234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026235$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026236if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026237 $as_echo_n "(cached) " >&6
26238else
26239 ac_check_lib_save_LIBS=$LIBS
26240LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026242/* end confdefs.h. */
26243
26244/* Override any GCC internal prototype to avoid an error.
26245 Use char because int might match the return type of a GCC
26246 builtin and then its argument prototype would still apply. */
26247#ifdef __cplusplus
26248extern "C"
26249#endif
26250char umem_alloc ();
26251int
26252main ()
26253{
26254return umem_alloc ();
26255 ;
26256 return 0;
26257}
26258_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026259if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026260 ac_cv_lib_umem_umem_alloc=yes
26261else
cristy8b350f62009-11-15 23:12:43 +000026262 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026263fi
cristy8b350f62009-11-15 23:12:43 +000026264rm -f core conftest.err conftest.$ac_objext \
26265 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026266LIBS=$ac_check_lib_save_LIBS
26267fi
cristy8b350f62009-11-15 23:12:43 +000026268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026269$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026270if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026271 passed=`expr $passed + 1`
26272else
26273 failed=`expr $failed + 1`
26274fi
26275
cristy8b350f62009-11-15 23:12:43 +000026276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026277$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026278if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026279 $as_echo_n "(cached) " >&6
26280else
26281 ac_check_lib_save_LIBS=$LIBS
26282LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026284/* end confdefs.h. */
26285
26286/* Override any GCC internal prototype to avoid an error.
26287 Use char because int might match the return type of a GCC
26288 builtin and then its argument prototype would still apply. */
26289#ifdef __cplusplus
26290extern "C"
26291#endif
26292char umem_free ();
26293int
26294main ()
26295{
26296return umem_free ();
26297 ;
26298 return 0;
26299}
26300_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026301if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026302 ac_cv_lib_umem_umem_free=yes
26303else
cristy8b350f62009-11-15 23:12:43 +000026304 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026305fi
cristy8b350f62009-11-15 23:12:43 +000026306rm -f core conftest.err conftest.$ac_objext \
26307 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026308LIBS=$ac_check_lib_save_LIBS
26309fi
cristy8b350f62009-11-15 23:12:43 +000026310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026311$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026312if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026313 passed=`expr $passed + 1`
26314else
26315 failed=`expr $failed + 1`
26316fi
26317
cristy8b350f62009-11-15 23:12:43 +000026318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026319$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26320 if test $passed -gt 0; then
26321 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026322 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26323$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026324 have_umem='no (failed tests)'
26325 else
26326 UMEM_LIBS='-lumem'
26327 LIBS="$UMEM_LIBS $LIBS"
26328
cristy8b350f62009-11-15 23:12:43 +000026329$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026330
cristy09b53e12011-10-14 12:47:22 +000026331 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26332$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026333 have_umem='yes'
26334 fi
26335 else
cristy09b53e12011-10-14 12:47:22 +000026336 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26337$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026338 fi
26339fi
cristy73bd4a52010-10-05 11:24:23 +000026340 if test "$have_umem" = 'yes'; then
26341 HasUMEM_TRUE=
26342 HasUMEM_FALSE='#'
26343else
26344 HasUMEM_TRUE='#'
26345 HasUMEM_FALSE=
26346fi
26347
cristy3ed852e2009-09-05 21:47:34 +000026348
26349
26350#
26351# Add support for ccmalloc memory debugging library if requested
26352#
26353have_ccmalloc='no'
26354CCMALLOC_LIBS=''
26355if test "$enable_ccmalloc" = 'yes'; then
26356 # Extract the first word of "ccmalloc", so it can be a program name with args.
26357set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026359$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026360if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026361 $as_echo_n "(cached) " >&6
26362else
26363 case $CCMALLOCDelegate in
26364 [\\/]* | ?:[\\/]*)
26365 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26366 ;;
26367 *)
26368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26369for as_dir in $PATH
26370do
26371 IFS=$as_save_IFS
26372 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026373 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26375 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026377 break 2
26378 fi
26379done
cristy8b350f62009-11-15 23:12:43 +000026380 done
cristy3ed852e2009-09-05 21:47:34 +000026381IFS=$as_save_IFS
26382
26383 ;;
26384esac
26385fi
26386CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26387if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026389$as_echo "$CCMALLOCDelegate" >&6; }
26390else
cristy8b350f62009-11-15 23:12:43 +000026391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026392$as_echo "no" >&6; }
26393fi
26394
26395
26396 if test -n "$CCMALLOCDelegate"; then
26397 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26398 OLIBS="$LIBS"
26399 # Assume that gcc is used with ccmalloc.
26400 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026402$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026403if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026404 $as_echo_n "(cached) " >&6
26405else
26406 ac_check_lib_save_LIBS=$LIBS
26407LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026409/* end confdefs.h. */
26410
26411/* Override any GCC internal prototype to avoid an error.
26412 Use char because int might match the return type of a GCC
26413 builtin and then its argument prototype would still apply. */
26414#ifdef __cplusplus
26415extern "C"
26416#endif
26417char ccmalloc_malloc ();
26418int
26419main ()
26420{
26421return ccmalloc_malloc ();
26422 ;
26423 return 0;
26424}
26425_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026426if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026427 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26428else
cristy8b350f62009-11-15 23:12:43 +000026429 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026430fi
cristy8b350f62009-11-15 23:12:43 +000026431rm -f core conftest.err conftest.$ac_objext \
26432 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026433LIBS=$ac_check_lib_save_LIBS
26434fi
cristy8b350f62009-11-15 23:12:43 +000026435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026436$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026437if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026438 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26439fi
26440
26441 if test -n "$CCMALLOC_LIBS"; then
26442 LIBS="$OLIBS"
26443 LIBS="$LIBS $CCMALLOC_LIBS"
26444 have_ccmalloc='yes'
26445 else
26446 LIBS="$OLIBS"
26447 fi
26448 fi
26449fi
26450
26451#
26452# Add support for efence memory debugging library if requested
26453#
26454if test "$enable_efence" = 'yes'; then
26455 EFENCE_LIBS='-lefence'
26456 LIBS="$EFENCE_LIBS $LIBS"
26457fi
26458
cristy3ed852e2009-09-05 21:47:34 +000026459
26460#
26461# Check for BZLIB
26462#
26463
26464
26465# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026466if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026467 withval=$with_bzlib; with_bzlib=$withval
26468else
26469 with_bzlib='yes'
26470fi
26471
26472
26473if test "$with_bzlib" != 'yes'; then
26474 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26475fi
26476
26477have_bzlib='no'
26478if test "$with_bzlib" != 'no'; then
26479 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000026480 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
26481$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000026482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026483$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026484 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26485$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026486 failed=0
26487 passed=0
26488 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026489 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026490if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026491 passed=`expr $passed + 1`
26492else
26493 failed=`expr $failed + 1`
26494fi
26495
26496
cristy8b350f62009-11-15 23:12:43 +000026497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026498$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026499if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026500 $as_echo_n "(cached) " >&6
26501else
26502 ac_check_lib_save_LIBS=$LIBS
26503LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026505/* end confdefs.h. */
26506
26507/* Override any GCC internal prototype to avoid an error.
26508 Use char because int might match the return type of a GCC
26509 builtin and then its argument prototype would still apply. */
26510#ifdef __cplusplus
26511extern "C"
26512#endif
26513char BZ2_bzDecompress ();
26514int
26515main ()
26516{
26517return BZ2_bzDecompress ();
26518 ;
26519 return 0;
26520}
26521_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026522if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026523 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26524else
cristy8b350f62009-11-15 23:12:43 +000026525 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026526fi
cristy8b350f62009-11-15 23:12:43 +000026527rm -f core conftest.err conftest.$ac_objext \
26528 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026529LIBS=$ac_check_lib_save_LIBS
26530fi
cristy8b350f62009-11-15 23:12:43 +000026531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026532$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026533if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026534 found_libbz=`expr $found_libbz + 1`
26535fi
26536
26537 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026539$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026540if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026541 $as_echo_n "(cached) " >&6
26542else
26543 ac_check_lib_save_LIBS=$LIBS
26544LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026546/* end confdefs.h. */
26547
26548/* Override any GCC internal prototype to avoid an error.
26549 Use char because int might match the return type of a GCC
26550 builtin and then its argument prototype would still apply. */
26551#ifdef __cplusplus
26552extern "C"
26553#endif
26554char _imp__BZ2_decompress ();
26555int
26556main ()
26557{
26558return _imp__BZ2_decompress ();
26559 ;
26560 return 0;
26561}
26562_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026563if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026564 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26565else
cristy8b350f62009-11-15 23:12:43 +000026566 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026567fi
cristy8b350f62009-11-15 23:12:43 +000026568rm -f core conftest.err conftest.$ac_objext \
26569 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026570LIBS=$ac_check_lib_save_LIBS
26571fi
cristy8b350f62009-11-15 23:12:43 +000026572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026573$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026574if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026575 found_libbz=`expr $found_libbz + 1`
26576fi
26577
26578 fi
26579 if test $found_libbz -gt 0; then
26580 passed=`expr $passed + 1`
26581 else
26582 failed=`expr $failed + 1`
26583 fi
cristy8b350f62009-11-15 23:12:43 +000026584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026585$as_echo_n "checking if BZLIB package is complete... " >&6; }
26586 if test $passed -gt 0; then
26587 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026588 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26589$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026590 have_bzlib='no (failed tests)'
26591 else
26592 BZLIB_LIBS='-lbz2'
26593 LIBS="$BZLIB_LIBS $LIBS"
26594
cristy8b350f62009-11-15 23:12:43 +000026595$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026596
cristy09b53e12011-10-14 12:47:22 +000026597 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26598$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026599 have_bzlib='yes'
26600 fi
26601 else
cristy09b53e12011-10-14 12:47:22 +000026602 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26603$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026604 fi
26605fi
cristy73bd4a52010-10-05 11:24:23 +000026606 if test "$have_bzlib" = 'yes'; then
26607 BZLIB_DELEGATE_TRUE=
26608 BZLIB_DELEGATE_FALSE='#'
26609else
26610 BZLIB_DELEGATE_TRUE='#'
26611 BZLIB_DELEGATE_FALSE=
26612fi
26613
cristy3ed852e2009-09-05 21:47:34 +000026614
26615
26616#
26617# Find the X11 include and library directories.
26618#
26619IPC_LIBS=''
26620X11_LIBS=''
26621XEXT_LIBS=''
26622XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026624$as_echo_n "checking for X... " >&6; }
26625
26626
26627# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026628if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026629 withval=$with_x;
26630fi
26631
26632# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26633if test "x$with_x" = xno; then
26634 # The user explicitly disabled X.
26635 have_x=disabled
26636else
26637 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026638 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026639 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026640 $as_echo_n "(cached) " >&6
26641else
26642 # One or both of the vars are not set, and there is no cached value.
26643ac_x_includes=no ac_x_libraries=no
26644rm -f -r conftest.dir
26645if mkdir conftest.dir; then
26646 cd conftest.dir
26647 cat >Imakefile <<'_ACEOF'
26648incroot:
26649 @echo incroot='${INCROOT}'
26650usrlibdir:
26651 @echo usrlibdir='${USRLIBDIR}'
26652libdir:
26653 @echo libdir='${LIBDIR}'
26654_ACEOF
26655 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026656 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026657 for ac_var in incroot usrlibdir libdir; do
26658 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26659 done
26660 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26661 for ac_extension in a so sl dylib la dll; do
26662 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26663 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26664 ac_im_usrlibdir=$ac_im_libdir; break
26665 fi
26666 done
26667 # Screen out bogus values from the imake configuration. They are
26668 # bogus both because they are the default anyway, and because
26669 # using them would break gcc on systems where it needs fixed includes.
26670 case $ac_im_incroot in
26671 /usr/include) ac_x_includes= ;;
26672 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26673 esac
26674 case $ac_im_usrlibdir in
26675 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26676 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26677 esac
26678 fi
26679 cd ..
26680 rm -f -r conftest.dir
26681fi
26682
26683# Standard set of common directories for X headers.
26684# Check X11 before X11Rn because it is often a symlink to the current release.
26685ac_x_header_dirs='
26686/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026687/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026688/usr/X11R6/include
26689/usr/X11R5/include
26690/usr/X11R4/include
26691
26692/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026693/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026694/usr/include/X11R6
26695/usr/include/X11R5
26696/usr/include/X11R4
26697
26698/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026699/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026700/usr/local/X11R6/include
26701/usr/local/X11R5/include
26702/usr/local/X11R4/include
26703
26704/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026705/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026706/usr/local/include/X11R6
26707/usr/local/include/X11R5
26708/usr/local/include/X11R4
26709
26710/usr/X386/include
26711/usr/x386/include
26712/usr/XFree86/include/X11
26713
26714/usr/include
26715/usr/local/include
26716/usr/unsupported/include
26717/usr/athena/include
26718/usr/local/x11r5/include
26719/usr/lpp/Xamples/include
26720
26721/usr/openwin/include
26722/usr/openwin/share/include'
26723
26724if test "$ac_x_includes" = no; then
26725 # Guess where to find include files, by looking for Xlib.h.
26726 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026728/* end confdefs.h. */
26729#include <X11/Xlib.h>
26730_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026731if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026732 # We can compile using X headers with no special include directory.
26733ac_x_includes=
26734else
cristyc7083c12009-10-14 03:16:55 +000026735 for ac_dir in $ac_x_header_dirs; do
26736 if test -r "$ac_dir/X11/Xlib.h"; then
26737 ac_x_includes=$ac_dir
26738 break
26739 fi
26740done
26741fi
cristyda16f162011-02-19 23:52:17 +000026742rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026743fi # $ac_x_includes = no
26744
26745if test "$ac_x_libraries" = no; then
26746 # Check for the libraries.
26747 # See if we find them without any special options.
26748 # Don't add to $LIBS permanently.
26749 ac_save_LIBS=$LIBS
26750 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026752/* end confdefs.h. */
26753#include <X11/Xlib.h>
26754int
26755main ()
26756{
26757XrmInitialize ()
26758 ;
26759 return 0;
26760}
26761_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026762if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026763 LIBS=$ac_save_LIBS
26764# We can link X programs with no special library path.
26765ac_x_libraries=
26766else
cristy8b350f62009-11-15 23:12:43 +000026767 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026768for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26769do
26770 # Don't even attempt the hair of trying to link an X program!
26771 for ac_extension in a so sl dylib la dll; do
26772 if test -r "$ac_dir/libX11.$ac_extension"; then
26773 ac_x_libraries=$ac_dir
26774 break 2
26775 fi
26776 done
26777done
26778fi
cristy8b350f62009-11-15 23:12:43 +000026779rm -f core conftest.err conftest.$ac_objext \
26780 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026781fi # $ac_x_libraries = no
26782
26783case $ac_x_includes,$ac_x_libraries in #(
26784 no,* | *,no | *\'*)
26785 # Didn't find X, or a directory has "'" in its name.
26786 ac_cv_have_x="have_x=no";; #(
26787 *)
26788 # Record where we found X for the cache.
26789 ac_cv_have_x="have_x=yes\
26790 ac_x_includes='$ac_x_includes'\
26791 ac_x_libraries='$ac_x_libraries'"
26792esac
26793fi
26794;; #(
26795 *) have_x=yes;;
26796 esac
26797 eval "$ac_cv_have_x"
26798fi # $with_x != no
26799
26800if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026802$as_echo "$have_x" >&6; }
26803 no_x=yes
26804else
26805 # If each of the values was on the command line, it overrides each guess.
26806 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26807 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26808 # Update the cache value to reflect the command line values.
26809 ac_cv_have_x="have_x=yes\
26810 ac_x_includes='$x_includes'\
26811 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026813$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26814fi
26815
cristy3ed852e2009-09-05 21:47:34 +000026816if test "$no_x" = yes; then
26817 # Not all programs may use this symbol, but it does not hurt to define it.
26818
cristy8b350f62009-11-15 23:12:43 +000026819$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026820
26821 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26822else
26823 if test -n "$x_includes"; then
26824 X_CFLAGS="$X_CFLAGS -I$x_includes"
26825 fi
26826
26827 # It would also be nice to do this for all -L options, not just this one.
26828 if test -n "$x_libraries"; then
26829 X_LIBS="$X_LIBS -L$x_libraries"
26830 # For Solaris; some versions of Sun CC require a space after -R and
26831 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026833$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26834 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26835 ac_xsave_c_werror_flag=$ac_c_werror_flag
26836 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026838/* end confdefs.h. */
26839
26840int
26841main ()
26842{
26843
26844 ;
26845 return 0;
26846}
26847_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026848if ac_fn_c_try_link "$LINENO"; then :
26849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026850$as_echo "no" >&6; }
26851 X_LIBS="$X_LIBS -R$x_libraries"
26852else
cristy8b350f62009-11-15 23:12:43 +000026853 LIBS="$ac_xsave_LIBS -R $x_libraries"
26854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026855/* end confdefs.h. */
26856
26857int
26858main ()
26859{
26860
26861 ;
26862 return 0;
26863}
26864_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026865if ac_fn_c_try_link "$LINENO"; then :
26866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026867$as_echo "yes" >&6; }
26868 X_LIBS="$X_LIBS -R $x_libraries"
26869else
cristy8b350f62009-11-15 23:12:43 +000026870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026871$as_echo "neither works" >&6; }
26872fi
cristy8b350f62009-11-15 23:12:43 +000026873rm -f core conftest.err conftest.$ac_objext \
26874 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026875fi
cristy8b350f62009-11-15 23:12:43 +000026876rm -f core conftest.err conftest.$ac_objext \
26877 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026878 ac_c_werror_flag=$ac_xsave_c_werror_flag
26879 LIBS=$ac_xsave_LIBS
26880 fi
26881
26882 # Check for system-dependent libraries X programs must link with.
26883 # Do this before checking for the system-independent R6 libraries
26884 # (-lICE), since we may need -lsocket or whatever for X linking.
26885
26886 if test "$ISC" = yes; then
26887 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26888 else
26889 # Martyn Johnson says this is needed for Ultrix, if the X
26890 # libraries were built with DECnet support. And Karl Berry says
26891 # the Alpha needs dnet_stub (dnet does not exist).
26892 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000026893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026894/* end confdefs.h. */
26895
26896/* Override any GCC internal prototype to avoid an error.
26897 Use char because int might match the return type of a GCC
26898 builtin and then its argument prototype would still apply. */
26899#ifdef __cplusplus
26900extern "C"
26901#endif
26902char XOpenDisplay ();
26903int
26904main ()
26905{
26906return XOpenDisplay ();
26907 ;
26908 return 0;
26909}
26910_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026911if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026912
cristy8b350f62009-11-15 23:12:43 +000026913else
26914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026915$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026916if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026917 $as_echo_n "(cached) " >&6
26918else
26919 ac_check_lib_save_LIBS=$LIBS
26920LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026922/* end confdefs.h. */
26923
26924/* Override any GCC internal prototype to avoid an error.
26925 Use char because int might match the return type of a GCC
26926 builtin and then its argument prototype would still apply. */
26927#ifdef __cplusplus
26928extern "C"
26929#endif
26930char dnet_ntoa ();
26931int
26932main ()
26933{
26934return dnet_ntoa ();
26935 ;
26936 return 0;
26937}
26938_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026939if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026940 ac_cv_lib_dnet_dnet_ntoa=yes
26941else
cristy8b350f62009-11-15 23:12:43 +000026942 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026943fi
cristy8b350f62009-11-15 23:12:43 +000026944rm -f core conftest.err conftest.$ac_objext \
26945 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026946LIBS=$ac_check_lib_save_LIBS
26947fi
cristy8b350f62009-11-15 23:12:43 +000026948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026949$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026950if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026951 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26952fi
26953
26954 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000026955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000026956$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026957if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026958 $as_echo_n "(cached) " >&6
26959else
26960 ac_check_lib_save_LIBS=$LIBS
26961LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026963/* end confdefs.h. */
26964
26965/* Override any GCC internal prototype to avoid an error.
26966 Use char because int might match the return type of a GCC
26967 builtin and then its argument prototype would still apply. */
26968#ifdef __cplusplus
26969extern "C"
26970#endif
26971char dnet_ntoa ();
26972int
26973main ()
26974{
26975return dnet_ntoa ();
26976 ;
26977 return 0;
26978}
26979_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026980if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026981 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26982else
cristy8b350f62009-11-15 23:12:43 +000026983 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026984fi
cristy8b350f62009-11-15 23:12:43 +000026985rm -f core conftest.err conftest.$ac_objext \
26986 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026987LIBS=$ac_check_lib_save_LIBS
26988fi
cristy8b350f62009-11-15 23:12:43 +000026989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026990$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026991if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026992 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26993fi
26994
26995 fi
26996fi
cristy8b350f62009-11-15 23:12:43 +000026997rm -f core conftest.err conftest.$ac_objext \
26998 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026999 LIBS="$ac_xsave_LIBS"
27000
27001 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27002 # to get the SysV transport functions.
27003 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27004 # needs -lnsl.
27005 # The nsl library prevents programs from opening the X display
27006 # on Irix 5.2, according to T.E. Dickey.
27007 # The functions gethostbyname, getservbyname, and inet_addr are
27008 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027009 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027010if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027011
cristy3ed852e2009-09-05 21:47:34 +000027012fi
27013
cristy3ed852e2009-09-05 21:47:34 +000027014 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027016$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027017if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027018 $as_echo_n "(cached) " >&6
27019else
27020 ac_check_lib_save_LIBS=$LIBS
27021LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027023/* end confdefs.h. */
27024
27025/* Override any GCC internal prototype to avoid an error.
27026 Use char because int might match the return type of a GCC
27027 builtin and then its argument prototype would still apply. */
27028#ifdef __cplusplus
27029extern "C"
27030#endif
27031char gethostbyname ();
27032int
27033main ()
27034{
27035return gethostbyname ();
27036 ;
27037 return 0;
27038}
27039_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027040if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027041 ac_cv_lib_nsl_gethostbyname=yes
27042else
cristy8b350f62009-11-15 23:12:43 +000027043 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027044fi
cristy8b350f62009-11-15 23:12:43 +000027045rm -f core conftest.err conftest.$ac_objext \
27046 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027047LIBS=$ac_check_lib_save_LIBS
27048fi
cristy8b350f62009-11-15 23:12:43 +000027049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027050$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027051if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027052 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27053fi
27054
27055 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027057$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027058if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027059 $as_echo_n "(cached) " >&6
27060else
27061 ac_check_lib_save_LIBS=$LIBS
27062LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027064/* end confdefs.h. */
27065
27066/* Override any GCC internal prototype to avoid an error.
27067 Use char because int might match the return type of a GCC
27068 builtin and then its argument prototype would still apply. */
27069#ifdef __cplusplus
27070extern "C"
27071#endif
27072char gethostbyname ();
27073int
27074main ()
27075{
27076return gethostbyname ();
27077 ;
27078 return 0;
27079}
27080_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027081if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027082 ac_cv_lib_bsd_gethostbyname=yes
27083else
cristy8b350f62009-11-15 23:12:43 +000027084 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027085fi
cristy8b350f62009-11-15 23:12:43 +000027086rm -f core conftest.err conftest.$ac_objext \
27087 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027088LIBS=$ac_check_lib_save_LIBS
27089fi
cristy8b350f62009-11-15 23:12:43 +000027090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027091$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027092if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027093 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27094fi
27095
27096 fi
27097 fi
27098
27099 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27100 # socket/setsockopt and other routines are undefined under SCO ODT
27101 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27102 # on later versions), says Simon Leinen: it contains gethostby*
27103 # variants that don't use the name server (or something). -lsocket
27104 # must be given before -lnsl if both are needed. We assume that
27105 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027106 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027107if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027108
cristy3ed852e2009-09-05 21:47:34 +000027109fi
27110
cristy3ed852e2009-09-05 21:47:34 +000027111 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027113$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027114if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027115 $as_echo_n "(cached) " >&6
27116else
27117 ac_check_lib_save_LIBS=$LIBS
27118LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027120/* end confdefs.h. */
27121
27122/* Override any GCC internal prototype to avoid an error.
27123 Use char because int might match the return type of a GCC
27124 builtin and then its argument prototype would still apply. */
27125#ifdef __cplusplus
27126extern "C"
27127#endif
27128char connect ();
27129int
27130main ()
27131{
27132return connect ();
27133 ;
27134 return 0;
27135}
27136_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027137if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027138 ac_cv_lib_socket_connect=yes
27139else
cristy8b350f62009-11-15 23:12:43 +000027140 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027141fi
cristy8b350f62009-11-15 23:12:43 +000027142rm -f core conftest.err conftest.$ac_objext \
27143 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027144LIBS=$ac_check_lib_save_LIBS
27145fi
cristy8b350f62009-11-15 23:12:43 +000027146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027147$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027148if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027149 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27150fi
27151
27152 fi
27153
27154 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027155 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027156if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027157
cristy3ed852e2009-09-05 21:47:34 +000027158fi
27159
cristy3ed852e2009-09-05 21:47:34 +000027160 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027162$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027163if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027164 $as_echo_n "(cached) " >&6
27165else
27166 ac_check_lib_save_LIBS=$LIBS
27167LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027169/* end confdefs.h. */
27170
27171/* Override any GCC internal prototype to avoid an error.
27172 Use char because int might match the return type of a GCC
27173 builtin and then its argument prototype would still apply. */
27174#ifdef __cplusplus
27175extern "C"
27176#endif
27177char remove ();
27178int
27179main ()
27180{
27181return remove ();
27182 ;
27183 return 0;
27184}
27185_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027186if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027187 ac_cv_lib_posix_remove=yes
27188else
cristy8b350f62009-11-15 23:12:43 +000027189 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027190fi
cristy8b350f62009-11-15 23:12:43 +000027191rm -f core conftest.err conftest.$ac_objext \
27192 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027193LIBS=$ac_check_lib_save_LIBS
27194fi
cristy8b350f62009-11-15 23:12:43 +000027195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027196$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027197if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027198 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27199fi
27200
27201 fi
27202
27203 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027204 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027205if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027206
cristy3ed852e2009-09-05 21:47:34 +000027207fi
27208
cristy3ed852e2009-09-05 21:47:34 +000027209 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027211$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027212if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027213 $as_echo_n "(cached) " >&6
27214else
27215 ac_check_lib_save_LIBS=$LIBS
27216LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027218/* end confdefs.h. */
27219
27220/* Override any GCC internal prototype to avoid an error.
27221 Use char because int might match the return type of a GCC
27222 builtin and then its argument prototype would still apply. */
27223#ifdef __cplusplus
27224extern "C"
27225#endif
27226char shmat ();
27227int
27228main ()
27229{
27230return shmat ();
27231 ;
27232 return 0;
27233}
27234_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027235if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027236 ac_cv_lib_ipc_shmat=yes
27237else
cristy8b350f62009-11-15 23:12:43 +000027238 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027239fi
cristy8b350f62009-11-15 23:12:43 +000027240rm -f core conftest.err conftest.$ac_objext \
27241 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027242LIBS=$ac_check_lib_save_LIBS
27243fi
cristy8b350f62009-11-15 23:12:43 +000027244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027245$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027246if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027247 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27248fi
27249
27250 fi
27251 fi
27252
27253 # Check for libraries that X11R6 Xt/Xaw programs need.
27254 ac_save_LDFLAGS=$LDFLAGS
27255 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27256 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27257 # check for ICE first), but we must link in the order -lSM -lICE or
27258 # we get undefined symbols. So assume we have SM if we have ICE.
27259 # These have to be linked with before -lX11, unlike the other
27260 # libraries we check for below, so use a different variable.
27261 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027263$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027264if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027265 $as_echo_n "(cached) " >&6
27266else
27267 ac_check_lib_save_LIBS=$LIBS
27268LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027270/* end confdefs.h. */
27271
27272/* Override any GCC internal prototype to avoid an error.
27273 Use char because int might match the return type of a GCC
27274 builtin and then its argument prototype would still apply. */
27275#ifdef __cplusplus
27276extern "C"
27277#endif
27278char IceConnectionNumber ();
27279int
27280main ()
27281{
27282return IceConnectionNumber ();
27283 ;
27284 return 0;
27285}
27286_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027287if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027288 ac_cv_lib_ICE_IceConnectionNumber=yes
27289else
cristy8b350f62009-11-15 23:12:43 +000027290 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027291fi
cristy8b350f62009-11-15 23:12:43 +000027292rm -f core conftest.err conftest.$ac_objext \
27293 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027294LIBS=$ac_check_lib_save_LIBS
27295fi
cristy8b350f62009-11-15 23:12:43 +000027296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027297$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027298if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027299 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27300fi
27301
27302 LDFLAGS=$ac_save_LDFLAGS
27303
27304fi
27305
27306if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000027307 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27308$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027310$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027311 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27312$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027313 LDFLAGS="$LDFLAGS $X_LIBS"
27314 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27315 LIBS="$X11_LIBS $LIBS"
27316 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27317
27318
cristy8b350f62009-11-15 23:12:43 +000027319$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027320
27321 #
27322 # Check for X11 shared memory extension
27323 #
27324 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027325 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027326if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027327 have_shmctl='yes'
27328fi
27329
27330 if test "$have_shmctl" != 'yes'; then
27331 PERSIST_LIBS=$LIBS
27332 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027334/* end confdefs.h. */
27335
27336/* Override any GCC internal prototype to avoid an error.
27337 Use char because int might match the return type of a GCC
27338 builtin and then its argument prototype would still apply. */
27339#ifdef __cplusplus
27340extern "C"
27341#endif
27342char shmctl ();
27343int
27344main ()
27345{
27346return shmctl ();
27347 ;
27348 return 0;
27349}
27350_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027351if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027352 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027353fi
cristy8b350f62009-11-15 23:12:43 +000027354rm -f core conftest.err conftest.$ac_objext \
27355 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027356 LIBS=$PERSIST_LIBS
27357 fi
27358
27359 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027361$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027362if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027363 $as_echo_n "(cached) " >&6
27364else
27365 ac_check_lib_save_LIBS=$LIBS
27366LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027368/* end confdefs.h. */
27369
27370/* Override any GCC internal prototype to avoid an error.
27371 Use char because int might match the return type of a GCC
27372 builtin and then its argument prototype would still apply. */
27373#ifdef __cplusplus
27374extern "C"
27375#endif
27376char XShmAttach ();
27377int
27378main ()
27379{
27380return XShmAttach ();
27381 ;
27382 return 0;
27383}
27384_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027385if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027386 ac_cv_lib_Xext_XShmAttach=yes
27387else
cristy8b350f62009-11-15 23:12:43 +000027388 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027389fi
cristy8b350f62009-11-15 23:12:43 +000027390rm -f core conftest.err conftest.$ac_objext \
27391 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027392LIBS=$ac_check_lib_save_LIBS
27393fi
cristy8b350f62009-11-15 23:12:43 +000027394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027395$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027396if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027397 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027398$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027399
27400fi
27401
27402 fi
27403
27404 #
27405 # Check for X11 shape extension
27406 #
cristy8b350f62009-11-15 23:12:43 +000027407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027408$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027409if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027410 $as_echo_n "(cached) " >&6
27411else
27412 ac_check_lib_save_LIBS=$LIBS
27413LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027414cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027415/* end confdefs.h. */
27416
27417/* Override any GCC internal prototype to avoid an error.
27418 Use char because int might match the return type of a GCC
27419 builtin and then its argument prototype would still apply. */
27420#ifdef __cplusplus
27421extern "C"
27422#endif
27423char XShapeCombineMask ();
27424int
27425main ()
27426{
27427return XShapeCombineMask ();
27428 ;
27429 return 0;
27430}
27431_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027432if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027433 ac_cv_lib_Xext_XShapeCombineMask=yes
27434else
cristy8b350f62009-11-15 23:12:43 +000027435 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027436fi
cristy8b350f62009-11-15 23:12:43 +000027437rm -f core conftest.err conftest.$ac_objext \
27438 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027439LIBS=$ac_check_lib_save_LIBS
27440fi
cristy8b350f62009-11-15 23:12:43 +000027441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027442$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027443if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027444 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027445$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027446
27447fi
27448
cristy8b350f62009-11-15 23:12:43 +000027449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027450$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027451if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027452 $as_echo_n "(cached) " >&6
27453else
27454 ac_check_lib_save_LIBS=$LIBS
27455LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027457/* end confdefs.h. */
27458
27459/* Override any GCC internal prototype to avoid an error.
27460 Use char because int might match the return type of a GCC
27461 builtin and then its argument prototype would still apply. */
27462#ifdef __cplusplus
27463extern "C"
27464#endif
27465char XtSetEventDispatcher ();
27466int
27467main ()
27468{
27469return XtSetEventDispatcher ();
27470 ;
27471 return 0;
27472}
27473_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027474if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027475 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27476else
cristy8b350f62009-11-15 23:12:43 +000027477 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027478fi
cristy8b350f62009-11-15 23:12:43 +000027479rm -f core conftest.err conftest.$ac_objext \
27480 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027481LIBS=$ac_check_lib_save_LIBS
27482fi
cristy8b350f62009-11-15 23:12:43 +000027483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027484$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027485if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027486 XT_LIBS='-lXt'
27487fi
27488
27489 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27490fi
27491if test "$no_x" != 'yes'; then
27492 have_x='yes'
27493else
27494 have_x='no'
27495fi
cristy73bd4a52010-10-05 11:24:23 +000027496 if test "$have_x" = 'yes'; then
27497 X11_DELEGATE_TRUE=
27498 X11_DELEGATE_FALSE='#'
27499else
27500 X11_DELEGATE_TRUE='#'
27501 X11_DELEGATE_FALSE=
27502fi
27503
cristy3ed852e2009-09-05 21:47:34 +000027504
27505
27506
27507
27508#
27509# Check for ZLIB
27510#
27511
27512# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027513if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027514 withval=$with_zlib; with_zlib=$withval
27515else
27516 with_zlib='yes'
27517fi
27518
27519
27520if test "$with_zlib" != 'yes'; then
27521 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27522fi
27523
27524have_zlib='no'
27525ZLIB_LIBS=''
27526if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000027527 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27528$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027530$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027531 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27532$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027533 ZLIB_LIBS=''
27534 failed=0
27535 passed=0
cristy8b350f62009-11-15 23:12:43 +000027536 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027537if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027538 passed=`expr $passed + 1`
27539else
27540 failed=`expr $failed + 1`
27541fi
27542
27543
cristy8b350f62009-11-15 23:12:43 +000027544 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027545if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027546 passed=`expr $passed + 1`
27547else
27548 failed=`expr $failed + 1`
27549fi
27550
27551
cristy8b350f62009-11-15 23:12:43 +000027552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027553$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027554if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027555 $as_echo_n "(cached) " >&6
27556else
27557 ac_check_lib_save_LIBS=$LIBS
27558LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027560/* end confdefs.h. */
27561
27562/* Override any GCC internal prototype to avoid an error.
27563 Use char because int might match the return type of a GCC
27564 builtin and then its argument prototype would still apply. */
27565#ifdef __cplusplus
27566extern "C"
27567#endif
27568char compress ();
27569int
27570main ()
27571{
27572return compress ();
27573 ;
27574 return 0;
27575}
27576_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027577if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027578 ac_cv_lib_z_compress=yes
27579else
cristy8b350f62009-11-15 23:12:43 +000027580 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027581fi
cristy8b350f62009-11-15 23:12:43 +000027582rm -f core conftest.err conftest.$ac_objext \
27583 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027584LIBS=$ac_check_lib_save_LIBS
27585fi
cristy8b350f62009-11-15 23:12:43 +000027586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027587$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027588if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027589 passed=`expr $passed + 1`
27590else
27591 failed=`expr $failed + 1`
27592fi
27593
cristy8b350f62009-11-15 23:12:43 +000027594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027595$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027596if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027597 $as_echo_n "(cached) " >&6
27598else
27599 ac_check_lib_save_LIBS=$LIBS
27600LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027602/* end confdefs.h. */
27603
27604/* Override any GCC internal prototype to avoid an error.
27605 Use char because int might match the return type of a GCC
27606 builtin and then its argument prototype would still apply. */
27607#ifdef __cplusplus
27608extern "C"
27609#endif
27610char uncompress ();
27611int
27612main ()
27613{
27614return uncompress ();
27615 ;
27616 return 0;
27617}
27618_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027619if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027620 ac_cv_lib_z_uncompress=yes
27621else
cristy8b350f62009-11-15 23:12:43 +000027622 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027623fi
cristy8b350f62009-11-15 23:12:43 +000027624rm -f core conftest.err conftest.$ac_objext \
27625 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027626LIBS=$ac_check_lib_save_LIBS
27627fi
cristy8b350f62009-11-15 23:12:43 +000027628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027629$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027630if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027631 passed=`expr $passed + 1`
27632else
27633 failed=`expr $failed + 1`
27634fi
27635
cristy8b350f62009-11-15 23:12:43 +000027636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027637$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027638if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027639 $as_echo_n "(cached) " >&6
27640else
27641 ac_check_lib_save_LIBS=$LIBS
27642LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027644/* end confdefs.h. */
27645
27646/* Override any GCC internal prototype to avoid an error.
27647 Use char because int might match the return type of a GCC
27648 builtin and then its argument prototype would still apply. */
27649#ifdef __cplusplus
27650extern "C"
27651#endif
27652char deflate ();
27653int
27654main ()
27655{
27656return deflate ();
27657 ;
27658 return 0;
27659}
27660_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027661if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027662 ac_cv_lib_z_deflate=yes
27663else
cristy8b350f62009-11-15 23:12:43 +000027664 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027665fi
cristy8b350f62009-11-15 23:12:43 +000027666rm -f core conftest.err conftest.$ac_objext \
27667 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027668LIBS=$ac_check_lib_save_LIBS
27669fi
cristy8b350f62009-11-15 23:12:43 +000027670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027671$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027672if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027673 passed=`expr $passed + 1`
27674else
27675 failed=`expr $failed + 1`
27676fi
27677
cristy8b350f62009-11-15 23:12:43 +000027678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027679$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027680if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027681 $as_echo_n "(cached) " >&6
27682else
27683 ac_check_lib_save_LIBS=$LIBS
27684LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027686/* end confdefs.h. */
27687
27688/* Override any GCC internal prototype to avoid an error.
27689 Use char because int might match the return type of a GCC
27690 builtin and then its argument prototype would still apply. */
27691#ifdef __cplusplus
27692extern "C"
27693#endif
27694char inflate ();
27695int
27696main ()
27697{
27698return inflate ();
27699 ;
27700 return 0;
27701}
27702_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027703if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027704 ac_cv_lib_z_inflate=yes
27705else
cristy8b350f62009-11-15 23:12:43 +000027706 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027707fi
cristy8b350f62009-11-15 23:12:43 +000027708rm -f core conftest.err conftest.$ac_objext \
27709 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027710LIBS=$ac_check_lib_save_LIBS
27711fi
cristy8b350f62009-11-15 23:12:43 +000027712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027713$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027714if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027715 passed=`expr $passed + 1`
27716else
27717 failed=`expr $failed + 1`
27718fi
27719
cristy8b350f62009-11-15 23:12:43 +000027720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027721$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027722if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027723 $as_echo_n "(cached) " >&6
27724else
27725 ac_check_lib_save_LIBS=$LIBS
27726LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027728/* end confdefs.h. */
27729
27730/* Override any GCC internal prototype to avoid an error.
27731 Use char because int might match the return type of a GCC
27732 builtin and then its argument prototype would still apply. */
27733#ifdef __cplusplus
27734extern "C"
27735#endif
27736char gzseek ();
27737int
27738main ()
27739{
27740return gzseek ();
27741 ;
27742 return 0;
27743}
27744_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027745if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027746 ac_cv_lib_z_gzseek=yes
27747else
cristy8b350f62009-11-15 23:12:43 +000027748 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027749fi
cristy8b350f62009-11-15 23:12:43 +000027750rm -f core conftest.err conftest.$ac_objext \
27751 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027752LIBS=$ac_check_lib_save_LIBS
27753fi
cristy8b350f62009-11-15 23:12:43 +000027754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027755$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027756if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027757 passed=`expr $passed + 1`
27758else
27759 failed=`expr $failed + 1`
27760fi
27761
cristy8b350f62009-11-15 23:12:43 +000027762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027763$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027764if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027765 $as_echo_n "(cached) " >&6
27766else
27767 ac_check_lib_save_LIBS=$LIBS
27768LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027770/* end confdefs.h. */
27771
27772/* Override any GCC internal prototype to avoid an error.
27773 Use char because int might match the return type of a GCC
27774 builtin and then its argument prototype would still apply. */
27775#ifdef __cplusplus
27776extern "C"
27777#endif
27778char gztell ();
27779int
27780main ()
27781{
27782return gztell ();
27783 ;
27784 return 0;
27785}
27786_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027787if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027788 ac_cv_lib_z_gztell=yes
27789else
cristy8b350f62009-11-15 23:12:43 +000027790 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027791fi
cristy8b350f62009-11-15 23:12:43 +000027792rm -f core conftest.err conftest.$ac_objext \
27793 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027794LIBS=$ac_check_lib_save_LIBS
27795fi
cristy8b350f62009-11-15 23:12:43 +000027796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027797$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027798if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027799 passed=`expr $passed + 1`
27800else
27801 failed=`expr $failed + 1`
27802fi
27803
cristy8b350f62009-11-15 23:12:43 +000027804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027805$as_echo_n "checking if ZLIB package is complete... " >&6; }
27806 if test $passed -gt 0; then
27807 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027808 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27809$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027810 have_zlib='no (failed tests)'
27811 else
27812 ZLIB_LIBS='-lz'
27813 LIBS="$ZLIB_LIBS $LIBS"
27814
cristy8b350f62009-11-15 23:12:43 +000027815$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027816
cristy09b53e12011-10-14 12:47:22 +000027817 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27818$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027819 have_zlib='yes'
27820 fi
27821 else
cristy09b53e12011-10-14 12:47:22 +000027822 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27823$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027824 fi
27825fi
cristy73bd4a52010-10-05 11:24:23 +000027826 if test "$have_zlib" = 'yes'; then
27827 ZLIB_DELEGATE_TRUE=
27828 ZLIB_DELEGATE_FALSE='#'
27829else
27830 ZLIB_DELEGATE_TRUE='#'
27831 ZLIB_DELEGATE_FALSE=
27832fi
27833
cristy3ed852e2009-09-05 21:47:34 +000027834
27835
27836#
27837# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27838#
27839LIB_DL=''
27840if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027842$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027843if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027844 $as_echo_n "(cached) " >&6
27845else
27846 ac_check_lib_save_LIBS=$LIBS
27847LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027849/* end confdefs.h. */
27850
27851/* Override any GCC internal prototype to avoid an error.
27852 Use char because int might match the return type of a GCC
27853 builtin and then its argument prototype would still apply. */
27854#ifdef __cplusplus
27855extern "C"
27856#endif
27857char dlopen ();
27858int
27859main ()
27860{
27861return dlopen ();
27862 ;
27863 return 0;
27864}
27865_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027866if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027867 ac_cv_lib_dl_dlopen=yes
27868else
cristy8b350f62009-11-15 23:12:43 +000027869 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000027870fi
cristy8b350f62009-11-15 23:12:43 +000027871rm -f core conftest.err conftest.$ac_objext \
27872 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027873LIBS=$ac_check_lib_save_LIBS
27874fi
cristy8b350f62009-11-15 23:12:43 +000027875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027876$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000027877if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027878 LIB_DL='-ldl'
27879fi
27880
27881 LIBS="$LIB_DL $LIBS"
27882fi
27883
27884
27885
27886#
27887# Check for Autotrace delegate library.
27888#
27889
27890# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000027891if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027892 withval=$with_autotrace; with_autotrace=$withval
27893else
27894 with_autotrace='no'
27895fi
27896
27897
27898if test "$with_autotrace" != 'yes'; then
27899 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27900fi
27901
27902have_autotrace='no'
27903AUTOTRACE_CFLAGS=""
27904AUTOTRACE_LIBS=""
27905AUTOTRACE_PKG=""
27906if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000027907 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27908$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000027909
27910pkg_failed=no
27911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27912$as_echo_n "checking for AUTOTRACE... " >&6; }
27913
27914if test -n "$AUTOTRACE_CFLAGS"; then
27915 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27916 elif test -n "$PKG_CONFIG"; then
27917 if test -n "$PKG_CONFIG" && \
27918 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27919 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27920 ac_status=$?
27921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27922 test $ac_status = 0; }; then
27923 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27924else
27925 pkg_failed=yes
27926fi
27927 else
27928 pkg_failed=untried
27929fi
27930if test -n "$AUTOTRACE_LIBS"; then
27931 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27932 elif test -n "$PKG_CONFIG"; then
27933 if test -n "$PKG_CONFIG" && \
27934 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27935 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27936 ac_status=$?
27937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27938 test $ac_status = 0; }; then
27939 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27940else
27941 pkg_failed=yes
27942fi
27943 else
27944 pkg_failed=untried
27945fi
27946
27947
27948
27949if test $pkg_failed = yes; then
27950
27951if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27952 _pkg_short_errors_supported=yes
27953else
27954 _pkg_short_errors_supported=no
27955fi
27956 if test $_pkg_short_errors_supported = yes; then
27957 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27958 else
27959 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27960 fi
27961 # Put the nasty error message in config.log where it belongs
27962 echo "$AUTOTRACE_PKG_ERRORS" >&5
27963
27964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27965$as_echo "no" >&6; }
27966 have_autotrace=no
27967elif test $pkg_failed = untried; then
27968 have_autotrace=no
27969else
27970 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27971 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27973$as_echo "yes" >&6; }
27974 have_autotrace=yes
27975fi
cristy09b53e12011-10-14 12:47:22 +000027976 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27977$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027978fi
27979
27980if test "$have_autotrace" = 'yes'; then
27981 failed=0
27982
cristy8b350f62009-11-15 23:12:43 +000027983$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027984
27985 if test "$with_modules" = 'no'; then
27986 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27987 fi
27988fi
27989
cristy73bd4a52010-10-05 11:24:23 +000027990 if test "$have_autotrace" = 'yes'; then
27991 AUTOTRACE_DELEGATE_TRUE=
27992 AUTOTRACE_DELEGATE_FALSE='#'
27993else
27994 AUTOTRACE_DELEGATE_TRUE='#'
27995 AUTOTRACE_DELEGATE_FALSE=
27996fi
27997
cristy3ed852e2009-09-05 21:47:34 +000027998
27999
28000
28001
28002#
28003# Check for Display Postscript delegate library.
28004#
28005
28006# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028007if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028008 withval=$with_dps; with_dps=$withval
28009else
28010 with_dps='yes'
28011fi
28012
28013
28014if test "$with_dps" != 'yes'; then
28015 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28016fi
28017
28018have_dps='no'
28019DPS_LIBS=''
28020if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028021 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28022$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028024$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028025 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28026$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028027 failed=0
28028 passed=0
28029 PERSIST_CPPFLAGS="$CPPFLAGS"
28030 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028031 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 +000028032if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028033 passed=`expr $passed + 1`
28034else
28035 failed=`expr $failed + 1`
28036fi
28037
28038
28039 # DPS issues:
28040 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28041 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28042 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28043 # ImageMagick itself doesn't use -lXt.
28044 have_libdps='no'
28045 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028047$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028048if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028049 $as_echo_n "(cached) " >&6
28050else
28051 ac_check_lib_save_LIBS=$LIBS
28052LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028054/* end confdefs.h. */
28055
28056/* Override any GCC internal prototype to avoid an error.
28057 Use char because int might match the return type of a GCC
28058 builtin and then its argument prototype would still apply. */
28059#ifdef __cplusplus
28060extern "C"
28061#endif
28062char DPSInitialize ();
28063int
28064main ()
28065{
28066return DPSInitialize ();
28067 ;
28068 return 0;
28069}
28070_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028071if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028072 ac_cv_lib_dps_DPSInitialize=yes
28073else
cristy8b350f62009-11-15 23:12:43 +000028074 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028075fi
cristy8b350f62009-11-15 23:12:43 +000028076rm -f core conftest.err conftest.$ac_objext \
28077 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028078LIBS=$ac_check_lib_save_LIBS
28079fi
cristy8b350f62009-11-15 23:12:43 +000028080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028081$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028082if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028083 have_libdps='yes'
28084else
28085 have_libdps='no'
28086fi
28087
28088 if test "$have_libdps" != 'yes'; then
28089 # Unset cache variable so we can try again.
28090 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028092$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028093if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028094 $as_echo_n "(cached) " >&6
28095else
28096 ac_check_lib_save_LIBS=$LIBS
28097LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028099/* end confdefs.h. */
28100
28101/* Override any GCC internal prototype to avoid an error.
28102 Use char because int might match the return type of a GCC
28103 builtin and then its argument prototype would still apply. */
28104#ifdef __cplusplus
28105extern "C"
28106#endif
28107char DPSInitialize ();
28108int
28109main ()
28110{
28111return DPSInitialize ();
28112 ;
28113 return 0;
28114}
28115_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028116if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028117 ac_cv_lib_dps_DPSInitialize=yes
28118else
cristy8b350f62009-11-15 23:12:43 +000028119 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028120fi
cristy8b350f62009-11-15 23:12:43 +000028121rm -f core conftest.err conftest.$ac_objext \
28122 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028123LIBS=$ac_check_lib_save_LIBS
28124fi
cristy8b350f62009-11-15 23:12:43 +000028125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028126$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028127if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028128 have_libdps='yes'
28129else
28130 have_libdps='no'
28131fi
28132
28133 if test "$have_libdps" = 'yes'; then
28134 LIBDPS_XT='-lXt'
28135 fi
28136 fi
28137 if test "$have_libdps" = 'yes'; then
28138 passed=`expr $passed + 1`
28139 else
28140 failed=`expr $failed + 1`
28141 fi
cristy8b350f62009-11-15 23:12:43 +000028142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028143$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028144if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028145 $as_echo_n "(cached) " >&6
28146else
28147 ac_check_lib_save_LIBS=$LIBS
28148LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028150/* end confdefs.h. */
28151
28152/* Override any GCC internal prototype to avoid an error.
28153 Use char because int might match the return type of a GCC
28154 builtin and then its argument prototype would still apply. */
28155#ifdef __cplusplus
28156extern "C"
28157#endif
28158char XDPSPixelsPerPoint ();
28159int
28160main ()
28161{
28162return XDPSPixelsPerPoint ();
28163 ;
28164 return 0;
28165}
28166_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028167if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028168 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28169else
cristy8b350f62009-11-15 23:12:43 +000028170 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028171fi
cristy8b350f62009-11-15 23:12:43 +000028172rm -f core conftest.err conftest.$ac_objext \
28173 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028174LIBS=$ac_check_lib_save_LIBS
28175fi
cristy8b350f62009-11-15 23:12:43 +000028176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028177$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028178if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028179 passed=`expr $passed + 1`
28180else
28181 failed=`expr $failed + 1`
28182fi
28183
cristy8b350f62009-11-15 23:12:43 +000028184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028185$as_echo_n "checking if DPS package is complete... " >&6; }
28186 if test $passed -gt 0; then
28187 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028188 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28189$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028190 have_dps='no (failed tests)'
28191 CPPFLAGS="$PERSIST_CPPFLAGS"
28192 else
28193 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28194 LIBS="$DPS_LIBS $LIBS"
28195
cristy8b350f62009-11-15 23:12:43 +000028196$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028197
cristy09b53e12011-10-14 12:47:22 +000028198 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28199$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028200 have_dps='yes'
28201 fi
28202 else
cristy09b53e12011-10-14 12:47:22 +000028203 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28204$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028205 CPPFLAGS=$PERSIST_CPPFLAGS
28206 fi
28207fi
cristy73bd4a52010-10-05 11:24:23 +000028208 if test "$have_dps" = 'yes'; then
28209 DPS_DELEGATE_TRUE=
28210 DPS_DELEGATE_FALSE='#'
28211else
28212 DPS_DELEGATE_TRUE='#'
28213 DPS_DELEGATE_FALSE=
28214fi
28215
cristy3ed852e2009-09-05 21:47:34 +000028216
28217
28218
28219#
28220# Check for DJVU delegate library.
28221#
28222
28223# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028224if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028225 withval=$with_djvu; with_djvu=$withval
28226else
28227 with_djvu='yes'
28228fi
28229
28230
28231if test "$with_djvu" != 'yes'; then
28232 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28233fi
28234
28235have_djvu='no'
28236DJVU_LIBS=''
28237if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028238 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28239$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028241$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028242 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28243$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028244 failed=0
28245 passed=0
cristy8b350f62009-11-15 23:12:43 +000028246 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 +000028247if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028248 passed=`expr $passed + 1`
28249else
28250 failed=`expr $failed + 1`
28251fi
28252
28253
cristy8b350f62009-11-15 23:12:43 +000028254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028255$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028256if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028257 $as_echo_n "(cached) " >&6
28258else
28259 ac_check_lib_save_LIBS=$LIBS
28260LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028262/* end confdefs.h. */
28263
28264/* Override any GCC internal prototype to avoid an error.
28265 Use char because int might match the return type of a GCC
28266 builtin and then its argument prototype would still apply. */
28267#ifdef __cplusplus
28268extern "C"
28269#endif
28270char ddjvu_context_create ();
28271int
28272main ()
28273{
28274return ddjvu_context_create ();
28275 ;
28276 return 0;
28277}
28278_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028279if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028280 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28281else
cristy8b350f62009-11-15 23:12:43 +000028282 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028283fi
cristy8b350f62009-11-15 23:12:43 +000028284rm -f core conftest.err conftest.$ac_objext \
28285 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028286LIBS=$ac_check_lib_save_LIBS
28287fi
cristy8b350f62009-11-15 23:12:43 +000028288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028289$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028290if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028291 passed=`expr $passed + 1`
28292else
28293 failed=`expr $failed + 1`
28294fi
28295
cristy8b350f62009-11-15 23:12:43 +000028296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028297$as_echo_n "checking if DJVU package is complete... " >&6; }
28298 if test $passed -gt 0; then
28299 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028300 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28301$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028302 have_djvu='no (failed tests)'
28303 else
28304 DJVU_LIBS='-ldjvulibre'
28305 LIBS="$DJVU_LIBS $LIBS"
28306
cristy8b350f62009-11-15 23:12:43 +000028307$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028308
cristy09b53e12011-10-14 12:47:22 +000028309 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28310$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028311 have_djvu='yes'
28312 fi
28313 else
cristy09b53e12011-10-14 12:47:22 +000028314 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28315$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028316 fi
28317fi
cristy73bd4a52010-10-05 11:24:23 +000028318 if test "$have_djvu" = 'yes'; then
28319 DJVU_DELEGATE_TRUE=
28320 DJVU_DELEGATE_FALSE='#'
28321else
28322 DJVU_DELEGATE_TRUE='#'
28323 DJVU_DELEGATE_FALSE=
28324fi
28325
cristy3ed852e2009-09-05 21:47:34 +000028326
28327
28328
28329#
cristy430a7312010-01-21 20:44:04 +000028330# Set DejaVu font directory.
28331#
28332
28333# Check whether --with-dejavu-font-dir was given.
28334if test "${with_dejavu_font_dir+set}" = set; then :
28335 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28336else
28337 with_dejavu_font_dir='default'
28338fi
28339
28340
28341if test "$with_dejavu_font_dir" != 'default'; then
28342 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28343fi
28344
28345
28346#
cristy3ed852e2009-09-05 21:47:34 +000028347# Check for FFTW delegate library.
28348#
28349
28350# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028351if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028352 withval=$with_fftw; with_fftw=$withval
28353else
28354 with_fftw='yes'
28355fi
28356
28357
28358if test "$with_fftw" != 'yes'; then
28359 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28360fi
28361
cristy81beccd2011-10-03 18:17:24 +000028362have_fftw='no'
28363FFTW_LIBS=''
28364if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028365 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28366$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28368$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028369 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28370$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028371 failed=0
28372 passed=0
28373 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28374if test "x$ac_cv_header_fftw3_h" = xyes; then :
28375 passed=`expr $passed + 1`
28376else
28377 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028378fi
28379
cristy81beccd2011-10-03 18:17:24 +000028380
28381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28382$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28383if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28384 $as_echo_n "(cached) " >&6
28385else
28386 ac_check_lib_save_LIBS=$LIBS
28387LIBS="-lfftw3 $LIBS"
28388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28389/* end confdefs.h. */
28390
28391/* Override any GCC internal prototype to avoid an error.
28392 Use char because int might match the return type of a GCC
28393 builtin and then its argument prototype would still apply. */
28394#ifdef __cplusplus
28395extern "C"
28396#endif
28397char fftw_execute ();
28398int
28399main ()
28400{
28401return fftw_execute ();
28402 ;
28403 return 0;
28404}
28405_ACEOF
28406if ac_fn_c_try_link "$LINENO"; then :
28407 ac_cv_lib_fftw3_fftw_execute=yes
28408else
28409 ac_cv_lib_fftw3_fftw_execute=no
28410fi
28411rm -f core conftest.err conftest.$ac_objext \
28412 conftest$ac_exeext conftest.$ac_ext
28413LIBS=$ac_check_lib_save_LIBS
28414fi
28415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28416$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28417if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28418 passed=`expr $passed + 1`
28419else
28420 failed=`expr $failed + 1`
28421fi
28422
28423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28424$as_echo_n "checking if FFTW package is complete... " >&6; }
28425 if test $passed -gt 0; then
28426 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028427 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28428$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028429 have_fftw='no (failed tests)'
28430 else
28431 FFTW_LIBS='-lfftw3'
28432 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028433
cristy8b350f62009-11-15 23:12:43 +000028434$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028435
cristy09b53e12011-10-14 12:47:22 +000028436 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28437$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028438 have_fftw='yes'
28439 fi
28440 else
cristy09b53e12011-10-14 12:47:22 +000028441 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28442$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028443 fi
28444fi
cristy73bd4a52010-10-05 11:24:23 +000028445 if test "$have_fftw" = 'yes'; then
28446 FFTW_DELEGATE_TRUE=
28447 FFTW_DELEGATE_FALSE='#'
28448else
28449 FFTW_DELEGATE_TRUE='#'
28450 FFTW_DELEGATE_FALSE=
28451fi
28452
cristy3ed852e2009-09-05 21:47:34 +000028453
28454
28455
28456#
28457# Check for FlashPIX delegate library.
28458#
28459
28460# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028461if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028462 withval=$with_fpx; with_fpx=$withval
28463else
28464 with_fpx='yes'
28465fi
28466
28467
28468if test "$with_fpx" != 'yes'; then
28469 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28470fi
28471
28472have_fpx='no'
28473FPX_LIBS=''
28474if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028475 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28476$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028478$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028479 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28480$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028481 failed=0
28482 passed=0
28483 ac_ext=cpp
28484ac_cpp='$CXXCPP $CPPFLAGS'
28485ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28486ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28487ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28488
28489
cristy8b350f62009-11-15 23:12:43 +000028490ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028491if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028492 passed=`expr $passed + 1`
28493else
28494 failed=`expr $failed + 1`
28495fi
28496
28497
cristy8b350f62009-11-15 23:12:43 +000028498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028499$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028500if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028501 $as_echo_n "(cached) " >&6
28502else
28503 ac_check_lib_save_LIBS=$LIBS
28504LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028506/* end confdefs.h. */
28507
28508/* Override any GCC internal prototype to avoid an error.
28509 Use char because int might match the return type of a GCC
28510 builtin and then its argument prototype would still apply. */
28511#ifdef __cplusplus
28512extern "C"
28513#endif
28514char FPX_OpenImageByFilename ();
28515int
28516main ()
28517{
28518return FPX_OpenImageByFilename ();
28519 ;
28520 return 0;
28521}
28522_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028523if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028524 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28525else
cristy8b350f62009-11-15 23:12:43 +000028526 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028527fi
cristy8b350f62009-11-15 23:12:43 +000028528rm -f core conftest.err conftest.$ac_objext \
28529 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028530LIBS=$ac_check_lib_save_LIBS
28531fi
cristy8b350f62009-11-15 23:12:43 +000028532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028533$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028534if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028535 passed=`expr $passed + 1`
28536else
28537 failed=`expr $failed + 1`
28538fi
28539
28540 ac_ext=c
28541ac_cpp='$CPP $CPPFLAGS'
28542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28544ac_compiler_gnu=$ac_cv_c_compiler_gnu
28545
cristy8b350f62009-11-15 23:12:43 +000028546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028547$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28548 if test $passed -gt 0; then
28549 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028550 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28551$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028552 have_fpx='no (failed tests)'
28553 else
28554 FPX_LIBS='-lfpx'
28555
cristy8b350f62009-11-15 23:12:43 +000028556$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028557
cristy09b53e12011-10-14 12:47:22 +000028558 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28559$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028560 have_fpx='yes'
28561 PERLMAINCC="$CXX"
28562 fi
28563 else
cristy09b53e12011-10-14 12:47:22 +000028564 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28565$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028566 fi
28567fi
cristy73bd4a52010-10-05 11:24:23 +000028568 if test "$have_fpx" = 'yes'; then
28569 FPX_DELEGATE_TRUE=
28570 FPX_DELEGATE_FALSE='#'
28571else
28572 FPX_DELEGATE_TRUE='#'
28573 FPX_DELEGATE_FALSE=
28574fi
28575
cristy3ed852e2009-09-05 21:47:34 +000028576
28577
28578
28579#
28580# Check for fontconfig delegate library.
28581#
28582
28583# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028584if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028585 withval=$with_fontconfig; with_fontconfig=$withval
28586else
28587 with_fontconfig=$have_x
28588fi
28589
28590
28591if test "$with_fontconfig" != 'yes'; then
28592 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28593fi
28594
28595have_fontconfig='no'
28596FONTCONFIG_CFLAGS=""
28597FONTCONFIG_LIBS=""
28598FONTCONFIG_PKG=""
28599if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028600 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28601$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028602
28603pkg_failed=no
28604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28605$as_echo_n "checking for FONTCONFIG... " >&6; }
28606
28607if test -n "$FONTCONFIG_CFLAGS"; then
28608 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28609 elif test -n "$PKG_CONFIG"; then
28610 if test -n "$PKG_CONFIG" && \
28611 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28612 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28613 ac_status=$?
28614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28615 test $ac_status = 0; }; then
28616 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28617else
28618 pkg_failed=yes
28619fi
28620 else
28621 pkg_failed=untried
28622fi
28623if test -n "$FONTCONFIG_LIBS"; then
28624 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28625 elif test -n "$PKG_CONFIG"; then
28626 if test -n "$PKG_CONFIG" && \
28627 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28628 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28629 ac_status=$?
28630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28631 test $ac_status = 0; }; then
28632 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28633else
28634 pkg_failed=yes
28635fi
28636 else
28637 pkg_failed=untried
28638fi
28639
28640
28641
28642if test $pkg_failed = yes; then
28643
28644if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28645 _pkg_short_errors_supported=yes
28646else
28647 _pkg_short_errors_supported=no
28648fi
28649 if test $_pkg_short_errors_supported = yes; then
28650 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28651 else
28652 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28653 fi
28654 # Put the nasty error message in config.log where it belongs
28655 echo "$FONTCONFIG_PKG_ERRORS" >&5
28656
28657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28658$as_echo "no" >&6; }
28659 have_fontconfig=no
28660elif test $pkg_failed = untried; then
28661 have_fontconfig=no
28662else
28663 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28664 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28666$as_echo "yes" >&6; }
28667 have_fontconfig=yes
28668fi
cristy09b53e12011-10-14 12:47:22 +000028669 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28670$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028671fi
28672
28673if test "$have_fontconfig" = 'yes'; then
28674
cristy8b350f62009-11-15 23:12:43 +000028675$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028676
cristyd09bcf92010-03-25 03:04:45 +000028677 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028678 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028679 fi
cristy3ed852e2009-09-05 21:47:34 +000028680fi
28681
cristy73bd4a52010-10-05 11:24:23 +000028682 if test "$have_fontconfig" = 'yes'; then
28683 FONTCONFIG_DELEGATE_TRUE=
28684 FONTCONFIG_DELEGATE_FALSE='#'
28685else
28686 FONTCONFIG_DELEGATE_TRUE='#'
28687 FONTCONFIG_DELEGATE_FALSE=
28688fi
28689
cristy3ed852e2009-09-05 21:47:34 +000028690
28691
28692
28693
28694#
cristy81beccd2011-10-03 18:17:24 +000028695# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028696#
28697
28698# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028699if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028700 withval=$with_freetype; with_freetype=$withval
28701else
28702 with_freetype='yes'
28703fi
28704
28705
cristy81beccd2011-10-03 18:17:24 +000028706
cristy3ed852e2009-09-05 21:47:34 +000028707if test "$with_freetype" != 'yes'; then
28708 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28709fi
28710
cristy81beccd2011-10-03 18:17:24 +000028711have_freetype='no'
28712FREETYPE_LIBS=''
28713if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028714 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28715$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
28717$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028718 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28719$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028720 failed=0
28721 passed=0
cristy98ca0f52011-10-08 23:19:10 +000028722 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028723 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000028724 freetype_config=''
28725 # Allow the user to specify the location of freetype.
28726 if test "$with_freetype" != 'yes'; then
28727 if test -x "${with_freetype}/bin/freetype-config"; then
28728 freetype_config="${with_freetype}/bin/freetype-config"
28729 elif test -x "${with_freetype}"; then
28730 freetype_config=${with_freetype}
28731 fi
28732 fi
28733 if test -z "$freetype_config"; then
28734 # Extract the first word of "freetype-config", so it can be a program name with args.
28735set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000028736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28737$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028738if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000028739 $as_echo_n "(cached) " >&6
28740else
cristy98ca0f52011-10-08 23:19:10 +000028741 case $freetype_config in
28742 [\\/]* | ?:[\\/]*)
28743 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
28744 ;;
28745 *)
28746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000028747for as_dir in $PATH
28748do
28749 IFS=$as_save_IFS
28750 test -z "$as_dir" && as_dir=.
28751 for ac_exec_ext in '' $ac_executable_extensions; do
28752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy98ca0f52011-10-08 23:19:10 +000028753 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000028754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28755 break 2
28756 fi
28757done
28758 done
28759IFS=$as_save_IFS
28760
cristy98ca0f52011-10-08 23:19:10 +000028761 ;;
28762esac
cristy81beccd2011-10-03 18:17:24 +000028763fi
cristy98ca0f52011-10-08 23:19:10 +000028764freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000028765if test -n "$freetype_config"; then
28766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
28767$as_echo "$freetype_config" >&6; }
28768else
28769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28770$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028771fi
28772
cristy98ca0f52011-10-08 23:19:10 +000028773 fi
28774 if test -n "$freetype_config"; then
28775 freetype_prefix=`${freetype_config} --prefix`
28776 freetype_exec_prefix=`${freetype_config} --exec-prefix`
28777 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
28778 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000028779 fi
28780
28781 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000028782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000028783$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
28784if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
28785 $as_echo_n "(cached) " >&6
28786else
28787 ac_check_lib_save_LIBS=$LIBS
28788LIBS="-lfreetype $LIBS"
28789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28790/* end confdefs.h. */
28791
28792/* Override any GCC internal prototype to avoid an error.
28793 Use char because int might match the return type of a GCC
28794 builtin and then its argument prototype would still apply. */
28795#ifdef __cplusplus
28796extern "C"
28797#endif
28798char FT_Init_FreeType ();
28799int
28800main ()
28801{
28802return FT_Init_FreeType ();
28803 ;
28804 return 0;
28805}
28806_ACEOF
28807if ac_fn_c_try_link "$LINENO"; then :
28808 ac_cv_lib_freetype_FT_Init_FreeType=yes
28809else
28810 ac_cv_lib_freetype_FT_Init_FreeType=no
28811fi
28812rm -f core conftest.err conftest.$ac_objext \
28813 conftest$ac_exeext conftest.$ac_ext
28814LIBS=$ac_check_lib_save_LIBS
28815fi
28816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28817$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28818if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
28819 FREETYPE_LIBS='-lfreetype'
28820fi
28821
cristy98ca0f52011-10-08 23:19:10 +000028822 if test "$FREETYPE_LIBS" != ''; then
28823 passed=`expr $passed + 1`
28824 else
28825 failed=`expr $failed + 1`
28826 LDFLAGS="$PERSIST_LDFLAGS"
28827 fi
cristy81beccd2011-10-03 18:17:24 +000028828 fi
28829
28830 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
28831if test "x$ac_cv_header_ft2build_h" = xyes; then :
28832 FT2BUILD_H='#include <ft2build.h>'
28833else
28834 ft2build=''
28835fi
28836
28837
28838 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28839"
28840if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
28841 have_freetype_h='yes'
28842else
28843 have_freetype_h='no'
28844fi
28845
28846
cristy98ca0f52011-10-08 23:19:10 +000028847 if test "$have_freetype_h" = 'yes'; then
28848 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000028849 else
cristy98ca0f52011-10-08 23:19:10 +000028850 failed=`expr $failed + 1`
28851 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028852 fi
28853
28854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
28855$as_echo_n "checking if FreeType package is complete... " >&6; }
28856 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000028857 if test $failed -gt 0; then
28858 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000028859 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28860$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028861 have_freetype='no (failed tests)'
28862 else
28863 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028864
cristy8b350f62009-11-15 23:12:43 +000028865$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028866
cristy98ca0f52011-10-08 23:19:10 +000028867 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000028868
28869$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
28870
cristy81beccd2011-10-03 18:17:24 +000028871 fi
cristy09b53e12011-10-14 12:47:22 +000028872 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28873$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028874 have_freetype='yes'
28875 fi
cristy81beccd2011-10-03 18:17:24 +000028876 else
cristy09b53e12011-10-14 12:47:22 +000028877 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28878$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028879 fi
28880fi
cristy73bd4a52010-10-05 11:24:23 +000028881 if test "$have_freetype" = 'yes'; then
28882 FREETYPE_DELEGATE_TRUE=
28883 FREETYPE_DELEGATE_FALSE='#'
28884else
28885 FREETYPE_DELEGATE_TRUE='#'
28886 FREETYPE_DELEGATE_FALSE=
28887fi
28888
cristy3ed852e2009-09-05 21:47:34 +000028889
28890
28891
cristy3ed852e2009-09-05 21:47:34 +000028892#
28893# Check for Ghostscript library or framework.
28894#
28895# Test for iapi.h & test for gsapi_new_instance in -lgs
28896# or -framework Ghostscript
28897
28898
28899# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000028900if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028901 withval=$with_gslib; with_gslib=$withval
28902else
28903 with_gslib='no'
28904fi
28905
28906
cristyb7931f12009-09-25 10:22:21 +000028907gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000028908if test "$with_gslib" != 'yes'; then
28909 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28910fi
28911
28912have_gslib='no'
28913GS_LIBS=''
28914if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028915 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28916$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000028918$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028919 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28920$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000028921 framework=0
cristy3ed852e2009-09-05 21:47:34 +000028922 failed=0
28923 passed=0
cristy8b350f62009-11-15 23:12:43 +000028924 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 +000028925if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028926 passed=`expr $passed + 1`
28927else
28928 failed=`expr $failed + 1`
28929fi
28930
28931
cristy8b350f62009-11-15 23:12:43 +000028932 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 +000028933if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028934 passed=`expr $passed + 1`
28935else
28936 failed=`expr $failed + 1`
28937fi
28938
28939
cristy73bd4a52010-10-05 11:24:23 +000028940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28941$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028942if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028943 $as_echo_n "(cached) " >&6
28944else
28945 ac_check_framework_save_LIBS=$LIBS
28946LIBS="-framework Ghostscript $LIBS"
28947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28948/* end confdefs.h. */
28949
28950/* Override any GCC internal prototype to avoid an error.
28951 Use char because int might match the return type of a GCC
28952 builtin and then its argument prototype would still apply. */
28953#ifdef __cplusplus
28954extern "C"
28955#endif
28956char gsapi_new_instance ();
28957int
28958main ()
28959{
28960return gsapi_new_instance ();
28961 ;
28962 return 0;
28963}
28964_ACEOF
28965if ac_fn_c_try_link "$LINENO"; then :
28966 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28967else
28968 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28969fi
28970rm -f core conftest.err conftest.$ac_objext \
28971 conftest$ac_exeext conftest.$ac_ext
28972LIBS=$ac_check_framework_save_LIBS
28973fi
28974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28975$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28976if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28977 framework=`expr $framework + 1`
28978else
28979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028980$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028981if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028982 $as_echo_n "(cached) " >&6
28983else
28984 ac_check_lib_save_LIBS=$LIBS
28985LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028987/* end confdefs.h. */
28988
28989/* Override any GCC internal prototype to avoid an error.
28990 Use char because int might match the return type of a GCC
28991 builtin and then its argument prototype would still apply. */
28992#ifdef __cplusplus
28993extern "C"
28994#endif
28995char gsapi_new_instance ();
28996int
28997main ()
28998{
28999return gsapi_new_instance ();
29000 ;
29001 return 0;
29002}
29003_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029004if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029005 ac_cv_lib_gs_gsapi_new_instance=yes
29006else
cristy8b350f62009-11-15 23:12:43 +000029007 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029008fi
cristy8b350f62009-11-15 23:12:43 +000029009rm -f core conftest.err conftest.$ac_objext \
29010 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029011LIBS=$ac_check_lib_save_LIBS
29012fi
cristy8b350f62009-11-15 23:12:43 +000029013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029014$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029015if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029016 passed=`expr $passed + 1`
29017else
29018 failed=`expr $failed + 1`
29019fi
cristy73bd4a52010-10-05 11:24:23 +000029020
29021fi
cristy8b350f62009-11-15 23:12:43 +000029022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029023$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29024 if test $passed -gt 0; then
29025 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029026 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29027$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029028 have_gslib='no (failed tests)'
29029 else
29030 if test $framework -gt 0; then
29031 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029032 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029033 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29034$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029035 else
cristy09b53e12011-10-14 12:47:22 +000029036 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29037$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029038 GS_LIBS='-lgs'
29039 fi
29040 LIBS="$GS_LIBS $LIBS"
29041
cristy8b350f62009-11-15 23:12:43 +000029042$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029043
29044 have_gslib='yes'
29045 fi
29046 else
cristy09b53e12011-10-14 12:47:22 +000029047 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29048$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029049 fi
29050fi
cristy73bd4a52010-10-05 11:24:23 +000029051 if test "$have_gslib" = 'yes'; then
29052 GS_DELEGATE_TRUE=
29053 GS_DELEGATE_FALSE='#'
29054else
29055 GS_DELEGATE_TRUE='#'
29056 GS_DELEGATE_FALSE=
29057fi
29058
cristy3ed852e2009-09-05 21:47:34 +000029059
29060
29061# Set default font search path
29062
29063# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029064if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029065 withval=$with_fontpath; with_fontpath=$withval
29066else
29067 with_fontpath=''
29068fi
29069
29070
29071if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29072 with_fontpath=''
29073else
29074
29075cat >>confdefs.h <<_ACEOF
29076#define MAGICK_FONT_PATH "$with_fontpath"
29077_ACEOF
29078
29079fi
29080if test "$with_fontpath=" != ''; then
29081 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29082fi
29083
29084# Set Ghostscript font directory
29085
29086# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029087if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029088 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29089else
29090 with_gs_font_dir='default'
29091fi
29092
29093
29094if test "$with_gs_font_dir" != 'default'; then
29095 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29096fi
29097
29098
29099#
29100# Check for GVC delegate library.
29101#
29102
29103# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029104if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029105 withval=$with_gvc; with_gvc=$withval
29106else
29107 with_gvc='yes'
29108fi
29109
29110
29111if test "$with_gvc" != 'yes'; then
29112 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29113fi
29114
29115GVC_PKG=""
29116if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029117 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29118$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029119
29120pkg_failed=no
29121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29122$as_echo_n "checking for GVC... " >&6; }
29123
29124if test -n "$GVC_CFLAGS"; then
29125 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29126 elif test -n "$PKG_CONFIG"; then
29127 if test -n "$PKG_CONFIG" && \
29128 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29129 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29130 ac_status=$?
29131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29132 test $ac_status = 0; }; then
29133 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29134else
29135 pkg_failed=yes
29136fi
29137 else
29138 pkg_failed=untried
29139fi
29140if test -n "$GVC_LIBS"; then
29141 pkg_cv_GVC_LIBS="$GVC_LIBS"
29142 elif test -n "$PKG_CONFIG"; then
29143 if test -n "$PKG_CONFIG" && \
29144 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29145 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29146 ac_status=$?
29147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29148 test $ac_status = 0; }; then
29149 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29150else
29151 pkg_failed=yes
29152fi
29153 else
29154 pkg_failed=untried
29155fi
29156
29157
29158
29159if test $pkg_failed = yes; then
29160
29161if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29162 _pkg_short_errors_supported=yes
29163else
29164 _pkg_short_errors_supported=no
29165fi
29166 if test $_pkg_short_errors_supported = yes; then
29167 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29168 else
29169 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29170 fi
29171 # Put the nasty error message in config.log where it belongs
29172 echo "$GVC_PKG_ERRORS" >&5
29173
29174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29175$as_echo "no" >&6; }
29176 have_gvc=no
29177elif test $pkg_failed = untried; then
29178 have_gvc=no
29179else
29180 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29181 GVC_LIBS=$pkg_cv_GVC_LIBS
29182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29183$as_echo "yes" >&6; }
29184 have_gvc=yes
29185fi
cristy09b53e12011-10-14 12:47:22 +000029186 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29187$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029188fi
29189
29190if test "$have_gvc" = 'yes'; then
29191
cristy8b350f62009-11-15 23:12:43 +000029192$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029193
29194 if test "$with_modules" = 'no'; then
29195 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29196 fi
29197fi
29198
cristy73bd4a52010-10-05 11:24:23 +000029199 if test "$have_gvc" = 'yes'; then
29200 GVC_DELEGATE_TRUE=
29201 GVC_DELEGATE_FALSE='#'
29202else
29203 GVC_DELEGATE_TRUE='#'
29204 GVC_DELEGATE_FALSE=
29205fi
29206
cristy3ed852e2009-09-05 21:47:34 +000029207
29208
29209
29210
29211#
29212# Check for JBIG delegate library.
29213#
29214
29215
29216# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029217if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029218 withval=$with_jbig; with_jbig=$withval
29219else
29220 with_jbig='yes'
29221fi
29222
29223
29224have_jbig='no'
29225JBIG_LIBS=''
29226if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029227 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29228$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029230$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029231 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29232$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029233 failed=0
29234 passed=0
cristy8b350f62009-11-15 23:12:43 +000029235 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029236if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029237 passed=`expr $passed + 1`
29238else
29239 failed=`expr $failed + 1`
29240fi
29241
29242
cristy8b350f62009-11-15 23:12:43 +000029243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029244$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029245if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029246 $as_echo_n "(cached) " >&6
29247else
29248 ac_check_lib_save_LIBS=$LIBS
29249LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029251/* end confdefs.h. */
29252
29253/* Override any GCC internal prototype to avoid an error.
29254 Use char because int might match the return type of a GCC
29255 builtin and then its argument prototype would still apply. */
29256#ifdef __cplusplus
29257extern "C"
29258#endif
29259char jbg_dec_init ();
29260int
29261main ()
29262{
29263return jbg_dec_init ();
29264 ;
29265 return 0;
29266}
29267_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029268if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029269 ac_cv_lib_jbig_jbg_dec_init=yes
29270else
cristy8b350f62009-11-15 23:12:43 +000029271 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029272fi
cristy8b350f62009-11-15 23:12:43 +000029273rm -f core conftest.err conftest.$ac_objext \
29274 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029275LIBS=$ac_check_lib_save_LIBS
29276fi
cristy8b350f62009-11-15 23:12:43 +000029277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029278$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029279if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029280 passed=`expr $passed + 1`
29281else
29282 failed=`expr $failed + 1`
29283fi
29284
cristy8b350f62009-11-15 23:12:43 +000029285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029286$as_echo_n "checking if JBIG package is complete... " >&6; }
29287 if test $passed -gt 0; then
29288 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029289 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29290$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029291 have_jbig='no (failed tests)'
29292 else
29293 JBIG_LIBS='-ljbig'
29294 LIBS="$JBIG_LIBS $LIBS"
29295
cristy8b350f62009-11-15 23:12:43 +000029296$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029297
cristy09b53e12011-10-14 12:47:22 +000029298 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29299$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029300 have_jbig='yes'
29301 fi
29302 else
cristy09b53e12011-10-14 12:47:22 +000029303 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29304$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029305 fi
29306fi
cristy73bd4a52010-10-05 11:24:23 +000029307 if test "$have_jbig" = 'yes'; then
29308 JBIG_DELEGATE_TRUE=
29309 JBIG_DELEGATE_FALSE='#'
29310else
29311 JBIG_DELEGATE_TRUE='#'
29312 JBIG_DELEGATE_FALSE=
29313fi
29314
cristy3ed852e2009-09-05 21:47:34 +000029315
29316
29317
29318#
29319# Check for JPEG delegate library.
29320#
29321
29322# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029323if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029324 withval=$with_jpeg; with_jpeg=$withval
29325else
29326 with_jpeg='yes'
29327fi
29328
29329
29330if test "$with_jpeg" != 'yes'; then
29331 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29332fi
29333
29334have_jpeg='no'
29335JPEG_LIBS=''
29336if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029337 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29338$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029340$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029341 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29342$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029343 failed=0
29344 passed=0
cristy8b350f62009-11-15 23:12:43 +000029345 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029346if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029347 passed=`expr $passed + 1`
29348else
29349 failed=`expr $failed + 1`
29350fi
29351
29352
cristy8b350f62009-11-15 23:12:43 +000029353 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029354if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029355 passed=`expr $passed + 1`
29356else
29357 failed=`expr $failed + 1`
29358fi
29359
29360
cristy8b350f62009-11-15 23:12:43 +000029361 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029362if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029363 passed=`expr $passed + 1`
29364else
29365 failed=`expr $failed + 1`
29366fi
29367
29368
cristy8b350f62009-11-15 23:12:43 +000029369 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029370if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029371 passed=`expr $passed + 1`
29372else
29373 failed=`expr $failed + 1`
29374fi
29375
29376
cristy8b350f62009-11-15 23:12:43 +000029377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029378$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029379if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029380 $as_echo_n "(cached) " >&6
29381else
29382 ac_check_lib_save_LIBS=$LIBS
29383LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029385/* end confdefs.h. */
29386
29387/* Override any GCC internal prototype to avoid an error.
29388 Use char because int might match the return type of a GCC
29389 builtin and then its argument prototype would still apply. */
29390#ifdef __cplusplus
29391extern "C"
29392#endif
29393char jpeg_read_header ();
29394int
29395main ()
29396{
29397return jpeg_read_header ();
29398 ;
29399 return 0;
29400}
29401_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029402if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029403 ac_cv_lib_jpeg_jpeg_read_header=yes
29404else
cristy8b350f62009-11-15 23:12:43 +000029405 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029406fi
cristy8b350f62009-11-15 23:12:43 +000029407rm -f core conftest.err conftest.$ac_objext \
29408 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029409LIBS=$ac_check_lib_save_LIBS
29410fi
cristy8b350f62009-11-15 23:12:43 +000029411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029412$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029413if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029414 passed=`expr $passed + 1`
29415else
29416 failed=`expr $failed + 1`
29417fi
29418
29419
29420# Test for compatible JPEG library
29421if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029423$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029424if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029425 $as_echo_n "(cached) " >&6
29426else
cristy8b350f62009-11-15 23:12:43 +000029427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029428/* end confdefs.h. */
29429#include <stdio.h>
29430#include <stdlib.h>
29431#include <jpeglib.h>
29432
29433int
29434main ()
29435{
29436
29437#if JPEG_LIB_VERSION < 62
29438#error IJG JPEG library must be version 6b or newer!
29439#endif
29440return 0;
29441
29442 ;
29443 return 0;
29444}
29445_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029446if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029447 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29448else
cristy8b350f62009-11-15 23:12:43 +000029449 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029450fi
cristy3ed852e2009-09-05 21:47:34 +000029451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29452fi
cristy8b350f62009-11-15 23:12:43 +000029453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029454$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29455fi
cristy8b350f62009-11-15 23:12:43 +000029456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029457$as_echo_n "checking if JPEG package is complete... " >&6; }
29458 if test $passed -gt 0; then
29459 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029460 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29461$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029462 have_jpeg='no (failed tests)'
29463 else
29464 JPEG_LIBS='-ljpeg'
29465 LIBS="$JPEG_LIBS $LIBS"
29466
cristy8b350f62009-11-15 23:12:43 +000029467$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029468
cristy09b53e12011-10-14 12:47:22 +000029469 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29470$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029471 have_jpeg='yes'
29472 fi
29473 else
cristy09b53e12011-10-14 12:47:22 +000029474 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29475$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029476 fi
29477fi
cristy73bd4a52010-10-05 11:24:23 +000029478 if test "$have_jpeg" = 'yes'; then
29479 JPEG_DELEGATE_TRUE=
29480 JPEG_DELEGATE_FALSE='#'
29481else
29482 JPEG_DELEGATE_TRUE='#'
29483 JPEG_DELEGATE_FALSE=
29484fi
29485
cristy3ed852e2009-09-05 21:47:34 +000029486
29487
29488
29489#
29490# Check for JPEG Version 2 delegate library.
29491#
29492
29493# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029494if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029495 withval=$with_jp2; with_jp2=$withval
29496else
29497 with_jp2='yes'
29498fi
29499
29500
29501if test "$with_jp2" != 'yes'; then
29502 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29503fi
29504
29505have_jp2='no'
29506JP2_LIBS=''
29507if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029508 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29509$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029511$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029512 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29513$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029514 failed=0
29515 passed=0
cristy8b350f62009-11-15 23:12:43 +000029516 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 +000029517if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029518 passed=`expr $passed + 1`
29519else
29520 failed=`expr $failed + 1`
29521fi
29522
29523
cristy8b350f62009-11-15 23:12:43 +000029524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029525$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029526if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029527 $as_echo_n "(cached) " >&6
29528else
29529 ac_check_lib_save_LIBS=$LIBS
29530LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029532/* end confdefs.h. */
29533
29534/* Override any GCC internal prototype to avoid an error.
29535 Use char because int might match the return type of a GCC
29536 builtin and then its argument prototype would still apply. */
29537#ifdef __cplusplus
29538extern "C"
29539#endif
29540char jas_stream_fopen ();
29541int
29542main ()
29543{
29544return jas_stream_fopen ();
29545 ;
29546 return 0;
29547}
29548_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029549if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029550 ac_cv_lib_jasper_jas_stream_fopen=yes
29551else
cristy8b350f62009-11-15 23:12:43 +000029552 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029553fi
cristy8b350f62009-11-15 23:12:43 +000029554rm -f core conftest.err conftest.$ac_objext \
29555 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029556LIBS=$ac_check_lib_save_LIBS
29557fi
cristy8b350f62009-11-15 23:12:43 +000029558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029559$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029560if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029561 passed=`expr $passed + 1`
29562else
29563 failed=`expr $failed + 1`
29564fi
29565
cristy8b350f62009-11-15 23:12:43 +000029566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029567$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29568 if test $passed -gt 0; then
29569 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029570 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29571$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029572 have_jp2='no (failed tests)'
29573 else
29574 JP2_LIBS='-ljasper'
29575 LIBS="$JP2_LIBS $LIBS"
29576
cristy8b350f62009-11-15 23:12:43 +000029577$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029578
cristy09b53e12011-10-14 12:47:22 +000029579 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29580$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029581 have_jp2='yes'
29582 fi
29583 else
cristy09b53e12011-10-14 12:47:22 +000029584 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29585$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029586 fi
29587fi
cristy73bd4a52010-10-05 11:24:23 +000029588 if test "$have_jp2" = 'yes'; then
29589 JP2_DELEGATE_TRUE=
29590 JP2_DELEGATE_FALSE='#'
29591else
29592 JP2_DELEGATE_TRUE='#'
29593 JP2_DELEGATE_FALSE=
29594fi
29595
cristy3ed852e2009-09-05 21:47:34 +000029596
29597
29598
29599#
29600# Check for LCMS delegate library.
29601#
cristy71203402010-06-18 13:12:03 +000029602# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029603
29604# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029605if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029606 withval=$with_lcms; with_lcms=$withval
29607else
29608 with_lcms='yes'
29609fi
29610
cristy71203402010-06-18 13:12:03 +000029611if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029612 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29613fi
29614
cristy71203402010-06-18 13:12:03 +000029615# Disable LCMS2.
29616
29617# Check whether --with-lcms2 was given.
29618if test "${with_lcms2+set}" = set; then :
29619 withval=$with_lcms2; with_lcms2=$withval
29620else
29621 with_lcms2='yes'
29622fi
29623
29624if test "$with_lcms2" != 'yes' ; then
29625 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29626fi
29627
29628have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029629LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029630if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029631 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29632$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29634$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029635 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29636$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029637 failed=0
29638 passed=0
29639 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029640
29641 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029642 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029643if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029644 have_lcms_header='yes'
29645fi
29646
29647
29648 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029649
29650$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29651
cristy71203402010-06-18 13:12:03 +000029652 passed=`expr $passed + 1`
29653 fi
29654
29655 # Check for <lcms2/lcms2.h)
29656 if test "$have_lcms_header" != 'yes'; then
29657 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 +000029658if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029659 have_lcms_header='yes'
29660fi
29661
29662
cristy71203402010-06-18 13:12:03 +000029663 if test "$have_lcms_header" = 'yes'; then
29664 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029665
cristy71203402010-06-18 13:12:03 +000029666$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029667
cristy71203402010-06-18 13:12:03 +000029668 fi
cristyd09bcf92010-03-25 03:04:45 +000029669 fi
cristy71203402010-06-18 13:12:03 +000029670
29671 # Failed to find lcms header?
29672 if test "$have_lcms_header" != 'yes'; then
29673 failed=`expr $failed + 1`
29674 fi
29675
29676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29677$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029678if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029679 $as_echo_n "(cached) " >&6
29680else
29681 ac_check_lib_save_LIBS=$LIBS
29682LIBS="-llcms2 $LIBS"
29683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29684/* end confdefs.h. */
29685
29686/* Override any GCC internal prototype to avoid an error.
29687 Use char because int might match the return type of a GCC
29688 builtin and then its argument prototype would still apply. */
29689#ifdef __cplusplus
29690extern "C"
29691#endif
cristy71203402010-06-18 13:12:03 +000029692char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029693int
29694main ()
29695{
cristy71203402010-06-18 13:12:03 +000029696return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029697 ;
29698 return 0;
29699}
29700_ACEOF
29701if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029702 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029703else
cristy71203402010-06-18 13:12:03 +000029704 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029705fi
29706rm -f core conftest.err conftest.$ac_objext \
29707 conftest$ac_exeext conftest.$ac_ext
29708LIBS=$ac_check_lib_save_LIBS
29709fi
cristy71203402010-06-18 13:12:03 +000029710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29711$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029712if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029713 passed=`expr $passed + 1`
29714else
29715 failed=`expr $failed + 1`
29716fi
29717
cristy71203402010-06-18 13:12:03 +000029718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29719$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029720 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029721 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029722 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29723$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029724 have_lcms2='no (failed tests)'
29725 else
29726 LCMS_LIBS='-llcms2'
29727 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029728 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29729$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029730 have_lcms2='yes'
29731 fi
cristyd09bcf92010-03-25 03:04:45 +000029732 else
cristy09b53e12011-10-14 12:47:22 +000029733 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29734$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029735 fi
29736fi
29737
cristy71203402010-06-18 13:12:03 +000029738#
29739# Check for LCMS v1 (1.11 or later)
29740#
29741if test $have_lcms2 = 'yes'; then
29742 with_lcms='no'
29743fi
29744
29745have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029746if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029747 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29748$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29750$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029751 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29752$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029753 failed=0
29754 passed=0
29755 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029756
29757 # Check for <lcms.h>
29758 if test "$have_lcms_header" != 'yes'; then
29759 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029760if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029761 have_lcms_header='yes'
29762fi
29763
29764
cristy71203402010-06-18 13:12:03 +000029765 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029766 passed=`expr $passed + 1`
29767
cristy8b350f62009-11-15 23:12:43 +000029768$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029769
cristy71203402010-06-18 13:12:03 +000029770 fi
29771 fi
29772
29773 # Check for <lcms/lcms.h>
29774 if test "$have_lcms_header" != 'yes'; then
29775 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 +000029776if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029777 have_lcms_header='yes'
29778fi
29779
29780
cristy71203402010-06-18 13:12:03 +000029781 if test "$have_lcms_header" = 'yes'; then
29782 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029783
cristy8b350f62009-11-15 23:12:43 +000029784$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029785
cristy71203402010-06-18 13:12:03 +000029786 fi
cristy3ed852e2009-09-05 21:47:34 +000029787 fi
cristy71203402010-06-18 13:12:03 +000029788
29789 # Failed to find lcms header?
29790 if test "$have_lcms_header" != 'yes'; then
29791 failed=`expr $failed + 1`
29792 fi
29793
29794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29795$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029796if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029797 $as_echo_n "(cached) " >&6
29798else
29799 ac_check_lib_save_LIBS=$LIBS
29800LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029802/* end confdefs.h. */
29803
29804/* Override any GCC internal prototype to avoid an error.
29805 Use char because int might match the return type of a GCC
29806 builtin and then its argument prototype would still apply. */
29807#ifdef __cplusplus
29808extern "C"
29809#endif
cristy71203402010-06-18 13:12:03 +000029810char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029811int
29812main ()
29813{
cristy71203402010-06-18 13:12:03 +000029814return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029815 ;
29816 return 0;
29817}
29818_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029819if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029820 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029821else
cristy71203402010-06-18 13:12:03 +000029822 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029823fi
cristy8b350f62009-11-15 23:12:43 +000029824rm -f core conftest.err conftest.$ac_objext \
29825 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029826LIBS=$ac_check_lib_save_LIBS
29827fi
cristy71203402010-06-18 13:12:03 +000029828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29829$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029830if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029831 passed=`expr $passed + 1`
29832else
29833 failed=`expr $failed + 1`
29834fi
29835
cristy8b350f62009-11-15 23:12:43 +000029836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029837$as_echo_n "checking if LCMS package is complete... " >&6; }
29838 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029839 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029840 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29841$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029842 have_lcms='no (failed tests)'
29843 else
29844 LCMS_LIBS='-llcms'
29845 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029846 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29847$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029848 have_lcms='yes'
29849 fi
cristy3ed852e2009-09-05 21:47:34 +000029850 else
cristy09b53e12011-10-14 12:47:22 +000029851 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29852$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029853 fi
29854fi
cristy71203402010-06-18 13:12:03 +000029855
cristy73bd4a52010-10-05 11:24:23 +000029856 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29857 LCMS_DELEGATE_TRUE=
29858 LCMS_DELEGATE_FALSE='#'
29859else
29860 LCMS_DELEGATE_TRUE='#'
29861 LCMS_DELEGATE_FALSE=
29862fi
29863
cristy71203402010-06-18 13:12:03 +000029864if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29865
29866$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29867
29868fi
29869
cristy3ed852e2009-09-05 21:47:34 +000029870
29871
29872
29873#
29874# Check for the LQR (Liquid Rescale) delegate library.
29875#
29876
29877# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029878if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029879 withval=$with_lqr; with_lqr=$withval
29880else
29881 with_lqr='yes'
29882fi
29883
29884
29885if test "$with_lqr" != 'yes'; then
29886 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29887fi
29888
29889have_lqr='no'
29890LQR_CFLAGS=""
29891LQR_LIBS=""
29892LQR_PKG=""
29893if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029894 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29895$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029896
29897pkg_failed=no
29898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29899$as_echo_n "checking for LQR... " >&6; }
29900
29901if test -n "$LQR_CFLAGS"; then
29902 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29903 elif test -n "$PKG_CONFIG"; then
29904 if test -n "$PKG_CONFIG" && \
29905 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29906 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29907 ac_status=$?
29908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29909 test $ac_status = 0; }; then
29910 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29911else
29912 pkg_failed=yes
29913fi
29914 else
29915 pkg_failed=untried
29916fi
29917if test -n "$LQR_LIBS"; then
29918 pkg_cv_LQR_LIBS="$LQR_LIBS"
29919 elif test -n "$PKG_CONFIG"; then
29920 if test -n "$PKG_CONFIG" && \
29921 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29922 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29923 ac_status=$?
29924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29925 test $ac_status = 0; }; then
29926 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29927else
29928 pkg_failed=yes
29929fi
29930 else
29931 pkg_failed=untried
29932fi
29933
29934
29935
29936if test $pkg_failed = yes; then
29937
29938if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29939 _pkg_short_errors_supported=yes
29940else
29941 _pkg_short_errors_supported=no
29942fi
29943 if test $_pkg_short_errors_supported = yes; then
29944 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29945 else
29946 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29947 fi
29948 # Put the nasty error message in config.log where it belongs
29949 echo "$LQR_PKG_ERRORS" >&5
29950
29951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29952$as_echo "no" >&6; }
29953 have_lqr=no
29954elif test $pkg_failed = untried; then
29955 have_lqr=no
29956else
29957 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29958 LQR_LIBS=$pkg_cv_LQR_LIBS
29959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29960$as_echo "yes" >&6; }
29961 have_lqr=yes
29962fi
cristy09b53e12011-10-14 12:47:22 +000029963 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29964$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029965fi
29966
29967if test "$have_lqr" = 'yes'; then
29968
cristy8b350f62009-11-15 23:12:43 +000029969$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029970
29971 CFLAGS="$LQR_CFLAGS $CFLAGS"
29972fi
29973
cristy73bd4a52010-10-05 11:24:23 +000029974 if test "$have_lqr" = 'yes'; then
29975 LQR_DELEGATE_TRUE=
29976 LQR_DELEGATE_FALSE='#'
29977else
29978 LQR_DELEGATE_TRUE='#'
29979 LQR_DELEGATE_FALSE=
29980fi
29981
cristy3ed852e2009-09-05 21:47:34 +000029982
29983
29984
29985
cristy81beccd2011-10-03 18:17:24 +000029986# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000029987
29988# Check whether --with-lzma was given.
29989if test "${with_lzma+set}" = set; then :
29990 withval=$with_lzma; with_lzma=$withval
29991else
29992 with_lzma='yes'
29993fi
29994
cristy81beccd2011-10-03 18:17:24 +000029995if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000029996 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29997fi
29998
cristy81beccd2011-10-03 18:17:24 +000029999#
30000# Check for LZMA
30001#
30002have_lzma='no'
30003LZMA_LIBS=''
30004if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030005 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30006$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030008$as_echo_n "checking for LZMA... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030009 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30010$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000030011 failed=0
30012 passed=0
30013 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
30014if test "x$ac_cv_header_lzma_h" = xyes; then :
30015 passed=`expr $passed + 1`
30016else
30017 failed=`expr $failed + 1`
cristyfbb0ef02010-12-19 02:32:11 +000030018fi
30019
cristy81beccd2011-10-03 18:17:24 +000030020
30021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
30022$as_echo_n "checking for lzma_code in -llzma... " >&6; }
30023if ${ac_cv_lib_lzma_lzma_code+:} false; then :
30024 $as_echo_n "(cached) " >&6
30025else
30026 ac_check_lib_save_LIBS=$LIBS
30027LIBS="-llzma $LIBS"
30028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30029/* end confdefs.h. */
30030
30031/* Override any GCC internal prototype to avoid an error.
30032 Use char because int might match the return type of a GCC
30033 builtin and then its argument prototype would still apply. */
30034#ifdef __cplusplus
30035extern "C"
30036#endif
30037char lzma_code ();
30038int
30039main ()
30040{
30041return lzma_code ();
30042 ;
30043 return 0;
30044}
30045_ACEOF
30046if ac_fn_c_try_link "$LINENO"; then :
30047 ac_cv_lib_lzma_lzma_code=yes
30048else
30049 ac_cv_lib_lzma_lzma_code=no
30050fi
30051rm -f core conftest.err conftest.$ac_objext \
30052 conftest$ac_exeext conftest.$ac_ext
30053LIBS=$ac_check_lib_save_LIBS
30054fi
30055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
30056$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
30057if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
30058 passed=`expr $passed + 1`
30059else
30060 failed=`expr $failed + 1`
30061fi
30062
30063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
30064$as_echo_n "checking if LZMA package is complete... " >&6; }
30065 if test $passed -gt 0; then
30066 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030067 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30068$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030069 have_lzma='no (failed tests)'
30070 else
30071 LZMA_LIBS='-llzma'
30072 LIBS="$LZMA_LIBS $LIBS"
cristyfbb0ef02010-12-19 02:32:11 +000030073
30074$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30075
cristy09b53e12011-10-14 12:47:22 +000030076 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30077$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030078 have_lzma='yes'
cristyfbb0ef02010-12-19 02:32:11 +000030079 fi
cristy81beccd2011-10-03 18:17:24 +000030080 else
cristy09b53e12011-10-14 12:47:22 +000030081 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30082$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030083 fi
cristyfbb0ef02010-12-19 02:32:11 +000030084fi
30085 if test "$have_lzma" = 'yes'; then
30086 LZMA_DELEGATE_TRUE=
30087 LZMA_DELEGATE_FALSE='#'
30088else
30089 LZMA_DELEGATE_TRUE='#'
30090 LZMA_DELEGATE_FALSE=
30091fi
30092
30093
30094
30095
cristy3ed852e2009-09-05 21:47:34 +000030096#
30097# Check for the OpenEXR delegate library.
30098#
30099
30100# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030101if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030102 withval=$with_openexr; with_openexr=$withval
30103else
30104 with_openexr='yes'
30105fi
30106
30107
30108if test "$with_openexr" != 'yes'; then
30109 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30110fi
30111
30112have_openexr='no'
30113OPENEXR_CFLAGS=""
30114OPENEXR_LIBS=""
30115OPENEXR_PKG=""
30116if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030117 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30118$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030119
30120pkg_failed=no
30121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30122$as_echo_n "checking for OPENEXR... " >&6; }
30123
30124if test -n "$OPENEXR_CFLAGS"; then
30125 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30126 elif test -n "$PKG_CONFIG"; then
30127 if test -n "$PKG_CONFIG" && \
30128 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30129 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30130 ac_status=$?
30131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30132 test $ac_status = 0; }; then
30133 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30134else
30135 pkg_failed=yes
30136fi
30137 else
30138 pkg_failed=untried
30139fi
30140if test -n "$OPENEXR_LIBS"; then
30141 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30142 elif test -n "$PKG_CONFIG"; then
30143 if test -n "$PKG_CONFIG" && \
30144 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30145 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30146 ac_status=$?
30147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30148 test $ac_status = 0; }; then
30149 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30150else
30151 pkg_failed=yes
30152fi
30153 else
30154 pkg_failed=untried
30155fi
30156
30157
30158
30159if test $pkg_failed = yes; then
30160
30161if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30162 _pkg_short_errors_supported=yes
30163else
30164 _pkg_short_errors_supported=no
30165fi
30166 if test $_pkg_short_errors_supported = yes; then
30167 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30168 else
30169 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30170 fi
30171 # Put the nasty error message in config.log where it belongs
30172 echo "$OPENEXR_PKG_ERRORS" >&5
30173
30174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30175$as_echo "no" >&6; }
30176 have_openexr=no
30177elif test $pkg_failed = untried; then
30178 have_openexr=no
30179else
30180 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30181 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30183$as_echo "yes" >&6; }
30184 have_openexr=yes
30185fi
cristy09b53e12011-10-14 12:47:22 +000030186 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30187$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030188fi
30189
30190if test "$have_openexr" = 'yes'; then
30191
cristy8b350f62009-11-15 23:12:43 +000030192$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030193
30194 if test "$with_modules" = 'no'; then
30195 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30196 fi
30197fi
30198
cristy73bd4a52010-10-05 11:24:23 +000030199 if test "$have_openexr" = 'yes'; then
30200 OPENEXR_DELEGATE_TRUE=
30201 OPENEXR_DELEGATE_FALSE='#'
30202else
30203 OPENEXR_DELEGATE_TRUE='#'
30204 OPENEXR_DELEGATE_FALSE=
30205fi
30206
cristy3ed852e2009-09-05 21:47:34 +000030207
30208
30209
30210
30211#
30212# Check for PNG delegate library.
30213#
30214
30215# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030216if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030217 withval=$with_png; with_png=$withval
30218else
30219 with_png='yes'
30220fi
30221
30222
30223if test "$with_png" != 'yes'; then
30224 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30225fi
30226
cristy81beccd2011-10-03 18:17:24 +000030227have_png='no'
30228PNG_LIBS=''
30229
30230if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000030231 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30232$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30234$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030235 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30236$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000030237 failed=0
30238 passed=0
30239 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30240if test "x$ac_cv_header_png_h" = xyes; then :
30241 passed=`expr $passed + 1`
30242else
30243 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030244fi
30245
cristy81beccd2011-10-03 18:17:24 +000030246
30247
30248 if test $passed -gt 0; then
30249 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030250 if test "$have_png" = 'no' ; then
30251 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030252 pnglib='png'
30253 else
30254 pnglib="png1${var}"
30255 fi
30256
30257# Test for compatible LIBPNG library
30258 failed=0
30259 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030260 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030261 if test "${pnglib}" != 'png' ; then
30262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30263$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30265/* end confdefs.h. */
30266#include <stdio.h>
30267#include <stdlib.h>
30268#include <png.h>
30269
30270int
30271main ()
30272{
30273
30274#if PNG_LIBPNG_VER_MINOR != ${var}
30275#error LIBPNG library must be version 1${var}!
30276Kaboom, Kaboom
30277#endif
30278return 0;
30279
30280 ;
30281 return 0;
30282}
30283_ACEOF
30284if ac_fn_c_try_compile "$LINENO"; then :
30285 ac_cv_libpng_ok='yes'
30286else
30287 ac_cv_libpng_ok='no'
30288fi
30289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30290 if test "$ac_cv_libpng_ok" = 'yes' ; then
30291 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030292 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30293$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030294 else
30295 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000030296 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30297$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030298 fi
30299 else
30300 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030301 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30302$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030303 fi
30304 fi
30305
30306 if test $passed -gt 0 -a $failed -le 0; then
30307 if test "1${var}" = '15' ; then
30308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30309$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30310if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30311 $as_echo_n "(cached) " >&6
30312else
30313 ac_check_lib_save_LIBS=$LIBS
30314LIBS="-lpng15 $LIBS"
30315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30316/* end confdefs.h. */
30317
30318/* Override any GCC internal prototype to avoid an error.
30319 Use char because int might match the return type of a GCC
30320 builtin and then its argument prototype would still apply. */
30321#ifdef __cplusplus
30322extern "C"
30323#endif
30324char png_get_io_ptr ();
30325int
30326main ()
30327{
30328return png_get_io_ptr ();
30329 ;
30330 return 0;
30331}
30332_ACEOF
30333if ac_fn_c_try_link "$LINENO"; then :
30334 ac_cv_lib_png15_png_get_io_ptr=yes
30335else
30336 ac_cv_lib_png15_png_get_io_ptr=no
30337fi
30338rm -f core conftest.err conftest.$ac_objext \
30339 conftest$ac_exeext conftest.$ac_ext
30340LIBS=$ac_check_lib_save_LIBS
30341fi
30342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30343$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30344if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30345 passed=`expr $passed + 1`
30346else
30347 failed=`expr $failed + 1`
30348fi
30349
30350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30351$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30352if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30353 $as_echo_n "(cached) " >&6
30354else
30355 ac_check_lib_save_LIBS=$LIBS
30356LIBS="-lpng15 $LIBS"
30357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30358/* end confdefs.h. */
30359
30360/* Override any GCC internal prototype to avoid an error.
30361 Use char because int might match the return type of a GCC
30362 builtin and then its argument prototype would still apply. */
30363#ifdef __cplusplus
30364extern "C"
30365#endif
30366char png_longjmp ();
30367int
30368main ()
30369{
30370return png_longjmp ();
30371 ;
30372 return 0;
30373}
30374_ACEOF
30375if ac_fn_c_try_link "$LINENO"; then :
30376 ac_cv_lib_png15_png_longjmp=yes
30377else
30378 ac_cv_lib_png15_png_longjmp=no
30379fi
30380rm -f core conftest.err conftest.$ac_objext \
30381 conftest$ac_exeext conftest.$ac_ext
30382LIBS=$ac_check_lib_save_LIBS
30383fi
30384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30385$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30386if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30387 passed=`expr $passed + 1`
30388else
30389 failed=`expr $failed + 1`
30390fi
30391
30392 fi
30393 if test "1${var}" = '14' ; then
30394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30395$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30396if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30397 $as_echo_n "(cached) " >&6
30398else
30399 ac_check_lib_save_LIBS=$LIBS
30400LIBS="-lpng14 $LIBS"
30401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30402/* end confdefs.h. */
30403
30404/* Override any GCC internal prototype to avoid an error.
30405 Use char because int might match the return type of a GCC
30406 builtin and then its argument prototype would still apply. */
30407#ifdef __cplusplus
30408extern "C"
30409#endif
30410char png_get_io_ptr ();
30411int
30412main ()
30413{
30414return png_get_io_ptr ();
30415 ;
30416 return 0;
30417}
30418_ACEOF
30419if ac_fn_c_try_link "$LINENO"; then :
30420 ac_cv_lib_png14_png_get_io_ptr=yes
30421else
30422 ac_cv_lib_png14_png_get_io_ptr=no
30423fi
30424rm -f core conftest.err conftest.$ac_objext \
30425 conftest$ac_exeext conftest.$ac_ext
30426LIBS=$ac_check_lib_save_LIBS
30427fi
30428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30429$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30430if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30431 passed=`expr $passed + 1`
30432else
30433 failed=`expr $failed + 1`
30434fi
30435
30436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30437$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30438if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30439 $as_echo_n "(cached) " >&6
30440else
30441 ac_check_lib_save_LIBS=$LIBS
30442LIBS="-lpng14 $LIBS"
30443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30444/* end confdefs.h. */
30445
30446/* Override any GCC internal prototype to avoid an error.
30447 Use char because int might match the return type of a GCC
30448 builtin and then its argument prototype would still apply. */
30449#ifdef __cplusplus
30450extern "C"
30451#endif
30452char png_get_io_state ();
30453int
30454main ()
30455{
30456return png_get_io_state ();
30457 ;
30458 return 0;
30459}
30460_ACEOF
30461if ac_fn_c_try_link "$LINENO"; then :
30462 ac_cv_lib_png14_png_get_io_state=yes
30463else
30464 ac_cv_lib_png14_png_get_io_state=no
30465fi
30466rm -f core conftest.err conftest.$ac_objext \
30467 conftest$ac_exeext conftest.$ac_ext
30468LIBS=$ac_check_lib_save_LIBS
30469fi
30470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30471$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30472if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30473 passed=`expr $passed + 1`
30474else
30475 failed=`expr $failed + 1`
30476fi
30477
30478 fi
30479 if test "1${var}" = '12' ; then
30480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30481$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30482if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30483 $as_echo_n "(cached) " >&6
30484else
30485 ac_check_lib_save_LIBS=$LIBS
30486LIBS="-lpng12 $LIBS"
30487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30488/* end confdefs.h. */
30489
30490/* Override any GCC internal prototype to avoid an error.
30491 Use char because int might match the return type of a GCC
30492 builtin and then its argument prototype would still apply. */
30493#ifdef __cplusplus
30494extern "C"
30495#endif
30496char png_get_io_ptr ();
30497int
30498main ()
30499{
30500return png_get_io_ptr ();
30501 ;
30502 return 0;
30503}
30504_ACEOF
30505if ac_fn_c_try_link "$LINENO"; then :
30506 ac_cv_lib_png12_png_get_io_ptr=yes
30507else
30508 ac_cv_lib_png12_png_get_io_ptr=no
30509fi
30510rm -f core conftest.err conftest.$ac_objext \
30511 conftest$ac_exeext conftest.$ac_ext
30512LIBS=$ac_check_lib_save_LIBS
30513fi
30514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30515$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30516if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30517 passed=`expr $passed + 1`
30518else
30519 failed=`expr $failed + 1`
30520fi
30521
30522 fi
30523 if test "1${var}" = '1' ; then
30524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30525$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30526if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30527 $as_echo_n "(cached) " >&6
30528else
30529 ac_check_lib_save_LIBS=$LIBS
30530LIBS="-lpng $LIBS"
30531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30532/* end confdefs.h. */
30533
30534/* Override any GCC internal prototype to avoid an error.
30535 Use char because int might match the return type of a GCC
30536 builtin and then its argument prototype would still apply. */
30537#ifdef __cplusplus
30538extern "C"
30539#endif
30540char png_get_io_ptr ();
30541int
30542main ()
30543{
30544return png_get_io_ptr ();
30545 ;
30546 return 0;
30547}
30548_ACEOF
30549if ac_fn_c_try_link "$LINENO"; then :
30550 ac_cv_lib_png_png_get_io_ptr=yes
30551else
30552 ac_cv_lib_png_png_get_io_ptr=no
30553fi
30554rm -f core conftest.err conftest.$ac_objext \
30555 conftest$ac_exeext conftest.$ac_ext
30556LIBS=$ac_check_lib_save_LIBS
30557fi
30558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30559$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30560if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30561 passed=`expr $passed + 1`
30562else
30563 failed=`expr $failed + 1`
30564fi
30565
30566 fi
30567 if test $passed -gt 0 -a $failed -le 0 ; then
30568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30569$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30570 if test $passed -gt 0 ; then
30571 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000030572 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30573$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030574 have_png='no (failed tests)'
30575 else
30576 PNG_LIBS="-l${pnglib}"
30577 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030578
cristy8b350f62009-11-15 23:12:43 +000030579$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030580
cristy09b53e12011-10-14 12:47:22 +000030581 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30582$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030583 have_png='yes'
30584 fi
30585 fi
30586 fi
30587 fi
30588 fi
30589 done
30590 fi
cristy3ed852e2009-09-05 21:47:34 +000030591fi
cristy64877302011-08-23 19:10:31 +000030592
cristy73bd4a52010-10-05 11:24:23 +000030593 if test "$have_png" = 'yes'; then
30594 PNG_DELEGATE_TRUE=
30595 PNG_DELEGATE_FALSE='#'
30596else
30597 PNG_DELEGATE_TRUE='#'
30598 PNG_DELEGATE_FALSE=
30599fi
30600
cristy3ed852e2009-09-05 21:47:34 +000030601
cristy50d3f5c2011-09-10 20:09:06 +000030602
cristy3ed852e2009-09-05 21:47:34 +000030603
30604
30605#
30606# Check for RSVG delegate library.
30607#
30608
30609# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000030610if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030611 withval=$with_rsvg; with_rsvg=$withval
30612else
30613 with_rsvg=$have_x
30614fi
30615
30616
30617if test "$with_rsvg" != 'yes'; then
30618 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30619fi
30620
30621have_rsvg='no'
30622have_cairo='no'
30623RSVG_CFLAGS=""
30624RSVG_LIBS=""
30625RSVG_PKG=""
30626if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030627 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30628$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030629
30630pkg_failed=no
30631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30632$as_echo_n "checking for RSVG... " >&6; }
30633
30634if test -n "$RSVG_CFLAGS"; then
30635 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30636 elif test -n "$PKG_CONFIG"; then
30637 if test -n "$PKG_CONFIG" && \
30638 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30639 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30640 ac_status=$?
30641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30642 test $ac_status = 0; }; then
30643 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30644else
30645 pkg_failed=yes
30646fi
30647 else
30648 pkg_failed=untried
30649fi
30650if test -n "$RSVG_LIBS"; then
30651 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30652 elif test -n "$PKG_CONFIG"; then
30653 if test -n "$PKG_CONFIG" && \
30654 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30655 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30656 ac_status=$?
30657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30658 test $ac_status = 0; }; then
30659 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30660else
30661 pkg_failed=yes
30662fi
30663 else
30664 pkg_failed=untried
30665fi
30666
30667
30668
30669if test $pkg_failed = yes; then
30670
30671if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30672 _pkg_short_errors_supported=yes
30673else
30674 _pkg_short_errors_supported=no
30675fi
30676 if test $_pkg_short_errors_supported = yes; then
30677 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30678 else
30679 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30680 fi
30681 # Put the nasty error message in config.log where it belongs
30682 echo "$RSVG_PKG_ERRORS" >&5
30683
30684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30685$as_echo "no" >&6; }
30686 have_rsvg=no
30687elif test $pkg_failed = untried; then
30688 have_rsvg=no
30689else
30690 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30691 RSVG_LIBS=$pkg_cv_RSVG_LIBS
30692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30693$as_echo "yes" >&6; }
30694 have_rsvg=yes
30695fi
cristy09b53e12011-10-14 12:47:22 +000030696 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30697$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030698
30699pkg_failed=no
30700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30701$as_echo_n "checking for CAIRO_SVG... " >&6; }
30702
30703if test -n "$CAIRO_SVG_CFLAGS"; then
30704 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30705 elif test -n "$PKG_CONFIG"; then
30706 if test -n "$PKG_CONFIG" && \
30707 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30708 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30709 ac_status=$?
30710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30711 test $ac_status = 0; }; then
30712 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30713else
30714 pkg_failed=yes
30715fi
30716 else
30717 pkg_failed=untried
30718fi
30719if test -n "$CAIRO_SVG_LIBS"; then
30720 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30721 elif test -n "$PKG_CONFIG"; then
30722 if test -n "$PKG_CONFIG" && \
30723 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30724 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30725 ac_status=$?
30726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30727 test $ac_status = 0; }; then
30728 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30729else
30730 pkg_failed=yes
30731fi
30732 else
30733 pkg_failed=untried
30734fi
30735
30736
30737
30738if test $pkg_failed = yes; then
30739
30740if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30741 _pkg_short_errors_supported=yes
30742else
30743 _pkg_short_errors_supported=no
30744fi
30745 if test $_pkg_short_errors_supported = yes; then
30746 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
30747 else
30748 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
30749 fi
30750 # Put the nasty error message in config.log where it belongs
30751 echo "$CAIRO_SVG_PKG_ERRORS" >&5
30752
30753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30754$as_echo "no" >&6; }
30755 have_cairo=no
30756elif test $pkg_failed = untried; then
30757 have_cairo=no
30758else
30759 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
30760 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
30761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30762$as_echo "yes" >&6; }
30763 have_cairo=yes
30764fi
cristy09b53e12011-10-14 12:47:22 +000030765 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30766$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030767fi
30768
30769if test "$have_rsvg" = 'yes'; then
30770
cristy8b350f62009-11-15 23:12:43 +000030771$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030772
30773 if test "$with_modules" = 'no'; then
30774 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
30775 fi
30776fi
30777
30778if test "$have_cairo" = 'yes'; then
30779
cristy8b350f62009-11-15 23:12:43 +000030780$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030781
30782 if test "$with_modules" = 'no'; then
30783 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
30784 fi
30785fi
30786
cristy73bd4a52010-10-05 11:24:23 +000030787 if test "$have_rsvg" = 'yes'; then
30788 RSVG_DELEGATE_TRUE=
30789 RSVG_DELEGATE_FALSE='#'
30790else
30791 RSVG_DELEGATE_TRUE='#'
30792 RSVG_DELEGATE_FALSE=
30793fi
30794
30795 if test "$have_cairo" = 'yes'; then
30796 CAIRO_DELEGATE_TRUE=
30797 CAIRO_DELEGATE_FALSE='#'
30798else
30799 CAIRO_DELEGATE_TRUE='#'
30800 CAIRO_DELEGATE_FALSE=
30801fi
30802
cristy3ed852e2009-09-05 21:47:34 +000030803
30804
30805
30806
30807#
30808# Check for TIFF delegate library.
30809#
30810
30811# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000030812if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030813 withval=$with_tiff; with_tiff=$withval
30814else
30815 with_tiff='yes'
30816fi
30817
30818
30819if test "$with_tiff" != 'yes'; then
30820 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
30821fi
30822
30823have_tiff='no'
30824TIFF_LIBS=''
30825if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030826 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30827$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000030829$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030830 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30831$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030832 failed=0
30833 passed=0
cristy8b350f62009-11-15 23:12:43 +000030834 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030835if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030836 passed=`expr $passed + 1`
30837else
30838 failed=`expr $failed + 1`
30839fi
30840
30841
cristy8b350f62009-11-15 23:12:43 +000030842 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030843if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030844 passed=`expr $passed + 1`
30845else
30846 failed=`expr $failed + 1`
30847fi
30848
30849
cristy8b350f62009-11-15 23:12:43 +000030850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030851$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030852if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030853 $as_echo_n "(cached) " >&6
30854else
30855 ac_check_lib_save_LIBS=$LIBS
30856LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030858/* end confdefs.h. */
30859
30860/* Override any GCC internal prototype to avoid an error.
30861 Use char because int might match the return type of a GCC
30862 builtin and then its argument prototype would still apply. */
30863#ifdef __cplusplus
30864extern "C"
30865#endif
30866char TIFFOpen ();
30867int
30868main ()
30869{
30870return TIFFOpen ();
30871 ;
30872 return 0;
30873}
30874_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030875if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030876 ac_cv_lib_tiff_TIFFOpen=yes
30877else
cristy8b350f62009-11-15 23:12:43 +000030878 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000030879fi
cristy8b350f62009-11-15 23:12:43 +000030880rm -f core conftest.err conftest.$ac_objext \
30881 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030882LIBS=$ac_check_lib_save_LIBS
30883fi
cristy8b350f62009-11-15 23:12:43 +000030884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030885$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030886if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030887 passed=`expr $passed + 1`
30888else
30889 failed=`expr $failed + 1`
30890fi
30891
cristy8b350f62009-11-15 23:12:43 +000030892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030893$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030894if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030895 $as_echo_n "(cached) " >&6
30896else
30897 ac_check_lib_save_LIBS=$LIBS
30898LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030900/* end confdefs.h. */
30901
30902/* Override any GCC internal prototype to avoid an error.
30903 Use char because int might match the return type of a GCC
30904 builtin and then its argument prototype would still apply. */
30905#ifdef __cplusplus
30906extern "C"
30907#endif
30908char TIFFClientOpen ();
30909int
30910main ()
30911{
30912return TIFFClientOpen ();
30913 ;
30914 return 0;
30915}
30916_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030917if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030918 ac_cv_lib_tiff_TIFFClientOpen=yes
30919else
cristy8b350f62009-11-15 23:12:43 +000030920 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000030921fi
cristy8b350f62009-11-15 23:12:43 +000030922rm -f core conftest.err conftest.$ac_objext \
30923 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030924LIBS=$ac_check_lib_save_LIBS
30925fi
cristy8b350f62009-11-15 23:12:43 +000030926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030927$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030928if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030929 passed=`expr $passed + 1`
30930else
30931 failed=`expr $failed + 1`
30932fi
30933
cristyb97f1002010-07-26 14:02:57 +000030934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
30935$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030936if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
cristyb97f1002010-07-26 14:02:57 +000030937 $as_echo_n "(cached) " >&6
30938else
30939 ac_check_lib_save_LIBS=$LIBS
30940LIBS="-ltiff $LIBS"
30941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30942/* end confdefs.h. */
30943
30944/* Override any GCC internal prototype to avoid an error.
30945 Use char because int might match the return type of a GCC
30946 builtin and then its argument prototype would still apply. */
30947#ifdef __cplusplus
30948extern "C"
30949#endif
30950char TIFFIsBigEndian ();
30951int
30952main ()
30953{
30954return TIFFIsBigEndian ();
30955 ;
30956 return 0;
30957}
30958_ACEOF
30959if ac_fn_c_try_link "$LINENO"; then :
30960 ac_cv_lib_tiff_TIFFIsBigEndian=yes
30961else
30962 ac_cv_lib_tiff_TIFFIsBigEndian=no
30963fi
30964rm -f core conftest.err conftest.$ac_objext \
30965 conftest$ac_exeext conftest.$ac_ext
30966LIBS=$ac_check_lib_save_LIBS
30967fi
30968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
30969$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
cristyda16f162011-02-19 23:52:17 +000030970if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
cristyb97f1002010-07-26 14:02:57 +000030971 passed=`expr $passed + 1`
30972else
30973 failed=`expr $failed + 1`
30974fi
30975
cristy8b350f62009-11-15 23:12:43 +000030976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000030977$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030978if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030979 $as_echo_n "(cached) " >&6
30980else
30981 ac_check_lib_save_LIBS=$LIBS
30982LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030984/* end confdefs.h. */
30985
30986/* Override any GCC internal prototype to avoid an error.
30987 Use char because int might match the return type of a GCC
30988 builtin and then its argument prototype would still apply. */
30989#ifdef __cplusplus
30990extern "C"
30991#endif
30992char TIFFIsByteSwapped ();
30993int
30994main ()
30995{
30996return TIFFIsByteSwapped ();
30997 ;
30998 return 0;
30999}
31000_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031001if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031002 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31003else
cristy8b350f62009-11-15 23:12:43 +000031004 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031005fi
cristy8b350f62009-11-15 23:12:43 +000031006rm -f core conftest.err conftest.$ac_objext \
31007 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031008LIBS=$ac_check_lib_save_LIBS
31009fi
cristy8b350f62009-11-15 23:12:43 +000031010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031011$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031012if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031013 passed=`expr $passed + 1`
31014else
31015 failed=`expr $failed + 1`
31016fi
31017
cristy8b350f62009-11-15 23:12:43 +000031018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031019$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031020if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031021 $as_echo_n "(cached) " >&6
31022else
31023 ac_check_lib_save_LIBS=$LIBS
31024LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031026/* end confdefs.h. */
31027
31028/* Override any GCC internal prototype to avoid an error.
31029 Use char because int might match the return type of a GCC
31030 builtin and then its argument prototype would still apply. */
31031#ifdef __cplusplus
31032extern "C"
31033#endif
31034char TIFFReadRGBATile ();
31035int
31036main ()
31037{
31038return TIFFReadRGBATile ();
31039 ;
31040 return 0;
31041}
31042_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031043if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031044 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31045else
cristy8b350f62009-11-15 23:12:43 +000031046 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031047fi
cristy8b350f62009-11-15 23:12:43 +000031048rm -f core conftest.err conftest.$ac_objext \
31049 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031050LIBS=$ac_check_lib_save_LIBS
31051fi
cristy8b350f62009-11-15 23:12:43 +000031052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031053$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031054if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031055 passed=`expr $passed + 1`
31056else
31057 failed=`expr $failed + 1`
31058fi
31059
cristy8b350f62009-11-15 23:12:43 +000031060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031061$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031062if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031063 $as_echo_n "(cached) " >&6
31064else
31065 ac_check_lib_save_LIBS=$LIBS
31066LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031068/* end confdefs.h. */
31069
31070/* Override any GCC internal prototype to avoid an error.
31071 Use char because int might match the return type of a GCC
31072 builtin and then its argument prototype would still apply. */
31073#ifdef __cplusplus
31074extern "C"
31075#endif
31076char TIFFReadRGBAStrip ();
31077int
31078main ()
31079{
31080return TIFFReadRGBAStrip ();
31081 ;
31082 return 0;
31083}
31084_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031085if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031086 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31087else
cristy8b350f62009-11-15 23:12:43 +000031088 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031089fi
cristy8b350f62009-11-15 23:12:43 +000031090rm -f core conftest.err conftest.$ac_objext \
31091 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031092LIBS=$ac_check_lib_save_LIBS
31093fi
cristy8b350f62009-11-15 23:12:43 +000031094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031095$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031096if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031097 passed=`expr $passed + 1`
31098else
31099 failed=`expr $failed + 1`
31100fi
31101
cristy8b350f62009-11-15 23:12:43 +000031102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031103$as_echo_n "checking if TIFF package is complete... " >&6; }
31104 if test $passed -gt 0; then
31105 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031106 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31107$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031108 have_tiff='no (failed tests)'
31109 else
31110 TIFF_LIBS='-ltiff'
31111 LIBS="$TIFF_LIBS $LIBS"
31112
cristy8b350f62009-11-15 23:12:43 +000031113$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031114
cristy09b53e12011-10-14 12:47:22 +000031115 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31116$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031117 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031118 for ac_header in tiffconf.h
31119do :
31120 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031121if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031122 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031123#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031124_ACEOF
31125
31126fi
31127
31128done
31129
cristy8b350f62009-11-15 23:12:43 +000031130 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000031131 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
31132 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031133do :
31134 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31135ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031136if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031137 cat >>confdefs.h <<_ACEOF
31138#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31139_ACEOF
31140
31141fi
31142done
31143
31144 fi
31145 else
cristy09b53e12011-10-14 12:47:22 +000031146 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31147$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031148 fi
31149fi
cristy73bd4a52010-10-05 11:24:23 +000031150 if test "$have_tiff" = 'yes'; then
31151 TIFF_DELEGATE_TRUE=
31152 TIFF_DELEGATE_FALSE='#'
31153else
31154 TIFF_DELEGATE_TRUE='#'
31155 TIFF_DELEGATE_FALSE=
31156fi
31157
cristy3ed852e2009-09-05 21:47:34 +000031158
31159
31160
31161#
cristyb1860752011-03-14 00:27:46 +000031162# Check for WEBP delegate library.
31163#
31164
31165# Check whether --with-webp was given.
31166if test "${with_webp+set}" = set; then :
31167 withval=$with_webp; with_webp=$withval
31168else
31169 with_webp='yes'
31170fi
31171
31172
31173if test "$with_webp" != 'yes'; then
31174 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31175fi
31176
31177have_webp='no'
31178WEBP_LIBS=''
31179if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031180 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31181$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000031182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31183$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031184 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31185$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000031186 failed=0
31187 passed=0
31188 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31189if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31190 passed=`expr $passed + 1`
31191else
31192 failed=`expr $failed + 1`
31193fi
31194
31195
31196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31197$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31198if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31199 $as_echo_n "(cached) " >&6
31200else
31201 ac_check_lib_save_LIBS=$LIBS
31202LIBS="-lwebp $LIBS"
31203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31204/* end confdefs.h. */
31205
31206/* Override any GCC internal prototype to avoid an error.
31207 Use char because int might match the return type of a GCC
31208 builtin and then its argument prototype would still apply. */
31209#ifdef __cplusplus
31210extern "C"
31211#endif
31212char WebPDecodeRGB ();
31213int
31214main ()
31215{
31216return WebPDecodeRGB ();
31217 ;
31218 return 0;
31219}
31220_ACEOF
31221if ac_fn_c_try_link "$LINENO"; then :
31222 ac_cv_lib_webp_WebPDecodeRGB=yes
31223else
31224 ac_cv_lib_webp_WebPDecodeRGB=no
31225fi
31226rm -f core conftest.err conftest.$ac_objext \
31227 conftest$ac_exeext conftest.$ac_ext
31228LIBS=$ac_check_lib_save_LIBS
31229fi
31230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31231$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31232if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31233 passed=`expr $passed + 1`
31234else
31235 failed=`expr $failed + 1`
31236fi
31237
31238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31239$as_echo_n "checking if WEBP package is complete... " >&6; }
31240 if test $passed -gt 0; then
31241 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031242 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31243$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000031244 have_webp='no (failed tests)'
31245 else
31246 WEBP_LIBS='-lwebp'
31247 LIBS="$WEBP_LIBS $LIBS"
31248
31249$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31250
cristy09b53e12011-10-14 12:47:22 +000031251 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31252$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000031253 have_webp='yes'
31254 fi
31255 else
cristy09b53e12011-10-14 12:47:22 +000031256 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31257$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000031258 fi
31259fi
31260 if test "$have_webp" = 'yes'; then
31261 WEBP_DELEGATE_TRUE=
31262 WEBP_DELEGATE_FALSE='#'
31263else
31264 WEBP_DELEGATE_TRUE='#'
31265 WEBP_DELEGATE_FALSE=
31266fi
31267
31268
31269
31270
31271#
cristy3ed852e2009-09-05 21:47:34 +000031272# Set Windows font directory.
31273#
31274
31275# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031276if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031277 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31278else
31279 with_windows_font_dir=''
31280fi
31281
31282if test "$with_windows_font_dir" != '' ; then
31283 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31284fi
31285
31286
31287#
31288# Check for WMF delegate library.
31289#
31290
31291# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031292if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031293 withval=$with_wmf; with_wmf=$withval
31294else
cristy8d63d1d2010-01-06 20:38:37 +000031295 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000031296fi
31297
31298
31299if test "$with_wmf" != 'yes'; then
31300 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31301fi
31302
31303have_wmf='no'
31304WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000031305if test "$with_wmf" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031306 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31307$as_echo "$as_me: -------------------------------------------------------------" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031309$as_echo_n "checking for WMF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031310 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31311$as_echo "$as_me: " >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031312 failed=0
31313 passed=0
31314 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
31315if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
31316 passed=`expr $passed + 1`
31317else
31318 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000031319fi
31320
31321
glennrp33e524b2011-08-24 17:41:57 +000031322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
31323$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
31324if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031325 $as_echo_n "(cached) " >&6
31326else
31327 ac_check_lib_save_LIBS=$LIBS
glennrp33e524b2011-08-24 17:41:57 +000031328LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031330/* end confdefs.h. */
31331
31332/* Override any GCC internal prototype to avoid an error.
31333 Use char because int might match the return type of a GCC
31334 builtin and then its argument prototype would still apply. */
31335#ifdef __cplusplus
31336extern "C"
31337#endif
glennrp33e524b2011-08-24 17:41:57 +000031338char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000031339int
31340main ()
31341{
glennrp33e524b2011-08-24 17:41:57 +000031342return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000031343 ;
31344 return 0;
31345}
31346_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031347if ac_fn_c_try_link "$LINENO"; then :
glennrp33e524b2011-08-24 17:41:57 +000031348 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000031349else
glennrp33e524b2011-08-24 17:41:57 +000031350 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000031351fi
cristy8b350f62009-11-15 23:12:43 +000031352rm -f core conftest.err conftest.$ac_objext \
31353 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031354LIBS=$ac_check_lib_save_LIBS
31355fi
glennrp33e524b2011-08-24 17:41:57 +000031356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
31357$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
31358if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
31359 passed=`expr $passed + 1`
cristy9243a2d2011-08-22 17:32:32 +000031360else
glennrp33e524b2011-08-24 17:41:57 +000031361 failed=`expr $failed + 1`
cristy9243a2d2011-08-22 17:32:32 +000031362fi
31363
glennrp33e524b2011-08-24 17:41:57 +000031364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31365$as_echo_n "checking if WMF package is complete... " >&6; }
31366 if test $passed -gt 0; then
31367 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031368 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31369$as_echo "$as_me: no -- some components failed test" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031370 have_wmf='no (failed tests)'
31371 else
31372 WMF_LIBS='-lwmf -lwmflite'
31373 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031374
cristy8b350f62009-11-15 23:12:43 +000031375$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031376
cristy09b53e12011-10-14 12:47:22 +000031377 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31378$as_echo "$as_me: yes" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031379 have_wmf='yes'
31380 fi
31381 else
cristy09b53e12011-10-14 12:47:22 +000031382 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31383$as_echo "$as_me: no" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031384 fi
cristy3ed852e2009-09-05 21:47:34 +000031385fi
cristy73bd4a52010-10-05 11:24:23 +000031386 if test "$have_wmf" = 'yes'; then
31387 WMF_DELEGATE_TRUE=
31388 WMF_DELEGATE_FALSE='#'
31389else
31390 WMF_DELEGATE_TRUE='#'
31391 WMF_DELEGATE_FALSE=
31392fi
31393
cristy3ed852e2009-09-05 21:47:34 +000031394
31395
31396
cristy81beccd2011-10-03 18:17:24 +000031397
31398
cristy3ed852e2009-09-05 21:47:34 +000031399#
31400# Check for XML delegate library.
31401#
31402
31403# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031404if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031405 withval=$with_xml; with_xml=$withval
31406else
cristy81beccd2011-10-03 18:17:24 +000031407 with_xml=$have_x
cristy3ed852e2009-09-05 21:47:34 +000031408fi
31409
31410
cristy81beccd2011-10-03 18:17:24 +000031411if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031412 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31413fi
31414
cristy81beccd2011-10-03 18:17:24 +000031415have_xml='no'
31416XML_LIBS=''
31417if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031418 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31419$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31421$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031422 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31423$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031424 PERSIST_LDFLAGS=$LDFLAGS
31425 PERSIST_CPPFLAGS=$CPPFLAGS
31426 xml2_config=''
31427 # Extract the first word of "xml2-config", so it can be a program name with args.
31428set dummy xml2-config; ac_word=$2
31429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31430$as_echo_n "checking for $ac_word... " >&6; }
31431if ${ac_cv_path_xml2_config+:} false; then :
31432 $as_echo_n "(cached) " >&6
31433else
31434 case $xml2_config in
31435 [\\/]* | ?:[\\/]*)
31436 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31437 ;;
31438 *)
31439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31440for as_dir in $PATH
31441do
31442 IFS=$as_save_IFS
31443 test -z "$as_dir" && as_dir=.
31444 for ac_exec_ext in '' $ac_executable_extensions; do
31445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31446 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31448 break 2
31449 fi
31450done
31451 done
31452IFS=$as_save_IFS
31453
31454 ;;
31455esac
31456fi
31457xml2_config=$ac_cv_path_xml2_config
31458if test -n "$xml2_config"; then
31459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31460$as_echo "$xml2_config" >&6; }
31461else
31462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31463$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031464fi
31465
cristy81beccd2011-10-03 18:17:24 +000031466 if test -n "$xml2_config"; then
31467 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31468 # the shared library installed under /usr/lib, whereas the package
31469 # installs itself under $prefix/libxml and $prefix/lib.
31470 xml2_prefix=`xml2-config --prefix`
31471 if test -d "${xml2_prefix}/include/libxml2"; then
31472 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31473 fi
31474 if test "${xml2_prefix}" != '/usr'; then
31475 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31476 fi
31477 fi
31478 failed=0
31479 passed=0
31480 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31481if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31482 passed=`expr $passed + 1`
31483else
31484 failed=`expr $failed + 1`
31485fi
31486
31487
31488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31489$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31490if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31491 $as_echo_n "(cached) " >&6
31492else
31493 ac_check_lib_save_LIBS=$LIBS
31494LIBS="-lxml2 $LIBS"
31495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31496/* end confdefs.h. */
31497
31498/* Override any GCC internal prototype to avoid an error.
31499 Use char because int might match the return type of a GCC
31500 builtin and then its argument prototype would still apply. */
31501#ifdef __cplusplus
31502extern "C"
31503#endif
31504char xmlSAXVersion ();
31505int
31506main ()
31507{
31508return xmlSAXVersion ();
31509 ;
31510 return 0;
31511}
31512_ACEOF
31513if ac_fn_c_try_link "$LINENO"; then :
31514 ac_cv_lib_xml2_xmlSAXVersion=yes
31515else
31516 ac_cv_lib_xml2_xmlSAXVersion=no
31517fi
31518rm -f core conftest.err conftest.$ac_objext \
31519 conftest$ac_exeext conftest.$ac_ext
31520LIBS=$ac_check_lib_save_LIBS
31521fi
31522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
31523$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
31524if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
31525 passed=`expr $passed + 1`
31526else
31527 failed=`expr $failed + 1`
31528fi
31529
31530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
31531$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
31532if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
31533 $as_echo_n "(cached) " >&6
31534else
31535 ac_check_lib_save_LIBS=$LIBS
31536LIBS="-lxml2 $LIBS"
31537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31538/* end confdefs.h. */
31539
31540/* Override any GCC internal prototype to avoid an error.
31541 Use char because int might match the return type of a GCC
31542 builtin and then its argument prototype would still apply. */
31543#ifdef __cplusplus
31544extern "C"
31545#endif
31546char xmlParseChunk ();
31547int
31548main ()
31549{
31550return xmlParseChunk ();
31551 ;
31552 return 0;
31553}
31554_ACEOF
31555if ac_fn_c_try_link "$LINENO"; then :
31556 ac_cv_lib_xml2_xmlParseChunk=yes
31557else
31558 ac_cv_lib_xml2_xmlParseChunk=no
31559fi
31560rm -f core conftest.err conftest.$ac_objext \
31561 conftest$ac_exeext conftest.$ac_ext
31562LIBS=$ac_check_lib_save_LIBS
31563fi
31564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
31565$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
31566if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
31567 passed=`expr $passed + 1`
31568else
31569 failed=`expr $failed + 1`
31570fi
31571
31572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
31573$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
31574if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
31575 $as_echo_n "(cached) " >&6
31576else
31577 ac_check_lib_save_LIBS=$LIBS
31578LIBS="-lxml2 $LIBS"
31579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31580/* end confdefs.h. */
31581
31582/* Override any GCC internal prototype to avoid an error.
31583 Use char because int might match the return type of a GCC
31584 builtin and then its argument prototype would still apply. */
31585#ifdef __cplusplus
31586extern "C"
31587#endif
31588char xmlCreatePushParserCtxt ();
31589int
31590main ()
31591{
31592return xmlCreatePushParserCtxt ();
31593 ;
31594 return 0;
31595}
31596_ACEOF
31597if ac_fn_c_try_link "$LINENO"; then :
31598 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
31599else
31600 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
31601fi
31602rm -f core conftest.err conftest.$ac_objext \
31603 conftest$ac_exeext conftest.$ac_ext
31604LIBS=$ac_check_lib_save_LIBS
31605fi
31606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
31607$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
31608if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
31609 passed=`expr $passed + 1`
31610else
31611 failed=`expr $failed + 1`
31612fi
31613
31614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
31615$as_echo_n "checking if XML package is complete... " >&6; }
31616 if test $passed -gt 0; then
31617 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031618 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31619$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031620 have_xml='no (failed tests)'
31621 LDFLAGS="$PERSIST_LDFLAGS"
31622 CPPFLAGS="$PERSIST_CPPFLAGS"
31623 else
31624 XML_LIBS='-lxml2'
31625 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031626
cristy8b350f62009-11-15 23:12:43 +000031627$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031628
cristy09b53e12011-10-14 12:47:22 +000031629 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31630$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031631 have_xml='yes'
31632 fi
31633 else
cristy09b53e12011-10-14 12:47:22 +000031634 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31635$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031636 fi
31637fi
cristy73bd4a52010-10-05 11:24:23 +000031638 if test "$have_xml" = 'yes'; then
31639 XML_DELEGATE_TRUE=
31640 XML_DELEGATE_FALSE='#'
31641else
31642 XML_DELEGATE_TRUE='#'
31643 XML_DELEGATE_FALSE=
31644fi
31645
cristy3ed852e2009-09-05 21:47:34 +000031646
31647
31648
31649# Substitute compiler name to build/link PerlMagick
31650#
31651
31652
31653#
31654# Configure install Paths
31655#
31656
31657# Subdirectory under lib to place ImageMagick lib files
31658LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31659
31660cat >>confdefs.h <<_ACEOF
31661#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31662_ACEOF
31663
31664
31665# Path to ImageMagick bin directory
31666EXECUTABLE_PATH="${BIN_DIR}"
31667DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31668case "${build_os}" in
31669 mingw* )
31670 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31671 ;;
31672esac
31673
31674cat >>confdefs.h <<_ACEOF
31675#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31676_ACEOF
31677
31678
31679
31680# Path to ImageMagick lib
31681LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31682DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31683case "${build_os}" in
31684 mingw* )
31685 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31686 ;;
31687esac
31688
31689cat >>confdefs.h <<_ACEOF
31690#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31691_ACEOF
31692
31693
31694
cristy3ed852e2009-09-05 21:47:34 +000031695#
31696# Subdirectory under lib to place ImageMagick coder module files
31697CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
31698
31699cat >>confdefs.h <<_ACEOF
31700#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
31701_ACEOF
31702
31703CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
31704DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
31705case "${build_os}" in
31706 mingw* )
31707 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
31708 ;;
31709esac
31710
31711cat >>confdefs.h <<_ACEOF
31712#define CODER_PATH "$DEFINE_CODER_PATH"
31713_ACEOF
31714
31715
31716
31717#
31718# Subdirectory under lib to place ImageMagick filter module files
31719FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
31720
31721cat >>confdefs.h <<_ACEOF
31722#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
31723_ACEOF
31724
31725FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
31726DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
31727case "${build_os}" in
31728 mingw* )
31729 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
31730 ;;
31731esac
31732
31733cat >>confdefs.h <<_ACEOF
31734#define FILTER_PATH "$DEFINE_FILTER_PATH"
31735_ACEOF
31736
31737
31738
31739#
31740# Path to ImageMagick documentation files
cristyd55889c2011-03-27 00:50:24 +000031741DOCUMENTATION_RELATIVE_PATH=""
31742DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
31743DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031744case "${build_os}" in
31745 mingw* )
31746 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
31747 ;;
31748esac
31749
31750cat >>confdefs.h <<_ACEOF
31751#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
31752_ACEOF
31753
31754
31755
cristy3cf8a722011-03-20 23:32:22 +000031756# Subdirectory to place ImageMagick configuration files
cristyba0f1972011-03-28 12:42:52 +000031757CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000031758
31759cat >>confdefs.h <<_ACEOF
31760#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
31761_ACEOF
31762
31763CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31764DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31765case "${build_os}" in
31766 mingw* )
31767 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
31768 ;;
31769esac
31770
31771cat >>confdefs.h <<_ACEOF
31772#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
31773_ACEOF
31774
31775
31776
31777# Subdirectory to place ImageMagick configuration files
cristy4f820712011-04-01 12:35:43 +000031778SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000031779
31780cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000031781#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000031782_ACEOF
31783
cristy4f820712011-04-01 12:35:43 +000031784SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
31785DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031786case "${build_os}" in
31787 mingw* )
cristy4f820712011-04-01 12:35:43 +000031788 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000031789 ;;
31790esac
31791
31792cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000031793#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000031794_ACEOF
31795
31796
31797
31798#
31799# program_transform_name is formed for use in a Makefile, so create a
31800# modified version for use in a shell script.
31801configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
31802
31803# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000031804{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31805$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000031807$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031808{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31809$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031810AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000031811BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000031812BZIPDelegateDefault='bzip2'
31813BrowseDelegateDefault='xdg-open'
31814CGMDecodeDelegateDefault='ralcgm'
31815CatDelegateDefault='cat'
31816DNGDecodeDelegateDefault='ufraw-batch'
31817GVCDecodeDelegateDefault='dot'
31818DVIDecodeDelegateDefault='dvips'
31819EchoDelegateDefault='echo'
31820EditorDelegateDefault='xterm'
31821FIGDecodeDelegateDefault='fig2dev'
31822ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
31823DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
31824MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
31825GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000031826HPGLDecodeDelegateDefault='hp2xx'
31827HTMLDecodeDelegateDefault='html2ps'
31828ILBMDecodeDelegateDefault='ilbmtoppm'
31829ILBMEncodeDelegateDefault='ppmtoilbm'
31830LPDelegateDefault='lp'
31831LPRDelegateDefault='lpr'
31832LZWDecodeDelegateDefault='uncompress'
31833LZWEncodeDelegateDefault='compress'
31834LaunchDelegateDefault='gimp'
31835MANDelegateDefault='groff'
31836MPEGDecodeDelegateDefault='ffmpeg'
31837MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000031838MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000031839MVDelegateDefault='mv'
31840PCLDelegateDefault='pcl6'
31841PGPDecodeDelegateDefault='pgpv'
31842POVDelegateDefault='povray'
31843if test "$native_win32_build" = 'yes'; then
31844 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000031845elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031846 PSDelegateDefault='gsc'
31847else
31848 PSDelegateDefault='gs'
31849fi
31850RLEEncodeDelegateDefault='rawtorle'
31851RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000031852RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000031853SCANDecodeDelegateDefault='scanimage'
31854TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000031855UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000031856WMFDecodeDelegateDefault='wmf2eps'
31857WWWDecodeDelegateDefault='curl'
31858XPSDelegateDefault='gxps'
31859ZipDelegateDefault='gzip'
31860
31861# Search for delegates
31862# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
31863set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031865$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031866if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031867 $as_echo_n "(cached) " >&6
31868else
31869 case $AutotraceDecodeDelegate in
31870 [\\/]* | ?:[\\/]*)
31871 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
31872 ;;
31873 *)
31874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31875for as_dir in $PATH
31876do
31877 IFS=$as_save_IFS
31878 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031879 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31881 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031883 break 2
31884 fi
31885done
cristy8b350f62009-11-15 23:12:43 +000031886 done
cristy3ed852e2009-09-05 21:47:34 +000031887IFS=$as_save_IFS
31888
31889 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
31890 ;;
31891esac
31892fi
31893AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
31894if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031896$as_echo "$AutotraceDecodeDelegate" >&6; }
31897else
cristy8b350f62009-11-15 23:12:43 +000031898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031899$as_echo "no" >&6; }
31900fi
31901
31902
cristy3ed852e2009-09-05 21:47:34 +000031903# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
31904set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031906$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031907if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031908 $as_echo_n "(cached) " >&6
31909else
31910 case $BlenderDecodeDelegate in
31911 [\\/]* | ?:[\\/]*)
31912 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
31913 ;;
31914 *)
31915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31916for as_dir in $PATH
31917do
31918 IFS=$as_save_IFS
31919 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031920 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31922 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031924 break 2
31925 fi
31926done
cristy8b350f62009-11-15 23:12:43 +000031927 done
cristy3ed852e2009-09-05 21:47:34 +000031928IFS=$as_save_IFS
31929
31930 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
31931 ;;
31932esac
31933fi
31934BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
31935if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031937$as_echo "$BlenderDecodeDelegate" >&6; }
31938else
cristy8b350f62009-11-15 23:12:43 +000031939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031940$as_echo "no" >&6; }
31941fi
31942
31943
31944# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
31945set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031947$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031948if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031949 $as_echo_n "(cached) " >&6
31950else
31951 case $BZIPDelegate in
31952 [\\/]* | ?:[\\/]*)
31953 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
31954 ;;
31955 *)
31956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31957for as_dir in $PATH
31958do
31959 IFS=$as_save_IFS
31960 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031961 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31963 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031965 break 2
31966 fi
31967done
cristy8b350f62009-11-15 23:12:43 +000031968 done
cristy3ed852e2009-09-05 21:47:34 +000031969IFS=$as_save_IFS
31970
31971 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
31972 ;;
31973esac
31974fi
31975BZIPDelegate=$ac_cv_path_BZIPDelegate
31976if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031978$as_echo "$BZIPDelegate" >&6; }
31979else
cristy8b350f62009-11-15 23:12:43 +000031980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031981$as_echo "no" >&6; }
31982fi
31983
31984
31985# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
31986set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031988$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031989if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031990 $as_echo_n "(cached) " >&6
31991else
31992 case $BrowseDelegate in
31993 [\\/]* | ?:[\\/]*)
31994 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
31995 ;;
31996 *)
31997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31998for as_dir in $PATH
31999do
32000 IFS=$as_save_IFS
32001 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032002 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32004 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032006 break 2
32007 fi
32008done
cristy8b350f62009-11-15 23:12:43 +000032009 done
cristy3ed852e2009-09-05 21:47:34 +000032010IFS=$as_save_IFS
32011
32012 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
32013 ;;
32014esac
32015fi
32016BrowseDelegate=$ac_cv_path_BrowseDelegate
32017if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032019$as_echo "$BrowseDelegate" >&6; }
32020else
cristy8b350f62009-11-15 23:12:43 +000032021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032022$as_echo "no" >&6; }
32023fi
32024
32025
32026# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32027set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032029$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032030if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032031 $as_echo_n "(cached) " >&6
32032else
32033 case $CGMDecodeDelegate in
32034 [\\/]* | ?:[\\/]*)
32035 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32036 ;;
32037 *)
32038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32039for as_dir in $PATH
32040do
32041 IFS=$as_save_IFS
32042 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032043 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32045 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032047 break 2
32048 fi
32049done
cristy8b350f62009-11-15 23:12:43 +000032050 done
cristy3ed852e2009-09-05 21:47:34 +000032051IFS=$as_save_IFS
32052
32053 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32054 ;;
32055esac
32056fi
32057CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32058if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032060$as_echo "$CGMDecodeDelegate" >&6; }
32061else
cristy8b350f62009-11-15 23:12:43 +000032062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032063$as_echo "no" >&6; }
32064fi
32065
32066
32067# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32068set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032070$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032071if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032072 $as_echo_n "(cached) " >&6
32073else
32074 case $CatDelegate in
32075 [\\/]* | ?:[\\/]*)
32076 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32077 ;;
32078 *)
32079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32080for as_dir in $PATH
32081do
32082 IFS=$as_save_IFS
32083 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032084 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32086 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032088 break 2
32089 fi
32090done
cristy8b350f62009-11-15 23:12:43 +000032091 done
cristy3ed852e2009-09-05 21:47:34 +000032092IFS=$as_save_IFS
32093
32094 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32095 ;;
32096esac
32097fi
32098CatDelegate=$ac_cv_path_CatDelegate
32099if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032101$as_echo "$CatDelegate" >&6; }
32102else
cristy8b350f62009-11-15 23:12:43 +000032103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032104$as_echo "no" >&6; }
32105fi
32106
32107
32108# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32109set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032111$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032112if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032113 $as_echo_n "(cached) " >&6
32114else
32115 case $DNGDecodeDelegate in
32116 [\\/]* | ?:[\\/]*)
32117 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32118 ;;
32119 *)
32120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32121for as_dir in $PATH
32122do
32123 IFS=$as_save_IFS
32124 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032125 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32127 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032129 break 2
32130 fi
32131done
cristy8b350f62009-11-15 23:12:43 +000032132 done
cristy3ed852e2009-09-05 21:47:34 +000032133IFS=$as_save_IFS
32134
32135 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32136 ;;
32137esac
32138fi
32139DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32140if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032142$as_echo "$DNGDecodeDelegate" >&6; }
32143else
cristy8b350f62009-11-15 23:12:43 +000032144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032145$as_echo "no" >&6; }
32146fi
32147
32148
32149# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32150set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032152$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032153if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032154 $as_echo_n "(cached) " >&6
32155else
32156 case $GVCDecodeDelegate in
32157 [\\/]* | ?:[\\/]*)
32158 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32159 ;;
32160 *)
32161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32162for as_dir in $PATH
32163do
32164 IFS=$as_save_IFS
32165 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032166 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32168 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032170 break 2
32171 fi
32172done
cristy8b350f62009-11-15 23:12:43 +000032173 done
cristy3ed852e2009-09-05 21:47:34 +000032174IFS=$as_save_IFS
32175
32176 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32177 ;;
32178esac
32179fi
32180GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32181if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032183$as_echo "$GVCDecodeDelegate" >&6; }
32184else
cristy8b350f62009-11-15 23:12:43 +000032185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032186$as_echo "no" >&6; }
32187fi
32188
32189
32190# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32191set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032193$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032194if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032195 $as_echo_n "(cached) " >&6
32196else
32197 case $DVIDecodeDelegate in
32198 [\\/]* | ?:[\\/]*)
32199 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32200 ;;
32201 *)
32202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32203for as_dir in $PATH
32204do
32205 IFS=$as_save_IFS
32206 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032207 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32209 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032211 break 2
32212 fi
32213done
cristy8b350f62009-11-15 23:12:43 +000032214 done
cristy3ed852e2009-09-05 21:47:34 +000032215IFS=$as_save_IFS
32216
32217 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32218 ;;
32219esac
32220fi
32221DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32222if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032224$as_echo "$DVIDecodeDelegate" >&6; }
32225else
cristy8b350f62009-11-15 23:12:43 +000032226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032227$as_echo "no" >&6; }
32228fi
32229
32230
32231# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32232set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032234$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032235if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032236 $as_echo_n "(cached) " >&6
32237else
32238 case $EchoDelegate in
32239 [\\/]* | ?:[\\/]*)
32240 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32241 ;;
32242 *)
32243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32244for as_dir in $PATH
32245do
32246 IFS=$as_save_IFS
32247 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032248 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32250 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032252 break 2
32253 fi
32254done
cristy8b350f62009-11-15 23:12:43 +000032255 done
cristy3ed852e2009-09-05 21:47:34 +000032256IFS=$as_save_IFS
32257
32258 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32259 ;;
32260esac
32261fi
32262EchoDelegate=$ac_cv_path_EchoDelegate
32263if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032265$as_echo "$EchoDelegate" >&6; }
32266else
cristy8b350f62009-11-15 23:12:43 +000032267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032268$as_echo "no" >&6; }
32269fi
32270
32271
32272# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32273set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032275$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032276if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032277 $as_echo_n "(cached) " >&6
32278else
32279 case $EditorDelegate in
32280 [\\/]* | ?:[\\/]*)
32281 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32282 ;;
32283 *)
32284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32285for as_dir in $PATH
32286do
32287 IFS=$as_save_IFS
32288 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032289 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32291 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032293 break 2
32294 fi
32295done
cristy8b350f62009-11-15 23:12:43 +000032296 done
cristy3ed852e2009-09-05 21:47:34 +000032297IFS=$as_save_IFS
32298
32299 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32300 ;;
32301esac
32302fi
32303EditorDelegate=$ac_cv_path_EditorDelegate
32304if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032306$as_echo "$EditorDelegate" >&6; }
32307else
cristy8b350f62009-11-15 23:12:43 +000032308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032309$as_echo "no" >&6; }
32310fi
32311
32312
32313# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32314set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032316$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032317if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032318 $as_echo_n "(cached) " >&6
32319else
32320 case $FIGDecodeDelegate in
32321 [\\/]* | ?:[\\/]*)
32322 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32323 ;;
32324 *)
32325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32326for as_dir in $PATH
32327do
32328 IFS=$as_save_IFS
32329 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032330 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32332 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032334 break 2
32335 fi
32336done
cristy8b350f62009-11-15 23:12:43 +000032337 done
cristy3ed852e2009-09-05 21:47:34 +000032338IFS=$as_save_IFS
32339
32340 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32341 ;;
32342esac
32343fi
32344FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32345if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032347$as_echo "$FIGDecodeDelegate" >&6; }
32348else
cristy8b350f62009-11-15 23:12:43 +000032349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032350$as_echo "no" >&6; }
32351fi
32352
32353
32354# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32355set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032357$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032358if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032359 $as_echo_n "(cached) " >&6
32360else
32361 case $ConvertDelegate in
32362 [\\/]* | ?:[\\/]*)
32363 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32364 ;;
32365 *)
32366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32367for as_dir in $PATH
32368do
32369 IFS=$as_save_IFS
32370 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032371 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32373 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032375 break 2
32376 fi
32377done
cristy8b350f62009-11-15 23:12:43 +000032378 done
cristy3ed852e2009-09-05 21:47:34 +000032379IFS=$as_save_IFS
32380
32381 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32382 ;;
32383esac
32384fi
32385ConvertDelegate=$ac_cv_path_ConvertDelegate
32386if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032388$as_echo "$ConvertDelegate" >&6; }
32389else
cristy8b350f62009-11-15 23:12:43 +000032390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032391$as_echo "no" >&6; }
32392fi
32393
32394
32395# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32396set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032398$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032399if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032400 $as_echo_n "(cached) " >&6
32401else
32402 case $DisplayDelegate in
32403 [\\/]* | ?:[\\/]*)
32404 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32405 ;;
32406 *)
32407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32408for as_dir in $PATH
32409do
32410 IFS=$as_save_IFS
32411 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032412 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32414 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032416 break 2
32417 fi
32418done
cristy8b350f62009-11-15 23:12:43 +000032419 done
cristy3ed852e2009-09-05 21:47:34 +000032420IFS=$as_save_IFS
32421
32422 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32423 ;;
32424esac
32425fi
32426DisplayDelegate=$ac_cv_path_DisplayDelegate
32427if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032429$as_echo "$DisplayDelegate" >&6; }
32430else
cristy8b350f62009-11-15 23:12:43 +000032431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032432$as_echo "no" >&6; }
32433fi
32434
32435
32436# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32437set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032439$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032440if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032441 $as_echo_n "(cached) " >&6
32442else
32443 case $MogrifyDelegate in
32444 [\\/]* | ?:[\\/]*)
32445 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32446 ;;
32447 *)
32448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32449for as_dir in $PATH
32450do
32451 IFS=$as_save_IFS
32452 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032453 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32455 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032457 break 2
32458 fi
32459done
cristy8b350f62009-11-15 23:12:43 +000032460 done
cristy3ed852e2009-09-05 21:47:34 +000032461IFS=$as_save_IFS
32462
32463 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32464 ;;
32465esac
32466fi
32467MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32468if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032470$as_echo "$MogrifyDelegate" >&6; }
32471else
cristy8b350f62009-11-15 23:12:43 +000032472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032473$as_echo "no" >&6; }
32474fi
32475
32476
32477# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32478set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032480$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032481if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032482 $as_echo_n "(cached) " >&6
32483else
32484 case $GnuplotDecodeDelegate in
32485 [\\/]* | ?:[\\/]*)
32486 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32487 ;;
32488 *)
32489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32490for as_dir in $PATH
32491do
32492 IFS=$as_save_IFS
32493 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032494 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32496 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032498 break 2
32499 fi
32500done
cristy8b350f62009-11-15 23:12:43 +000032501 done
cristy3ed852e2009-09-05 21:47:34 +000032502IFS=$as_save_IFS
32503
32504 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32505 ;;
32506esac
32507fi
32508GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32509if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032511$as_echo "$GnuplotDecodeDelegate" >&6; }
32512else
cristy8b350f62009-11-15 23:12:43 +000032513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032514$as_echo "no" >&6; }
32515fi
32516
32517
cristy3ed852e2009-09-05 21:47:34 +000032518# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32519set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032521$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032522if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032523 $as_echo_n "(cached) " >&6
32524else
32525 case $HPGLDecodeDelegate in
32526 [\\/]* | ?:[\\/]*)
32527 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32528 ;;
32529 *)
32530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32531for as_dir in $PATH
32532do
32533 IFS=$as_save_IFS
32534 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032535 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32537 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032539 break 2
32540 fi
32541done
cristy8b350f62009-11-15 23:12:43 +000032542 done
cristy3ed852e2009-09-05 21:47:34 +000032543IFS=$as_save_IFS
32544
32545 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32546 ;;
32547esac
32548fi
32549HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32550if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032552$as_echo "$HPGLDecodeDelegate" >&6; }
32553else
cristy8b350f62009-11-15 23:12:43 +000032554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032555$as_echo "no" >&6; }
32556fi
32557
32558
32559# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32560set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032562$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032563if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032564 $as_echo_n "(cached) " >&6
32565else
32566 case $HTMLDecodeDelegate in
32567 [\\/]* | ?:[\\/]*)
32568 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32569 ;;
32570 *)
32571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32572for as_dir in $PATH
32573do
32574 IFS=$as_save_IFS
32575 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032576 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32578 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032580 break 2
32581 fi
32582done
cristy8b350f62009-11-15 23:12:43 +000032583 done
cristy3ed852e2009-09-05 21:47:34 +000032584IFS=$as_save_IFS
32585
32586 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32587 ;;
32588esac
32589fi
32590HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32591if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032593$as_echo "$HTMLDecodeDelegate" >&6; }
32594else
cristy8b350f62009-11-15 23:12:43 +000032595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032596$as_echo "no" >&6; }
32597fi
32598
32599
32600# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32601set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032603$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032604if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032605 $as_echo_n "(cached) " >&6
32606else
32607 case $ILBMDecodeDelegate in
32608 [\\/]* | ?:[\\/]*)
32609 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32610 ;;
32611 *)
32612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32613for as_dir in $PATH
32614do
32615 IFS=$as_save_IFS
32616 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032617 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32619 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032621 break 2
32622 fi
32623done
cristy8b350f62009-11-15 23:12:43 +000032624 done
cristy3ed852e2009-09-05 21:47:34 +000032625IFS=$as_save_IFS
32626
32627 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32628 ;;
32629esac
32630fi
32631ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32632if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032634$as_echo "$ILBMDecodeDelegate" >&6; }
32635else
cristy8b350f62009-11-15 23:12:43 +000032636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032637$as_echo "no" >&6; }
32638fi
32639
32640
32641# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32642set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032644$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032645if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032646 $as_echo_n "(cached) " >&6
32647else
32648 case $ILBMEncodeDelegate in
32649 [\\/]* | ?:[\\/]*)
32650 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32651 ;;
32652 *)
32653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32654for as_dir in $PATH
32655do
32656 IFS=$as_save_IFS
32657 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032658 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32660 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032662 break 2
32663 fi
32664done
cristy8b350f62009-11-15 23:12:43 +000032665 done
cristy3ed852e2009-09-05 21:47:34 +000032666IFS=$as_save_IFS
32667
32668 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32669 ;;
32670esac
32671fi
32672ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32673if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032675$as_echo "$ILBMEncodeDelegate" >&6; }
32676else
cristy8b350f62009-11-15 23:12:43 +000032677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032678$as_echo "no" >&6; }
32679fi
32680
32681
32682# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
32683set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032685$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032686if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032687 $as_echo_n "(cached) " >&6
32688else
32689 case $LPDelegate in
32690 [\\/]* | ?:[\\/]*)
32691 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
32692 ;;
32693 *)
32694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32695for as_dir in $PATH
32696do
32697 IFS=$as_save_IFS
32698 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032699 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32701 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032703 break 2
32704 fi
32705done
cristy8b350f62009-11-15 23:12:43 +000032706 done
cristy3ed852e2009-09-05 21:47:34 +000032707IFS=$as_save_IFS
32708
32709 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
32710 ;;
32711esac
32712fi
32713LPDelegate=$ac_cv_path_LPDelegate
32714if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032716$as_echo "$LPDelegate" >&6; }
32717else
cristy8b350f62009-11-15 23:12:43 +000032718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032719$as_echo "no" >&6; }
32720fi
32721
32722
32723# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
32724set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032726$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032727if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032728 $as_echo_n "(cached) " >&6
32729else
32730 case $LPRDelegate in
32731 [\\/]* | ?:[\\/]*)
32732 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
32733 ;;
32734 *)
32735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32736for as_dir in $PATH
32737do
32738 IFS=$as_save_IFS
32739 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032740 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32742 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032744 break 2
32745 fi
32746done
cristy8b350f62009-11-15 23:12:43 +000032747 done
cristy3ed852e2009-09-05 21:47:34 +000032748IFS=$as_save_IFS
32749
32750 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
32751 ;;
32752esac
32753fi
32754LPRDelegate=$ac_cv_path_LPRDelegate
32755if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032757$as_echo "$LPRDelegate" >&6; }
32758else
cristy8b350f62009-11-15 23:12:43 +000032759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032760$as_echo "no" >&6; }
32761fi
32762
32763
32764# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
32765set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032767$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032768if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032769 $as_echo_n "(cached) " >&6
32770else
32771 case $LZWDecodeDelegate in
32772 [\\/]* | ?:[\\/]*)
32773 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
32774 ;;
32775 *)
32776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32777for as_dir in $PATH
32778do
32779 IFS=$as_save_IFS
32780 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032781 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32783 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032785 break 2
32786 fi
32787done
cristy8b350f62009-11-15 23:12:43 +000032788 done
cristy3ed852e2009-09-05 21:47:34 +000032789IFS=$as_save_IFS
32790
32791 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
32792 ;;
32793esac
32794fi
32795LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
32796if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032798$as_echo "$LZWDecodeDelegate" >&6; }
32799else
cristy8b350f62009-11-15 23:12:43 +000032800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032801$as_echo "no" >&6; }
32802fi
32803
32804
32805# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
32806set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032808$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032809if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032810 $as_echo_n "(cached) " >&6
32811else
32812 case $LZWEncodeDelegate in
32813 [\\/]* | ?:[\\/]*)
32814 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
32815 ;;
32816 *)
32817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32818for as_dir in $PATH
32819do
32820 IFS=$as_save_IFS
32821 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032822 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32824 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032826 break 2
32827 fi
32828done
cristy8b350f62009-11-15 23:12:43 +000032829 done
cristy3ed852e2009-09-05 21:47:34 +000032830IFS=$as_save_IFS
32831
32832 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
32833 ;;
32834esac
32835fi
32836LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
32837if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032839$as_echo "$LZWEncodeDelegate" >&6; }
32840else
cristy8b350f62009-11-15 23:12:43 +000032841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032842$as_echo "no" >&6; }
32843fi
32844
32845
32846# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
32847set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032849$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032850if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032851 $as_echo_n "(cached) " >&6
32852else
32853 case $LaunchDelegate in
32854 [\\/]* | ?:[\\/]*)
32855 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
32856 ;;
32857 *)
32858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32859for as_dir in $PATH
32860do
32861 IFS=$as_save_IFS
32862 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032863 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32865 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032867 break 2
32868 fi
32869done
cristy8b350f62009-11-15 23:12:43 +000032870 done
cristy3ed852e2009-09-05 21:47:34 +000032871IFS=$as_save_IFS
32872
32873 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
32874 ;;
32875esac
32876fi
32877LaunchDelegate=$ac_cv_path_LaunchDelegate
32878if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032880$as_echo "$LaunchDelegate" >&6; }
32881else
cristy8b350f62009-11-15 23:12:43 +000032882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032883$as_echo "no" >&6; }
32884fi
32885
32886
32887# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
32888set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032890$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032891if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032892 $as_echo_n "(cached) " >&6
32893else
32894 case $MANDelegate in
32895 [\\/]* | ?:[\\/]*)
32896 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
32897 ;;
32898 *)
32899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32900for as_dir in $PATH
32901do
32902 IFS=$as_save_IFS
32903 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032904 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32906 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032908 break 2
32909 fi
32910done
cristy8b350f62009-11-15 23:12:43 +000032911 done
cristy3ed852e2009-09-05 21:47:34 +000032912IFS=$as_save_IFS
32913
32914 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
32915 ;;
32916esac
32917fi
32918MANDelegate=$ac_cv_path_MANDelegate
32919if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032921$as_echo "$MANDelegate" >&6; }
32922else
cristy8b350f62009-11-15 23:12:43 +000032923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032924$as_echo "no" >&6; }
32925fi
32926
32927
32928# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
32929set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032931$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032932if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032933 $as_echo_n "(cached) " >&6
32934else
32935 case $MPEGDecodeDelegate in
32936 [\\/]* | ?:[\\/]*)
32937 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
32938 ;;
32939 *)
32940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32941for as_dir in $PATH
32942do
32943 IFS=$as_save_IFS
32944 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032945 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32947 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032949 break 2
32950 fi
32951done
cristy8b350f62009-11-15 23:12:43 +000032952 done
cristy3ed852e2009-09-05 21:47:34 +000032953IFS=$as_save_IFS
32954
32955 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
32956 ;;
32957esac
32958fi
32959MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
32960if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032962$as_echo "$MPEGDecodeDelegate" >&6; }
32963else
cristy8b350f62009-11-15 23:12:43 +000032964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032965$as_echo "no" >&6; }
32966fi
32967
32968
32969# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
32970set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032972$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032973if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032974 $as_echo_n "(cached) " >&6
32975else
32976 case $MPEGEncodeDelegate in
32977 [\\/]* | ?:[\\/]*)
32978 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
32979 ;;
32980 *)
32981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32982for as_dir in $PATH
32983do
32984 IFS=$as_save_IFS
32985 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032986 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32988 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032990 break 2
32991 fi
32992done
cristy8b350f62009-11-15 23:12:43 +000032993 done
cristy3ed852e2009-09-05 21:47:34 +000032994IFS=$as_save_IFS
32995
32996 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
32997 ;;
32998esac
32999fi
33000MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33001if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033003$as_echo "$MPEGEncodeDelegate" >&6; }
33004else
cristy8b350f62009-11-15 23:12:43 +000033005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033006$as_echo "no" >&6; }
33007fi
33008
33009
cristy935c86e2010-06-05 23:50:07 +000033010# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33011set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33013$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033014if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033015 $as_echo_n "(cached) " >&6
33016else
33017 case $MrSIDDecodeDelegate in
33018 [\\/]* | ?:[\\/]*)
33019 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33020 ;;
33021 *)
33022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33023for as_dir in $PATH
33024do
33025 IFS=$as_save_IFS
33026 test -z "$as_dir" && as_dir=.
33027 for ac_exec_ext in '' $ac_executable_extensions; do
33028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33029 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33031 break 2
33032 fi
33033done
33034 done
33035IFS=$as_save_IFS
33036
33037 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33038 ;;
33039esac
33040fi
33041MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33042if test -n "$MrSIDDecodeDelegate"; then
33043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33044$as_echo "$MrSIDDecodeDelegate" >&6; }
33045else
33046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33047$as_echo "no" >&6; }
33048fi
33049
33050
cristy3ed852e2009-09-05 21:47:34 +000033051# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33052set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033054$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033055if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033056 $as_echo_n "(cached) " >&6
33057else
33058 case $MVDelegate in
33059 [\\/]* | ?:[\\/]*)
33060 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33061 ;;
33062 *)
33063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33064for as_dir in $PATH
33065do
33066 IFS=$as_save_IFS
33067 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033068 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33070 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033072 break 2
33073 fi
33074done
cristy8b350f62009-11-15 23:12:43 +000033075 done
cristy3ed852e2009-09-05 21:47:34 +000033076IFS=$as_save_IFS
33077
33078 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33079 ;;
33080esac
33081fi
33082MVDelegate=$ac_cv_path_MVDelegate
33083if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033085$as_echo "$MVDelegate" >&6; }
33086else
cristy8b350f62009-11-15 23:12:43 +000033087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033088$as_echo "no" >&6; }
33089fi
33090
33091
33092# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33093set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033095$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033096if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033097 $as_echo_n "(cached) " >&6
33098else
33099 case $PCLDelegate in
33100 [\\/]* | ?:[\\/]*)
33101 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33102 ;;
33103 *)
33104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33105for as_dir in $PATH
33106do
33107 IFS=$as_save_IFS
33108 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033109 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33111 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033113 break 2
33114 fi
33115done
cristy8b350f62009-11-15 23:12:43 +000033116 done
cristy3ed852e2009-09-05 21:47:34 +000033117IFS=$as_save_IFS
33118
33119 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33120 ;;
33121esac
33122fi
33123PCLDelegate=$ac_cv_path_PCLDelegate
33124if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033126$as_echo "$PCLDelegate" >&6; }
33127else
cristy8b350f62009-11-15 23:12:43 +000033128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033129$as_echo "no" >&6; }
33130fi
33131
33132
33133# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33134set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033136$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033137if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033138 $as_echo_n "(cached) " >&6
33139else
33140 case $PGPDecodeDelegate in
33141 [\\/]* | ?:[\\/]*)
33142 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33143 ;;
33144 *)
33145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33146for as_dir in $PATH
33147do
33148 IFS=$as_save_IFS
33149 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033150 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33152 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033154 break 2
33155 fi
33156done
cristy8b350f62009-11-15 23:12:43 +000033157 done
cristy3ed852e2009-09-05 21:47:34 +000033158IFS=$as_save_IFS
33159
33160 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33161 ;;
33162esac
33163fi
33164PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33165if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033167$as_echo "$PGPDecodeDelegate" >&6; }
33168else
cristy8b350f62009-11-15 23:12:43 +000033169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033170$as_echo "no" >&6; }
33171fi
33172
33173
33174# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33175set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033177$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033178if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033179 $as_echo_n "(cached) " >&6
33180else
33181 case $POVDelegate in
33182 [\\/]* | ?:[\\/]*)
33183 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33184 ;;
33185 *)
33186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33187for as_dir in $PATH
33188do
33189 IFS=$as_save_IFS
33190 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033191 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33193 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033195 break 2
33196 fi
33197done
cristy8b350f62009-11-15 23:12:43 +000033198 done
cristy3ed852e2009-09-05 21:47:34 +000033199IFS=$as_save_IFS
33200
33201 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33202 ;;
33203esac
33204fi
33205POVDelegate=$ac_cv_path_POVDelegate
33206if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033208$as_echo "$POVDelegate" >&6; }
33209else
cristy8b350f62009-11-15 23:12:43 +000033210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033211$as_echo "no" >&6; }
33212fi
33213
33214
33215for ac_prog in gsx gsc "$PSDelegateDefault"
33216do
33217 # Extract the first word of "$ac_prog", so it can be a program name with args.
33218set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033220$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033221if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033222 $as_echo_n "(cached) " >&6
33223else
33224 case $PSDelegate in
33225 [\\/]* | ?:[\\/]*)
33226 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33227 ;;
33228 *)
33229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33230for as_dir in $PATH
33231do
33232 IFS=$as_save_IFS
33233 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033234 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33236 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033238 break 2
33239 fi
33240done
cristy8b350f62009-11-15 23:12:43 +000033241 done
cristy3ed852e2009-09-05 21:47:34 +000033242IFS=$as_save_IFS
33243
33244 ;;
33245esac
33246fi
33247PSDelegate=$ac_cv_path_PSDelegate
33248if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033250$as_echo "$PSDelegate" >&6; }
33251else
cristy8b350f62009-11-15 23:12:43 +000033252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033253$as_echo "no" >&6; }
33254fi
33255
33256
33257 test -n "$PSDelegate" && break
33258done
33259test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33260
33261# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33262set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033264$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033265if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033266 $as_echo_n "(cached) " >&6
33267else
33268 case $RLEEncodeDelegate in
33269 [\\/]* | ?:[\\/]*)
33270 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33271 ;;
33272 *)
33273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33274for as_dir in $PATH
33275do
33276 IFS=$as_save_IFS
33277 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033278 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33280 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033282 break 2
33283 fi
33284done
cristy8b350f62009-11-15 23:12:43 +000033285 done
cristy3ed852e2009-09-05 21:47:34 +000033286IFS=$as_save_IFS
33287
33288 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33289 ;;
33290esac
33291fi
33292RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33293if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033295$as_echo "$RLEEncodeDelegate" >&6; }
33296else
cristy8b350f62009-11-15 23:12:43 +000033297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033298$as_echo "no" >&6; }
33299fi
33300
33301
33302# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33303set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033305$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033306if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033307 $as_echo_n "(cached) " >&6
33308else
33309 case $RMDelegate in
33310 [\\/]* | ?:[\\/]*)
33311 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33312 ;;
33313 *)
33314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33315for as_dir in $PATH
33316do
33317 IFS=$as_save_IFS
33318 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033319 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33321 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033323 break 2
33324 fi
33325done
cristy8b350f62009-11-15 23:12:43 +000033326 done
cristy3ed852e2009-09-05 21:47:34 +000033327IFS=$as_save_IFS
33328
33329 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33330 ;;
33331esac
33332fi
33333RMDelegate=$ac_cv_path_RMDelegate
33334if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033336$as_echo "$RMDelegate" >&6; }
33337else
cristy8b350f62009-11-15 23:12:43 +000033338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033339$as_echo "no" >&6; }
33340fi
33341
33342
cristy4689cf02010-02-17 21:15:45 +000033343# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33344set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33346$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033347if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033348 $as_echo_n "(cached) " >&6
33349else
33350 case $RSVGDecodeDelegate in
33351 [\\/]* | ?:[\\/]*)
33352 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33353 ;;
33354 *)
33355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33356for as_dir in $PATH
33357do
33358 IFS=$as_save_IFS
33359 test -z "$as_dir" && as_dir=.
33360 for ac_exec_ext in '' $ac_executable_extensions; do
33361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33362 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33364 break 2
33365 fi
33366done
33367 done
33368IFS=$as_save_IFS
33369
33370 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33371 ;;
33372esac
33373fi
33374RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33375if test -n "$RSVGDecodeDelegate"; then
33376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33377$as_echo "$RSVGDecodeDelegate" >&6; }
33378else
33379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33380$as_echo "no" >&6; }
33381fi
33382
33383
cristy3ed852e2009-09-05 21:47:34 +000033384# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33385set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033387$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033388if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033389 $as_echo_n "(cached) " >&6
33390else
33391 case $SCANDecodeDelegate in
33392 [\\/]* | ?:[\\/]*)
33393 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33394 ;;
33395 *)
33396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33397for as_dir in $PATH
33398do
33399 IFS=$as_save_IFS
33400 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033401 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33403 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033405 break 2
33406 fi
33407done
cristy8b350f62009-11-15 23:12:43 +000033408 done
cristy3ed852e2009-09-05 21:47:34 +000033409IFS=$as_save_IFS
33410
33411 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33412 ;;
33413esac
33414fi
33415SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33416if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033418$as_echo "$SCANDecodeDelegate" >&6; }
33419else
cristy8b350f62009-11-15 23:12:43 +000033420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033421$as_echo "no" >&6; }
33422fi
33423
33424
33425# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33426set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033428$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033429if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033430 $as_echo_n "(cached) " >&6
33431else
33432 case $TXTDelegate in
33433 [\\/]* | ?:[\\/]*)
33434 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33435 ;;
33436 *)
33437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33438for as_dir in $PATH
33439do
33440 IFS=$as_save_IFS
33441 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033442 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33444 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033446 break 2
33447 fi
33448done
cristy8b350f62009-11-15 23:12:43 +000033449 done
cristy3ed852e2009-09-05 21:47:34 +000033450IFS=$as_save_IFS
33451
33452 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33453 ;;
33454esac
33455fi
33456TXTDelegate=$ac_cv_path_TXTDelegate
33457if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033459$as_echo "$TXTDelegate" >&6; }
33460else
cristy8b350f62009-11-15 23:12:43 +000033461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033462$as_echo "no" >&6; }
33463fi
33464
33465
cristy5ac9ac82010-07-29 13:24:24 +000033466# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33467set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33469$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033470if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000033471 $as_echo_n "(cached) " >&6
33472else
33473 case $UniconvertorDelegate in
33474 [\\/]* | ?:[\\/]*)
33475 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33476 ;;
33477 *)
33478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33479for as_dir in $PATH
33480do
33481 IFS=$as_save_IFS
33482 test -z "$as_dir" && as_dir=.
33483 for ac_exec_ext in '' $ac_executable_extensions; do
33484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33485 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33487 break 2
33488 fi
33489done
33490 done
33491IFS=$as_save_IFS
33492
33493 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33494 ;;
33495esac
33496fi
33497UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33498if test -n "$UniconvertorDelegate"; then
33499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33500$as_echo "$UniconvertorDelegate" >&6; }
33501else
33502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33503$as_echo "no" >&6; }
33504fi
33505
33506
cristy3ed852e2009-09-05 21:47:34 +000033507# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33508set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033510$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033511if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033512 $as_echo_n "(cached) " >&6
33513else
33514 case $WMFDecodeDelegate in
33515 [\\/]* | ?:[\\/]*)
33516 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33517 ;;
33518 *)
33519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33520for as_dir in $PATH
33521do
33522 IFS=$as_save_IFS
33523 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033524 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33526 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033528 break 2
33529 fi
33530done
cristy8b350f62009-11-15 23:12:43 +000033531 done
cristy3ed852e2009-09-05 21:47:34 +000033532IFS=$as_save_IFS
33533
33534 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33535 ;;
33536esac
33537fi
33538WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33539if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033541$as_echo "$WMFDecodeDelegate" >&6; }
33542else
cristy8b350f62009-11-15 23:12:43 +000033543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033544$as_echo "no" >&6; }
33545fi
33546
33547
33548# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33549set dummy "$WWWDecodeDelegateDefault"; 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_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033553 $as_echo_n "(cached) " >&6
33554else
33555 case $WWWDecodeDelegate in
33556 [\\/]* | ?:[\\/]*)
33557 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33558 ;;
33559 *)
33560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33561for as_dir in $PATH
33562do
33563 IFS=$as_save_IFS
33564 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033565 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33567 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033569 break 2
33570 fi
33571done
cristy8b350f62009-11-15 23:12:43 +000033572 done
cristy3ed852e2009-09-05 21:47:34 +000033573IFS=$as_save_IFS
33574
33575 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33576 ;;
33577esac
33578fi
33579WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33580if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033582$as_echo "$WWWDecodeDelegate" >&6; }
33583else
cristy8b350f62009-11-15 23:12:43 +000033584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033585$as_echo "no" >&6; }
33586fi
33587
33588
33589# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33590set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033592$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033593if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033594 $as_echo_n "(cached) " >&6
33595else
33596 case $XPSDelegate in
33597 [\\/]* | ?:[\\/]*)
33598 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33599 ;;
33600 *)
33601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33602for as_dir in $PATH
33603do
33604 IFS=$as_save_IFS
33605 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033606 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33608 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033610 break 2
33611 fi
33612done
cristy8b350f62009-11-15 23:12:43 +000033613 done
cristy3ed852e2009-09-05 21:47:34 +000033614IFS=$as_save_IFS
33615
33616 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33617 ;;
33618esac
33619fi
33620XPSDelegate=$ac_cv_path_XPSDelegate
33621if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033623$as_echo "$XPSDelegate" >&6; }
33624else
cristy8b350f62009-11-15 23:12:43 +000033625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033626$as_echo "no" >&6; }
33627fi
33628
33629
33630# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33631set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033633$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033634if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033635 $as_echo_n "(cached) " >&6
33636else
33637 case $ZipDelegate in
33638 [\\/]* | ?:[\\/]*)
33639 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33640 ;;
33641 *)
33642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33643for as_dir in $PATH
33644do
33645 IFS=$as_save_IFS
33646 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033647 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33649 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033651 break 2
33652 fi
33653done
cristy8b350f62009-11-15 23:12:43 +000033654 done
cristy3ed852e2009-09-05 21:47:34 +000033655IFS=$as_save_IFS
33656
33657 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33658 ;;
33659esac
33660fi
33661ZipDelegate=$ac_cv_path_ZipDelegate
33662if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033664$as_echo "$ZipDelegate" >&6; }
33665else
cristy8b350f62009-11-15 23:12:43 +000033666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033667$as_echo "no" >&6; }
33668fi
33669
33670
33671
33672# Prefer lpr to lp; lp needs options tacked on.
33673if test "$LPRDelegate" != no; then
33674 PrintDelegate="$LPRDelegate"
33675else
33676 PrintDelegate="$LPDelegate -c -s"
33677fi
33678
33679
33680# Installed ImageMagick utiltity paths
33681ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33682DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33683MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33684
33685# Set delegate booleans
33686have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33687have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33688have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33689have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33690have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000033691have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033692have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
33693have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033694have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
33695have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
33696
33697#
33698# Test for font directories
33699#
33700type_include_files=''
33701
cristy430a7312010-01-21 20:44:04 +000033702# Dejavu fonts.
33703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
33704$as_echo_n "checking for Dejavu fonts directory... " >&6; }
33705dejavu_font_dir=''
33706if test "${with_dejavu_font_dir}" != 'default'; then
33707 dejavu_font_dir="${with_dejavu_font_dir}/"
33708else
33709 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
33710 if test -f "${font_dir}DejaVuSerif.ttf"; then
33711 dejavu_font_dir="${font_dir}"
33712 break 1
33713 fi
33714 done
33715fi
33716if test "${dejavu_font_dir}x" != 'x'; then
33717 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000033718 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
33719$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000033720else
cristy09b53e12011-10-14 12:47:22 +000033721 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
33722$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000033723fi
33724
33725
cristy3ed852e2009-09-05 21:47:34 +000033726# Windows
33727windows_font_dir=''
33728if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
33729 windows_font_dir="${with_windows_font_dir}/"
33730fi
cristy430a7312010-01-21 20:44:04 +000033731if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033732 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
33733 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
33734 fi
33735 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
33736 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
33737 fi
33738 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
33739 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
33740 fi
33741fi
cristy430a7312010-01-21 20:44:04 +000033742if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033743 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
33744fi
33745
33746
33747# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000033748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000033749$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
33750ghostscript_font_dir=''
33751if test "${with_gs_font_dir}" != 'default'; then
33752 ghostscript_font_dir="${with_gs_font_dir}/"
33753else
33754 if test "${native_win32_build}" = 'yes'; then
33755 # Native Windows Build
33756 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
33757 if test -f "${font_dir}a010013l.pfb"; then
33758 ghostscript_font_dir="$font_dir"
33759 break 1
33760 fi
33761 done
33762 if test "${PSDelegate}" != 'gswin32c'; then
33763 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
33764 fi
33765 else
33766 # Linux / Mac OS X / Unix Build
33767 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
33768 if test -f "${font_dir}a010013l.pfb"; then
33769 ghostscript_font_dir="${font_dir}"
33770 break 1
33771 fi
33772 done
33773 if test "${ghostscript_font_dir}x" = 'x'; then
33774 if test "$PSDelegate" != 'gs'; then
33775 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
33776 fi
33777 fi
33778 fi
33779fi
33780if test "${ghostscript_font_dir}x" != 'x'; then
33781 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000033782 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
33783$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000033784else
cristy09b53e12011-10-14 12:47:22 +000033785 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
33786$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000033787fi
33788
33789case "${build_os}" in
33790 mingw* )
33791 PSDelegate=`$WinPathScript "$PSDelegate" 1`
33792 ;;
33793esac
33794
33795
33796
33797#
33798# Handle case where user doesn't want frozen paths
33799#
33800if test "$with_frozenpaths" != 'yes'; then
33801 # Re-set delegate definitions to default (no paths)
33802 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033803 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
33804 BZIPDelegate="$BZIPDelegateDefault"
33805 BrowseDelegate="$BrowseDelegateDefault"
33806 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
33807 CatDelegate="$CatDelegateDefault"
33808 ConvertDelegate="$ConvertDelegateDefault"
33809 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
33810 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
33811 EchoDelegate="$EchoDelegateDefault"
33812 EditorDelegate="$EditorDelegateDefault"
33813 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
33814 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
33815 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
33816 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
33817 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
33818 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
33819 LPDelegate="$LPDelegateDefault"
33820 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
33821 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
33822 LaunchDelegate="$LaunchDelegateDefault"
33823 MANDelegate="$MANDelegateDefault"
33824 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
33825 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033826 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000033827 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
33828 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033829 PCLDelegate="$PCLDelegateDefault"
33830 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
33831 POVDelegate="$POVDelegateDefault"
33832 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033833 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
33834 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000033835 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033836 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
33837 ShowImageDelegate="$ShowImageDelegateDefault"
33838 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000033839 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000033840 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
33841 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
33842 XPSDelegate="$XPSDelegateDefault"
33843 ZipDelegate="$ZipDelegateDefault"
33844fi
33845
33846# Delegate substitutions
33847
33848
33849
33850
33851
33852
33853
33854
33855
33856
33857
33858
33859
33860
33861
33862
33863
33864
33865
33866
33867
33868
33869
33870
33871
33872
33873
33874
33875
33876
33877
33878
33879
33880
33881
33882
33883
33884
33885
33886
33887
33888
33889#
33890# RPM support.
33891#
33892RPM=''
33893for ac_prog in gnutar gtar tar
33894do
33895 # Extract the first word of "$ac_prog", so it can be a program name with args.
33896set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033898$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033899if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033900 $as_echo_n "(cached) " >&6
33901else
33902 if test -n "$TAR"; then
33903 ac_cv_prog_TAR="$TAR" # Let the user override the test.
33904else
33905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33906for as_dir in $PATH
33907do
33908 IFS=$as_save_IFS
33909 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033910 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33912 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033914 break 2
33915 fi
33916done
cristy8b350f62009-11-15 23:12:43 +000033917 done
cristy3ed852e2009-09-05 21:47:34 +000033918IFS=$as_save_IFS
33919
33920fi
33921fi
33922TAR=$ac_cv_prog_TAR
33923if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000033924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000033925$as_echo "$TAR" >&6; }
33926else
cristy8b350f62009-11-15 23:12:43 +000033927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033928$as_echo "no" >&6; }
33929fi
33930
33931
33932 test -n "$TAR" && break
33933done
33934
33935for ac_prog in perl
33936do
33937 # Extract the first word of "$ac_prog", so it can be a program name with args.
33938set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033940$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033941if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033942 $as_echo_n "(cached) " >&6
33943else
33944 if test -n "$PERL"; then
33945 ac_cv_prog_PERL="$PERL" # Let the user override the test.
33946else
33947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33948for as_dir in $PATH
33949do
33950 IFS=$as_save_IFS
33951 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033952 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33954 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033956 break 2
33957 fi
33958done
cristy8b350f62009-11-15 23:12:43 +000033959 done
cristy3ed852e2009-09-05 21:47:34 +000033960IFS=$as_save_IFS
33961
33962fi
33963fi
33964PERL=$ac_cv_prog_PERL
33965if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000033966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033967$as_echo "$PERL" >&6; }
33968else
cristy8b350f62009-11-15 23:12:43 +000033969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033970$as_echo "no" >&6; }
33971fi
33972
33973
33974 test -n "$PERL" && break
33975done
33976
33977for ac_prog in rpmbuild rpm
33978do
33979 # Extract the first word of "$ac_prog", so it can be a program name with args.
33980set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033982$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033983if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033984 $as_echo_n "(cached) " >&6
33985else
33986 if test -n "$RPM"; then
33987 ac_cv_prog_RPM="$RPM" # Let the user override the test.
33988else
33989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33990for as_dir in $PATH
33991do
33992 IFS=$as_save_IFS
33993 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033994 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33996 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000033997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033998 break 2
33999 fi
34000done
cristy8b350f62009-11-15 23:12:43 +000034001 done
cristy3ed852e2009-09-05 21:47:34 +000034002IFS=$as_save_IFS
34003
34004fi
34005fi
34006RPM=$ac_cv_prog_RPM
34007if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034009$as_echo "$RPM" >&6; }
34010else
cristy8b350f62009-11-15 23:12:43 +000034011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034012$as_echo "no" >&6; }
34013fi
34014
34015
34016 test -n "$RPM" && break
34017done
34018
34019
cristy73bd4a52010-10-05 11:24:23 +000034020ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34021
34022
34023AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34024
34025
34026AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34027
34028
34029AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34030
34031
34032 if test "x$RPM" != "x" ; then
34033 RPM_DELEGATE_TRUE=
34034 RPM_DELEGATE_FALSE='#'
34035else
34036 RPM_DELEGATE_TRUE='#'
34037 RPM_DELEGATE_FALSE=
34038fi
34039
cristy3ed852e2009-09-05 21:47:34 +000034040
34041#
34042# 7ZIP support (http://p7zip.sourceforge.net/)
34043#
34044P7ZIP=''
34045for ac_prog in 7za
34046do
34047 # Extract the first word of "$ac_prog", so it can be a program name with args.
34048set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034050$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034051if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034052 $as_echo_n "(cached) " >&6
34053else
34054 if test -n "$P7ZIP"; then
34055 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34056else
34057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34058for as_dir in $PATH
34059do
34060 IFS=$as_save_IFS
34061 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034062 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34064 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034066 break 2
34067 fi
34068done
cristy8b350f62009-11-15 23:12:43 +000034069 done
cristy3ed852e2009-09-05 21:47:34 +000034070IFS=$as_save_IFS
34071
34072fi
34073fi
34074P7ZIP=$ac_cv_prog_P7ZIP
34075if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034077$as_echo "$P7ZIP" >&6; }
34078else
cristy8b350f62009-11-15 23:12:43 +000034079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034080$as_echo "no" >&6; }
34081fi
34082
34083
34084 test -n "$P7ZIP" && break
34085done
34086
34087
cristy73bd4a52010-10-05 11:24:23 +000034088 if test "x$P7ZIP" != "x" ; then
34089 P7ZIP_DELEGATE_TRUE=
34090 P7ZIP_DELEGATE_FALSE='#'
34091else
34092 P7ZIP_DELEGATE_TRUE='#'
34093 P7ZIP_DELEGATE_FALSE=
34094fi
34095
cristy3ed852e2009-09-05 21:47:34 +000034096
34097#
34098# ZIP support (http://www.info-zip.org/Zip.html)
34099#
34100ZIP=''
34101for ac_prog in zip
34102do
34103 # Extract the first word of "$ac_prog", so it can be a program name with args.
34104set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034106$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034107if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034108 $as_echo_n "(cached) " >&6
34109else
34110 if test -n "$ZIP"; then
34111 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34112else
34113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34114for as_dir in $PATH
34115do
34116 IFS=$as_save_IFS
34117 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034118 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34120 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034122 break 2
34123 fi
34124done
cristy8b350f62009-11-15 23:12:43 +000034125 done
cristy3ed852e2009-09-05 21:47:34 +000034126IFS=$as_save_IFS
34127
34128fi
34129fi
34130ZIP=$ac_cv_prog_ZIP
34131if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034133$as_echo "$ZIP" >&6; }
34134else
cristy8b350f62009-11-15 23:12:43 +000034135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034136$as_echo "no" >&6; }
34137fi
34138
34139
34140 test -n "$ZIP" && break
34141done
34142
34143
cristy73bd4a52010-10-05 11:24:23 +000034144 if test "x$ZIP" != "x" ; then
34145 ZIP_DELEGATE_TRUE=
34146 ZIP_DELEGATE_FALSE='#'
34147else
34148 ZIP_DELEGATE_TRUE='#'
34149 ZIP_DELEGATE_FALSE=
34150fi
34151
cristy3ed852e2009-09-05 21:47:34 +000034152
34153#
34154# GhostPCL related configuration.
34155#
34156PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034157PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034158PCLMonoDevice=pbmraw
34159if test -z "$PCLVersion"; then
34160 PCLVersion='unknown'
34161fi
34162if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034163 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34164$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034166$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034167 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34168$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034169 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034171$as_echo_n "checking for pcl color device... " >&6; }
34172 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34173 :
34174 else
34175 PCLColorDevice=ppmraw
34176 fi
cristy09b53e12011-10-14 12:47:22 +000034177 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
34178$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034179
34180 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034182$as_echo_n "checking for pcl CMYK device... " >&6; }
34183 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34184 :
34185 else
34186 PCLCMYKDevice=$PCLColorDevice
34187 fi
cristy09b53e12011-10-14 12:47:22 +000034188 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
34189$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034190
34191 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034193$as_echo_n "checking for pcl mono device... " >&6; }
34194 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34195 :
34196 else
34197 PCLMonoDevice=$PCLColorDevice
34198 fi
cristy09b53e12011-10-14 12:47:22 +000034199 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
34200$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034201fi
34202
34203
34204
34205
34206
34207
34208#
34209# GhostXPS related configuration.
34210#
34211XPSColorDevice=ppmraw
34212XPSCMYKDevice=bmpsep8
34213XPSMonoDevice=pbmraw
34214if test -z "$XPSVersion"; then
34215 XPSVersion='unknown'
34216fi
34217if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034218 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34219$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034221$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034222 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34223$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034224 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034226$as_echo_n "checking for xps color device... " >&6; }
34227 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34228 :
34229 else
34230 XPSColorDevice=ppmraw
34231 fi
cristy09b53e12011-10-14 12:47:22 +000034232 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
34233$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034234
34235 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034237$as_echo_n "checking for xps CMYK device... " >&6; }
34238 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34239 :
34240 else
34241 XPSCMYKDevice=$XPSColorDevice
34242 fi
cristy09b53e12011-10-14 12:47:22 +000034243 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
34244$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034245
34246 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034248$as_echo_n "checking for xps mono device... " >&6; }
34249 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34250 :
34251 else
34252 XPSMonoDevice=$XPSColorDevice
34253 fi
cristy09b53e12011-10-14 12:47:22 +000034254 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
34255$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034256fi
34257
34258
34259
34260
34261
34262
34263#
34264# Ghostscript related configuration.
34265#
cristya97426c2011-02-04 01:41:27 +000034266GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034267GSColorDevice=pnmraw
34268GSCMYKDevice=pam
34269GSMonoDevice=pbmraw
34270GSPDFDevice=pdfwrite
34271GSPSDevice=pswrite
34272GSEPSDevice=epswrite
34273GSVersion='unknown'
34274if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034275 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34276$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034278$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034279 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34280$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000034281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034282$as_echo_n "checking for Ghostscript version... " >&6; }
34283 if GSVersion=`$PSDelegate --version`; then
34284 :
34285 else
34286 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34287 fi
cristy09b53e12011-10-14 12:47:22 +000034288 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
34289$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034290
34291 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034293$as_echo_n "checking for gs alpha device... " >&6; }
34294 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34295 :
34296 else
34297 GSAlphaDevice=pnmraw
34298 fi
cristy09b53e12011-10-14 12:47:22 +000034299 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
34300$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034301
34302 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034304$as_echo_n "checking for gs color device... " >&6; }
34305 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34306 :
34307 else
34308 GSColorDevice=pnmraw
34309 fi
cristy09b53e12011-10-14 12:47:22 +000034310 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
34311$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034312
34313 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034315$as_echo_n "checking for gs CMYK device... " >&6; }
34316 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34317 :
34318 else
34319 GSCMYKDevice=bmpsep8
34320 fi
cristy09b53e12011-10-14 12:47:22 +000034321 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
34322$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034323
34324 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034326$as_echo_n "checking for gs mono device... " >&6; }
34327 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34328 :
34329 else
34330 GSMonoDevice=$GSColorDevice
34331 fi
cristy09b53e12011-10-14 12:47:22 +000034332 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
34333$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034334
34335 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034337$as_echo_n "checking for gs PDF writing device... " >&6; }
34338 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34339 :
34340 else
34341 GSPDFDevice=nodevice
34342 fi
cristy09b53e12011-10-14 12:47:22 +000034343 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
34344$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034345
34346 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034348$as_echo_n "checking for gs PS writing device... " >&6; }
34349 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34350 :
34351 else
34352 GSPSDevice=nodevice
34353 fi
cristy09b53e12011-10-14 12:47:22 +000034354 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
34355$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034356
34357 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034359$as_echo_n "checking for gs EPS writing device... " >&6; }
34360 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34361 :
34362 else
34363 GSEPSDevice=nodevice
34364 fi
cristy09b53e12011-10-14 12:47:22 +000034365 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
34366$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034367fi
34368
34369
34370
34371
34372
34373
34374
34375
34376
34377
34378#
34379# PerlMagick-related configuration
34380#
34381
34382# Look for PERL if PerlMagick requested
34383# If name/path of desired PERL interpreter is specified, look for that one first
34384have_perl='no'
34385if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000034386 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34387$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034389$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034390 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34391$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034392 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034394$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034395if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034396 $as_echo_n "(cached) " >&6
34397else
34398 ac_cv_path_PERL="$with_perl"
34399fi
cristy8b350f62009-11-15 23:12:43 +000034400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034401$as_echo "$ac_cv_path_PERL" >&6; };
34402 PERL=$ac_cv_path_PERL
34403 have_perl="$ac_cv_path_PERL"
34404 else
34405 for ac_prog in perl perl5
34406do
34407 # Extract the first word of "$ac_prog", so it can be a program name with args.
34408set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034410$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034411if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034412 $as_echo_n "(cached) " >&6
34413else
34414 case $PERL in
34415 [\\/]* | ?:[\\/]*)
34416 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34417 ;;
34418 *)
34419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34420for as_dir in $PATH
34421do
34422 IFS=$as_save_IFS
34423 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034424 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34426 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034428 break 2
34429 fi
34430done
cristy8b350f62009-11-15 23:12:43 +000034431 done
cristy3ed852e2009-09-05 21:47:34 +000034432IFS=$as_save_IFS
34433
34434 ;;
34435esac
34436fi
34437PERL=$ac_cv_path_PERL
34438if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034440$as_echo "$PERL" >&6; }
34441else
cristy8b350f62009-11-15 23:12:43 +000034442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034443$as_echo "no" >&6; }
34444fi
34445
34446
34447 test -n "$PERL" && break
34448done
34449 if test "$ac_cv_path_PERL"; then
34450 have_perl="$ac_cv_path_PERL"
34451 fi
34452 fi
34453fi
34454
cristy949301e2010-01-06 01:38:40 +000034455if test "$with_perl" != 'yes' ; then
34456 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34457fi
34458
34459PERL_SUPPORTS_DESTDIR='no'
34460
cristy3ed852e2009-09-05 21:47:34 +000034461with_perl_static='no'
34462with_perl_dynamic='no'
34463if test "$have_perl" != 'no'; then
34464 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34465 with_perl_static='yes'
34466 fi
34467 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34468 with_perl_dynamic='yes'
34469 fi
34470 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000034471
34472
34473
34474
34475 if test -n "$PERL"; then :
34476
34477 ax_perl_version="5.8.1"
34478
34479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34480$as_echo_n "checking for perl version... " >&6; }
34481
34482 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34483
34484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34485$as_echo "$perl_version" >&6; }
34486
34487 PERL_VERSION=$perl_version
34488
34489
34490
34491
34492
34493 # Used to indicate true or false condition
34494 ax_compare_version=false
34495
34496 # Convert the two version strings to be compared into a format that
34497 # allows a simple string comparison. The end result is that a version
34498 # string of the form 1.12.5-r617 will be converted to the form
34499 # 0001001200050617. In other words, each number is zero padded to four
34500 # digits, and non digits are removed.
34501
34502 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34503 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34504 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34505 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34506 -e 's/[^0-9]//g'`
34507
34508
34509 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34510 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34511 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34512 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34513 -e 's/[^0-9]//g'`
34514
34515
34516 ax_compare_version=`echo "x$ax_compare_version_A
34517x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34518
34519
34520
34521 if test "$ax_compare_version" = "true" ; then
34522
34523 :
34524 PERL_SUPPORTS_DESTDIR='yes'
34525
34526 else
34527 :
34528 PERL_SUPPORTS_DESTDIR='no'
34529
34530 fi
34531
34532
34533else
34534
34535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34536$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34537 PERL_SUPPORTS_DESTDIR='no'
34538
cristy3ed852e2009-09-05 21:47:34 +000034539fi
cristy73bd4a52010-10-05 11:24:23 +000034540
34541fi
34542 if test "$have_perl" != 'no'; then
34543 WITH_PERL_TRUE=
34544 WITH_PERL_FALSE='#'
34545else
34546 WITH_PERL_TRUE='#'
34547 WITH_PERL_FALSE=
34548fi
34549
34550 if test $with_perl_static = 'yes'; then
34551 WITH_PERL_STATIC_TRUE=
34552 WITH_PERL_STATIC_FALSE='#'
34553else
34554 WITH_PERL_STATIC_TRUE='#'
34555 WITH_PERL_STATIC_FALSE=
34556fi
34557
34558 if test $with_perl_dynamic = 'yes'; then
34559 WITH_PERL_DYNAMIC_TRUE=
34560 WITH_PERL_DYNAMIC_FALSE='#'
34561else
34562 WITH_PERL_DYNAMIC_TRUE='#'
34563 WITH_PERL_DYNAMIC_FALSE=
34564fi
34565
cristy3ed852e2009-09-05 21:47:34 +000034566
34567
34568# Determine path to pick up MagickCore library from for use with building PerlMagick
34569MAGICKCORE_PATH="${LIB_DIR}"
34570if test $with_perl_static = 'yes'; then
34571 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34572 libtool_objdir=$objdir
34573
34574 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000034575 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000034576fi
34577
34578
34579# Create a simple string containing format names for all delegate libraries
34580DELEGATES=''
34581if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34582if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34583if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34584if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34585if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34586if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34587if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34588if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34589if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34590if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34591if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34592if test "$have_jpeg" = 'yes'; then
34593 DELEGATES="$DELEGATES jpeg";
34594 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34595fi
34596if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000034597if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000034598if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34599if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000034600if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000034601if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34602if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
34603if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
34604if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34605if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34606if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34607if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34608if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34609if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34610
34611
34612
34613#
34614# Handle special compiler flags
34615#
34616
34617# Add '-p' if prof source profiling support enabled
34618if test "$enable_prof" = 'yes'; then
34619 CFLAGS="-p $CFLAGS"
34620 CXXFLAGS="-p $CXXFLAGS"
34621 LDFLAGS="-p $LDFLAGS"
34622fi
34623
34624# Add '-pg' if gprof source profiling support enabled
34625if test "$enable_gprof" = 'yes'; then
34626 CFLAGS="-pg $CFLAGS"
34627 CXXFLAGS="-pg $CXXFLAGS"
34628 LDFLAGS="-pg $LDFLAGS"
34629fi
34630
34631# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34632# This is a gcc-specific feature
34633if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034635$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034636if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034637 $as_echo_n "(cached) " >&6
34638else
34639 ac_check_lib_save_LIBS=$LIBS
34640LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034642/* end confdefs.h. */
34643
34644/* Override any GCC internal prototype to avoid an error.
34645 Use char because int might match the return type of a GCC
34646 builtin and then its argument prototype would still apply. */
34647#ifdef __cplusplus
34648extern "C"
34649#endif
34650char _gcov_init ();
34651int
34652main ()
34653{
34654return _gcov_init ();
34655 ;
34656 return 0;
34657}
34658_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034659if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034660 ac_cv_lib_gcov__gcov_init=yes
34661else
cristy8b350f62009-11-15 23:12:43 +000034662 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034663fi
cristy8b350f62009-11-15 23:12:43 +000034664rm -f core conftest.err conftest.$ac_objext \
34665 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034666LIBS=$ac_check_lib_save_LIBS
34667fi
cristy8b350f62009-11-15 23:12:43 +000034668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034669$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034670if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034671 cat >>confdefs.h <<_ACEOF
34672#define HAVE_LIBGCOV 1
34673_ACEOF
34674
34675 LIBS="-lgcov $LIBS"
34676
34677fi
34678
cristy8b350f62009-11-15 23:12:43 +000034679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034680$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034681if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034682 $as_echo_n "(cached) " >&6
34683else
34684 ac_check_lib_save_LIBS=$LIBS
34685LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034687/* end confdefs.h. */
34688
34689/* Override any GCC internal prototype to avoid an error.
34690 Use char because int might match the return type of a GCC
34691 builtin and then its argument prototype would still apply. */
34692#ifdef __cplusplus
34693extern "C"
34694#endif
34695char __gcov_init ();
34696int
34697main ()
34698{
34699return __gcov_init ();
34700 ;
34701 return 0;
34702}
34703_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034704if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034705 ac_cv_lib_gcov___gcov_init=yes
34706else
cristy8b350f62009-11-15 23:12:43 +000034707 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034708fi
cristy8b350f62009-11-15 23:12:43 +000034709rm -f core conftest.err conftest.$ac_objext \
34710 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034711LIBS=$ac_check_lib_save_LIBS
34712fi
cristy8b350f62009-11-15 23:12:43 +000034713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034714$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034715if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034716 cat >>confdefs.h <<_ACEOF
34717#define HAVE_LIBGCOV 1
34718_ACEOF
34719
34720 LIBS="-lgcov $LIBS"
34721
34722fi
34723
34724 case "$target_os" in
34725 darwin*)
34726 OSX_GCOV_LDFLAG="-Wl,-single_module"
34727 ;;
34728 *)
34729 OSX_GCOV_LDFLAG=""
34730 ;;
34731 esac
34732
34733 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
34734 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
34735 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
34736fi
34737
34738#
34739# Build library dependency list for libMagickCore
34740#
34741
34742MAGICK_LIBLTDL='' # Libltdl for build
34743MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
34744MAGICK_LTDLDEPS='' # extra libltdl dependencies
34745if test "$with_ltdl" != 'no'
34746then
34747 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
34748 MAGICK_API_LIBLTDL='-lltdl'
34749 fi
34750 MAGICK_LIBLTDL=${LIBLTDL}
34751 MAGICK_LTDLDEPS=${LTDLDEPS}
34752fi
34753
34754
34755
34756if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000034757 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 +000034758else
cristyb1860752011-03-14 00:27:46 +000034759 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 +000034760fi
34761
34762
34763#
34764# Remove extraneous spaces from output variables (asthetic)
34765#
34766X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
34767X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
34768X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
34769X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
34770
34771CC=`echo $CC | sed -e 's/ */ /g'`
34772CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
34773CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
34774CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
34775DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
34776DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
34777LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
34778TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34779MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
34780#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34781
34782# Pass only user-provided LIBS as "global" libraries
34783LIBS=$USER_LIBS
34784
34785#AC_SUBST(CPPFLAGS)
34786
34787#AC_SUBST(LDFLAGS)
34788#AC_SUBST(X_PRE_LIBS)
34789#AC_SUBST(X_LIBS)
34790#AC_SUBST(X_EXTRA_LIBS)
34791
34792MAGICK_CFLAGS=$CFLAGS
34793MAGICK_CXXFLAGS="$CXXFLAGS"
34794MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
34795MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
34796MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
34797MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
34798
34799
34800
34801
34802
34803
34804
34805
cristyfd9dcd42010-08-08 18:07:02 +000034806
cristy3ed852e2009-09-05 21:47:34 +000034807# Set configured scripts to executable.
34808ac_config_commands="$ac_config_commands default"
34809
34810ac_config_commands="$ac_config_commands MagickCore-config.in"
34811
cristy3ed852e2009-09-05 21:47:34 +000034812ac_config_commands="$ac_config_commands MagickWand-config.in"
34813
cristy3ed852e2009-09-05 21:47:34 +000034814ac_config_commands="$ac_config_commands Magick++-config.in"
34815
34816ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
34817
34818
cristy09b53e12011-10-14 12:47:22 +000034819{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34820$as_echo "$as_me: -------------------------------------------------------------" >&6;}
34821{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
34822$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034823cat >confcache <<\_ACEOF
34824# This file is a shell script that caches the results of configure
34825# tests run on this system so they can be shared between configure
34826# scripts and configure runs, see configure's option --config-cache.
34827# It is not useful on other systems. If it contains results you don't
34828# want to keep, you may remove or edit it.
34829#
34830# config.status only pays attention to the cache file if you give it
34831# the --recheck option to rerun configure.
34832#
34833# `ac_cv_env_foo' variables (set or unset) will be overridden when
34834# loading this file, other *unset* `ac_cv_foo' will be assigned the
34835# following values.
34836
34837_ACEOF
34838
34839# The following way of writing the cache mishandles newlines in values,
34840# but we know of no workaround that is simple, portable, and efficient.
34841# So, we kill variables containing newlines.
34842# Ultrix sh set writes to stderr and can't be redirected directly,
34843# and sets the high bit in the cache file unless we assign to the vars.
34844(
34845 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34846 eval ac_val=\$$ac_var
34847 case $ac_val in #(
34848 *${as_nl}*)
34849 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000034850 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000034851$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34852 esac
34853 case $ac_var in #(
34854 _ | IFS | as_nl) ;; #(
34855 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000034856 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000034857 esac ;;
34858 esac
34859 done
34860
34861 (set) 2>&1 |
34862 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34863 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000034864 # `set' does not quote correctly, so add quotes: double-quote
34865 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000034866 sed -n \
34867 "s/'/'\\\\''/g;
34868 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34869 ;; #(
34870 *)
34871 # `set' quotes correctly as required by POSIX, so do not add quotes.
34872 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34873 ;;
34874 esac |
34875 sort
34876) |
34877 sed '
34878 /^ac_cv_env_/b end
34879 t clear
34880 :clear
34881 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34882 t end
34883 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34884 :end' >>confcache
34885if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34886 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000034887 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000034888 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034889$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000034890 if test ! -f "$cache_file" || test -h "$cache_file"; then
34891 cat confcache >"$cache_file"
34892 else
34893 case $cache_file in #(
34894 */* | ?:*)
34895 mv -f confcache "$cache_file"$$ &&
34896 mv -f "$cache_file"$$ "$cache_file" ;; #(
34897 *)
34898 mv -f confcache "$cache_file" ;;
34899 esac
34900 fi
34901 fi
cristy3ed852e2009-09-05 21:47:34 +000034902 else
cristy8b350f62009-11-15 23:12:43 +000034903 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034904$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34905 fi
34906fi
34907rm -f confcache
34908
34909test "x$prefix" = xNONE && prefix=$ac_default_prefix
34910# Let make expand exec_prefix.
34911test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34912
34913DEFS=-DHAVE_CONFIG_H
34914
34915ac_libobjs=
34916ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000034917U=
cristy3ed852e2009-09-05 21:47:34 +000034918for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34919 # 1. Remove the extension, and $U if already installed.
34920 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34921 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
34922 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34923 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000034924 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34925 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000034926done
34927LIBOBJS=$ac_libobjs
34928
34929LTLIBOBJS=$ac_ltlibobjs
34930
34931
cristy73bd4a52010-10-05 11:24:23 +000034932 if test -n "$EXEEXT"; then
34933 am__EXEEXT_TRUE=
34934 am__EXEEXT_FALSE='#'
34935else
34936 am__EXEEXT_TRUE='#'
34937 am__EXEEXT_FALSE=
34938fi
cristy3ed852e2009-09-05 21:47:34 +000034939
cristy73bd4a52010-10-05 11:24:23 +000034940if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034941 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034942Usually this means the macro was only invoked conditionally." "$LINENO" 5
34943fi
34944if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034945 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034946Usually this means the macro was only invoked conditionally." "$LINENO" 5
34947fi
34948if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034949 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034950Usually this means the macro was only invoked conditionally." "$LINENO" 5
34951fi
34952if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034953 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034954Usually this means the macro was only invoked conditionally." "$LINENO" 5
34955fi
34956if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034957 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034958Usually this means the macro was only invoked conditionally." "$LINENO" 5
34959fi
34960if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034961 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034962Usually this means the macro was only invoked conditionally." "$LINENO" 5
34963fi
34964if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034965 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034966Usually this means the macro was only invoked conditionally." "$LINENO" 5
34967fi
34968if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034969 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034970Usually this means the macro was only invoked conditionally." "$LINENO" 5
34971fi
cristy73bd4a52010-10-05 11:24:23 +000034972if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034973 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034974Usually this means the macro was only invoked conditionally." "$LINENO" 5
34975fi
34976if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034977 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034978Usually this means the macro was only invoked conditionally." "$LINENO" 5
34979fi
34980LT_CONFIG_H=config/config.h
34981
34982 _ltdl_libobjs=
34983 _ltdl_ltlibobjs=
34984 if test -n "$_LT_LIBOBJS"; then
34985 # Remove the extension.
34986 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
34987 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
34988 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
34989 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
34990 done
34991 fi
34992 ltdl_LIBOBJS=$_ltdl_libobjs
34993
34994 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
34995
34996
34997if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000034998 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000034999Usually this means the macro was only invoked conditionally." "$LINENO" 5
35000fi
35001if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035002 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035003Usually this means the macro was only invoked conditionally." "$LINENO" 5
35004fi
35005if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035006 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035007Usually this means the macro was only invoked conditionally." "$LINENO" 5
35008fi
35009if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035010 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035011Usually this means the macro was only invoked conditionally." "$LINENO" 5
35012fi
35013
35014if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035015 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035016Usually this means the macro was only invoked conditionally." "$LINENO" 5
35017fi
35018if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035019 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035020Usually this means the macro was only invoked conditionally." "$LINENO" 5
35021fi
35022if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035023 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035024Usually this means the macro was only invoked conditionally." "$LINENO" 5
35025fi
35026if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035027 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035028Usually this means the macro was only invoked conditionally." "$LINENO" 5
35029fi
35030if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035031 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035032Usually this means the macro was only invoked conditionally." "$LINENO" 5
35033fi
35034if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035035 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035036Usually this means the macro was only invoked conditionally." "$LINENO" 5
35037fi
35038if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035039 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035040Usually this means the macro was only invoked conditionally." "$LINENO" 5
35041fi
35042if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035043 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035044Usually this means the macro was only invoked conditionally." "$LINENO" 5
35045fi
35046if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035047 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035048Usually this means the macro was only invoked conditionally." "$LINENO" 5
35049fi
35050if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035051 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035052Usually this means the macro was only invoked conditionally." "$LINENO" 5
35053fi
35054if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035055 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035056Usually this means the macro was only invoked conditionally." "$LINENO" 5
35057fi
35058if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035059 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035060Usually this means the macro was only invoked conditionally." "$LINENO" 5
35061fi
35062if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035063 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035064Usually this means the macro was only invoked conditionally." "$LINENO" 5
35065fi
35066if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035067 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035068Usually this means the macro was only invoked conditionally." "$LINENO" 5
35069fi
35070if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035071 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035072Usually this means the macro was only invoked conditionally." "$LINENO" 5
35073fi
35074if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035075 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035076Usually this means the macro was only invoked conditionally." "$LINENO" 5
35077fi
35078if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035079 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035080Usually this means the macro was only invoked conditionally." "$LINENO" 5
35081fi
35082if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035083 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035084Usually this means the macro was only invoked conditionally." "$LINENO" 5
35085fi
35086if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035087 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035088Usually this means the macro was only invoked conditionally." "$LINENO" 5
35089fi
35090if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035091 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035092Usually this means the macro was only invoked conditionally." "$LINENO" 5
35093fi
cristyfbb0ef02010-12-19 02:32:11 +000035094if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35095 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35096Usually this means the macro was only invoked conditionally." "$LINENO" 5
35097fi
cristy73bd4a52010-10-05 11:24:23 +000035098if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035099 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035100Usually this means the macro was only invoked conditionally." "$LINENO" 5
35101fi
35102if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035103 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035104Usually this means the macro was only invoked conditionally." "$LINENO" 5
35105fi
35106if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035107 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035108Usually this means the macro was only invoked conditionally." "$LINENO" 5
35109fi
35110if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035111 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035112Usually this means the macro was only invoked conditionally." "$LINENO" 5
35113fi
35114if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035115 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035116Usually this means the macro was only invoked conditionally." "$LINENO" 5
35117fi
cristyb1860752011-03-14 00:27:46 +000035118if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35119 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35120Usually this means the macro was only invoked conditionally." "$LINENO" 5
35121fi
cristy73bd4a52010-10-05 11:24:23 +000035122if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035123 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035124Usually this means the macro was only invoked conditionally." "$LINENO" 5
35125fi
35126if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035127 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035128Usually this means the macro was only invoked conditionally." "$LINENO" 5
35129fi
35130if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035131 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035132Usually this means the macro was only invoked conditionally." "$LINENO" 5
35133fi
35134if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035135 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035136Usually this means the macro was only invoked conditionally." "$LINENO" 5
35137fi
35138if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035139 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035140Usually this means the macro was only invoked conditionally." "$LINENO" 5
35141fi
35142if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035143 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035144Usually this means the macro was only invoked conditionally." "$LINENO" 5
35145fi
35146if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035147 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035148Usually this means the macro was only invoked conditionally." "$LINENO" 5
35149fi
35150if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035151 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035152Usually this means the macro was only invoked conditionally." "$LINENO" 5
35153fi
cristy3ed852e2009-09-05 21:47:34 +000035154
cristyda16f162011-02-19 23:52:17 +000035155: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035156ac_write_fail=0
35157ac_clean_files_save=$ac_clean_files
35158ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035159{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035160$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035161as_write_fail=0
35162cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035163#! $SHELL
35164# Generated by $as_me.
35165# Run this file to recreate the current configuration.
35166# Compiler output produced by configure, useful for debugging
35167# configure, is in config.log if it exists.
35168
35169debug=false
35170ac_cs_recheck=false
35171ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035172
cristy8b350f62009-11-15 23:12:43 +000035173SHELL=\${CONFIG_SHELL-$SHELL}
35174export SHELL
35175_ASEOF
35176cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35177## -------------------- ##
35178## M4sh Initialization. ##
35179## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035180
35181# Be more Bourne compatible
35182DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035183if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035184 emulate sh
35185 NULLCMD=:
35186 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35187 # is contrary to our usage. Disable this feature.
35188 alias -g '${1+"$@"}'='"$@"'
35189 setopt NO_GLOB_SUBST
35190else
cristy8b350f62009-11-15 23:12:43 +000035191 case `(set -o) 2>/dev/null` in #(
35192 *posix*) :
35193 set -o posix ;; #(
35194 *) :
35195 ;;
cristy3ed852e2009-09-05 21:47:34 +000035196esac
cristy3ed852e2009-09-05 21:47:34 +000035197fi
35198
35199
cristy3ed852e2009-09-05 21:47:34 +000035200as_nl='
35201'
35202export as_nl
35203# Printing a long string crashes Solaris 7 /usr/bin/printf.
35204as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35205as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35206as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035207# Prefer a ksh shell builtin over an external printf program on Solaris,
35208# but without wasting forks for bash or zsh.
35209if test -z "$BASH_VERSION$ZSH_VERSION" \
35210 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35211 as_echo='print -r --'
35212 as_echo_n='print -rn --'
35213elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035214 as_echo='printf %s\n'
35215 as_echo_n='printf %s'
35216else
35217 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35218 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35219 as_echo_n='/usr/ucb/echo -n'
35220 else
35221 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35222 as_echo_n_body='eval
35223 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035224 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035225 *"$as_nl"*)
35226 expr "X$arg" : "X\\(.*\\)$as_nl";
35227 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35228 esac;
35229 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35230 '
35231 export as_echo_n_body
35232 as_echo_n='sh -c $as_echo_n_body as_echo'
35233 fi
35234 export as_echo_body
35235 as_echo='sh -c $as_echo_body as_echo'
35236fi
35237
35238# The user is always right.
35239if test "${PATH_SEPARATOR+set}" != set; then
35240 PATH_SEPARATOR=:
35241 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35242 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35243 PATH_SEPARATOR=';'
35244 }
35245fi
35246
cristy3ed852e2009-09-05 21:47:34 +000035247
35248# IFS
35249# We need space, tab and new line, in precisely that order. Quoting is
35250# there to prevent editors from complaining about space-tab.
35251# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35252# splitting by setting IFS to empty value.)
35253IFS=" "" $as_nl"
35254
35255# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035256as_myself=
cristy8b350f62009-11-15 23:12:43 +000035257case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035258 *[\\/]* ) as_myself=$0 ;;
35259 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35260for as_dir in $PATH
35261do
35262 IFS=$as_save_IFS
35263 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035264 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35265 done
cristy3ed852e2009-09-05 21:47:34 +000035266IFS=$as_save_IFS
35267
35268 ;;
35269esac
35270# We did not find ourselves, most probably we were run as `sh COMMAND'
35271# in which case we are not to be found in the path.
35272if test "x$as_myself" = x; then
35273 as_myself=$0
35274fi
35275if test ! -f "$as_myself"; then
35276 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035277 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035278fi
35279
cristy8b350f62009-11-15 23:12:43 +000035280# Unset variables that we do not need and which cause bugs (e.g. in
35281# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35282# suppresses any "Segmentation fault" message there. '((' could
35283# trigger a bug in pdksh 5.2.14.
35284for as_var in BASH_ENV ENV MAIL MAILPATH
35285do eval test x\${$as_var+set} = xset \
35286 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035287done
35288PS1='$ '
35289PS2='> '
35290PS4='+ '
35291
35292# NLS nuisances.
35293LC_ALL=C
35294export LC_ALL
35295LANGUAGE=C
35296export LANGUAGE
35297
cristy8b350f62009-11-15 23:12:43 +000035298# CDPATH.
35299(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35300
35301
cristy98dddb52010-11-04 00:30:15 +000035302# as_fn_error STATUS ERROR [LINENO LOG_FD]
35303# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035304# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35305# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035306# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035307as_fn_error ()
35308{
cristy98dddb52010-11-04 00:30:15 +000035309 as_status=$1; test $as_status -eq 0 && as_status=1
35310 if test "$4"; then
35311 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35312 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035313 fi
cristy98dddb52010-11-04 00:30:15 +000035314 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035315 as_fn_exit $as_status
35316} # as_fn_error
35317
35318
35319# as_fn_set_status STATUS
35320# -----------------------
35321# Set $? to STATUS, without forking.
35322as_fn_set_status ()
35323{
35324 return $1
35325} # as_fn_set_status
35326
35327# as_fn_exit STATUS
35328# -----------------
35329# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35330as_fn_exit ()
35331{
35332 set +e
35333 as_fn_set_status $1
35334 exit $1
35335} # as_fn_exit
35336
35337# as_fn_unset VAR
35338# ---------------
35339# Portably unset VAR.
35340as_fn_unset ()
35341{
35342 { eval $1=; unset $1;}
35343}
35344as_unset=as_fn_unset
35345# as_fn_append VAR VALUE
35346# ----------------------
35347# Append the text in VALUE to the end of the definition contained in VAR. Take
35348# advantage of any shell optimizations that allow amortized linear growth over
35349# repeated appends, instead of the typical quadratic growth present in naive
35350# implementations.
35351if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35352 eval 'as_fn_append ()
35353 {
35354 eval $1+=\$2
35355 }'
35356else
35357 as_fn_append ()
35358 {
35359 eval $1=\$$1\$2
35360 }
35361fi # as_fn_append
35362
35363# as_fn_arith ARG...
35364# ------------------
35365# Perform arithmetic evaluation on the ARGs, and store the result in the
35366# global $as_val. Take advantage of shells that can avoid forks. The arguments
35367# must be portable across $(()) and expr.
35368if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35369 eval 'as_fn_arith ()
35370 {
35371 as_val=$(( $* ))
35372 }'
35373else
35374 as_fn_arith ()
35375 {
35376 as_val=`expr "$@" || test $? -eq 1`
35377 }
35378fi # as_fn_arith
35379
35380
cristy3ed852e2009-09-05 21:47:34 +000035381if expr a : '\(a\)' >/dev/null 2>&1 &&
35382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35383 as_expr=expr
35384else
35385 as_expr=false
35386fi
35387
35388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35389 as_basename=basename
35390else
35391 as_basename=false
35392fi
35393
cristy8b350f62009-11-15 23:12:43 +000035394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35395 as_dirname=dirname
35396else
35397 as_dirname=false
35398fi
cristy3ed852e2009-09-05 21:47:34 +000035399
cristy3ed852e2009-09-05 21:47:34 +000035400as_me=`$as_basename -- "$0" ||
35401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35402 X"$0" : 'X\(//\)$' \| \
35403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35404$as_echo X/"$0" |
35405 sed '/^.*\/\([^/][^/]*\)\/*$/{
35406 s//\1/
35407 q
35408 }
35409 /^X\/\(\/\/\)$/{
35410 s//\1/
35411 q
35412 }
35413 /^X\/\(\/\).*/{
35414 s//\1/
35415 q
35416 }
35417 s/.*/./; q'`
35418
cristy8b350f62009-11-15 23:12:43 +000035419# Avoid depending upon Character Ranges.
35420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35423as_cr_digits='0123456789'
35424as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000035425
35426ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000035427case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000035428-n*)
cristy8b350f62009-11-15 23:12:43 +000035429 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000035430 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000035431 xy) ECHO_C='\c';;
35432 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35433 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000035434 esac;;
35435*)
35436 ECHO_N='-n';;
35437esac
cristy3ed852e2009-09-05 21:47:34 +000035438
35439rm -f conf$$ conf$$.exe conf$$.file
35440if test -d conf$$.dir; then
35441 rm -f conf$$.dir/conf$$.file
35442else
35443 rm -f conf$$.dir
35444 mkdir conf$$.dir 2>/dev/null
35445fi
35446if (echo >conf$$.file) 2>/dev/null; then
35447 if ln -s conf$$.file conf$$ 2>/dev/null; then
35448 as_ln_s='ln -s'
35449 # ... but there are two gotchas:
35450 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35451 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35452 # In both cases, we have to default to `cp -p'.
35453 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35454 as_ln_s='cp -p'
35455 elif ln conf$$.file conf$$ 2>/dev/null; then
35456 as_ln_s=ln
35457 else
35458 as_ln_s='cp -p'
35459 fi
35460else
35461 as_ln_s='cp -p'
35462fi
35463rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35464rmdir conf$$.dir 2>/dev/null
35465
cristy8b350f62009-11-15 23:12:43 +000035466
35467# as_fn_mkdir_p
35468# -------------
35469# Create "$as_dir" as a directory, including parents if necessary.
35470as_fn_mkdir_p ()
35471{
35472
35473 case $as_dir in #(
35474 -*) as_dir=./$as_dir;;
35475 esac
35476 test -d "$as_dir" || eval $as_mkdir_p || {
35477 as_dirs=
35478 while :; do
35479 case $as_dir in #(
35480 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35481 *) as_qdir=$as_dir;;
35482 esac
35483 as_dirs="'$as_qdir' $as_dirs"
35484 as_dir=`$as_dirname -- "$as_dir" ||
35485$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35486 X"$as_dir" : 'X\(//\)[^/]' \| \
35487 X"$as_dir" : 'X\(//\)$' \| \
35488 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35489$as_echo X"$as_dir" |
35490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35491 s//\1/
35492 q
35493 }
35494 /^X\(\/\/\)[^/].*/{
35495 s//\1/
35496 q
35497 }
35498 /^X\(\/\/\)$/{
35499 s//\1/
35500 q
35501 }
35502 /^X\(\/\).*/{
35503 s//\1/
35504 q
35505 }
35506 s/.*/./; q'`
35507 test -d "$as_dir" && break
35508 done
35509 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000035510 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000035511
35512
35513} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035514if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000035515 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000035516else
35517 test -d ./-p && rmdir ./-p
35518 as_mkdir_p=false
35519fi
35520
35521if test -x / >/dev/null 2>&1; then
35522 as_test_x='test -x'
35523else
35524 if ls -dL / >/dev/null 2>&1; then
35525 as_ls_L_option=L
35526 else
35527 as_ls_L_option=
35528 fi
35529 as_test_x='
35530 eval sh -c '\''
35531 if test -d "$1"; then
35532 test -d "$1/.";
35533 else
cristy8b350f62009-11-15 23:12:43 +000035534 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000035535 -*)set "./$1";;
35536 esac;
cristy8b350f62009-11-15 23:12:43 +000035537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000035538 ???[sx]*):;;*)false;;esac;fi
35539 '\'' sh
35540 '
35541fi
35542as_executable_p=$as_test_x
35543
35544# Sed expression to map a string onto a valid CPP name.
35545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35546
35547# Sed expression to map a string onto a valid variable name.
35548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35549
35550
35551exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000035552## ----------------------------------- ##
35553## Main body of $CONFIG_STATUS script. ##
35554## ----------------------------------- ##
35555_ASEOF
35556test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035557
cristy8b350f62009-11-15 23:12:43 +000035558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35559# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000035560# report actual input values of CONFIG_FILES etc. instead of their
35561# values after options handling.
35562ac_log="
cristy29eb34e2011-10-16 00:46:08 +000035563This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +000035564generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000035565
35566 CONFIG_FILES = $CONFIG_FILES
35567 CONFIG_HEADERS = $CONFIG_HEADERS
35568 CONFIG_LINKS = $CONFIG_LINKS
35569 CONFIG_COMMANDS = $CONFIG_COMMANDS
35570 $ $0 $@
35571
35572on `(hostname || uname -n) 2>/dev/null | sed 1q`
35573"
35574
35575_ACEOF
35576
35577case $ac_config_files in *"
35578"*) set x $ac_config_files; shift; ac_config_files=$*;;
35579esac
35580
35581case $ac_config_headers in *"
35582"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35583esac
35584
35585
35586cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35587# Files that config.status was made for.
35588config_files="$ac_config_files"
35589config_headers="$ac_config_headers"
35590config_commands="$ac_config_commands"
35591
35592_ACEOF
35593
35594cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35595ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000035596\`$as_me' instantiates files and other configuration actions
35597from templates according to the current configuration. Unless the files
35598and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000035599
cristy8b350f62009-11-15 23:12:43 +000035600Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000035601
35602 -h, --help print this help, then exit
35603 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000035604 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000035605 -q, --quiet, --silent
35606 do not print progress messages
35607 -d, --debug don't remove temporary files
35608 --recheck update $as_me by reconfiguring in the same conditions
35609 --file=FILE[:TEMPLATE]
35610 instantiate the configuration file FILE
35611 --header=FILE[:TEMPLATE]
35612 instantiate the configuration header FILE
35613
35614Configuration files:
35615$config_files
35616
35617Configuration headers:
35618$config_headers
35619
35620Configuration commands:
35621$config_commands
35622
cristy8b350f62009-11-15 23:12:43 +000035623Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000035624
35625_ACEOF
35626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000035627ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000035628ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000035629ImageMagick config.status 7.0.0-0
cristyda16f162011-02-19 23:52:17 +000035630configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000035631 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000035632
cristy98dddb52010-11-04 00:30:15 +000035633Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000035634This config.status script is free software; the Free Software Foundation
35635gives unlimited permission to copy, distribute and modify it."
35636
35637ac_pwd='$ac_pwd'
35638srcdir='$srcdir'
35639INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000035640MKDIR_P='$MKDIR_P'
35641AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000035642test -n "\$AWK" || AWK=awk
35643_ACEOF
35644
35645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35646# The default lists apply if the user does not specify any file.
35647ac_need_defaults=:
35648while test $# != 0
35649do
35650 case $1 in
cristyda16f162011-02-19 23:52:17 +000035651 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000035652 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35653 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35654 ac_shift=:
35655 ;;
cristyda16f162011-02-19 23:52:17 +000035656 --*=)
35657 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35658 ac_optarg=
35659 ac_shift=:
35660 ;;
cristy3ed852e2009-09-05 21:47:34 +000035661 *)
35662 ac_option=$1
35663 ac_optarg=$2
35664 ac_shift=shift
35665 ;;
35666 esac
35667
35668 case $ac_option in
35669 # Handling of the options.
35670 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35671 ac_cs_recheck=: ;;
35672 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35673 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000035674 --config | --confi | --conf | --con | --co | --c )
35675 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000035676 --debug | --debu | --deb | --de | --d | -d )
35677 debug=: ;;
35678 --file | --fil | --fi | --f )
35679 $ac_shift
35680 case $ac_optarg in
35681 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000035682 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000035683 esac
cristy8b350f62009-11-15 23:12:43 +000035684 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035685 ac_need_defaults=false;;
35686 --header | --heade | --head | --hea )
35687 $ac_shift
35688 case $ac_optarg in
35689 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35690 esac
cristy8b350f62009-11-15 23:12:43 +000035691 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035692 ac_need_defaults=false;;
35693 --he | --h)
35694 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000035695 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035696Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000035697 --help | --hel | -h )
35698 $as_echo "$ac_cs_usage"; exit ;;
35699 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35700 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35701 ac_cs_silent=: ;;
35702
35703 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000035704 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035705Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000035706
cristy8b350f62009-11-15 23:12:43 +000035707 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000035708 ac_need_defaults=false ;;
35709
35710 esac
35711 shift
35712done
35713
35714ac_configure_extra_args=
35715
35716if $ac_cs_silent; then
35717 exec 6>/dev/null
35718 ac_configure_extra_args="$ac_configure_extra_args --silent"
35719fi
35720
35721_ACEOF
35722cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35723if \$ac_cs_recheck; then
35724 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35725 shift
35726 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35727 CONFIG_SHELL='$SHELL'
35728 export CONFIG_SHELL
35729 exec "\$@"
35730fi
35731
35732_ACEOF
35733cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35734exec 5>>config.log
35735{
35736 echo
35737 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35738## Running $as_me. ##
35739_ASBOX
35740 $as_echo "$ac_log"
35741} >&5
35742
35743_ACEOF
35744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000035745#
35746# INIT-COMMANDS
35747#
35748PACKAGE="$PACKAGE"
35749AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
35750
35751
35752# The HP-UX ksh and POSIX shell print the target directory to stdout
35753# if CDPATH is set.
35754(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35755
35756sed_quote_subst='$sed_quote_subst'
35757double_quote_subst='$double_quote_subst'
35758delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000035759SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
35760Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
35761GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
35762EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
35763FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
35764SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
35765ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
35766LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
35767macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
35768macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
35769AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
35770DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
35771OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
35772enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
35773enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
35774pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
35775enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
35776host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
35777host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
35778host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
35779build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
35780build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
35781build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
35782NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
35783LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
35784max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
35785ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
35786exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
35787lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
35788lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
35789lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035790lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
35791lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035792reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
35793reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
35794deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
35795file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035796file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
35797want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
35798sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035799AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
35800AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035801archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035802STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
35803RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
35804old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35805old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35806old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
35807lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
35808CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
35809CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
35810compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
35811GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
35812lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
35813lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
35814lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
35815lt_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 +000035816nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
35817lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035818objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
35819MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
35820lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035821lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035822lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035823lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
35824lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
35825need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035826MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035827DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
35828NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
35829LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
35830OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
35831OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
35832libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
35833shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
35834extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35835archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
35836enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
35837export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
35838whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
35839compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
35840old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
35841old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35842archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
35843archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35844module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
35845module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35846with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
35847allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
35848no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
35849hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
35850hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
35851hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
35852hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
35853hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
35854hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
35855hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
35856hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
35857inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
35858link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035859always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
35860export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
35861exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
35862include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
35863prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035864postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035865file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
35866variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
35867need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
35868need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
35869version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
35870runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
35871shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
35872shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
35873libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
35874library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
35875soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
35876install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
35877postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35878postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35879finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
35880finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
35881hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
35882sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
35883sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
35884hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
35885enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
35886enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
35887enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
35888old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
35889striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
35890compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
35891predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
35892postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
35893predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
35894postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
35895compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
35896LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
35897reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
35898reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35899old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35900compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
35901GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
35902lt_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 +000035903lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035904lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035905lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
35906lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
35907archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
35908enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
35909export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35910whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35911compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
35912old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35913old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35914archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35915archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35916module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35917module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35918with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
35919allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35920no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35921hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35922hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
35923hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
35924hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
35925hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
35926hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
35927hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
35928hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
35929inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
35930link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035931always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
35932export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35933exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35934include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35935prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000035936postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000035937file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
35938hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
35939compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
35940predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35941postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35942predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
35943postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
35944compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000035945
35946LTCC='$LTCC'
35947LTCFLAGS='$LTCFLAGS'
35948compiler='$compiler_DEFAULT'
35949
cristy0c60a692010-11-04 01:09:47 +000035950# A function that is used when there is no print builtin or printf.
35951func_fallback_echo ()
35952{
35953 eval 'cat <<_LTECHO_EOF
35954\$1
35955_LTECHO_EOF'
35956}
35957
cristy73bd4a52010-10-05 11:24:23 +000035958# Quote evaled strings.
35959for var in SED \
35960GREP \
35961EGREP \
35962FGREP \
cristy0c60a692010-11-04 01:09:47 +000035963SHELL \
35964ECHO \
cristy73bd4a52010-10-05 11:24:23 +000035965LD \
cristy0c60a692010-11-04 01:09:47 +000035966AS \
35967DLLTOOL \
35968OBJDUMP \
cristy73bd4a52010-10-05 11:24:23 +000035969NM \
35970LN_S \
35971lt_SP2NL \
35972lt_NL2SP \
35973reload_flag \
35974deplibs_check_method \
35975file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000035976file_magic_glob \
35977want_nocaseglob \
35978sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000035979AR \
35980AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000035981archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000035982STRIP \
35983RANLIB \
35984CC \
35985CFLAGS \
35986compiler \
35987lt_cv_sys_global_symbol_pipe \
35988lt_cv_sys_global_symbol_to_cdecl \
35989lt_cv_sys_global_symbol_to_c_name_address \
35990lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000035991nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000035992lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000035993lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000035994lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000035995lt_prog_compiler_static \
35996lt_cv_prog_compiler_c_o \
35997need_locks \
cristyda16f162011-02-19 23:52:17 +000035998MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000035999DSYMUTIL \
36000NMEDIT \
36001LIPO \
36002OTOOL \
36003OTOOL64 \
36004shrext_cmds \
36005export_dynamic_flag_spec \
36006whole_archive_flag_spec \
36007compiler_needs_object \
36008with_gnu_ld \
36009allow_undefined_flag \
36010no_undefined_flag \
36011hardcode_libdir_flag_spec \
36012hardcode_libdir_flag_spec_ld \
36013hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036014exclude_expsyms \
36015include_expsyms \
36016file_list_spec \
36017variables_saved_for_relink \
36018libname_spec \
36019library_names_spec \
36020soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036021install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036022finish_eval \
36023old_striplib \
36024striplib \
36025compiler_lib_search_dirs \
36026predep_objects \
36027postdep_objects \
36028predeps \
36029postdeps \
36030compiler_lib_search_path \
36031LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036032reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036033compiler_CXX \
36034lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036035lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036036lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036037lt_prog_compiler_static_CXX \
36038lt_cv_prog_compiler_c_o_CXX \
36039export_dynamic_flag_spec_CXX \
36040whole_archive_flag_spec_CXX \
36041compiler_needs_object_CXX \
36042with_gnu_ld_CXX \
36043allow_undefined_flag_CXX \
36044no_undefined_flag_CXX \
36045hardcode_libdir_flag_spec_CXX \
36046hardcode_libdir_flag_spec_ld_CXX \
36047hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036048exclude_expsyms_CXX \
36049include_expsyms_CXX \
36050file_list_spec_CXX \
36051compiler_lib_search_dirs_CXX \
36052predep_objects_CXX \
36053postdep_objects_CXX \
36054predeps_CXX \
36055postdeps_CXX \
36056compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036057 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036058 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036059 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036060 ;;
36061 *)
36062 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36063 ;;
36064 esac
36065done
36066
36067# Double-quote double-evaled strings.
36068for var in reload_cmds \
36069old_postinstall_cmds \
36070old_postuninstall_cmds \
36071old_archive_cmds \
36072extract_expsyms_cmds \
36073old_archive_from_new_cmds \
36074old_archive_from_expsyms_cmds \
36075archive_cmds \
36076archive_expsym_cmds \
36077module_cmds \
36078module_expsym_cmds \
36079export_symbols_cmds \
36080prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036081postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036082postinstall_cmds \
36083postuninstall_cmds \
36084finish_cmds \
36085sys_lib_search_path_spec \
36086sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036087reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036088old_archive_cmds_CXX \
36089old_archive_from_new_cmds_CXX \
36090old_archive_from_expsyms_cmds_CXX \
36091archive_cmds_CXX \
36092archive_expsym_cmds_CXX \
36093module_cmds_CXX \
36094module_expsym_cmds_CXX \
36095export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036096prelink_cmds_CXX \
36097postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036098 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036099 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036100 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036101 ;;
36102 *)
36103 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36104 ;;
36105 esac
36106done
36107
cristy73bd4a52010-10-05 11:24:23 +000036108ac_aux_dir='$ac_aux_dir'
36109xsi_shell='$xsi_shell'
36110lt_shell_append='$lt_shell_append'
36111
36112# See if we are running on zsh, and set the options which allow our
36113# commands through without removal of \ escapes INIT.
36114if test -n "\${ZSH_VERSION+set}" ; then
36115 setopt NO_GLOB_SUBST
36116fi
36117
36118
36119 PACKAGE='$PACKAGE'
36120 VERSION='$VERSION'
36121 TIMESTAMP='$TIMESTAMP'
36122 RM='$RM'
36123 ofile='$ofile'
36124
36125
36126
36127
36128
36129
cristy3ed852e2009-09-05 21:47:34 +000036130_ACEOF
36131
36132cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36133
36134# Handling of arguments.
36135for ac_config_target in $ac_config_targets
36136do
36137 case $ac_config_target in
36138 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000036139 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036140 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36141 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36142 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36143 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36144 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036145 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036146 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36147 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36148 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36149 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36150 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036151 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036152 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
36153 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036154 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36155 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36156 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036157 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36158 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
36159 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36160 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36161 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
36162 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36163 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36164 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36165 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36166 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36167 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36168 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36169 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36170 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36171 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36172 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36173 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036174 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36175 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036176 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36177 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036178 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36179 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036180 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036181 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36182 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36183
cristy98dddb52010-11-04 00:30:15 +000036184 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036185 esac
36186done
36187
36188
36189# If the user did not use the arguments to specify the items to instantiate,
36190# then the envvar interface is used. Set only those that are not.
36191# We use the long form for the default assignment because of an extremely
36192# bizarre bug on SunOS 4.1.3.
36193if $ac_need_defaults; then
36194 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36195 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36196 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36197fi
36198
36199# Have a temporary directory for convenience. Make it in the build tree
36200# simply because there is no reason against having it here, and in addition,
36201# creating and moving files from /tmp can sometimes cause problems.
36202# Hook for its removal unless debugging.
36203# Note that there is a small window in which the directory will not be cleaned:
36204# after its creation but before its name has been assigned to `$tmp'.
36205$debug ||
36206{
cristyda16f162011-02-19 23:52:17 +000036207 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036208 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036209 : "${ac_tmp:=$tmp}"
36210 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036211' 0
cristy8b350f62009-11-15 23:12:43 +000036212 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036213}
36214# Create a (secure) tmp directory for tmp files.
36215
36216{
36217 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036218 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036219} ||
36220{
36221 tmp=./conf$$-$RANDOM
36222 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036223} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036224ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036225
36226# Set up the scripts for CONFIG_FILES section.
36227# No need to generate them if there are no CONFIG_FILES.
36228# This happens for instance with `./config.status config.h'.
36229if test -n "$CONFIG_FILES"; then
36230
36231
cristy8b350f62009-11-15 23:12:43 +000036232ac_cr=`echo X | tr X '\015'`
36233# On cygwin, bash can eat \r inside `` if the user requested igncr.
36234# But we know of no other shell where ac_cr would be empty at this
36235# point, so we can use a bashism as a fallback.
36236if test "x$ac_cr" = x; then
36237 eval ac_cr=\$\'\\r\'
36238fi
cristy3ed852e2009-09-05 21:47:34 +000036239ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36240if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036241 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036242else
36243 ac_cs_awk_cr=$ac_cr
36244fi
36245
cristyda16f162011-02-19 23:52:17 +000036246echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036247_ACEOF
36248
36249
36250{
36251 echo "cat >conf$$subs.awk <<_ACEOF" &&
36252 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36253 echo "_ACEOF"
36254} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036255 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36256ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036257ac_delim='%!_!# '
36258for ac_last_try in false false false false false :; do
36259 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036260 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036261
36262 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36263 if test $ac_delim_n = $ac_delim_num; then
36264 break
36265 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036266 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036267 else
36268 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36269 fi
36270done
36271rm -f conf$$subs.sh
36272
36273cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036274cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036275_ACEOF
36276sed -n '
36277h
36278s/^/S["/; s/!.*/"]=/
36279p
36280g
36281s/^[^!]*!//
36282:repl
36283t repl
36284s/'"$ac_delim"'$//
36285t delim
36286:nl
36287h
cristycd4c5312009-11-22 01:19:08 +000036288s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036289t more1
36290s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36291p
36292n
36293b repl
36294:more1
36295s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36296p
36297g
36298s/.\{148\}//
36299t nl
36300:delim
36301h
cristycd4c5312009-11-22 01:19:08 +000036302s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036303t more2
36304s/["\\]/\\&/g; s/^/"/; s/$/"/
36305p
36306b
36307:more2
36308s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36309p
36310g
36311s/.\{148\}//
36312t delim
36313' <conf$$subs.awk | sed '
36314/^[^""]/{
36315 N
36316 s/\n//
36317}
36318' >>$CONFIG_STATUS || ac_write_fail=1
36319rm -f conf$$subs.awk
36320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36321_ACAWK
cristyda16f162011-02-19 23:52:17 +000036322cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036323 for (key in S) S_is_set[key] = 1
36324 FS = ""
36325
36326}
36327{
36328 line = $ 0
36329 nfields = split(line, field, "@")
36330 substed = 0
36331 len = length(field[1])
36332 for (i = 2; i < nfields; i++) {
36333 key = field[i]
36334 keylen = length(key)
36335 if (S_is_set[key]) {
36336 value = S[key]
36337 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36338 len += length(value) + length(field[++i])
36339 substed = 1
36340 } else
36341 len += 1 + keylen
36342 }
36343
36344 print line
36345}
36346
36347_ACAWK
36348_ACEOF
36349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36350if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36351 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36352else
36353 cat
cristyda16f162011-02-19 23:52:17 +000036354fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000036355 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036356_ACEOF
36357
cristy98dddb52010-11-04 00:30:15 +000036358# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36359# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000036360# trailing colons and then remove the whole line if VPATH becomes empty
36361# (actually we leave an empty line to preserve line numbers).
36362if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000036363 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36364h
36365s///
36366s/^/:/
36367s/[ ]*$/:/
36368s/:\$(srcdir):/:/g
36369s/:\${srcdir}:/:/g
36370s/:@srcdir@:/:/g
36371s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000036372s/:*$//
cristy98dddb52010-11-04 00:30:15 +000036373x
36374s/\(=[ ]*\).*/\1/
36375G
36376s/\n//
cristy3ed852e2009-09-05 21:47:34 +000036377s/^[^=]*=[ ]*$//
36378}'
36379fi
36380
36381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36382fi # test -n "$CONFIG_FILES"
36383
36384# Set up the scripts for CONFIG_HEADERS section.
36385# No need to generate them if there are no CONFIG_HEADERS.
36386# This happens for instance with `./config.status Makefile'.
36387if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000036388cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000036389BEGIN {
36390_ACEOF
36391
36392# Transform confdefs.h into an awk script `defines.awk', embedded as
36393# here-document in config.status, that substitutes the proper values into
36394# config.h.in to produce config.h.
36395
36396# Create a delimiter string that does not exist in confdefs.h, to ease
36397# handling of long lines.
36398ac_delim='%!_!# '
36399for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000036400 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36401 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000036402 break
36403 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036404 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036405 else
36406 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36407 fi
36408done
36409
36410# For the awk script, D is an array of macro values keyed by name,
36411# likewise P contains macro parameters if any. Preserve backslash
36412# newline sequences.
36413
36414ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36415sed -n '
36416s/.\{148\}/&'"$ac_delim"'/g
36417t rset
36418:rset
36419s/^[ ]*#[ ]*define[ ][ ]*/ /
36420t def
36421d
36422:def
36423s/\\$//
36424t bsnl
36425s/["\\]/\\&/g
36426s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36427D["\1"]=" \3"/p
36428s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36429d
36430:bsnl
36431s/["\\]/\\&/g
36432s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36433D["\1"]=" \3\\\\\\n"\\/p
36434t cont
36435s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36436t cont
36437d
36438:cont
36439n
36440s/.\{148\}/&'"$ac_delim"'/g
36441t clear
36442:clear
36443s/\\$//
36444t bsnlc
36445s/["\\]/\\&/g; s/^/"/; s/$/"/p
36446d
36447:bsnlc
36448s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36449b cont
36450' <confdefs.h | sed '
36451s/'"$ac_delim"'/"\\\
36452"/g' >>$CONFIG_STATUS || ac_write_fail=1
36453
36454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36455 for (key in D) D_is_set[key] = 1
36456 FS = ""
36457}
36458/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36459 line = \$ 0
36460 split(line, arg, " ")
36461 if (arg[1] == "#") {
36462 defundef = arg[2]
36463 mac1 = arg[3]
36464 } else {
36465 defundef = substr(arg[1], 2)
36466 mac1 = arg[2]
36467 }
36468 split(mac1, mac2, "(") #)
36469 macro = mac2[1]
36470 prefix = substr(line, 1, index(line, defundef) - 1)
36471 if (D_is_set[macro]) {
36472 # Preserve the white space surrounding the "#".
36473 print prefix "define", macro P[macro] D[macro]
36474 next
36475 } else {
36476 # Replace #undef with comments. This is necessary, for example,
36477 # in the case of _POSIX_SOURCE, which is predefined and required
36478 # on some systems where configure will not decide to define it.
36479 if (defundef == "undef") {
36480 print "/*", prefix defundef, macro, "*/"
36481 next
36482 }
36483 }
36484}
36485{ print }
36486_ACAWK
36487_ACEOF
36488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000036489 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036490fi # test -n "$CONFIG_HEADERS"
36491
36492
36493eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36494shift
36495for ac_tag
36496do
36497 case $ac_tag in
36498 :[FHLC]) ac_mode=$ac_tag; continue;;
36499 esac
36500 case $ac_mode$ac_tag in
36501 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000036502 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036503 :[FH]-) ac_tag=-:-;;
36504 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36505 esac
36506 ac_save_IFS=$IFS
36507 IFS=:
36508 set x $ac_tag
36509 IFS=$ac_save_IFS
36510 shift
36511 ac_file=$1
36512 shift
36513
36514 case $ac_mode in
36515 :L) ac_source=$1;;
36516 :[FH])
36517 ac_file_inputs=
36518 for ac_f
36519 do
36520 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000036521 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000036522 *) # Look for the file first in the build tree, then in the source tree
36523 # (if the path is not absolute). The absolute path cannot be DOS-style,
36524 # because $ac_f cannot contain `:'.
36525 test -f "$ac_f" ||
36526 case $ac_f in
36527 [\\/$]*) false;;
36528 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36529 esac ||
cristy98dddb52010-11-04 00:30:15 +000036530 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036531 esac
36532 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000036533 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000036534 done
36535
36536 # Let's still pretend it is `configure' which instantiates (i.e., don't
36537 # use $as_me), people would be surprised to read:
36538 # /* config.h. Generated by config.status. */
36539 configure_input='Generated from '`
36540 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36541 `' by configure.'
36542 if test x"$ac_file" != x-; then
36543 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000036544 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036545$as_echo "$as_me: creating $ac_file" >&6;}
36546 fi
36547 # Neutralize special characters interpreted by sed in replacement strings.
36548 case $configure_input in #(
36549 *\&* | *\|* | *\\* )
36550 ac_sed_conf_input=`$as_echo "$configure_input" |
36551 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36552 *) ac_sed_conf_input=$configure_input;;
36553 esac
36554
36555 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000036556 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000036557 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000036558 esac
36559 ;;
36560 esac
36561
36562 ac_dir=`$as_dirname -- "$ac_file" ||
36563$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36564 X"$ac_file" : 'X\(//\)[^/]' \| \
36565 X"$ac_file" : 'X\(//\)$' \| \
36566 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36567$as_echo X"$ac_file" |
36568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36569 s//\1/
36570 q
36571 }
36572 /^X\(\/\/\)[^/].*/{
36573 s//\1/
36574 q
36575 }
36576 /^X\(\/\/\)$/{
36577 s//\1/
36578 q
36579 }
36580 /^X\(\/\).*/{
36581 s//\1/
36582 q
36583 }
36584 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000036585 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036586 ac_builddir=.
36587
36588case "$ac_dir" in
36589.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36590*)
36591 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36592 # A ".." for each directory in $ac_dir_suffix.
36593 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36594 case $ac_top_builddir_sub in
36595 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36596 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36597 esac ;;
36598esac
36599ac_abs_top_builddir=$ac_pwd
36600ac_abs_builddir=$ac_pwd$ac_dir_suffix
36601# for backward compatibility:
36602ac_top_builddir=$ac_top_build_prefix
36603
36604case $srcdir in
36605 .) # We are building in place.
36606 ac_srcdir=.
36607 ac_top_srcdir=$ac_top_builddir_sub
36608 ac_abs_top_srcdir=$ac_pwd ;;
36609 [\\/]* | ?:[\\/]* ) # Absolute name.
36610 ac_srcdir=$srcdir$ac_dir_suffix;
36611 ac_top_srcdir=$srcdir
36612 ac_abs_top_srcdir=$srcdir ;;
36613 *) # Relative name.
36614 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36615 ac_top_srcdir=$ac_top_build_prefix$srcdir
36616 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36617esac
36618ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36619
36620
36621 case $ac_mode in
36622 :F)
36623 #
36624 # CONFIG_FILE
36625 #
36626
36627 case $INSTALL in
36628 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36629 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36630 esac
cristy73bd4a52010-10-05 11:24:23 +000036631 ac_MKDIR_P=$MKDIR_P
36632 case $MKDIR_P in
36633 [\\/$]* | ?:[\\/]* ) ;;
36634 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36635 esac
cristy3ed852e2009-09-05 21:47:34 +000036636_ACEOF
36637
36638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36639# If the template does not know about datarootdir, expand it.
36640# FIXME: This hack should be removed a few years after 2.60.
36641ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000036642ac_sed_dataroot='
36643/datarootdir/ {
36644 p
36645 q
36646}
36647/@datadir@/p
36648/@docdir@/p
36649/@infodir@/p
36650/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000036651/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000036652case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36653*datarootdir*) ac_datarootdir_seen=yes;;
36654*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000036655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000036656$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36657_ACEOF
36658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36659 ac_datarootdir_hack='
36660 s&@datadir@&$datadir&g
36661 s&@docdir@&$docdir&g
36662 s&@infodir@&$infodir&g
36663 s&@localedir@&$localedir&g
36664 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000036665 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000036666esac
36667_ACEOF
36668
36669# Neutralize VPATH when `$srcdir' = `.'.
36670# Shell code in configure.ac might set extrasub.
36671# FIXME: do we really want to maintain this feature?
36672cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36673ac_sed_extra="$ac_vpsub
36674$extrasub
36675_ACEOF
36676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36677:t
36678/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36679s|@configure_input@|$ac_sed_conf_input|;t t
36680s&@top_builddir@&$ac_top_builddir_sub&;t t
36681s&@top_build_prefix@&$ac_top_build_prefix&;t t
36682s&@srcdir@&$ac_srcdir&;t t
36683s&@abs_srcdir@&$ac_abs_srcdir&;t t
36684s&@top_srcdir@&$ac_top_srcdir&;t t
36685s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36686s&@builddir@&$ac_builddir&;t t
36687s&@abs_builddir@&$ac_abs_builddir&;t t
36688s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36689s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000036690s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000036691$ac_datarootdir_hack
36692"
cristyda16f162011-02-19 23:52:17 +000036693eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36694 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036695
36696test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000036697 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36698 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36699 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000036700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036701which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000036702$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036703which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000036704
cristyda16f162011-02-19 23:52:17 +000036705 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000036706 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000036707 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36708 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000036709 esac \
cristy98dddb52010-11-04 00:30:15 +000036710 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036711 ;;
36712 :H)
36713 #
36714 # CONFIG_HEADER
36715 #
36716 if test x"$ac_file" != x-; then
36717 {
36718 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036719 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36720 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000036721 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036722 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000036723 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000036724$as_echo "$as_me: $ac_file is unchanged" >&6;}
36725 else
36726 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000036727 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000036728 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036729 fi
36730 else
36731 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036732 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000036733 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036734 fi
cristy73bd4a52010-10-05 11:24:23 +000036735# Compute "$ac_file"'s index in $config_headers.
36736_am_arg="$ac_file"
36737_am_stamp_count=1
36738for _am_header in $config_headers :; do
36739 case $_am_header in
36740 $_am_arg | $_am_arg:* )
36741 break ;;
36742 * )
36743 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36744 esac
36745done
36746echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
36747$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36748 X"$_am_arg" : 'X\(//\)[^/]' \| \
36749 X"$_am_arg" : 'X\(//\)$' \| \
36750 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
36751$as_echo X"$_am_arg" |
36752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36753 s//\1/
36754 q
36755 }
36756 /^X\(\/\/\)[^/].*/{
36757 s//\1/
36758 q
36759 }
36760 /^X\(\/\/\)$/{
36761 s//\1/
36762 q
36763 }
36764 /^X\(\/\).*/{
36765 s//\1/
36766 q
36767 }
36768 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000036769 ;;
36770
cristy8b350f62009-11-15 23:12:43 +000036771 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000036772$as_echo "$as_me: executing $ac_file commands" >&6;}
36773 ;;
36774 esac
36775
36776
36777 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000036778 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000036779ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
36780ac_prefix_conf_PKG=`echo MagickCore`
36781ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
36782ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
36783ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
36784if test ".$ac_prefix_conf_INP" = "."; then
36785 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
36786 case "$ac_file" in
36787 *.h) ac_prefix_conf_INP=$ac_file ;;
36788 *)
36789 esac
36790 test ".$ac_prefix_conf_INP" != "." && break
36791 done
36792fi
36793if test ".$ac_prefix_conf_INP" = "."; then
36794 case "$ac_prefix_conf_OUT" in
36795 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
36796 ;;
36797 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
36798 ;;
36799 *) ac_prefix_conf_INP=config.h
36800 ;;
36801 esac
36802fi
36803if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000036804 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000036805else
36806 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
36807 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
36808 fi fi
36809 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
36810$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
36811 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000036812 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
36813 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
36814 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
36815 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
36816 $as_echo "#endif/" >> conftest.prefix
36817 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
36818 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
36819 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000036820 # now executing _script on _DEF input to create _OUT output file
36821 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
36822 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
36823 echo ' ' >>$tmp/pconfig.h
36824 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
36825
36826 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
36827 echo ' ' >>$tmp/pconfig.h
36828 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
36829 echo "#endif" >>$tmp/pconfig.h
36830 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
36831 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
36832$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
36833 else
36834 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
36835$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36836 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
36837 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
36838 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
36839$as_echo X"$ac_prefix_conf_OUT" |
36840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36841 s//\1/
36842 q
36843 }
36844 /^X\(\/\/\)[^/].*/{
36845 s//\1/
36846 q
36847 }
36848 /^X\(\/\/\)$/{
36849 s//\1/
36850 q
36851 }
36852 /^X\(\/\).*/{
36853 s//\1/
36854 q
36855 }
36856 s/.*/./; q'`
36857 as_dir="$ac_dir"; as_fn_mkdir_p
36858 rm -f "$ac_prefix_conf_OUT"
36859 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
36860 fi
36861 cp conftest.prefix _configs.sed
36862 else
cristy98dddb52010-11-04 00:30:15 +000036863 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 +000036864 fi
36865 rm -f conftest.*
36866fi
36867 ;;
36868 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
36869 # Autoconf 2.62 quotes --file arguments for eval, but not when files
36870 # are listed without --file. Let's play safe and only enable the eval
36871 # if we detect the quoting.
36872 case $CONFIG_FILES in
36873 *\'*) eval set x "$CONFIG_FILES" ;;
36874 *) set x $CONFIG_FILES ;;
36875 esac
36876 shift
36877 for mf
36878 do
36879 # Strip MF so we end up with the name of the file.
36880 mf=`echo "$mf" | sed -e 's/:.*$//'`
36881 # Check whether this is an Automake generated Makefile or not.
36882 # We used to match only the files named `Makefile.in', but
36883 # some people rename them; so instead we look at the file content.
36884 # Grep'ing the first line is not enough: some people post-process
36885 # each Makefile.in and add a new line on top of each file to say so.
36886 # Grep'ing the whole file is not good either: AIX grep has a line
36887 # limit of 2048, but all sed's we know have understand at least 4000.
36888 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
36889 dirpart=`$as_dirname -- "$mf" ||
36890$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36891 X"$mf" : 'X\(//\)[^/]' \| \
36892 X"$mf" : 'X\(//\)$' \| \
36893 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
36894$as_echo X"$mf" |
36895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36896 s//\1/
36897 q
36898 }
36899 /^X\(\/\/\)[^/].*/{
36900 s//\1/
36901 q
36902 }
36903 /^X\(\/\/\)$/{
36904 s//\1/
36905 q
36906 }
36907 /^X\(\/\).*/{
36908 s//\1/
36909 q
36910 }
36911 s/.*/./; q'`
36912 else
36913 continue
36914 fi
36915 # Extract the definition of DEPDIR, am__include, and am__quote
36916 # from the Makefile without running `make'.
36917 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
36918 test -z "$DEPDIR" && continue
36919 am__include=`sed -n 's/^am__include = //p' < "$mf"`
36920 test -z "am__include" && continue
36921 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
36922 # When using ansi2knr, U may be empty or an underscore; expand it
36923 U=`sed -n 's/^U = //p' < "$mf"`
36924 # Find all dependency output files, they are included files with
36925 # $(DEPDIR) in their names. We invoke sed twice because it is the
36926 # simplest approach to changing $(DEPDIR) to its actual value in the
36927 # expansion.
36928 for file in `sed -n "
36929 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
36930 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
36931 # Make sure the directory exists.
36932 test -f "$dirpart/$file" && continue
36933 fdir=`$as_dirname -- "$file" ||
36934$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36935 X"$file" : 'X\(//\)[^/]' \| \
36936 X"$file" : 'X\(//\)$' \| \
36937 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
36938$as_echo X"$file" |
36939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36940 s//\1/
36941 q
36942 }
36943 /^X\(\/\/\)[^/].*/{
36944 s//\1/
36945 q
36946 }
36947 /^X\(\/\/\)$/{
36948 s//\1/
36949 q
36950 }
36951 /^X\(\/\).*/{
36952 s//\1/
36953 q
36954 }
36955 s/.*/./; q'`
36956 as_dir=$dirpart/$fdir; as_fn_mkdir_p
36957 # echo "creating $dirpart/$file"
36958 echo '# dummy' > "$dirpart/$file"
36959 done
36960 done
36961}
36962 ;;
36963 "libtool":C)
36964
36965 # See if we are running on zsh, and set the options which allow our
36966 # commands through without removal of \ escapes.
36967 if test -n "${ZSH_VERSION+set}" ; then
36968 setopt NO_GLOB_SUBST
36969 fi
36970
36971 cfgfile="${ofile}T"
36972 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
36973 $RM "$cfgfile"
36974
36975 cat <<_LT_EOF >> "$cfgfile"
36976#! $SHELL
36977
36978# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
36979# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
36980# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
36981# NOTE: Changes made to this file will be lost: look at ltmain.sh.
36982#
36983# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy0c60a692010-11-04 01:09:47 +000036984# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
36985# Inc.
cristy73bd4a52010-10-05 11:24:23 +000036986# Written by Gordon Matzigkeit, 1996
36987#
36988# This file is part of GNU Libtool.
36989#
36990# GNU Libtool is free software; you can redistribute it and/or
36991# modify it under the terms of the GNU General Public License as
36992# published by the Free Software Foundation; either version 2 of
36993# the License, or (at your option) any later version.
36994#
36995# As a special exception to the GNU General Public License,
36996# if you distribute this file as part of a program or library that
36997# is built using GNU Libtool, you may include this file under the
36998# same distribution terms that you use for the rest of that program.
36999#
37000# GNU Libtool is distributed in the hope that it will be useful,
37001# but WITHOUT ANY WARRANTY; without even the implied warranty of
37002# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37003# GNU General Public License for more details.
37004#
37005# You should have received a copy of the GNU General Public License
37006# along with GNU Libtool; see the file COPYING. If not, a copy
37007# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37008# obtained by writing to the Free Software Foundation, Inc.,
37009# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37010
37011
37012# The names of the tagged configurations supported by this script.
37013available_tags="CXX "
37014
37015# ### BEGIN LIBTOOL CONFIG
37016
37017# A sed program that does not truncate output.
37018SED=$lt_SED
37019
37020# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37021Xsed="\$SED -e 1s/^X//"
37022
37023# A grep program that handles long lines.
37024GREP=$lt_GREP
37025
37026# An ERE matcher.
37027EGREP=$lt_EGREP
37028
37029# A literal string matcher.
37030FGREP=$lt_FGREP
37031
cristy0c60a692010-11-04 01:09:47 +000037032# Shell to use when invoking shell scripts.
37033SHELL=$lt_SHELL
37034
37035# An echo program that protects backslashes.
37036ECHO=$lt_ECHO
37037
cristy73bd4a52010-10-05 11:24:23 +000037038# Which release of libtool.m4 was used?
37039macro_version=$macro_version
37040macro_revision=$macro_revision
37041
37042# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037043AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037044
37045# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037046DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037047
37048# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037049OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037050
37051# Whether or not to build shared libraries.
37052build_libtool_libs=$enable_shared
37053
37054# Whether or not to build static libraries.
37055build_old_libs=$enable_static
37056
37057# What type of objects to build.
37058pic_mode=$pic_mode
37059
37060# Whether or not to optimize for fast installation.
37061fast_install=$enable_fast_install
37062
37063# The host system.
37064host_alias=$host_alias
37065host=$host
37066host_os=$host_os
37067
37068# The build system.
37069build_alias=$build_alias
37070build=$build
37071build_os=$build_os
37072
37073# A BSD- or MS-compatible name lister.
37074NM=$lt_NM
37075
37076# Whether we need soft or hard links.
37077LN_S=$lt_LN_S
37078
37079# What is the maximum length of a command?
37080max_cmd_len=$max_cmd_len
37081
37082# Object file suffix (normally "o").
37083objext=$ac_objext
37084
37085# Executable file suffix (normally "").
37086exeext=$exeext
37087
37088# whether the shell understands "unset".
37089lt_unset=$lt_unset
37090
37091# turn spaces into newlines.
37092SP2NL=$lt_lt_SP2NL
37093
37094# turn newlines into spaces.
37095NL2SP=$lt_lt_NL2SP
37096
cristyda16f162011-02-19 23:52:17 +000037097# convert \$build file names to \$host format.
37098to_host_file_cmd=$lt_cv_to_host_file_cmd
37099
37100# convert \$build files to toolchain format.
37101to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37102
cristy73bd4a52010-10-05 11:24:23 +000037103# Method to check whether dependent libraries are shared objects.
37104deplibs_check_method=$lt_deplibs_check_method
37105
cristyda16f162011-02-19 23:52:17 +000037106# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037107file_magic_cmd=$lt_file_magic_cmd
37108
cristyda16f162011-02-19 23:52:17 +000037109# How to find potential files when deplibs_check_method = "file_magic".
37110file_magic_glob=$lt_file_magic_glob
37111
37112# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37113want_nocaseglob=$lt_want_nocaseglob
37114
37115# Command to associate shared and link libraries.
37116sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37117
cristy73bd4a52010-10-05 11:24:23 +000037118# The archiver.
37119AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037120
37121# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037122AR_FLAGS=$lt_AR_FLAGS
37123
cristyda16f162011-02-19 23:52:17 +000037124# How to feed a file listing to the archiver.
37125archiver_list_spec=$lt_archiver_list_spec
37126
cristy73bd4a52010-10-05 11:24:23 +000037127# A symbol stripping program.
37128STRIP=$lt_STRIP
37129
37130# Commands used to install an old-style archive.
37131RANLIB=$lt_RANLIB
37132old_postinstall_cmds=$lt_old_postinstall_cmds
37133old_postuninstall_cmds=$lt_old_postuninstall_cmds
37134
cristy0c60a692010-11-04 01:09:47 +000037135# Whether to use a lock for old archive extraction.
37136lock_old_archive_extraction=$lock_old_archive_extraction
37137
cristy73bd4a52010-10-05 11:24:23 +000037138# A C compiler.
37139LTCC=$lt_CC
37140
37141# LTCC compiler flags.
37142LTCFLAGS=$lt_CFLAGS
37143
37144# Take the output of nm and produce a listing of raw symbols and C names.
37145global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37146
37147# Transform the output of nm in a proper C declaration.
37148global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37149
37150# Transform the output of nm in a C name address pair.
37151global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37152
37153# Transform the output of nm in a C name address pair when lib prefix is needed.
37154global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37155
cristyda16f162011-02-19 23:52:17 +000037156# Specify filename containing input files for \$NM.
37157nm_file_list_spec=$lt_nm_file_list_spec
37158
37159# The root where to search for dependent libraries,and in which our libraries should be installed.
37160lt_sysroot=$lt_sysroot
37161
cristy73bd4a52010-10-05 11:24:23 +000037162# The name of the directory that contains temporary libtool files.
37163objdir=$objdir
37164
cristy73bd4a52010-10-05 11:24:23 +000037165# Used to examine libraries when file_magic_cmd begins with "file".
37166MAGIC_CMD=$MAGIC_CMD
37167
37168# Must we lock files when doing compilation?
37169need_locks=$lt_need_locks
37170
cristyda16f162011-02-19 23:52:17 +000037171# Manifest tool.
37172MANIFEST_TOOL=$lt_MANIFEST_TOOL
37173
cristy73bd4a52010-10-05 11:24:23 +000037174# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37175DSYMUTIL=$lt_DSYMUTIL
37176
37177# Tool to change global to local symbols on Mac OS X.
37178NMEDIT=$lt_NMEDIT
37179
37180# Tool to manipulate fat objects and archives on Mac OS X.
37181LIPO=$lt_LIPO
37182
37183# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37184OTOOL=$lt_OTOOL
37185
37186# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37187OTOOL64=$lt_OTOOL64
37188
37189# Old archive suffix (normally "a").
37190libext=$libext
37191
37192# Shared library suffix (normally ".so").
37193shrext_cmds=$lt_shrext_cmds
37194
37195# The commands to extract the exported symbol list from a shared archive.
37196extract_expsyms_cmds=$lt_extract_expsyms_cmds
37197
37198# Variables whose values should be saved in libtool wrapper scripts and
37199# restored at link time.
37200variables_saved_for_relink=$lt_variables_saved_for_relink
37201
37202# Do we need the "lib" prefix for modules?
37203need_lib_prefix=$need_lib_prefix
37204
37205# Do we need a version for libraries?
37206need_version=$need_version
37207
37208# Library versioning type.
37209version_type=$version_type
37210
37211# Shared library runtime path variable.
37212runpath_var=$runpath_var
37213
37214# Shared library path variable.
37215shlibpath_var=$shlibpath_var
37216
37217# Is shlibpath searched before the hard-coded library search path?
37218shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37219
37220# Format of library name prefix.
37221libname_spec=$lt_libname_spec
37222
37223# List of archive names. First name is the real one, the rest are links.
37224# The last name is the one that the linker finds with -lNAME
37225library_names_spec=$lt_library_names_spec
37226
37227# The coded name of the library, if different from the real name.
37228soname_spec=$lt_soname_spec
37229
cristy0c60a692010-11-04 01:09:47 +000037230# Permission mode override for installation of shared libraries.
37231install_override_mode=$lt_install_override_mode
37232
cristy73bd4a52010-10-05 11:24:23 +000037233# Command to use after installation of a shared archive.
37234postinstall_cmds=$lt_postinstall_cmds
37235
37236# Command to use after uninstallation of a shared archive.
37237postuninstall_cmds=$lt_postuninstall_cmds
37238
37239# Commands used to finish a libtool library installation in a directory.
37240finish_cmds=$lt_finish_cmds
37241
37242# As "finish_cmds", except a single script fragment to be evaled but
37243# not shown.
37244finish_eval=$lt_finish_eval
37245
37246# Whether we should hardcode library paths into libraries.
37247hardcode_into_libs=$hardcode_into_libs
37248
37249# Compile-time system search path for libraries.
37250sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37251
37252# Run-time system search path for libraries.
37253sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37254
37255# Whether dlopen is supported.
37256dlopen_support=$enable_dlopen
37257
37258# Whether dlopen of programs is supported.
37259dlopen_self=$enable_dlopen_self
37260
37261# Whether dlopen of statically linked programs is supported.
37262dlopen_self_static=$enable_dlopen_self_static
37263
37264# Commands to strip libraries.
37265old_striplib=$lt_old_striplib
37266striplib=$lt_striplib
37267
37268
37269# The linker used to build libraries.
37270LD=$lt_LD
37271
cristy0c60a692010-11-04 01:09:47 +000037272# How to create reloadable object files.
37273reload_flag=$lt_reload_flag
37274reload_cmds=$lt_reload_cmds
37275
cristy73bd4a52010-10-05 11:24:23 +000037276# Commands used to build an old-style archive.
37277old_archive_cmds=$lt_old_archive_cmds
37278
37279# A language specific compiler.
37280CC=$lt_compiler
37281
37282# Is the compiler the GNU compiler?
37283with_gcc=$GCC
37284
37285# Compiler flag to turn off builtin functions.
37286no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37287
cristy73bd4a52010-10-05 11:24:23 +000037288# Additional compiler flags for building library objects.
37289pic_flag=$lt_lt_prog_compiler_pic
37290
cristyda16f162011-02-19 23:52:17 +000037291# How to pass a linker flag through the compiler.
37292wl=$lt_lt_prog_compiler_wl
37293
cristy73bd4a52010-10-05 11:24:23 +000037294# Compiler flag to prevent dynamic linking.
37295link_static_flag=$lt_lt_prog_compiler_static
37296
37297# Does compiler simultaneously support -c and -o options?
37298compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37299
37300# Whether or not to add -lc for building shared libraries.
37301build_libtool_need_lc=$archive_cmds_need_lc
37302
37303# Whether or not to disallow shared libs when runtime libs are static.
37304allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37305
37306# Compiler flag to allow reflexive dlopens.
37307export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37308
37309# Compiler flag to generate shared objects directly from archives.
37310whole_archive_flag_spec=$lt_whole_archive_flag_spec
37311
37312# Whether the compiler copes with passing no objects directly.
37313compiler_needs_object=$lt_compiler_needs_object
37314
37315# Create an old-style archive from a shared archive.
37316old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37317
37318# Create a temporary old-style archive to link instead of a shared archive.
37319old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37320
37321# Commands used to build a shared archive.
37322archive_cmds=$lt_archive_cmds
37323archive_expsym_cmds=$lt_archive_expsym_cmds
37324
37325# Commands used to build a loadable module if different from building
37326# a shared archive.
37327module_cmds=$lt_module_cmds
37328module_expsym_cmds=$lt_module_expsym_cmds
37329
37330# Whether we are building with GNU ld or not.
37331with_gnu_ld=$lt_with_gnu_ld
37332
37333# Flag that allows shared libraries with undefined symbols to be built.
37334allow_undefined_flag=$lt_allow_undefined_flag
37335
37336# Flag that enforces no undefined symbols.
37337no_undefined_flag=$lt_no_undefined_flag
37338
37339# Flag to hardcode \$libdir into a binary during linking.
37340# This must work even if \$libdir does not exist
37341hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37342
37343# If ld is used when linking, flag to hardcode \$libdir into a binary
37344# during linking. This must work even if \$libdir does not exist.
37345hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
37346
37347# Whether we need a single "-rpath" flag with a separated argument.
37348hardcode_libdir_separator=$lt_hardcode_libdir_separator
37349
37350# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37351# DIR into the resulting binary.
37352hardcode_direct=$hardcode_direct
37353
37354# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37355# DIR into the resulting binary and the resulting library dependency is
37356# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37357# library is relocated.
37358hardcode_direct_absolute=$hardcode_direct_absolute
37359
37360# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37361# into the resulting binary.
37362hardcode_minus_L=$hardcode_minus_L
37363
37364# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37365# into the resulting binary.
37366hardcode_shlibpath_var=$hardcode_shlibpath_var
37367
37368# Set to "yes" if building a shared library automatically hardcodes DIR
37369# into the library and all subsequent libraries and executables linked
37370# against it.
37371hardcode_automatic=$hardcode_automatic
37372
37373# Set to yes if linker adds runtime paths of dependent libraries
37374# to runtime path list.
37375inherit_rpath=$inherit_rpath
37376
37377# Whether libtool must link a program against all its dependency libraries.
37378link_all_deplibs=$link_all_deplibs
37379
cristy73bd4a52010-10-05 11:24:23 +000037380# Set to "yes" if exported symbols are required.
37381always_export_symbols=$always_export_symbols
37382
37383# The commands to list exported symbols.
37384export_symbols_cmds=$lt_export_symbols_cmds
37385
37386# Symbols that should not be listed in the preloaded symbols.
37387exclude_expsyms=$lt_exclude_expsyms
37388
37389# Symbols that must always be exported.
37390include_expsyms=$lt_include_expsyms
37391
37392# Commands necessary for linking programs (against libraries) with templates.
37393prelink_cmds=$lt_prelink_cmds
37394
cristyda16f162011-02-19 23:52:17 +000037395# Commands necessary for finishing linking programs.
37396postlink_cmds=$lt_postlink_cmds
37397
cristy73bd4a52010-10-05 11:24:23 +000037398# Specify filename containing input files.
37399file_list_spec=$lt_file_list_spec
37400
37401# How to hardcode a shared library path into an executable.
37402hardcode_action=$hardcode_action
37403
37404# The directories searched by this compiler when creating a shared library.
37405compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37406
37407# Dependencies to place before and after the objects being linked to
37408# create a shared library.
37409predep_objects=$lt_predep_objects
37410postdep_objects=$lt_postdep_objects
37411predeps=$lt_predeps
37412postdeps=$lt_postdeps
37413
37414# The library search path used internally by the compiler when linking
37415# a shared library.
37416compiler_lib_search_path=$lt_compiler_lib_search_path
37417
37418# ### END LIBTOOL CONFIG
37419
37420_LT_EOF
37421
37422 case $host_os in
37423 aix3*)
37424 cat <<\_LT_EOF >> "$cfgfile"
37425# AIX sometimes has problems with the GCC collect2 program. For some
37426# reason, if we set the COLLECT_NAMES environment variable, the problems
37427# vanish in a puff of smoke.
37428if test "X${COLLECT_NAMES+set}" != Xset; then
37429 COLLECT_NAMES=
37430 export COLLECT_NAMES
37431fi
37432_LT_EOF
37433 ;;
37434 esac
37435
37436
37437ltmain="$ac_aux_dir/ltmain.sh"
37438
37439
37440 # We use sed instead of cat because bash on DJGPP gets confused if
37441 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37442 # text mode, it properly converts lines to CR/LF. This bash problem
37443 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000037444 sed '$q' "$ltmain" >> "$cfgfile" \
37445 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000037446
cristyda16f162011-02-19 23:52:17 +000037447 if test x"$xsi_shell" = xyes; then
37448 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37449func_dirname ()\
37450{\
37451\ case ${1} in\
37452\ */*) func_dirname_result="${1%/*}${2}" ;;\
37453\ * ) func_dirname_result="${3}" ;;\
37454\ esac\
37455} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37456 && mv -f "$cfgfile.tmp" "$cfgfile" \
37457 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37458test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037459
37460
cristyda16f162011-02-19 23:52:17 +000037461 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37462func_basename ()\
37463{\
37464\ func_basename_result="${1##*/}"\
37465} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37466 && mv -f "$cfgfile.tmp" "$cfgfile" \
37467 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37468test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037469
37470
cristyda16f162011-02-19 23:52:17 +000037471 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37472func_dirname_and_basename ()\
37473{\
37474\ case ${1} in\
37475\ */*) func_dirname_result="${1%/*}${2}" ;;\
37476\ * ) func_dirname_result="${3}" ;;\
37477\ esac\
37478\ func_basename_result="${1##*/}"\
37479} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37480 && mv -f "$cfgfile.tmp" "$cfgfile" \
37481 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37482test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037483
cristyda16f162011-02-19 23:52:17 +000037484
37485 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37486func_stripname ()\
37487{\
37488\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37489\ # positional parameters, so assign one to ordinary parameter first.\
37490\ func_stripname_result=${3}\
37491\ func_stripname_result=${func_stripname_result#"${1}"}\
37492\ func_stripname_result=${func_stripname_result%"${2}"}\
37493} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37494 && mv -f "$cfgfile.tmp" "$cfgfile" \
37495 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37496test 0 -eq $? || _lt_function_replace_fail=:
37497
37498
37499 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37500func_split_long_opt ()\
37501{\
37502\ func_split_long_opt_name=${1%%=*}\
37503\ func_split_long_opt_arg=${1#*=}\
37504} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37505 && mv -f "$cfgfile.tmp" "$cfgfile" \
37506 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37507test 0 -eq $? || _lt_function_replace_fail=:
37508
37509
37510 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37511func_split_short_opt ()\
37512{\
37513\ func_split_short_opt_arg=${1#??}\
37514\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37515} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37516 && mv -f "$cfgfile.tmp" "$cfgfile" \
37517 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37518test 0 -eq $? || _lt_function_replace_fail=:
37519
37520
37521 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37522func_lo2o ()\
37523{\
37524\ case ${1} in\
37525\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37526\ *) func_lo2o_result=${1} ;;\
37527\ esac\
37528} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37529 && mv -f "$cfgfile.tmp" "$cfgfile" \
37530 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37531test 0 -eq $? || _lt_function_replace_fail=:
37532
37533
37534 sed -e '/^func_xform ()$/,/^} # func_xform /c\
37535func_xform ()\
37536{\
37537 func_xform_result=${1%.*}.lo\
37538} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37539 && mv -f "$cfgfile.tmp" "$cfgfile" \
37540 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37541test 0 -eq $? || _lt_function_replace_fail=:
37542
37543
37544 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37545func_arith ()\
37546{\
37547 func_arith_result=$(( $* ))\
37548} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37549 && mv -f "$cfgfile.tmp" "$cfgfile" \
37550 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37551test 0 -eq $? || _lt_function_replace_fail=:
37552
37553
37554 sed -e '/^func_len ()$/,/^} # func_len /c\
37555func_len ()\
37556{\
37557 func_len_result=${#1}\
37558} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37559 && mv -f "$cfgfile.tmp" "$cfgfile" \
37560 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37561test 0 -eq $? || _lt_function_replace_fail=:
37562
37563fi
37564
37565if test x"$lt_shell_append" = xyes; then
37566 sed -e '/^func_append ()$/,/^} # func_append /c\
37567func_append ()\
37568{\
37569 eval "${1}+=\\${2}"\
37570} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37571 && mv -f "$cfgfile.tmp" "$cfgfile" \
37572 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37573test 0 -eq $? || _lt_function_replace_fail=:
37574
37575
37576 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37577func_append_quoted ()\
37578{\
37579\ func_quote_for_eval "${2}"\
37580\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37581} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37582 && mv -f "$cfgfile.tmp" "$cfgfile" \
37583 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37584test 0 -eq $? || _lt_function_replace_fail=:
37585
37586
37587 # Save a `func_append' function call where possible by direct use of '+='
37588 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37589 && mv -f "$cfgfile.tmp" "$cfgfile" \
37590 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37591 test 0 -eq $? || _lt_function_replace_fail=:
37592else
37593 # Save a `func_append' function call even when '+=' is not available
37594 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37595 && mv -f "$cfgfile.tmp" "$cfgfile" \
37596 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37597 test 0 -eq $? || _lt_function_replace_fail=:
37598fi
37599
37600if test x"$_lt_function_replace_fail" = x":"; then
37601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37602$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37603fi
37604
37605
37606 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000037607 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37608 chmod +x "$ofile"
37609
37610
37611 cat <<_LT_EOF >> "$ofile"
37612
37613# ### BEGIN LIBTOOL TAG CONFIG: CXX
37614
37615# The linker used to build libraries.
37616LD=$lt_LD_CXX
37617
cristy0c60a692010-11-04 01:09:47 +000037618# How to create reloadable object files.
37619reload_flag=$lt_reload_flag_CXX
37620reload_cmds=$lt_reload_cmds_CXX
37621
cristy73bd4a52010-10-05 11:24:23 +000037622# Commands used to build an old-style archive.
37623old_archive_cmds=$lt_old_archive_cmds_CXX
37624
37625# A language specific compiler.
37626CC=$lt_compiler_CXX
37627
37628# Is the compiler the GNU compiler?
37629with_gcc=$GCC_CXX
37630
37631# Compiler flag to turn off builtin functions.
37632no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37633
cristy73bd4a52010-10-05 11:24:23 +000037634# Additional compiler flags for building library objects.
37635pic_flag=$lt_lt_prog_compiler_pic_CXX
37636
cristyda16f162011-02-19 23:52:17 +000037637# How to pass a linker flag through the compiler.
37638wl=$lt_lt_prog_compiler_wl_CXX
37639
cristy73bd4a52010-10-05 11:24:23 +000037640# Compiler flag to prevent dynamic linking.
37641link_static_flag=$lt_lt_prog_compiler_static_CXX
37642
37643# Does compiler simultaneously support -c and -o options?
37644compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37645
37646# Whether or not to add -lc for building shared libraries.
37647build_libtool_need_lc=$archive_cmds_need_lc_CXX
37648
37649# Whether or not to disallow shared libs when runtime libs are static.
37650allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37651
37652# Compiler flag to allow reflexive dlopens.
37653export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37654
37655# Compiler flag to generate shared objects directly from archives.
37656whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37657
37658# Whether the compiler copes with passing no objects directly.
37659compiler_needs_object=$lt_compiler_needs_object_CXX
37660
37661# Create an old-style archive from a shared archive.
37662old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37663
37664# Create a temporary old-style archive to link instead of a shared archive.
37665old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37666
37667# Commands used to build a shared archive.
37668archive_cmds=$lt_archive_cmds_CXX
37669archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37670
37671# Commands used to build a loadable module if different from building
37672# a shared archive.
37673module_cmds=$lt_module_cmds_CXX
37674module_expsym_cmds=$lt_module_expsym_cmds_CXX
37675
37676# Whether we are building with GNU ld or not.
37677with_gnu_ld=$lt_with_gnu_ld_CXX
37678
37679# Flag that allows shared libraries with undefined symbols to be built.
37680allow_undefined_flag=$lt_allow_undefined_flag_CXX
37681
37682# Flag that enforces no undefined symbols.
37683no_undefined_flag=$lt_no_undefined_flag_CXX
37684
37685# Flag to hardcode \$libdir into a binary during linking.
37686# This must work even if \$libdir does not exist
37687hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37688
37689# If ld is used when linking, flag to hardcode \$libdir into a binary
37690# during linking. This must work even if \$libdir does not exist.
37691hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
37692
37693# Whether we need a single "-rpath" flag with a separated argument.
37694hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37695
37696# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37697# DIR into the resulting binary.
37698hardcode_direct=$hardcode_direct_CXX
37699
37700# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37701# DIR into the resulting binary and the resulting library dependency is
37702# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37703# library is relocated.
37704hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37705
37706# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37707# into the resulting binary.
37708hardcode_minus_L=$hardcode_minus_L_CXX
37709
37710# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37711# into the resulting binary.
37712hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37713
37714# Set to "yes" if building a shared library automatically hardcodes DIR
37715# into the library and all subsequent libraries and executables linked
37716# against it.
37717hardcode_automatic=$hardcode_automatic_CXX
37718
37719# Set to yes if linker adds runtime paths of dependent libraries
37720# to runtime path list.
37721inherit_rpath=$inherit_rpath_CXX
37722
37723# Whether libtool must link a program against all its dependency libraries.
37724link_all_deplibs=$link_all_deplibs_CXX
37725
cristy73bd4a52010-10-05 11:24:23 +000037726# Set to "yes" if exported symbols are required.
37727always_export_symbols=$always_export_symbols_CXX
37728
37729# The commands to list exported symbols.
37730export_symbols_cmds=$lt_export_symbols_cmds_CXX
37731
37732# Symbols that should not be listed in the preloaded symbols.
37733exclude_expsyms=$lt_exclude_expsyms_CXX
37734
37735# Symbols that must always be exported.
37736include_expsyms=$lt_include_expsyms_CXX
37737
37738# Commands necessary for linking programs (against libraries) with templates.
37739prelink_cmds=$lt_prelink_cmds_CXX
37740
cristyda16f162011-02-19 23:52:17 +000037741# Commands necessary for finishing linking programs.
37742postlink_cmds=$lt_postlink_cmds_CXX
37743
cristy73bd4a52010-10-05 11:24:23 +000037744# Specify filename containing input files.
37745file_list_spec=$lt_file_list_spec_CXX
37746
37747# How to hardcode a shared library path into an executable.
37748hardcode_action=$hardcode_action_CXX
37749
37750# The directories searched by this compiler when creating a shared library.
37751compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
37752
37753# Dependencies to place before and after the objects being linked to
37754# create a shared library.
37755predep_objects=$lt_predep_objects_CXX
37756postdep_objects=$lt_postdep_objects_CXX
37757predeps=$lt_predeps_CXX
37758postdeps=$lt_postdeps_CXX
37759
37760# The library search path used internally by the compiler when linking
37761# a shared library.
37762compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
37763
37764# ### END LIBTOOL TAG CONFIG: CXX
37765_LT_EOF
37766
37767 ;;
cristy4c08aed2011-07-01 19:47:50 +000037768 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000037769 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000037770 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
37771 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
37772
37773 esac
37774done # for ac_tag
37775
37776
cristy8b350f62009-11-15 23:12:43 +000037777as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000037778_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000037779ac_clean_files=$ac_clean_files_save
37780
37781test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000037782 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037783
37784
37785# configure is writing to config.log, and then calls config.status.
37786# config.status does its own redirection, appending to config.log.
37787# Unfortunately, on DOS this fails, as config.log is still kept open
37788# by configure, so config.status won't be able to write to it; its
37789# output is simply discarded. So we exec the FD to /dev/null,
37790# effectively closing config.log, so it can be properly (re)opened and
37791# appended to by config.status. When coming back to configure, we
37792# need to make the FD available again.
37793if test "$no_create" != yes; then
37794 ac_cs_success=:
37795 ac_config_status_args=
37796 test "$silent" = yes &&
37797 ac_config_status_args="$ac_config_status_args --quiet"
37798 exec 5>/dev/null
37799 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37800 exec 5>>config.log
37801 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37802 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000037803 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000037804fi
37805if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000037806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000037807$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
37808fi
37809
37810
37811rm -f magick-version
37812
cristy430a7312010-01-21 20:44:04 +000037813result_dejavu_font_dir='none'
37814if test "${dejavu_font_dir}x" != 'x'; then
37815 result_dejavu_font_dir=$dejavu_font_dir
37816fi
37817
cristy3ed852e2009-09-05 21:47:34 +000037818result_ghostscript_font_dir='none'
37819if test "${ghostscript_font_dir}x" != 'x'; then
37820 result_ghostscript_font_dir=$ghostscript_font_dir
37821fi
37822
37823result_windows_font_dir='none'
37824if test "${windows_font_dir}x" != 'x'; then
37825 result_windows_font_dir=${windows_font_dir}
37826fi
37827
cristy09b53e12011-10-14 12:47:22 +000037828{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000037829ImageMagick is configured as follows. Please verify that this configuration
37830matches your expectations.
37831
37832Host system type: $host
37833Build system type: $build
37834
37835 Option Value
37836-------------------------------------------------------------------------------
37837Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
37838Static libraries --enable-static=$enable_static $libtool_build_static_libs
37839Module support --with-modules=$with_modules $with_modules
37840GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
37841Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
37842High Dynamic Range Imagery
37843 --enable-hdri=$enable_hdri $enable_hdri
37844
37845Delegate Configuration:
37846BZLIB --with-bzlib=$with_bzlib $have_bzlib
37847Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000037848Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000037849DJVU --with-djvu=$with_djvu $have_djvu
37850DPS --with-dps=$with_dps $have_dps
37851FFTW --with-fftw=$with_fftw $have_fftw
37852FlashPIX --with-fpx=$with_fpx $have_fpx
37853FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
37854FreeType --with-freetype=$with_freetype $have_freetype
37855GhostPCL None $PCLDelegate ($PCLVersion)
37856GhostXPS None $XPSDelegate ($XPSVersion)
37857Ghostscript None $PSDelegate ($GSVersion)
37858Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
37859Ghostscript lib --with-gslib=$with_gslib $have_gslib
37860Graphviz --with-gvc=$with_gvc $have_gvc
37861JBIG --with-jbig=$with_jbig $have_jbig
37862JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
37863JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000037864LCMS v1 --with-lcms=$with_lcms $have_lcms
37865LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000037866LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000037867LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000037868Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
37869OpenEXR --with-openexr=$with_openexr $have_openexr
37870PERL --with-perl=$with_perl $have_perl
37871PNG --with-png=$with_png $have_png
37872RSVG --with-rsvg=$with_rsvg $have_rsvg
37873TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000037874WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000037875Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
37876WMF --with-wmf=$with_wmf $have_wmf
37877X11 --with-x=$with_x $have_x
37878XML --with-xml=$with_xml $have_xml
37879ZLIB --with-zlib=$with_zlib $have_zlib
37880
37881X11 Configuration:
37882 X_CFLAGS = $X_CFLAGS
37883 X_PRE_LIBS = $X_PRE_LIBS
37884 X_LIBS = $X_LIBS
37885 X_EXTRA_LIBS = $X_EXTRA_LIBS
37886
37887Options used to compile and link:
37888 PREFIX = $PREFIX_DIR
37889 EXEC-PREFIX = $EXEC_PREFIX_DIR
37890 VERSION = $PACKAGE_VERSION
37891 CC = $CC
37892 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000037893 CPPFLAGS = $MAGICK_CPPFLAGS
37894 PCFLAGS = $MAGICK_PCFLAGS
37895 DEFS = $DEFS
37896 LDFLAGS = $LDFLAGS
37897 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
37898 LIBS = $MAGICK_LIBS
37899 CXX = $CXX
37900 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000037901 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000037902" >&5
cristy09b53e12011-10-14 12:47:22 +000037903$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000037904ImageMagick is configured as follows. Please verify that this configuration
37905matches your expectations.
37906
37907Host system type: $host
37908Build system type: $build
37909
37910 Option Value
37911-------------------------------------------------------------------------------
37912Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
37913Static libraries --enable-static=$enable_static $libtool_build_static_libs
37914Module support --with-modules=$with_modules $with_modules
37915GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
37916Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
37917High Dynamic Range Imagery
37918 --enable-hdri=$enable_hdri $enable_hdri
37919
37920Delegate Configuration:
37921BZLIB --with-bzlib=$with_bzlib $have_bzlib
37922Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000037923Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000037924DJVU --with-djvu=$with_djvu $have_djvu
37925DPS --with-dps=$with_dps $have_dps
37926FFTW --with-fftw=$with_fftw $have_fftw
37927FlashPIX --with-fpx=$with_fpx $have_fpx
37928FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
37929FreeType --with-freetype=$with_freetype $have_freetype
37930GhostPCL None $PCLDelegate ($PCLVersion)
37931GhostXPS None $XPSDelegate ($XPSVersion)
37932Ghostscript None $PSDelegate ($GSVersion)
37933Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
37934Ghostscript lib --with-gslib=$with_gslib $have_gslib
37935Graphviz --with-gvc=$with_gvc $have_gvc
37936JBIG --with-jbig=$with_jbig $have_jbig
37937JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
37938JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000037939LCMS v1 --with-lcms=$with_lcms $have_lcms
37940LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000037941LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000037942LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000037943Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
37944OpenEXR --with-openexr=$with_openexr $have_openexr
37945PERL --with-perl=$with_perl $have_perl
37946PNG --with-png=$with_png $have_png
37947RSVG --with-rsvg=$with_rsvg $have_rsvg
37948TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000037949WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000037950Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
37951WMF --with-wmf=$with_wmf $have_wmf
37952X11 --with-x=$with_x $have_x
37953XML --with-xml=$with_xml $have_xml
37954ZLIB --with-zlib=$with_zlib $have_zlib
37955
37956X11 Configuration:
37957 X_CFLAGS = $X_CFLAGS
37958 X_PRE_LIBS = $X_PRE_LIBS
37959 X_LIBS = $X_LIBS
37960 X_EXTRA_LIBS = $X_EXTRA_LIBS
37961
37962Options used to compile and link:
37963 PREFIX = $PREFIX_DIR
37964 EXEC-PREFIX = $EXEC_PREFIX_DIR
37965 VERSION = $PACKAGE_VERSION
37966 CC = $CC
37967 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000037968 CPPFLAGS = $MAGICK_CPPFLAGS
37969 PCFLAGS = $MAGICK_PCFLAGS
37970 DEFS = $DEFS
37971 LDFLAGS = $LDFLAGS
37972 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
37973 LIBS = $MAGICK_LIBS
37974 CXX = $CXX
37975 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000037976 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000037977" >&6;}